@datawire-ai/busyfile-design-library 1.26.0 → 1.28.0

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.
@@ -1,4 +1,4 @@
1
- (function(F,ae){typeof exports=="object"&&typeof module<"u"?ae(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],ae):(F=typeof globalThis<"u"?globalThis:F||self,ae(F.BusyFileDesignSystem={},F.React,F.ReactDOM))})(this,function(F,ae,jn){"use strict";function In(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const l=In(ae),At=In(jn);var br={exports:{}},dt={};/**
1
+ (function(L,ae){typeof exports=="object"&&typeof module<"u"?ae(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],ae):(L=typeof globalThis<"u"?globalThis:L||self,ae(L.BusyFileDesignSystem={},L.React,L.ReactDOM))})(this,function(L,ae,Mn){"use strict";function Dn(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const l=Dn(ae),Tt=Dn(Mn);var Sr={exports:{}},dt={};/**
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 On;function Wi(){if(On)return dt;On=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function r(n,o,a){var s=null;if(a!==void 0&&(s=""+a),o.key!==void 0&&(s=""+o.key),"key"in o){a={};for(var i in o)i!=="key"&&(a[i]=o[i])}else a=o;return o=a.ref,{$$typeof:e,type:n,key:s,ref:o!==void 0?o:null,props:a}}return dt.Fragment=t,dt.jsx=r,dt.jsxs=r,dt}var ft={};/**
9
+ */var Ln;function sl(){if(Ln)return dt;Ln=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function r(n,o,a){var s=null;if(a!==void 0&&(s=""+a),o.key!==void 0&&(s=""+o.key),"key"in o){a={};for(var i in o)i!=="key"&&(a[i]=o[i])}else a=o;return o=a.ref,{$$typeof:e,type:n,key:s,ref:o!==void 0?o:null,props:a}}return dt.Fragment=t,dt.jsx=r,dt.jsxs=r,dt}var ft={};/**
10
10
  * @license React
11
11
  * react-jsx-runtime.development.js
12
12
  *
@@ -14,123 +14,113 @@
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 Mn;function Hi(){return Mn||(Mn=1,process.env.NODE_ENV!=="production"&&function(){function e(k){if(k==null)return null;if(typeof k=="function")return k.$$typeof===K?null:k.displayName||k.name||null;if(typeof k=="string")return k;switch(k){case m:return"Fragment";case x:return"Profiler";case b:return"StrictMode";case E:return"Suspense";case A:return"SuspenseList";case H:return"Activity"}if(typeof k=="object")switch(typeof k.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),k.$$typeof){case v:return"Portal";case w:return(k.displayName||"Context")+".Provider";case y:return(k._context.displayName||"Context")+".Consumer";case C:var V=k.render;return k=k.displayName,k||(k=V.displayName||V.name||"",k=k!==""?"ForwardRef("+k+")":"ForwardRef"),k;case _:return V=k.displayName||null,V!==null?V:e(k.type)||"Memo";case R:V=k._payload,k=k._init;try{return e(k(V))}catch{}}return null}function t(k){return""+k}function r(k){try{t(k);var V=!1}catch{V=!0}if(V){V=console;var S=V.error,T=typeof Symbol=="function"&&Symbol.toStringTag&&k[Symbol.toStringTag]||k.constructor.name||"Object";return S.call(V,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",T),t(k)}}function n(k){if(k===m)return"<>";if(typeof k=="object"&&k!==null&&k.$$typeof===R)return"<...>";try{var V=e(k);return V?"<"+V+">":"<...>"}catch{return"<...>"}}function o(){var k=X.A;return k===null?null:k.getOwner()}function a(){return Error("react-stack-top-frame")}function s(k){if(Q.call(k,"key")){var V=Object.getOwnPropertyDescriptor(k,"key").get;if(V&&V.isReactWarning)return!1}return k.key!==void 0}function i(k,V){function S(){q||(q=!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)",V))}S.isReactWarning=!0,Object.defineProperty(k,"key",{get:S,configurable:!0})}function c(){var k=e(this.type);return L[k]||(L[k]=!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.")),k=this.props.ref,k!==void 0?k:null}function d(k,V,S,T,M,j,Y,P){return S=j.ref,k={$$typeof:h,type:k,key:V,props:j,_owner:M},(S!==void 0?S:null)!==null?Object.defineProperty(k,"ref",{enumerable:!1,get:c}):Object.defineProperty(k,"ref",{enumerable:!1,value:null}),k._store={},Object.defineProperty(k._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(k,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(k,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:Y}),Object.defineProperty(k,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:P}),Object.freeze&&(Object.freeze(k.props),Object.freeze(k)),k}function f(k,V,S,T,M,j,Y,P){var $=V.children;if($!==void 0)if(T)if(ee($)){for(T=0;T<$.length;T++)p($[T]);Object.freeze&&Object.freeze($)}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 p($);if(Q.call(V,"key")){$=e(k);var G=Object.keys(V).filter(function(re){return re!=="key"});T=0<G.length?"{key: someKey, "+G.join(": ..., ")+": ...}":"{key: someKey}",te[$+T]||(G=0<G.length?"{"+G.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
17
+ */var $n;function il(){return $n||($n=1,process.env.NODE_ENV!=="production"&&function(){function e(k){if(k==null)return null;if(typeof k=="function")return k.$$typeof===K?null:k.displayName||k.name||null;if(typeof k=="string")return k;switch(k){case m:return"Fragment";case x:return"Profiler";case b:return"StrictMode";case E:return"Suspense";case T:return"SuspenseList";case G:return"Activity"}if(typeof k=="object")switch(typeof k.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),k.$$typeof){case v:return"Portal";case w:return(k.displayName||"Context")+".Provider";case y:return(k._context.displayName||"Context")+".Consumer";case C:var B=k.render;return k=k.displayName,k||(k=B.displayName||B.name||"",k=k!==""?"ForwardRef("+k+")":"ForwardRef"),k;case _:return B=k.displayName||null,B!==null?B:e(k.type)||"Memo";case R:B=k._payload,k=k._init;try{return e(k(B))}catch{}}return null}function t(k){return""+k}function r(k){try{t(k);var B=!1}catch{B=!0}if(B){B=console;var S=B.error,A=typeof Symbol=="function"&&Symbol.toStringTag&&k[Symbol.toStringTag]||k.constructor.name||"Object";return S.call(B,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",A),t(k)}}function n(k){if(k===m)return"<>";if(typeof k=="object"&&k!==null&&k.$$typeof===R)return"<...>";try{var B=e(k);return B?"<"+B+">":"<...>"}catch{return"<...>"}}function o(){var k=X.A;return k===null?null:k.getOwner()}function a(){return Error("react-stack-top-frame")}function s(k){if(Q.call(k,"key")){var B=Object.getOwnPropertyDescriptor(k,"key").get;if(B&&B.isReactWarning)return!1}return k.key!==void 0}function i(k,B){function S(){q||(q=!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)",B))}S.isReactWarning=!0,Object.defineProperty(k,"key",{get:S,configurable:!0})}function c(){var k=e(this.type);return $[k]||($[k]=!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.")),k=this.props.ref,k!==void 0?k:null}function d(k,B,S,A,D,I,Y,P){return S=I.ref,k={$$typeof:h,type:k,key:B,props:I,_owner:D},(S!==void 0?S:null)!==null?Object.defineProperty(k,"ref",{enumerable:!1,get:c}):Object.defineProperty(k,"ref",{enumerable:!1,value:null}),k._store={},Object.defineProperty(k._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(k,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(k,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:Y}),Object.defineProperty(k,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:P}),Object.freeze&&(Object.freeze(k.props),Object.freeze(k)),k}function f(k,B,S,A,D,I,Y,P){var F=B.children;if(F!==void 0)if(A)if(ee(F)){for(A=0;A<F.length;A++)p(F[A]);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 p(F);if(Q.call(B,"key")){F=e(k);var U=Object.keys(B).filter(function(re){return re!=="key"});A=0<U.length?"{key: someKey, "+U.join(": ..., ")+": ...}":"{key: someKey}",te[F+A]||(U=0<U.length?"{"+U.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
18
18
  let props = %s;
19
19
  <%s {...props} />
20
20
  React keys must be passed directly to JSX without using spread:
21
21
  let props = %s;
22
- <%s key={someKey} {...props} />`,T,$,G,$),te[$+T]=!0)}if($=null,S!==void 0&&(r(S),$=""+S),s(V)&&(r(V.key),$=""+V.key),"key"in V){S={};for(var Z in V)Z!=="key"&&(S[Z]=V[Z])}else S=V;return $&&i(S,typeof k=="function"?k.displayName||k.name||"Unknown":k),d(k,$,j,M,o(),S,Y,P)}function p(k){typeof k=="object"&&k!==null&&k.$$typeof===h&&k._store&&(k._store.validated=1)}var g=ae,h=Symbol.for("react.transitional.element"),v=Symbol.for("react.portal"),m=Symbol.for("react.fragment"),b=Symbol.for("react.strict_mode"),x=Symbol.for("react.profiler"),y=Symbol.for("react.consumer"),w=Symbol.for("react.context"),C=Symbol.for("react.forward_ref"),E=Symbol.for("react.suspense"),A=Symbol.for("react.suspense_list"),_=Symbol.for("react.memo"),R=Symbol.for("react.lazy"),H=Symbol.for("react.activity"),K=Symbol.for("react.client.reference"),X=g.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Q=Object.prototype.hasOwnProperty,ee=Array.isArray,W=console.createTask?console.createTask:function(){return null};g={"react-stack-bottom-frame":function(k){return k()}};var q,L={},U=g["react-stack-bottom-frame"].bind(g,a)(),N=W(n(a)),te={};ft.Fragment=m,ft.jsx=function(k,V,S,T,M){var j=1e4>X.recentlyCreatedOwnerStacks++;return f(k,V,S,!1,T,M,j?Error("react-stack-top-frame"):U,j?W(n(k)):N)},ft.jsxs=function(k,V,S,T,M){var j=1e4>X.recentlyCreatedOwnerStacks++;return f(k,V,S,!0,T,M,j?Error("react-stack-top-frame"):U,j?W(n(k)):N)}}()),ft}process.env.NODE_ENV==="production"?br.exports=Wi():br.exports=Hi();var u=br.exports;function Dn(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Ve(...e){return t=>{let r=!1;const n=e.map(o=>{const a=Dn(o,t);return!r&&typeof a=="function"&&(r=!0),a});if(r)return()=>{for(let o=0;o<n.length;o++){const a=n[o];typeof a=="function"?a():Dn(e[o],null)}}}}function ne(...e){return l.useCallback(Ve(...e),e)}function ze(e){const t=Ui(e),r=l.forwardRef((n,o)=>{const{children:a,...s}=n,i=l.Children.toArray(a),c=i.find(Ki);if(c){const d=c.props.children,f=i.map(p=>p===c?l.Children.count(d)>1?l.Children.only(null):l.isValidElement(d)?d.props.children:null:p);return u.jsx(t,{...s,ref:o,children:l.isValidElement(d)?l.cloneElement(d,void 0,f):null})}return u.jsx(t,{...s,ref:o,children:a})});return r.displayName=`${e}.Slot`,r}var Tt=ze("Slot");function Ui(e){const t=l.forwardRef((r,n)=>{const{children:o,...a}=r;if(l.isValidElement(o)){const s=qi(o),i=Yi(a,o.props);return o.type!==l.Fragment&&(i.ref=n?Ve(n,s):s),l.cloneElement(o,i)}return l.Children.count(o)>1?l.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Ln=Symbol("radix.slottable");function Gi(e){const t=({children:r})=>u.jsx(u.Fragment,{children:r});return t.displayName=`${e}.Slottable`,t.__radixId=Ln,t}function Ki(e){return l.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Ln}function Yi(e,t){const r={...t};for(const n in t){const o=e[n],a=t[n];/^on[A-Z]/.test(n)?o&&a?r[n]=(...i)=>{const c=a(...i);return o(...i),c}:o&&(r[n]=o):n==="style"?r[n]={...o,...a}:n==="className"&&(r[n]=[o,a].filter(Boolean).join(" "))}return{...e,...r}}function qi(e){var n,o;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}function $n(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=$n(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function Fn(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=$n(e))&&(n&&(n+=" "),n+=t);return n}const xr="-",Xi=e=>{const t=Ji(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:s=>{const i=s.split(xr);return i[0]===""&&i.length!==1&&i.shift(),Vn(i,t)||Zi(s)},getConflictingClassGroupIds:(s,i)=>{const c=r[s]||[];return i&&n[s]?[...c,...n[s]]:c}}},Vn=(e,t)=>{var s;if(e.length===0)return t.classGroupId;const r=e[0],n=t.nextPart.get(r),o=n?Vn(e.slice(1),n):void 0;if(o)return o;if(t.validators.length===0)return;const a=e.join(xr);return(s=t.validators.find(({validator:i})=>i(a)))==null?void 0:s.classGroupId},zn=/^\[(.+)\]$/,Zi=e=>{if(zn.test(e)){const t=zn.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},Ji=e=>{const{theme:t,classGroups:r}=e,n={nextPart:new Map,validators:[]};for(const o in r)yr(r[o],n,o,t);return n},yr=(e,t,r,n)=>{e.forEach(o=>{if(typeof o=="string"){const a=o===""?t:Bn(t,o);a.classGroupId=r;return}if(typeof o=="function"){if(Qi(o)){yr(o(n),t,r,n);return}t.validators.push({validator:o,classGroupId:r});return}Object.entries(o).forEach(([a,s])=>{yr(s,Bn(t,a),r,n)})})},Bn=(e,t)=>{let r=e;return t.split(xr).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r},Qi=e=>e.isThemeGetter,el=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,n=new Map;const o=(a,s)=>{r.set(a,s),t++,t>e&&(t=0,n=r,r=new Map)};return{get(a){let s=r.get(a);if(s!==void 0)return s;if((s=n.get(a))!==void 0)return o(a,s),s},set(a,s){r.has(a)?r.set(a,s):o(a,s)}}},wr="!",Sr=":",tl=Sr.length,rl=e=>{const{prefix:t,experimentalParseClassName:r}=e;let n=o=>{const a=[];let s=0,i=0,c=0,d;for(let v=0;v<o.length;v++){let m=o[v];if(s===0&&i===0){if(m===Sr){a.push(o.slice(c,v)),c=v+tl;continue}if(m==="/"){d=v;continue}}m==="["?s++:m==="]"?s--:m==="("?i++:m===")"&&i--}const f=a.length===0?o:o.substring(c),p=nl(f),g=p!==f,h=d&&d>c?d-c:void 0;return{modifiers:a,hasImportantModifier:g,baseClassName:p,maybePostfixModifierPosition:h}};if(t){const o=t+Sr,a=n;n=s=>s.startsWith(o)?a(s.substring(o.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:s,maybePostfixModifierPosition:void 0}}if(r){const o=n;n=a=>r({className:a,parseClassName:o})}return n},nl=e=>e.endsWith(wr)?e.substring(0,e.length-1):e.startsWith(wr)?e.substring(1):e,ol=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(n=>[n,!0]));return n=>{if(n.length<=1)return n;const o=[];let a=[];return n.forEach(s=>{s[0]==="["||t[s]?(o.push(...a.sort(),s),a=[]):a.push(s)}),o.push(...a.sort()),o}},al=e=>({cache:el(e.cacheSize),parseClassName:rl(e),sortModifiers:ol(e),...Xi(e)}),sl=/\s+/,il=(e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:o,sortModifiers:a}=t,s=[],i=e.trim().split(sl);let c="";for(let d=i.length-1;d>=0;d-=1){const f=i[d],{isExternal:p,modifiers:g,hasImportantModifier:h,baseClassName:v,maybePostfixModifierPosition:m}=r(f);if(p){c=f+(c.length>0?" "+c:c);continue}let b=!!m,x=n(b?v.substring(0,m):v);if(!x){if(!b){c=f+(c.length>0?" "+c:c);continue}if(x=n(v),!x){c=f+(c.length>0?" "+c:c);continue}b=!1}const y=a(g).join(":"),w=h?y+wr:y,C=w+x;if(s.includes(C))continue;s.push(C);const E=o(x,b);for(let A=0;A<E.length;++A){const _=E[A];s.push(w+_)}c=f+(c.length>0?" "+c:c)}return c};function ll(){let e=0,t,r,n="";for(;e<arguments.length;)(t=arguments[e++])&&(r=Wn(t))&&(n&&(n+=" "),n+=r);return n}const Wn=e=>{if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=Wn(e[n]))&&(r&&(r+=" "),r+=t);return r};function cl(e,...t){let r,n,o,a=s;function s(c){const d=t.reduce((f,p)=>p(f),e());return r=al(d),n=r.cache.get,o=r.cache.set,a=i,i(c)}function i(c){const d=n(c);if(d)return d;const f=il(c,r);return o(c,f),f}return function(){return a(ll.apply(null,arguments))}}const se=e=>{const t=r=>r[e]||[];return t.isThemeGetter=!0,t},Hn=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Un=/^\((?:(\w[\w-]*):)?(.+)\)$/i,ul=/^\d+\/\d+$/,dl=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,fl=/\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$/,pl=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,ml=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,hl=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ye=e=>ul.test(e),J=e=>!!e&&!Number.isNaN(Number(e)),Te=e=>!!e&&Number.isInteger(Number(e)),Cr=e=>e.endsWith("%")&&J(e.slice(0,-1)),Re=e=>dl.test(e),gl=()=>!0,vl=e=>fl.test(e)&&!pl.test(e),Gn=()=>!1,bl=e=>ml.test(e),xl=e=>hl.test(e),yl=e=>!I(e)&&!O(e),wl=e=>qe(e,Zn,Gn),I=e=>Hn.test(e),Be=e=>qe(e,Jn,vl),kr=e=>qe(e,Rl,J),Kn=e=>qe(e,qn,Gn),Sl=e=>qe(e,Xn,xl),jt=e=>qe(e,Qn,bl),O=e=>Un.test(e),pt=e=>Xe(e,Jn),Cl=e=>Xe(e,_l),Yn=e=>Xe(e,qn),kl=e=>Xe(e,Zn),El=e=>Xe(e,Xn),It=e=>Xe(e,Qn,!0),qe=(e,t,r)=>{const n=Hn.exec(e);return n?n[1]?t(n[1]):r(n[2]):!1},Xe=(e,t,r=!1)=>{const n=Un.exec(e);return n?n[1]?t(n[1]):r:!1},qn=e=>e==="position"||e==="percentage",Xn=e=>e==="image"||e==="url",Zn=e=>e==="length"||e==="size"||e==="bg-size",Jn=e=>e==="length",Rl=e=>e==="number",_l=e=>e==="family-name",Qn=e=>e==="shadow",Nl=cl(()=>{const e=se("color"),t=se("font"),r=se("text"),n=se("font-weight"),o=se("tracking"),a=se("leading"),s=se("breakpoint"),i=se("container"),c=se("spacing"),d=se("radius"),f=se("shadow"),p=se("inset-shadow"),g=se("text-shadow"),h=se("drop-shadow"),v=se("blur"),m=se("perspective"),b=se("aspect"),x=se("ease"),y=se("animate"),w=()=>["auto","avoid","all","avoid-page","page","left","right","column"],C=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],E=()=>[...C(),O,I],A=()=>["auto","hidden","clip","visible","scroll"],_=()=>["auto","contain","none"],R=()=>[O,I,c],H=()=>[Ye,"full","auto",...R()],K=()=>[Te,"none","subgrid",O,I],X=()=>["auto",{span:["full",Te,O,I]},Te,O,I],Q=()=>[Te,"auto",O,I],ee=()=>["auto","min","max","fr",O,I],W=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],q=()=>["start","end","center","stretch","center-safe","end-safe"],L=()=>["auto",...R()],U=()=>[Ye,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...R()],N=()=>[e,O,I],te=()=>[...C(),Yn,Kn,{position:[O,I]}],k=()=>["no-repeat",{repeat:["","x","y","space","round"]}],V=()=>["auto","cover","contain",kl,wl,{size:[O,I]}],S=()=>[Cr,pt,Be],T=()=>["","none","full",d,O,I],M=()=>["",J,pt,Be],j=()=>["solid","dashed","dotted","double"],Y=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],P=()=>[J,Cr,Yn,Kn],$=()=>["","none",v,O,I],G=()=>["none",J,O,I],Z=()=>["none",J,O,I],re=()=>[J,O,I],oe=()=>[Ye,"full",...R()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Re],breakpoint:[Re],color:[gl],container:[Re],"drop-shadow":[Re],ease:["in","out","in-out"],font:[yl],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Re],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Re],shadow:[Re],spacing:["px",J],text:[Re],"text-shadow":[Re],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Ye,I,O,b]}],container:["container"],columns:[{columns:[J,I,O,i]}],"break-after":[{"break-after":w()}],"break-before":[{"break-before":w()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:E()}],overflow:[{overflow:A()}],"overflow-x":[{"overflow-x":A()}],"overflow-y":[{"overflow-y":A()}],overscroll:[{overscroll:_()}],"overscroll-x":[{"overscroll-x":_()}],"overscroll-y":[{"overscroll-y":_()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:H()}],"inset-x":[{"inset-x":H()}],"inset-y":[{"inset-y":H()}],start:[{start:H()}],end:[{end:H()}],top:[{top:H()}],right:[{right:H()}],bottom:[{bottom:H()}],left:[{left:H()}],visibility:["visible","invisible","collapse"],z:[{z:[Te,"auto",O,I]}],basis:[{basis:[Ye,"full","auto",i,...R()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[J,Ye,"auto","initial","none",I]}],grow:[{grow:["",J,O,I]}],shrink:[{shrink:["",J,O,I]}],order:[{order:[Te,"first","last","none",O,I]}],"grid-cols":[{"grid-cols":K()}],"col-start-end":[{col:X()}],"col-start":[{"col-start":Q()}],"col-end":[{"col-end":Q()}],"grid-rows":[{"grid-rows":K()}],"row-start-end":[{row:X()}],"row-start":[{"row-start":Q()}],"row-end":[{"row-end":Q()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":ee()}],"auto-rows":[{"auto-rows":ee()}],gap:[{gap:R()}],"gap-x":[{"gap-x":R()}],"gap-y":[{"gap-y":R()}],"justify-content":[{justify:[...W(),"normal"]}],"justify-items":[{"justify-items":[...q(),"normal"]}],"justify-self":[{"justify-self":["auto",...q()]}],"align-content":[{content:["normal",...W()]}],"align-items":[{items:[...q(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...q(),{baseline:["","last"]}]}],"place-content":[{"place-content":W()}],"place-items":[{"place-items":[...q(),"baseline"]}],"place-self":[{"place-self":["auto",...q()]}],p:[{p:R()}],px:[{px:R()}],py:[{py:R()}],ps:[{ps:R()}],pe:[{pe:R()}],pt:[{pt:R()}],pr:[{pr:R()}],pb:[{pb:R()}],pl:[{pl:R()}],m:[{m:L()}],mx:[{mx:L()}],my:[{my:L()}],ms:[{ms:L()}],me:[{me:L()}],mt:[{mt:L()}],mr:[{mr:L()}],mb:[{mb:L()}],ml:[{ml:L()}],"space-x":[{"space-x":R()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":R()}],"space-y-reverse":["space-y-reverse"],size:[{size:U()}],w:[{w:[i,"screen",...U()]}],"min-w":[{"min-w":[i,"screen","none",...U()]}],"max-w":[{"max-w":[i,"screen","none","prose",{screen:[s]},...U()]}],h:[{h:["screen","lh",...U()]}],"min-h":[{"min-h":["screen","lh","none",...U()]}],"max-h":[{"max-h":["screen","lh",...U()]}],"font-size":[{text:["base",r,pt,Be]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,O,kr]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Cr,I]}],"font-family":[{font:[Cl,I,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,O,I]}],"line-clamp":[{"line-clamp":[J,"none",O,kr]}],leading:[{leading:[a,...R()]}],"list-image":[{"list-image":["none",O,I]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",O,I]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:N()}],"text-color":[{text:N()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...j(),"wavy"]}],"text-decoration-thickness":[{decoration:[J,"from-font","auto",O,Be]}],"text-decoration-color":[{decoration:N()}],"underline-offset":[{"underline-offset":[J,"auto",O,I]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:R()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",O,I]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",O,I]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:te()}],"bg-repeat":[{bg:k()}],"bg-size":[{bg:V()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Te,O,I],radial:["",O,I],conic:[Te,O,I]},El,Sl]}],"bg-color":[{bg:N()}],"gradient-from-pos":[{from:S()}],"gradient-via-pos":[{via:S()}],"gradient-to-pos":[{to:S()}],"gradient-from":[{from:N()}],"gradient-via":[{via:N()}],"gradient-to":[{to:N()}],rounded:[{rounded:T()}],"rounded-s":[{"rounded-s":T()}],"rounded-e":[{"rounded-e":T()}],"rounded-t":[{"rounded-t":T()}],"rounded-r":[{"rounded-r":T()}],"rounded-b":[{"rounded-b":T()}],"rounded-l":[{"rounded-l":T()}],"rounded-ss":[{"rounded-ss":T()}],"rounded-se":[{"rounded-se":T()}],"rounded-ee":[{"rounded-ee":T()}],"rounded-es":[{"rounded-es":T()}],"rounded-tl":[{"rounded-tl":T()}],"rounded-tr":[{"rounded-tr":T()}],"rounded-br":[{"rounded-br":T()}],"rounded-bl":[{"rounded-bl":T()}],"border-w":[{border:M()}],"border-w-x":[{"border-x":M()}],"border-w-y":[{"border-y":M()}],"border-w-s":[{"border-s":M()}],"border-w-e":[{"border-e":M()}],"border-w-t":[{"border-t":M()}],"border-w-r":[{"border-r":M()}],"border-w-b":[{"border-b":M()}],"border-w-l":[{"border-l":M()}],"divide-x":[{"divide-x":M()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":M()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...j(),"hidden","none"]}],"divide-style":[{divide:[...j(),"hidden","none"]}],"border-color":[{border:N()}],"border-color-x":[{"border-x":N()}],"border-color-y":[{"border-y":N()}],"border-color-s":[{"border-s":N()}],"border-color-e":[{"border-e":N()}],"border-color-t":[{"border-t":N()}],"border-color-r":[{"border-r":N()}],"border-color-b":[{"border-b":N()}],"border-color-l":[{"border-l":N()}],"divide-color":[{divide:N()}],"outline-style":[{outline:[...j(),"none","hidden"]}],"outline-offset":[{"outline-offset":[J,O,I]}],"outline-w":[{outline:["",J,pt,Be]}],"outline-color":[{outline:N()}],shadow:[{shadow:["","none",f,It,jt]}],"shadow-color":[{shadow:N()}],"inset-shadow":[{"inset-shadow":["none",p,It,jt]}],"inset-shadow-color":[{"inset-shadow":N()}],"ring-w":[{ring:M()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:N()}],"ring-offset-w":[{"ring-offset":[J,Be]}],"ring-offset-color":[{"ring-offset":N()}],"inset-ring-w":[{"inset-ring":M()}],"inset-ring-color":[{"inset-ring":N()}],"text-shadow":[{"text-shadow":["none",g,It,jt]}],"text-shadow-color":[{"text-shadow":N()}],opacity:[{opacity:[J,O,I]}],"mix-blend":[{"mix-blend":[...Y(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Y()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[J]}],"mask-image-linear-from-pos":[{"mask-linear-from":P()}],"mask-image-linear-to-pos":[{"mask-linear-to":P()}],"mask-image-linear-from-color":[{"mask-linear-from":N()}],"mask-image-linear-to-color":[{"mask-linear-to":N()}],"mask-image-t-from-pos":[{"mask-t-from":P()}],"mask-image-t-to-pos":[{"mask-t-to":P()}],"mask-image-t-from-color":[{"mask-t-from":N()}],"mask-image-t-to-color":[{"mask-t-to":N()}],"mask-image-r-from-pos":[{"mask-r-from":P()}],"mask-image-r-to-pos":[{"mask-r-to":P()}],"mask-image-r-from-color":[{"mask-r-from":N()}],"mask-image-r-to-color":[{"mask-r-to":N()}],"mask-image-b-from-pos":[{"mask-b-from":P()}],"mask-image-b-to-pos":[{"mask-b-to":P()}],"mask-image-b-from-color":[{"mask-b-from":N()}],"mask-image-b-to-color":[{"mask-b-to":N()}],"mask-image-l-from-pos":[{"mask-l-from":P()}],"mask-image-l-to-pos":[{"mask-l-to":P()}],"mask-image-l-from-color":[{"mask-l-from":N()}],"mask-image-l-to-color":[{"mask-l-to":N()}],"mask-image-x-from-pos":[{"mask-x-from":P()}],"mask-image-x-to-pos":[{"mask-x-to":P()}],"mask-image-x-from-color":[{"mask-x-from":N()}],"mask-image-x-to-color":[{"mask-x-to":N()}],"mask-image-y-from-pos":[{"mask-y-from":P()}],"mask-image-y-to-pos":[{"mask-y-to":P()}],"mask-image-y-from-color":[{"mask-y-from":N()}],"mask-image-y-to-color":[{"mask-y-to":N()}],"mask-image-radial":[{"mask-radial":[O,I]}],"mask-image-radial-from-pos":[{"mask-radial-from":P()}],"mask-image-radial-to-pos":[{"mask-radial-to":P()}],"mask-image-radial-from-color":[{"mask-radial-from":N()}],"mask-image-radial-to-color":[{"mask-radial-to":N()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":C()}],"mask-image-conic-pos":[{"mask-conic":[J]}],"mask-image-conic-from-pos":[{"mask-conic-from":P()}],"mask-image-conic-to-pos":[{"mask-conic-to":P()}],"mask-image-conic-from-color":[{"mask-conic-from":N()}],"mask-image-conic-to-color":[{"mask-conic-to":N()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:te()}],"mask-repeat":[{mask:k()}],"mask-size":[{mask:V()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",O,I]}],filter:[{filter:["","none",O,I]}],blur:[{blur:$()}],brightness:[{brightness:[J,O,I]}],contrast:[{contrast:[J,O,I]}],"drop-shadow":[{"drop-shadow":["","none",h,It,jt]}],"drop-shadow-color":[{"drop-shadow":N()}],grayscale:[{grayscale:["",J,O,I]}],"hue-rotate":[{"hue-rotate":[J,O,I]}],invert:[{invert:["",J,O,I]}],saturate:[{saturate:[J,O,I]}],sepia:[{sepia:["",J,O,I]}],"backdrop-filter":[{"backdrop-filter":["","none",O,I]}],"backdrop-blur":[{"backdrop-blur":$()}],"backdrop-brightness":[{"backdrop-brightness":[J,O,I]}],"backdrop-contrast":[{"backdrop-contrast":[J,O,I]}],"backdrop-grayscale":[{"backdrop-grayscale":["",J,O,I]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[J,O,I]}],"backdrop-invert":[{"backdrop-invert":["",J,O,I]}],"backdrop-opacity":[{"backdrop-opacity":[J,O,I]}],"backdrop-saturate":[{"backdrop-saturate":[J,O,I]}],"backdrop-sepia":[{"backdrop-sepia":["",J,O,I]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":R()}],"border-spacing-x":[{"border-spacing-x":R()}],"border-spacing-y":[{"border-spacing-y":R()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",O,I]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[J,"initial",O,I]}],ease:[{ease:["linear","initial",x,O,I]}],delay:[{delay:[J,O,I]}],animate:[{animate:["none",y,O,I]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[m,O,I]}],"perspective-origin":[{"perspective-origin":E()}],rotate:[{rotate:G()}],"rotate-x":[{"rotate-x":G()}],"rotate-y":[{"rotate-y":G()}],"rotate-z":[{"rotate-z":G()}],scale:[{scale:Z()}],"scale-x":[{"scale-x":Z()}],"scale-y":[{"scale-y":Z()}],"scale-z":[{"scale-z":Z()}],"scale-3d":["scale-3d"],skew:[{skew:re()}],"skew-x":[{"skew-x":re()}],"skew-y":[{"skew-y":re()}],transform:[{transform:[O,I,"","none","gpu","cpu"]}],"transform-origin":[{origin:E()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:oe()}],"translate-x":[{"translate-x":oe()}],"translate-y":[{"translate-y":oe()}],"translate-z":[{"translate-z":oe()}],"translate-none":["translate-none"],accent:[{accent:N()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:N()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",O,I]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":R()}],"scroll-mx":[{"scroll-mx":R()}],"scroll-my":[{"scroll-my":R()}],"scroll-ms":[{"scroll-ms":R()}],"scroll-me":[{"scroll-me":R()}],"scroll-mt":[{"scroll-mt":R()}],"scroll-mr":[{"scroll-mr":R()}],"scroll-mb":[{"scroll-mb":R()}],"scroll-ml":[{"scroll-ml":R()}],"scroll-p":[{"scroll-p":R()}],"scroll-px":[{"scroll-px":R()}],"scroll-py":[{"scroll-py":R()}],"scroll-ps":[{"scroll-ps":R()}],"scroll-pe":[{"scroll-pe":R()}],"scroll-pt":[{"scroll-pt":R()}],"scroll-pr":[{"scroll-pr":R()}],"scroll-pb":[{"scroll-pb":R()}],"scroll-pl":[{"scroll-pl":R()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",O,I]}],fill:[{fill:["none",...N()]}],"stroke-w":[{stroke:[J,pt,Be,kr]}],stroke:[{stroke:["none",...N()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}});function D(...e){return Nl(Fn(e))}const eo=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,to=Fn,ce=(e,t)=>r=>{var n;if((t==null?void 0:t.variants)==null)return to(e,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:o,defaultVariants:a}=t,s=Object.keys(o).map(d=>{const f=r==null?void 0:r[d],p=a==null?void 0:a[d];if(f===null)return null;const g=eo(f)||eo(p);return o[d][g]}),i=r&&Object.entries(r).reduce((d,f)=>{let[p,g]=f;return g===void 0||(d[p]=g),d},{}),c=t==null||(n=t.compoundVariants)===null||n===void 0?void 0:n.reduce((d,f)=>{let{class:p,className:g,...h}=f;return Object.entries(h).every(v=>{let[m,b]=v;return Array.isArray(b)?b.includes({...a,...i}[m]):{...a,...i}[m]===b})?[...d,p,g]:d},[]);return to(e,s,c,r==null?void 0:r.class,r==null?void 0:r.className)},Pl=ce("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:ring-2 focus-visible:ring-offset-2",{variants:{variant:{default:"bg-neutral-black-1 text-sm font-normal text-white shadow-sm hover:bg-neutral-black-2 focus-visible:ring-neutral-black-1",primary:"bg-neutral-black-5 text-sm font-normal text-neutral-70 hover:bg-neutral-black-5 focus-visible:ring-bg-neutral-black-5",outline:"bg-transparent text-black hover:bg-neutral-black-2 focus-visible:ring-4 focus-visible:ring-bg-surface border border-bg-neutral-black-2"},size:{default:"h-9 px-4 py-2",sm:"h-8 px-3 text-xs",lg:"h-10 px-6",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}});function ro({className:e,variant:t,size:r,asChild:n=!1,children:o,...a}){const s=n?Tt:"button";return u.jsx(s,{"data-slot":"button",className:D(Pl({variant:t,size:r}),e),...a,children:o})}function B(e,t,{checkForDefaultPrevented:r=!0}={}){return function(o){if(e==null||e(o),r===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function Al(e,t){const r=l.createContext(t),n=a=>{const{children:s,...i}=a,c=l.useMemo(()=>i,Object.values(i));return u.jsx(r.Provider,{value:c,children:s})};n.displayName=e+"Provider";function o(a){const s=l.useContext(r);if(s)return s;if(t!==void 0)return t;throw new Error(`\`${a}\` must be used within \`${e}\``)}return[n,o]}function me(e,t=[]){let r=[];function n(a,s){const i=l.createContext(s),c=r.length;r=[...r,s];const d=p=>{var x;const{scope:g,children:h,...v}=p,m=((x=g==null?void 0:g[e])==null?void 0:x[c])||i,b=l.useMemo(()=>v,Object.values(v));return u.jsx(m.Provider,{value:b,children:h})};d.displayName=a+"Provider";function f(p,g){var m;const h=((m=g==null?void 0:g[e])==null?void 0:m[c])||i,v=l.useContext(h);if(v)return v;if(s!==void 0)return s;throw new Error(`\`${p}\` must be used within \`${a}\``)}return[d,f]}const o=()=>{const a=r.map(s=>l.createContext(s));return function(i){const c=(i==null?void 0:i[e])||a;return l.useMemo(()=>({[`__scope${e}`]:{...i,[e]:c}}),[i,c])}};return o.scopeName=e,[n,Tl(o,...t)]}function Tl(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(a){const s=n.reduce((i,{useScope:c,scopeName:d})=>{const p=c(a)[`__scope${d}`];return{...i,...p}},{});return l.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return r.scopeName=t.scopeName,r}var ie=globalThis!=null&&globalThis.document?l.useLayoutEffect:()=>{},jl=l[" useInsertionEffect ".trim().toString()]||ie;function _e({prop:e,defaultProp:t,onChange:r=()=>{},caller:n}){const[o,a,s]=Il({defaultProp:t,onChange:r}),i=e!==void 0,c=i?e:o;{const f=l.useRef(e!==void 0);l.useEffect(()=>{const p=f.current;p!==i&&console.warn(`${n} is changing from ${p?"controlled":"uncontrolled"} to ${i?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),f.current=i},[i,n])}const d=l.useCallback(f=>{var p;if(i){const g=Ol(f)?f(e):f;g!==e&&((p=s.current)==null||p.call(s,g))}else a(f)},[i,e,a,s]);return[c,d]}function Il({defaultProp:e,onChange:t}){const[r,n]=l.useState(e),o=l.useRef(r),a=l.useRef(t);return jl(()=>{a.current=t},[t]),l.useEffect(()=>{var s;o.current!==r&&((s=a.current)==null||s.call(a,r),o.current=r)},[r,o]),[r,n,a]}function Ol(e){return typeof e=="function"}function Ot(e){const t=l.useRef({value:e,previous:e});return l.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}function Mt(e){const[t,r]=l.useState(void 0);return ie(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const n=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const a=o[0];let s,i;if("borderBoxSize"in a){const c=a.borderBoxSize,d=Array.isArray(c)?c[0]:c;s=d.inlineSize,i=d.blockSize}else s=e.offsetWidth,i=e.offsetHeight;r({width:s,height:i})});return n.observe(e,{box:"border-box"}),()=>n.unobserve(e)}else r(void 0)},[e]),t}var Ml=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],z=Ml.reduce((e,t)=>{const r=ze(`Primitive.${t}`),n=l.forwardRef((o,a)=>{const{asChild:s,...i}=o,c=s?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),u.jsx(c,{...i,ref:a})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function Dl(e,t){e&&At.flushSync(()=>e.dispatchEvent(t))}var Dt="Switch",[Ll,Mh]=me(Dt),[$l,Fl]=Ll(Dt),no=l.forwardRef((e,t)=>{const{__scopeSwitch:r,name:n,checked:o,defaultChecked:a,required:s,disabled:i,value:c="on",onCheckedChange:d,form:f,...p}=e,[g,h]=l.useState(null),v=ne(t,w=>h(w)),m=l.useRef(!1),b=g?f||!!g.closest("form"):!0,[x,y]=_e({prop:o,defaultProp:a??!1,onChange:d,caller:Dt});return u.jsxs($l,{scope:r,checked:x,disabled:i,children:[u.jsx(z.button,{type:"button",role:"switch","aria-checked":x,"aria-required":s,"data-state":io(x),"data-disabled":i?"":void 0,disabled:i,value:c,...p,ref:v,onClick:B(e.onClick,w=>{y(C=>!C),b&&(m.current=w.isPropagationStopped(),m.current||w.stopPropagation())})}),b&&u.jsx(so,{control:g,bubbles:!m.current,name:n,value:c,checked:x,required:s,disabled:i,form:f,style:{transform:"translateX(-100%)"}})]})});no.displayName=Dt;var oo="SwitchThumb",ao=l.forwardRef((e,t)=>{const{__scopeSwitch:r,...n}=e,o=Fl(oo,r);return u.jsx(z.span,{"data-state":io(o.checked),"data-disabled":o.disabled?"":void 0,...n,ref:t})});ao.displayName=oo;var Vl="SwitchBubbleInput",so=l.forwardRef(({__scopeSwitch:e,control:t,checked:r,bubbles:n=!0,...o},a)=>{const s=l.useRef(null),i=ne(s,a),c=Ot(r),d=Mt(t);return l.useEffect(()=>{const f=s.current;if(!f)return;const p=window.HTMLInputElement.prototype,h=Object.getOwnPropertyDescriptor(p,"checked").set;if(c!==r&&h){const v=new Event("click",{bubbles:n});h.call(f,r),f.dispatchEvent(v)}},[c,r,n]),u.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:r,...o,tabIndex:-1,ref:i,style:{...o.style,...d,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});so.displayName=Vl;function io(e){return e?"checked":"unchecked"}var zl=no,Bl=ao;const Wl=ce(["group relative inline-flex items-center cursor-pointer transition-all duration-200 ease-in-out","focus:outline-none focus-visible:ring-2 focus-visible:ring-offset-2","disabled:cursor-not-allowed disabled:opacity-100","h-[13px] w-[25px] rounded-full p-[1px]","bg-neutral-black-2","hover:shadow-[0_0_0_3px_var(--color-neutral-black-5)]","focus-visible:shadow-[0_0_0_3px_var(--color-neutral-black-5)]","active:shadow-[0_0_0_3px_var(--color-neutral-black-5)]","data-[state=checked]:bg-neutral-black-1 data-[state=checked]:hover:shadow-[0_0_0_3px_rgba(10,10,10,.1)]","data-[state=checked]:focus-visible:shadow-[0_0_0_3px_rgba(10,10,10,0.2)]","data-[state=checked]:active:shadow-[0_0_0_3px_rgba(10,10,10,0.2)]","disabled:bg-neutral-black-5 disabled:hover:shadow-none disabled:focus-visible:shadow-none disabled:active:shadow-none","data-[state=checked]:disabled:bg-neutral-black-5 data-[state=checked]:disabled:hover:shadow-none data-[state=checked]:disabled:focus-visible:shadow-none data-[state=checked]:disabled:active:shadow-none"]),Hl=ce(["block rounded-full transition-transform duration-200 ease-in-out","shadow-[0_3px_6px_-3px_rgba(0,0,0,0.05),0_2px_4px_-2px_rgba(0,0,0,0.05)]","h-[11px] w-[11px] bg-white","translate-x-0 group-data-[state=checked]:translate-x-[12px]"]);function Ul({className:e,...t}){return u.jsx(zl,{"data-slot":"switch",className:D(Wl(),e),...t,children:u.jsx(Bl,{"data-slot":"switch-thumb",className:D(Hl())})})}function lo(e){const t=e+"CollectionProvider",[r,n]=me(t),[o,a]=r(t,{collectionRef:{current:null},itemMap:new Map}),s=m=>{const{scope:b,children:x}=m,y=ae.useRef(null),w=ae.useRef(new Map).current;return u.jsx(o,{scope:b,itemMap:w,collectionRef:y,children:x})};s.displayName=t;const i=e+"CollectionSlot",c=ze(i),d=ae.forwardRef((m,b)=>{const{scope:x,children:y}=m,w=a(i,x),C=ne(b,w.collectionRef);return u.jsx(c,{ref:C,children:y})});d.displayName=i;const f=e+"CollectionItemSlot",p="data-radix-collection-item",g=ze(f),h=ae.forwardRef((m,b)=>{const{scope:x,children:y,...w}=m,C=ae.useRef(null),E=ne(b,C),A=a(f,x);return ae.useEffect(()=>(A.itemMap.set(C,{ref:C,...w}),()=>void A.itemMap.delete(C))),u.jsx(g,{[p]:"",ref:E,children:y})});h.displayName=f;function v(m){const b=a(e+"CollectionConsumer",m);return ae.useCallback(()=>{const y=b.collectionRef.current;if(!y)return[];const w=Array.from(y.querySelectorAll(`[${p}]`));return Array.from(b.itemMap.values()).sort((A,_)=>w.indexOf(A.ref.current)-w.indexOf(_.ref.current))},[b.collectionRef,b.itemMap])}return[{Provider:s,Slot:d,ItemSlot:h},v,n]}var Gl=l[" useId ".trim().toString()]||(()=>{}),Kl=0;function ue(e){const[t,r]=l.useState(Gl());return ie(()=>{r(n=>n??String(Kl++))},[e]),t?`radix-${t}`:""}function Ne(e){const t=l.useRef(e);return l.useEffect(()=>{t.current=e}),l.useMemo(()=>(...r)=>{var n;return(n=t.current)==null?void 0:n.call(t,...r)},[])}var Yl=l.createContext(void 0);function Er(e){const t=l.useContext(Yl);return e||t||"ltr"}var Rr="rovingFocusGroup.onEntryFocus",ql={bubbles:!1,cancelable:!0},mt="RovingFocusGroup",[_r,co,Xl]=lo(mt),[Zl,uo]=me(mt,[Xl]),[Jl,Ql]=Zl(mt),fo=l.forwardRef((e,t)=>u.jsx(_r.Provider,{scope:e.__scopeRovingFocusGroup,children:u.jsx(_r.Slot,{scope:e.__scopeRovingFocusGroup,children:u.jsx(ec,{...e,ref:t})})}));fo.displayName=mt;var ec=l.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,orientation:n,loop:o=!1,dir:a,currentTabStopId:s,defaultCurrentTabStopId:i,onCurrentTabStopIdChange:c,onEntryFocus:d,preventScrollOnEntryFocus:f=!1,...p}=e,g=l.useRef(null),h=ne(t,g),v=Er(a),[m,b]=_e({prop:s,defaultProp:i??null,onChange:c,caller:mt}),[x,y]=l.useState(!1),w=Ne(d),C=co(r),E=l.useRef(!1),[A,_]=l.useState(0);return l.useEffect(()=>{const R=g.current;if(R)return R.addEventListener(Rr,w),()=>R.removeEventListener(Rr,w)},[w]),u.jsx(Jl,{scope:r,orientation:n,dir:v,loop:o,currentTabStopId:m,onItemFocus:l.useCallback(R=>b(R),[b]),onItemShiftTab:l.useCallback(()=>y(!0),[]),onFocusableItemAdd:l.useCallback(()=>_(R=>R+1),[]),onFocusableItemRemove:l.useCallback(()=>_(R=>R-1),[]),children:u.jsx(z.div,{tabIndex:x||A===0?-1:0,"data-orientation":n,...p,ref:h,style:{outline:"none",...e.style},onMouseDown:B(e.onMouseDown,()=>{E.current=!0}),onFocus:B(e.onFocus,R=>{const H=!E.current;if(R.target===R.currentTarget&&H&&!x){const K=new CustomEvent(Rr,ql);if(R.currentTarget.dispatchEvent(K),!K.defaultPrevented){const X=C().filter(L=>L.focusable),Q=X.find(L=>L.active),ee=X.find(L=>L.id===m),q=[Q,ee,...X].filter(Boolean).map(L=>L.ref.current);ho(q,f)}}E.current=!1}),onBlur:B(e.onBlur,()=>y(!1))})})}),po="RovingFocusGroupItem",mo=l.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,focusable:n=!0,active:o=!1,tabStopId:a,children:s,...i}=e,c=ue(),d=a||c,f=Ql(po,r),p=f.currentTabStopId===d,g=co(r),{onFocusableItemAdd:h,onFocusableItemRemove:v,currentTabStopId:m}=f;return l.useEffect(()=>{if(n)return h(),()=>v()},[n,h,v]),u.jsx(_r.ItemSlot,{scope:r,id:d,focusable:n,active:o,children:u.jsx(z.span,{tabIndex:p?0:-1,"data-orientation":f.orientation,...i,ref:t,onMouseDown:B(e.onMouseDown,b=>{n?f.onItemFocus(d):b.preventDefault()}),onFocus:B(e.onFocus,()=>f.onItemFocus(d)),onKeyDown:B(e.onKeyDown,b=>{if(b.key==="Tab"&&b.shiftKey){f.onItemShiftTab();return}if(b.target!==b.currentTarget)return;const x=nc(b,f.orientation,f.dir);if(x!==void 0){if(b.metaKey||b.ctrlKey||b.altKey||b.shiftKey)return;b.preventDefault();let w=g().filter(C=>C.focusable).map(C=>C.ref.current);if(x==="last")w.reverse();else if(x==="prev"||x==="next"){x==="prev"&&w.reverse();const C=w.indexOf(b.currentTarget);w=f.loop?oc(w,C+1):w.slice(C+1)}setTimeout(()=>ho(w))}}),children:typeof s=="function"?s({isCurrentTabStop:p,hasTabStop:m!=null}):s})})});mo.displayName=po;var tc={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function rc(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function nc(e,t,r){const n=rc(e.key,r);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(n))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(n)))return tc[n]}function ho(e,t=!1){const r=document.activeElement;for(const n of e)if(n===r||(n.focus({preventScroll:t}),document.activeElement!==r))return}function oc(e,t){return e.map((r,n)=>e[(t+n)%e.length])}var ac=fo,sc=mo;function ic(e,t){return l.useReducer((r,n)=>t[r][n]??r,e)}var xe=e=>{const{present:t,children:r}=e,n=lc(t),o=typeof r=="function"?r({present:n.isPresent}):l.Children.only(r),a=ne(n.ref,cc(o));return typeof r=="function"||n.isPresent?l.cloneElement(o,{ref:a}):null};xe.displayName="Presence";function lc(e){const[t,r]=l.useState(),n=l.useRef(null),o=l.useRef(e),a=l.useRef("none"),s=e?"mounted":"unmounted",[i,c]=ic(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return l.useEffect(()=>{const d=Lt(n.current);a.current=i==="mounted"?d:"none"},[i]),ie(()=>{const d=n.current,f=o.current;if(f!==e){const g=a.current,h=Lt(d);e?c("MOUNT"):h==="none"||(d==null?void 0:d.display)==="none"?c("UNMOUNT"):c(f&&g!==h?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,c]),ie(()=>{if(t){let d;const f=t.ownerDocument.defaultView??window,p=h=>{const m=Lt(n.current).includes(CSS.escape(h.animationName));if(h.target===t&&m&&(c("ANIMATION_END"),!o.current)){const b=t.style.animationFillMode;t.style.animationFillMode="forwards",d=f.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=b)})}},g=h=>{h.target===t&&(a.current=Lt(n.current))};return t.addEventListener("animationstart",g),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{f.clearTimeout(d),t.removeEventListener("animationstart",g),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(i),ref:l.useCallback(d=>{n.current=d?getComputedStyle(d):null,r(d)},[])}}function Lt(e){return(e==null?void 0:e.animationName)||"none"}function cc(e){var n,o;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var Nr="Radio",[uc,go]=me(Nr),[dc,fc]=uc(Nr),vo=l.forwardRef((e,t)=>{const{__scopeRadio:r,name:n,checked:o=!1,required:a,disabled:s,value:i="on",onCheck:c,form:d,...f}=e,[p,g]=l.useState(null),h=ne(t,b=>g(b)),v=l.useRef(!1),m=p?d||!!p.closest("form"):!0;return u.jsxs(dc,{scope:r,checked:o,disabled:s,children:[u.jsx(z.button,{type:"button",role:"radio","aria-checked":o,"data-state":wo(o),"data-disabled":s?"":void 0,disabled:s,value:i,...f,ref:h,onClick:B(e.onClick,b=>{o||c==null||c(),m&&(v.current=b.isPropagationStopped(),v.current||b.stopPropagation())})}),m&&u.jsx(yo,{control:p,bubbles:!v.current,name:n,value:i,checked:o,required:a,disabled:s,form:d,style:{transform:"translateX(-100%)"}})]})});vo.displayName=Nr;var bo="RadioIndicator",xo=l.forwardRef((e,t)=>{const{__scopeRadio:r,forceMount:n,...o}=e,a=fc(bo,r);return u.jsx(xe,{present:n||a.checked,children:u.jsx(z.span,{"data-state":wo(a.checked),"data-disabled":a.disabled?"":void 0,...o,ref:t})})});xo.displayName=bo;var pc="RadioBubbleInput",yo=l.forwardRef(({__scopeRadio:e,control:t,checked:r,bubbles:n=!0,...o},a)=>{const s=l.useRef(null),i=ne(s,a),c=Ot(r),d=Mt(t);return l.useEffect(()=>{const f=s.current;if(!f)return;const p=window.HTMLInputElement.prototype,h=Object.getOwnPropertyDescriptor(p,"checked").set;if(c!==r&&h){const v=new Event("click",{bubbles:n});h.call(f,r),f.dispatchEvent(v)}},[c,r,n]),u.jsx(z.input,{type:"radio","aria-hidden":!0,defaultChecked:r,...o,tabIndex:-1,ref:i,style:{...o.style,...d,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});yo.displayName=pc;function wo(e){return e?"checked":"unchecked"}var mc=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],$t="RadioGroup",[hc,Dh]=me($t,[uo,go]),So=uo(),Co=go(),[gc,vc]=hc($t),ko=l.forwardRef((e,t)=>{const{__scopeRadioGroup:r,name:n,defaultValue:o,value:a,required:s=!1,disabled:i=!1,orientation:c,dir:d,loop:f=!0,onValueChange:p,...g}=e,h=So(r),v=Er(d),[m,b]=_e({prop:a,defaultProp:o??null,onChange:p,caller:$t});return u.jsx(gc,{scope:r,name:n,required:s,disabled:i,value:m,onValueChange:b,children:u.jsx(ac,{asChild:!0,...h,orientation:c,dir:v,loop:f,children:u.jsx(z.div,{role:"radiogroup","aria-required":s,"aria-orientation":c,"data-disabled":i?"":void 0,dir:v,...g,ref:t})})})});ko.displayName=$t;var Eo="RadioGroupItem",Ro=l.forwardRef((e,t)=>{const{__scopeRadioGroup:r,disabled:n,...o}=e,a=vc(Eo,r),s=a.disabled||n,i=So(r),c=Co(r),d=l.useRef(null),f=ne(t,d),p=a.value===o.value,g=l.useRef(!1);return l.useEffect(()=>{const h=m=>{mc.includes(m.key)&&(g.current=!0)},v=()=>g.current=!1;return document.addEventListener("keydown",h),document.addEventListener("keyup",v),()=>{document.removeEventListener("keydown",h),document.removeEventListener("keyup",v)}},[]),u.jsx(sc,{asChild:!0,...i,focusable:!s,active:p,children:u.jsx(vo,{disabled:s,required:a.required,checked:p,...c,...o,name:a.name,ref:f,onCheck:()=>a.onValueChange(o.value),onKeyDown:B(h=>{h.key==="Enter"&&h.preventDefault()}),onFocus:B(o.onFocus,()=>{var h;g.current&&((h=d.current)==null||h.click())})})})});Ro.displayName=Eo;var bc="RadioGroupIndicator",_o=l.forwardRef((e,t)=>{const{__scopeRadioGroup:r,...n}=e,o=Co(r);return u.jsx(xo,{...o,...n,ref:t})});_o.displayName=bc;var No=ko,Po=Ro,xc=_o;const yc=()=>({root:D("relative inline-flex items-center cursor-pointer","data-[disabled]:cursor-not-allowed"),indicator:D("relative flex items-center justify-center","w-4 h-4 rounded-full border-2 transition-all duration-200","border-neutral-black-2","hover:shadow-[0_0_0_3px_var(--color-neutral-black-5)] hover:bg-neutral-black-5","focus:shadow-[0_0_0_3px_var(--color-neutral-black-3)] focus:bg-neutral-black-3","data-[state=checked]:border-neutral-black-1","data-[state=checked]:hover:shadow-[0_0_0_3px_var(--color-neutral-black-4)]","data-[state=checked]:hover:bg-neutral-black-4","data-[state=checked]:focus:shadow-[0_0_0_3px_var(--color-neutral-black-1)]","data-[state=checked]:focus:bg-neutral-black-1","data-[disabled]:hover:shadow-none data-[disabled]:hover:bg-transparent data-[disabled]:data-[state=checked]:bg-transparent data-[disabled]:data-[state=checked]:shadow-none data-[disabled]:focus:shadow-none data-[disabled]:border-neutral-black-3"),innerCircle:D("w-2 h-2 rounded-full transition-all duration-200","bg-neutral-black-1"),label:D("ml-2.5 text-md cursor-pointer select-none","data-[disabled]:cursor-not-allowed")}),Ao=l.forwardRef(({className:e,...t},r)=>u.jsx(No,{className:D("grid gap-2",e),...t,ref:r}));Ao.displayName=No.displayName;const To=l.forwardRef(({children:e,disabled:t,...r},n)=>{const o=yc();return u.jsxs("label",{className:o.root,"data-disabled":t,children:[u.jsx(Po,{ref:n,className:D(o.indicator),disabled:t,...r,children:u.jsx(xc,{className:"flex items-center justify-center",children:u.jsx("div",{className:o.innerCircle})})}),e&&u.jsx("span",{className:o.label,"data-disabled":t,children:e})]})});To.displayName=Po.displayName;var Ft="Checkbox",[wc,Lh]=me(Ft),[Sc,Pr]=wc(Ft);function Cc(e){const{__scopeCheckbox:t,checked:r,children:n,defaultChecked:o,disabled:a,form:s,name:i,onCheckedChange:c,required:d,value:f="on",internal_do_not_use_render:p}=e,[g,h]=_e({prop:r,defaultProp:o??!1,onChange:c,caller:Ft}),[v,m]=l.useState(null),[b,x]=l.useState(null),y=l.useRef(!1),w=v?!!s||!!v.closest("form"):!0,C={checked:g,disabled:a,setChecked:h,control:v,setControl:m,name:i,form:s,value:f,hasConsumerStoppedPropagationRef:y,required:d,defaultChecked:je(o)?!1:o,isFormControl:w,bubbleInput:b,setBubbleInput:x};return u.jsx(Sc,{scope:t,...C,children:kc(p)?p(C):n})}var jo="CheckboxTrigger",Io=l.forwardRef(({__scopeCheckbox:e,onKeyDown:t,onClick:r,...n},o)=>{const{control:a,value:s,disabled:i,checked:c,required:d,setControl:f,setChecked:p,hasConsumerStoppedPropagationRef:g,isFormControl:h,bubbleInput:v}=Pr(jo,e),m=ne(o,f),b=l.useRef(c);return l.useEffect(()=>{const x=a==null?void 0:a.form;if(x){const y=()=>p(b.current);return x.addEventListener("reset",y),()=>x.removeEventListener("reset",y)}},[a,p]),u.jsx(z.button,{type:"button",role:"checkbox","aria-checked":je(c)?"mixed":c,"aria-required":d,"data-state":Fo(c),"data-disabled":i?"":void 0,disabled:i,value:s,...n,ref:m,onKeyDown:B(t,x=>{x.key==="Enter"&&x.preventDefault()}),onClick:B(r,x=>{p(y=>je(y)?!0:!y),v&&h&&(g.current=x.isPropagationStopped(),g.current||x.stopPropagation())})})});Io.displayName=jo;var Oo=l.forwardRef((e,t)=>{const{__scopeCheckbox:r,name:n,checked:o,defaultChecked:a,required:s,disabled:i,value:c,onCheckedChange:d,form:f,...p}=e;return u.jsx(Cc,{__scopeCheckbox:r,checked:o,defaultChecked:a,disabled:i,required:s,onCheckedChange:d,name:n,form:f,value:c,internal_do_not_use_render:({isFormControl:g})=>u.jsxs(u.Fragment,{children:[u.jsx(Io,{...p,ref:t,__scopeCheckbox:r}),g&&u.jsx($o,{__scopeCheckbox:r})]})})});Oo.displayName=Ft;var Mo="CheckboxIndicator",Do=l.forwardRef((e,t)=>{const{__scopeCheckbox:r,forceMount:n,...o}=e,a=Pr(Mo,r);return u.jsx(xe,{present:n||je(a.checked)||a.checked===!0,children:u.jsx(z.span,{"data-state":Fo(a.checked),"data-disabled":a.disabled?"":void 0,...o,ref:t,style:{pointerEvents:"none",...e.style}})})});Do.displayName=Mo;var Lo="CheckboxBubbleInput",$o=l.forwardRef(({__scopeCheckbox:e,...t},r)=>{const{control:n,hasConsumerStoppedPropagationRef:o,checked:a,defaultChecked:s,required:i,disabled:c,name:d,value:f,form:p,bubbleInput:g,setBubbleInput:h}=Pr(Lo,e),v=ne(r,h),m=Ot(a),b=Mt(n);l.useEffect(()=>{const y=g;if(!y)return;const w=window.HTMLInputElement.prototype,E=Object.getOwnPropertyDescriptor(w,"checked").set,A=!o.current;if(m!==a&&E){const _=new Event("click",{bubbles:A});y.indeterminate=je(a),E.call(y,je(a)?!1:a),y.dispatchEvent(_)}},[g,m,a,o]);const x=l.useRef(je(a)?!1:a);return u.jsx(z.input,{type:"checkbox","aria-hidden":!0,defaultChecked:s??x.current,required:i,disabled:c,name:d,value:f,form:p,...t,tabIndex:-1,ref:v,style:{...t.style,...b,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});$o.displayName=Lo;function kc(e){return typeof e=="function"}function je(e){return e==="indeterminate"}function Fo(e){return je(e)?"indeterminate":e?"checked":"unchecked"}/**
22
+ <%s key={someKey} {...props} />`,A,F,U,F),te[F+A]=!0)}if(F=null,S!==void 0&&(r(S),F=""+S),s(B)&&(r(B.key),F=""+B.key),"key"in B){S={};for(var Z in B)Z!=="key"&&(S[Z]=B[Z])}else S=B;return F&&i(S,typeof k=="function"?k.displayName||k.name||"Unknown":k),d(k,F,I,D,o(),S,Y,P)}function p(k){typeof k=="object"&&k!==null&&k.$$typeof===h&&k._store&&(k._store.validated=1)}var g=ae,h=Symbol.for("react.transitional.element"),v=Symbol.for("react.portal"),m=Symbol.for("react.fragment"),b=Symbol.for("react.strict_mode"),x=Symbol.for("react.profiler"),y=Symbol.for("react.consumer"),w=Symbol.for("react.context"),C=Symbol.for("react.forward_ref"),E=Symbol.for("react.suspense"),T=Symbol.for("react.suspense_list"),_=Symbol.for("react.memo"),R=Symbol.for("react.lazy"),G=Symbol.for("react.activity"),K=Symbol.for("react.client.reference"),X=g.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Q=Object.prototype.hasOwnProperty,ee=Array.isArray,W=console.createTask?console.createTask:function(){return null};g={"react-stack-bottom-frame":function(k){return k()}};var q,$={},H=g["react-stack-bottom-frame"].bind(g,a)(),N=W(n(a)),te={};ft.Fragment=m,ft.jsx=function(k,B,S,A,D){var I=1e4>X.recentlyCreatedOwnerStacks++;return f(k,B,S,!1,A,D,I?Error("react-stack-top-frame"):H,I?W(n(k)):N)},ft.jsxs=function(k,B,S,A,D){var I=1e4>X.recentlyCreatedOwnerStacks++;return f(k,B,S,!0,A,D,I?Error("react-stack-top-frame"):H,I?W(n(k)):N)}}()),ft}process.env.NODE_ENV==="production"?Sr.exports=sl():Sr.exports=il();var u=Sr.exports;function Fn(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Ve(...e){return t=>{let r=!1;const n=e.map(o=>{const a=Fn(o,t);return!r&&typeof a=="function"&&(r=!0),a});if(r)return()=>{for(let o=0;o<n.length;o++){const a=n[o];typeof a=="function"?a():Fn(e[o],null)}}}}function ne(...e){return l.useCallback(Ve(...e),e)}function Be(e){const t=ll(e),r=l.forwardRef((n,o)=>{const{children:a,...s}=n,i=l.Children.toArray(a),c=i.find(ul);if(c){const d=c.props.children,f=i.map(p=>p===c?l.Children.count(d)>1?l.Children.only(null):l.isValidElement(d)?d.props.children:null:p);return u.jsx(t,{...s,ref:o,children:l.isValidElement(d)?l.cloneElement(d,void 0,f):null})}return u.jsx(t,{...s,ref:o,children:a})});return r.displayName=`${e}.Slot`,r}var At=Be("Slot");function ll(e){const t=l.forwardRef((r,n)=>{const{children:o,...a}=r;if(l.isValidElement(o)){const s=fl(o),i=dl(a,o.props);return o.type!==l.Fragment&&(i.ref=n?Ve(n,s):s),l.cloneElement(o,i)}return l.Children.count(o)>1?l.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Vn=Symbol("radix.slottable");function cl(e){const t=({children:r})=>u.jsx(u.Fragment,{children:r});return t.displayName=`${e}.Slottable`,t.__radixId=Vn,t}function ul(e){return l.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Vn}function dl(e,t){const r={...t};for(const n in t){const o=e[n],a=t[n];/^on[A-Z]/.test(n)?o&&a?r[n]=(...i)=>{const c=a(...i);return o(...i),c}:o&&(r[n]=o):n==="style"?r[n]={...o,...a}:n==="className"&&(r[n]=[o,a].filter(Boolean).join(" "))}return{...e,...r}}function fl(e){var n,o;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}function Bn(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=Bn(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function zn(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=Bn(e))&&(n&&(n+=" "),n+=t);return n}const Cr="-",pl=e=>{const t=hl(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:s=>{const i=s.split(Cr);return i[0]===""&&i.length!==1&&i.shift(),Wn(i,t)||ml(s)},getConflictingClassGroupIds:(s,i)=>{const c=r[s]||[];return i&&n[s]?[...c,...n[s]]:c}}},Wn=(e,t)=>{var s;if(e.length===0)return t.classGroupId;const r=e[0],n=t.nextPart.get(r),o=n?Wn(e.slice(1),n):void 0;if(o)return o;if(t.validators.length===0)return;const a=e.join(Cr);return(s=t.validators.find(({validator:i})=>i(a)))==null?void 0:s.classGroupId},Gn=/^\[(.+)\]$/,ml=e=>{if(Gn.test(e)){const t=Gn.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},hl=e=>{const{theme:t,classGroups:r}=e,n={nextPart:new Map,validators:[]};for(const o in r)kr(r[o],n,o,t);return n},kr=(e,t,r,n)=>{e.forEach(o=>{if(typeof o=="string"){const a=o===""?t:Hn(t,o);a.classGroupId=r;return}if(typeof o=="function"){if(gl(o)){kr(o(n),t,r,n);return}t.validators.push({validator:o,classGroupId:r});return}Object.entries(o).forEach(([a,s])=>{kr(s,Hn(t,a),r,n)})})},Hn=(e,t)=>{let r=e;return t.split(Cr).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r},gl=e=>e.isThemeGetter,vl=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,n=new Map;const o=(a,s)=>{r.set(a,s),t++,t>e&&(t=0,n=r,r=new Map)};return{get(a){let s=r.get(a);if(s!==void 0)return s;if((s=n.get(a))!==void 0)return o(a,s),s},set(a,s){r.has(a)?r.set(a,s):o(a,s)}}},Er="!",Rr=":",bl=Rr.length,xl=e=>{const{prefix:t,experimentalParseClassName:r}=e;let n=o=>{const a=[];let s=0,i=0,c=0,d;for(let v=0;v<o.length;v++){let m=o[v];if(s===0&&i===0){if(m===Rr){a.push(o.slice(c,v)),c=v+bl;continue}if(m==="/"){d=v;continue}}m==="["?s++:m==="]"?s--:m==="("?i++:m===")"&&i--}const f=a.length===0?o:o.substring(c),p=yl(f),g=p!==f,h=d&&d>c?d-c:void 0;return{modifiers:a,hasImportantModifier:g,baseClassName:p,maybePostfixModifierPosition:h}};if(t){const o=t+Rr,a=n;n=s=>s.startsWith(o)?a(s.substring(o.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:s,maybePostfixModifierPosition:void 0}}if(r){const o=n;n=a=>r({className:a,parseClassName:o})}return n},yl=e=>e.endsWith(Er)?e.substring(0,e.length-1):e.startsWith(Er)?e.substring(1):e,wl=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(n=>[n,!0]));return n=>{if(n.length<=1)return n;const o=[];let a=[];return n.forEach(s=>{s[0]==="["||t[s]?(o.push(...a.sort(),s),a=[]):a.push(s)}),o.push(...a.sort()),o}},Sl=e=>({cache:vl(e.cacheSize),parseClassName:xl(e),sortModifiers:wl(e),...pl(e)}),Cl=/\s+/,kl=(e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:o,sortModifiers:a}=t,s=[],i=e.trim().split(Cl);let c="";for(let d=i.length-1;d>=0;d-=1){const f=i[d],{isExternal:p,modifiers:g,hasImportantModifier:h,baseClassName:v,maybePostfixModifierPosition:m}=r(f);if(p){c=f+(c.length>0?" "+c:c);continue}let b=!!m,x=n(b?v.substring(0,m):v);if(!x){if(!b){c=f+(c.length>0?" "+c:c);continue}if(x=n(v),!x){c=f+(c.length>0?" "+c:c);continue}b=!1}const y=a(g).join(":"),w=h?y+Er:y,C=w+x;if(s.includes(C))continue;s.push(C);const E=o(x,b);for(let T=0;T<E.length;++T){const _=E[T];s.push(w+_)}c=f+(c.length>0?" "+c:c)}return c};function El(){let e=0,t,r,n="";for(;e<arguments.length;)(t=arguments[e++])&&(r=Un(t))&&(n&&(n+=" "),n+=r);return n}const Un=e=>{if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=Un(e[n]))&&(r&&(r+=" "),r+=t);return r};function Rl(e,...t){let r,n,o,a=s;function s(c){const d=t.reduce((f,p)=>p(f),e());return r=Sl(d),n=r.cache.get,o=r.cache.set,a=i,i(c)}function i(c){const d=n(c);if(d)return d;const f=kl(c,r);return o(c,f),f}return function(){return a(El.apply(null,arguments))}}const se=e=>{const t=r=>r[e]||[];return t.isThemeGetter=!0,t},Kn=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Yn=/^\((?:(\w[\w-]*):)?(.+)\)$/i,_l=/^\d+\/\d+$/,Nl=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Pl=/\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$/,Tl=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Al=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Il=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ye=e=>_l.test(e),J=e=>!!e&&!Number.isNaN(Number(e)),Ae=e=>!!e&&Number.isInteger(Number(e)),_r=e=>e.endsWith("%")&&J(e.slice(0,-1)),_e=e=>Nl.test(e),jl=()=>!0,Ol=e=>Pl.test(e)&&!Tl.test(e),qn=()=>!1,Ml=e=>Al.test(e),Dl=e=>Il.test(e),Ll=e=>!O(e)&&!M(e),$l=e=>qe(e,eo,qn),O=e=>Kn.test(e),ze=e=>qe(e,to,Ol),Nr=e=>qe(e,Wl,J),Xn=e=>qe(e,Jn,qn),Fl=e=>qe(e,Qn,Dl),It=e=>qe(e,ro,Ml),M=e=>Yn.test(e),pt=e=>Xe(e,to),Vl=e=>Xe(e,Gl),Zn=e=>Xe(e,Jn),Bl=e=>Xe(e,eo),zl=e=>Xe(e,Qn),jt=e=>Xe(e,ro,!0),qe=(e,t,r)=>{const n=Kn.exec(e);return n?n[1]?t(n[1]):r(n[2]):!1},Xe=(e,t,r=!1)=>{const n=Yn.exec(e);return n?n[1]?t(n[1]):r:!1},Jn=e=>e==="position"||e==="percentage",Qn=e=>e==="image"||e==="url",eo=e=>e==="length"||e==="size"||e==="bg-size",to=e=>e==="length",Wl=e=>e==="number",Gl=e=>e==="family-name",ro=e=>e==="shadow",Hl=Rl(()=>{const e=se("color"),t=se("font"),r=se("text"),n=se("font-weight"),o=se("tracking"),a=se("leading"),s=se("breakpoint"),i=se("container"),c=se("spacing"),d=se("radius"),f=se("shadow"),p=se("inset-shadow"),g=se("text-shadow"),h=se("drop-shadow"),v=se("blur"),m=se("perspective"),b=se("aspect"),x=se("ease"),y=se("animate"),w=()=>["auto","avoid","all","avoid-page","page","left","right","column"],C=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],E=()=>[...C(),M,O],T=()=>["auto","hidden","clip","visible","scroll"],_=()=>["auto","contain","none"],R=()=>[M,O,c],G=()=>[Ye,"full","auto",...R()],K=()=>[Ae,"none","subgrid",M,O],X=()=>["auto",{span:["full",Ae,M,O]},Ae,M,O],Q=()=>[Ae,"auto",M,O],ee=()=>["auto","min","max","fr",M,O],W=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],q=()=>["start","end","center","stretch","center-safe","end-safe"],$=()=>["auto",...R()],H=()=>[Ye,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...R()],N=()=>[e,M,O],te=()=>[...C(),Zn,Xn,{position:[M,O]}],k=()=>["no-repeat",{repeat:["","x","y","space","round"]}],B=()=>["auto","cover","contain",Bl,$l,{size:[M,O]}],S=()=>[_r,pt,ze],A=()=>["","none","full",d,M,O],D=()=>["",J,pt,ze],I=()=>["solid","dashed","dotted","double"],Y=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],P=()=>[J,_r,Zn,Xn],F=()=>["","none",v,M,O],U=()=>["none",J,M,O],Z=()=>["none",J,M,O],re=()=>[J,M,O],oe=()=>[Ye,"full",...R()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[_e],breakpoint:[_e],color:[jl],container:[_e],"drop-shadow":[_e],ease:["in","out","in-out"],font:[Ll],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[_e],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[_e],shadow:[_e],spacing:["px",J],text:[_e],"text-shadow":[_e],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Ye,O,M,b]}],container:["container"],columns:[{columns:[J,O,M,i]}],"break-after":[{"break-after":w()}],"break-before":[{"break-before":w()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:E()}],overflow:[{overflow:T()}],"overflow-x":[{"overflow-x":T()}],"overflow-y":[{"overflow-y":T()}],overscroll:[{overscroll:_()}],"overscroll-x":[{"overscroll-x":_()}],"overscroll-y":[{"overscroll-y":_()}],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:[Ae,"auto",M,O]}],basis:[{basis:[Ye,"full","auto",i,...R()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[J,Ye,"auto","initial","none",O]}],grow:[{grow:["",J,M,O]}],shrink:[{shrink:["",J,M,O]}],order:[{order:[Ae,"first","last","none",M,O]}],"grid-cols":[{"grid-cols":K()}],"col-start-end":[{col:X()}],"col-start":[{"col-start":Q()}],"col-end":[{"col-end":Q()}],"grid-rows":[{"grid-rows":K()}],"row-start-end":[{row:X()}],"row-start":[{"row-start":Q()}],"row-end":[{"row-end":Q()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":ee()}],"auto-rows":[{"auto-rows":ee()}],gap:[{gap:R()}],"gap-x":[{"gap-x":R()}],"gap-y":[{"gap-y":R()}],"justify-content":[{justify:[...W(),"normal"]}],"justify-items":[{"justify-items":[...q(),"normal"]}],"justify-self":[{"justify-self":["auto",...q()]}],"align-content":[{content:["normal",...W()]}],"align-items":[{items:[...q(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...q(),{baseline:["","last"]}]}],"place-content":[{"place-content":W()}],"place-items":[{"place-items":[...q(),"baseline"]}],"place-self":[{"place-self":["auto",...q()]}],p:[{p:R()}],px:[{px:R()}],py:[{py:R()}],ps:[{ps:R()}],pe:[{pe:R()}],pt:[{pt:R()}],pr:[{pr:R()}],pb:[{pb:R()}],pl:[{pl:R()}],m:[{m:$()}],mx:[{mx:$()}],my:[{my:$()}],ms:[{ms:$()}],me:[{me:$()}],mt:[{mt:$()}],mr:[{mr:$()}],mb:[{mb:$()}],ml:[{ml:$()}],"space-x":[{"space-x":R()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":R()}],"space-y-reverse":["space-y-reverse"],size:[{size:H()}],w:[{w:[i,"screen",...H()]}],"min-w":[{"min-w":[i,"screen","none",...H()]}],"max-w":[{"max-w":[i,"screen","none","prose",{screen:[s]},...H()]}],h:[{h:["screen","lh",...H()]}],"min-h":[{"min-h":["screen","lh","none",...H()]}],"max-h":[{"max-h":["screen","lh",...H()]}],"font-size":[{text:["base",r,pt,ze]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,M,Nr]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",_r,O]}],"font-family":[{font:[Vl,O,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,M,O]}],"line-clamp":[{"line-clamp":[J,"none",M,Nr]}],leading:[{leading:[a,...R()]}],"list-image":[{"list-image":["none",M,O]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",M,O]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:N()}],"text-color":[{text:N()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...I(),"wavy"]}],"text-decoration-thickness":[{decoration:[J,"from-font","auto",M,ze]}],"text-decoration-color":[{decoration:N()}],"underline-offset":[{"underline-offset":[J,"auto",M,O]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:R()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",M,O]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",M,O]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:te()}],"bg-repeat":[{bg:k()}],"bg-size":[{bg:B()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Ae,M,O],radial:["",M,O],conic:[Ae,M,O]},zl,Fl]}],"bg-color":[{bg:N()}],"gradient-from-pos":[{from:S()}],"gradient-via-pos":[{via:S()}],"gradient-to-pos":[{to:S()}],"gradient-from":[{from:N()}],"gradient-via":[{via:N()}],"gradient-to":[{to:N()}],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:D()}],"border-w-x":[{"border-x":D()}],"border-w-y":[{"border-y":D()}],"border-w-s":[{"border-s":D()}],"border-w-e":[{"border-e":D()}],"border-w-t":[{"border-t":D()}],"border-w-r":[{"border-r":D()}],"border-w-b":[{"border-b":D()}],"border-w-l":[{"border-l":D()}],"divide-x":[{"divide-x":D()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":D()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...I(),"hidden","none"]}],"divide-style":[{divide:[...I(),"hidden","none"]}],"border-color":[{border:N()}],"border-color-x":[{"border-x":N()}],"border-color-y":[{"border-y":N()}],"border-color-s":[{"border-s":N()}],"border-color-e":[{"border-e":N()}],"border-color-t":[{"border-t":N()}],"border-color-r":[{"border-r":N()}],"border-color-b":[{"border-b":N()}],"border-color-l":[{"border-l":N()}],"divide-color":[{divide:N()}],"outline-style":[{outline:[...I(),"none","hidden"]}],"outline-offset":[{"outline-offset":[J,M,O]}],"outline-w":[{outline:["",J,pt,ze]}],"outline-color":[{outline:N()}],shadow:[{shadow:["","none",f,jt,It]}],"shadow-color":[{shadow:N()}],"inset-shadow":[{"inset-shadow":["none",p,jt,It]}],"inset-shadow-color":[{"inset-shadow":N()}],"ring-w":[{ring:D()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:N()}],"ring-offset-w":[{"ring-offset":[J,ze]}],"ring-offset-color":[{"ring-offset":N()}],"inset-ring-w":[{"inset-ring":D()}],"inset-ring-color":[{"inset-ring":N()}],"text-shadow":[{"text-shadow":["none",g,jt,It]}],"text-shadow-color":[{"text-shadow":N()}],opacity:[{opacity:[J,M,O]}],"mix-blend":[{"mix-blend":[...Y(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Y()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[J]}],"mask-image-linear-from-pos":[{"mask-linear-from":P()}],"mask-image-linear-to-pos":[{"mask-linear-to":P()}],"mask-image-linear-from-color":[{"mask-linear-from":N()}],"mask-image-linear-to-color":[{"mask-linear-to":N()}],"mask-image-t-from-pos":[{"mask-t-from":P()}],"mask-image-t-to-pos":[{"mask-t-to":P()}],"mask-image-t-from-color":[{"mask-t-from":N()}],"mask-image-t-to-color":[{"mask-t-to":N()}],"mask-image-r-from-pos":[{"mask-r-from":P()}],"mask-image-r-to-pos":[{"mask-r-to":P()}],"mask-image-r-from-color":[{"mask-r-from":N()}],"mask-image-r-to-color":[{"mask-r-to":N()}],"mask-image-b-from-pos":[{"mask-b-from":P()}],"mask-image-b-to-pos":[{"mask-b-to":P()}],"mask-image-b-from-color":[{"mask-b-from":N()}],"mask-image-b-to-color":[{"mask-b-to":N()}],"mask-image-l-from-pos":[{"mask-l-from":P()}],"mask-image-l-to-pos":[{"mask-l-to":P()}],"mask-image-l-from-color":[{"mask-l-from":N()}],"mask-image-l-to-color":[{"mask-l-to":N()}],"mask-image-x-from-pos":[{"mask-x-from":P()}],"mask-image-x-to-pos":[{"mask-x-to":P()}],"mask-image-x-from-color":[{"mask-x-from":N()}],"mask-image-x-to-color":[{"mask-x-to":N()}],"mask-image-y-from-pos":[{"mask-y-from":P()}],"mask-image-y-to-pos":[{"mask-y-to":P()}],"mask-image-y-from-color":[{"mask-y-from":N()}],"mask-image-y-to-color":[{"mask-y-to":N()}],"mask-image-radial":[{"mask-radial":[M,O]}],"mask-image-radial-from-pos":[{"mask-radial-from":P()}],"mask-image-radial-to-pos":[{"mask-radial-to":P()}],"mask-image-radial-from-color":[{"mask-radial-from":N()}],"mask-image-radial-to-color":[{"mask-radial-to":N()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":C()}],"mask-image-conic-pos":[{"mask-conic":[J]}],"mask-image-conic-from-pos":[{"mask-conic-from":P()}],"mask-image-conic-to-pos":[{"mask-conic-to":P()}],"mask-image-conic-from-color":[{"mask-conic-from":N()}],"mask-image-conic-to-color":[{"mask-conic-to":N()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:te()}],"mask-repeat":[{mask:k()}],"mask-size":[{mask:B()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",M,O]}],filter:[{filter:["","none",M,O]}],blur:[{blur:F()}],brightness:[{brightness:[J,M,O]}],contrast:[{contrast:[J,M,O]}],"drop-shadow":[{"drop-shadow":["","none",h,jt,It]}],"drop-shadow-color":[{"drop-shadow":N()}],grayscale:[{grayscale:["",J,M,O]}],"hue-rotate":[{"hue-rotate":[J,M,O]}],invert:[{invert:["",J,M,O]}],saturate:[{saturate:[J,M,O]}],sepia:[{sepia:["",J,M,O]}],"backdrop-filter":[{"backdrop-filter":["","none",M,O]}],"backdrop-blur":[{"backdrop-blur":F()}],"backdrop-brightness":[{"backdrop-brightness":[J,M,O]}],"backdrop-contrast":[{"backdrop-contrast":[J,M,O]}],"backdrop-grayscale":[{"backdrop-grayscale":["",J,M,O]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[J,M,O]}],"backdrop-invert":[{"backdrop-invert":["",J,M,O]}],"backdrop-opacity":[{"backdrop-opacity":[J,M,O]}],"backdrop-saturate":[{"backdrop-saturate":[J,M,O]}],"backdrop-sepia":[{"backdrop-sepia":["",J,M,O]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":R()}],"border-spacing-x":[{"border-spacing-x":R()}],"border-spacing-y":[{"border-spacing-y":R()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",M,O]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[J,"initial",M,O]}],ease:[{ease:["linear","initial",x,M,O]}],delay:[{delay:[J,M,O]}],animate:[{animate:["none",y,M,O]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[m,M,O]}],"perspective-origin":[{"perspective-origin":E()}],rotate:[{rotate:U()}],"rotate-x":[{"rotate-x":U()}],"rotate-y":[{"rotate-y":U()}],"rotate-z":[{"rotate-z":U()}],scale:[{scale:Z()}],"scale-x":[{"scale-x":Z()}],"scale-y":[{"scale-y":Z()}],"scale-z":[{"scale-z":Z()}],"scale-3d":["scale-3d"],skew:[{skew:re()}],"skew-x":[{"skew-x":re()}],"skew-y":[{"skew-y":re()}],transform:[{transform:[M,O,"","none","gpu","cpu"]}],"transform-origin":[{origin:E()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:oe()}],"translate-x":[{"translate-x":oe()}],"translate-y":[{"translate-y":oe()}],"translate-z":[{"translate-z":oe()}],"translate-none":["translate-none"],accent:[{accent:N()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:N()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",M,O]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":R()}],"scroll-mx":[{"scroll-mx":R()}],"scroll-my":[{"scroll-my":R()}],"scroll-ms":[{"scroll-ms":R()}],"scroll-me":[{"scroll-me":R()}],"scroll-mt":[{"scroll-mt":R()}],"scroll-mr":[{"scroll-mr":R()}],"scroll-mb":[{"scroll-mb":R()}],"scroll-ml":[{"scroll-ml":R()}],"scroll-p":[{"scroll-p":R()}],"scroll-px":[{"scroll-px":R()}],"scroll-py":[{"scroll-py":R()}],"scroll-ps":[{"scroll-ps":R()}],"scroll-pe":[{"scroll-pe":R()}],"scroll-pt":[{"scroll-pt":R()}],"scroll-pr":[{"scroll-pr":R()}],"scroll-pb":[{"scroll-pb":R()}],"scroll-pl":[{"scroll-pl":R()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",M,O]}],fill:[{fill:["none",...N()]}],"stroke-w":[{stroke:[J,pt,ze,Nr]}],stroke:[{stroke:["none",...N()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}});function j(...e){return Hl(zn(e))}const no=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,oo=zn,le=(e,t)=>r=>{var n;if((t==null?void 0:t.variants)==null)return oo(e,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:o,defaultVariants:a}=t,s=Object.keys(o).map(d=>{const f=r==null?void 0:r[d],p=a==null?void 0:a[d];if(f===null)return null;const g=no(f)||no(p);return o[d][g]}),i=r&&Object.entries(r).reduce((d,f)=>{let[p,g]=f;return g===void 0||(d[p]=g),d},{}),c=t==null||(n=t.compoundVariants)===null||n===void 0?void 0:n.reduce((d,f)=>{let{class:p,className:g,...h}=f;return Object.entries(h).every(v=>{let[m,b]=v;return Array.isArray(b)?b.includes({...a,...i}[m]):{...a,...i}[m]===b})?[...d,p,g]:d},[]);return oo(e,s,c,r==null?void 0:r.class,r==null?void 0:r.className)},Ul=le("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:ring-2 focus-visible:ring-offset-2 cursor-pointer",{variants:{variant:{default:"bg-neutral-black-1 text-sm font-normal text-white shadow-sm hover:bg-neutral-black-2 focus-visible:ring-neutral-black-1",primary:"bg-neutral-black-5 text-sm font-normal text-neutral-70 hover:bg-neutral-black-5 focus-visible:ring-bg-neutral-black-5",outline:"bg-transparent text-black hover:bg-neutral-black-2 focus-visible:ring-4 focus-visible:ring-bg-surface border border-bg-neutral-black-2"},size:{default:"h-9 px-4 py-2",sm:"h-8 px-3 text-xs",lg:"h-10 px-6",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}});function Ot({className:e,variant:t,size:r,asChild:n=!1,children:o,...a}){const s=n?At:"button";return u.jsx(s,{"data-slot":"button",className:j(Ul({variant:t,size:r}),e),...a,children:o})}function z(e,t,{checkForDefaultPrevented:r=!0}={}){return function(o){if(e==null||e(o),r===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function Kl(e,t){const r=l.createContext(t),n=a=>{const{children:s,...i}=a,c=l.useMemo(()=>i,Object.values(i));return u.jsx(r.Provider,{value:c,children:s})};n.displayName=e+"Provider";function o(a){const s=l.useContext(r);if(s)return s;if(t!==void 0)return t;throw new Error(`\`${a}\` must be used within \`${e}\``)}return[n,o]}function de(e,t=[]){let r=[];function n(a,s){const i=l.createContext(s),c=r.length;r=[...r,s];const d=p=>{var x;const{scope:g,children:h,...v}=p,m=((x=g==null?void 0:g[e])==null?void 0:x[c])||i,b=l.useMemo(()=>v,Object.values(v));return u.jsx(m.Provider,{value:b,children:h})};d.displayName=a+"Provider";function f(p,g){var m;const h=((m=g==null?void 0:g[e])==null?void 0:m[c])||i,v=l.useContext(h);if(v)return v;if(s!==void 0)return s;throw new Error(`\`${p}\` must be used within \`${a}\``)}return[d,f]}const o=()=>{const a=r.map(s=>l.createContext(s));return function(i){const c=(i==null?void 0:i[e])||a;return l.useMemo(()=>({[`__scope${e}`]:{...i,[e]:c}}),[i,c])}};return o.scopeName=e,[n,Yl(o,...t)]}function Yl(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(a){const s=n.reduce((i,{useScope:c,scopeName:d})=>{const p=c(a)[`__scope${d}`];return{...i,...p}},{});return l.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return r.scopeName=t.scopeName,r}var ie=globalThis!=null&&globalThis.document?l.useLayoutEffect:()=>{},ql=l[" useInsertionEffect ".trim().toString()]||ie;function ye({prop:e,defaultProp:t,onChange:r=()=>{},caller:n}){const[o,a,s]=Xl({defaultProp:t,onChange:r}),i=e!==void 0,c=i?e:o;{const f=l.useRef(e!==void 0);l.useEffect(()=>{const p=f.current;p!==i&&console.warn(`${n} is changing from ${p?"controlled":"uncontrolled"} to ${i?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),f.current=i},[i,n])}const d=l.useCallback(f=>{var p;if(i){const g=Zl(f)?f(e):f;g!==e&&((p=s.current)==null||p.call(s,g))}else a(f)},[i,e,a,s]);return[c,d]}function Xl({defaultProp:e,onChange:t}){const[r,n]=l.useState(e),o=l.useRef(r),a=l.useRef(t);return ql(()=>{a.current=t},[t]),l.useEffect(()=>{var s;o.current!==r&&((s=a.current)==null||s.call(a,r),o.current=r)},[r,o]),[r,n,a]}function Zl(e){return typeof e=="function"}function Mt(e){const t=l.useRef({value:e,previous:e});return l.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}function Dt(e){const[t,r]=l.useState(void 0);return ie(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const n=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const a=o[0];let s,i;if("borderBoxSize"in a){const c=a.borderBoxSize,d=Array.isArray(c)?c[0]:c;s=d.inlineSize,i=d.blockSize}else s=e.offsetWidth,i=e.offsetHeight;r({width:s,height:i})});return n.observe(e,{box:"border-box"}),()=>n.unobserve(e)}else r(void 0)},[e]),t}var Jl=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],V=Jl.reduce((e,t)=>{const r=Be(`Primitive.${t}`),n=l.forwardRef((o,a)=>{const{asChild:s,...i}=o,c=s?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),u.jsx(c,{...i,ref:a})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function Ql(e,t){e&&Tt.flushSync(()=>e.dispatchEvent(t))}var Lt="Switch",[ec,sg]=de(Lt),[tc,rc]=ec(Lt),ao=l.forwardRef((e,t)=>{const{__scopeSwitch:r,name:n,checked:o,defaultChecked:a,required:s,disabled:i,value:c="on",onCheckedChange:d,form:f,...p}=e,[g,h]=l.useState(null),v=ne(t,w=>h(w)),m=l.useRef(!1),b=g?f||!!g.closest("form"):!0,[x,y]=ye({prop:o,defaultProp:a??!1,onChange:d,caller:Lt});return u.jsxs(tc,{scope:r,checked:x,disabled:i,children:[u.jsx(V.button,{type:"button",role:"switch","aria-checked":x,"aria-required":s,"data-state":co(x),"data-disabled":i?"":void 0,disabled:i,value:c,...p,ref:v,onClick:z(e.onClick,w=>{y(C=>!C),b&&(m.current=w.isPropagationStopped(),m.current||w.stopPropagation())})}),b&&u.jsx(lo,{control:g,bubbles:!m.current,name:n,value:c,checked:x,required:s,disabled:i,form:f,style:{transform:"translateX(-100%)"}})]})});ao.displayName=Lt;var so="SwitchThumb",io=l.forwardRef((e,t)=>{const{__scopeSwitch:r,...n}=e,o=rc(so,r);return u.jsx(V.span,{"data-state":co(o.checked),"data-disabled":o.disabled?"":void 0,...n,ref:t})});io.displayName=so;var nc="SwitchBubbleInput",lo=l.forwardRef(({__scopeSwitch:e,control:t,checked:r,bubbles:n=!0,...o},a)=>{const s=l.useRef(null),i=ne(s,a),c=Mt(r),d=Dt(t);return l.useEffect(()=>{const f=s.current;if(!f)return;const p=window.HTMLInputElement.prototype,h=Object.getOwnPropertyDescriptor(p,"checked").set;if(c!==r&&h){const v=new Event("click",{bubbles:n});h.call(f,r),f.dispatchEvent(v)}},[c,r,n]),u.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:r,...o,tabIndex:-1,ref:i,style:{...o.style,...d,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});lo.displayName=nc;function co(e){return e?"checked":"unchecked"}var oc=ao,ac=io;const sc=le(["group relative inline-flex items-center cursor-pointer transition-all duration-200 ease-in-out","focus:outline-none focus-visible:ring-2 focus-visible:ring-offset-2","disabled:cursor-not-allowed disabled:opacity-100","h-[13px] w-[25px] rounded-full p-[1px]","bg-neutral-black-2","hover:shadow-[0_0_0_3px_var(--color-neutral-black-5)]","focus-visible:shadow-[0_0_0_3px_var(--color-neutral-black-5)]","active:shadow-[0_0_0_3px_var(--color-neutral-black-5)]","data-[state=checked]:bg-neutral-black-1 data-[state=checked]:hover:shadow-[0_0_0_3px_rgba(10,10,10,.1)]","data-[state=checked]:focus-visible:shadow-[0_0_0_3px_rgba(10,10,10,0.2)]","data-[state=checked]:active:shadow-[0_0_0_3px_rgba(10,10,10,0.2)]","disabled:bg-neutral-black-5 disabled:hover:shadow-none disabled:focus-visible:shadow-none disabled:active:shadow-none","data-[state=checked]:disabled:bg-neutral-black-5 data-[state=checked]:disabled:hover:shadow-none data-[state=checked]:disabled:focus-visible:shadow-none data-[state=checked]:disabled:active:shadow-none"]),ic=le(["block rounded-full transition-transform duration-200 ease-in-out","shadow-[0_3px_6px_-3px_rgba(0,0,0,0.05),0_2px_4px_-2px_rgba(0,0,0,0.05)]","h-[11px] w-[11px] bg-white","translate-x-0 group-data-[state=checked]:translate-x-[12px]"]);function lc({className:e,...t}){return u.jsx(oc,{"data-slot":"switch",className:j(sc(),e),...t,children:u.jsx(ac,{"data-slot":"switch-thumb",className:j(ic())})})}function uo(e){const t=e+"CollectionProvider",[r,n]=de(t),[o,a]=r(t,{collectionRef:{current:null},itemMap:new Map}),s=m=>{const{scope:b,children:x}=m,y=ae.useRef(null),w=ae.useRef(new Map).current;return u.jsx(o,{scope:b,itemMap:w,collectionRef:y,children:x})};s.displayName=t;const i=e+"CollectionSlot",c=Be(i),d=ae.forwardRef((m,b)=>{const{scope:x,children:y}=m,w=a(i,x),C=ne(b,w.collectionRef);return u.jsx(c,{ref:C,children:y})});d.displayName=i;const f=e+"CollectionItemSlot",p="data-radix-collection-item",g=Be(f),h=ae.forwardRef((m,b)=>{const{scope:x,children:y,...w}=m,C=ae.useRef(null),E=ne(b,C),T=a(f,x);return ae.useEffect(()=>(T.itemMap.set(C,{ref:C,...w}),()=>void T.itemMap.delete(C))),u.jsx(g,{[p]:"",ref:E,children:y})});h.displayName=f;function v(m){const b=a(e+"CollectionConsumer",m);return ae.useCallback(()=>{const y=b.collectionRef.current;if(!y)return[];const w=Array.from(y.querySelectorAll(`[${p}]`));return Array.from(b.itemMap.values()).sort((T,_)=>w.indexOf(T.ref.current)-w.indexOf(_.ref.current))},[b.collectionRef,b.itemMap])}return[{Provider:s,Slot:d,ItemSlot:h},v,n]}var cc=l[" useId ".trim().toString()]||(()=>{}),uc=0;function ce(e){const[t,r]=l.useState(cc());return ie(()=>{r(n=>n??String(uc++))},[e]),t?`radix-${t}`:""}function Ne(e){const t=l.useRef(e);return l.useEffect(()=>{t.current=e}),l.useMemo(()=>(...r)=>{var n;return(n=t.current)==null?void 0:n.call(t,...r)},[])}var dc=l.createContext(void 0);function $t(e){const t=l.useContext(dc);return e||t||"ltr"}var Pr="rovingFocusGroup.onEntryFocus",fc={bubbles:!1,cancelable:!0},mt="RovingFocusGroup",[Tr,fo,pc]=uo(mt),[mc,Ft]=de(mt,[pc]),[hc,gc]=mc(mt),po=l.forwardRef((e,t)=>u.jsx(Tr.Provider,{scope:e.__scopeRovingFocusGroup,children:u.jsx(Tr.Slot,{scope:e.__scopeRovingFocusGroup,children:u.jsx(vc,{...e,ref:t})})}));po.displayName=mt;var vc=l.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,orientation:n,loop:o=!1,dir:a,currentTabStopId:s,defaultCurrentTabStopId:i,onCurrentTabStopIdChange:c,onEntryFocus:d,preventScrollOnEntryFocus:f=!1,...p}=e,g=l.useRef(null),h=ne(t,g),v=$t(a),[m,b]=ye({prop:s,defaultProp:i??null,onChange:c,caller:mt}),[x,y]=l.useState(!1),w=Ne(d),C=fo(r),E=l.useRef(!1),[T,_]=l.useState(0);return l.useEffect(()=>{const R=g.current;if(R)return R.addEventListener(Pr,w),()=>R.removeEventListener(Pr,w)},[w]),u.jsx(hc,{scope:r,orientation:n,dir:v,loop:o,currentTabStopId:m,onItemFocus:l.useCallback(R=>b(R),[b]),onItemShiftTab:l.useCallback(()=>y(!0),[]),onFocusableItemAdd:l.useCallback(()=>_(R=>R+1),[]),onFocusableItemRemove:l.useCallback(()=>_(R=>R-1),[]),children:u.jsx(V.div,{tabIndex:x||T===0?-1:0,"data-orientation":n,...p,ref:h,style:{outline:"none",...e.style},onMouseDown:z(e.onMouseDown,()=>{E.current=!0}),onFocus:z(e.onFocus,R=>{const G=!E.current;if(R.target===R.currentTarget&&G&&!x){const K=new CustomEvent(Pr,fc);if(R.currentTarget.dispatchEvent(K),!K.defaultPrevented){const X=C().filter($=>$.focusable),Q=X.find($=>$.active),ee=X.find($=>$.id===m),q=[Q,ee,...X].filter(Boolean).map($=>$.ref.current);go(q,f)}}E.current=!1}),onBlur:z(e.onBlur,()=>y(!1))})})}),mo="RovingFocusGroupItem",ho=l.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,focusable:n=!0,active:o=!1,tabStopId:a,children:s,...i}=e,c=ce(),d=a||c,f=gc(mo,r),p=f.currentTabStopId===d,g=fo(r),{onFocusableItemAdd:h,onFocusableItemRemove:v,currentTabStopId:m}=f;return l.useEffect(()=>{if(n)return h(),()=>v()},[n,h,v]),u.jsx(Tr.ItemSlot,{scope:r,id:d,focusable:n,active:o,children:u.jsx(V.span,{tabIndex:p?0:-1,"data-orientation":f.orientation,...i,ref:t,onMouseDown:z(e.onMouseDown,b=>{n?f.onItemFocus(d):b.preventDefault()}),onFocus:z(e.onFocus,()=>f.onItemFocus(d)),onKeyDown:z(e.onKeyDown,b=>{if(b.key==="Tab"&&b.shiftKey){f.onItemShiftTab();return}if(b.target!==b.currentTarget)return;const x=yc(b,f.orientation,f.dir);if(x!==void 0){if(b.metaKey||b.ctrlKey||b.altKey||b.shiftKey)return;b.preventDefault();let w=g().filter(C=>C.focusable).map(C=>C.ref.current);if(x==="last")w.reverse();else if(x==="prev"||x==="next"){x==="prev"&&w.reverse();const C=w.indexOf(b.currentTarget);w=f.loop?wc(w,C+1):w.slice(C+1)}setTimeout(()=>go(w))}}),children:typeof s=="function"?s({isCurrentTabStop:p,hasTabStop:m!=null}):s})})});ho.displayName=mo;var bc={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function xc(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function yc(e,t,r){const n=xc(e.key,r);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(n))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(n)))return bc[n]}function go(e,t=!1){const r=document.activeElement;for(const n of e)if(n===r||(n.focus({preventScroll:t}),document.activeElement!==r))return}function wc(e,t){return e.map((r,n)=>e[(t+n)%e.length])}var vo=po,bo=ho;function Sc(e,t){return l.useReducer((r,n)=>t[r][n]??r,e)}var he=e=>{const{present:t,children:r}=e,n=Cc(t),o=typeof r=="function"?r({present:n.isPresent}):l.Children.only(r),a=ne(n.ref,kc(o));return typeof r=="function"||n.isPresent?l.cloneElement(o,{ref:a}):null};he.displayName="Presence";function Cc(e){const[t,r]=l.useState(),n=l.useRef(null),o=l.useRef(e),a=l.useRef("none"),s=e?"mounted":"unmounted",[i,c]=Sc(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return l.useEffect(()=>{const d=Vt(n.current);a.current=i==="mounted"?d:"none"},[i]),ie(()=>{const d=n.current,f=o.current;if(f!==e){const g=a.current,h=Vt(d);e?c("MOUNT"):h==="none"||(d==null?void 0:d.display)==="none"?c("UNMOUNT"):c(f&&g!==h?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,c]),ie(()=>{if(t){let d;const f=t.ownerDocument.defaultView??window,p=h=>{const m=Vt(n.current).includes(CSS.escape(h.animationName));if(h.target===t&&m&&(c("ANIMATION_END"),!o.current)){const b=t.style.animationFillMode;t.style.animationFillMode="forwards",d=f.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=b)})}},g=h=>{h.target===t&&(a.current=Vt(n.current))};return t.addEventListener("animationstart",g),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{f.clearTimeout(d),t.removeEventListener("animationstart",g),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(i),ref:l.useCallback(d=>{n.current=d?getComputedStyle(d):null,r(d)},[])}}function Vt(e){return(e==null?void 0:e.animationName)||"none"}function kc(e){var n,o;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var Ar="Radio",[Ec,xo]=de(Ar),[Rc,_c]=Ec(Ar),yo=l.forwardRef((e,t)=>{const{__scopeRadio:r,name:n,checked:o=!1,required:a,disabled:s,value:i="on",onCheck:c,form:d,...f}=e,[p,g]=l.useState(null),h=ne(t,b=>g(b)),v=l.useRef(!1),m=p?d||!!p.closest("form"):!0;return u.jsxs(Rc,{scope:r,checked:o,disabled:s,children:[u.jsx(V.button,{type:"button",role:"radio","aria-checked":o,"data-state":ko(o),"data-disabled":s?"":void 0,disabled:s,value:i,...f,ref:h,onClick:z(e.onClick,b=>{o||c==null||c(),m&&(v.current=b.isPropagationStopped(),v.current||b.stopPropagation())})}),m&&u.jsx(Co,{control:p,bubbles:!v.current,name:n,value:i,checked:o,required:a,disabled:s,form:d,style:{transform:"translateX(-100%)"}})]})});yo.displayName=Ar;var wo="RadioIndicator",So=l.forwardRef((e,t)=>{const{__scopeRadio:r,forceMount:n,...o}=e,a=_c(wo,r);return u.jsx(he,{present:n||a.checked,children:u.jsx(V.span,{"data-state":ko(a.checked),"data-disabled":a.disabled?"":void 0,...o,ref:t})})});So.displayName=wo;var Nc="RadioBubbleInput",Co=l.forwardRef(({__scopeRadio:e,control:t,checked:r,bubbles:n=!0,...o},a)=>{const s=l.useRef(null),i=ne(s,a),c=Mt(r),d=Dt(t);return l.useEffect(()=>{const f=s.current;if(!f)return;const p=window.HTMLInputElement.prototype,h=Object.getOwnPropertyDescriptor(p,"checked").set;if(c!==r&&h){const v=new Event("click",{bubbles:n});h.call(f,r),f.dispatchEvent(v)}},[c,r,n]),u.jsx(V.input,{type:"radio","aria-hidden":!0,defaultChecked:r,...o,tabIndex:-1,ref:i,style:{...o.style,...d,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});Co.displayName=Nc;function ko(e){return e?"checked":"unchecked"}var Pc=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],Bt="RadioGroup",[Tc,ig]=de(Bt,[Ft,xo]),Eo=Ft(),Ro=xo(),[Ac,Ic]=Tc(Bt),_o=l.forwardRef((e,t)=>{const{__scopeRadioGroup:r,name:n,defaultValue:o,value:a,required:s=!1,disabled:i=!1,orientation:c,dir:d,loop:f=!0,onValueChange:p,...g}=e,h=Eo(r),v=$t(d),[m,b]=ye({prop:a,defaultProp:o??null,onChange:p,caller:Bt});return u.jsx(Ac,{scope:r,name:n,required:s,disabled:i,value:m,onValueChange:b,children:u.jsx(vo,{asChild:!0,...h,orientation:c,dir:v,loop:f,children:u.jsx(V.div,{role:"radiogroup","aria-required":s,"aria-orientation":c,"data-disabled":i?"":void 0,dir:v,...g,ref:t})})})});_o.displayName=Bt;var No="RadioGroupItem",Po=l.forwardRef((e,t)=>{const{__scopeRadioGroup:r,disabled:n,...o}=e,a=Ic(No,r),s=a.disabled||n,i=Eo(r),c=Ro(r),d=l.useRef(null),f=ne(t,d),p=a.value===o.value,g=l.useRef(!1);return l.useEffect(()=>{const h=m=>{Pc.includes(m.key)&&(g.current=!0)},v=()=>g.current=!1;return document.addEventListener("keydown",h),document.addEventListener("keyup",v),()=>{document.removeEventListener("keydown",h),document.removeEventListener("keyup",v)}},[]),u.jsx(bo,{asChild:!0,...i,focusable:!s,active:p,children:u.jsx(yo,{disabled:s,required:a.required,checked:p,...c,...o,name:a.name,ref:f,onCheck:()=>a.onValueChange(o.value),onKeyDown:z(h=>{h.key==="Enter"&&h.preventDefault()}),onFocus:z(o.onFocus,()=>{var h;g.current&&((h=d.current)==null||h.click())})})})});Po.displayName=No;var jc="RadioGroupIndicator",To=l.forwardRef((e,t)=>{const{__scopeRadioGroup:r,...n}=e,o=Ro(r);return u.jsx(So,{...o,...n,ref:t})});To.displayName=jc;var Ao=_o,Io=Po,Oc=To;const Mc=()=>({root:j("relative inline-flex items-center cursor-pointer","data-[disabled]:cursor-not-allowed"),indicator:j("relative flex items-center justify-center","w-4 h-4 rounded-full border-2 transition-all duration-200","border-neutral-black-2","hover:shadow-[0_0_0_3px_var(--color-neutral-black-5)] hover:bg-neutral-black-5","focus:shadow-[0_0_0_3px_var(--color-neutral-black-3)] focus:bg-neutral-black-3","data-[state=checked]:border-neutral-black-1","data-[state=checked]:hover:shadow-[0_0_0_3px_var(--color-neutral-black-4)]","data-[state=checked]:hover:bg-neutral-black-4","data-[state=checked]:focus:shadow-[0_0_0_3px_var(--color-neutral-black-1)]","data-[state=checked]:focus:bg-neutral-black-1","data-[disabled]:hover:shadow-none data-[disabled]:hover:bg-transparent data-[disabled]:data-[state=checked]:bg-transparent data-[disabled]:data-[state=checked]:shadow-none data-[disabled]:focus:shadow-none data-[disabled]:border-neutral-black-3"),innerCircle:j("w-2 h-2 rounded-full transition-all duration-200","bg-neutral-black-1"),label:j("ml-2.5 text-md cursor-pointer select-none","data-[disabled]:cursor-not-allowed")}),jo=l.forwardRef(({className:e,...t},r)=>u.jsx(Ao,{className:j("grid gap-2",e),...t,ref:r}));jo.displayName=Ao.displayName;const Oo=l.forwardRef(({children:e,disabled:t,...r},n)=>{const o=Mc();return u.jsxs("label",{className:o.root,"data-disabled":t,children:[u.jsx(Io,{ref:n,className:j(o.indicator),disabled:t,...r,children:u.jsx(Oc,{className:"flex items-center justify-center",children:u.jsx("div",{className:o.innerCircle})})}),e&&u.jsx("span",{className:o.label,"data-disabled":t,children:e})]})});Oo.displayName=Io.displayName;var zt="Checkbox",[Dc,lg]=de(zt),[Lc,Ir]=Dc(zt);function $c(e){const{__scopeCheckbox:t,checked:r,children:n,defaultChecked:o,disabled:a,form:s,name:i,onCheckedChange:c,required:d,value:f="on",internal_do_not_use_render:p}=e,[g,h]=ye({prop:r,defaultProp:o??!1,onChange:c,caller:zt}),[v,m]=l.useState(null),[b,x]=l.useState(null),y=l.useRef(!1),w=v?!!s||!!v.closest("form"):!0,C={checked:g,disabled:a,setChecked:h,control:v,setControl:m,name:i,form:s,value:f,hasConsumerStoppedPropagationRef:y,required:d,defaultChecked:Ie(o)?!1:o,isFormControl:w,bubbleInput:b,setBubbleInput:x};return u.jsx(Lc,{scope:t,...C,children:Fc(p)?p(C):n})}var Mo="CheckboxTrigger",Do=l.forwardRef(({__scopeCheckbox:e,onKeyDown:t,onClick:r,...n},o)=>{const{control:a,value:s,disabled:i,checked:c,required:d,setControl:f,setChecked:p,hasConsumerStoppedPropagationRef:g,isFormControl:h,bubbleInput:v}=Ir(Mo,e),m=ne(o,f),b=l.useRef(c);return l.useEffect(()=>{const x=a==null?void 0:a.form;if(x){const y=()=>p(b.current);return x.addEventListener("reset",y),()=>x.removeEventListener("reset",y)}},[a,p]),u.jsx(V.button,{type:"button",role:"checkbox","aria-checked":Ie(c)?"mixed":c,"aria-required":d,"data-state":zo(c),"data-disabled":i?"":void 0,disabled:i,value:s,...n,ref:m,onKeyDown:z(t,x=>{x.key==="Enter"&&x.preventDefault()}),onClick:z(r,x=>{p(y=>Ie(y)?!0:!y),v&&h&&(g.current=x.isPropagationStopped(),g.current||x.stopPropagation())})})});Do.displayName=Mo;var Lo=l.forwardRef((e,t)=>{const{__scopeCheckbox:r,name:n,checked:o,defaultChecked:a,required:s,disabled:i,value:c,onCheckedChange:d,form:f,...p}=e;return u.jsx($c,{__scopeCheckbox:r,checked:o,defaultChecked:a,disabled:i,required:s,onCheckedChange:d,name:n,form:f,value:c,internal_do_not_use_render:({isFormControl:g})=>u.jsxs(u.Fragment,{children:[u.jsx(Do,{...p,ref:t,__scopeCheckbox:r}),g&&u.jsx(Bo,{__scopeCheckbox:r})]})})});Lo.displayName=zt;var $o="CheckboxIndicator",Fo=l.forwardRef((e,t)=>{const{__scopeCheckbox:r,forceMount:n,...o}=e,a=Ir($o,r);return u.jsx(he,{present:n||Ie(a.checked)||a.checked===!0,children:u.jsx(V.span,{"data-state":zo(a.checked),"data-disabled":a.disabled?"":void 0,...o,ref:t,style:{pointerEvents:"none",...e.style}})})});Fo.displayName=$o;var Vo="CheckboxBubbleInput",Bo=l.forwardRef(({__scopeCheckbox:e,...t},r)=>{const{control:n,hasConsumerStoppedPropagationRef:o,checked:a,defaultChecked:s,required:i,disabled:c,name:d,value:f,form:p,bubbleInput:g,setBubbleInput:h}=Ir(Vo,e),v=ne(r,h),m=Mt(a),b=Dt(n);l.useEffect(()=>{const y=g;if(!y)return;const w=window.HTMLInputElement.prototype,E=Object.getOwnPropertyDescriptor(w,"checked").set,T=!o.current;if(m!==a&&E){const _=new Event("click",{bubbles:T});y.indeterminate=Ie(a),E.call(y,Ie(a)?!1:a),y.dispatchEvent(_)}},[g,m,a,o]);const x=l.useRef(Ie(a)?!1:a);return u.jsx(V.input,{type:"checkbox","aria-hidden":!0,defaultChecked:s??x.current,required:i,disabled:c,name:d,value:f,form:p,...t,tabIndex:-1,ref:v,style:{...t.style,...b,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});Bo.displayName=Vo;function Fc(e){return typeof e=="function"}function Ie(e){return e==="indeterminate"}function zo(e){return Ie(e)?"indeterminate":e?"checked":"unchecked"}/**
23
23
  * @license lucide-react v0.542.0 - ISC
24
24
  *
25
25
  * This source code is licensed under the ISC license.
26
26
  * See the LICENSE file in the root directory of this source tree.
27
- */const Ec=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Rc=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,r,n)=>n?n.toUpperCase():r.toLowerCase()),Vo=e=>{const t=Rc(e);return t.charAt(0).toUpperCase()+t.slice(1)},zo=(...e)=>e.filter((t,r,n)=>!!t&&t.trim()!==""&&n.indexOf(t)===r).join(" ").trim(),_c=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};/**
27
+ */const Vc=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Bc=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,r,n)=>n?n.toUpperCase():r.toLowerCase()),Wo=e=>{const t=Bc(e);return t.charAt(0).toUpperCase()+t.slice(1)},Go=(...e)=>e.filter((t,r,n)=>!!t&&t.trim()!==""&&n.indexOf(t)===r).join(" ").trim(),zc=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};/**
28
28
  * @license lucide-react v0.542.0 - ISC
29
29
  *
30
30
  * This source code is licensed under the ISC license.
31
31
  * See the LICENSE file in the root directory of this source tree.
32
- */var Nc={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"};/**
32
+ */var Wc={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"};/**
33
33
  * @license lucide-react v0.542.0 - ISC
34
34
  *
35
35
  * This source code is licensed under the ISC license.
36
36
  * See the LICENSE file in the root directory of this source tree.
37
- */const Pc=ae.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:n,className:o="",children:a,iconNode:s,...i},c)=>ae.createElement("svg",{ref:c,...Nc,width:t,height:t,stroke:e,strokeWidth:n?Number(r)*24/Number(t):r,className:zo("lucide",o),...!a&&!_c(i)&&{"aria-hidden":"true"},...i},[...s.map(([d,f])=>ae.createElement(d,f)),...Array.isArray(a)?a:[a]]));/**
37
+ */const Gc=ae.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:n,className:o="",children:a,iconNode:s,...i},c)=>ae.createElement("svg",{ref:c,...Wc,width:t,height:t,stroke:e,strokeWidth:n?Number(r)*24/Number(t):r,className:Go("lucide",o),...!a&&!zc(i)&&{"aria-hidden":"true"},...i},[...s.map(([d,f])=>ae.createElement(d,f)),...Array.isArray(a)?a:[a]]));/**
38
38
  * @license lucide-react v0.542.0 - ISC
39
39
  *
40
40
  * This source code is licensed under the ISC license.
41
41
  * See the LICENSE file in the root directory of this source tree.
42
- */const le=(e,t)=>{const r=ae.forwardRef(({className:n,...o},a)=>ae.createElement(Pc,{ref:a,iconNode:t,className:zo(`lucide-${Ec(Vo(e))}`,`lucide-${e}`,n),...o}));return r.displayName=Vo(e),r};/**
42
+ */const ue=(e,t)=>{const r=ae.forwardRef(({className:n,...o},a)=>ae.createElement(Gc,{ref:a,iconNode:t,className:Go(`lucide-${Vc(Wo(e))}`,`lucide-${e}`,n),...o}));return r.displayName=Wo(e),r};/**
43
43
  * @license lucide-react v0.542.0 - ISC
44
44
  *
45
45
  * This source code is licensed under the ISC license.
46
46
  * See the LICENSE file in the root directory of this source tree.
47
- */const Ac=le("camera",[["path",{d:"M13.997 4a2 2 0 0 1 1.76 1.05l.486.9A2 2 0 0 0 18.003 7H20a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2h1.997a2 2 0 0 0 1.759-1.048l.489-.904A2 2 0 0 1 10.004 4z",key:"18u6gg"}],["circle",{cx:"12",cy:"13",r:"3",key:"1vg3eu"}]]);/**
47
+ */const Hc=ue("camera",[["path",{d:"M13.997 4a2 2 0 0 1 1.76 1.05l.486.9A2 2 0 0 0 18.003 7H20a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2h1.997a2 2 0 0 0 1.759-1.048l.489-.904A2 2 0 0 1 10.004 4z",key:"18u6gg"}],["circle",{cx:"12",cy:"13",r:"3",key:"1vg3eu"}]]);/**
48
48
  * @license lucide-react v0.542.0 - ISC
49
49
  *
50
50
  * This source code is licensed under the ISC license.
51
51
  * See the LICENSE file in the root directory of this source tree.
52
- */const Tc=le("chart-pie",[["path",{d:"M21 12c.552 0 1.005-.449.95-.998a10 10 0 0 0-8.953-8.951c-.55-.055-.998.398-.998.95v8a1 1 0 0 0 1 1z",key:"pzmjnu"}],["path",{d:"M21.21 15.89A10 10 0 1 1 8 2.83",key:"k2fpak"}]]);/**
52
+ */const Uc=ue("chart-pie",[["path",{d:"M21 12c.552 0 1.005-.449.95-.998a10 10 0 0 0-8.953-8.951c-.55-.055-.998.398-.998.95v8a1 1 0 0 0 1 1z",key:"pzmjnu"}],["path",{d:"M21.21 15.89A10 10 0 1 1 8 2.83",key:"k2fpak"}]]);/**
53
53
  * @license lucide-react v0.542.0 - ISC
54
54
  *
55
55
  * This source code is licensed under the ISC license.
56
56
  * See the LICENSE file in the root directory of this source tree.
57
- */const Bo=le("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
57
+ */const Ho=ue("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
58
58
  * @license lucide-react v0.542.0 - ISC
59
59
  *
60
60
  * This source code is licensed under the ISC license.
61
61
  * See the LICENSE file in the root directory of this source tree.
62
- */const Ar=le("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
62
+ */const jr=ue("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
63
63
  * @license lucide-react v0.542.0 - ISC
64
64
  *
65
65
  * This source code is licensed under the ISC license.
66
66
  * See the LICENSE file in the root directory of this source tree.
67
- */const jc=le("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
67
+ */const Kc=ue("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
68
68
  * @license lucide-react v0.542.0 - ISC
69
69
  *
70
70
  * This source code is licensed under the ISC license.
71
71
  * See the LICENSE file in the root directory of this source tree.
72
- */const Ic=le("chevron-up",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/**
72
+ */const Yc=ue("chevron-up",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/**
73
73
  * @license lucide-react v0.542.0 - ISC
74
74
  *
75
75
  * This source code is licensed under the ISC license.
76
76
  * See the LICENSE file in the root directory of this source tree.
77
- */const Oc=le("circle-check",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
77
+ */const qc=ue("ellipsis",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]]);/**
78
78
  * @license lucide-react v0.542.0 - ISC
79
79
  *
80
80
  * This source code is licensed under the ISC license.
81
81
  * See the LICENSE file in the root directory of this source tree.
82
- */const Mc=le("circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);/**
82
+ */const Xc=ue("eye-off",[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]);/**
83
83
  * @license lucide-react v0.542.0 - ISC
84
84
  *
85
85
  * This source code is licensed under the ISC license.
86
86
  * See the LICENSE file in the root directory of this source tree.
87
- */const Dc=le("ellipsis",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]]);/**
87
+ */const Zc=ue("eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
88
88
  * @license lucide-react v0.542.0 - ISC
89
89
  *
90
90
  * This source code is licensed under the ISC license.
91
91
  * See the LICENSE file in the root directory of this source tree.
92
- */const Lc=le("eye-off",[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]);/**
92
+ */const Jc=ue("image",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]]);/**
93
93
  * @license lucide-react v0.542.0 - ISC
94
94
  *
95
95
  * This source code is licensed under the ISC license.
96
96
  * See the LICENSE file in the root directory of this source tree.
97
- */const $c=le("eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
97
+ */const Qc=ue("panel-left",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]]);/**
98
98
  * @license lucide-react v0.542.0 - ISC
99
99
  *
100
100
  * This source code is licensed under the ISC license.
101
101
  * See the LICENSE file in the root directory of this source tree.
102
- */const Fc=le("image",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]]);/**
102
+ */const Uo=ue("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]);/**
103
103
  * @license lucide-react v0.542.0 - ISC
104
104
  *
105
105
  * This source code is licensed under the ISC license.
106
106
  * See the LICENSE file in the root directory of this source tree.
107
- */const Vc=le("panel-left",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]]);/**
107
+ */const eu=ue("smile",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 14s1.5 2 4 2 4-2 4-2",key:"1y1vjs"}],["line",{x1:"9",x2:"9.01",y1:"9",y2:"9",key:"yxxnd0"}],["line",{x1:"15",x2:"15.01",y1:"9",y2:"9",key:"1p4y9e"}]]);/**
108
108
  * @license lucide-react v0.542.0 - ISC
109
109
  *
110
110
  * This source code is licensed under the ISC license.
111
111
  * See the LICENSE file in the root directory of this source tree.
112
- */const Wo=le("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]);/**
112
+ */const Ko=ue("user-round",[["circle",{cx:"12",cy:"8",r:"5",key:"1hypcn"}],["path",{d:"M20 21a8 8 0 0 0-16 0",key:"rfgkzh"}]]);/**
113
113
  * @license lucide-react v0.542.0 - ISC
114
114
  *
115
115
  * This source code is licensed under the ISC license.
116
116
  * See the LICENSE file in the root directory of this source tree.
117
- */const zc=le("smile",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 14s1.5 2 4 2 4-2 4-2",key:"1y1vjs"}],["line",{x1:"9",x2:"9.01",y1:"9",y2:"9",key:"yxxnd0"}],["line",{x1:"15",x2:"15.01",y1:"9",y2:"9",key:"1p4y9e"}]]);/**
117
+ */const tu=ue("video",[["path",{d:"m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5",key:"ftymec"}],["rect",{x:"2",y:"6",width:"14",height:"12",rx:"2",key:"158x01"}]]);/**
118
118
  * @license lucide-react v0.542.0 - ISC
119
119
  *
120
120
  * This source code is licensed under the ISC license.
121
121
  * See the LICENSE file in the root directory of this source tree.
122
- */const Ho=le("user-round",[["circle",{cx:"12",cy:"8",r:"5",key:"1hypcn"}],["path",{d:"M20 21a8 8 0 0 0-16 0",key:"rfgkzh"}]]);/**
123
- * @license lucide-react v0.542.0 - ISC
124
- *
125
- * This source code is licensed under the ISC license.
126
- * See the LICENSE file in the root directory of this source tree.
127
- */const Bc=le("video",[["path",{d:"m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5",key:"ftymec"}],["rect",{x:"2",y:"6",width:"14",height:"12",rx:"2",key:"158x01"}]]);/**
128
- * @license lucide-react v0.542.0 - ISC
129
- *
130
- * This source code is licensed under the ISC license.
131
- * See the LICENSE file in the root directory of this source tree.
132
- */const Uo=le("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),Wc=ce(["w-4 h-4 rounded border transition-all duration-200 flex items-center justify-center","data-[state=unchecked]:bg-white data-[state=unchecked]:border-neutral-black-2","data-[state=checked]:bg-neutral-black-1 data-[state=checked]:border-neutral-black-1","data-[state=indeterminate]:bg-neutral-black-1 data-[state=indeterminate]:border-neutral-black-1","hover:data-[state=unchecked]:bg-neutral-black-4 hover:data-[state=unchecked]:shadow-[0_0_0_3px_var(--color-neutral-black-4)]","hover:data-[state=checked]:shadow-[0_0_0_3px_var(--color-neutral-black-4)]","hover:data-[state=indeterminate]:shadow-[0_0_0_3px_var(--color-neutral-black-4)]","focus:data-[state=unchecked]:bg-neutral-black-3 focus:data-[state=unchecked]:shadow-[0_0_0_3px_var(--color-neutral-black-3)]","focus:data-[state=checked]:shadow-[0_0_0_3px_var(--color-neutral-black-1)]","focus:data-[state=indeterminate]:shadow-[0_0_0_3px_var(--color-neutral-black-1)]","disabled:data-[state=unchecked]:bg-white disabled:data-[state=unchecked]:border-neutral-black-3","disabled:data-[state=checked]:bg-neutral-black-1 disabled:data-[state=checked]:border-neutral-black-1","disabled:data-[state=indeterminate]:bg-neutral-black-1 disabled:data-[state=indeterminate]:border-neutral-black-1","disabled:data-[state=unchecked]:hover:shadow-none disabled:focus:shadow-none disabled:data-[state=checked]:hover:shadow-none disabled:data-[state=indeterminate]:hover:shadow-none"]),Go=({className:e,...t})=>u.jsx(Oo,{className:D(Wc(),e),...t,children:u.jsx(Do,{className:"flex items-center justify-center text-white cursor-pointer",children:u.jsx(Bo,{className:"w-3 h-3",strokeWidth:2})})});Go.displayName="Checkbox";function Hc(e,t=globalThis==null?void 0:globalThis.document){const r=Ne(e);l.useEffect(()=>{const n=o=>{o.key==="Escape"&&r(o)};return t.addEventListener("keydown",n,{capture:!0}),()=>t.removeEventListener("keydown",n,{capture:!0})},[r,t])}var Uc="DismissableLayer",Tr="dismissableLayer.update",Gc="dismissableLayer.pointerDownOutside",Kc="dismissableLayer.focusOutside",Ko,Yo=l.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),ht=l.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:s,onDismiss:i,...c}=e,d=l.useContext(Yo),[f,p]=l.useState(null),g=(f==null?void 0:f.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,h]=l.useState({}),v=ne(t,_=>p(_)),m=Array.from(d.layers),[b]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),x=m.indexOf(b),y=f?m.indexOf(f):-1,w=d.layersWithOutsidePointerEventsDisabled.size>0,C=y>=x,E=Xc(_=>{const R=_.target,H=[...d.branches].some(K=>K.contains(R));!C||H||(o==null||o(_),s==null||s(_),_.defaultPrevented||i==null||i())},g),A=Zc(_=>{const R=_.target;[...d.branches].some(K=>K.contains(R))||(a==null||a(_),s==null||s(_),_.defaultPrevented||i==null||i())},g);return Hc(_=>{y===d.layers.size-1&&(n==null||n(_),!_.defaultPrevented&&i&&(_.preventDefault(),i()))},g),l.useEffect(()=>{if(f)return r&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(Ko=g.body.style.pointerEvents,g.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(f)),d.layers.add(f),qo(),()=>{r&&d.layersWithOutsidePointerEventsDisabled.size===1&&(g.body.style.pointerEvents=Ko)}},[f,g,r,d]),l.useEffect(()=>()=>{f&&(d.layers.delete(f),d.layersWithOutsidePointerEventsDisabled.delete(f),qo())},[f,d]),l.useEffect(()=>{const _=()=>h({});return document.addEventListener(Tr,_),()=>document.removeEventListener(Tr,_)},[]),u.jsx(z.div,{...c,ref:v,style:{pointerEvents:w?C?"auto":"none":void 0,...e.style},onFocusCapture:B(e.onFocusCapture,A.onFocusCapture),onBlurCapture:B(e.onBlurCapture,A.onBlurCapture),onPointerDownCapture:B(e.onPointerDownCapture,E.onPointerDownCapture)})});ht.displayName=Uc;var Yc="DismissableLayerBranch",qc=l.forwardRef((e,t)=>{const r=l.useContext(Yo),n=l.useRef(null),o=ne(t,n);return l.useEffect(()=>{const a=n.current;if(a)return r.branches.add(a),()=>{r.branches.delete(a)}},[r.branches]),u.jsx(z.div,{...e,ref:o})});qc.displayName=Yc;function Xc(e,t=globalThis==null?void 0:globalThis.document){const r=Ne(e),n=l.useRef(!1),o=l.useRef(()=>{});return l.useEffect(()=>{const a=i=>{if(i.target&&!n.current){let c=function(){Xo(Gc,r,d,{discrete:!0})};const d={originalEvent:i};i.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=c,t.addEventListener("click",o.current,{once:!0})):c()}else t.removeEventListener("click",o.current);n.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",a),t.removeEventListener("click",o.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function Zc(e,t=globalThis==null?void 0:globalThis.document){const r=Ne(e),n=l.useRef(!1);return l.useEffect(()=>{const o=a=>{a.target&&!n.current&&Xo(Kc,r,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function qo(){const e=new CustomEvent(Tr);document.dispatchEvent(e)}function Xo(e,t,r,{discrete:n}){const o=r.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&o.addEventListener(e,t,{once:!0}),n?Dl(o,a):o.dispatchEvent(a)}var jr="focusScope.autoFocusOnMount",Ir="focusScope.autoFocusOnUnmount",Zo={bubbles:!1,cancelable:!0},Jc="FocusScope",Vt=l.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...s}=e,[i,c]=l.useState(null),d=Ne(o),f=Ne(a),p=l.useRef(null),g=ne(t,m=>c(m)),h=l.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;l.useEffect(()=>{if(n){let m=function(w){if(h.paused||!i)return;const C=w.target;i.contains(C)?p.current=C:Ie(p.current,{select:!0})},b=function(w){if(h.paused||!i)return;const C=w.relatedTarget;C!==null&&(i.contains(C)||Ie(p.current,{select:!0}))},x=function(w){if(document.activeElement===document.body)for(const E of w)E.removedNodes.length>0&&Ie(i)};document.addEventListener("focusin",m),document.addEventListener("focusout",b);const y=new MutationObserver(x);return i&&y.observe(i,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",m),document.removeEventListener("focusout",b),y.disconnect()}}},[n,i,h.paused]),l.useEffect(()=>{if(i){ea.add(h);const m=document.activeElement;if(!i.contains(m)){const x=new CustomEvent(jr,Zo);i.addEventListener(jr,d),i.dispatchEvent(x),x.defaultPrevented||(Qc(ou(Jo(i)),{select:!0}),document.activeElement===m&&Ie(i))}return()=>{i.removeEventListener(jr,d),setTimeout(()=>{const x=new CustomEvent(Ir,Zo);i.addEventListener(Ir,f),i.dispatchEvent(x),x.defaultPrevented||Ie(m??document.body,{select:!0}),i.removeEventListener(Ir,f),ea.remove(h)},0)}}},[i,d,f,h]);const v=l.useCallback(m=>{if(!r&&!n||h.paused)return;const b=m.key==="Tab"&&!m.altKey&&!m.ctrlKey&&!m.metaKey,x=document.activeElement;if(b&&x){const y=m.currentTarget,[w,C]=eu(y);w&&C?!m.shiftKey&&x===C?(m.preventDefault(),r&&Ie(w,{select:!0})):m.shiftKey&&x===w&&(m.preventDefault(),r&&Ie(C,{select:!0})):x===y&&m.preventDefault()}},[r,n,h.paused]);return u.jsx(z.div,{tabIndex:-1,...s,ref:g,onKeyDown:v})});Vt.displayName=Jc;function Qc(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(Ie(n,{select:t}),document.activeElement!==r)return}function eu(e){const t=Jo(e),r=Qo(t,e),n=Qo(t.reverse(),e);return[r,n]}function Jo(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const o=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||o?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function Qo(e,t){for(const r of e)if(!tu(r,{upTo:t}))return r}function tu(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 ru(e){return e instanceof HTMLInputElement&&"select"in e}function Ie(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&ru(e)&&t&&e.select()}}var ea=nu();function nu(){let e=[];return{add(t){const r=e[0];t!==r&&(r==null||r.pause()),e=ta(e,t),e.unshift(t)},remove(t){var r;e=ta(e,t),(r=e[0])==null||r.resume()}}}function ta(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function ou(e){return e.filter(t=>t.tagName!=="A")}var au="Portal",gt=l.forwardRef((e,t)=>{var i;const{container:r,...n}=e,[o,a]=l.useState(!1);ie(()=>a(!0),[]);const s=r||o&&((i=globalThis==null?void 0:globalThis.document)==null?void 0:i.body);return s?jn.createPortal(u.jsx(z.div,{...n,ref:t}),s):null});gt.displayName=au;var Or=0;function Mr(){l.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??ra()),document.body.insertAdjacentElement("beforeend",e[1]??ra()),Or++,()=>{Or===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Or--}},[])}function ra(){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 ye=function(){return ye=Object.assign||function(t){for(var r,n=1,o=arguments.length;n<o;n++){r=arguments[n];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(t[a]=r[a])}return t},ye.apply(this,arguments)};function na(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}function su(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,a;n<o;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;var zt="right-scroll-bar-position",Bt="width-before-scroll-bar",iu="with-scroll-bars-hidden",lu="--removed-body-scroll-bar-size";function Dr(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function cu(e,t){var r=ae.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(n){var o=r.value;o!==n&&(r.value=n,r.callback(n,o))}}}})[0];return r.callback=t,r.facade}var uu=typeof window<"u"?l.useLayoutEffect:l.useEffect,oa=new WeakMap;function du(e,t){var r=cu(null,function(n){return e.forEach(function(o){return Dr(o,n)})});return uu(function(){var n=oa.get(r);if(n){var o=new Set(n),a=new Set(e),s=r.current;o.forEach(function(i){a.has(i)||Dr(i,null)}),a.forEach(function(i){o.has(i)||Dr(i,s)})}oa.set(r,e)},[e]),r}function fu(e){return e}function pu(e,t){t===void 0&&(t=fu);var r=[],n=!1,o={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(a){var s=t(a,n);return r.push(s),function(){r=r.filter(function(i){return i!==s})}},assignSyncMedium:function(a){for(n=!0;r.length;){var s=r;r=[],s.forEach(a)}r={push:function(i){return a(i)},filter:function(){return r}}},assignMedium:function(a){n=!0;var s=[];if(r.length){var i=r;r=[],i.forEach(a),s=r}var c=function(){var f=s;s=[],f.forEach(a)},d=function(){return Promise.resolve().then(c)};d(),r={push:function(f){s.push(f),d()},filter:function(f){return s=s.filter(f),r}}}};return o}function mu(e){e===void 0&&(e={});var t=pu(null);return t.options=ye({async:!0,ssr:!1},e),t}var aa=function(e){var t=e.sideCar,r=na(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return l.createElement(n,ye({},r))};aa.isSideCarExport=!0;function hu(e,t){return e.useMedium(t),aa}var sa=mu(),Lr=function(){},Wt=l.forwardRef(function(e,t){var r=l.useRef(null),n=l.useState({onScrollCapture:Lr,onWheelCapture:Lr,onTouchMoveCapture:Lr}),o=n[0],a=n[1],s=e.forwardProps,i=e.children,c=e.className,d=e.removeScrollBar,f=e.enabled,p=e.shards,g=e.sideCar,h=e.noRelative,v=e.noIsolation,m=e.inert,b=e.allowPinchZoom,x=e.as,y=x===void 0?"div":x,w=e.gapMode,C=na(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),E=g,A=du([r,t]),_=ye(ye({},C),o);return l.createElement(l.Fragment,null,f&&l.createElement(E,{sideCar:sa,removeScrollBar:d,shards:p,noRelative:h,noIsolation:v,inert:m,setCallbacks:a,allowPinchZoom:!!b,lockRef:r,gapMode:w}),s?l.cloneElement(l.Children.only(i),ye(ye({},_),{ref:A})):l.createElement(y,ye({},_,{className:c,ref:A}),i))});Wt.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Wt.classNames={fullWidth:Bt,zeroRight:zt};var gu=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function vu(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=gu();return t&&e.setAttribute("nonce",t),e}function bu(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function xu(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var yu=function(){var e=0,t=null;return{add:function(r){e==0&&(t=vu())&&(bu(t,r),xu(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},wu=function(){var e=yu();return function(t,r){l.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},ia=function(){var e=wu(),t=function(r){var n=r.styles,o=r.dynamic;return e(n,o),null};return t},Su={left:0,top:0,right:0,gap:0},$r=function(e){return parseInt(e||"",10)||0},Cu=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[$r(r),$r(n),$r(o)]},ku=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Su;var t=Cu(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},Eu=ia(),Ze="data-scroll-locked",Ru=function(e,t,r,n){var o=e.left,a=e.top,s=e.right,i=e.gap;return r===void 0&&(r="margin"),`
133
- .`.concat(iu,` {
122
+ */const Yo=ue("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),ru=le(["w-4 h-4 rounded border transition-all duration-200 flex items-center justify-center","data-[state=unchecked]:bg-white data-[state=unchecked]:border-neutral-black-2","data-[state=checked]:bg-neutral-black-1 data-[state=checked]:border-neutral-black-1","data-[state=indeterminate]:bg-neutral-black-1 data-[state=indeterminate]:border-neutral-black-1","hover:data-[state=unchecked]:bg-neutral-black-4 hover:data-[state=unchecked]:shadow-[0_0_0_3px_var(--color-neutral-black-4)]","hover:data-[state=checked]:shadow-[0_0_0_3px_var(--color-neutral-black-4)]","hover:data-[state=indeterminate]:shadow-[0_0_0_3px_var(--color-neutral-black-4)]","focus:data-[state=unchecked]:bg-neutral-black-3 focus:data-[state=unchecked]:shadow-[0_0_0_3px_var(--color-neutral-black-3)]","focus:data-[state=checked]:shadow-[0_0_0_3px_var(--color-neutral-black-1)]","focus:data-[state=indeterminate]:shadow-[0_0_0_3px_var(--color-neutral-black-1)]","disabled:data-[state=unchecked]:bg-white disabled:data-[state=unchecked]:border-neutral-black-3","disabled:data-[state=checked]:bg-neutral-black-1 disabled:data-[state=checked]:border-neutral-black-1","disabled:data-[state=indeterminate]:bg-neutral-black-1 disabled:data-[state=indeterminate]:border-neutral-black-1","disabled:data-[state=unchecked]:hover:shadow-none disabled:focus:shadow-none disabled:data-[state=checked]:hover:shadow-none disabled:data-[state=indeterminate]:hover:shadow-none"]),qo=({className:e,...t})=>u.jsx(Lo,{className:j(ru(),e),...t,children:u.jsx(Fo,{className:"flex items-center justify-center text-white cursor-pointer",children:u.jsx(Ho,{className:"w-3 h-3",strokeWidth:2})})});qo.displayName="Checkbox";function nu(e,t=globalThis==null?void 0:globalThis.document){const r=Ne(e);l.useEffect(()=>{const n=o=>{o.key==="Escape"&&r(o)};return t.addEventListener("keydown",n,{capture:!0}),()=>t.removeEventListener("keydown",n,{capture:!0})},[r,t])}var ou="DismissableLayer",Or="dismissableLayer.update",au="dismissableLayer.pointerDownOutside",su="dismissableLayer.focusOutside",Xo,Zo=l.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),ht=l.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:s,onDismiss:i,...c}=e,d=l.useContext(Zo),[f,p]=l.useState(null),g=(f==null?void 0:f.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,h]=l.useState({}),v=ne(t,_=>p(_)),m=Array.from(d.layers),[b]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),x=m.indexOf(b),y=f?m.indexOf(f):-1,w=d.layersWithOutsidePointerEventsDisabled.size>0,C=y>=x,E=cu(_=>{const R=_.target,G=[...d.branches].some(K=>K.contains(R));!C||G||(o==null||o(_),s==null||s(_),_.defaultPrevented||i==null||i())},g),T=uu(_=>{const R=_.target;[...d.branches].some(K=>K.contains(R))||(a==null||a(_),s==null||s(_),_.defaultPrevented||i==null||i())},g);return nu(_=>{y===d.layers.size-1&&(n==null||n(_),!_.defaultPrevented&&i&&(_.preventDefault(),i()))},g),l.useEffect(()=>{if(f)return r&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(Xo=g.body.style.pointerEvents,g.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(f)),d.layers.add(f),Jo(),()=>{r&&d.layersWithOutsidePointerEventsDisabled.size===1&&(g.body.style.pointerEvents=Xo)}},[f,g,r,d]),l.useEffect(()=>()=>{f&&(d.layers.delete(f),d.layersWithOutsidePointerEventsDisabled.delete(f),Jo())},[f,d]),l.useEffect(()=>{const _=()=>h({});return document.addEventListener(Or,_),()=>document.removeEventListener(Or,_)},[]),u.jsx(V.div,{...c,ref:v,style:{pointerEvents:w?C?"auto":"none":void 0,...e.style},onFocusCapture:z(e.onFocusCapture,T.onFocusCapture),onBlurCapture:z(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:z(e.onPointerDownCapture,E.onPointerDownCapture)})});ht.displayName=ou;var iu="DismissableLayerBranch",lu=l.forwardRef((e,t)=>{const r=l.useContext(Zo),n=l.useRef(null),o=ne(t,n);return l.useEffect(()=>{const a=n.current;if(a)return r.branches.add(a),()=>{r.branches.delete(a)}},[r.branches]),u.jsx(V.div,{...e,ref:o})});lu.displayName=iu;function cu(e,t=globalThis==null?void 0:globalThis.document){const r=Ne(e),n=l.useRef(!1),o=l.useRef(()=>{});return l.useEffect(()=>{const a=i=>{if(i.target&&!n.current){let c=function(){Qo(au,r,d,{discrete:!0})};const d={originalEvent:i};i.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=c,t.addEventListener("click",o.current,{once:!0})):c()}else t.removeEventListener("click",o.current);n.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",a),t.removeEventListener("click",o.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function uu(e,t=globalThis==null?void 0:globalThis.document){const r=Ne(e),n=l.useRef(!1);return l.useEffect(()=>{const o=a=>{a.target&&!n.current&&Qo(su,r,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function Jo(){const e=new CustomEvent(Or);document.dispatchEvent(e)}function Qo(e,t,r,{discrete:n}){const o=r.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&o.addEventListener(e,t,{once:!0}),n?Ql(o,a):o.dispatchEvent(a)}var Mr="focusScope.autoFocusOnMount",Dr="focusScope.autoFocusOnUnmount",ea={bubbles:!1,cancelable:!0},du="FocusScope",Wt=l.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...s}=e,[i,c]=l.useState(null),d=Ne(o),f=Ne(a),p=l.useRef(null),g=ne(t,m=>c(m)),h=l.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;l.useEffect(()=>{if(n){let m=function(w){if(h.paused||!i)return;const C=w.target;i.contains(C)?p.current=C:je(p.current,{select:!0})},b=function(w){if(h.paused||!i)return;const C=w.relatedTarget;C!==null&&(i.contains(C)||je(p.current,{select:!0}))},x=function(w){if(document.activeElement===document.body)for(const E of w)E.removedNodes.length>0&&je(i)};document.addEventListener("focusin",m),document.addEventListener("focusout",b);const y=new MutationObserver(x);return i&&y.observe(i,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",m),document.removeEventListener("focusout",b),y.disconnect()}}},[n,i,h.paused]),l.useEffect(()=>{if(i){na.add(h);const m=document.activeElement;if(!i.contains(m)){const x=new CustomEvent(Mr,ea);i.addEventListener(Mr,d),i.dispatchEvent(x),x.defaultPrevented||(fu(vu(ta(i)),{select:!0}),document.activeElement===m&&je(i))}return()=>{i.removeEventListener(Mr,d),setTimeout(()=>{const x=new CustomEvent(Dr,ea);i.addEventListener(Dr,f),i.dispatchEvent(x),x.defaultPrevented||je(m??document.body,{select:!0}),i.removeEventListener(Dr,f),na.remove(h)},0)}}},[i,d,f,h]);const v=l.useCallback(m=>{if(!r&&!n||h.paused)return;const b=m.key==="Tab"&&!m.altKey&&!m.ctrlKey&&!m.metaKey,x=document.activeElement;if(b&&x){const y=m.currentTarget,[w,C]=pu(y);w&&C?!m.shiftKey&&x===C?(m.preventDefault(),r&&je(w,{select:!0})):m.shiftKey&&x===w&&(m.preventDefault(),r&&je(C,{select:!0})):x===y&&m.preventDefault()}},[r,n,h.paused]);return u.jsx(V.div,{tabIndex:-1,...s,ref:g,onKeyDown:v})});Wt.displayName=du;function fu(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(je(n,{select:t}),document.activeElement!==r)return}function pu(e){const t=ta(e),r=ra(t,e),n=ra(t.reverse(),e);return[r,n]}function ta(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const o=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||o?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function ra(e,t){for(const r of e)if(!mu(r,{upTo:t}))return r}function mu(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 hu(e){return e instanceof HTMLInputElement&&"select"in e}function je(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&hu(e)&&t&&e.select()}}var na=gu();function gu(){let e=[];return{add(t){const r=e[0];t!==r&&(r==null||r.pause()),e=oa(e,t),e.unshift(t)},remove(t){var r;e=oa(e,t),(r=e[0])==null||r.resume()}}}function oa(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function vu(e){return e.filter(t=>t.tagName!=="A")}var bu="Portal",gt=l.forwardRef((e,t)=>{var i;const{container:r,...n}=e,[o,a]=l.useState(!1);ie(()=>a(!0),[]);const s=r||o&&((i=globalThis==null?void 0:globalThis.document)==null?void 0:i.body);return s?Mn.createPortal(u.jsx(V.div,{...n,ref:t}),s):null});gt.displayName=bu;var Lr=0;function $r(){l.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??aa()),document.body.insertAdjacentElement("beforeend",e[1]??aa()),Lr++,()=>{Lr===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Lr--}},[])}function aa(){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 we=function(){return we=Object.assign||function(t){for(var r,n=1,o=arguments.length;n<o;n++){r=arguments[n];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(t[a]=r[a])}return t},we.apply(this,arguments)};function sa(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}function xu(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,a;n<o;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;var Gt="right-scroll-bar-position",Ht="width-before-scroll-bar",yu="with-scroll-bars-hidden",wu="--removed-body-scroll-bar-size";function Fr(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Su(e,t){var r=ae.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(n){var o=r.value;o!==n&&(r.value=n,r.callback(n,o))}}}})[0];return r.callback=t,r.facade}var Cu=typeof window<"u"?l.useLayoutEffect:l.useEffect,ia=new WeakMap;function ku(e,t){var r=Su(null,function(n){return e.forEach(function(o){return Fr(o,n)})});return Cu(function(){var n=ia.get(r);if(n){var o=new Set(n),a=new Set(e),s=r.current;o.forEach(function(i){a.has(i)||Fr(i,null)}),a.forEach(function(i){o.has(i)||Fr(i,s)})}ia.set(r,e)},[e]),r}function Eu(e){return e}function Ru(e,t){t===void 0&&(t=Eu);var r=[],n=!1,o={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(a){var s=t(a,n);return r.push(s),function(){r=r.filter(function(i){return i!==s})}},assignSyncMedium:function(a){for(n=!0;r.length;){var s=r;r=[],s.forEach(a)}r={push:function(i){return a(i)},filter:function(){return r}}},assignMedium:function(a){n=!0;var s=[];if(r.length){var i=r;r=[],i.forEach(a),s=r}var c=function(){var f=s;s=[],f.forEach(a)},d=function(){return Promise.resolve().then(c)};d(),r={push:function(f){s.push(f),d()},filter:function(f){return s=s.filter(f),r}}}};return o}function _u(e){e===void 0&&(e={});var t=Ru(null);return t.options=we({async:!0,ssr:!1},e),t}var la=function(e){var t=e.sideCar,r=sa(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return l.createElement(n,we({},r))};la.isSideCarExport=!0;function Nu(e,t){return e.useMedium(t),la}var ca=_u(),Vr=function(){},Ut=l.forwardRef(function(e,t){var r=l.useRef(null),n=l.useState({onScrollCapture:Vr,onWheelCapture:Vr,onTouchMoveCapture:Vr}),o=n[0],a=n[1],s=e.forwardProps,i=e.children,c=e.className,d=e.removeScrollBar,f=e.enabled,p=e.shards,g=e.sideCar,h=e.noRelative,v=e.noIsolation,m=e.inert,b=e.allowPinchZoom,x=e.as,y=x===void 0?"div":x,w=e.gapMode,C=sa(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),E=g,T=ku([r,t]),_=we(we({},C),o);return l.createElement(l.Fragment,null,f&&l.createElement(E,{sideCar:ca,removeScrollBar:d,shards:p,noRelative:h,noIsolation:v,inert:m,setCallbacks:a,allowPinchZoom:!!b,lockRef:r,gapMode:w}),s?l.cloneElement(l.Children.only(i),we(we({},_),{ref:T})):l.createElement(y,we({},_,{className:c,ref:T}),i))});Ut.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Ut.classNames={fullWidth:Ht,zeroRight:Gt};var Pu=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Tu(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Pu();return t&&e.setAttribute("nonce",t),e}function Au(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Iu(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var ju=function(){var e=0,t=null;return{add:function(r){e==0&&(t=Tu())&&(Au(t,r),Iu(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Ou=function(){var e=ju();return function(t,r){l.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},ua=function(){var e=Ou(),t=function(r){var n=r.styles,o=r.dynamic;return e(n,o),null};return t},Mu={left:0,top:0,right:0,gap:0},Br=function(e){return parseInt(e||"",10)||0},Du=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[Br(r),Br(n),Br(o)]},Lu=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Mu;var t=Du(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},$u=ua(),Ze="data-scroll-locked",Fu=function(e,t,r,n){var o=e.left,a=e.top,s=e.right,i=e.gap;return r===void 0&&(r="margin"),`
123
+ .`.concat(yu,` {
134
124
  overflow: hidden `).concat(n,`;
135
125
  padding-right: `).concat(i,"px ").concat(n,`;
136
126
  }
@@ -147,33 +137,33 @@ React keys must be passed directly to JSX without using spread:
147
137
  `),r==="padding"&&"padding-right: ".concat(i,"px ").concat(n,";")].filter(Boolean).join(""),`
148
138
  }
149
139
 
150
- .`).concat(zt,` {
140
+ .`).concat(Gt,` {
151
141
  right: `).concat(i,"px ").concat(n,`;
152
142
  }
153
143
 
154
- .`).concat(Bt,` {
144
+ .`).concat(Ht,` {
155
145
  margin-right: `).concat(i,"px ").concat(n,`;
156
146
  }
157
147
 
158
- .`).concat(zt," .").concat(zt,` {
148
+ .`).concat(Gt," .").concat(Gt,` {
159
149
  right: 0 `).concat(n,`;
160
150
  }
161
151
 
162
- .`).concat(Bt," .").concat(Bt,` {
152
+ .`).concat(Ht," .").concat(Ht,` {
163
153
  margin-right: 0 `).concat(n,`;
164
154
  }
165
155
 
166
156
  body[`).concat(Ze,`] {
167
- `).concat(lu,": ").concat(i,`px;
157
+ `).concat(wu,": ").concat(i,`px;
168
158
  }
169
- `)},la=function(){var e=parseInt(document.body.getAttribute(Ze)||"0",10);return isFinite(e)?e:0},_u=function(){l.useEffect(function(){return document.body.setAttribute(Ze,(la()+1).toString()),function(){var e=la()-1;e<=0?document.body.removeAttribute(Ze):document.body.setAttribute(Ze,e.toString())}},[])},Nu=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,o=n===void 0?"margin":n;_u();var a=l.useMemo(function(){return ku(o)},[o]);return l.createElement(Eu,{styles:Ru(a,!t,o,r?"":"!important")})},Fr=!1;if(typeof window<"u")try{var Ht=Object.defineProperty({},"passive",{get:function(){return Fr=!0,!0}});window.addEventListener("test",Ht,Ht),window.removeEventListener("test",Ht,Ht)}catch{Fr=!1}var Je=Fr?{passive:!1}:!1,Pu=function(e){return e.tagName==="TEXTAREA"},ca=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!Pu(e)&&r[t]==="visible")},Au=function(e){return ca(e,"overflowY")},Tu=function(e){return ca(e,"overflowX")},ua=function(e,t){var r=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var o=da(e,n);if(o){var a=fa(e,n),s=a[1],i=a[2];if(s>i)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},ju=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},Iu=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},da=function(e,t){return e==="v"?Au(t):Tu(t)},fa=function(e,t){return e==="v"?ju(t):Iu(t)},Ou=function(e,t){return e==="h"&&t==="rtl"?-1:1},Mu=function(e,t,r,n,o){var a=Ou(e,window.getComputedStyle(t).direction),s=a*n,i=r.target,c=t.contains(i),d=!1,f=s>0,p=0,g=0;do{if(!i)break;var h=fa(e,i),v=h[0],m=h[1],b=h[2],x=m-b-a*v;(v||x)&&da(e,i)&&(p+=x,g+=v);var y=i.parentNode;i=y&&y.nodeType===Node.DOCUMENT_FRAGMENT_NODE?y.host:y}while(!c&&i!==document.body||c&&(t.contains(i)||t===i));return(f&&Math.abs(p)<1||!f&&Math.abs(g)<1)&&(d=!0),d},Ut=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},pa=function(e){return[e.deltaX,e.deltaY]},ma=function(e){return e&&"current"in e?e.current:e},Du=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Lu=function(e){return`
159
+ `)},da=function(){var e=parseInt(document.body.getAttribute(Ze)||"0",10);return isFinite(e)?e:0},Vu=function(){l.useEffect(function(){return document.body.setAttribute(Ze,(da()+1).toString()),function(){var e=da()-1;e<=0?document.body.removeAttribute(Ze):document.body.setAttribute(Ze,e.toString())}},[])},Bu=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,o=n===void 0?"margin":n;Vu();var a=l.useMemo(function(){return Lu(o)},[o]);return l.createElement($u,{styles:Fu(a,!t,o,r?"":"!important")})},zr=!1;if(typeof window<"u")try{var Kt=Object.defineProperty({},"passive",{get:function(){return zr=!0,!0}});window.addEventListener("test",Kt,Kt),window.removeEventListener("test",Kt,Kt)}catch{zr=!1}var Je=zr?{passive:!1}:!1,zu=function(e){return e.tagName==="TEXTAREA"},fa=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!zu(e)&&r[t]==="visible")},Wu=function(e){return fa(e,"overflowY")},Gu=function(e){return fa(e,"overflowX")},pa=function(e,t){var r=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var o=ma(e,n);if(o){var a=ha(e,n),s=a[1],i=a[2];if(s>i)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},Hu=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},Uu=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},ma=function(e,t){return e==="v"?Wu(t):Gu(t)},ha=function(e,t){return e==="v"?Hu(t):Uu(t)},Ku=function(e,t){return e==="h"&&t==="rtl"?-1:1},Yu=function(e,t,r,n,o){var a=Ku(e,window.getComputedStyle(t).direction),s=a*n,i=r.target,c=t.contains(i),d=!1,f=s>0,p=0,g=0;do{if(!i)break;var h=ha(e,i),v=h[0],m=h[1],b=h[2],x=m-b-a*v;(v||x)&&ma(e,i)&&(p+=x,g+=v);var y=i.parentNode;i=y&&y.nodeType===Node.DOCUMENT_FRAGMENT_NODE?y.host:y}while(!c&&i!==document.body||c&&(t.contains(i)||t===i));return(f&&Math.abs(p)<1||!f&&Math.abs(g)<1)&&(d=!0),d},Yt=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},ga=function(e){return[e.deltaX,e.deltaY]},va=function(e){return e&&"current"in e?e.current:e},qu=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Xu=function(e){return`
170
160
  .block-interactivity-`.concat(e,` {pointer-events: none;}
171
161
  .allow-interactivity-`).concat(e,` {pointer-events: all;}
172
- `)},$u=0,Qe=[];function Fu(e){var t=l.useRef([]),r=l.useRef([0,0]),n=l.useRef(),o=l.useState($u++)[0],a=l.useState(ia)[0],s=l.useRef(e);l.useEffect(function(){s.current=e},[e]),l.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var m=su([e.lockRef.current],(e.shards||[]).map(ma),!0).filter(Boolean);return m.forEach(function(b){return b.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),m.forEach(function(b){return b.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var i=l.useCallback(function(m,b){if("touches"in m&&m.touches.length===2||m.type==="wheel"&&m.ctrlKey)return!s.current.allowPinchZoom;var x=Ut(m),y=r.current,w="deltaX"in m?m.deltaX:y[0]-x[0],C="deltaY"in m?m.deltaY:y[1]-x[1],E,A=m.target,_=Math.abs(w)>Math.abs(C)?"h":"v";if("touches"in m&&_==="h"&&A.type==="range")return!1;var R=ua(_,A);if(!R)return!0;if(R?E=_:(E=_==="v"?"h":"v",R=ua(_,A)),!R)return!1;if(!n.current&&"changedTouches"in m&&(w||C)&&(n.current=E),!E)return!0;var H=n.current||E;return Mu(H,b,m,H==="h"?w:C)},[]),c=l.useCallback(function(m){var b=m;if(!(!Qe.length||Qe[Qe.length-1]!==a)){var x="deltaY"in b?pa(b):Ut(b),y=t.current.filter(function(E){return E.name===b.type&&(E.target===b.target||b.target===E.shadowParent)&&Du(E.delta,x)})[0];if(y&&y.should){b.cancelable&&b.preventDefault();return}if(!y){var w=(s.current.shards||[]).map(ma).filter(Boolean).filter(function(E){return E.contains(b.target)}),C=w.length>0?i(b,w[0]):!s.current.noIsolation;C&&b.cancelable&&b.preventDefault()}}},[]),d=l.useCallback(function(m,b,x,y){var w={name:m,delta:b,target:x,should:y,shadowParent:Vu(x)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(C){return C!==w})},1)},[]),f=l.useCallback(function(m){r.current=Ut(m),n.current=void 0},[]),p=l.useCallback(function(m){d(m.type,pa(m),m.target,i(m,e.lockRef.current))},[]),g=l.useCallback(function(m){d(m.type,Ut(m),m.target,i(m,e.lockRef.current))},[]);l.useEffect(function(){return Qe.push(a),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:g}),document.addEventListener("wheel",c,Je),document.addEventListener("touchmove",c,Je),document.addEventListener("touchstart",f,Je),function(){Qe=Qe.filter(function(m){return m!==a}),document.removeEventListener("wheel",c,Je),document.removeEventListener("touchmove",c,Je),document.removeEventListener("touchstart",f,Je)}},[]);var h=e.removeScrollBar,v=e.inert;return l.createElement(l.Fragment,null,v?l.createElement(a,{styles:Lu(o)}):null,h?l.createElement(Nu,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Vu(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const zu=hu(sa,Fu);var Gt=l.forwardRef(function(e,t){return l.createElement(Wt,ye({},e,{ref:t,sideCar:zu}))});Gt.classNames=Wt.classNames;var Bu=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},et=new WeakMap,Kt=new WeakMap,Yt={},Vr=0,ha=function(e){return e&&(e.host||ha(e.parentNode))},Wu=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=ha(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},Hu=function(e,t,r,n){var o=Wu(t,Array.isArray(e)?e:[e]);Yt[r]||(Yt[r]=new WeakMap);var a=Yt[r],s=[],i=new Set,c=new Set(o),d=function(p){!p||i.has(p)||(i.add(p),d(p.parentNode))};o.forEach(d);var f=function(p){!p||c.has(p)||Array.prototype.forEach.call(p.children,function(g){if(i.has(g))f(g);else try{var h=g.getAttribute(n),v=h!==null&&h!=="false",m=(et.get(g)||0)+1,b=(a.get(g)||0)+1;et.set(g,m),a.set(g,b),s.push(g),m===1&&v&&Kt.set(g,!0),b===1&&g.setAttribute(r,"true"),v||g.setAttribute(n,"true")}catch(x){console.error("aria-hidden: cannot operate on ",g,x)}})};return f(t),i.clear(),Vr++,function(){s.forEach(function(p){var g=et.get(p)-1,h=a.get(p)-1;et.set(p,g),a.set(p,h),g||(Kt.has(p)||p.removeAttribute(n),Kt.delete(p)),h||p.removeAttribute(r)}),Vr--,Vr||(et=new WeakMap,et=new WeakMap,Kt=new WeakMap,Yt={})}},zr=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=Bu(e);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live], script"))),Hu(n,o,r,"aria-hidden")):function(){return null}},qt="Dialog",[ga,rg]=me(qt),[Uu,he]=ga(qt),va=e=>{const{__scopeDialog:t,children:r,open:n,defaultOpen:o,onOpenChange:a,modal:s=!0}=e,i=l.useRef(null),c=l.useRef(null),[d,f]=_e({prop:n,defaultProp:o??!1,onChange:a,caller:qt});return u.jsx(Uu,{scope:t,triggerRef:i,contentRef:c,contentId:ue(),titleId:ue(),descriptionId:ue(),open:d,onOpenChange:f,onOpenToggle:l.useCallback(()=>f(p=>!p),[f]),modal:s,children:r})};va.displayName=qt;var ba="DialogTrigger",xa=l.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=he(ba,r),a=ne(t,o.triggerRef);return u.jsx(z.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Hr(o.open),...n,ref:a,onClick:B(e.onClick,o.onOpenToggle)})});xa.displayName=ba;var Br="DialogPortal",[Gu,ya]=ga(Br,{forceMount:void 0}),wa=e=>{const{__scopeDialog:t,forceMount:r,children:n,container:o}=e,a=he(Br,t);return u.jsx(Gu,{scope:t,forceMount:r,children:l.Children.map(n,s=>u.jsx(xe,{present:r||a.open,children:u.jsx(gt,{asChild:!0,container:o,children:s})}))})};wa.displayName=Br;var Xt="DialogOverlay",Sa=l.forwardRef((e,t)=>{const r=ya(Xt,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=he(Xt,e.__scopeDialog);return a.modal?u.jsx(xe,{present:n||a.open,children:u.jsx(Yu,{...o,ref:t})}):null});Sa.displayName=Xt;var Ku=ze("DialogOverlay.RemoveScroll"),Yu=l.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=he(Xt,r);return u.jsx(Gt,{as:Ku,allowPinchZoom:!0,shards:[o.contentRef],children:u.jsx(z.div,{"data-state":Hr(o.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),We="DialogContent",Ca=l.forwardRef((e,t)=>{const r=ya(We,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=he(We,e.__scopeDialog);return u.jsx(xe,{present:n||a.open,children:a.modal?u.jsx(qu,{...o,ref:t}):u.jsx(Xu,{...o,ref:t})})});Ca.displayName=We;var qu=l.forwardRef((e,t)=>{const r=he(We,e.__scopeDialog),n=l.useRef(null),o=ne(t,r.contentRef,n);return l.useEffect(()=>{const a=n.current;if(a)return zr(a)},[]),u.jsx(ka,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:B(e.onCloseAutoFocus,a=>{var s;a.preventDefault(),(s=r.triggerRef.current)==null||s.focus()}),onPointerDownOutside:B(e.onPointerDownOutside,a=>{const s=a.detail.originalEvent,i=s.button===0&&s.ctrlKey===!0;(s.button===2||i)&&a.preventDefault()}),onFocusOutside:B(e.onFocusOutside,a=>a.preventDefault())})}),Xu=l.forwardRef((e,t)=>{const r=he(We,e.__scopeDialog),n=l.useRef(!1),o=l.useRef(!1);return u.jsx(ka,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{var s,i;(s=e.onCloseAutoFocus)==null||s.call(e,a),a.defaultPrevented||(n.current||(i=r.triggerRef.current)==null||i.focus(),a.preventDefault()),n.current=!1,o.current=!1},onInteractOutside:a=>{var c,d;(c=e.onInteractOutside)==null||c.call(e,a),a.defaultPrevented||(n.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const s=a.target;((d=r.triggerRef.current)==null?void 0:d.contains(s))&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),ka=l.forwardRef((e,t)=>{const{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:a,...s}=e,i=he(We,r),c=l.useRef(null),d=ne(t,c);return Mr(),u.jsxs(u.Fragment,{children:[u.jsx(Vt,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:a,children:u.jsx(ht,{role:"dialog",id:i.contentId,"aria-describedby":i.descriptionId,"aria-labelledby":i.titleId,"data-state":Hr(i.open),...s,ref:d,onDismiss:()=>i.onOpenChange(!1)})}),u.jsxs(u.Fragment,{children:[u.jsx(Zu,{titleId:i.titleId}),u.jsx(Qu,{contentRef:c,descriptionId:i.descriptionId})]})]})}),Wr="DialogTitle",Ea=l.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=he(Wr,r);return u.jsx(z.h2,{id:o.titleId,...n,ref:t})});Ea.displayName=Wr;var Ra="DialogDescription",_a=l.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=he(Ra,r);return u.jsx(z.p,{id:o.descriptionId,...n,ref:t})});_a.displayName=Ra;var Na="DialogClose",Pa=l.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=he(Na,r);return u.jsx(z.button,{type:"button",...n,ref:t,onClick:B(e.onClick,()=>o.onOpenChange(!1))})});Pa.displayName=Na;function Hr(e){return e?"open":"closed"}var Aa="DialogTitleWarning",[ng,Ta]=Al(Aa,{contentName:We,titleName:Wr,docsSlug:"dialog"}),Zu=({titleId:e})=>{const t=Ta(Aa),r=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
162
+ `)},Zu=0,Qe=[];function Ju(e){var t=l.useRef([]),r=l.useRef([0,0]),n=l.useRef(),o=l.useState(Zu++)[0],a=l.useState(ua)[0],s=l.useRef(e);l.useEffect(function(){s.current=e},[e]),l.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var m=xu([e.lockRef.current],(e.shards||[]).map(va),!0).filter(Boolean);return m.forEach(function(b){return b.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),m.forEach(function(b){return b.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var i=l.useCallback(function(m,b){if("touches"in m&&m.touches.length===2||m.type==="wheel"&&m.ctrlKey)return!s.current.allowPinchZoom;var x=Yt(m),y=r.current,w="deltaX"in m?m.deltaX:y[0]-x[0],C="deltaY"in m?m.deltaY:y[1]-x[1],E,T=m.target,_=Math.abs(w)>Math.abs(C)?"h":"v";if("touches"in m&&_==="h"&&T.type==="range")return!1;var R=pa(_,T);if(!R)return!0;if(R?E=_:(E=_==="v"?"h":"v",R=pa(_,T)),!R)return!1;if(!n.current&&"changedTouches"in m&&(w||C)&&(n.current=E),!E)return!0;var G=n.current||E;return Yu(G,b,m,G==="h"?w:C)},[]),c=l.useCallback(function(m){var b=m;if(!(!Qe.length||Qe[Qe.length-1]!==a)){var x="deltaY"in b?ga(b):Yt(b),y=t.current.filter(function(E){return E.name===b.type&&(E.target===b.target||b.target===E.shadowParent)&&qu(E.delta,x)})[0];if(y&&y.should){b.cancelable&&b.preventDefault();return}if(!y){var w=(s.current.shards||[]).map(va).filter(Boolean).filter(function(E){return E.contains(b.target)}),C=w.length>0?i(b,w[0]):!s.current.noIsolation;C&&b.cancelable&&b.preventDefault()}}},[]),d=l.useCallback(function(m,b,x,y){var w={name:m,delta:b,target:x,should:y,shadowParent:Qu(x)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(C){return C!==w})},1)},[]),f=l.useCallback(function(m){r.current=Yt(m),n.current=void 0},[]),p=l.useCallback(function(m){d(m.type,ga(m),m.target,i(m,e.lockRef.current))},[]),g=l.useCallback(function(m){d(m.type,Yt(m),m.target,i(m,e.lockRef.current))},[]);l.useEffect(function(){return Qe.push(a),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:g}),document.addEventListener("wheel",c,Je),document.addEventListener("touchmove",c,Je),document.addEventListener("touchstart",f,Je),function(){Qe=Qe.filter(function(m){return m!==a}),document.removeEventListener("wheel",c,Je),document.removeEventListener("touchmove",c,Je),document.removeEventListener("touchstart",f,Je)}},[]);var h=e.removeScrollBar,v=e.inert;return l.createElement(l.Fragment,null,v?l.createElement(a,{styles:Xu(o)}):null,h?l.createElement(Bu,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Qu(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const ed=Nu(ca,Ju);var qt=l.forwardRef(function(e,t){return l.createElement(Ut,we({},e,{ref:t,sideCar:ed}))});qt.classNames=Ut.classNames;var td=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},et=new WeakMap,Xt=new WeakMap,Zt={},Wr=0,ba=function(e){return e&&(e.host||ba(e.parentNode))},rd=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=ba(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},nd=function(e,t,r,n){var o=rd(t,Array.isArray(e)?e:[e]);Zt[r]||(Zt[r]=new WeakMap);var a=Zt[r],s=[],i=new Set,c=new Set(o),d=function(p){!p||i.has(p)||(i.add(p),d(p.parentNode))};o.forEach(d);var f=function(p){!p||c.has(p)||Array.prototype.forEach.call(p.children,function(g){if(i.has(g))f(g);else try{var h=g.getAttribute(n),v=h!==null&&h!=="false",m=(et.get(g)||0)+1,b=(a.get(g)||0)+1;et.set(g,m),a.set(g,b),s.push(g),m===1&&v&&Xt.set(g,!0),b===1&&g.setAttribute(r,"true"),v||g.setAttribute(n,"true")}catch(x){console.error("aria-hidden: cannot operate on ",g,x)}})};return f(t),i.clear(),Wr++,function(){s.forEach(function(p){var g=et.get(p)-1,h=a.get(p)-1;et.set(p,g),a.set(p,h),g||(Xt.has(p)||p.removeAttribute(n),Xt.delete(p)),h||p.removeAttribute(r)}),Wr--,Wr||(et=new WeakMap,et=new WeakMap,Xt=new WeakMap,Zt={})}},Gr=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=td(e);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live], script"))),nd(n,o,r,"aria-hidden")):function(){return null}},Jt="Dialog",[xa,Eg]=de(Jt),[od,ge]=xa(Jt),ya=e=>{const{__scopeDialog:t,children:r,open:n,defaultOpen:o,onOpenChange:a,modal:s=!0}=e,i=l.useRef(null),c=l.useRef(null),[d,f]=ye({prop:n,defaultProp:o??!1,onChange:a,caller:Jt});return u.jsx(od,{scope:t,triggerRef:i,contentRef:c,contentId:ce(),titleId:ce(),descriptionId:ce(),open:d,onOpenChange:f,onOpenToggle:l.useCallback(()=>f(p=>!p),[f]),modal:s,children:r})};ya.displayName=Jt;var wa="DialogTrigger",Sa=l.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=ge(wa,r),a=ne(t,o.triggerRef);return u.jsx(V.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Kr(o.open),...n,ref:a,onClick:z(e.onClick,o.onOpenToggle)})});Sa.displayName=wa;var Hr="DialogPortal",[ad,Ca]=xa(Hr,{forceMount:void 0}),ka=e=>{const{__scopeDialog:t,forceMount:r,children:n,container:o}=e,a=ge(Hr,t);return u.jsx(ad,{scope:t,forceMount:r,children:l.Children.map(n,s=>u.jsx(he,{present:r||a.open,children:u.jsx(gt,{asChild:!0,container:o,children:s})}))})};ka.displayName=Hr;var Qt="DialogOverlay",Ea=l.forwardRef((e,t)=>{const r=Ca(Qt,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=ge(Qt,e.__scopeDialog);return a.modal?u.jsx(he,{present:n||a.open,children:u.jsx(id,{...o,ref:t})}):null});Ea.displayName=Qt;var sd=Be("DialogOverlay.RemoveScroll"),id=l.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=ge(Qt,r);return u.jsx(qt,{as:sd,allowPinchZoom:!0,shards:[o.contentRef],children:u.jsx(V.div,{"data-state":Kr(o.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),We="DialogContent",Ra=l.forwardRef((e,t)=>{const r=Ca(We,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=ge(We,e.__scopeDialog);return u.jsx(he,{present:n||a.open,children:a.modal?u.jsx(ld,{...o,ref:t}):u.jsx(cd,{...o,ref:t})})});Ra.displayName=We;var ld=l.forwardRef((e,t)=>{const r=ge(We,e.__scopeDialog),n=l.useRef(null),o=ne(t,r.contentRef,n);return l.useEffect(()=>{const a=n.current;if(a)return Gr(a)},[]),u.jsx(_a,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:z(e.onCloseAutoFocus,a=>{var s;a.preventDefault(),(s=r.triggerRef.current)==null||s.focus()}),onPointerDownOutside:z(e.onPointerDownOutside,a=>{const s=a.detail.originalEvent,i=s.button===0&&s.ctrlKey===!0;(s.button===2||i)&&a.preventDefault()}),onFocusOutside:z(e.onFocusOutside,a=>a.preventDefault())})}),cd=l.forwardRef((e,t)=>{const r=ge(We,e.__scopeDialog),n=l.useRef(!1),o=l.useRef(!1);return u.jsx(_a,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{var s,i;(s=e.onCloseAutoFocus)==null||s.call(e,a),a.defaultPrevented||(n.current||(i=r.triggerRef.current)==null||i.focus(),a.preventDefault()),n.current=!1,o.current=!1},onInteractOutside:a=>{var c,d;(c=e.onInteractOutside)==null||c.call(e,a),a.defaultPrevented||(n.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const s=a.target;((d=r.triggerRef.current)==null?void 0:d.contains(s))&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),_a=l.forwardRef((e,t)=>{const{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:a,...s}=e,i=ge(We,r),c=l.useRef(null),d=ne(t,c);return $r(),u.jsxs(u.Fragment,{children:[u.jsx(Wt,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:a,children:u.jsx(ht,{role:"dialog",id:i.contentId,"aria-describedby":i.descriptionId,"aria-labelledby":i.titleId,"data-state":Kr(i.open),...s,ref:d,onDismiss:()=>i.onOpenChange(!1)})}),u.jsxs(u.Fragment,{children:[u.jsx(ud,{titleId:i.titleId}),u.jsx(fd,{contentRef:c,descriptionId:i.descriptionId})]})]})}),Ur="DialogTitle",Na=l.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=ge(Ur,r);return u.jsx(V.h2,{id:o.titleId,...n,ref:t})});Na.displayName=Ur;var Pa="DialogDescription",Ta=l.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=ge(Pa,r);return u.jsx(V.p,{id:o.descriptionId,...n,ref:t})});Ta.displayName=Pa;var Aa="DialogClose",Ia=l.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=ge(Aa,r);return u.jsx(V.button,{type:"button",...n,ref:t,onClick:z(e.onClick,()=>o.onOpenChange(!1))})});Ia.displayName=Aa;function Kr(e){return e?"open":"closed"}var ja="DialogTitleWarning",[Rg,Oa]=Kl(ja,{contentName:We,titleName:Ur,docsSlug:"dialog"}),ud=({titleId:e})=>{const t=Oa(ja),r=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
173
163
 
174
164
  If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
175
165
 
176
- For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return l.useEffect(()=>{e&&(document.getElementById(e)||console.error(r))},[r,e]),null},Ju="DialogDescriptionWarning",Qu=({contentRef:e,descriptionId:t})=>{const n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Ta(Ju).contentName}}.`;return l.useEffect(()=>{var a;const o=(a=e.current)==null?void 0:a.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(n))},[n,e,t]),null},ja=va,ed=xa,Ia=wa,Oa=Sa,Ma=Ca,td=Ea,rd=_a,Da=Pa;function nd({...e}){return u.jsx(ja,{"data-slot":"dialog",...e})}function od({...e}){return u.jsx(ed,{"data-slot":"dialog-trigger",...e})}function La({...e}){return u.jsx(Ia,{"data-slot":"dialog-portal",...e})}function ad({...e}){return u.jsx(Da,{"data-slot":"dialog-close",...e})}function $a({className:e,...t}){return u.jsx(Oa,{"data-slot":"dialog-overlay",className:D("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",e),...t})}function sd({className:e,children:t,showCloseButton:r=!0,...n}){return u.jsxs(La,{"data-slot":"dialog-portal",children:[u.jsx($a,{}),u.jsxs(Ma,{"data-slot":"dialog-content",className:D("bg-background bg-white data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border border-none p-6 shadow-lg duration-200 sm:max-w-lg",e),...n,children:[t,r&&u.jsxs(Da,{"data-slot":"dialog-close",className:"ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",children:[u.jsx(Uo,{}),u.jsx("span",{className:"sr-only",children:"Close"})]})]})]})}function id({className:e,...t}){return u.jsx("div",{"data-slot":"dialog-header",className:D("flex flex-col gap-2 text-center sm:text-left",e),...t})}function ld({className:e,...t}){return u.jsx("div",{"data-slot":"dialog-footer",className:D("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",e),...t})}function cd({className:e,...t}){return u.jsx(td,{"data-slot":"dialog-title",className:D("text-lg leading-none font-semibold ",e),...t})}function ud({className:e,...t}){return u.jsx(rd,{"data-slot":"dialog-description",className:D("text-muted-foreground text-sm",e),...t})}const dd=ce("inline-flex items-center justify-center rounded-full font-medium w-fit whitespace-nowrap shrink-0 gap-1 text-sm",{variants:{variant:{primary:"bg-tag-light-blue text-tag-dark-blue border-tag-light-blue",neutral:"bg-tag-light-gray text-tag-dark-gray border-tag-light-gray",warning:"bg-tag-light-brown text-tag-dark-brown border-tag-stroke-warning-border",success:"bg-tag-light-green text-tag-dark-green border-tag-stroke-success-border",error:"bg-tag-light-red-light text-tag-dark-red-dark border-tag-stroke-error-border",secondary:"bg-tag-light-ice-blue text-tag-dark-ice-blue border-tag-stroke-dark-border"},type:{filled:"border-0",outline:"border bg-transparent"},size:{md:"px-3 py-0.5 text-sm"}},defaultVariants:{variant:"primary",type:"filled",size:"md"}}),Ur=l.forwardRef(({className:e,variant:t,type:r="filled",asChild:n=!1,children:o,...a},s)=>{const i=n?Tt:"span";return u.jsx(i,{ref:s,"data-slot":"badge",className:D(dd({variant:t,type:r}),r==="outline"?"bg-transparent":"",e),...a,children:o})});Ur.displayName="Badge";const fd=["top","right","bottom","left"],Oe=Math.min,de=Math.max,Zt=Math.round,Jt=Math.floor,we=e=>({x:e,y:e}),pd={left:"right",right:"left",bottom:"top",top:"bottom"},md={start:"end",end:"start"};function Gr(e,t,r){return de(e,Oe(t,r))}function Pe(e,t){return typeof e=="function"?e(t):e}function Ae(e){return e.split("-")[0]}function tt(e){return e.split("-")[1]}function Kr(e){return e==="x"?"y":"x"}function Yr(e){return e==="y"?"height":"width"}const hd=new Set(["top","bottom"]);function Se(e){return hd.has(Ae(e))?"y":"x"}function qr(e){return Kr(Se(e))}function gd(e,t,r){r===void 0&&(r=!1);const n=tt(e),o=qr(e),a=Yr(o);let s=o==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(s=Qt(s)),[s,Qt(s)]}function vd(e){const t=Qt(e);return[Xr(e),t,Xr(t)]}function Xr(e){return e.replace(/start|end/g,t=>md[t])}const Fa=["left","right"],Va=["right","left"],bd=["top","bottom"],xd=["bottom","top"];function yd(e,t,r){switch(e){case"top":case"bottom":return r?t?Va:Fa:t?Fa:Va;case"left":case"right":return t?bd:xd;default:return[]}}function wd(e,t,r,n){const o=tt(e);let a=yd(Ae(e),r==="start",n);return o&&(a=a.map(s=>s+"-"+o),t&&(a=a.concat(a.map(Xr)))),a}function Qt(e){return e.replace(/left|right|bottom|top/g,t=>pd[t])}function Sd(e){return{top:0,right:0,bottom:0,left:0,...e}}function za(e){return typeof e!="number"?Sd(e):{top:e,right:e,bottom:e,left:e}}function er(e){const{x:t,y:r,width:n,height:o}=e;return{width:n,height:o,top:r,left:t,right:t+n,bottom:r+o,x:t,y:r}}function Ba(e,t,r){let{reference:n,floating:o}=e;const a=Se(t),s=qr(t),i=Yr(s),c=Ae(t),d=a==="y",f=n.x+n.width/2-o.width/2,p=n.y+n.height/2-o.height/2,g=n[i]/2-o[i]/2;let h;switch(c){case"top":h={x:f,y:n.y-o.height};break;case"bottom":h={x:f,y:n.y+n.height};break;case"right":h={x:n.x+n.width,y:p};break;case"left":h={x:n.x-o.width,y:p};break;default:h={x:n.x,y:n.y}}switch(tt(t)){case"start":h[s]-=g*(r&&d?-1:1);break;case"end":h[s]+=g*(r&&d?-1:1);break}return h}const Cd=async(e,t,r)=>{const{placement:n="bottom",strategy:o="absolute",middleware:a=[],platform:s}=r,i=a.filter(Boolean),c=await(s.isRTL==null?void 0:s.isRTL(t));let d=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:f,y:p}=Ba(d,n,c),g=n,h={},v=0;for(let m=0;m<i.length;m++){const{name:b,fn:x}=i[m],{x:y,y:w,data:C,reset:E}=await x({x:f,y:p,initialPlacement:n,placement:g,strategy:o,middlewareData:h,rects:d,platform:s,elements:{reference:e,floating:t}});f=y??f,p=w??p,h={...h,[b]:{...h[b],...C}},E&&v<=50&&(v++,typeof E=="object"&&(E.placement&&(g=E.placement),E.rects&&(d=E.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:o}):E.rects),{x:f,y:p}=Ba(d,g,c)),m=-1)}return{x:f,y:p,placement:g,strategy:o,middlewareData:h}};async function vt(e,t){var r;t===void 0&&(t={});const{x:n,y:o,platform:a,rects:s,elements:i,strategy:c}=e,{boundary:d="clippingAncestors",rootBoundary:f="viewport",elementContext:p="floating",altBoundary:g=!1,padding:h=0}=Pe(t,e),v=za(h),b=i[g?p==="floating"?"reference":"floating":p],x=er(await a.getClippingRect({element:(r=await(a.isElement==null?void 0:a.isElement(b)))==null||r?b:b.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(i.floating)),boundary:d,rootBoundary:f,strategy:c})),y=p==="floating"?{x:n,y:o,width:s.floating.width,height:s.floating.height}:s.reference,w=await(a.getOffsetParent==null?void 0:a.getOffsetParent(i.floating)),C=await(a.isElement==null?void 0:a.isElement(w))?await(a.getScale==null?void 0:a.getScale(w))||{x:1,y:1}:{x:1,y:1},E=er(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:i,rect:y,offsetParent:w,strategy:c}):y);return{top:(x.top-E.top+v.top)/C.y,bottom:(E.bottom-x.bottom+v.bottom)/C.y,left:(x.left-E.left+v.left)/C.x,right:(E.right-x.right+v.right)/C.x}}const kd=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:n,placement:o,rects:a,platform:s,elements:i,middlewareData:c}=t,{element:d,padding:f=0}=Pe(e,t)||{};if(d==null)return{};const p=za(f),g={x:r,y:n},h=qr(o),v=Yr(h),m=await s.getDimensions(d),b=h==="y",x=b?"top":"left",y=b?"bottom":"right",w=b?"clientHeight":"clientWidth",C=a.reference[v]+a.reference[h]-g[h]-a.floating[v],E=g[h]-a.reference[h],A=await(s.getOffsetParent==null?void 0:s.getOffsetParent(d));let _=A?A[w]:0;(!_||!await(s.isElement==null?void 0:s.isElement(A)))&&(_=i.floating[w]||a.floating[v]);const R=C/2-E/2,H=_/2-m[v]/2-1,K=Oe(p[x],H),X=Oe(p[y],H),Q=K,ee=_-m[v]-X,W=_/2-m[v]/2+R,q=Gr(Q,W,ee),L=!c.arrow&&tt(o)!=null&&W!==q&&a.reference[v]/2-(W<Q?K:X)-m[v]/2<0,U=L?W<Q?W-Q:W-ee:0;return{[h]:g[h]+U,data:{[h]:q,centerOffset:W-q-U,...L&&{alignmentOffset:U}},reset:L}}}),Ed=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,n;const{placement:o,middlewareData:a,rects:s,initialPlacement:i,platform:c,elements:d}=t,{mainAxis:f=!0,crossAxis:p=!0,fallbackPlacements:g,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:m=!0,...b}=Pe(e,t);if((r=a.arrow)!=null&&r.alignmentOffset)return{};const x=Ae(o),y=Se(i),w=Ae(i)===i,C=await(c.isRTL==null?void 0:c.isRTL(d.floating)),E=g||(w||!m?[Qt(i)]:vd(i)),A=v!=="none";!g&&A&&E.push(...wd(i,m,v,C));const _=[i,...E],R=await vt(t,b),H=[];let K=((n=a.flip)==null?void 0:n.overflows)||[];if(f&&H.push(R[x]),p){const W=gd(o,s,C);H.push(R[W[0]],R[W[1]])}if(K=[...K,{placement:o,overflows:H}],!H.every(W=>W<=0)){var X,Q;const W=(((X=a.flip)==null?void 0:X.index)||0)+1,q=_[W];if(q&&(!(p==="alignment"?y!==Se(q):!1)||K.every(N=>Se(N.placement)===y?N.overflows[0]>0:!0)))return{data:{index:W,overflows:K},reset:{placement:q}};let L=(Q=K.filter(U=>U.overflows[0]<=0).sort((U,N)=>U.overflows[1]-N.overflows[1])[0])==null?void 0:Q.placement;if(!L)switch(h){case"bestFit":{var ee;const U=(ee=K.filter(N=>{if(A){const te=Se(N.placement);return te===y||te==="y"}return!0}).map(N=>[N.placement,N.overflows.filter(te=>te>0).reduce((te,k)=>te+k,0)]).sort((N,te)=>N[1]-te[1])[0])==null?void 0:ee[0];U&&(L=U);break}case"initialPlacement":L=i;break}if(o!==L)return{reset:{placement:L}}}return{}}}};function Wa(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Ha(e){return fd.some(t=>e[t]>=0)}const Rd=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r}=t,{strategy:n="referenceHidden",...o}=Pe(e,t);switch(n){case"referenceHidden":{const a=await vt(t,{...o,elementContext:"reference"}),s=Wa(a,r.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:Ha(s)}}}case"escaped":{const a=await vt(t,{...o,altBoundary:!0}),s=Wa(a,r.floating);return{data:{escapedOffsets:s,escaped:Ha(s)}}}default:return{}}}}},Ua=new Set(["left","top"]);async function _d(e,t){const{placement:r,platform:n,elements:o}=e,a=await(n.isRTL==null?void 0:n.isRTL(o.floating)),s=Ae(r),i=tt(r),c=Se(r)==="y",d=Ua.has(s)?-1:1,f=a&&c?-1:1,p=Pe(t,e);let{mainAxis:g,crossAxis:h,alignmentAxis:v}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return i&&typeof v=="number"&&(h=i==="end"?v*-1:v),c?{x:h*f,y:g*d}:{x:g*d,y:h*f}}const Nd=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,n;const{x:o,y:a,placement:s,middlewareData:i}=t,c=await _d(t,e);return s===((r=i.offset)==null?void 0:r.placement)&&(n=i.arrow)!=null&&n.alignmentOffset?{}:{x:o+c.x,y:a+c.y,data:{...c,placement:s}}}}},Pd=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:o}=t,{mainAxis:a=!0,crossAxis:s=!1,limiter:i={fn:b=>{let{x,y}=b;return{x,y}}},...c}=Pe(e,t),d={x:r,y:n},f=await vt(t,c),p=Se(Ae(o)),g=Kr(p);let h=d[g],v=d[p];if(a){const b=g==="y"?"top":"left",x=g==="y"?"bottom":"right",y=h+f[b],w=h-f[x];h=Gr(y,h,w)}if(s){const b=p==="y"?"top":"left",x=p==="y"?"bottom":"right",y=v+f[b],w=v-f[x];v=Gr(y,v,w)}const m=i.fn({...t,[g]:h,[p]:v});return{...m,data:{x:m.x-r,y:m.y-n,enabled:{[g]:a,[p]:s}}}}}},Ad=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:r,y:n,placement:o,rects:a,middlewareData:s}=t,{offset:i=0,mainAxis:c=!0,crossAxis:d=!0}=Pe(e,t),f={x:r,y:n},p=Se(o),g=Kr(p);let h=f[g],v=f[p];const m=Pe(i,t),b=typeof m=="number"?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(c){const w=g==="y"?"height":"width",C=a.reference[g]-a.floating[w]+b.mainAxis,E=a.reference[g]+a.reference[w]-b.mainAxis;h<C?h=C:h>E&&(h=E)}if(d){var x,y;const w=g==="y"?"width":"height",C=Ua.has(Ae(o)),E=a.reference[p]-a.floating[w]+(C&&((x=s.offset)==null?void 0:x[p])||0)+(C?0:b.crossAxis),A=a.reference[p]+a.reference[w]+(C?0:((y=s.offset)==null?void 0:y[p])||0)-(C?b.crossAxis:0);v<E?v=E:v>A&&(v=A)}return{[g]:h,[p]:v}}}},Td=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var r,n;const{placement:o,rects:a,platform:s,elements:i}=t,{apply:c=()=>{},...d}=Pe(e,t),f=await vt(t,d),p=Ae(o),g=tt(o),h=Se(o)==="y",{width:v,height:m}=a.floating;let b,x;p==="top"||p==="bottom"?(b=p,x=g===(await(s.isRTL==null?void 0:s.isRTL(i.floating))?"start":"end")?"left":"right"):(x=p,b=g==="end"?"top":"bottom");const y=m-f.top-f.bottom,w=v-f.left-f.right,C=Oe(m-f[b],y),E=Oe(v-f[x],w),A=!t.middlewareData.shift;let _=C,R=E;if((r=t.middlewareData.shift)!=null&&r.enabled.x&&(R=w),(n=t.middlewareData.shift)!=null&&n.enabled.y&&(_=y),A&&!g){const K=de(f.left,0),X=de(f.right,0),Q=de(f.top,0),ee=de(f.bottom,0);h?R=v-2*(K!==0||X!==0?K+X:de(f.left,f.right)):_=m-2*(Q!==0||ee!==0?Q+ee:de(f.top,f.bottom))}await c({...t,availableWidth:R,availableHeight:_});const H=await s.getDimensions(i.floating);return v!==H.width||m!==H.height?{reset:{rects:!0}}:{}}}};function tr(){return typeof window<"u"}function rt(e){return Ga(e)?(e.nodeName||"").toLowerCase():"#document"}function fe(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Ce(e){var t;return(t=(Ga(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Ga(e){return tr()?e instanceof Node||e instanceof fe(e).Node:!1}function ge(e){return tr()?e instanceof Element||e instanceof fe(e).Element:!1}function ke(e){return tr()?e instanceof HTMLElement||e instanceof fe(e).HTMLElement:!1}function Ka(e){return!tr()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof fe(e).ShadowRoot}const jd=new Set(["inline","contents"]);function bt(e){const{overflow:t,overflowX:r,overflowY:n,display:o}=ve(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!jd.has(o)}const Id=new Set(["table","td","th"]);function Od(e){return Id.has(rt(e))}const Md=[":popover-open",":modal"];function rr(e){return Md.some(t=>{try{return e.matches(t)}catch{return!1}})}const Dd=["transform","translate","scale","rotate","perspective"],Ld=["transform","translate","scale","rotate","perspective","filter"],$d=["paint","layout","strict","content"];function Zr(e){const t=Jr(),r=ge(e)?ve(e):e;return Dd.some(n=>r[n]?r[n]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(r.filter?r.filter!=="none":!1)||Ld.some(n=>(r.willChange||"").includes(n))||$d.some(n=>(r.contain||"").includes(n))}function Fd(e){let t=Me(e);for(;ke(t)&&!nt(t);){if(Zr(t))return t;if(rr(t))return null;t=Me(t)}return null}function Jr(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const Vd=new Set(["html","body","#document"]);function nt(e){return Vd.has(rt(e))}function ve(e){return fe(e).getComputedStyle(e)}function nr(e){return ge(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Me(e){if(rt(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Ka(e)&&e.host||Ce(e);return Ka(t)?t.host:t}function Ya(e){const t=Me(e);return nt(t)?e.ownerDocument?e.ownerDocument.body:e.body:ke(t)&&bt(t)?t:Ya(t)}function xt(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);const o=Ya(e),a=o===((n=e.ownerDocument)==null?void 0:n.body),s=fe(o);if(a){const i=Qr(s);return t.concat(s,s.visualViewport||[],bt(o)?o:[],i&&r?xt(i):[])}return t.concat(o,xt(o,[],r))}function Qr(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function qa(e){const t=ve(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const o=ke(e),a=o?e.offsetWidth:r,s=o?e.offsetHeight:n,i=Zt(r)!==a||Zt(n)!==s;return i&&(r=a,n=s),{width:r,height:n,$:i}}function en(e){return ge(e)?e:e.contextElement}function ot(e){const t=en(e);if(!ke(t))return we(1);const r=t.getBoundingClientRect(),{width:n,height:o,$:a}=qa(t);let s=(a?Zt(r.width):r.width)/n,i=(a?Zt(r.height):r.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!i||!Number.isFinite(i))&&(i=1),{x:s,y:i}}const zd=we(0);function Xa(e){const t=fe(e);return!Jr()||!t.visualViewport?zd:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Bd(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==fe(e)?!1:t}function He(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);const o=e.getBoundingClientRect(),a=en(e);let s=we(1);t&&(n?ge(n)&&(s=ot(n)):s=ot(e));const i=Bd(a,r,n)?Xa(a):we(0);let c=(o.left+i.x)/s.x,d=(o.top+i.y)/s.y,f=o.width/s.x,p=o.height/s.y;if(a){const g=fe(a),h=n&&ge(n)?fe(n):n;let v=g,m=Qr(v);for(;m&&n&&h!==v;){const b=ot(m),x=m.getBoundingClientRect(),y=ve(m),w=x.left+(m.clientLeft+parseFloat(y.paddingLeft))*b.x,C=x.top+(m.clientTop+parseFloat(y.paddingTop))*b.y;c*=b.x,d*=b.y,f*=b.x,p*=b.y,c+=w,d+=C,v=fe(m),m=Qr(v)}}return er({width:f,height:p,x:c,y:d})}function or(e,t){const r=nr(e).scrollLeft;return t?t.left+r:He(Ce(e)).left+r}function Za(e,t){const r=e.getBoundingClientRect(),n=r.left+t.scrollLeft-or(e,r),o=r.top+t.scrollTop;return{x:n,y:o}}function Wd(e){let{elements:t,rect:r,offsetParent:n,strategy:o}=e;const a=o==="fixed",s=Ce(n),i=t?rr(t.floating):!1;if(n===s||i&&a)return r;let c={scrollLeft:0,scrollTop:0},d=we(1);const f=we(0),p=ke(n);if((p||!p&&!a)&&((rt(n)!=="body"||bt(s))&&(c=nr(n)),ke(n))){const h=He(n);d=ot(n),f.x=h.x+n.clientLeft,f.y=h.y+n.clientTop}const g=s&&!p&&!a?Za(s,c):we(0);return{width:r.width*d.x,height:r.height*d.y,x:r.x*d.x-c.scrollLeft*d.x+f.x+g.x,y:r.y*d.y-c.scrollTop*d.y+f.y+g.y}}function Hd(e){return Array.from(e.getClientRects())}function Ud(e){const t=Ce(e),r=nr(e),n=e.ownerDocument.body,o=de(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),a=de(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let s=-r.scrollLeft+or(e);const i=-r.scrollTop;return ve(n).direction==="rtl"&&(s+=de(t.clientWidth,n.clientWidth)-o),{width:o,height:a,x:s,y:i}}const Ja=25;function Gd(e,t){const r=fe(e),n=Ce(e),o=r.visualViewport;let a=n.clientWidth,s=n.clientHeight,i=0,c=0;if(o){a=o.width,s=o.height;const f=Jr();(!f||f&&t==="fixed")&&(i=o.offsetLeft,c=o.offsetTop)}const d=or(n);if(d<=0){const f=n.ownerDocument,p=f.body,g=getComputedStyle(p),h=f.compatMode==="CSS1Compat"&&parseFloat(g.marginLeft)+parseFloat(g.marginRight)||0,v=Math.abs(n.clientWidth-p.clientWidth-h);v<=Ja&&(a-=v)}else d<=Ja&&(a+=d);return{width:a,height:s,x:i,y:c}}const Kd=new Set(["absolute","fixed"]);function Yd(e,t){const r=He(e,!0,t==="fixed"),n=r.top+e.clientTop,o=r.left+e.clientLeft,a=ke(e)?ot(e):we(1),s=e.clientWidth*a.x,i=e.clientHeight*a.y,c=o*a.x,d=n*a.y;return{width:s,height:i,x:c,y:d}}function Qa(e,t,r){let n;if(t==="viewport")n=Gd(e,r);else if(t==="document")n=Ud(Ce(e));else if(ge(t))n=Yd(t,r);else{const o=Xa(e);n={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return er(n)}function es(e,t){const r=Me(e);return r===t||!ge(r)||nt(r)?!1:ve(r).position==="fixed"||es(r,t)}function qd(e,t){const r=t.get(e);if(r)return r;let n=xt(e,[],!1).filter(i=>ge(i)&&rt(i)!=="body"),o=null;const a=ve(e).position==="fixed";let s=a?Me(e):e;for(;ge(s)&&!nt(s);){const i=ve(s),c=Zr(s);!c&&i.position==="fixed"&&(o=null),(a?!c&&!o:!c&&i.position==="static"&&!!o&&Kd.has(o.position)||bt(s)&&!c&&es(e,s))?n=n.filter(f=>f!==s):o=i,s=Me(s)}return t.set(e,n),n}function Xd(e){let{element:t,boundary:r,rootBoundary:n,strategy:o}=e;const s=[...r==="clippingAncestors"?rr(t)?[]:qd(t,this._c):[].concat(r),n],i=s[0],c=s.reduce((d,f)=>{const p=Qa(t,f,o);return d.top=de(p.top,d.top),d.right=Oe(p.right,d.right),d.bottom=Oe(p.bottom,d.bottom),d.left=de(p.left,d.left),d},Qa(t,i,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function Zd(e){const{width:t,height:r}=qa(e);return{width:t,height:r}}function Jd(e,t,r){const n=ke(t),o=Ce(t),a=r==="fixed",s=He(e,!0,a,t);let i={scrollLeft:0,scrollTop:0};const c=we(0);function d(){c.x=or(o)}if(n||!n&&!a)if((rt(t)!=="body"||bt(o))&&(i=nr(t)),n){const h=He(t,!0,a,t);c.x=h.x+t.clientLeft,c.y=h.y+t.clientTop}else o&&d();a&&!n&&o&&d();const f=o&&!n&&!a?Za(o,i):we(0),p=s.left+i.scrollLeft-c.x-f.x,g=s.top+i.scrollTop-c.y-f.y;return{x:p,y:g,width:s.width,height:s.height}}function tn(e){return ve(e).position==="static"}function ts(e,t){if(!ke(e)||ve(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return Ce(e)===r&&(r=r.ownerDocument.body),r}function rs(e,t){const r=fe(e);if(rr(e))return r;if(!ke(e)){let o=Me(e);for(;o&&!nt(o);){if(ge(o)&&!tn(o))return o;o=Me(o)}return r}let n=ts(e,t);for(;n&&Od(n)&&tn(n);)n=ts(n,t);return n&&nt(n)&&tn(n)&&!Zr(n)?r:n||Fd(e)||r}const Qd=async function(e){const t=this.getOffsetParent||rs,r=this.getDimensions,n=await r(e.floating);return{reference:Jd(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function ef(e){return ve(e).direction==="rtl"}const tf={convertOffsetParentRelativeRectToViewportRelativeRect:Wd,getDocumentElement:Ce,getClippingRect:Xd,getOffsetParent:rs,getElementRects:Qd,getClientRects:Hd,getDimensions:Zd,getScale:ot,isElement:ge,isRTL:ef};function ns(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function rf(e,t){let r=null,n;const o=Ce(e);function a(){var i;clearTimeout(n),(i=r)==null||i.disconnect(),r=null}function s(i,c){i===void 0&&(i=!1),c===void 0&&(c=1),a();const d=e.getBoundingClientRect(),{left:f,top:p,width:g,height:h}=d;if(i||t(),!g||!h)return;const v=Jt(p),m=Jt(o.clientWidth-(f+g)),b=Jt(o.clientHeight-(p+h)),x=Jt(f),w={rootMargin:-v+"px "+-m+"px "+-b+"px "+-x+"px",threshold:de(0,Oe(1,c))||1};let C=!0;function E(A){const _=A[0].intersectionRatio;if(_!==c){if(!C)return s();_?s(!1,_):n=setTimeout(()=>{s(!1,1e-7)},1e3)}_===1&&!ns(d,e.getBoundingClientRect())&&s(),C=!1}try{r=new IntersectionObserver(E,{...w,root:o.ownerDocument})}catch{r=new IntersectionObserver(E,w)}r.observe(e)}return s(!0),a}function nf(e,t,r,n){n===void 0&&(n={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:i=typeof IntersectionObserver=="function",animationFrame:c=!1}=n,d=en(e),f=o||a?[...d?xt(d):[],...xt(t)]:[];f.forEach(x=>{o&&x.addEventListener("scroll",r,{passive:!0}),a&&x.addEventListener("resize",r)});const p=d&&i?rf(d,r):null;let g=-1,h=null;s&&(h=new ResizeObserver(x=>{let[y]=x;y&&y.target===d&&h&&(h.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var w;(w=h)==null||w.observe(t)})),r()}),d&&!c&&h.observe(d),h.observe(t));let v,m=c?He(e):null;c&&b();function b(){const x=He(e);m&&!ns(m,x)&&r(),m=x,v=requestAnimationFrame(b)}return r(),()=>{var x;f.forEach(y=>{o&&y.removeEventListener("scroll",r),a&&y.removeEventListener("resize",r)}),p==null||p(),(x=h)==null||x.disconnect(),h=null,c&&cancelAnimationFrame(v)}}const of=Nd,af=Pd,sf=Ed,lf=Td,cf=Rd,os=kd,uf=Ad,df=(e,t,r)=>{const n=new Map,o={platform:tf,...r},a={...o.platform,_c:n};return Cd(e,t,{...o,platform:a})};var ff=typeof document<"u",pf=function(){},ar=ff?ae.useLayoutEffect:pf;function sr(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let r,n,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(r=e.length,r!==t.length)return!1;for(n=r;n--!==0;)if(!sr(e[n],t[n]))return!1;return!0}if(o=Object.keys(e),r=o.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!{}.hasOwnProperty.call(t,o[n]))return!1;for(n=r;n--!==0;){const a=o[n];if(!(a==="_owner"&&e.$$typeof)&&!sr(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function as(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function ss(e,t){const r=as(e);return Math.round(t*r)/r}function rn(e){const t=l.useRef(e);return ar(()=>{t.current=e}),t}function mf(e){e===void 0&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:n=[],platform:o,elements:{reference:a,floating:s}={},transform:i=!0,whileElementsMounted:c,open:d}=e,[f,p]=l.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[g,h]=l.useState(n);sr(g,n)||h(n);const[v,m]=l.useState(null),[b,x]=l.useState(null),y=l.useCallback(N=>{N!==A.current&&(A.current=N,m(N))},[]),w=l.useCallback(N=>{N!==_.current&&(_.current=N,x(N))},[]),C=a||v,E=s||b,A=l.useRef(null),_=l.useRef(null),R=l.useRef(f),H=c!=null,K=rn(c),X=rn(o),Q=rn(d),ee=l.useCallback(()=>{if(!A.current||!_.current)return;const N={placement:t,strategy:r,middleware:g};X.current&&(N.platform=X.current),df(A.current,_.current,N).then(te=>{const k={...te,isPositioned:Q.current!==!1};W.current&&!sr(R.current,k)&&(R.current=k,At.flushSync(()=>{p(k)}))})},[g,t,r,X,Q]);ar(()=>{d===!1&&R.current.isPositioned&&(R.current.isPositioned=!1,p(N=>({...N,isPositioned:!1})))},[d]);const W=l.useRef(!1);ar(()=>(W.current=!0,()=>{W.current=!1}),[]),ar(()=>{if(C&&(A.current=C),E&&(_.current=E),C&&E){if(K.current)return K.current(C,E,ee);ee()}},[C,E,ee,K,H]);const q=l.useMemo(()=>({reference:A,floating:_,setReference:y,setFloating:w}),[y,w]),L=l.useMemo(()=>({reference:C,floating:E}),[C,E]),U=l.useMemo(()=>{const N={position:r,left:0,top:0};if(!L.floating)return N;const te=ss(L.floating,f.x),k=ss(L.floating,f.y);return i?{...N,transform:"translate("+te+"px, "+k+"px)",...as(L.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:te,top:k}},[r,i,L.floating,f.x,f.y]);return l.useMemo(()=>({...f,update:ee,refs:q,elements:L,floatingStyles:U}),[f,ee,q,L,U])}const hf=e=>{function t(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:e,fn(r){const{element:n,padding:o}=typeof e=="function"?e(r):e;return n&&t(n)?n.current!=null?os({element:n.current,padding:o}).fn(r):{}:n?os({element:n,padding:o}).fn(r):{}}}},gf=(e,t)=>({...of(e),options:[e,t]}),vf=(e,t)=>({...af(e),options:[e,t]}),bf=(e,t)=>({...uf(e),options:[e,t]}),xf=(e,t)=>({...sf(e),options:[e,t]}),yf=(e,t)=>({...lf(e),options:[e,t]}),wf=(e,t)=>({...cf(e),options:[e,t]}),Sf=(e,t)=>({...hf(e),options:[e,t]});var Cf="Arrow",is=l.forwardRef((e,t)=>{const{children:r,width:n=10,height:o=5,...a}=e;return u.jsx(z.svg,{...a,ref:t,width:n,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:u.jsx("polygon",{points:"0,0 30,0 15,10"})})});is.displayName=Cf;var kf=is,nn="Popper",[ls,at]=me(nn),[Ef,cs]=ls(nn),us=e=>{const{__scopePopper:t,children:r}=e,[n,o]=l.useState(null);return u.jsx(Ef,{scope:t,anchor:n,onAnchorChange:o,children:r})};us.displayName=nn;var ds="PopperAnchor",fs=l.forwardRef((e,t)=>{const{__scopePopper:r,virtualRef:n,...o}=e,a=cs(ds,r),s=l.useRef(null),i=ne(t,s),c=l.useRef(null);return l.useEffect(()=>{const d=c.current;c.current=(n==null?void 0:n.current)||s.current,d!==c.current&&a.onAnchorChange(c.current)}),n?null:u.jsx(z.div,{...o,ref:i})});fs.displayName=ds;var on="PopperContent",[Rf,_f]=ls(on),ps=l.forwardRef((e,t)=>{var P,$,G,Z,re,oe;const{__scopePopper:r,side:n="bottom",sideOffset:o=0,align:a="center",alignOffset:s=0,arrowPadding:i=0,avoidCollisions:c=!0,collisionBoundary:d=[],collisionPadding:f=0,sticky:p="partial",hideWhenDetached:g=!1,updatePositionStrategy:h="optimized",onPlaced:v,...m}=e,b=cs(on,r),[x,y]=l.useState(null),w=ne(t,pe=>y(pe)),[C,E]=l.useState(null),A=Mt(C),_=(A==null?void 0:A.width)??0,R=(A==null?void 0:A.height)??0,H=n+(a!=="center"?"-"+a:""),K=typeof f=="number"?f:{top:0,right:0,bottom:0,left:0,...f},X=Array.isArray(d)?d:[d],Q=X.length>0,ee={padding:K,boundary:X.filter(Pf),altBoundary:Q},{refs:W,floatingStyles:q,placement:L,isPositioned:U,middlewareData:N}=mf({strategy:"fixed",placement:H,whileElementsMounted:(...pe)=>nf(...pe,{animationFrame:h==="always"}),elements:{reference:b.anchor},middleware:[gf({mainAxis:o+R,alignmentAxis:s}),c&&vf({mainAxis:!0,crossAxis:!1,limiter:p==="partial"?bf():void 0,...ee}),c&&xf({...ee}),yf({...ee,apply:({elements:pe,rects:Ee,availableWidth:_t,availableHeight:Nt})=>{const{width:Pt,height:Th}=Ee.reference,vr=pe.floating.style;vr.setProperty("--radix-popper-available-width",`${_t}px`),vr.setProperty("--radix-popper-available-height",`${Nt}px`),vr.setProperty("--radix-popper-anchor-width",`${Pt}px`),vr.setProperty("--radix-popper-anchor-height",`${Th}px`)}}),C&&Sf({element:C,padding:i}),Af({arrowWidth:_,arrowHeight:R}),g&&wf({strategy:"referenceHidden",...ee})]}),[te,k]=gs(L),V=Ne(v);ie(()=>{U&&(V==null||V())},[U,V]);const S=(P=N.arrow)==null?void 0:P.x,T=($=N.arrow)==null?void 0:$.y,M=((G=N.arrow)==null?void 0:G.centerOffset)!==0,[j,Y]=l.useState();return ie(()=>{x&&Y(window.getComputedStyle(x).zIndex)},[x]),u.jsx("div",{ref:W.setFloating,"data-radix-popper-content-wrapper":"",style:{...q,transform:U?q.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:j,"--radix-popper-transform-origin":[(Z=N.transformOrigin)==null?void 0:Z.x,(re=N.transformOrigin)==null?void 0:re.y].join(" "),...((oe=N.hide)==null?void 0:oe.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:u.jsx(Rf,{scope:r,placedSide:te,onArrowChange:E,arrowX:S,arrowY:T,shouldHideArrow:M,children:u.jsx(z.div,{"data-side":te,"data-align":k,...m,ref:w,style:{...m.style,animation:U?void 0:"none"}})})})});ps.displayName=on;var ms="PopperArrow",Nf={top:"bottom",right:"left",bottom:"top",left:"right"},hs=l.forwardRef(function(t,r){const{__scopePopper:n,...o}=t,a=_f(ms,n),s=Nf[a.placedSide];return u.jsx("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[a.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[a.placedSide],visibility:a.shouldHideArrow?"hidden":void 0},children:u.jsx(kf,{...o,ref:r,style:{...o.style,display:"block"}})})});hs.displayName=ms;function Pf(e){return e!==null}var Af=e=>({name:"transformOrigin",options:e,fn(t){var b,x,y;const{placement:r,rects:n,middlewareData:o}=t,s=((b=o.arrow)==null?void 0:b.centerOffset)!==0,i=s?0:e.arrowWidth,c=s?0:e.arrowHeight,[d,f]=gs(r),p={start:"0%",center:"50%",end:"100%"}[f],g=(((x=o.arrow)==null?void 0:x.x)??0)+i/2,h=(((y=o.arrow)==null?void 0:y.y)??0)+c/2;let v="",m="";return d==="bottom"?(v=s?p:`${g}px`,m=`${-c}px`):d==="top"?(v=s?p:`${g}px`,m=`${n.floating.height+c}px`):d==="right"?(v=`${-c}px`,m=s?p:`${h}px`):d==="left"&&(v=`${n.floating.width+c}px`,m=s?p:`${h}px`),{data:{x:v,y:m}}}});function gs(e){const[t,r="center"]=e.split("-");return[t,r]}var an=us,ir=fs,sn=ps,ln=hs,vs=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),Tf="VisuallyHidden",bs=l.forwardRef((e,t)=>u.jsx(z.span,{...e,ref:t,style:{...vs,...e.style}}));bs.displayName=Tf;var jf=bs,[lr,og]=me("Tooltip",[at]),cr=at(),xs="TooltipProvider",If=700,cn="tooltip.open",[Of,un]=lr(xs),ys=e=>{const{__scopeTooltip:t,delayDuration:r=If,skipDelayDuration:n=300,disableHoverableContent:o=!1,children:a}=e,s=l.useRef(!0),i=l.useRef(!1),c=l.useRef(0);return l.useEffect(()=>{const d=c.current;return()=>window.clearTimeout(d)},[]),u.jsx(Of,{scope:t,isOpenDelayedRef:s,delayDuration:r,onOpen:l.useCallback(()=>{window.clearTimeout(c.current),s.current=!1},[]),onClose:l.useCallback(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>s.current=!0,n)},[n]),isPointerInTransitRef:i,onPointerInTransitChange:l.useCallback(d=>{i.current=d},[]),disableHoverableContent:o,children:a})};ys.displayName=xs;var yt="Tooltip",[Mf,wt]=lr(yt),ws=e=>{const{__scopeTooltip:t,children:r,open:n,defaultOpen:o,onOpenChange:a,disableHoverableContent:s,delayDuration:i}=e,c=un(yt,e.__scopeTooltip),d=cr(t),[f,p]=l.useState(null),g=ue(),h=l.useRef(0),v=s??c.disableHoverableContent,m=i??c.delayDuration,b=l.useRef(!1),[x,y]=_e({prop:n,defaultProp:o??!1,onChange:_=>{_?(c.onOpen(),document.dispatchEvent(new CustomEvent(cn))):c.onClose(),a==null||a(_)},caller:yt}),w=l.useMemo(()=>x?b.current?"delayed-open":"instant-open":"closed",[x]),C=l.useCallback(()=>{window.clearTimeout(h.current),h.current=0,b.current=!1,y(!0)},[y]),E=l.useCallback(()=>{window.clearTimeout(h.current),h.current=0,y(!1)},[y]),A=l.useCallback(()=>{window.clearTimeout(h.current),h.current=window.setTimeout(()=>{b.current=!0,y(!0),h.current=0},m)},[m,y]);return l.useEffect(()=>()=>{h.current&&(window.clearTimeout(h.current),h.current=0)},[]),u.jsx(an,{...d,children:u.jsx(Mf,{scope:t,contentId:g,open:x,stateAttribute:w,trigger:f,onTriggerChange:p,onTriggerEnter:l.useCallback(()=>{c.isOpenDelayedRef.current?A():C()},[c.isOpenDelayedRef,A,C]),onTriggerLeave:l.useCallback(()=>{v?E():(window.clearTimeout(h.current),h.current=0)},[E,v]),onOpen:C,onClose:E,disableHoverableContent:v,children:r})})};ws.displayName=yt;var dn="TooltipTrigger",Ss=l.forwardRef((e,t)=>{const{__scopeTooltip:r,...n}=e,o=wt(dn,r),a=un(dn,r),s=cr(r),i=l.useRef(null),c=ne(t,i,o.onTriggerChange),d=l.useRef(!1),f=l.useRef(!1),p=l.useCallback(()=>d.current=!1,[]);return l.useEffect(()=>()=>document.removeEventListener("pointerup",p),[p]),u.jsx(ir,{asChild:!0,...s,children:u.jsx(z.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...n,ref:c,onPointerMove:B(e.onPointerMove,g=>{g.pointerType!=="touch"&&!f.current&&!a.isPointerInTransitRef.current&&(o.onTriggerEnter(),f.current=!0)}),onPointerLeave:B(e.onPointerLeave,()=>{o.onTriggerLeave(),f.current=!1}),onPointerDown:B(e.onPointerDown,()=>{o.open&&o.onClose(),d.current=!0,document.addEventListener("pointerup",p,{once:!0})}),onFocus:B(e.onFocus,()=>{d.current||o.onOpen()}),onBlur:B(e.onBlur,o.onClose),onClick:B(e.onClick,o.onClose)})})});Ss.displayName=dn;var fn="TooltipPortal",[Df,Lf]=lr(fn,{forceMount:void 0}),Cs=e=>{const{__scopeTooltip:t,forceMount:r,children:n,container:o}=e,a=wt(fn,t);return u.jsx(Df,{scope:t,forceMount:r,children:u.jsx(xe,{present:r||a.open,children:u.jsx(gt,{asChild:!0,container:o,children:n})})})};Cs.displayName=fn;var st="TooltipContent",ks=l.forwardRef((e,t)=>{const r=Lf(st,e.__scopeTooltip),{forceMount:n=r.forceMount,side:o="top",...a}=e,s=wt(st,e.__scopeTooltip);return u.jsx(xe,{present:n||s.open,children:s.disableHoverableContent?u.jsx(Es,{side:o,...a,ref:t}):u.jsx($f,{side:o,...a,ref:t})})}),$f=l.forwardRef((e,t)=>{const r=wt(st,e.__scopeTooltip),n=un(st,e.__scopeTooltip),o=l.useRef(null),a=ne(t,o),[s,i]=l.useState(null),{trigger:c,onClose:d}=r,f=o.current,{onPointerInTransitChange:p}=n,g=l.useCallback(()=>{i(null),p(!1)},[p]),h=l.useCallback((v,m)=>{const b=v.currentTarget,x={x:v.clientX,y:v.clientY},y=Bf(x,b.getBoundingClientRect()),w=Wf(x,y),C=Hf(m.getBoundingClientRect()),E=Gf([...w,...C]);i(E),p(!0)},[p]);return l.useEffect(()=>()=>g(),[g]),l.useEffect(()=>{if(c&&f){const v=b=>h(b,f),m=b=>h(b,c);return c.addEventListener("pointerleave",v),f.addEventListener("pointerleave",m),()=>{c.removeEventListener("pointerleave",v),f.removeEventListener("pointerleave",m)}}},[c,f,h,g]),l.useEffect(()=>{if(s){const v=m=>{const b=m.target,x={x:m.clientX,y:m.clientY},y=(c==null?void 0:c.contains(b))||(f==null?void 0:f.contains(b)),w=!Uf(x,s);y?g():w&&(g(),d())};return document.addEventListener("pointermove",v),()=>document.removeEventListener("pointermove",v)}},[c,f,s,d,g]),u.jsx(Es,{...e,ref:a})}),[Ff,Vf]=lr(yt,{isInside:!1}),zf=Gi("TooltipContent"),Es=l.forwardRef((e,t)=>{const{__scopeTooltip:r,children:n,"aria-label":o,onEscapeKeyDown:a,onPointerDownOutside:s,...i}=e,c=wt(st,r),d=cr(r),{onClose:f}=c;return l.useEffect(()=>(document.addEventListener(cn,f),()=>document.removeEventListener(cn,f)),[f]),l.useEffect(()=>{if(c.trigger){const p=g=>{const h=g.target;h!=null&&h.contains(c.trigger)&&f()};return window.addEventListener("scroll",p,{capture:!0}),()=>window.removeEventListener("scroll",p,{capture:!0})}},[c.trigger,f]),u.jsx(ht,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:s,onFocusOutside:p=>p.preventDefault(),onDismiss:f,children:u.jsxs(sn,{"data-state":c.stateAttribute,...d,...i,ref:t,style:{...i.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[u.jsx(zf,{children:n}),u.jsx(Ff,{scope:r,isInside:!0,children:u.jsx(jf,{id:c.contentId,role:"tooltip",children:o||n})})]})})});ks.displayName=st;var Rs="TooltipArrow",_s=l.forwardRef((e,t)=>{const{__scopeTooltip:r,...n}=e,o=cr(r);return Vf(Rs,r).isInside?null:u.jsx(ln,{...o,...n,ref:t})});_s.displayName=Rs;function Bf(e,t){const r=Math.abs(t.top-e.y),n=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x);switch(Math.min(r,n,o,a)){case a:return"left";case o:return"right";case r:return"top";case n:return"bottom";default:throw new Error("unreachable")}}function Wf(e,t,r=5){const n=[];switch(t){case"top":n.push({x:e.x-r,y:e.y+r},{x:e.x+r,y:e.y+r});break;case"bottom":n.push({x:e.x-r,y:e.y-r},{x:e.x+r,y:e.y-r});break;case"left":n.push({x:e.x+r,y:e.y-r},{x:e.x+r,y:e.y+r});break;case"right":n.push({x:e.x-r,y:e.y-r},{x:e.x-r,y:e.y+r});break}return n}function Hf(e){const{top:t,right:r,bottom:n,left:o}=e;return[{x:o,y:t},{x:r,y:t},{x:r,y:n},{x:o,y:n}]}function Uf(e,t){const{x:r,y:n}=e;let o=!1;for(let a=0,s=t.length-1;a<t.length;s=a++){const i=t[a],c=t[s],d=i.x,f=i.y,p=c.x,g=c.y;f>n!=g>n&&r<(p-d)*(n-f)/(g-f)+d&&(o=!o)}return o}function Gf(e){const t=e.slice();return t.sort((r,n)=>r.x<n.x?-1:r.x>n.x?1:r.y<n.y?-1:r.y>n.y?1:0),Kf(t)}function Kf(e){if(e.length<=1)return e.slice();const t=[];for(let n=0;n<e.length;n++){const o=e[n];for(;t.length>=2;){const a=t[t.length-1],s=t[t.length-2];if((a.x-s.x)*(o.y-s.y)>=(a.y-s.y)*(o.x-s.x))t.pop();else break}t.push(o)}t.pop();const r=[];for(let n=e.length-1;n>=0;n--){const o=e[n];for(;r.length>=2;){const a=r[r.length-1],s=r[r.length-2];if((a.x-s.x)*(o.y-s.y)>=(a.y-s.y)*(o.x-s.x))r.pop();else break}r.push(o)}return r.pop(),t.length===1&&r.length===1&&t[0].x===r[0].x&&t[0].y===r[0].y?t:t.concat(r)}var Yf=ys,qf=ws,Xf=Ss,Zf=Cs,Jf=ks,Qf=_s;function Ns({delayDuration:e=0,...t}){return u.jsx(Yf,{"data-slot":"tooltip-provider",delayDuration:e,...t})}function ep({...e}){return u.jsx(Ns,{children:u.jsx(qf,{"data-slot":"tooltip",...e})})}function tp({...e}){return u.jsx(Xf,{"data-slot":"tooltip-trigger",...e})}function rp({className:e,sideOffset:t=0,children:r,...n}){return u.jsx(Zf,{children:u.jsxs(Jf,{"data-slot":"tooltip-content",sideOffset:t,className:D("bg-neutral-black-1 text-white animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 max-w-[362px]! origin-(--radix-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs",e),...n,children:[r,u.jsx(Qf,{className:"bg-neutral-black-1 fill-foreground z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]"})]})})}const np=ce("flex items-center rounded-lg border transition-colors p-2",{variants:{size:{small:"h-6 w-80 text-sm px-2",medium:"h-12 w-92 text-base px-3"},status:{default:"border-neutral-black-4 text-foreground focus-within:ring-2 focus-within:ring-neutral-black-2",error:"border-primary-2 text-primary-1 focus-within:ring-2 focus-within:ring-primary-2",disabled:"border-neutral-black-4 bg-neutral-black-4 text-neutral-black-2 cursor-not-allowed"}},defaultVariants:{size:"medium",status:"default"}}),pn=({label:e,helperText:t,errorText:r,leftIcon:n,rightIcon:o,size:a="medium",className:s,disabled:i=!1,...c})=>u.jsxs("div",{className:"flex flex-col gap-1",children:[e&&u.jsx("label",{className:"text-sm font-normal text-neutral-black-1",children:e}),u.jsxs("div",{className:D(np({size:a,status:r?"error":i?"disabled":"default"}),s),children:[n&&u.jsx("span",{className:"mr-2 flex-shrink-0",children:n}),u.jsx("input",{disabled:i,className:D("flex-1 bg-transparent outline-none placeholder:text-neutral-black-2 disabled:cursor-not-allowed disabled:opacity-50"),...c}),o&&u.jsx("span",{className:"ml-2 flex-shrink-0",children:o})]}),(t||r)&&u.jsx("p",{className:D("text-xs mt-1",r?"text-primary-1":"text-neutral-black-2"),children:r||t})]}),op=e=>u.jsx(pn,{type:"email",inputMode:"email",...e}),ap=({showForgot:e=!1,onValidityChange:t,customValidator:r,...n})=>{const[o,a]=ae.useState(!1),[s,i]=ae.useState(""),d=r?r(s):(p=>[{label:"minimum 8 characters",isValid:p.length>=8},{label:"one uppercase character",isValid:/[A-Z]/.test(p)},{label:"one lowercase character",isValid:/[a-z]/.test(p)},{label:"one special character",isValid:/[^A-Za-z0-9]/.test(p)},{label:"one number",isValid:/\d/.test(p)}])(s),f=d.every(p=>p.isValid);return ae.useEffect(()=>{t&&t(f,d)},[s,f,d,t]),u.jsx("div",{className:"flex flex-col gap-2",children:u.jsxs("div",{className:"flex flex-col gap-2 w-full max-w-sm",children:[u.jsxs("div",{className:"flex justify-between items-center",children:[u.jsx("label",{className:"text-sm font-medium text-neutral-0",children:"Password"}),e&&u.jsx("button",{type:"button",className:"text-xs text-neutral-0 hover:underline",children:"Forgot Password?"})]}),u.jsx(pn,{type:o?"text":"password",value:s,onChange:p=>i(p.target.value),...n,rightIcon:u.jsx("button",{type:"button",onClick:()=>a(!o),className:"p-1 text-neutral-0 hover:text-text-neutral-0",children:o?u.jsx(Lc,{size:18,className:"text-neutral-black-2"}):u.jsx($c,{size:18,className:"text-neutral-black-2"})})}),u.jsx("div",{className:"grid grid-cols-2 gap-y-1 text-xs mt-3",children:d.map((p,g)=>u.jsxs("div",{className:"flex items-center gap-1",children:[p.isValid?u.jsx(Oc,{size:14,className:"text-success-d"}):u.jsx(Mc,{size:14,className:"text-stroke"}),u.jsx("span",{className:p.isValid?"text-success-d":"text-input",children:p.label})]},g))})]})})},sp=e=>u.jsx(pn,{type:"search",leftIcon:u.jsx(Wo,{"data-testid":"search-icon",className:"w-4 h-4 text-input-placeholder"}),placeholder:"Search...",...e});function Ps(e,[t,r]){return Math.min(r,Math.max(t,e))}var ip=[" ","Enter","ArrowUp","ArrowDown"],lp=[" ","Enter"],Ue="Select",[ur,dr,cp]=lo(Ue),[it,ag]=me(Ue,[cp,at]),fr=at(),[up,De]=it(Ue),[dp,fp]=it(Ue),As=e=>{const{__scopeSelect:t,children:r,open:n,defaultOpen:o,onOpenChange:a,value:s,defaultValue:i,onValueChange:c,dir:d,name:f,autoComplete:p,disabled:g,required:h,form:v}=e,m=fr(t),[b,x]=l.useState(null),[y,w]=l.useState(null),[C,E]=l.useState(!1),A=Er(d),[_,R]=_e({prop:n,defaultProp:o??!1,onChange:a,caller:Ue}),[H,K]=_e({prop:s,defaultProp:i,onChange:c,caller:Ue}),X=l.useRef(null),Q=b?v||!!b.closest("form"):!0,[ee,W]=l.useState(new Set),q=Array.from(ee).map(L=>L.props.value).join(";");return u.jsx(an,{...m,children:u.jsxs(up,{required:h,scope:t,trigger:b,onTriggerChange:x,valueNode:y,onValueNodeChange:w,valueNodeHasChildren:C,onValueNodeHasChildrenChange:E,contentId:ue(),value:H,onValueChange:K,open:_,onOpenChange:R,dir:A,triggerPointerDownPosRef:X,disabled:g,children:[u.jsx(ur.Provider,{scope:t,children:u.jsx(dp,{scope:e.__scopeSelect,onNativeOptionAdd:l.useCallback(L=>{W(U=>new Set(U).add(L))},[]),onNativeOptionRemove:l.useCallback(L=>{W(U=>{const N=new Set(U);return N.delete(L),N})},[]),children:r})}),Q?u.jsxs(ei,{"aria-hidden":!0,required:h,tabIndex:-1,name:f,autoComplete:p,value:H,onChange:L=>K(L.target.value),disabled:g,form:v,children:[H===void 0?u.jsx("option",{value:""}):null,Array.from(ee)]},q):null]})})};As.displayName=Ue;var Ts="SelectTrigger",js=l.forwardRef((e,t)=>{const{__scopeSelect:r,disabled:n=!1,...o}=e,a=fr(r),s=De(Ts,r),i=s.disabled||n,c=ne(t,s.onTriggerChange),d=dr(r),f=l.useRef("touch"),[p,g,h]=ri(m=>{const b=d().filter(w=>!w.disabled),x=b.find(w=>w.value===s.value),y=ni(b,m,x);y!==void 0&&s.onValueChange(y.value)}),v=m=>{i||(s.onOpenChange(!0),h()),m&&(s.triggerPointerDownPosRef.current={x:Math.round(m.pageX),y:Math.round(m.pageY)})};return u.jsx(ir,{asChild:!0,...a,children:u.jsx(z.button,{type:"button",role:"combobox","aria-controls":s.contentId,"aria-expanded":s.open,"aria-required":s.required,"aria-autocomplete":"none",dir:s.dir,"data-state":s.open?"open":"closed",disabled:i,"data-disabled":i?"":void 0,"data-placeholder":ti(s.value)?"":void 0,...o,ref:c,onClick:B(o.onClick,m=>{m.currentTarget.focus(),f.current!=="mouse"&&v(m)}),onPointerDown:B(o.onPointerDown,m=>{f.current=m.pointerType;const b=m.target;b.hasPointerCapture(m.pointerId)&&b.releasePointerCapture(m.pointerId),m.button===0&&m.ctrlKey===!1&&m.pointerType==="mouse"&&(v(m),m.preventDefault())}),onKeyDown:B(o.onKeyDown,m=>{const b=p.current!=="";!(m.ctrlKey||m.altKey||m.metaKey)&&m.key.length===1&&g(m.key),!(b&&m.key===" ")&&ip.includes(m.key)&&(v(),m.preventDefault())})})})});js.displayName=Ts;var Is="SelectValue",Os=l.forwardRef((e,t)=>{const{__scopeSelect:r,className:n,style:o,children:a,placeholder:s="",...i}=e,c=De(Is,r),{onValueNodeHasChildrenChange:d}=c,f=a!==void 0,p=ne(t,c.onValueNodeChange);return ie(()=>{d(f)},[d,f]),u.jsx(z.span,{...i,ref:p,style:{pointerEvents:"none"},children:ti(c.value)?u.jsx(u.Fragment,{children:s}):a})});Os.displayName=Is;var pp="SelectIcon",Ms=l.forwardRef((e,t)=>{const{__scopeSelect:r,children:n,...o}=e;return u.jsx(z.span,{"aria-hidden":!0,...o,ref:t,children:n||"▼"})});Ms.displayName=pp;var mp="SelectPortal",Ds=e=>u.jsx(gt,{asChild:!0,...e});Ds.displayName=mp;var Ge="SelectContent",Ls=l.forwardRef((e,t)=>{const r=De(Ge,e.__scopeSelect),[n,o]=l.useState();if(ie(()=>{o(new DocumentFragment)},[]),!r.open){const a=n;return a?At.createPortal(u.jsx($s,{scope:e.__scopeSelect,children:u.jsx(ur.Slot,{scope:e.__scopeSelect,children:u.jsx("div",{children:e.children})})}),a):null}return u.jsx(Fs,{...e,ref:t})});Ls.displayName=Ge;var be=10,[$s,Le]=it(Ge),hp="SelectContentImpl",gp=ze("SelectContent.RemoveScroll"),Fs=l.forwardRef((e,t)=>{const{__scopeSelect:r,position:n="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:a,onPointerDownOutside:s,side:i,sideOffset:c,align:d,alignOffset:f,arrowPadding:p,collisionBoundary:g,collisionPadding:h,sticky:v,hideWhenDetached:m,avoidCollisions:b,...x}=e,y=De(Ge,r),[w,C]=l.useState(null),[E,A]=l.useState(null),_=ne(t,P=>C(P)),[R,H]=l.useState(null),[K,X]=l.useState(null),Q=dr(r),[ee,W]=l.useState(!1),q=l.useRef(!1);l.useEffect(()=>{if(w)return zr(w)},[w]),Mr();const L=l.useCallback(P=>{const[$,...G]=Q().map(oe=>oe.ref.current),[Z]=G.slice(-1),re=document.activeElement;for(const oe of P)if(oe===re||(oe==null||oe.scrollIntoView({block:"nearest"}),oe===$&&E&&(E.scrollTop=0),oe===Z&&E&&(E.scrollTop=E.scrollHeight),oe==null||oe.focus(),document.activeElement!==re))return},[Q,E]),U=l.useCallback(()=>L([R,w]),[L,R,w]);l.useEffect(()=>{ee&&U()},[ee,U]);const{onOpenChange:N,triggerPointerDownPosRef:te}=y;l.useEffect(()=>{if(w){let P={x:0,y:0};const $=Z=>{var re,oe;P={x:Math.abs(Math.round(Z.pageX)-(((re=te.current)==null?void 0:re.x)??0)),y:Math.abs(Math.round(Z.pageY)-(((oe=te.current)==null?void 0:oe.y)??0))}},G=Z=>{P.x<=10&&P.y<=10?Z.preventDefault():w.contains(Z.target)||N(!1),document.removeEventListener("pointermove",$),te.current=null};return te.current!==null&&(document.addEventListener("pointermove",$),document.addEventListener("pointerup",G,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",$),document.removeEventListener("pointerup",G,{capture:!0})}}},[w,N,te]),l.useEffect(()=>{const P=()=>N(!1);return window.addEventListener("blur",P),window.addEventListener("resize",P),()=>{window.removeEventListener("blur",P),window.removeEventListener("resize",P)}},[N]);const[k,V]=ri(P=>{const $=Q().filter(re=>!re.disabled),G=$.find(re=>re.ref.current===document.activeElement),Z=ni($,P,G);Z&&setTimeout(()=>Z.ref.current.focus())}),S=l.useCallback((P,$,G)=>{const Z=!q.current&&!G;(y.value!==void 0&&y.value===$||Z)&&(H(P),Z&&(q.current=!0))},[y.value]),T=l.useCallback(()=>w==null?void 0:w.focus(),[w]),M=l.useCallback((P,$,G)=>{const Z=!q.current&&!G;(y.value!==void 0&&y.value===$||Z)&&X(P)},[y.value]),j=n==="popper"?mn:Vs,Y=j===mn?{side:i,sideOffset:c,align:d,alignOffset:f,arrowPadding:p,collisionBoundary:g,collisionPadding:h,sticky:v,hideWhenDetached:m,avoidCollisions:b}:{};return u.jsx($s,{scope:r,content:w,viewport:E,onViewportChange:A,itemRefCallback:S,selectedItem:R,onItemLeave:T,itemTextRefCallback:M,focusSelectedItem:U,selectedItemText:K,position:n,isPositioned:ee,searchRef:k,children:u.jsx(Gt,{as:gp,allowPinchZoom:!0,children:u.jsx(Vt,{asChild:!0,trapped:y.open,onMountAutoFocus:P=>{P.preventDefault()},onUnmountAutoFocus:B(o,P=>{var $;($=y.trigger)==null||$.focus({preventScroll:!0}),P.preventDefault()}),children:u.jsx(ht,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:a,onPointerDownOutside:s,onFocusOutside:P=>P.preventDefault(),onDismiss:()=>y.onOpenChange(!1),children:u.jsx(j,{role:"listbox",id:y.contentId,"data-state":y.open?"open":"closed",dir:y.dir,onContextMenu:P=>P.preventDefault(),...x,...Y,onPlaced:()=>W(!0),ref:_,style:{display:"flex",flexDirection:"column",outline:"none",...x.style},onKeyDown:B(x.onKeyDown,P=>{const $=P.ctrlKey||P.altKey||P.metaKey;if(P.key==="Tab"&&P.preventDefault(),!$&&P.key.length===1&&V(P.key),["ArrowUp","ArrowDown","Home","End"].includes(P.key)){let Z=Q().filter(re=>!re.disabled).map(re=>re.ref.current);if(["ArrowUp","End"].includes(P.key)&&(Z=Z.slice().reverse()),["ArrowUp","ArrowDown"].includes(P.key)){const re=P.target,oe=Z.indexOf(re);Z=Z.slice(oe+1)}setTimeout(()=>L(Z)),P.preventDefault()}})})})})})})});Fs.displayName=hp;var vp="SelectItemAlignedPosition",Vs=l.forwardRef((e,t)=>{const{__scopeSelect:r,onPlaced:n,...o}=e,a=De(Ge,r),s=Le(Ge,r),[i,c]=l.useState(null),[d,f]=l.useState(null),p=ne(t,_=>f(_)),g=dr(r),h=l.useRef(!1),v=l.useRef(!0),{viewport:m,selectedItem:b,selectedItemText:x,focusSelectedItem:y}=s,w=l.useCallback(()=>{if(a.trigger&&a.valueNode&&i&&d&&m&&b&&x){const _=a.trigger.getBoundingClientRect(),R=d.getBoundingClientRect(),H=a.valueNode.getBoundingClientRect(),K=x.getBoundingClientRect();if(a.dir!=="rtl"){const re=K.left-R.left,oe=H.left-re,pe=_.left-oe,Ee=_.width+pe,_t=Math.max(Ee,R.width),Nt=window.innerWidth-be,Pt=Ps(oe,[be,Math.max(be,Nt-_t)]);i.style.minWidth=Ee+"px",i.style.left=Pt+"px"}else{const re=R.right-K.right,oe=window.innerWidth-H.right-re,pe=window.innerWidth-_.right-oe,Ee=_.width+pe,_t=Math.max(Ee,R.width),Nt=window.innerWidth-be,Pt=Ps(oe,[be,Math.max(be,Nt-_t)]);i.style.minWidth=Ee+"px",i.style.right=Pt+"px"}const X=g(),Q=window.innerHeight-be*2,ee=m.scrollHeight,W=window.getComputedStyle(d),q=parseInt(W.borderTopWidth,10),L=parseInt(W.paddingTop,10),U=parseInt(W.borderBottomWidth,10),N=parseInt(W.paddingBottom,10),te=q+L+ee+N+U,k=Math.min(b.offsetHeight*5,te),V=window.getComputedStyle(m),S=parseInt(V.paddingTop,10),T=parseInt(V.paddingBottom,10),M=_.top+_.height/2-be,j=Q-M,Y=b.offsetHeight/2,P=b.offsetTop+Y,$=q+L+P,G=te-$;if($<=M){const re=X.length>0&&b===X[X.length-1].ref.current;i.style.bottom="0px";const oe=d.clientHeight-m.offsetTop-m.offsetHeight,pe=Math.max(j,Y+(re?T:0)+oe+U),Ee=$+pe;i.style.height=Ee+"px"}else{const re=X.length>0&&b===X[0].ref.current;i.style.top="0px";const pe=Math.max(M,q+m.offsetTop+(re?S:0)+Y)+G;i.style.height=pe+"px",m.scrollTop=$-M+m.offsetTop}i.style.margin=`${be}px 0`,i.style.minHeight=k+"px",i.style.maxHeight=Q+"px",n==null||n(),requestAnimationFrame(()=>h.current=!0)}},[g,a.trigger,a.valueNode,i,d,m,b,x,a.dir,n]);ie(()=>w(),[w]);const[C,E]=l.useState();ie(()=>{d&&E(window.getComputedStyle(d).zIndex)},[d]);const A=l.useCallback(_=>{_&&v.current===!0&&(w(),y==null||y(),v.current=!1)},[w,y]);return u.jsx(xp,{scope:r,contentWrapper:i,shouldExpandOnScrollRef:h,onScrollButtonChange:A,children:u.jsx("div",{ref:c,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:C},children:u.jsx(z.div,{...o,ref:p,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});Vs.displayName=vp;var bp="SelectPopperPosition",mn=l.forwardRef((e,t)=>{const{__scopeSelect:r,align:n="start",collisionPadding:o=be,...a}=e,s=fr(r);return u.jsx(sn,{...s,...a,ref:t,align:n,collisionPadding:o,style:{boxSizing:"border-box",...a.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});mn.displayName=bp;var[xp,hn]=it(Ge,{}),gn="SelectViewport",zs=l.forwardRef((e,t)=>{const{__scopeSelect:r,nonce:n,...o}=e,a=Le(gn,r),s=hn(gn,r),i=ne(t,a.onViewportChange),c=l.useRef(0);return u.jsxs(u.Fragment,{children:[u.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:n}),u.jsx(ur.Slot,{scope:r,children:u.jsx(z.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:i,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:B(o.onScroll,d=>{const f=d.currentTarget,{contentWrapper:p,shouldExpandOnScrollRef:g}=s;if(g!=null&&g.current&&p){const h=Math.abs(c.current-f.scrollTop);if(h>0){const v=window.innerHeight-be*2,m=parseFloat(p.style.minHeight),b=parseFloat(p.style.height),x=Math.max(m,b);if(x<v){const y=x+h,w=Math.min(v,y),C=y-w;p.style.height=w+"px",p.style.bottom==="0px"&&(f.scrollTop=C>0?C:0,p.style.justifyContent="flex-end")}}}c.current=f.scrollTop})})})]})});zs.displayName=gn;var Bs="SelectGroup",[yp,wp]=it(Bs),Ws=l.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,o=ue();return u.jsx(yp,{scope:r,id:o,children:u.jsx(z.div,{role:"group","aria-labelledby":o,...n,ref:t})})});Ws.displayName=Bs;var Hs="SelectLabel",Us=l.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,o=wp(Hs,r);return u.jsx(z.div,{id:o.id,...n,ref:t})});Us.displayName=Hs;var pr="SelectItem",[Sp,Gs]=it(pr),Ks=l.forwardRef((e,t)=>{const{__scopeSelect:r,value:n,disabled:o=!1,textValue:a,...s}=e,i=De(pr,r),c=Le(pr,r),d=i.value===n,[f,p]=l.useState(a??""),[g,h]=l.useState(!1),v=ne(t,y=>{var w;return(w=c.itemRefCallback)==null?void 0:w.call(c,y,n,o)}),m=ue(),b=l.useRef("touch"),x=()=>{o||(i.onValueChange(n),i.onOpenChange(!1))};if(n==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return u.jsx(Sp,{scope:r,value:n,disabled:o,textId:m,isSelected:d,onItemTextChange:l.useCallback(y=>{p(w=>w||((y==null?void 0:y.textContent)??"").trim())},[]),children:u.jsx(ur.ItemSlot,{scope:r,value:n,disabled:o,textValue:f,children:u.jsx(z.div,{role:"option","aria-labelledby":m,"data-highlighted":g?"":void 0,"aria-selected":d&&g,"data-state":d?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...s,ref:v,onFocus:B(s.onFocus,()=>h(!0)),onBlur:B(s.onBlur,()=>h(!1)),onClick:B(s.onClick,()=>{b.current!=="mouse"&&x()}),onPointerUp:B(s.onPointerUp,()=>{b.current==="mouse"&&x()}),onPointerDown:B(s.onPointerDown,y=>{b.current=y.pointerType}),onPointerMove:B(s.onPointerMove,y=>{var w;b.current=y.pointerType,o?(w=c.onItemLeave)==null||w.call(c):b.current==="mouse"&&y.currentTarget.focus({preventScroll:!0})}),onPointerLeave:B(s.onPointerLeave,y=>{var w;y.currentTarget===document.activeElement&&((w=c.onItemLeave)==null||w.call(c))}),onKeyDown:B(s.onKeyDown,y=>{var C;((C=c.searchRef)==null?void 0:C.current)!==""&&y.key===" "||(lp.includes(y.key)&&x(),y.key===" "&&y.preventDefault())})})})})});Ks.displayName=pr;var St="SelectItemText",Ys=l.forwardRef((e,t)=>{const{__scopeSelect:r,className:n,style:o,...a}=e,s=De(St,r),i=Le(St,r),c=Gs(St,r),d=fp(St,r),[f,p]=l.useState(null),g=ne(t,x=>p(x),c.onItemTextChange,x=>{var y;return(y=i.itemTextRefCallback)==null?void 0:y.call(i,x,c.value,c.disabled)}),h=f==null?void 0:f.textContent,v=l.useMemo(()=>u.jsx("option",{value:c.value,disabled:c.disabled,children:h},c.value),[c.disabled,c.value,h]),{onNativeOptionAdd:m,onNativeOptionRemove:b}=d;return ie(()=>(m(v),()=>b(v)),[m,b,v]),u.jsxs(u.Fragment,{children:[u.jsx(z.span,{id:c.textId,...a,ref:g}),c.isSelected&&s.valueNode&&!s.valueNodeHasChildren?At.createPortal(a.children,s.valueNode):null]})});Ys.displayName=St;var qs="SelectItemIndicator",Xs=l.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e;return Gs(qs,r).isSelected?u.jsx(z.span,{"aria-hidden":!0,...n,ref:t}):null});Xs.displayName=qs;var vn="SelectScrollUpButton",Zs=l.forwardRef((e,t)=>{const r=Le(vn,e.__scopeSelect),n=hn(vn,e.__scopeSelect),[o,a]=l.useState(!1),s=ne(t,n.onScrollButtonChange);return ie(()=>{if(r.viewport&&r.isPositioned){let i=function(){const d=c.scrollTop>0;a(d)};const c=r.viewport;return i(),c.addEventListener("scroll",i),()=>c.removeEventListener("scroll",i)}},[r.viewport,r.isPositioned]),o?u.jsx(Qs,{...e,ref:s,onAutoScroll:()=>{const{viewport:i,selectedItem:c}=r;i&&c&&(i.scrollTop=i.scrollTop-c.offsetHeight)}}):null});Zs.displayName=vn;var bn="SelectScrollDownButton",Js=l.forwardRef((e,t)=>{const r=Le(bn,e.__scopeSelect),n=hn(bn,e.__scopeSelect),[o,a]=l.useState(!1),s=ne(t,n.onScrollButtonChange);return ie(()=>{if(r.viewport&&r.isPositioned){let i=function(){const d=c.scrollHeight-c.clientHeight,f=Math.ceil(c.scrollTop)<d;a(f)};const c=r.viewport;return i(),c.addEventListener("scroll",i),()=>c.removeEventListener("scroll",i)}},[r.viewport,r.isPositioned]),o?u.jsx(Qs,{...e,ref:s,onAutoScroll:()=>{const{viewport:i,selectedItem:c}=r;i&&c&&(i.scrollTop=i.scrollTop+c.offsetHeight)}}):null});Js.displayName=bn;var Qs=l.forwardRef((e,t)=>{const{__scopeSelect:r,onAutoScroll:n,...o}=e,a=Le("SelectScrollButton",r),s=l.useRef(null),i=dr(r),c=l.useCallback(()=>{s.current!==null&&(window.clearInterval(s.current),s.current=null)},[]);return l.useEffect(()=>()=>c(),[c]),ie(()=>{var f;const d=i().find(p=>p.ref.current===document.activeElement);(f=d==null?void 0:d.ref.current)==null||f.scrollIntoView({block:"nearest"})},[i]),u.jsx(z.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:B(o.onPointerDown,()=>{s.current===null&&(s.current=window.setInterval(n,50))}),onPointerMove:B(o.onPointerMove,()=>{var d;(d=a.onItemLeave)==null||d.call(a),s.current===null&&(s.current=window.setInterval(n,50))}),onPointerLeave:B(o.onPointerLeave,()=>{c()})})}),Cp="SelectSeparator",kp=l.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e;return u.jsx(z.div,{"aria-hidden":!0,...n,ref:t})});kp.displayName=Cp;var xn="SelectArrow",Ep=l.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,o=fr(r),a=De(xn,r),s=Le(xn,r);return a.open&&s.position==="popper"?u.jsx(ln,{...o,...n,ref:t}):null});Ep.displayName=xn;var Rp="SelectBubbleInput",ei=l.forwardRef(({__scopeSelect:e,value:t,...r},n)=>{const o=l.useRef(null),a=ne(n,o),s=Ot(t);return l.useEffect(()=>{const i=o.current;if(!i)return;const c=window.HTMLSelectElement.prototype,f=Object.getOwnPropertyDescriptor(c,"value").set;if(s!==t&&f){const p=new Event("change",{bubbles:!0});f.call(i,t),i.dispatchEvent(p)}},[s,t]),u.jsx(z.select,{...r,style:{...vs,...r.style},ref:a,defaultValue:t})});ei.displayName=Rp;function ti(e){return e===""||e===void 0}function ri(e){const t=Ne(e),r=l.useRef(""),n=l.useRef(0),o=l.useCallback(s=>{const i=r.current+s;t(i),function c(d){r.current=d,window.clearTimeout(n.current),d!==""&&(n.current=window.setTimeout(()=>c(""),1e3))}(i)},[t]),a=l.useCallback(()=>{r.current="",window.clearTimeout(n.current)},[]);return l.useEffect(()=>()=>window.clearTimeout(n.current),[]),[r,o,a]}function ni(e,t,r){const o=t.length>1&&Array.from(t).every(d=>d===t[0])?t[0]:t,a=r?e.indexOf(r):-1;let s=_p(e,Math.max(a,0));o.length===1&&(s=s.filter(d=>d!==r));const c=s.find(d=>d.textValue.toLowerCase().startsWith(o.toLowerCase()));return c!==r?c:void 0}function _p(e,t){return e.map((r,n)=>e[(t+n)%e.length])}var Np=As,Pp=js,Ap=Os,Tp=Ms,jp=Ds,Ip=Ls,Op=zs,Mp=Ws,Dp=Us,Lp=Ks,$p=Ys,Fp=Xs,Vp=Zs,zp=Js;function Bp({...e}){return u.jsx(Np,{"data-slot":"select",...e})}function Wp({...e}){return u.jsx(Mp,{"data-slot":"select-group",...e})}function Hp({...e}){return u.jsx(Ap,{"data-slot":"select-value",...e})}function Up({className:e,size:t="default",children:r,...n}){return u.jsxs(Pp,{"data-slot":"select-trigger","data-size":t,className:D("border-input data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 dark:hover:bg-input/50 flex w-fit items-center justify-between gap-2 rounded-md border bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...n,children:[r,u.jsx(Tp,{asChild:!0,children:u.jsx(Ar,{className:"size-4 opacity-50"})})]})}function Gp({className:e,children:t,position:r="popper",...n}){return u.jsx(jp,{children:u.jsxs(Ip,{"data-slot":"select-content",className:D("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border shadow-md",r==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:r,...n,children:[u.jsx(Yp,{}),u.jsx(Op,{className:D("p-1",r==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"),children:t}),u.jsx(qp,{})]})})}function Kp({className:e,...t}){return u.jsx(Dp,{"data-slot":"select-label",className:D("text-muted-foreground px-2 py-1.5 text-xs",e),...t})}function oi({className:e,children:t,...r}){return u.jsxs(Lp,{"data-slot":"select-item",className:D("focus:bg-accent focus:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",e),...r,children:[u.jsx("span",{className:"absolute right-2 flex size-3.5 items-center justify-center",children:u.jsx(Fp,{children:u.jsx(Bo,{className:"size-4"})})}),u.jsx($p,{children:t})]})}function Yp({className:e,...t}){return u.jsx(Vp,{"data-slot":"select-scroll-up-button",className:D("flex cursor-default items-center justify-center py-1",e),...t,children:u.jsx(Ic,{className:"size-4"})})}function qp({className:e,...t}){return u.jsx(zp,{"data-slot":"select-scroll-down-button",className:D("flex cursor-default items-center justify-center py-1",e),...t,children:u.jsx(Ar,{className:"size-4"})})}var mr="Popover",[ai,sg]=me(mr,[at]),Ct=at(),[Xp,$e]=ai(mr),si=e=>{const{__scopePopover:t,children:r,open:n,defaultOpen:o,onOpenChange:a,modal:s=!1}=e,i=Ct(t),c=l.useRef(null),[d,f]=l.useState(!1),[p,g]=_e({prop:n,defaultProp:o??!1,onChange:a,caller:mr});return u.jsx(an,{...i,children:u.jsx(Xp,{scope:t,contentId:ue(),triggerRef:c,open:p,onOpenChange:g,onOpenToggle:l.useCallback(()=>g(h=>!h),[g]),hasCustomAnchor:d,onCustomAnchorAdd:l.useCallback(()=>f(!0),[]),onCustomAnchorRemove:l.useCallback(()=>f(!1),[]),modal:s,children:r})})};si.displayName=mr;var ii="PopoverAnchor",Zp=l.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=$e(ii,r),a=Ct(r),{onCustomAnchorAdd:s,onCustomAnchorRemove:i}=o;return l.useEffect(()=>(s(),()=>i()),[s,i]),u.jsx(ir,{...a,...n,ref:t})});Zp.displayName=ii;var li="PopoverTrigger",ci=l.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=$e(li,r),a=Ct(r),s=ne(t,o.triggerRef),i=u.jsx(z.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":mi(o.open),...n,ref:s,onClick:B(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?i:u.jsx(ir,{asChild:!0,...a,children:i})});ci.displayName=li;var yn="PopoverPortal",[Jp,Qp]=ai(yn,{forceMount:void 0}),ui=e=>{const{__scopePopover:t,forceMount:r,children:n,container:o}=e,a=$e(yn,t);return u.jsx(Jp,{scope:t,forceMount:r,children:u.jsx(xe,{present:r||a.open,children:u.jsx(gt,{asChild:!0,container:o,children:n})})})};ui.displayName=yn;var lt="PopoverContent",di=l.forwardRef((e,t)=>{const r=Qp(lt,e.__scopePopover),{forceMount:n=r.forceMount,...o}=e,a=$e(lt,e.__scopePopover);return u.jsx(xe,{present:n||a.open,children:a.modal?u.jsx(tm,{...o,ref:t}):u.jsx(rm,{...o,ref:t})})});di.displayName=lt;var em=ze("PopoverContent.RemoveScroll"),tm=l.forwardRef((e,t)=>{const r=$e(lt,e.__scopePopover),n=l.useRef(null),o=ne(t,n),a=l.useRef(!1);return l.useEffect(()=>{const s=n.current;if(s)return zr(s)},[]),u.jsx(Gt,{as:em,allowPinchZoom:!0,children:u.jsx(fi,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:B(e.onCloseAutoFocus,s=>{var i;s.preventDefault(),a.current||(i=r.triggerRef.current)==null||i.focus()}),onPointerDownOutside:B(e.onPointerDownOutside,s=>{const i=s.detail.originalEvent,c=i.button===0&&i.ctrlKey===!0,d=i.button===2||c;a.current=d},{checkForDefaultPrevented:!1}),onFocusOutside:B(e.onFocusOutside,s=>s.preventDefault(),{checkForDefaultPrevented:!1})})})}),rm=l.forwardRef((e,t)=>{const r=$e(lt,e.__scopePopover),n=l.useRef(!1),o=l.useRef(!1);return u.jsx(fi,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{var s,i;(s=e.onCloseAutoFocus)==null||s.call(e,a),a.defaultPrevented||(n.current||(i=r.triggerRef.current)==null||i.focus(),a.preventDefault()),n.current=!1,o.current=!1},onInteractOutside:a=>{var c,d;(c=e.onInteractOutside)==null||c.call(e,a),a.defaultPrevented||(n.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const s=a.target;((d=r.triggerRef.current)==null?void 0:d.contains(s))&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),fi=l.forwardRef((e,t)=>{const{__scopePopover:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:a,disableOutsidePointerEvents:s,onEscapeKeyDown:i,onPointerDownOutside:c,onFocusOutside:d,onInteractOutside:f,...p}=e,g=$e(lt,r),h=Ct(r);return Mr(),u.jsx(Vt,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:a,children:u.jsx(ht,{asChild:!0,disableOutsidePointerEvents:s,onInteractOutside:f,onEscapeKeyDown:i,onPointerDownOutside:c,onFocusOutside:d,onDismiss:()=>g.onOpenChange(!1),children:u.jsx(sn,{"data-state":mi(g.open),role:"dialog",id:g.contentId,...h,...p,ref:t,style:{...p.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),pi="PopoverClose",nm=l.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=$e(pi,r);return u.jsx(z.button,{type:"button",...n,ref:t,onClick:B(e.onClick,()=>o.onOpenChange(!1))})});nm.displayName=pi;var om="PopoverArrow",am=l.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=Ct(r);return u.jsx(ln,{...o,...n,ref:t})});am.displayName=om;function mi(e){return e?"open":"closed"}var sm=si,im=ci,lm=ui,cm=di;function um({...e}){return u.jsx(sm,{"data-slot":"popover",...e})}function dm({...e}){return u.jsx(im,{"data-slot":"popover-trigger",...e})}function fm({className:e,align:t="center",sideOffset:r=4,...n}){return u.jsx(lm,{children:u.jsx(cm,{"data-slot":"popover-content",align:t,sideOffset:r,className:D("bg-white text-black data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden",e),...n})})}var hi=1,pm=.9,mm=.8,hm=.17,wn=.1,Sn=.999,gm=.9999,vm=.99,bm=/[\\\/_+.#"@\[\(\{&]/,xm=/[\\\/_+.#"@\[\(\{&]/g,ym=/[\s-]/,gi=/[\s-]/g;function Cn(e,t,r,n,o,a,s){if(a===t.length)return o===e.length?hi:vm;var i=`${o},${a}`;if(s[i]!==void 0)return s[i];for(var c=n.charAt(a),d=r.indexOf(c,o),f=0,p,g,h,v;d>=0;)p=Cn(e,t,r,n,d+1,a+1,s),p>f&&(d===o?p*=hi:bm.test(e.charAt(d-1))?(p*=mm,h=e.slice(o,d-1).match(xm),h&&o>0&&(p*=Math.pow(Sn,h.length))):ym.test(e.charAt(d-1))?(p*=pm,v=e.slice(o,d-1).match(gi),v&&o>0&&(p*=Math.pow(Sn,v.length))):(p*=hm,o>0&&(p*=Math.pow(Sn,d-o))),e.charAt(d)!==t.charAt(a)&&(p*=gm)),(p<wn&&r.charAt(d-1)===n.charAt(a+1)||n.charAt(a+1)===n.charAt(a)&&r.charAt(d-1)!==n.charAt(a))&&(g=Cn(e,t,r,n,d+1,a+2,s),g*wn>p&&(p=g*wn)),p>f&&(f=p),d=r.indexOf(c,d+1);return s[i]=f,f}function vi(e){return e.toLowerCase().replace(gi," ")}function wm(e,t,r){return e=r&&r.length>0?`${e+" "+r.join(" ")}`:e,Cn(e,t,vi(e),vi(t),0,0,{})}var kt='[cmdk-group=""]',kn='[cmdk-group-items=""]',Sm='[cmdk-group-heading=""]',bi='[cmdk-item=""]',xi=`${bi}:not([aria-disabled="true"])`,En="cmdk-item-select",ct="data-value",Cm=(e,t,r)=>wm(e,t,r),yi=l.createContext(void 0),Et=()=>l.useContext(yi),wi=l.createContext(void 0),Rn=()=>l.useContext(wi),Si=l.createContext(void 0),Ci=l.forwardRef((e,t)=>{let r=ut(()=>{var S,T;return{search:"",value:(T=(S=e.value)!=null?S:e.defaultValue)!=null?T:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),n=ut(()=>new Set),o=ut(()=>new Map),a=ut(()=>new Map),s=ut(()=>new Set),i=ki(e),{label:c,children:d,value:f,onValueChange:p,filter:g,shouldFilter:h,loop:v,disablePointerSelection:m=!1,vimBindings:b=!0,...x}=e,y=ue(),w=ue(),C=ue(),E=l.useRef(null),A=Om();Ke(()=>{if(f!==void 0){let S=f.trim();r.current.value=S,_.emit()}},[f]),Ke(()=>{A(6,ee)},[]);let _=l.useMemo(()=>({subscribe:S=>(s.current.add(S),()=>s.current.delete(S)),snapshot:()=>r.current,setState:(S,T,M)=>{var j,Y,P,$;if(!Object.is(r.current[S],T)){if(r.current[S]=T,S==="search")Q(),K(),A(1,X);else if(S==="value"){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let G=document.getElementById(C);G?G.focus():(j=document.getElementById(y))==null||j.focus()}if(A(7,()=>{var G;r.current.selectedItemId=(G=W())==null?void 0:G.id,_.emit()}),M||A(5,ee),((Y=i.current)==null?void 0:Y.value)!==void 0){let G=T??"";($=(P=i.current).onValueChange)==null||$.call(P,G);return}}_.emit()}},emit:()=>{s.current.forEach(S=>S())}}),[]),R=l.useMemo(()=>({value:(S,T,M)=>{var j;T!==((j=a.current.get(S))==null?void 0:j.value)&&(a.current.set(S,{value:T,keywords:M}),r.current.filtered.items.set(S,H(T,M)),A(2,()=>{K(),_.emit()}))},item:(S,T)=>(n.current.add(S),T&&(o.current.has(T)?o.current.get(T).add(S):o.current.set(T,new Set([S]))),A(3,()=>{Q(),K(),r.current.value||X(),_.emit()}),()=>{a.current.delete(S),n.current.delete(S),r.current.filtered.items.delete(S);let M=W();A(4,()=>{Q(),(M==null?void 0:M.getAttribute("id"))===S&&X(),_.emit()})}),group:S=>(o.current.has(S)||o.current.set(S,new Set),()=>{a.current.delete(S),o.current.delete(S)}),filter:()=>i.current.shouldFilter,label:c||e["aria-label"],getDisablePointerSelection:()=>i.current.disablePointerSelection,listId:y,inputId:C,labelId:w,listInnerRef:E}),[]);function H(S,T){var M,j;let Y=(j=(M=i.current)==null?void 0:M.filter)!=null?j:Cm;return S?Y(S,r.current.search,T):0}function K(){if(!r.current.search||i.current.shouldFilter===!1)return;let S=r.current.filtered.items,T=[];r.current.filtered.groups.forEach(j=>{let Y=o.current.get(j),P=0;Y.forEach($=>{let G=S.get($);P=Math.max(G,P)}),T.push([j,P])});let M=E.current;q().sort((j,Y)=>{var P,$;let G=j.getAttribute("id"),Z=Y.getAttribute("id");return((P=S.get(Z))!=null?P:0)-(($=S.get(G))!=null?$:0)}).forEach(j=>{let Y=j.closest(kn);Y?Y.appendChild(j.parentElement===Y?j:j.closest(`${kn} > *`)):M.appendChild(j.parentElement===M?j:j.closest(`${kn} > *`))}),T.sort((j,Y)=>Y[1]-j[1]).forEach(j=>{var Y;let P=(Y=E.current)==null?void 0:Y.querySelector(`${kt}[${ct}="${encodeURIComponent(j[0])}"]`);P==null||P.parentElement.appendChild(P)})}function X(){let S=q().find(M=>M.getAttribute("aria-disabled")!=="true"),T=S==null?void 0:S.getAttribute(ct);_.setState("value",T||void 0)}function Q(){var S,T,M,j;if(!r.current.search||i.current.shouldFilter===!1){r.current.filtered.count=n.current.size;return}r.current.filtered.groups=new Set;let Y=0;for(let P of n.current){let $=(T=(S=a.current.get(P))==null?void 0:S.value)!=null?T:"",G=(j=(M=a.current.get(P))==null?void 0:M.keywords)!=null?j:[],Z=H($,G);r.current.filtered.items.set(P,Z),Z>0&&Y++}for(let[P,$]of o.current)for(let G of $)if(r.current.filtered.items.get(G)>0){r.current.filtered.groups.add(P);break}r.current.filtered.count=Y}function ee(){var S,T,M;let j=W();j&&(((S=j.parentElement)==null?void 0:S.firstChild)===j&&((M=(T=j.closest(kt))==null?void 0:T.querySelector(Sm))==null||M.scrollIntoView({block:"nearest"})),j.scrollIntoView({block:"nearest"}))}function W(){var S;return(S=E.current)==null?void 0:S.querySelector(`${bi}[aria-selected="true"]`)}function q(){var S;return Array.from(((S=E.current)==null?void 0:S.querySelectorAll(xi))||[])}function L(S){let T=q()[S];T&&_.setState("value",T.getAttribute(ct))}function U(S){var T;let M=W(),j=q(),Y=j.findIndex($=>$===M),P=j[Y+S];(T=i.current)!=null&&T.loop&&(P=Y+S<0?j[j.length-1]:Y+S===j.length?j[0]:j[Y+S]),P&&_.setState("value",P.getAttribute(ct))}function N(S){let T=W(),M=T==null?void 0:T.closest(kt),j;for(;M&&!j;)M=S>0?jm(M,kt):Im(M,kt),j=M==null?void 0:M.querySelector(xi);j?_.setState("value",j.getAttribute(ct)):U(S)}let te=()=>L(q().length-1),k=S=>{S.preventDefault(),S.metaKey?te():S.altKey?N(1):U(1)},V=S=>{S.preventDefault(),S.metaKey?L(0):S.altKey?N(-1):U(-1)};return l.createElement(z.div,{ref:t,tabIndex:-1,...x,"cmdk-root":"",onKeyDown:S=>{var T;(T=x.onKeyDown)==null||T.call(x,S);let M=S.nativeEvent.isComposing||S.keyCode===229;if(!(S.defaultPrevented||M))switch(S.key){case"n":case"j":{b&&S.ctrlKey&&k(S);break}case"ArrowDown":{k(S);break}case"p":case"k":{b&&S.ctrlKey&&V(S);break}case"ArrowUp":{V(S);break}case"Home":{S.preventDefault(),L(0);break}case"End":{S.preventDefault(),te();break}case"Enter":{S.preventDefault();let j=W();if(j){let Y=new Event(En);j.dispatchEvent(Y)}}}}},l.createElement("label",{"cmdk-label":"",htmlFor:R.inputId,id:R.labelId,style:Dm},c),hr(e,S=>l.createElement(wi.Provider,{value:_},l.createElement(yi.Provider,{value:R},S))))}),km=l.forwardRef((e,t)=>{var r,n;let o=ue(),a=l.useRef(null),s=l.useContext(Si),i=Et(),c=ki(e),d=(n=(r=c.current)==null?void 0:r.forceMount)!=null?n:s==null?void 0:s.forceMount;Ke(()=>{if(!d)return i.item(o,s==null?void 0:s.id)},[d]);let f=Ei(o,a,[e.value,e.children,a],e.keywords),p=Rn(),g=Fe(A=>A.value&&A.value===f.current),h=Fe(A=>d||i.filter()===!1?!0:A.search?A.filtered.items.get(o)>0:!0);l.useEffect(()=>{let A=a.current;if(!(!A||e.disabled))return A.addEventListener(En,v),()=>A.removeEventListener(En,v)},[h,e.onSelect,e.disabled]);function v(){var A,_;m(),(_=(A=c.current).onSelect)==null||_.call(A,f.current)}function m(){p.setState("value",f.current,!0)}if(!h)return null;let{disabled:b,value:x,onSelect:y,forceMount:w,keywords:C,...E}=e;return l.createElement(z.div,{ref:Ve(a,t),...E,id:o,"cmdk-item":"",role:"option","aria-disabled":!!b,"aria-selected":!!g,"data-disabled":!!b,"data-selected":!!g,onPointerMove:b||i.getDisablePointerSelection()?void 0:m,onClick:b?void 0:v},e.children)}),Em=l.forwardRef((e,t)=>{let{heading:r,children:n,forceMount:o,...a}=e,s=ue(),i=l.useRef(null),c=l.useRef(null),d=ue(),f=Et(),p=Fe(h=>o||f.filter()===!1?!0:h.search?h.filtered.groups.has(s):!0);Ke(()=>f.group(s),[]),Ei(s,i,[e.value,e.heading,c]);let g=l.useMemo(()=>({id:s,forceMount:o}),[o]);return l.createElement(z.div,{ref:Ve(i,t),...a,"cmdk-group":"",role:"presentation",hidden:p?void 0:!0},r&&l.createElement("div",{ref:c,"cmdk-group-heading":"","aria-hidden":!0,id:d},r),hr(e,h=>l.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":r?d:void 0},l.createElement(Si.Provider,{value:g},h))))}),Rm=l.forwardRef((e,t)=>{let{alwaysRender:r,...n}=e,o=l.useRef(null),a=Fe(s=>!s.search);return!r&&!a?null:l.createElement(z.div,{ref:Ve(o,t),...n,"cmdk-separator":"",role:"separator"})}),_m=l.forwardRef((e,t)=>{let{onValueChange:r,...n}=e,o=e.value!=null,a=Rn(),s=Fe(d=>d.search),i=Fe(d=>d.selectedItemId),c=Et();return l.useEffect(()=>{e.value!=null&&a.setState("search",e.value)},[e.value]),l.createElement(z.input,{ref:t,...n,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":c.listId,"aria-labelledby":c.labelId,"aria-activedescendant":i,id:c.inputId,type:"text",value:o?e.value:s,onChange:d=>{o||a.setState("search",d.target.value),r==null||r(d.target.value)}})}),Nm=l.forwardRef((e,t)=>{let{children:r,label:n="Suggestions",...o}=e,a=l.useRef(null),s=l.useRef(null),i=Fe(d=>d.selectedItemId),c=Et();return l.useEffect(()=>{if(s.current&&a.current){let d=s.current,f=a.current,p,g=new ResizeObserver(()=>{p=requestAnimationFrame(()=>{let h=d.offsetHeight;f.style.setProperty("--cmdk-list-height",h.toFixed(1)+"px")})});return g.observe(d),()=>{cancelAnimationFrame(p),g.unobserve(d)}}},[]),l.createElement(z.div,{ref:Ve(a,t),...o,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":i,"aria-label":n,id:c.listId},hr(e,d=>l.createElement("div",{ref:Ve(s,c.listInnerRef),"cmdk-list-sizer":""},d)))}),Pm=l.forwardRef((e,t)=>{let{open:r,onOpenChange:n,overlayClassName:o,contentClassName:a,container:s,...i}=e;return l.createElement(ja,{open:r,onOpenChange:n},l.createElement(Ia,{container:s},l.createElement(Oa,{"cmdk-overlay":"",className:o}),l.createElement(Ma,{"aria-label":e.label,"cmdk-dialog":"",className:a},l.createElement(Ci,{ref:t,...i}))))}),Am=l.forwardRef((e,t)=>Fe(r=>r.filtered.count===0)?l.createElement(z.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null),Tm=l.forwardRef((e,t)=>{let{progress:r,children:n,label:o="Loading...",...a}=e;return l.createElement(z.div,{ref:t,...a,"cmdk-loading":"",role:"progressbar","aria-valuenow":r,"aria-valuemin":0,"aria-valuemax":100,"aria-label":o},hr(e,s=>l.createElement("div",{"aria-hidden":!0},s)))}),Rt=Object.assign(Ci,{List:Nm,Item:km,Input:_m,Group:Em,Separator:Rm,Dialog:Pm,Empty:Am,Loading:Tm});function jm(e,t){let r=e.nextElementSibling;for(;r;){if(r.matches(t))return r;r=r.nextElementSibling}}function Im(e,t){let r=e.previousElementSibling;for(;r;){if(r.matches(t))return r;r=r.previousElementSibling}}function ki(e){let t=l.useRef(e);return Ke(()=>{t.current=e}),t}var Ke=typeof window>"u"?l.useEffect:l.useLayoutEffect;function ut(e){let t=l.useRef();return t.current===void 0&&(t.current=e()),t}function Fe(e){let t=Rn(),r=()=>e(t.snapshot());return l.useSyncExternalStore(t.subscribe,r,r)}function Ei(e,t,r,n=[]){let o=l.useRef(),a=Et();return Ke(()=>{var s;let i=(()=>{var d;for(let f of r){if(typeof f=="string")return f.trim();if(typeof f=="object"&&"current"in f)return f.current?(d=f.current.textContent)==null?void 0:d.trim():o.current}})(),c=n.map(d=>d.trim());a.value(e,i,c),(s=t.current)==null||s.setAttribute(ct,i),o.current=i}),o}var Om=()=>{let[e,t]=l.useState(),r=ut(()=>new Map);return Ke(()=>{r.current.forEach(n=>n()),r.current=new Map},[e]),(n,o)=>{r.current.set(n,o),t({})}};function Mm(e){let t=e.type;return typeof t=="function"?t(e.props):"render"in t?t.render(e.props):e}function hr({asChild:e,children:t},r){return e&&l.isValidElement(t)?l.cloneElement(Mm(t),{ref:t.ref},r(t.props.children)):r(t)}var Dm={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};function Lm({className:e,...t}){return u.jsx(Rt,{"data-slot":"command",className:D("bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",e),...t})}function $m({className:e,...t}){return u.jsxs("div",{"data-slot":"command-input-wrapper",className:"flex h-9 items-center gap-2 border-b px-3",children:[u.jsx(Wo,{className:"size-4 shrink-0 opacity-50"}),u.jsx(Rt.Input,{"data-slot":"command-input",className:D("placeholder:text-muted-foreground flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50",e),...t})]})}function Fm({...e}){return u.jsx(Rt.Empty,{"data-slot":"command-empty",className:"py-6 text-center text-sm",...e})}function Ri({className:e,...t}){return u.jsx(Rt.Group,{"data-slot":"command-group",className:D("text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium",e),...t})}function _i({className:e,...t}){return u.jsx(Rt.Item,{"data-slot":"command-item",className:D("data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...t})}function _n(e){return e.length>0&&e[0].kind==="group"}function Vm(e){return e.multiple?u.jsx(Pi,{...e}):u.jsx(Ni,{...e})}const Ni=({options:e,placeholder:t="Select...",disabled:r,error:n,helperText:o,value:a,onChange:s})=>{const[i,c]=ae.useState(""),d=a??i,f=p=>{c(p),s==null||s(p)};return u.jsxs("div",{className:"w-94",children:[u.jsxs(Bp,{value:d,onValueChange:f,disabled:r,children:[u.jsx(Up,{"aria-invalid":!!n,className:D("flex w-full items-center justify-between rounded-md border bg-white px-3 py-2 text-sm",r&&"cursor-not-allowed bg-neutral-black-4 border border-neutral-black-4 rounded",n?"border-primary-1":"border-neutral-black-4"),children:u.jsx(Hp,{placeholder:t})}),u.jsx(Gp,{className:"w-full bg-white border border-neutral-black-4",children:_n(e)?e.map(p=>u.jsxs(Wp,{className:"p-2",children:[u.jsx(Kp,{children:p.label}),p.options.map(g=>u.jsx(oi,{value:g.value,disabled:g.disabled,children:g.label},g.value))]},p.label)):e.map(p=>u.jsx(oi,{value:p.value,disabled:p.disabled,className:"hover:cursor-pointer hover:bg-neutral-black-5",children:p.label},p.value))})]}),n&&u.jsx("p",{className:"mt-1 text-xs text-primary-1",children:n}),o&&u.jsx("p",{className:"mt-1 text-xs text-neutral-black-3",children:o})]})},Pi=({options:e,placeholder:t="Select...",disabled:r,error:n,helperText:o,value:a,onChange:s})=>{const[i,c]=ae.useState(!1),[d,f]=ae.useState([]),p=a??d,g=ae.useMemo(()=>_n(e)?e.flatMap(v=>v.options):e,[e]),h=v=>{const m=p.includes(v)?p.filter(b=>b!==v):[...p,v];f(m),s==null||s(m)};return u.jsxs("div",{className:"w-94",children:[u.jsxs(um,{open:i,onOpenChange:c,children:[u.jsx(dm,{asChild:!0,children:u.jsxs("button",{type:"button",disabled:r,"aria-haspopup":"listbox","aria-expanded":i,className:D("flex w-full items-center justify-between rounded-md border bg-white px-3 py-2 text-sm",r&&"cursor-not-allowed bg-neutral-black-4 border border-neutral-black-4 rounded",n?"border-primary-1":"border-neutral-black-4"),children:[u.jsx("div",{className:"flex flex-wrap gap-1",children:p.length>0?p.map(v=>u.jsxs(Ur,{type:"outline",onClick:m=>{m.stopPropagation(),h(v)},className:"cursor-pointer border-neutral-black-4 bg-transparent hover:bg-neutral-black-4",children:[u.jsx("span",{className:"text-neutral-black-1",children:v}),u.jsx("div",{className:"flex items-center justify-center rounded-full border border-neutral-black-2 h-5 w-5 ml-1",children:u.jsx(Uo,{className:"h-3 w-3 text-neutral-black-1",strokeWidth:2})})]},v)):u.jsx("span",{className:"truncate text-xs text-neutral-black-1",children:t})}),u.jsx(Ar,{className:"h-4 w-4 text-neutral-black-1"})]})}),u.jsx(fm,{className:"p-0 w-full bg-white border border-neutral-black-4",children:u.jsxs(Lm,{className:"w-full",children:[u.jsx($m,{placeholder:"Search..."}),u.jsx(Fm,{children:"No results found."}),_n(e)?e.map(v=>u.jsx(Ri,{heading:v.label,children:v.options.map(m=>u.jsxs(_i,{value:m.label,onSelect:()=>!m.disabled&&h(m.value),disabled:m.disabled,children:[u.jsx("input",{type:"checkbox",readOnly:!0,checked:p.includes(m.value),className:"mr-2"}),m.label]},m.value))},v.label)):u.jsx(Ri,{children:g.map(v=>u.jsxs(_i,{value:v.label,onSelect:()=>!v.disabled&&h(v.value),disabled:v.disabled,children:[u.jsx("input",{type:"checkbox",readOnly:!0,checked:p.includes(v.value),className:"mr-2"}),v.label]},v.value))})]})})]}),n&&u.jsx("p",{className:"mt-1 text-xs text-primary-1",children:n}),o&&u.jsx("p",{className:"mt-1 text-xs text-neutral-black-3",children:o})]})},zm=ce("w-full",{variants:{variant:{"widget-1":"bg-white rounded-lg p-6 flex flex-col items-start gap-4 shadow-[0_0_8px_0_rgba(0,0,0,0.08),6px_0_0_0_var(--color-primary-1)_inset]","widget-2":"bg-white rounded-lg p-6 flex flex-col items-start gap-4 border border-neutral-black-4 shadow-[0_0_8px_0_rgba(0,0,0,0.08)]"}},defaultVariants:{variant:"widget-1"}});function Bm({className:e,variant:t,asChild:r=!1,children:n,...o}){const a=r?Tt:"div";return u.jsx(a,{"data-slot":"card",className:D(zm({variant:t}),e),...o,children:n})}var Nn={exports:{}},Pn={};/**
166
+ For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return l.useEffect(()=>{e&&(document.getElementById(e)||console.error(r))},[r,e]),null},dd="DialogDescriptionWarning",fd=({contentRef:e,descriptionId:t})=>{const n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Oa(dd).contentName}}.`;return l.useEffect(()=>{var a;const o=(a=e.current)==null?void 0:a.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(n))},[n,e,t]),null},Ma=ya,pd=Sa,Da=ka,La=Ea,$a=Ra,md=Na,hd=Ta,Fa=Ia;function gd({...e}){return u.jsx(Ma,{"data-slot":"dialog",...e})}function vd({...e}){return u.jsx(pd,{"data-slot":"dialog-trigger",...e})}function Va({...e}){return u.jsx(Da,{"data-slot":"dialog-portal",...e})}function bd({...e}){return u.jsx(Fa,{"data-slot":"dialog-close",...e})}function Ba({className:e,...t}){return u.jsx(La,{"data-slot":"dialog-overlay",className:j("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",e),...t})}function xd({className:e,children:t,showCloseButton:r=!0,...n}){return u.jsxs(Va,{"data-slot":"dialog-portal",children:[u.jsx(Ba,{}),u.jsxs($a,{"data-slot":"dialog-content",className:j("bg-background bg-white data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border border-none p-6 shadow-lg duration-200 sm:max-w-lg",e),...n,children:[t,r&&u.jsxs(Fa,{"data-slot":"dialog-close",className:"ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",children:[u.jsx(Yo,{}),u.jsx("span",{className:"sr-only",children:"Close"})]})]})]})}function yd({className:e,...t}){return u.jsx("div",{"data-slot":"dialog-header",className:j("flex flex-col gap-2 text-center sm:text-left",e),...t})}function wd({className:e,...t}){return u.jsx("div",{"data-slot":"dialog-footer",className:j("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",e),...t})}function Sd({className:e,...t}){return u.jsx(md,{"data-slot":"dialog-title",className:j("text-lg leading-none font-semibold ",e),...t})}function Cd({className:e,...t}){return u.jsx(hd,{"data-slot":"dialog-description",className:j("text-muted-foreground text-sm",e),...t})}const kd=le("inline-flex items-center justify-center rounded-full font-medium w-fit whitespace-nowrap shrink-0 gap-1 text-sm",{variants:{variant:{primary:"bg-tag-light-blue text-tag-dark-blue border-tag-light-blue",neutral:"bg-tag-light-gray text-tag-dark-gray border-tag-light-gray",warning:"bg-tag-light-brown text-tag-dark-brown border-tag-stroke-warning-border",success:"bg-tag-light-green text-tag-dark-green border-tag-stroke-success-border",error:"bg-tag-light-red-light text-tag-dark-red-dark border-tag-stroke-error-border",secondary:"bg-tag-light-ice-blue text-tag-dark-ice-blue border-tag-stroke-dark-border"},type:{filled:"border-0",outline:"border bg-transparent"},size:{md:"px-3 py-0.5 text-sm"}},defaultVariants:{variant:"primary",type:"filled",size:"md"}}),Yr=l.forwardRef(({className:e,variant:t,type:r="filled",asChild:n=!1,children:o,...a},s)=>{const i=n?At:"span";return u.jsx(i,{ref:s,"data-slot":"badge",className:j(kd({variant:t,type:r}),r==="outline"?"bg-transparent":"",e),...a,children:o})});Yr.displayName="Badge";const Ed=["top","right","bottom","left"],Oe=Math.min,fe=Math.max,er=Math.round,tr=Math.floor,Se=e=>({x:e,y:e}),Rd={left:"right",right:"left",bottom:"top",top:"bottom"},_d={start:"end",end:"start"};function qr(e,t,r){return fe(e,Oe(t,r))}function Pe(e,t){return typeof e=="function"?e(t):e}function Te(e){return e.split("-")[0]}function tt(e){return e.split("-")[1]}function Xr(e){return e==="x"?"y":"x"}function Zr(e){return e==="y"?"height":"width"}const Nd=new Set(["top","bottom"]);function Ce(e){return Nd.has(Te(e))?"y":"x"}function Jr(e){return Xr(Ce(e))}function Pd(e,t,r){r===void 0&&(r=!1);const n=tt(e),o=Jr(e),a=Zr(o);let s=o==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(s=rr(s)),[s,rr(s)]}function Td(e){const t=rr(e);return[Qr(e),t,Qr(t)]}function Qr(e){return e.replace(/start|end/g,t=>_d[t])}const za=["left","right"],Wa=["right","left"],Ad=["top","bottom"],Id=["bottom","top"];function jd(e,t,r){switch(e){case"top":case"bottom":return r?t?Wa:za:t?za:Wa;case"left":case"right":return t?Ad:Id;default:return[]}}function Od(e,t,r,n){const o=tt(e);let a=jd(Te(e),r==="start",n);return o&&(a=a.map(s=>s+"-"+o),t&&(a=a.concat(a.map(Qr)))),a}function rr(e){return e.replace(/left|right|bottom|top/g,t=>Rd[t])}function Md(e){return{top:0,right:0,bottom:0,left:0,...e}}function Ga(e){return typeof e!="number"?Md(e):{top:e,right:e,bottom:e,left:e}}function nr(e){const{x:t,y:r,width:n,height:o}=e;return{width:n,height:o,top:r,left:t,right:t+n,bottom:r+o,x:t,y:r}}function Ha(e,t,r){let{reference:n,floating:o}=e;const a=Ce(t),s=Jr(t),i=Zr(s),c=Te(t),d=a==="y",f=n.x+n.width/2-o.width/2,p=n.y+n.height/2-o.height/2,g=n[i]/2-o[i]/2;let h;switch(c){case"top":h={x:f,y:n.y-o.height};break;case"bottom":h={x:f,y:n.y+n.height};break;case"right":h={x:n.x+n.width,y:p};break;case"left":h={x:n.x-o.width,y:p};break;default:h={x:n.x,y:n.y}}switch(tt(t)){case"start":h[s]-=g*(r&&d?-1:1);break;case"end":h[s]+=g*(r&&d?-1:1);break}return h}const Dd=async(e,t,r)=>{const{placement:n="bottom",strategy:o="absolute",middleware:a=[],platform:s}=r,i=a.filter(Boolean),c=await(s.isRTL==null?void 0:s.isRTL(t));let d=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:f,y:p}=Ha(d,n,c),g=n,h={},v=0;for(let m=0;m<i.length;m++){const{name:b,fn:x}=i[m],{x:y,y:w,data:C,reset:E}=await x({x:f,y:p,initialPlacement:n,placement:g,strategy:o,middlewareData:h,rects:d,platform:s,elements:{reference:e,floating:t}});f=y??f,p=w??p,h={...h,[b]:{...h[b],...C}},E&&v<=50&&(v++,typeof E=="object"&&(E.placement&&(g=E.placement),E.rects&&(d=E.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:o}):E.rects),{x:f,y:p}=Ha(d,g,c)),m=-1)}return{x:f,y:p,placement:g,strategy:o,middlewareData:h}};async function vt(e,t){var r;t===void 0&&(t={});const{x:n,y:o,platform:a,rects:s,elements:i,strategy:c}=e,{boundary:d="clippingAncestors",rootBoundary:f="viewport",elementContext:p="floating",altBoundary:g=!1,padding:h=0}=Pe(t,e),v=Ga(h),b=i[g?p==="floating"?"reference":"floating":p],x=nr(await a.getClippingRect({element:(r=await(a.isElement==null?void 0:a.isElement(b)))==null||r?b:b.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(i.floating)),boundary:d,rootBoundary:f,strategy:c})),y=p==="floating"?{x:n,y:o,width:s.floating.width,height:s.floating.height}:s.reference,w=await(a.getOffsetParent==null?void 0:a.getOffsetParent(i.floating)),C=await(a.isElement==null?void 0:a.isElement(w))?await(a.getScale==null?void 0:a.getScale(w))||{x:1,y:1}:{x:1,y:1},E=nr(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:i,rect:y,offsetParent:w,strategy:c}):y);return{top:(x.top-E.top+v.top)/C.y,bottom:(E.bottom-x.bottom+v.bottom)/C.y,left:(x.left-E.left+v.left)/C.x,right:(E.right-x.right+v.right)/C.x}}const Ld=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:n,placement:o,rects:a,platform:s,elements:i,middlewareData:c}=t,{element:d,padding:f=0}=Pe(e,t)||{};if(d==null)return{};const p=Ga(f),g={x:r,y:n},h=Jr(o),v=Zr(h),m=await s.getDimensions(d),b=h==="y",x=b?"top":"left",y=b?"bottom":"right",w=b?"clientHeight":"clientWidth",C=a.reference[v]+a.reference[h]-g[h]-a.floating[v],E=g[h]-a.reference[h],T=await(s.getOffsetParent==null?void 0:s.getOffsetParent(d));let _=T?T[w]:0;(!_||!await(s.isElement==null?void 0:s.isElement(T)))&&(_=i.floating[w]||a.floating[v]);const R=C/2-E/2,G=_/2-m[v]/2-1,K=Oe(p[x],G),X=Oe(p[y],G),Q=K,ee=_-m[v]-X,W=_/2-m[v]/2+R,q=qr(Q,W,ee),$=!c.arrow&&tt(o)!=null&&W!==q&&a.reference[v]/2-(W<Q?K:X)-m[v]/2<0,H=$?W<Q?W-Q:W-ee:0;return{[h]:g[h]+H,data:{[h]:q,centerOffset:W-q-H,...$&&{alignmentOffset:H}},reset:$}}}),$d=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,n;const{placement:o,middlewareData:a,rects:s,initialPlacement:i,platform:c,elements:d}=t,{mainAxis:f=!0,crossAxis:p=!0,fallbackPlacements:g,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:m=!0,...b}=Pe(e,t);if((r=a.arrow)!=null&&r.alignmentOffset)return{};const x=Te(o),y=Ce(i),w=Te(i)===i,C=await(c.isRTL==null?void 0:c.isRTL(d.floating)),E=g||(w||!m?[rr(i)]:Td(i)),T=v!=="none";!g&&T&&E.push(...Od(i,m,v,C));const _=[i,...E],R=await vt(t,b),G=[];let K=((n=a.flip)==null?void 0:n.overflows)||[];if(f&&G.push(R[x]),p){const W=Pd(o,s,C);G.push(R[W[0]],R[W[1]])}if(K=[...K,{placement:o,overflows:G}],!G.every(W=>W<=0)){var X,Q;const W=(((X=a.flip)==null?void 0:X.index)||0)+1,q=_[W];if(q&&(!(p==="alignment"?y!==Ce(q):!1)||K.every(N=>Ce(N.placement)===y?N.overflows[0]>0:!0)))return{data:{index:W,overflows:K},reset:{placement:q}};let $=(Q=K.filter(H=>H.overflows[0]<=0).sort((H,N)=>H.overflows[1]-N.overflows[1])[0])==null?void 0:Q.placement;if(!$)switch(h){case"bestFit":{var ee;const H=(ee=K.filter(N=>{if(T){const te=Ce(N.placement);return te===y||te==="y"}return!0}).map(N=>[N.placement,N.overflows.filter(te=>te>0).reduce((te,k)=>te+k,0)]).sort((N,te)=>N[1]-te[1])[0])==null?void 0:ee[0];H&&($=H);break}case"initialPlacement":$=i;break}if(o!==$)return{reset:{placement:$}}}return{}}}};function Ua(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Ka(e){return Ed.some(t=>e[t]>=0)}const Fd=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r}=t,{strategy:n="referenceHidden",...o}=Pe(e,t);switch(n){case"referenceHidden":{const a=await vt(t,{...o,elementContext:"reference"}),s=Ua(a,r.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:Ka(s)}}}case"escaped":{const a=await vt(t,{...o,altBoundary:!0}),s=Ua(a,r.floating);return{data:{escapedOffsets:s,escaped:Ka(s)}}}default:return{}}}}},Ya=new Set(["left","top"]);async function Vd(e,t){const{placement:r,platform:n,elements:o}=e,a=await(n.isRTL==null?void 0:n.isRTL(o.floating)),s=Te(r),i=tt(r),c=Ce(r)==="y",d=Ya.has(s)?-1:1,f=a&&c?-1:1,p=Pe(t,e);let{mainAxis:g,crossAxis:h,alignmentAxis:v}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return i&&typeof v=="number"&&(h=i==="end"?v*-1:v),c?{x:h*f,y:g*d}:{x:g*d,y:h*f}}const Bd=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,n;const{x:o,y:a,placement:s,middlewareData:i}=t,c=await Vd(t,e);return s===((r=i.offset)==null?void 0:r.placement)&&(n=i.arrow)!=null&&n.alignmentOffset?{}:{x:o+c.x,y:a+c.y,data:{...c,placement:s}}}}},zd=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:o}=t,{mainAxis:a=!0,crossAxis:s=!1,limiter:i={fn:b=>{let{x,y}=b;return{x,y}}},...c}=Pe(e,t),d={x:r,y:n},f=await vt(t,c),p=Ce(Te(o)),g=Xr(p);let h=d[g],v=d[p];if(a){const b=g==="y"?"top":"left",x=g==="y"?"bottom":"right",y=h+f[b],w=h-f[x];h=qr(y,h,w)}if(s){const b=p==="y"?"top":"left",x=p==="y"?"bottom":"right",y=v+f[b],w=v-f[x];v=qr(y,v,w)}const m=i.fn({...t,[g]:h,[p]:v});return{...m,data:{x:m.x-r,y:m.y-n,enabled:{[g]:a,[p]:s}}}}}},Wd=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:r,y:n,placement:o,rects:a,middlewareData:s}=t,{offset:i=0,mainAxis:c=!0,crossAxis:d=!0}=Pe(e,t),f={x:r,y:n},p=Ce(o),g=Xr(p);let h=f[g],v=f[p];const m=Pe(i,t),b=typeof m=="number"?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(c){const w=g==="y"?"height":"width",C=a.reference[g]-a.floating[w]+b.mainAxis,E=a.reference[g]+a.reference[w]-b.mainAxis;h<C?h=C:h>E&&(h=E)}if(d){var x,y;const w=g==="y"?"width":"height",C=Ya.has(Te(o)),E=a.reference[p]-a.floating[w]+(C&&((x=s.offset)==null?void 0:x[p])||0)+(C?0:b.crossAxis),T=a.reference[p]+a.reference[w]+(C?0:((y=s.offset)==null?void 0:y[p])||0)-(C?b.crossAxis:0);v<E?v=E:v>T&&(v=T)}return{[g]:h,[p]:v}}}},Gd=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var r,n;const{placement:o,rects:a,platform:s,elements:i}=t,{apply:c=()=>{},...d}=Pe(e,t),f=await vt(t,d),p=Te(o),g=tt(o),h=Ce(o)==="y",{width:v,height:m}=a.floating;let b,x;p==="top"||p==="bottom"?(b=p,x=g===(await(s.isRTL==null?void 0:s.isRTL(i.floating))?"start":"end")?"left":"right"):(x=p,b=g==="end"?"top":"bottom");const y=m-f.top-f.bottom,w=v-f.left-f.right,C=Oe(m-f[b],y),E=Oe(v-f[x],w),T=!t.middlewareData.shift;let _=C,R=E;if((r=t.middlewareData.shift)!=null&&r.enabled.x&&(R=w),(n=t.middlewareData.shift)!=null&&n.enabled.y&&(_=y),T&&!g){const K=fe(f.left,0),X=fe(f.right,0),Q=fe(f.top,0),ee=fe(f.bottom,0);h?R=v-2*(K!==0||X!==0?K+X:fe(f.left,f.right)):_=m-2*(Q!==0||ee!==0?Q+ee:fe(f.top,f.bottom))}await c({...t,availableWidth:R,availableHeight:_});const G=await s.getDimensions(i.floating);return v!==G.width||m!==G.height?{reset:{rects:!0}}:{}}}};function or(){return typeof window<"u"}function rt(e){return qa(e)?(e.nodeName||"").toLowerCase():"#document"}function pe(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ke(e){var t;return(t=(qa(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function qa(e){return or()?e instanceof Node||e instanceof pe(e).Node:!1}function ve(e){return or()?e instanceof Element||e instanceof pe(e).Element:!1}function Ee(e){return or()?e instanceof HTMLElement||e instanceof pe(e).HTMLElement:!1}function Xa(e){return!or()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof pe(e).ShadowRoot}const Hd=new Set(["inline","contents"]);function bt(e){const{overflow:t,overflowX:r,overflowY:n,display:o}=be(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!Hd.has(o)}const Ud=new Set(["table","td","th"]);function Kd(e){return Ud.has(rt(e))}const Yd=[":popover-open",":modal"];function ar(e){return Yd.some(t=>{try{return e.matches(t)}catch{return!1}})}const qd=["transform","translate","scale","rotate","perspective"],Xd=["transform","translate","scale","rotate","perspective","filter"],Zd=["paint","layout","strict","content"];function en(e){const t=tn(),r=ve(e)?be(e):e;return qd.some(n=>r[n]?r[n]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(r.filter?r.filter!=="none":!1)||Xd.some(n=>(r.willChange||"").includes(n))||Zd.some(n=>(r.contain||"").includes(n))}function Jd(e){let t=Me(e);for(;Ee(t)&&!nt(t);){if(en(t))return t;if(ar(t))return null;t=Me(t)}return null}function tn(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const Qd=new Set(["html","body","#document"]);function nt(e){return Qd.has(rt(e))}function be(e){return pe(e).getComputedStyle(e)}function sr(e){return ve(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Me(e){if(rt(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Xa(e)&&e.host||ke(e);return Xa(t)?t.host:t}function Za(e){const t=Me(e);return nt(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ee(t)&&bt(t)?t:Za(t)}function xt(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);const o=Za(e),a=o===((n=e.ownerDocument)==null?void 0:n.body),s=pe(o);if(a){const i=rn(s);return t.concat(s,s.visualViewport||[],bt(o)?o:[],i&&r?xt(i):[])}return t.concat(o,xt(o,[],r))}function rn(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Ja(e){const t=be(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const o=Ee(e),a=o?e.offsetWidth:r,s=o?e.offsetHeight:n,i=er(r)!==a||er(n)!==s;return i&&(r=a,n=s),{width:r,height:n,$:i}}function nn(e){return ve(e)?e:e.contextElement}function ot(e){const t=nn(e);if(!Ee(t))return Se(1);const r=t.getBoundingClientRect(),{width:n,height:o,$:a}=Ja(t);let s=(a?er(r.width):r.width)/n,i=(a?er(r.height):r.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!i||!Number.isFinite(i))&&(i=1),{x:s,y:i}}const ef=Se(0);function Qa(e){const t=pe(e);return!tn()||!t.visualViewport?ef:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function tf(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==pe(e)?!1:t}function Ge(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);const o=e.getBoundingClientRect(),a=nn(e);let s=Se(1);t&&(n?ve(n)&&(s=ot(n)):s=ot(e));const i=tf(a,r,n)?Qa(a):Se(0);let c=(o.left+i.x)/s.x,d=(o.top+i.y)/s.y,f=o.width/s.x,p=o.height/s.y;if(a){const g=pe(a),h=n&&ve(n)?pe(n):n;let v=g,m=rn(v);for(;m&&n&&h!==v;){const b=ot(m),x=m.getBoundingClientRect(),y=be(m),w=x.left+(m.clientLeft+parseFloat(y.paddingLeft))*b.x,C=x.top+(m.clientTop+parseFloat(y.paddingTop))*b.y;c*=b.x,d*=b.y,f*=b.x,p*=b.y,c+=w,d+=C,v=pe(m),m=rn(v)}}return nr({width:f,height:p,x:c,y:d})}function ir(e,t){const r=sr(e).scrollLeft;return t?t.left+r:Ge(ke(e)).left+r}function es(e,t){const r=e.getBoundingClientRect(),n=r.left+t.scrollLeft-ir(e,r),o=r.top+t.scrollTop;return{x:n,y:o}}function rf(e){let{elements:t,rect:r,offsetParent:n,strategy:o}=e;const a=o==="fixed",s=ke(n),i=t?ar(t.floating):!1;if(n===s||i&&a)return r;let c={scrollLeft:0,scrollTop:0},d=Se(1);const f=Se(0),p=Ee(n);if((p||!p&&!a)&&((rt(n)!=="body"||bt(s))&&(c=sr(n)),Ee(n))){const h=Ge(n);d=ot(n),f.x=h.x+n.clientLeft,f.y=h.y+n.clientTop}const g=s&&!p&&!a?es(s,c):Se(0);return{width:r.width*d.x,height:r.height*d.y,x:r.x*d.x-c.scrollLeft*d.x+f.x+g.x,y:r.y*d.y-c.scrollTop*d.y+f.y+g.y}}function nf(e){return Array.from(e.getClientRects())}function of(e){const t=ke(e),r=sr(e),n=e.ownerDocument.body,o=fe(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),a=fe(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let s=-r.scrollLeft+ir(e);const i=-r.scrollTop;return be(n).direction==="rtl"&&(s+=fe(t.clientWidth,n.clientWidth)-o),{width:o,height:a,x:s,y:i}}const ts=25;function af(e,t){const r=pe(e),n=ke(e),o=r.visualViewport;let a=n.clientWidth,s=n.clientHeight,i=0,c=0;if(o){a=o.width,s=o.height;const f=tn();(!f||f&&t==="fixed")&&(i=o.offsetLeft,c=o.offsetTop)}const d=ir(n);if(d<=0){const f=n.ownerDocument,p=f.body,g=getComputedStyle(p),h=f.compatMode==="CSS1Compat"&&parseFloat(g.marginLeft)+parseFloat(g.marginRight)||0,v=Math.abs(n.clientWidth-p.clientWidth-h);v<=ts&&(a-=v)}else d<=ts&&(a+=d);return{width:a,height:s,x:i,y:c}}const sf=new Set(["absolute","fixed"]);function lf(e,t){const r=Ge(e,!0,t==="fixed"),n=r.top+e.clientTop,o=r.left+e.clientLeft,a=Ee(e)?ot(e):Se(1),s=e.clientWidth*a.x,i=e.clientHeight*a.y,c=o*a.x,d=n*a.y;return{width:s,height:i,x:c,y:d}}function rs(e,t,r){let n;if(t==="viewport")n=af(e,r);else if(t==="document")n=of(ke(e));else if(ve(t))n=lf(t,r);else{const o=Qa(e);n={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return nr(n)}function ns(e,t){const r=Me(e);return r===t||!ve(r)||nt(r)?!1:be(r).position==="fixed"||ns(r,t)}function cf(e,t){const r=t.get(e);if(r)return r;let n=xt(e,[],!1).filter(i=>ve(i)&&rt(i)!=="body"),o=null;const a=be(e).position==="fixed";let s=a?Me(e):e;for(;ve(s)&&!nt(s);){const i=be(s),c=en(s);!c&&i.position==="fixed"&&(o=null),(a?!c&&!o:!c&&i.position==="static"&&!!o&&sf.has(o.position)||bt(s)&&!c&&ns(e,s))?n=n.filter(f=>f!==s):o=i,s=Me(s)}return t.set(e,n),n}function uf(e){let{element:t,boundary:r,rootBoundary:n,strategy:o}=e;const s=[...r==="clippingAncestors"?ar(t)?[]:cf(t,this._c):[].concat(r),n],i=s[0],c=s.reduce((d,f)=>{const p=rs(t,f,o);return d.top=fe(p.top,d.top),d.right=Oe(p.right,d.right),d.bottom=Oe(p.bottom,d.bottom),d.left=fe(p.left,d.left),d},rs(t,i,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function df(e){const{width:t,height:r}=Ja(e);return{width:t,height:r}}function ff(e,t,r){const n=Ee(t),o=ke(t),a=r==="fixed",s=Ge(e,!0,a,t);let i={scrollLeft:0,scrollTop:0};const c=Se(0);function d(){c.x=ir(o)}if(n||!n&&!a)if((rt(t)!=="body"||bt(o))&&(i=sr(t)),n){const h=Ge(t,!0,a,t);c.x=h.x+t.clientLeft,c.y=h.y+t.clientTop}else o&&d();a&&!n&&o&&d();const f=o&&!n&&!a?es(o,i):Se(0),p=s.left+i.scrollLeft-c.x-f.x,g=s.top+i.scrollTop-c.y-f.y;return{x:p,y:g,width:s.width,height:s.height}}function on(e){return be(e).position==="static"}function os(e,t){if(!Ee(e)||be(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return ke(e)===r&&(r=r.ownerDocument.body),r}function as(e,t){const r=pe(e);if(ar(e))return r;if(!Ee(e)){let o=Me(e);for(;o&&!nt(o);){if(ve(o)&&!on(o))return o;o=Me(o)}return r}let n=os(e,t);for(;n&&Kd(n)&&on(n);)n=os(n,t);return n&&nt(n)&&on(n)&&!en(n)?r:n||Jd(e)||r}const pf=async function(e){const t=this.getOffsetParent||as,r=this.getDimensions,n=await r(e.floating);return{reference:ff(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function mf(e){return be(e).direction==="rtl"}const hf={convertOffsetParentRelativeRectToViewportRelativeRect:rf,getDocumentElement:ke,getClippingRect:uf,getOffsetParent:as,getElementRects:pf,getClientRects:nf,getDimensions:df,getScale:ot,isElement:ve,isRTL:mf};function ss(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function gf(e,t){let r=null,n;const o=ke(e);function a(){var i;clearTimeout(n),(i=r)==null||i.disconnect(),r=null}function s(i,c){i===void 0&&(i=!1),c===void 0&&(c=1),a();const d=e.getBoundingClientRect(),{left:f,top:p,width:g,height:h}=d;if(i||t(),!g||!h)return;const v=tr(p),m=tr(o.clientWidth-(f+g)),b=tr(o.clientHeight-(p+h)),x=tr(f),w={rootMargin:-v+"px "+-m+"px "+-b+"px "+-x+"px",threshold:fe(0,Oe(1,c))||1};let C=!0;function E(T){const _=T[0].intersectionRatio;if(_!==c){if(!C)return s();_?s(!1,_):n=setTimeout(()=>{s(!1,1e-7)},1e3)}_===1&&!ss(d,e.getBoundingClientRect())&&s(),C=!1}try{r=new IntersectionObserver(E,{...w,root:o.ownerDocument})}catch{r=new IntersectionObserver(E,w)}r.observe(e)}return s(!0),a}function vf(e,t,r,n){n===void 0&&(n={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:i=typeof IntersectionObserver=="function",animationFrame:c=!1}=n,d=nn(e),f=o||a?[...d?xt(d):[],...xt(t)]:[];f.forEach(x=>{o&&x.addEventListener("scroll",r,{passive:!0}),a&&x.addEventListener("resize",r)});const p=d&&i?gf(d,r):null;let g=-1,h=null;s&&(h=new ResizeObserver(x=>{let[y]=x;y&&y.target===d&&h&&(h.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var w;(w=h)==null||w.observe(t)})),r()}),d&&!c&&h.observe(d),h.observe(t));let v,m=c?Ge(e):null;c&&b();function b(){const x=Ge(e);m&&!ss(m,x)&&r(),m=x,v=requestAnimationFrame(b)}return r(),()=>{var x;f.forEach(y=>{o&&y.removeEventListener("scroll",r),a&&y.removeEventListener("resize",r)}),p==null||p(),(x=h)==null||x.disconnect(),h=null,c&&cancelAnimationFrame(v)}}const bf=Bd,xf=zd,yf=$d,wf=Gd,Sf=Fd,is=Ld,Cf=Wd,kf=(e,t,r)=>{const n=new Map,o={platform:hf,...r},a={...o.platform,_c:n};return Dd(e,t,{...o,platform:a})};var Ef=typeof document<"u",Rf=function(){},lr=Ef?ae.useLayoutEffect:Rf;function cr(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let r,n,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(r=e.length,r!==t.length)return!1;for(n=r;n--!==0;)if(!cr(e[n],t[n]))return!1;return!0}if(o=Object.keys(e),r=o.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!{}.hasOwnProperty.call(t,o[n]))return!1;for(n=r;n--!==0;){const a=o[n];if(!(a==="_owner"&&e.$$typeof)&&!cr(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function ls(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function cs(e,t){const r=ls(e);return Math.round(t*r)/r}function an(e){const t=l.useRef(e);return lr(()=>{t.current=e}),t}function _f(e){e===void 0&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:n=[],platform:o,elements:{reference:a,floating:s}={},transform:i=!0,whileElementsMounted:c,open:d}=e,[f,p]=l.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[g,h]=l.useState(n);cr(g,n)||h(n);const[v,m]=l.useState(null),[b,x]=l.useState(null),y=l.useCallback(N=>{N!==T.current&&(T.current=N,m(N))},[]),w=l.useCallback(N=>{N!==_.current&&(_.current=N,x(N))},[]),C=a||v,E=s||b,T=l.useRef(null),_=l.useRef(null),R=l.useRef(f),G=c!=null,K=an(c),X=an(o),Q=an(d),ee=l.useCallback(()=>{if(!T.current||!_.current)return;const N={placement:t,strategy:r,middleware:g};X.current&&(N.platform=X.current),kf(T.current,_.current,N).then(te=>{const k={...te,isPositioned:Q.current!==!1};W.current&&!cr(R.current,k)&&(R.current=k,Tt.flushSync(()=>{p(k)}))})},[g,t,r,X,Q]);lr(()=>{d===!1&&R.current.isPositioned&&(R.current.isPositioned=!1,p(N=>({...N,isPositioned:!1})))},[d]);const W=l.useRef(!1);lr(()=>(W.current=!0,()=>{W.current=!1}),[]),lr(()=>{if(C&&(T.current=C),E&&(_.current=E),C&&E){if(K.current)return K.current(C,E,ee);ee()}},[C,E,ee,K,G]);const q=l.useMemo(()=>({reference:T,floating:_,setReference:y,setFloating:w}),[y,w]),$=l.useMemo(()=>({reference:C,floating:E}),[C,E]),H=l.useMemo(()=>{const N={position:r,left:0,top:0};if(!$.floating)return N;const te=cs($.floating,f.x),k=cs($.floating,f.y);return i?{...N,transform:"translate("+te+"px, "+k+"px)",...ls($.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:te,top:k}},[r,i,$.floating,f.x,f.y]);return l.useMemo(()=>({...f,update:ee,refs:q,elements:$,floatingStyles:H}),[f,ee,q,$,H])}const Nf=e=>{function t(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:e,fn(r){const{element:n,padding:o}=typeof e=="function"?e(r):e;return n&&t(n)?n.current!=null?is({element:n.current,padding:o}).fn(r):{}:n?is({element:n,padding:o}).fn(r):{}}}},Pf=(e,t)=>({...bf(e),options:[e,t]}),Tf=(e,t)=>({...xf(e),options:[e,t]}),Af=(e,t)=>({...Cf(e),options:[e,t]}),If=(e,t)=>({...yf(e),options:[e,t]}),jf=(e,t)=>({...wf(e),options:[e,t]}),Of=(e,t)=>({...Sf(e),options:[e,t]}),Mf=(e,t)=>({...Nf(e),options:[e,t]});var Df="Arrow",us=l.forwardRef((e,t)=>{const{children:r,width:n=10,height:o=5,...a}=e;return u.jsx(V.svg,{...a,ref:t,width:n,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:u.jsx("polygon",{points:"0,0 30,0 15,10"})})});us.displayName=Df;var Lf=us,sn="Popper",[ds,at]=de(sn),[$f,fs]=ds(sn),ps=e=>{const{__scopePopper:t,children:r}=e,[n,o]=l.useState(null);return u.jsx($f,{scope:t,anchor:n,onAnchorChange:o,children:r})};ps.displayName=sn;var ms="PopperAnchor",hs=l.forwardRef((e,t)=>{const{__scopePopper:r,virtualRef:n,...o}=e,a=fs(ms,r),s=l.useRef(null),i=ne(t,s),c=l.useRef(null);return l.useEffect(()=>{const d=c.current;c.current=(n==null?void 0:n.current)||s.current,d!==c.current&&a.onAnchorChange(c.current)}),n?null:u.jsx(V.div,{...o,ref:i})});hs.displayName=ms;var ln="PopperContent",[Ff,Vf]=ds(ln),gs=l.forwardRef((e,t)=>{var P,F,U,Z,re,oe;const{__scopePopper:r,side:n="bottom",sideOffset:o=0,align:a="center",alignOffset:s=0,arrowPadding:i=0,avoidCollisions:c=!0,collisionBoundary:d=[],collisionPadding:f=0,sticky:p="partial",hideWhenDetached:g=!1,updatePositionStrategy:h="optimized",onPlaced:v,...m}=e,b=fs(ln,r),[x,y]=l.useState(null),w=ne(t,me=>y(me)),[C,E]=l.useState(null),T=Dt(C),_=(T==null?void 0:T.width)??0,R=(T==null?void 0:T.height)??0,G=n+(a!=="center"?"-"+a:""),K=typeof f=="number"?f:{top:0,right:0,bottom:0,left:0,...f},X=Array.isArray(d)?d:[d],Q=X.length>0,ee={padding:K,boundary:X.filter(zf),altBoundary:Q},{refs:W,floatingStyles:q,placement:$,isPositioned:H,middlewareData:N}=_f({strategy:"fixed",placement:G,whileElementsMounted:(...me)=>vf(...me,{animationFrame:h==="always"}),elements:{reference:b.anchor},middleware:[Pf({mainAxis:o+R,alignmentAxis:s}),c&&Tf({mainAxis:!0,crossAxis:!1,limiter:p==="partial"?Af():void 0,...ee}),c&&If({...ee}),jf({...ee,apply:({elements:me,rects:Re,availableWidth:_t,availableHeight:Nt})=>{const{width:Pt,height:rg}=Re.reference,wr=me.floating.style;wr.setProperty("--radix-popper-available-width",`${_t}px`),wr.setProperty("--radix-popper-available-height",`${Nt}px`),wr.setProperty("--radix-popper-anchor-width",`${Pt}px`),wr.setProperty("--radix-popper-anchor-height",`${rg}px`)}}),C&&Mf({element:C,padding:i}),Wf({arrowWidth:_,arrowHeight:R}),g&&Of({strategy:"referenceHidden",...ee})]}),[te,k]=xs($),B=Ne(v);ie(()=>{H&&(B==null||B())},[H,B]);const S=(P=N.arrow)==null?void 0:P.x,A=(F=N.arrow)==null?void 0:F.y,D=((U=N.arrow)==null?void 0:U.centerOffset)!==0,[I,Y]=l.useState();return ie(()=>{x&&Y(window.getComputedStyle(x).zIndex)},[x]),u.jsx("div",{ref:W.setFloating,"data-radix-popper-content-wrapper":"",style:{...q,transform:H?q.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:I,"--radix-popper-transform-origin":[(Z=N.transformOrigin)==null?void 0:Z.x,(re=N.transformOrigin)==null?void 0:re.y].join(" "),...((oe=N.hide)==null?void 0:oe.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:u.jsx(Ff,{scope:r,placedSide:te,onArrowChange:E,arrowX:S,arrowY:A,shouldHideArrow:D,children:u.jsx(V.div,{"data-side":te,"data-align":k,...m,ref:w,style:{...m.style,animation:H?void 0:"none"}})})})});gs.displayName=ln;var vs="PopperArrow",Bf={top:"bottom",right:"left",bottom:"top",left:"right"},bs=l.forwardRef(function(t,r){const{__scopePopper:n,...o}=t,a=Vf(vs,n),s=Bf[a.placedSide];return u.jsx("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[a.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[a.placedSide],visibility:a.shouldHideArrow?"hidden":void 0},children:u.jsx(Lf,{...o,ref:r,style:{...o.style,display:"block"}})})});bs.displayName=vs;function zf(e){return e!==null}var Wf=e=>({name:"transformOrigin",options:e,fn(t){var b,x,y;const{placement:r,rects:n,middlewareData:o}=t,s=((b=o.arrow)==null?void 0:b.centerOffset)!==0,i=s?0:e.arrowWidth,c=s?0:e.arrowHeight,[d,f]=xs(r),p={start:"0%",center:"50%",end:"100%"}[f],g=(((x=o.arrow)==null?void 0:x.x)??0)+i/2,h=(((y=o.arrow)==null?void 0:y.y)??0)+c/2;let v="",m="";return d==="bottom"?(v=s?p:`${g}px`,m=`${-c}px`):d==="top"?(v=s?p:`${g}px`,m=`${n.floating.height+c}px`):d==="right"?(v=`${-c}px`,m=s?p:`${h}px`):d==="left"&&(v=`${n.floating.width+c}px`,m=s?p:`${h}px`),{data:{x:v,y:m}}}});function xs(e){const[t,r="center"]=e.split("-");return[t,r]}var cn=ps,ur=hs,un=gs,dn=bs,ys=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),Gf="VisuallyHidden",ws=l.forwardRef((e,t)=>u.jsx(V.span,{...e,ref:t,style:{...ys,...e.style}}));ws.displayName=Gf;var Hf=ws,[dr,_g]=de("Tooltip",[at]),fr=at(),Ss="TooltipProvider",Uf=700,fn="tooltip.open",[Kf,pn]=dr(Ss),Cs=e=>{const{__scopeTooltip:t,delayDuration:r=Uf,skipDelayDuration:n=300,disableHoverableContent:o=!1,children:a}=e,s=l.useRef(!0),i=l.useRef(!1),c=l.useRef(0);return l.useEffect(()=>{const d=c.current;return()=>window.clearTimeout(d)},[]),u.jsx(Kf,{scope:t,isOpenDelayedRef:s,delayDuration:r,onOpen:l.useCallback(()=>{window.clearTimeout(c.current),s.current=!1},[]),onClose:l.useCallback(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>s.current=!0,n)},[n]),isPointerInTransitRef:i,onPointerInTransitChange:l.useCallback(d=>{i.current=d},[]),disableHoverableContent:o,children:a})};Cs.displayName=Ss;var yt="Tooltip",[Yf,wt]=dr(yt),ks=e=>{const{__scopeTooltip:t,children:r,open:n,defaultOpen:o,onOpenChange:a,disableHoverableContent:s,delayDuration:i}=e,c=pn(yt,e.__scopeTooltip),d=fr(t),[f,p]=l.useState(null),g=ce(),h=l.useRef(0),v=s??c.disableHoverableContent,m=i??c.delayDuration,b=l.useRef(!1),[x,y]=ye({prop:n,defaultProp:o??!1,onChange:_=>{_?(c.onOpen(),document.dispatchEvent(new CustomEvent(fn))):c.onClose(),a==null||a(_)},caller:yt}),w=l.useMemo(()=>x?b.current?"delayed-open":"instant-open":"closed",[x]),C=l.useCallback(()=>{window.clearTimeout(h.current),h.current=0,b.current=!1,y(!0)},[y]),E=l.useCallback(()=>{window.clearTimeout(h.current),h.current=0,y(!1)},[y]),T=l.useCallback(()=>{window.clearTimeout(h.current),h.current=window.setTimeout(()=>{b.current=!0,y(!0),h.current=0},m)},[m,y]);return l.useEffect(()=>()=>{h.current&&(window.clearTimeout(h.current),h.current=0)},[]),u.jsx(cn,{...d,children:u.jsx(Yf,{scope:t,contentId:g,open:x,stateAttribute:w,trigger:f,onTriggerChange:p,onTriggerEnter:l.useCallback(()=>{c.isOpenDelayedRef.current?T():C()},[c.isOpenDelayedRef,T,C]),onTriggerLeave:l.useCallback(()=>{v?E():(window.clearTimeout(h.current),h.current=0)},[E,v]),onOpen:C,onClose:E,disableHoverableContent:v,children:r})})};ks.displayName=yt;var mn="TooltipTrigger",Es=l.forwardRef((e,t)=>{const{__scopeTooltip:r,...n}=e,o=wt(mn,r),a=pn(mn,r),s=fr(r),i=l.useRef(null),c=ne(t,i,o.onTriggerChange),d=l.useRef(!1),f=l.useRef(!1),p=l.useCallback(()=>d.current=!1,[]);return l.useEffect(()=>()=>document.removeEventListener("pointerup",p),[p]),u.jsx(ur,{asChild:!0,...s,children:u.jsx(V.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...n,ref:c,onPointerMove:z(e.onPointerMove,g=>{g.pointerType!=="touch"&&!f.current&&!a.isPointerInTransitRef.current&&(o.onTriggerEnter(),f.current=!0)}),onPointerLeave:z(e.onPointerLeave,()=>{o.onTriggerLeave(),f.current=!1}),onPointerDown:z(e.onPointerDown,()=>{o.open&&o.onClose(),d.current=!0,document.addEventListener("pointerup",p,{once:!0})}),onFocus:z(e.onFocus,()=>{d.current||o.onOpen()}),onBlur:z(e.onBlur,o.onClose),onClick:z(e.onClick,o.onClose)})})});Es.displayName=mn;var hn="TooltipPortal",[qf,Xf]=dr(hn,{forceMount:void 0}),Rs=e=>{const{__scopeTooltip:t,forceMount:r,children:n,container:o}=e,a=wt(hn,t);return u.jsx(qf,{scope:t,forceMount:r,children:u.jsx(he,{present:r||a.open,children:u.jsx(gt,{asChild:!0,container:o,children:n})})})};Rs.displayName=hn;var st="TooltipContent",_s=l.forwardRef((e,t)=>{const r=Xf(st,e.__scopeTooltip),{forceMount:n=r.forceMount,side:o="top",...a}=e,s=wt(st,e.__scopeTooltip);return u.jsx(he,{present:n||s.open,children:s.disableHoverableContent?u.jsx(Ns,{side:o,...a,ref:t}):u.jsx(Zf,{side:o,...a,ref:t})})}),Zf=l.forwardRef((e,t)=>{const r=wt(st,e.__scopeTooltip),n=pn(st,e.__scopeTooltip),o=l.useRef(null),a=ne(t,o),[s,i]=l.useState(null),{trigger:c,onClose:d}=r,f=o.current,{onPointerInTransitChange:p}=n,g=l.useCallback(()=>{i(null),p(!1)},[p]),h=l.useCallback((v,m)=>{const b=v.currentTarget,x={x:v.clientX,y:v.clientY},y=tp(x,b.getBoundingClientRect()),w=rp(x,y),C=np(m.getBoundingClientRect()),E=ap([...w,...C]);i(E),p(!0)},[p]);return l.useEffect(()=>()=>g(),[g]),l.useEffect(()=>{if(c&&f){const v=b=>h(b,f),m=b=>h(b,c);return c.addEventListener("pointerleave",v),f.addEventListener("pointerleave",m),()=>{c.removeEventListener("pointerleave",v),f.removeEventListener("pointerleave",m)}}},[c,f,h,g]),l.useEffect(()=>{if(s){const v=m=>{const b=m.target,x={x:m.clientX,y:m.clientY},y=(c==null?void 0:c.contains(b))||(f==null?void 0:f.contains(b)),w=!op(x,s);y?g():w&&(g(),d())};return document.addEventListener("pointermove",v),()=>document.removeEventListener("pointermove",v)}},[c,f,s,d,g]),u.jsx(Ns,{...e,ref:a})}),[Jf,Qf]=dr(yt,{isInside:!1}),ep=cl("TooltipContent"),Ns=l.forwardRef((e,t)=>{const{__scopeTooltip:r,children:n,"aria-label":o,onEscapeKeyDown:a,onPointerDownOutside:s,...i}=e,c=wt(st,r),d=fr(r),{onClose:f}=c;return l.useEffect(()=>(document.addEventListener(fn,f),()=>document.removeEventListener(fn,f)),[f]),l.useEffect(()=>{if(c.trigger){const p=g=>{const h=g.target;h!=null&&h.contains(c.trigger)&&f()};return window.addEventListener("scroll",p,{capture:!0}),()=>window.removeEventListener("scroll",p,{capture:!0})}},[c.trigger,f]),u.jsx(ht,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:s,onFocusOutside:p=>p.preventDefault(),onDismiss:f,children:u.jsxs(un,{"data-state":c.stateAttribute,...d,...i,ref:t,style:{...i.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[u.jsx(ep,{children:n}),u.jsx(Jf,{scope:r,isInside:!0,children:u.jsx(Hf,{id:c.contentId,role:"tooltip",children:o||n})})]})})});_s.displayName=st;var Ps="TooltipArrow",Ts=l.forwardRef((e,t)=>{const{__scopeTooltip:r,...n}=e,o=fr(r);return Qf(Ps,r).isInside?null:u.jsx(dn,{...o,...n,ref:t})});Ts.displayName=Ps;function tp(e,t){const r=Math.abs(t.top-e.y),n=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x);switch(Math.min(r,n,o,a)){case a:return"left";case o:return"right";case r:return"top";case n:return"bottom";default:throw new Error("unreachable")}}function rp(e,t,r=5){const n=[];switch(t){case"top":n.push({x:e.x-r,y:e.y+r},{x:e.x+r,y:e.y+r});break;case"bottom":n.push({x:e.x-r,y:e.y-r},{x:e.x+r,y:e.y-r});break;case"left":n.push({x:e.x+r,y:e.y-r},{x:e.x+r,y:e.y+r});break;case"right":n.push({x:e.x-r,y:e.y-r},{x:e.x-r,y:e.y+r});break}return n}function np(e){const{top:t,right:r,bottom:n,left:o}=e;return[{x:o,y:t},{x:r,y:t},{x:r,y:n},{x:o,y:n}]}function op(e,t){const{x:r,y:n}=e;let o=!1;for(let a=0,s=t.length-1;a<t.length;s=a++){const i=t[a],c=t[s],d=i.x,f=i.y,p=c.x,g=c.y;f>n!=g>n&&r<(p-d)*(n-f)/(g-f)+d&&(o=!o)}return o}function ap(e){const t=e.slice();return t.sort((r,n)=>r.x<n.x?-1:r.x>n.x?1:r.y<n.y?-1:r.y>n.y?1:0),sp(t)}function sp(e){if(e.length<=1)return e.slice();const t=[];for(let n=0;n<e.length;n++){const o=e[n];for(;t.length>=2;){const a=t[t.length-1],s=t[t.length-2];if((a.x-s.x)*(o.y-s.y)>=(a.y-s.y)*(o.x-s.x))t.pop();else break}t.push(o)}t.pop();const r=[];for(let n=e.length-1;n>=0;n--){const o=e[n];for(;r.length>=2;){const a=r[r.length-1],s=r[r.length-2];if((a.x-s.x)*(o.y-s.y)>=(a.y-s.y)*(o.x-s.x))r.pop();else break}r.push(o)}return r.pop(),t.length===1&&r.length===1&&t[0].x===r[0].x&&t[0].y===r[0].y?t:t.concat(r)}var ip=Cs,lp=ks,cp=Es,up=Rs,dp=_s,fp=Ts;function As({delayDuration:e=0,...t}){return u.jsx(ip,{"data-slot":"tooltip-provider",delayDuration:e,...t})}function pp({...e}){return u.jsx(As,{children:u.jsx(lp,{"data-slot":"tooltip",...e})})}function mp({...e}){return u.jsx(cp,{"data-slot":"tooltip-trigger",...e})}function hp({className:e,sideOffset:t=0,children:r,...n}){return u.jsx(up,{children:u.jsxs(dp,{"data-slot":"tooltip-content",sideOffset:t,className:j("bg-neutral-black-1 text-white animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 max-w-[362px]! origin-(--radix-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs",e),...n,children:[r,u.jsx(fp,{className:"bg-neutral-black-1 fill-foreground z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]"})]})})}const Is=({className:e,type:t,...r})=>u.jsx("input",{type:t,className:j("flex-1 h-10 bg-transparent outline-none placeholder:text-neutral-black-2 disabled:cursor-not-allowed disabled:opacity-50",e),...r}),gp=le("flex items-center rounded-lg border transition-colors p-2",{variants:{size:{small:"h-6 w-80 text-sm px-2",medium:"h-10 w-92 text-base px-3"},status:{default:"border-neutral-black-4 text-foreground focus-within:ring-2 focus-within:ring-neutral-black-2",error:"border-primary-2 text-primary-1 focus-within:ring-2 focus-within:ring-primary-2",disabled:"border-neutral-black-4 bg-neutral-black-4 text-neutral-black-2 cursor-not-allowed"}},defaultVariants:{size:"medium",status:"default"}}),js=({size:e,status:t,startSlot:r,endSlot:n,className:o,disabled:a,...s})=>u.jsxs("div",{className:j(gp({size:e,status:t}),o),children:[r&&u.jsx("span",{className:"mr-2 flex-shrink-0",children:r}),u.jsx(Is,{disabled:a,...s}),n&&u.jsx("span",{className:"ml-2 flex-shrink-0",children:n})]}),Os=({children:e,className:t,...r})=>e==null?null:u.jsx("label",{className:j("text-sm font-normal text-neutral-black-1",t),...r,children:e}),Ms=({label:e,helperText:t,errorText:r,startSlot:n,endSlot:o,size:a="medium",className:s,disabled:i=!1,...c})=>u.jsxs("div",{className:"flex flex-col gap-1",children:[u.jsx(Os,{children:e}),u.jsx(js,{size:a,status:r?"error":i?"disabled":"default",startSlot:n,endSlot:o,disabled:i,className:s,...c}),(t||r)&&u.jsx("p",{className:j("text-xs mt-1",r?"text-primary-1":"text-neutral-black-2"),children:r||t})]}),vp=({showForgot:e=!1,onValidityChange:t,customValidator:r,...n})=>{const[o,a]=ae.useState(!1),[s,i]=ae.useState(""),[c,d]=ae.useState(!1),p=r?r(s):(h=>[{label:"minimum 8 characters",isValid:h.length>=8},{label:"one uppercase character",isValid:/[A-Z]/.test(h)},{label:"one lowercase character",isValid:/[a-z]/.test(h)},{label:"one special character",isValid:/[^A-Za-z0-9]/.test(h)},{label:"one number",isValid:/\d/.test(h)}])(s),g=p.every(h=>h.isValid);return ae.useEffect(()=>{t&&t(g,p)},[s,g,p,t]),u.jsx("div",{className:"flex flex-col gap-2",children:u.jsxs("div",{className:"flex flex-col gap-2 w-full max-w-sm",children:[u.jsxs("div",{className:"flex justify-between items-center",children:[u.jsx("label",{className:"text-sm font-medium text-neutral-0",children:"Password"}),e&&u.jsx(Ot,{className:"text-xs text-neutral-0 hover:underline bg-transparent p-0 hover:bg-transparent",variant:"primary",children:"Forgot Password?"})]}),u.jsx(Ms,{type:o?"text":"password",value:s,onChange:h=>i(h.target.value),onFocus:()=>d(!0),...n,endSlot:u.jsx(Ot,{className:"text-xs text-neutral-0 hover:underline bg-transparent p-0 hover:bg-transparent",variant:"primary",onClick:()=>a(!o),children:o?u.jsx(Xc,{size:24,className:"text-neutral-black-2"}):u.jsx(Zc,{size:24,className:"text-neutral-black-2"})})}),u.jsx("div",{className:"grid grid-cols-2 gap-y-1 text-xs mt-3",children:p.map((h,v)=>u.jsxs("div",{className:"flex items-center gap-1",children:[u.jsx("div",{className:j("w-1.5 h-1.5 rounded-full transition-colors",h.isValid?"bg-success-1":c?"bg-primary-1":"bg-neutral-black-2")}),u.jsx("span",{className:j("transition-colors",h.isValid?"text-success-1":c?"text-primary-1":"text-neutral-black-2"),children:h.label})]},v))})]})})},bp=e=>u.jsx(Ms,{type:"search",startSlot:u.jsx(Uo,{"data-testid":"search-icon",className:"w-4 h-4 text-input-placeholder text-neutral-black-2"}),placeholder:"Search...",...e});function Ds(e,[t,r]){return Math.min(r,Math.max(t,e))}var xp=[" ","Enter","ArrowUp","ArrowDown"],yp=[" ","Enter"],He="Select",[pr,mr,wp]=uo(He),[it,Ng]=de(He,[wp,at]),hr=at(),[Sp,De]=it(He),[Cp,kp]=it(He),Ls=e=>{const{__scopeSelect:t,children:r,open:n,defaultOpen:o,onOpenChange:a,value:s,defaultValue:i,onValueChange:c,dir:d,name:f,autoComplete:p,disabled:g,required:h,form:v}=e,m=hr(t),[b,x]=l.useState(null),[y,w]=l.useState(null),[C,E]=l.useState(!1),T=$t(d),[_,R]=ye({prop:n,defaultProp:o??!1,onChange:a,caller:He}),[G,K]=ye({prop:s,defaultProp:i,onChange:c,caller:He}),X=l.useRef(null),Q=b?v||!!b.closest("form"):!0,[ee,W]=l.useState(new Set),q=Array.from(ee).map($=>$.props.value).join(";");return u.jsx(cn,{...m,children:u.jsxs(Sp,{required:h,scope:t,trigger:b,onTriggerChange:x,valueNode:y,onValueNodeChange:w,valueNodeHasChildren:C,onValueNodeHasChildrenChange:E,contentId:ce(),value:G,onValueChange:K,open:_,onOpenChange:R,dir:T,triggerPointerDownPosRef:X,disabled:g,children:[u.jsx(pr.Provider,{scope:t,children:u.jsx(Cp,{scope:e.__scopeSelect,onNativeOptionAdd:l.useCallback($=>{W(H=>new Set(H).add($))},[]),onNativeOptionRemove:l.useCallback($=>{W(H=>{const N=new Set(H);return N.delete($),N})},[]),children:r})}),Q?u.jsxs(ii,{"aria-hidden":!0,required:h,tabIndex:-1,name:f,autoComplete:p,value:G,onChange:$=>K($.target.value),disabled:g,form:v,children:[G===void 0?u.jsx("option",{value:""}):null,Array.from(ee)]},q):null]})})};Ls.displayName=He;var $s="SelectTrigger",Fs=l.forwardRef((e,t)=>{const{__scopeSelect:r,disabled:n=!1,...o}=e,a=hr(r),s=De($s,r),i=s.disabled||n,c=ne(t,s.onTriggerChange),d=mr(r),f=l.useRef("touch"),[p,g,h]=ci(m=>{const b=d().filter(w=>!w.disabled),x=b.find(w=>w.value===s.value),y=ui(b,m,x);y!==void 0&&s.onValueChange(y.value)}),v=m=>{i||(s.onOpenChange(!0),h()),m&&(s.triggerPointerDownPosRef.current={x:Math.round(m.pageX),y:Math.round(m.pageY)})};return u.jsx(ur,{asChild:!0,...a,children:u.jsx(V.button,{type:"button",role:"combobox","aria-controls":s.contentId,"aria-expanded":s.open,"aria-required":s.required,"aria-autocomplete":"none",dir:s.dir,"data-state":s.open?"open":"closed",disabled:i,"data-disabled":i?"":void 0,"data-placeholder":li(s.value)?"":void 0,...o,ref:c,onClick:z(o.onClick,m=>{m.currentTarget.focus(),f.current!=="mouse"&&v(m)}),onPointerDown:z(o.onPointerDown,m=>{f.current=m.pointerType;const b=m.target;b.hasPointerCapture(m.pointerId)&&b.releasePointerCapture(m.pointerId),m.button===0&&m.ctrlKey===!1&&m.pointerType==="mouse"&&(v(m),m.preventDefault())}),onKeyDown:z(o.onKeyDown,m=>{const b=p.current!=="";!(m.ctrlKey||m.altKey||m.metaKey)&&m.key.length===1&&g(m.key),!(b&&m.key===" ")&&xp.includes(m.key)&&(v(),m.preventDefault())})})})});Fs.displayName=$s;var Vs="SelectValue",Bs=l.forwardRef((e,t)=>{const{__scopeSelect:r,className:n,style:o,children:a,placeholder:s="",...i}=e,c=De(Vs,r),{onValueNodeHasChildrenChange:d}=c,f=a!==void 0,p=ne(t,c.onValueNodeChange);return ie(()=>{d(f)},[d,f]),u.jsx(V.span,{...i,ref:p,style:{pointerEvents:"none"},children:li(c.value)?u.jsx(u.Fragment,{children:s}):a})});Bs.displayName=Vs;var Ep="SelectIcon",zs=l.forwardRef((e,t)=>{const{__scopeSelect:r,children:n,...o}=e;return u.jsx(V.span,{"aria-hidden":!0,...o,ref:t,children:n||"▼"})});zs.displayName=Ep;var Rp="SelectPortal",Ws=e=>u.jsx(gt,{asChild:!0,...e});Ws.displayName=Rp;var Ue="SelectContent",Gs=l.forwardRef((e,t)=>{const r=De(Ue,e.__scopeSelect),[n,o]=l.useState();if(ie(()=>{o(new DocumentFragment)},[]),!r.open){const a=n;return a?Tt.createPortal(u.jsx(Hs,{scope:e.__scopeSelect,children:u.jsx(pr.Slot,{scope:e.__scopeSelect,children:u.jsx("div",{children:e.children})})}),a):null}return u.jsx(Us,{...e,ref:t})});Gs.displayName=Ue;var xe=10,[Hs,Le]=it(Ue),_p="SelectContentImpl",Np=Be("SelectContent.RemoveScroll"),Us=l.forwardRef((e,t)=>{const{__scopeSelect:r,position:n="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:a,onPointerDownOutside:s,side:i,sideOffset:c,align:d,alignOffset:f,arrowPadding:p,collisionBoundary:g,collisionPadding:h,sticky:v,hideWhenDetached:m,avoidCollisions:b,...x}=e,y=De(Ue,r),[w,C]=l.useState(null),[E,T]=l.useState(null),_=ne(t,P=>C(P)),[R,G]=l.useState(null),[K,X]=l.useState(null),Q=mr(r),[ee,W]=l.useState(!1),q=l.useRef(!1);l.useEffect(()=>{if(w)return Gr(w)},[w]),$r();const $=l.useCallback(P=>{const[F,...U]=Q().map(oe=>oe.ref.current),[Z]=U.slice(-1),re=document.activeElement;for(const oe of P)if(oe===re||(oe==null||oe.scrollIntoView({block:"nearest"}),oe===F&&E&&(E.scrollTop=0),oe===Z&&E&&(E.scrollTop=E.scrollHeight),oe==null||oe.focus(),document.activeElement!==re))return},[Q,E]),H=l.useCallback(()=>$([R,w]),[$,R,w]);l.useEffect(()=>{ee&&H()},[ee,H]);const{onOpenChange:N,triggerPointerDownPosRef:te}=y;l.useEffect(()=>{if(w){let P={x:0,y:0};const F=Z=>{var re,oe;P={x:Math.abs(Math.round(Z.pageX)-(((re=te.current)==null?void 0:re.x)??0)),y:Math.abs(Math.round(Z.pageY)-(((oe=te.current)==null?void 0:oe.y)??0))}},U=Z=>{P.x<=10&&P.y<=10?Z.preventDefault():w.contains(Z.target)||N(!1),document.removeEventListener("pointermove",F),te.current=null};return te.current!==null&&(document.addEventListener("pointermove",F),document.addEventListener("pointerup",U,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",F),document.removeEventListener("pointerup",U,{capture:!0})}}},[w,N,te]),l.useEffect(()=>{const P=()=>N(!1);return window.addEventListener("blur",P),window.addEventListener("resize",P),()=>{window.removeEventListener("blur",P),window.removeEventListener("resize",P)}},[N]);const[k,B]=ci(P=>{const F=Q().filter(re=>!re.disabled),U=F.find(re=>re.ref.current===document.activeElement),Z=ui(F,P,U);Z&&setTimeout(()=>Z.ref.current.focus())}),S=l.useCallback((P,F,U)=>{const Z=!q.current&&!U;(y.value!==void 0&&y.value===F||Z)&&(G(P),Z&&(q.current=!0))},[y.value]),A=l.useCallback(()=>w==null?void 0:w.focus(),[w]),D=l.useCallback((P,F,U)=>{const Z=!q.current&&!U;(y.value!==void 0&&y.value===F||Z)&&X(P)},[y.value]),I=n==="popper"?gn:Ks,Y=I===gn?{side:i,sideOffset:c,align:d,alignOffset:f,arrowPadding:p,collisionBoundary:g,collisionPadding:h,sticky:v,hideWhenDetached:m,avoidCollisions:b}:{};return u.jsx(Hs,{scope:r,content:w,viewport:E,onViewportChange:T,itemRefCallback:S,selectedItem:R,onItemLeave:A,itemTextRefCallback:D,focusSelectedItem:H,selectedItemText:K,position:n,isPositioned:ee,searchRef:k,children:u.jsx(qt,{as:Np,allowPinchZoom:!0,children:u.jsx(Wt,{asChild:!0,trapped:y.open,onMountAutoFocus:P=>{P.preventDefault()},onUnmountAutoFocus:z(o,P=>{var F;(F=y.trigger)==null||F.focus({preventScroll:!0}),P.preventDefault()}),children:u.jsx(ht,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:a,onPointerDownOutside:s,onFocusOutside:P=>P.preventDefault(),onDismiss:()=>y.onOpenChange(!1),children:u.jsx(I,{role:"listbox",id:y.contentId,"data-state":y.open?"open":"closed",dir:y.dir,onContextMenu:P=>P.preventDefault(),...x,...Y,onPlaced:()=>W(!0),ref:_,style:{display:"flex",flexDirection:"column",outline:"none",...x.style},onKeyDown:z(x.onKeyDown,P=>{const F=P.ctrlKey||P.altKey||P.metaKey;if(P.key==="Tab"&&P.preventDefault(),!F&&P.key.length===1&&B(P.key),["ArrowUp","ArrowDown","Home","End"].includes(P.key)){let Z=Q().filter(re=>!re.disabled).map(re=>re.ref.current);if(["ArrowUp","End"].includes(P.key)&&(Z=Z.slice().reverse()),["ArrowUp","ArrowDown"].includes(P.key)){const re=P.target,oe=Z.indexOf(re);Z=Z.slice(oe+1)}setTimeout(()=>$(Z)),P.preventDefault()}})})})})})})});Us.displayName=_p;var Pp="SelectItemAlignedPosition",Ks=l.forwardRef((e,t)=>{const{__scopeSelect:r,onPlaced:n,...o}=e,a=De(Ue,r),s=Le(Ue,r),[i,c]=l.useState(null),[d,f]=l.useState(null),p=ne(t,_=>f(_)),g=mr(r),h=l.useRef(!1),v=l.useRef(!0),{viewport:m,selectedItem:b,selectedItemText:x,focusSelectedItem:y}=s,w=l.useCallback(()=>{if(a.trigger&&a.valueNode&&i&&d&&m&&b&&x){const _=a.trigger.getBoundingClientRect(),R=d.getBoundingClientRect(),G=a.valueNode.getBoundingClientRect(),K=x.getBoundingClientRect();if(a.dir!=="rtl"){const re=K.left-R.left,oe=G.left-re,me=_.left-oe,Re=_.width+me,_t=Math.max(Re,R.width),Nt=window.innerWidth-xe,Pt=Ds(oe,[xe,Math.max(xe,Nt-_t)]);i.style.minWidth=Re+"px",i.style.left=Pt+"px"}else{const re=R.right-K.right,oe=window.innerWidth-G.right-re,me=window.innerWidth-_.right-oe,Re=_.width+me,_t=Math.max(Re,R.width),Nt=window.innerWidth-xe,Pt=Ds(oe,[xe,Math.max(xe,Nt-_t)]);i.style.minWidth=Re+"px",i.style.right=Pt+"px"}const X=g(),Q=window.innerHeight-xe*2,ee=m.scrollHeight,W=window.getComputedStyle(d),q=parseInt(W.borderTopWidth,10),$=parseInt(W.paddingTop,10),H=parseInt(W.borderBottomWidth,10),N=parseInt(W.paddingBottom,10),te=q+$+ee+N+H,k=Math.min(b.offsetHeight*5,te),B=window.getComputedStyle(m),S=parseInt(B.paddingTop,10),A=parseInt(B.paddingBottom,10),D=_.top+_.height/2-xe,I=Q-D,Y=b.offsetHeight/2,P=b.offsetTop+Y,F=q+$+P,U=te-F;if(F<=D){const re=X.length>0&&b===X[X.length-1].ref.current;i.style.bottom="0px";const oe=d.clientHeight-m.offsetTop-m.offsetHeight,me=Math.max(I,Y+(re?A:0)+oe+H),Re=F+me;i.style.height=Re+"px"}else{const re=X.length>0&&b===X[0].ref.current;i.style.top="0px";const me=Math.max(D,q+m.offsetTop+(re?S:0)+Y)+U;i.style.height=me+"px",m.scrollTop=F-D+m.offsetTop}i.style.margin=`${xe}px 0`,i.style.minHeight=k+"px",i.style.maxHeight=Q+"px",n==null||n(),requestAnimationFrame(()=>h.current=!0)}},[g,a.trigger,a.valueNode,i,d,m,b,x,a.dir,n]);ie(()=>w(),[w]);const[C,E]=l.useState();ie(()=>{d&&E(window.getComputedStyle(d).zIndex)},[d]);const T=l.useCallback(_=>{_&&v.current===!0&&(w(),y==null||y(),v.current=!1)},[w,y]);return u.jsx(Ap,{scope:r,contentWrapper:i,shouldExpandOnScrollRef:h,onScrollButtonChange:T,children:u.jsx("div",{ref:c,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:C},children:u.jsx(V.div,{...o,ref:p,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});Ks.displayName=Pp;var Tp="SelectPopperPosition",gn=l.forwardRef((e,t)=>{const{__scopeSelect:r,align:n="start",collisionPadding:o=xe,...a}=e,s=hr(r);return u.jsx(un,{...s,...a,ref:t,align:n,collisionPadding:o,style:{boxSizing:"border-box",...a.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});gn.displayName=Tp;var[Ap,vn]=it(Ue,{}),bn="SelectViewport",Ys=l.forwardRef((e,t)=>{const{__scopeSelect:r,nonce:n,...o}=e,a=Le(bn,r),s=vn(bn,r),i=ne(t,a.onViewportChange),c=l.useRef(0);return u.jsxs(u.Fragment,{children:[u.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:n}),u.jsx(pr.Slot,{scope:r,children:u.jsx(V.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:i,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:z(o.onScroll,d=>{const f=d.currentTarget,{contentWrapper:p,shouldExpandOnScrollRef:g}=s;if(g!=null&&g.current&&p){const h=Math.abs(c.current-f.scrollTop);if(h>0){const v=window.innerHeight-xe*2,m=parseFloat(p.style.minHeight),b=parseFloat(p.style.height),x=Math.max(m,b);if(x<v){const y=x+h,w=Math.min(v,y),C=y-w;p.style.height=w+"px",p.style.bottom==="0px"&&(f.scrollTop=C>0?C:0,p.style.justifyContent="flex-end")}}}c.current=f.scrollTop})})})]})});Ys.displayName=bn;var qs="SelectGroup",[Ip,jp]=it(qs),Xs=l.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,o=ce();return u.jsx(Ip,{scope:r,id:o,children:u.jsx(V.div,{role:"group","aria-labelledby":o,...n,ref:t})})});Xs.displayName=qs;var Zs="SelectLabel",Js=l.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,o=jp(Zs,r);return u.jsx(V.div,{id:o.id,...n,ref:t})});Js.displayName=Zs;var gr="SelectItem",[Op,Qs]=it(gr),ei=l.forwardRef((e,t)=>{const{__scopeSelect:r,value:n,disabled:o=!1,textValue:a,...s}=e,i=De(gr,r),c=Le(gr,r),d=i.value===n,[f,p]=l.useState(a??""),[g,h]=l.useState(!1),v=ne(t,y=>{var w;return(w=c.itemRefCallback)==null?void 0:w.call(c,y,n,o)}),m=ce(),b=l.useRef("touch"),x=()=>{o||(i.onValueChange(n),i.onOpenChange(!1))};if(n==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return u.jsx(Op,{scope:r,value:n,disabled:o,textId:m,isSelected:d,onItemTextChange:l.useCallback(y=>{p(w=>w||((y==null?void 0:y.textContent)??"").trim())},[]),children:u.jsx(pr.ItemSlot,{scope:r,value:n,disabled:o,textValue:f,children:u.jsx(V.div,{role:"option","aria-labelledby":m,"data-highlighted":g?"":void 0,"aria-selected":d&&g,"data-state":d?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...s,ref:v,onFocus:z(s.onFocus,()=>h(!0)),onBlur:z(s.onBlur,()=>h(!1)),onClick:z(s.onClick,()=>{b.current!=="mouse"&&x()}),onPointerUp:z(s.onPointerUp,()=>{b.current==="mouse"&&x()}),onPointerDown:z(s.onPointerDown,y=>{b.current=y.pointerType}),onPointerMove:z(s.onPointerMove,y=>{var w;b.current=y.pointerType,o?(w=c.onItemLeave)==null||w.call(c):b.current==="mouse"&&y.currentTarget.focus({preventScroll:!0})}),onPointerLeave:z(s.onPointerLeave,y=>{var w;y.currentTarget===document.activeElement&&((w=c.onItemLeave)==null||w.call(c))}),onKeyDown:z(s.onKeyDown,y=>{var C;((C=c.searchRef)==null?void 0:C.current)!==""&&y.key===" "||(yp.includes(y.key)&&x(),y.key===" "&&y.preventDefault())})})})})});ei.displayName=gr;var St="SelectItemText",ti=l.forwardRef((e,t)=>{const{__scopeSelect:r,className:n,style:o,...a}=e,s=De(St,r),i=Le(St,r),c=Qs(St,r),d=kp(St,r),[f,p]=l.useState(null),g=ne(t,x=>p(x),c.onItemTextChange,x=>{var y;return(y=i.itemTextRefCallback)==null?void 0:y.call(i,x,c.value,c.disabled)}),h=f==null?void 0:f.textContent,v=l.useMemo(()=>u.jsx("option",{value:c.value,disabled:c.disabled,children:h},c.value),[c.disabled,c.value,h]),{onNativeOptionAdd:m,onNativeOptionRemove:b}=d;return ie(()=>(m(v),()=>b(v)),[m,b,v]),u.jsxs(u.Fragment,{children:[u.jsx(V.span,{id:c.textId,...a,ref:g}),c.isSelected&&s.valueNode&&!s.valueNodeHasChildren?Tt.createPortal(a.children,s.valueNode):null]})});ti.displayName=St;var ri="SelectItemIndicator",ni=l.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e;return Qs(ri,r).isSelected?u.jsx(V.span,{"aria-hidden":!0,...n,ref:t}):null});ni.displayName=ri;var xn="SelectScrollUpButton",oi=l.forwardRef((e,t)=>{const r=Le(xn,e.__scopeSelect),n=vn(xn,e.__scopeSelect),[o,a]=l.useState(!1),s=ne(t,n.onScrollButtonChange);return ie(()=>{if(r.viewport&&r.isPositioned){let i=function(){const d=c.scrollTop>0;a(d)};const c=r.viewport;return i(),c.addEventListener("scroll",i),()=>c.removeEventListener("scroll",i)}},[r.viewport,r.isPositioned]),o?u.jsx(si,{...e,ref:s,onAutoScroll:()=>{const{viewport:i,selectedItem:c}=r;i&&c&&(i.scrollTop=i.scrollTop-c.offsetHeight)}}):null});oi.displayName=xn;var yn="SelectScrollDownButton",ai=l.forwardRef((e,t)=>{const r=Le(yn,e.__scopeSelect),n=vn(yn,e.__scopeSelect),[o,a]=l.useState(!1),s=ne(t,n.onScrollButtonChange);return ie(()=>{if(r.viewport&&r.isPositioned){let i=function(){const d=c.scrollHeight-c.clientHeight,f=Math.ceil(c.scrollTop)<d;a(f)};const c=r.viewport;return i(),c.addEventListener("scroll",i),()=>c.removeEventListener("scroll",i)}},[r.viewport,r.isPositioned]),o?u.jsx(si,{...e,ref:s,onAutoScroll:()=>{const{viewport:i,selectedItem:c}=r;i&&c&&(i.scrollTop=i.scrollTop+c.offsetHeight)}}):null});ai.displayName=yn;var si=l.forwardRef((e,t)=>{const{__scopeSelect:r,onAutoScroll:n,...o}=e,a=Le("SelectScrollButton",r),s=l.useRef(null),i=mr(r),c=l.useCallback(()=>{s.current!==null&&(window.clearInterval(s.current),s.current=null)},[]);return l.useEffect(()=>()=>c(),[c]),ie(()=>{var f;const d=i().find(p=>p.ref.current===document.activeElement);(f=d==null?void 0:d.ref.current)==null||f.scrollIntoView({block:"nearest"})},[i]),u.jsx(V.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:z(o.onPointerDown,()=>{s.current===null&&(s.current=window.setInterval(n,50))}),onPointerMove:z(o.onPointerMove,()=>{var d;(d=a.onItemLeave)==null||d.call(a),s.current===null&&(s.current=window.setInterval(n,50))}),onPointerLeave:z(o.onPointerLeave,()=>{c()})})}),Mp="SelectSeparator",Dp=l.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e;return u.jsx(V.div,{"aria-hidden":!0,...n,ref:t})});Dp.displayName=Mp;var wn="SelectArrow",Lp=l.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,o=hr(r),a=De(wn,r),s=Le(wn,r);return a.open&&s.position==="popper"?u.jsx(dn,{...o,...n,ref:t}):null});Lp.displayName=wn;var $p="SelectBubbleInput",ii=l.forwardRef(({__scopeSelect:e,value:t,...r},n)=>{const o=l.useRef(null),a=ne(n,o),s=Mt(t);return l.useEffect(()=>{const i=o.current;if(!i)return;const c=window.HTMLSelectElement.prototype,f=Object.getOwnPropertyDescriptor(c,"value").set;if(s!==t&&f){const p=new Event("change",{bubbles:!0});f.call(i,t),i.dispatchEvent(p)}},[s,t]),u.jsx(V.select,{...r,style:{...ys,...r.style},ref:a,defaultValue:t})});ii.displayName=$p;function li(e){return e===""||e===void 0}function ci(e){const t=Ne(e),r=l.useRef(""),n=l.useRef(0),o=l.useCallback(s=>{const i=r.current+s;t(i),function c(d){r.current=d,window.clearTimeout(n.current),d!==""&&(n.current=window.setTimeout(()=>c(""),1e3))}(i)},[t]),a=l.useCallback(()=>{r.current="",window.clearTimeout(n.current)},[]);return l.useEffect(()=>()=>window.clearTimeout(n.current),[]),[r,o,a]}function ui(e,t,r){const o=t.length>1&&Array.from(t).every(d=>d===t[0])?t[0]:t,a=r?e.indexOf(r):-1;let s=Fp(e,Math.max(a,0));o.length===1&&(s=s.filter(d=>d!==r));const c=s.find(d=>d.textValue.toLowerCase().startsWith(o.toLowerCase()));return c!==r?c:void 0}function Fp(e,t){return e.map((r,n)=>e[(t+n)%e.length])}var Vp=Ls,Bp=Fs,zp=Bs,Wp=zs,Gp=Ws,Hp=Gs,Up=Ys,Kp=Xs,Yp=Js,qp=ei,Xp=ti,Zp=ni,Jp=oi,Qp=ai;function em({...e}){return u.jsx(Vp,{"data-slot":"select",...e})}function tm({...e}){return u.jsx(Kp,{"data-slot":"select-group",...e})}function rm({...e}){return u.jsx(zp,{"data-slot":"select-value",...e})}function nm({className:e,size:t="default",children:r,...n}){return u.jsxs(Bp,{"data-slot":"select-trigger","data-size":t,className:j("border-input data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 dark:hover:bg-input/50 flex w-fit items-center justify-between gap-2 rounded-md border bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...n,children:[r,u.jsx(Wp,{asChild:!0,children:u.jsx(jr,{className:"size-4 opacity-50"})})]})}function om({className:e,children:t,position:r="popper",...n}){return u.jsx(Gp,{children:u.jsxs(Hp,{"data-slot":"select-content",className:j("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border shadow-md",r==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:r,...n,children:[u.jsx(sm,{}),u.jsx(Up,{className:j("p-1",r==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"),children:t}),u.jsx(im,{})]})})}function am({className:e,...t}){return u.jsx(Yp,{"data-slot":"select-label",className:j("text-muted-foreground px-2 py-1.5 text-xs",e),...t})}function di({className:e,children:t,...r}){return u.jsxs(qp,{"data-slot":"select-item",className:j("focus:bg-accent focus:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",e),...r,children:[u.jsx("span",{className:"absolute right-2 flex size-3.5 items-center justify-center",children:u.jsx(Zp,{children:u.jsx(Ho,{className:"size-4"})})}),u.jsx(Xp,{children:t})]})}function sm({className:e,...t}){return u.jsx(Jp,{"data-slot":"select-scroll-up-button",className:j("flex cursor-default items-center justify-center py-1",e),...t,children:u.jsx(Yc,{className:"size-4"})})}function im({className:e,...t}){return u.jsx(Qp,{"data-slot":"select-scroll-down-button",className:j("flex cursor-default items-center justify-center py-1",e),...t,children:u.jsx(jr,{className:"size-4"})})}var vr="Popover",[fi,Pg]=de(vr,[at]),Ct=at(),[lm,$e]=fi(vr),pi=e=>{const{__scopePopover:t,children:r,open:n,defaultOpen:o,onOpenChange:a,modal:s=!1}=e,i=Ct(t),c=l.useRef(null),[d,f]=l.useState(!1),[p,g]=ye({prop:n,defaultProp:o??!1,onChange:a,caller:vr});return u.jsx(cn,{...i,children:u.jsx(lm,{scope:t,contentId:ce(),triggerRef:c,open:p,onOpenChange:g,onOpenToggle:l.useCallback(()=>g(h=>!h),[g]),hasCustomAnchor:d,onCustomAnchorAdd:l.useCallback(()=>f(!0),[]),onCustomAnchorRemove:l.useCallback(()=>f(!1),[]),modal:s,children:r})})};pi.displayName=vr;var mi="PopoverAnchor",cm=l.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=$e(mi,r),a=Ct(r),{onCustomAnchorAdd:s,onCustomAnchorRemove:i}=o;return l.useEffect(()=>(s(),()=>i()),[s,i]),u.jsx(ur,{...a,...n,ref:t})});cm.displayName=mi;var hi="PopoverTrigger",gi=l.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=$e(hi,r),a=Ct(r),s=ne(t,o.triggerRef),i=u.jsx(V.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":wi(o.open),...n,ref:s,onClick:z(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?i:u.jsx(ur,{asChild:!0,...a,children:i})});gi.displayName=hi;var Sn="PopoverPortal",[um,dm]=fi(Sn,{forceMount:void 0}),vi=e=>{const{__scopePopover:t,forceMount:r,children:n,container:o}=e,a=$e(Sn,t);return u.jsx(um,{scope:t,forceMount:r,children:u.jsx(he,{present:r||a.open,children:u.jsx(gt,{asChild:!0,container:o,children:n})})})};vi.displayName=Sn;var lt="PopoverContent",bi=l.forwardRef((e,t)=>{const r=dm(lt,e.__scopePopover),{forceMount:n=r.forceMount,...o}=e,a=$e(lt,e.__scopePopover);return u.jsx(he,{present:n||a.open,children:a.modal?u.jsx(pm,{...o,ref:t}):u.jsx(mm,{...o,ref:t})})});bi.displayName=lt;var fm=Be("PopoverContent.RemoveScroll"),pm=l.forwardRef((e,t)=>{const r=$e(lt,e.__scopePopover),n=l.useRef(null),o=ne(t,n),a=l.useRef(!1);return l.useEffect(()=>{const s=n.current;if(s)return Gr(s)},[]),u.jsx(qt,{as:fm,allowPinchZoom:!0,children:u.jsx(xi,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:z(e.onCloseAutoFocus,s=>{var i;s.preventDefault(),a.current||(i=r.triggerRef.current)==null||i.focus()}),onPointerDownOutside:z(e.onPointerDownOutside,s=>{const i=s.detail.originalEvent,c=i.button===0&&i.ctrlKey===!0,d=i.button===2||c;a.current=d},{checkForDefaultPrevented:!1}),onFocusOutside:z(e.onFocusOutside,s=>s.preventDefault(),{checkForDefaultPrevented:!1})})})}),mm=l.forwardRef((e,t)=>{const r=$e(lt,e.__scopePopover),n=l.useRef(!1),o=l.useRef(!1);return u.jsx(xi,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{var s,i;(s=e.onCloseAutoFocus)==null||s.call(e,a),a.defaultPrevented||(n.current||(i=r.triggerRef.current)==null||i.focus(),a.preventDefault()),n.current=!1,o.current=!1},onInteractOutside:a=>{var c,d;(c=e.onInteractOutside)==null||c.call(e,a),a.defaultPrevented||(n.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const s=a.target;((d=r.triggerRef.current)==null?void 0:d.contains(s))&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),xi=l.forwardRef((e,t)=>{const{__scopePopover:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:a,disableOutsidePointerEvents:s,onEscapeKeyDown:i,onPointerDownOutside:c,onFocusOutside:d,onInteractOutside:f,...p}=e,g=$e(lt,r),h=Ct(r);return $r(),u.jsx(Wt,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:a,children:u.jsx(ht,{asChild:!0,disableOutsidePointerEvents:s,onInteractOutside:f,onEscapeKeyDown:i,onPointerDownOutside:c,onFocusOutside:d,onDismiss:()=>g.onOpenChange(!1),children:u.jsx(un,{"data-state":wi(g.open),role:"dialog",id:g.contentId,...h,...p,ref:t,style:{...p.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),yi="PopoverClose",hm=l.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=$e(yi,r);return u.jsx(V.button,{type:"button",...n,ref:t,onClick:z(e.onClick,()=>o.onOpenChange(!1))})});hm.displayName=yi;var gm="PopoverArrow",vm=l.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=Ct(r);return u.jsx(dn,{...o,...n,ref:t})});vm.displayName=gm;function wi(e){return e?"open":"closed"}var bm=pi,xm=gi,ym=vi,wm=bi;function Sm({...e}){return u.jsx(bm,{"data-slot":"popover",...e})}function Cm({...e}){return u.jsx(xm,{"data-slot":"popover-trigger",...e})}function km({className:e,align:t="center",sideOffset:r=4,...n}){return u.jsx(ym,{children:u.jsx(wm,{"data-slot":"popover-content",align:t,sideOffset:r,className:j("bg-white text-black data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden",e),...n})})}var Si=1,Em=.9,Rm=.8,_m=.17,Cn=.1,kn=.999,Nm=.9999,Pm=.99,Tm=/[\\\/_+.#"@\[\(\{&]/,Am=/[\\\/_+.#"@\[\(\{&]/g,Im=/[\s-]/,Ci=/[\s-]/g;function En(e,t,r,n,o,a,s){if(a===t.length)return o===e.length?Si:Pm;var i=`${o},${a}`;if(s[i]!==void 0)return s[i];for(var c=n.charAt(a),d=r.indexOf(c,o),f=0,p,g,h,v;d>=0;)p=En(e,t,r,n,d+1,a+1,s),p>f&&(d===o?p*=Si:Tm.test(e.charAt(d-1))?(p*=Rm,h=e.slice(o,d-1).match(Am),h&&o>0&&(p*=Math.pow(kn,h.length))):Im.test(e.charAt(d-1))?(p*=Em,v=e.slice(o,d-1).match(Ci),v&&o>0&&(p*=Math.pow(kn,v.length))):(p*=_m,o>0&&(p*=Math.pow(kn,d-o))),e.charAt(d)!==t.charAt(a)&&(p*=Nm)),(p<Cn&&r.charAt(d-1)===n.charAt(a+1)||n.charAt(a+1)===n.charAt(a)&&r.charAt(d-1)!==n.charAt(a))&&(g=En(e,t,r,n,d+1,a+2,s),g*Cn>p&&(p=g*Cn)),p>f&&(f=p),d=r.indexOf(c,d+1);return s[i]=f,f}function ki(e){return e.toLowerCase().replace(Ci," ")}function jm(e,t,r){return e=r&&r.length>0?`${e+" "+r.join(" ")}`:e,En(e,t,ki(e),ki(t),0,0,{})}var kt='[cmdk-group=""]',Rn='[cmdk-group-items=""]',Om='[cmdk-group-heading=""]',Ei='[cmdk-item=""]',Ri=`${Ei}:not([aria-disabled="true"])`,_n="cmdk-item-select",ct="data-value",Mm=(e,t,r)=>jm(e,t,r),_i=l.createContext(void 0),Et=()=>l.useContext(_i),Ni=l.createContext(void 0),Nn=()=>l.useContext(Ni),Pi=l.createContext(void 0),Ti=l.forwardRef((e,t)=>{let r=ut(()=>{var S,A;return{search:"",value:(A=(S=e.value)!=null?S:e.defaultValue)!=null?A:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),n=ut(()=>new Set),o=ut(()=>new Map),a=ut(()=>new Map),s=ut(()=>new Set),i=Ai(e),{label:c,children:d,value:f,onValueChange:p,filter:g,shouldFilter:h,loop:v,disablePointerSelection:m=!1,vimBindings:b=!0,...x}=e,y=ce(),w=ce(),C=ce(),E=l.useRef(null),T=Um();Ke(()=>{if(f!==void 0){let S=f.trim();r.current.value=S,_.emit()}},[f]),Ke(()=>{T(6,ee)},[]);let _=l.useMemo(()=>({subscribe:S=>(s.current.add(S),()=>s.current.delete(S)),snapshot:()=>r.current,setState:(S,A,D)=>{var I,Y,P,F;if(!Object.is(r.current[S],A)){if(r.current[S]=A,S==="search")Q(),K(),T(1,X);else if(S==="value"){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let U=document.getElementById(C);U?U.focus():(I=document.getElementById(y))==null||I.focus()}if(T(7,()=>{var U;r.current.selectedItemId=(U=W())==null?void 0:U.id,_.emit()}),D||T(5,ee),((Y=i.current)==null?void 0:Y.value)!==void 0){let U=A??"";(F=(P=i.current).onValueChange)==null||F.call(P,U);return}}_.emit()}},emit:()=>{s.current.forEach(S=>S())}}),[]),R=l.useMemo(()=>({value:(S,A,D)=>{var I;A!==((I=a.current.get(S))==null?void 0:I.value)&&(a.current.set(S,{value:A,keywords:D}),r.current.filtered.items.set(S,G(A,D)),T(2,()=>{K(),_.emit()}))},item:(S,A)=>(n.current.add(S),A&&(o.current.has(A)?o.current.get(A).add(S):o.current.set(A,new Set([S]))),T(3,()=>{Q(),K(),r.current.value||X(),_.emit()}),()=>{a.current.delete(S),n.current.delete(S),r.current.filtered.items.delete(S);let D=W();T(4,()=>{Q(),(D==null?void 0:D.getAttribute("id"))===S&&X(),_.emit()})}),group:S=>(o.current.has(S)||o.current.set(S,new Set),()=>{a.current.delete(S),o.current.delete(S)}),filter:()=>i.current.shouldFilter,label:c||e["aria-label"],getDisablePointerSelection:()=>i.current.disablePointerSelection,listId:y,inputId:C,labelId:w,listInnerRef:E}),[]);function G(S,A){var D,I;let Y=(I=(D=i.current)==null?void 0:D.filter)!=null?I:Mm;return S?Y(S,r.current.search,A):0}function K(){if(!r.current.search||i.current.shouldFilter===!1)return;let S=r.current.filtered.items,A=[];r.current.filtered.groups.forEach(I=>{let Y=o.current.get(I),P=0;Y.forEach(F=>{let U=S.get(F);P=Math.max(U,P)}),A.push([I,P])});let D=E.current;q().sort((I,Y)=>{var P,F;let U=I.getAttribute("id"),Z=Y.getAttribute("id");return((P=S.get(Z))!=null?P:0)-((F=S.get(U))!=null?F:0)}).forEach(I=>{let Y=I.closest(Rn);Y?Y.appendChild(I.parentElement===Y?I:I.closest(`${Rn} > *`)):D.appendChild(I.parentElement===D?I:I.closest(`${Rn} > *`))}),A.sort((I,Y)=>Y[1]-I[1]).forEach(I=>{var Y;let P=(Y=E.current)==null?void 0:Y.querySelector(`${kt}[${ct}="${encodeURIComponent(I[0])}"]`);P==null||P.parentElement.appendChild(P)})}function X(){let S=q().find(D=>D.getAttribute("aria-disabled")!=="true"),A=S==null?void 0:S.getAttribute(ct);_.setState("value",A||void 0)}function Q(){var S,A,D,I;if(!r.current.search||i.current.shouldFilter===!1){r.current.filtered.count=n.current.size;return}r.current.filtered.groups=new Set;let Y=0;for(let P of n.current){let F=(A=(S=a.current.get(P))==null?void 0:S.value)!=null?A:"",U=(I=(D=a.current.get(P))==null?void 0:D.keywords)!=null?I:[],Z=G(F,U);r.current.filtered.items.set(P,Z),Z>0&&Y++}for(let[P,F]of o.current)for(let U of F)if(r.current.filtered.items.get(U)>0){r.current.filtered.groups.add(P);break}r.current.filtered.count=Y}function ee(){var S,A,D;let I=W();I&&(((S=I.parentElement)==null?void 0:S.firstChild)===I&&((D=(A=I.closest(kt))==null?void 0:A.querySelector(Om))==null||D.scrollIntoView({block:"nearest"})),I.scrollIntoView({block:"nearest"}))}function W(){var S;return(S=E.current)==null?void 0:S.querySelector(`${Ei}[aria-selected="true"]`)}function q(){var S;return Array.from(((S=E.current)==null?void 0:S.querySelectorAll(Ri))||[])}function $(S){let A=q()[S];A&&_.setState("value",A.getAttribute(ct))}function H(S){var A;let D=W(),I=q(),Y=I.findIndex(F=>F===D),P=I[Y+S];(A=i.current)!=null&&A.loop&&(P=Y+S<0?I[I.length-1]:Y+S===I.length?I[0]:I[Y+S]),P&&_.setState("value",P.getAttribute(ct))}function N(S){let A=W(),D=A==null?void 0:A.closest(kt),I;for(;D&&!I;)D=S>0?Gm(D,kt):Hm(D,kt),I=D==null?void 0:D.querySelector(Ri);I?_.setState("value",I.getAttribute(ct)):H(S)}let te=()=>$(q().length-1),k=S=>{S.preventDefault(),S.metaKey?te():S.altKey?N(1):H(1)},B=S=>{S.preventDefault(),S.metaKey?$(0):S.altKey?N(-1):H(-1)};return l.createElement(V.div,{ref:t,tabIndex:-1,...x,"cmdk-root":"",onKeyDown:S=>{var A;(A=x.onKeyDown)==null||A.call(x,S);let D=S.nativeEvent.isComposing||S.keyCode===229;if(!(S.defaultPrevented||D))switch(S.key){case"n":case"j":{b&&S.ctrlKey&&k(S);break}case"ArrowDown":{k(S);break}case"p":case"k":{b&&S.ctrlKey&&B(S);break}case"ArrowUp":{B(S);break}case"Home":{S.preventDefault(),$(0);break}case"End":{S.preventDefault(),te();break}case"Enter":{S.preventDefault();let I=W();if(I){let Y=new Event(_n);I.dispatchEvent(Y)}}}}},l.createElement("label",{"cmdk-label":"",htmlFor:R.inputId,id:R.labelId,style:Ym},c),br(e,S=>l.createElement(Ni.Provider,{value:_},l.createElement(_i.Provider,{value:R},S))))}),Dm=l.forwardRef((e,t)=>{var r,n;let o=ce(),a=l.useRef(null),s=l.useContext(Pi),i=Et(),c=Ai(e),d=(n=(r=c.current)==null?void 0:r.forceMount)!=null?n:s==null?void 0:s.forceMount;Ke(()=>{if(!d)return i.item(o,s==null?void 0:s.id)},[d]);let f=Ii(o,a,[e.value,e.children,a],e.keywords),p=Nn(),g=Fe(T=>T.value&&T.value===f.current),h=Fe(T=>d||i.filter()===!1?!0:T.search?T.filtered.items.get(o)>0:!0);l.useEffect(()=>{let T=a.current;if(!(!T||e.disabled))return T.addEventListener(_n,v),()=>T.removeEventListener(_n,v)},[h,e.onSelect,e.disabled]);function v(){var T,_;m(),(_=(T=c.current).onSelect)==null||_.call(T,f.current)}function m(){p.setState("value",f.current,!0)}if(!h)return null;let{disabled:b,value:x,onSelect:y,forceMount:w,keywords:C,...E}=e;return l.createElement(V.div,{ref:Ve(a,t),...E,id:o,"cmdk-item":"",role:"option","aria-disabled":!!b,"aria-selected":!!g,"data-disabled":!!b,"data-selected":!!g,onPointerMove:b||i.getDisablePointerSelection()?void 0:m,onClick:b?void 0:v},e.children)}),Lm=l.forwardRef((e,t)=>{let{heading:r,children:n,forceMount:o,...a}=e,s=ce(),i=l.useRef(null),c=l.useRef(null),d=ce(),f=Et(),p=Fe(h=>o||f.filter()===!1?!0:h.search?h.filtered.groups.has(s):!0);Ke(()=>f.group(s),[]),Ii(s,i,[e.value,e.heading,c]);let g=l.useMemo(()=>({id:s,forceMount:o}),[o]);return l.createElement(V.div,{ref:Ve(i,t),...a,"cmdk-group":"",role:"presentation",hidden:p?void 0:!0},r&&l.createElement("div",{ref:c,"cmdk-group-heading":"","aria-hidden":!0,id:d},r),br(e,h=>l.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":r?d:void 0},l.createElement(Pi.Provider,{value:g},h))))}),$m=l.forwardRef((e,t)=>{let{alwaysRender:r,...n}=e,o=l.useRef(null),a=Fe(s=>!s.search);return!r&&!a?null:l.createElement(V.div,{ref:Ve(o,t),...n,"cmdk-separator":"",role:"separator"})}),Fm=l.forwardRef((e,t)=>{let{onValueChange:r,...n}=e,o=e.value!=null,a=Nn(),s=Fe(d=>d.search),i=Fe(d=>d.selectedItemId),c=Et();return l.useEffect(()=>{e.value!=null&&a.setState("search",e.value)},[e.value]),l.createElement(V.input,{ref:t,...n,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":c.listId,"aria-labelledby":c.labelId,"aria-activedescendant":i,id:c.inputId,type:"text",value:o?e.value:s,onChange:d=>{o||a.setState("search",d.target.value),r==null||r(d.target.value)}})}),Vm=l.forwardRef((e,t)=>{let{children:r,label:n="Suggestions",...o}=e,a=l.useRef(null),s=l.useRef(null),i=Fe(d=>d.selectedItemId),c=Et();return l.useEffect(()=>{if(s.current&&a.current){let d=s.current,f=a.current,p,g=new ResizeObserver(()=>{p=requestAnimationFrame(()=>{let h=d.offsetHeight;f.style.setProperty("--cmdk-list-height",h.toFixed(1)+"px")})});return g.observe(d),()=>{cancelAnimationFrame(p),g.unobserve(d)}}},[]),l.createElement(V.div,{ref:Ve(a,t),...o,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":i,"aria-label":n,id:c.listId},br(e,d=>l.createElement("div",{ref:Ve(s,c.listInnerRef),"cmdk-list-sizer":""},d)))}),Bm=l.forwardRef((e,t)=>{let{open:r,onOpenChange:n,overlayClassName:o,contentClassName:a,container:s,...i}=e;return l.createElement(Ma,{open:r,onOpenChange:n},l.createElement(Da,{container:s},l.createElement(La,{"cmdk-overlay":"",className:o}),l.createElement($a,{"aria-label":e.label,"cmdk-dialog":"",className:a},l.createElement(Ti,{ref:t,...i}))))}),zm=l.forwardRef((e,t)=>Fe(r=>r.filtered.count===0)?l.createElement(V.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null),Wm=l.forwardRef((e,t)=>{let{progress:r,children:n,label:o="Loading...",...a}=e;return l.createElement(V.div,{ref:t,...a,"cmdk-loading":"",role:"progressbar","aria-valuenow":r,"aria-valuemin":0,"aria-valuemax":100,"aria-label":o},br(e,s=>l.createElement("div",{"aria-hidden":!0},s)))}),Rt=Object.assign(Ti,{List:Vm,Item:Dm,Input:Fm,Group:Lm,Separator:$m,Dialog:Bm,Empty:zm,Loading:Wm});function Gm(e,t){let r=e.nextElementSibling;for(;r;){if(r.matches(t))return r;r=r.nextElementSibling}}function Hm(e,t){let r=e.previousElementSibling;for(;r;){if(r.matches(t))return r;r=r.previousElementSibling}}function Ai(e){let t=l.useRef(e);return Ke(()=>{t.current=e}),t}var Ke=typeof window>"u"?l.useEffect:l.useLayoutEffect;function ut(e){let t=l.useRef();return t.current===void 0&&(t.current=e()),t}function Fe(e){let t=Nn(),r=()=>e(t.snapshot());return l.useSyncExternalStore(t.subscribe,r,r)}function Ii(e,t,r,n=[]){let o=l.useRef(),a=Et();return Ke(()=>{var s;let i=(()=>{var d;for(let f of r){if(typeof f=="string")return f.trim();if(typeof f=="object"&&"current"in f)return f.current?(d=f.current.textContent)==null?void 0:d.trim():o.current}})(),c=n.map(d=>d.trim());a.value(e,i,c),(s=t.current)==null||s.setAttribute(ct,i),o.current=i}),o}var Um=()=>{let[e,t]=l.useState(),r=ut(()=>new Map);return Ke(()=>{r.current.forEach(n=>n()),r.current=new Map},[e]),(n,o)=>{r.current.set(n,o),t({})}};function Km(e){let t=e.type;return typeof t=="function"?t(e.props):"render"in t?t.render(e.props):e}function br({asChild:e,children:t},r){return e&&l.isValidElement(t)?l.cloneElement(Km(t),{ref:t.ref},r(t.props.children)):r(t)}var Ym={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};function qm({className:e,...t}){return u.jsx(Rt,{"data-slot":"command",className:j("bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",e),...t})}function Xm({className:e,...t}){return u.jsxs("div",{"data-slot":"command-input-wrapper",className:"flex h-9 items-center gap-2 border-b px-3",children:[u.jsx(Uo,{className:"size-4 shrink-0 opacity-50"}),u.jsx(Rt.Input,{"data-slot":"command-input",className:j("placeholder:text-muted-foreground flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50",e),...t})]})}function Zm({...e}){return u.jsx(Rt.Empty,{"data-slot":"command-empty",className:"py-6 text-center text-sm",...e})}function ji({className:e,...t}){return u.jsx(Rt.Group,{"data-slot":"command-group",className:j("text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium",e),...t})}function Oi({className:e,...t}){return u.jsx(Rt.Item,{"data-slot":"command-item",className:j("data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...t})}function Pn(e){return e.length>0&&e[0].kind==="group"}function Jm(e){return e.multiple?u.jsx(Di,{...e}):u.jsx(Mi,{...e})}const Mi=({options:e,placeholder:t="Select...",disabled:r,error:n,helperText:o,value:a,onChange:s})=>{const[i,c]=ae.useState(""),d=a??i,f=p=>{c(p),s==null||s(p)};return u.jsxs("div",{className:"w-94",children:[u.jsxs(em,{value:d,onValueChange:f,disabled:r,children:[u.jsx(nm,{"aria-invalid":!!n,className:j("flex w-full items-center justify-between rounded-md border bg-white px-3 py-2 text-sm",r&&"cursor-not-allowed bg-neutral-black-4 border border-neutral-black-4 rounded",n?"border-primary-1":"border-neutral-black-4"),children:u.jsx(rm,{placeholder:t})}),u.jsx(om,{className:"w-full bg-white border border-neutral-black-4",children:Pn(e)?e.map(p=>u.jsxs(tm,{className:"p-2",children:[u.jsx(am,{children:p.label}),p.options.map(g=>u.jsx(di,{value:g.value,disabled:g.disabled,children:g.label},g.value))]},p.label)):e.map(p=>u.jsx(di,{value:p.value,disabled:p.disabled,className:"hover:cursor-pointer hover:bg-neutral-black-5",children:p.label},p.value))})]}),n&&u.jsx("p",{className:"mt-1 text-xs text-primary-1",children:n}),o&&u.jsx("p",{className:"mt-1 text-xs text-neutral-black-3",children:o})]})},Di=({options:e,placeholder:t="Select...",disabled:r,error:n,helperText:o,value:a,onChange:s})=>{const[i,c]=ae.useState(!1),[d,f]=ae.useState([]),p=a??d,g=ae.useMemo(()=>Pn(e)?e.flatMap(v=>v.options):e,[e]),h=v=>{const m=p.includes(v)?p.filter(b=>b!==v):[...p,v];f(m),s==null||s(m)};return u.jsxs("div",{className:"w-94",children:[u.jsxs(Sm,{open:i,onOpenChange:c,children:[u.jsx(Cm,{asChild:!0,children:u.jsxs("button",{type:"button",disabled:r,"aria-haspopup":"listbox","aria-expanded":i,className:j("flex w-full items-center justify-between rounded-md border bg-white px-3 py-2 text-sm",r&&"cursor-not-allowed bg-neutral-black-4 border border-neutral-black-4 rounded",n?"border-primary-1":"border-neutral-black-4"),children:[u.jsx("div",{className:"flex flex-wrap gap-1",children:p.length>0?p.map(v=>u.jsxs(Yr,{type:"outline",onClick:m=>{m.stopPropagation(),h(v)},className:"cursor-pointer border-neutral-black-4 bg-transparent hover:bg-neutral-black-4",children:[u.jsx("span",{className:"text-neutral-black-1",children:v}),u.jsx("div",{className:"flex items-center justify-center rounded-full border border-neutral-black-2 h-5 w-5 ml-1",children:u.jsx(Yo,{className:"h-3 w-3 text-neutral-black-1",strokeWidth:2})})]},v)):u.jsx("span",{className:"truncate text-xs text-neutral-black-1",children:t})}),u.jsx(jr,{className:"h-4 w-4 text-neutral-black-1"})]})}),u.jsx(km,{className:"p-0 w-full bg-white border border-neutral-black-4",children:u.jsxs(qm,{className:"w-full",children:[u.jsx(Xm,{placeholder:"Search..."}),u.jsx(Zm,{children:"No results found."}),Pn(e)?e.map(v=>u.jsx(ji,{heading:v.label,children:v.options.map(m=>u.jsxs(Oi,{value:m.label,onSelect:()=>!m.disabled&&h(m.value),disabled:m.disabled,children:[u.jsx("input",{type:"checkbox",readOnly:!0,checked:p.includes(m.value),className:"mr-2"}),m.label]},m.value))},v.label)):u.jsx(ji,{children:g.map(v=>u.jsxs(Oi,{value:v.label,onSelect:()=>!v.disabled&&h(v.value),disabled:v.disabled,children:[u.jsx("input",{type:"checkbox",readOnly:!0,checked:p.includes(v.value),className:"mr-2"}),v.label]},v.value))})]})})]}),n&&u.jsx("p",{className:"mt-1 text-xs text-primary-1",children:n}),o&&u.jsx("p",{className:"mt-1 text-xs text-neutral-black-3",children:o})]})},Qm=le("w-full",{variants:{variant:{"widget-1":"bg-white rounded-lg p-6 flex flex-col items-start gap-4 shadow-[0_0_8px_0_rgba(0,0,0,0.08),6px_0_0_0_var(--color-primary-1)_inset]","widget-2":"bg-white rounded-lg p-6 flex flex-col items-start gap-4 border border-neutral-black-4 shadow-[0_0_8px_0_rgba(0,0,0,0.08)]"}},defaultVariants:{variant:"widget-1"}});function eh({className:e,variant:t,asChild:r=!1,children:n,...o}){const a=r?At:"div";return u.jsx(a,{"data-slot":"card",className:j(Qm({variant:t}),e),...o,children:n})}var Tn={exports:{}},An={};/**
177
167
  * @license React
178
168
  * use-sync-external-store-shim.production.js
179
169
  *
@@ -181,7 +171,7 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
181
171
  *
182
172
  * This source code is licensed under the MIT license found in the
183
173
  * LICENSE file in the root directory of this source tree.
184
- */var Ai;function Wm(){if(Ai)return Pn;Ai=1;var e=ae;function t(p,g){return p===g&&(p!==0||1/p===1/g)||p!==p&&g!==g}var r=typeof Object.is=="function"?Object.is:t,n=e.useState,o=e.useEffect,a=e.useLayoutEffect,s=e.useDebugValue;function i(p,g){var h=g(),v=n({inst:{value:h,getSnapshot:g}}),m=v[0].inst,b=v[1];return a(function(){m.value=h,m.getSnapshot=g,c(m)&&b({inst:m})},[p,h,g]),o(function(){return c(m)&&b({inst:m}),p(function(){c(m)&&b({inst:m})})},[p]),s(h),h}function c(p){var g=p.getSnapshot;p=p.value;try{var h=g();return!r(p,h)}catch{return!0}}function d(p,g){return g()}var f=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?d:i;return Pn.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:f,Pn}var An={};/**
174
+ */var Li;function th(){if(Li)return An;Li=1;var e=ae;function t(p,g){return p===g&&(p!==0||1/p===1/g)||p!==p&&g!==g}var r=typeof Object.is=="function"?Object.is:t,n=e.useState,o=e.useEffect,a=e.useLayoutEffect,s=e.useDebugValue;function i(p,g){var h=g(),v=n({inst:{value:h,getSnapshot:g}}),m=v[0].inst,b=v[1];return a(function(){m.value=h,m.getSnapshot=g,c(m)&&b({inst:m})},[p,h,g]),o(function(){return c(m)&&b({inst:m}),p(function(){c(m)&&b({inst:m})})},[p]),s(h),h}function c(p){var g=p.getSnapshot;p=p.value;try{var h=g();return!r(p,h)}catch{return!0}}function d(p,g){return g()}var f=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?d:i;return An.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:f,An}var In={};/**
185
175
  * @license React
186
176
  * use-sync-external-store-shim.development.js
187
177
  *
@@ -189,4 +179,4 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
189
179
  *
190
180
  * This source code is licensed under the MIT license found in the
191
181
  * LICENSE file in the root directory of this source tree.
192
- */var Ti;function Hm(){return Ti||(Ti=1,process.env.NODE_ENV!=="production"&&function(){function e(h,v){return h===v&&(h!==0||1/h===1/v)||h!==h&&v!==v}function t(h,v){f||o.startTransition===void 0||(f=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var m=v();if(!p){var b=v();a(m,b)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),p=!0)}b=s({inst:{value:m,getSnapshot:v}});var x=b[0].inst,y=b[1];return c(function(){x.value=m,x.getSnapshot=v,r(x)&&y({inst:x})},[h,m,v]),i(function(){return r(x)&&y({inst:x}),h(function(){r(x)&&y({inst:x})})},[h]),d(m),m}function r(h){var v=h.getSnapshot;h=h.value;try{var m=v();return!a(h,m)}catch{return!0}}function n(h,v){return v()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var o=ae,a=typeof Object.is=="function"?Object.is:e,s=o.useState,i=o.useEffect,c=o.useLayoutEffect,d=o.useDebugValue,f=!1,p=!1,g=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?n:t;An.useSyncExternalStore=o.useSyncExternalStore!==void 0?o.useSyncExternalStore:g,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),An}process.env.NODE_ENV==="production"?Nn.exports=Wm():Nn.exports=Hm();var Um=Nn.exports;function Gm(){return Um.useSyncExternalStore(Km,()=>!0,()=>!1)}function Km(){return()=>{}}var Tn="Avatar",[Ym,ig]=me(Tn),[qm,ji]=Ym(Tn),Ii=l.forwardRef((e,t)=>{const{__scopeAvatar:r,...n}=e,[o,a]=l.useState("idle");return u.jsx(qm,{scope:r,imageLoadingStatus:o,onImageLoadingStatusChange:a,children:u.jsx(z.span,{...n,ref:t})})});Ii.displayName=Tn;var Oi="AvatarImage",Mi=l.forwardRef((e,t)=>{const{__scopeAvatar:r,src:n,onLoadingStatusChange:o=()=>{},...a}=e,s=ji(Oi,r),i=Xm(n,a),c=Ne(d=>{o(d),s.onImageLoadingStatusChange(d)});return ie(()=>{i!=="idle"&&c(i)},[i,c]),i==="loaded"?u.jsx(z.img,{...a,ref:t,src:n}):null});Mi.displayName=Oi;var Di="AvatarFallback",Li=l.forwardRef((e,t)=>{const{__scopeAvatar:r,delayMs:n,...o}=e,a=ji(Di,r),[s,i]=l.useState(n===void 0);return l.useEffect(()=>{if(n!==void 0){const c=window.setTimeout(()=>i(!0),n);return()=>window.clearTimeout(c)}},[n]),s&&a.imageLoadingStatus!=="loaded"?u.jsx(z.span,{...o,ref:t}):null});Li.displayName=Di;function $i(e,t){return e?t?(e.src!==t&&(e.src=t),e.complete&&e.naturalWidth>0?"loaded":"loading"):"error":"idle"}function Xm(e,{referrerPolicy:t,crossOrigin:r}){const n=Gm(),o=l.useRef(null),a=n?(o.current||(o.current=new window.Image),o.current):null,[s,i]=l.useState(()=>$i(a,e));return ie(()=>{i($i(a,e))},[a,e]),ie(()=>{const c=p=>()=>{i(p)};if(!a)return;const d=c("loaded"),f=c("error");return a.addEventListener("load",d),a.addEventListener("error",f),t&&(a.referrerPolicy=t),typeof r=="string"&&(a.crossOrigin=r),()=>{a.removeEventListener("load",d),a.removeEventListener("error",f)}},[a,r,t]),s}var Zm=Ii,Fi=Mi,gr=Li;const Jm=ce("relative flex items-center justify-center rounded-full bg-[var(--color-neutral-black-4)] text-black font-medium select-none",{variants:{size:{sm:"w-[30px] h-[30px] text-xs",md:"w-[40px] h-[40px] text-sm",lg:"w-[50px] h-[50px] text-lg",xl:"w-[60px] h-[60px] text-xl","2xl":"w-[70px] h-[70px] text-2xl"},progress:{true:"ring-2 ring-offset-4 ring-black",false:""}},defaultVariants:{size:"md",progress:!1}}),Qm=ce("absolute bottom-0 right-0 rounded-full border-2 border-white",{variants:{status:{Neutral:"bg-transparent",Online:"bg-[var(--color-success-1)]",Busy:"bg-[var(--color-error-1)]",Away:"bg-[var(--color-warning-1)]",Offline:"bg-[var(--color-neutral-black-2)]"},size:{sm:"w-[10px] h-[10px]",md:"w-[12px] h-[12px]",lg:"w-[14px] h-[14px]",xl:"w-[16px] h-[16px]","2xl":"w-[18px] h-[18px]"}},defaultVariants:{status:"Neutral",size:"md"}}),eh=ce("absolute bottom-0 right-0 flex items-center justify-center rounded-full border-2 border-white font-medium",{variants:{size:{sm:"w-[14px] h-[14px] text-[10px]",md:"w-[16px] h-[16px] text-[11px]",lg:"w-[18px] h-[18px] text-[12px]",xl:"w-[21px] h-[21px] text-[13px]","2xl":"w-[24px] h-[24px] text-[14px]"},priority:{low:"bg-[var(--color-neutral-black-2)] text-black",mid:"bg-[var(--color-neutral-black-2)] text-black",high:"bg-black text-white"}},defaultVariants:{size:"md",priority:"low"}}),th=ce("absolute bottom-0 right-0 flex items-center justify-center rounded-full bg-[var(--color-neutral-black-2)] border-2 border-white",{variants:{size:{sm:"w-[14px] h-[14px]",md:"w-[16px] h-[16px]",lg:"w-[18px] h-[18px]",xl:"w-[21px] h-[21px]","2xl":"w-[24px] h-[24px]"}},defaultVariants:{size:"md"}});function rh(e){const{type:t,size:r="md",status:n="Neutral",notification:o,CTAIndicator:a=!1,progress:s=!1,className:i,...c}=e;return u.jsxs(Zm,{className:D(Jm({size:r,progress:s}),i),...c,children:[t==="picture"&&u.jsxs(u.Fragment,{children:[u.jsx(Fi,{src:e.src,alt:"avatar",className:"w-full h-full object-cover rounded-full"}),u.jsx(gr,{children:u.jsx(Ho,{className:"text-black",size:r==="sm"?16:r==="md"?20:r==="lg"?24:r==="xl"?28:32})})]}),t==="initials"&&u.jsx(gr,{className:"uppercase",children:e.initials}),t==="placeholder"&&u.jsx(gr,{children:u.jsx(Ho,{"data-testid":"avatar-placeholder",className:"text-black",size:r==="sm"?16:r==="md"?20:r==="lg"?24:r==="xl"?28:32})}),n!=="Neutral"&&u.jsx("span",{"data-testid":"avatar-status",className:Qm({status:n,size:r})}),o&&u.jsx("span",{"data-testid":"avatar-notification",className:eh({size:r,priority:o.priority}),children:o.value}),a&&u.jsx("span",{"data-testid":"avatar-camera-icon",className:th({size:r}),children:u.jsx(Ac,{"data-testid":"avatar-camera",className:"text-[var(--color-neutral-black-1)]",size:12})})]})}function nh({className:e,...t}){return u.jsx(Fi,{className:D("aspect-square h-full w-full",e),...t})}function oh({className:e,...t}){return u.jsx(gr,{className:D("flex h-full w-full items-center justify-center rounded-full bg-muted",e),...t})}var ah="Separator",Vi="horizontal",sh=["horizontal","vertical"],zi=l.forwardRef((e,t)=>{const{decorative:r,orientation:n=Vi,...o}=e,a=ih(n)?n:Vi,i=r?{role:"none"}:{"aria-orientation":a==="vertical"?a:void 0,role:"separator"};return u.jsx(z.div,{"data-orientation":a,...i,...o,ref:t})});zi.displayName=ah;function ih(e){return sh.includes(e)}var lh=zi;function ch({className:e,orientation:t="horizontal",decorative:r=!0,size:n=1,...o}){const a=t==="horizontal"?{1:"h-px",2:"h-0.5",3:"h-[3px]",4:"h-1"}[n]:{1:"w-px",2:"w-0.5",3:"w-[3px]",4:"w-1"}[n];return u.jsx(lh,{"data-slot":"separator",role:"separator",decorative:r,orientation:t,className:D("bg-neutral-black-4 shrink-0",t==="horizontal"?"w-full":"h-full",a,e),...o})}const uh=ce("flex flex-col gap-12"),dh=ce("",{variants:{variant:{filled:"h-3 w-3 rounded-full bg-neutral-black-2",outlined:"h-3 w-3 rounded-full bg-transparent border-2 border-neutral-black-2",icon:"h-12 w-12 rounded-full flex items-center justify-center text-display-xs"},visited:{true:"",false:""}},compoundVariants:[{variant:"icon",visited:!0,class:"bg-primary-1 text-white"},{variant:"icon",visited:!1,class:"bg-neutral-black-5 text-neutral-black-2"}],defaultVariants:{variant:"filled",visited:!0}}),fh=ce("flex relative after:border-l-2 after:absolute after:h-full after:-translate-x-1/2",{variants:{hideConnector:{true:"after:hidden",false:"min-h-9"},variant:{filled:"pl-7 after:left-[6px] after:border-l-neutral-black-2",outlined:"pl-7 after:left-[6px] after:border-l-neutral-black-2",icon:"pl-10 after:left-[24px]"},visited:{true:"",false:""}},compoundVariants:[{variant:"icon",visited:!0,class:"after:border-l-primary-1"},{variant:"icon",visited:!1,class:"after:border-l-neutral-black-5"}],defaultVariants:{hideConnector:!1,variant:"filled",visited:!0}}),ph=(e,t)=>e&&!t;function mh({items:e,variant:t="filled",className:r}){const n=e.findIndex(a=>a.notVisited===!0),o=e.map((a,s)=>n!==-1&&s>=n?{...a,notVisited:!0}:a);return u.jsx("div",{className:D(uh(),r),"data-testid":"timeline",children:u.jsx("div",{className:"flex flex-col",children:o.map((a,s)=>{const i=s===o.length-1,c=!!(a.description||a.content),d=ph(i,c),f=a.notVisited||!1,p=o[s+1],g=(p==null?void 0:p.notVisited)||!1,h=t==="icon"&&g;return u.jsxs("div",{className:"flex flex-col","data-testid":"timeline-item",children:[u.jsxs("div",{className:"flex items-center gap-4 min-h-[35px]",children:[u.jsx("div",{"data-testid":"timeline-dot",className:D(dh({variant:t,visited:!f})),children:t==="icon"&&a.icon&&u.jsx("div",{className:"flex items-center justify-center w-full h-full",children:a.icon})}),u.jsx("p",{className:D("text-neutral-black-1",f&&"text-neutral-black-4"),children:a.title})]}),u.jsx("div",{"data-testid":"timeline-connector",className:D(fh({hideConnector:d,variant:t,visited:!h})),children:(a.description||a.content)&&u.jsxs("div",{className:"flex flex-col gap-2 py-2",children:[a.description&&u.jsx("p",{className:D("text-neutral-black-1 text-sm",f&&"text-neutral-black-4"),children:a.description}),a.content&&u.jsx("div",{className:"min-h-[35px]",children:a.content})]})})]},a.id)})})})}const hh=({variant:e="icon",width:t,height:r,iconSize:n=40,className:o,...a})=>{const s=()=>{switch(e){case"image":return u.jsx(Fc,{size:n,"data-testid":"placeholder-image"});case"video":return u.jsx(Bc,{size:n,"data-testid":"placeholder-video"});case"pieChart":return u.jsx(Tc,{size:n,"data-testid":"placeholder-pieChart"});case"icon":default:return u.jsx(zc,{size:n,"data-testid":"placeholder-smile"})}};return u.jsx("div",{"data-testid":"placeholder-wrapper",className:D("flex flex-col items-center justify-center text-neutral-black-2 gap-2 select-none bg-neutral-black-5 rounded-2xl",o),style:{width:t,height:r},...a,children:s()})},gh=e=>e===void 0||isNaN(e)?0:Math.min(100,Math.max(0,e)),Bi=l.forwardRef(({variant:e="linear",value:t=0,color:r="var(--color-primary-1)",className:n,...o},a)=>{const s=gh(t);if(e==="circular"){const{size:i=80,thickness:c=8}=o,d=(i-c)/2,f=2*Math.PI*d,p=f-s/100*f;return u.jsx("div",{ref:a,role:"progressbar","aria-valuenow":s,"aria-valuemin":0,"aria-valuemax":100,className:D("flex flex-col items-center justify-center",n),...o,children:u.jsxs("svg",{width:i,height:i,className:"rotate-[-90deg]",children:[u.jsx("circle",{cx:i/2,cy:i/2,r:d,stroke:"var(--color-neutral-black-5)",strokeWidth:c,fill:"transparent"}),u.jsx("circle",{cx:i/2,cy:i/2,r:d,stroke:r,strokeWidth:c,fill:"transparent",strokeDasharray:f,strokeDashoffset:p,className:"transition-all duration-700"})]})})}return u.jsx("div",{ref:a,role:"progressbar","aria-valuenow":s,"aria-valuemin":0,"aria-valuemax":100,className:D("w-full h-2 bg-[var(--color-neutral-black-5)] overflow-hidden",n),...o,children:u.jsx("div",{className:"h-full transition-all duration-300",style:{width:`${s}%`,backgroundColor:r}})})});Bi.displayName="ProgressIndicator";function vh({className:e,...t}){return u.jsx("div",{"data-slot":"skeleton",className:D("bg-neutral-black-5 animate-pulse rounded-sm",e),...t})}function bh({className:e,title:t="Oops! It looks like you're lost.",description:r="The page you're looking for isn't available. Try to search again or use the go to.",backButtonText:n="Back to home",href:o="/"}){return u.jsx("main",{className:D("flex flex-1 w-full py-16 px-6 md:py-24 md:px-8",e),children:u.jsxs("div",{className:"flex flex-col lg:flex-row gap-16 lg:gap-20 flex-1 max-w-7xl mx-auto",children:[u.jsx("div",{className:"flex-shrink-0 w-full max-w-[484px] h-64 lg:h-96 max-h-[370px] rounded-lg flex items-center justify-center",children:u.jsx("img",{src:"https://iili.io/KTthUtR.png",alt:"Page not found illustration"})}),u.jsxs("div",{className:"flex flex-col flex-1 gap-6 items-start",children:[u.jsxs("h1",{className:"font-bold text-neutral-black-1 text-6xl md:text-8xl lg:text-[129px]/[176px]",children:["40",u.jsx("span",{className:"text-primary-1",children:"4"})]}),u.jsxs("div",{className:"flex flex-col gap-3 max-w-lg",children:[u.jsx("h2",{className:"font-bold text-2xl md:text-3xl text-neutral-black-1",children:t}),u.jsx("p",{className:"text-base md:text-lg text-neutral-black-1 leading-relaxed",children:r})]}),u.jsx("a",{href:o,children:u.jsx(ro,{variant:"default",size:"sm",className:"cursor-pointer",children:n})})]})]})})}function xh({...e}){return u.jsx("nav",{"aria-label":"breadcrumb","data-slot":"breadcrumb",...e})}function yh({className:e,...t}){return u.jsx("ol",{"data-slot":"breadcrumb-list",className:D("text-muted-foreground flex flex-wrap items-center gap-2 text-sm break-words",e),...t})}function wh({className:e,...t}){return u.jsx("li",{"data-slot":"breadcrumb-item",className:D("inline-flex items-center gap-1.5",e),...t})}function Sh({asChild:e,className:t,...r}){const n=e?Tt:"a";return u.jsx(n,{"data-slot":"breadcrumb-link",className:D("text-neutral-black-1 hover:text-primary-1 hover:no-underline",t),...r})}function Ch({className:e,...t}){return u.jsx("span",{"data-slot":"breadcrumb-page",role:"link","aria-disabled":"true","aria-current":"page",className:D("text-neutral-black-2 cursor-default",e),...t})}function kh({children:e,className:t,...r}){return u.jsx("li",{"data-slot":"breadcrumb-separator",role:"presentation","aria-hidden":"true",className:D("[&>svg]:size-3.5 text-neutral-black-3 text-[20px]",t),...r,children:e??u.jsx(jc,{})})}function Eh({className:e,...t}){return u.jsxs("span",{"data-slot":"breadcrumb-ellipsis",role:"presentation","aria-hidden":"true",className:D("flex size-9 items-center justify-center",e),...t,children:[u.jsx(Dc,{className:"size-4"}),u.jsx("span",{className:"sr-only",children:"More"})]})}const Rh=ce("flex items-center justify-between w-full bg-neutral-black-5 px-4 py-3"),_h=ce("flex items-center gap-3");function Nh({className:e,children:t,...r}){return u.jsx("nav",{className:D(Rh(),e),...r,children:t})}function Ph({children:e,className:t,isCollapsed:r,onToggleCollapse:n,logo:o,logoAlt:a}){return u.jsxs("div",{className:D(_h(),t),children:[u.jsx("div",{className:"flex items-center",children:u.jsx("img",{src:o,alt:a,className:r?"hidden":"w-auto max-w-32 pr-10"})}),u.jsx("div",{children:u.jsx(Vc,{className:"h-5 w-5 cursor-pointer",onClick:n})}),e]})}function Ah({children:e,className:t}){return u.jsx("div",{className:D("flex items-center gap-2",t),children:e})}F.Avatar=rh,F.AvatarFallback=oh,F.AvatarImage=nh,F.Badge=Ur,F.Breadcrumb=xh,F.BreadcrumbEllipsis=Eh,F.BreadcrumbItem=wh,F.BreadcrumbLink=Sh,F.BreadcrumbList=yh,F.BreadcrumbPage=Ch,F.BreadcrumbSeparator=kh,F.Button=ro,F.Card=Bm,F.Checkbox=Go,F.Dialog=nd,F.DialogClose=ad,F.DialogContent=sd,F.DialogDescription=ud,F.DialogFooter=ld,F.DialogHeader=id,F.DialogOverlay=$a,F.DialogPortal=La,F.DialogTitle=cd,F.DialogTrigger=od,F.Divider=ch,F.EmailInput=op,F.MultiSelect=Pi,F.Navigation=Nh,F.NavigationEnd=Ah,F.NavigationStart=Ph,F.Page404=bh,F.PasswordInput=ap,F.Placeholder=hh,F.ProgressIndicator=Bi,F.RadioGroup=Ao,F.RadioGroupItem=To,F.SearchInput=sp,F.SelectOption=Vm,F.SingleSelect=Ni,F.Skeleton=vh,F.Timeline=mh,F.Toggle=Ul,F.Tooltip=ep,F.TooltipContent=rp,F.TooltipProvider=Ns,F.TooltipTrigger=tp,F.cn=D,Object.defineProperty(F,Symbol.toStringTag,{value:"Module"})});
182
+ */var $i;function rh(){return $i||($i=1,process.env.NODE_ENV!=="production"&&function(){function e(h,v){return h===v&&(h!==0||1/h===1/v)||h!==h&&v!==v}function t(h,v){f||o.startTransition===void 0||(f=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var m=v();if(!p){var b=v();a(m,b)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),p=!0)}b=s({inst:{value:m,getSnapshot:v}});var x=b[0].inst,y=b[1];return c(function(){x.value=m,x.getSnapshot=v,r(x)&&y({inst:x})},[h,m,v]),i(function(){return r(x)&&y({inst:x}),h(function(){r(x)&&y({inst:x})})},[h]),d(m),m}function r(h){var v=h.getSnapshot;h=h.value;try{var m=v();return!a(h,m)}catch{return!0}}function n(h,v){return v()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var o=ae,a=typeof Object.is=="function"?Object.is:e,s=o.useState,i=o.useEffect,c=o.useLayoutEffect,d=o.useDebugValue,f=!1,p=!1,g=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?n:t;In.useSyncExternalStore=o.useSyncExternalStore!==void 0?o.useSyncExternalStore:g,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),In}process.env.NODE_ENV==="production"?Tn.exports=th():Tn.exports=rh();var nh=Tn.exports;function oh(){return nh.useSyncExternalStore(ah,()=>!0,()=>!1)}function ah(){return()=>{}}var jn="Avatar",[sh,Tg]=de(jn),[ih,Fi]=sh(jn),Vi=l.forwardRef((e,t)=>{const{__scopeAvatar:r,...n}=e,[o,a]=l.useState("idle");return u.jsx(ih,{scope:r,imageLoadingStatus:o,onImageLoadingStatusChange:a,children:u.jsx(V.span,{...n,ref:t})})});Vi.displayName=jn;var Bi="AvatarImage",zi=l.forwardRef((e,t)=>{const{__scopeAvatar:r,src:n,onLoadingStatusChange:o=()=>{},...a}=e,s=Fi(Bi,r),i=lh(n,a),c=Ne(d=>{o(d),s.onImageLoadingStatusChange(d)});return ie(()=>{i!=="idle"&&c(i)},[i,c]),i==="loaded"?u.jsx(V.img,{...a,ref:t,src:n}):null});zi.displayName=Bi;var Wi="AvatarFallback",Gi=l.forwardRef((e,t)=>{const{__scopeAvatar:r,delayMs:n,...o}=e,a=Fi(Wi,r),[s,i]=l.useState(n===void 0);return l.useEffect(()=>{if(n!==void 0){const c=window.setTimeout(()=>i(!0),n);return()=>window.clearTimeout(c)}},[n]),s&&a.imageLoadingStatus!=="loaded"?u.jsx(V.span,{...o,ref:t}):null});Gi.displayName=Wi;function Hi(e,t){return e?t?(e.src!==t&&(e.src=t),e.complete&&e.naturalWidth>0?"loaded":"loading"):"error":"idle"}function lh(e,{referrerPolicy:t,crossOrigin:r}){const n=oh(),o=l.useRef(null),a=n?(o.current||(o.current=new window.Image),o.current):null,[s,i]=l.useState(()=>Hi(a,e));return ie(()=>{i(Hi(a,e))},[a,e]),ie(()=>{const c=p=>()=>{i(p)};if(!a)return;const d=c("loaded"),f=c("error");return a.addEventListener("load",d),a.addEventListener("error",f),t&&(a.referrerPolicy=t),typeof r=="string"&&(a.crossOrigin=r),()=>{a.removeEventListener("load",d),a.removeEventListener("error",f)}},[a,r,t]),s}var ch=Vi,Ui=zi,xr=Gi;const uh=le("relative flex items-center justify-center rounded-full bg-[var(--color-neutral-black-4)] text-black font-medium select-none",{variants:{size:{sm:"w-[30px] h-[30px] text-xs",md:"w-[40px] h-[40px] text-sm",lg:"w-[50px] h-[50px] text-lg",xl:"w-[60px] h-[60px] text-xl","2xl":"w-[70px] h-[70px] text-2xl"},progress:{true:"ring-2 ring-offset-4 ring-black",false:""}},defaultVariants:{size:"md",progress:!1}}),dh=le("absolute bottom-0 right-0 rounded-full border-2 border-white",{variants:{status:{Neutral:"bg-transparent",Online:"bg-[var(--color-success-1)]",Busy:"bg-[var(--color-error-1)]",Away:"bg-[var(--color-warning-1)]",Offline:"bg-[var(--color-neutral-black-2)]"},size:{sm:"w-[10px] h-[10px]",md:"w-[12px] h-[12px]",lg:"w-[14px] h-[14px]",xl:"w-[16px] h-[16px]","2xl":"w-[18px] h-[18px]"}},defaultVariants:{status:"Neutral",size:"md"}}),fh=le("absolute bottom-0 right-0 flex items-center justify-center rounded-full border-2 border-white font-medium",{variants:{size:{sm:"w-[14px] h-[14px] text-[10px]",md:"w-[16px] h-[16px] text-[11px]",lg:"w-[18px] h-[18px] text-[12px]",xl:"w-[21px] h-[21px] text-[13px]","2xl":"w-[24px] h-[24px] text-[14px]"},priority:{low:"bg-[var(--color-neutral-black-2)] text-black",mid:"bg-[var(--color-neutral-black-2)] text-black",high:"bg-black text-white"}},defaultVariants:{size:"md",priority:"low"}}),ph=le("absolute bottom-0 right-0 flex items-center justify-center rounded-full bg-[var(--color-neutral-black-2)] border-2 border-white",{variants:{size:{sm:"w-[14px] h-[14px]",md:"w-[16px] h-[16px]",lg:"w-[18px] h-[18px]",xl:"w-[21px] h-[21px]","2xl":"w-[24px] h-[24px]"}},defaultVariants:{size:"md"}});function mh(e){const{type:t,size:r="md",status:n="Neutral",notification:o,CTAIndicator:a=!1,progress:s=!1,className:i,...c}=e;return u.jsxs(ch,{className:j(uh({size:r,progress:s}),i),...c,children:[t==="picture"&&u.jsxs(u.Fragment,{children:[u.jsx(Ui,{src:e.src,alt:"avatar",className:"w-full h-full object-cover rounded-full"}),u.jsx(xr,{children:u.jsx(Ko,{className:"text-black",size:r==="sm"?16:r==="md"?20:r==="lg"?24:r==="xl"?28:32})})]}),t==="initials"&&u.jsx(xr,{className:"uppercase",children:e.initials}),t==="placeholder"&&u.jsx(xr,{children:u.jsx(Ko,{"data-testid":"avatar-placeholder",className:"text-black",size:r==="sm"?16:r==="md"?20:r==="lg"?24:r==="xl"?28:32})}),n!=="Neutral"&&u.jsx("span",{"data-testid":"avatar-status",className:dh({status:n,size:r})}),o&&u.jsx("span",{"data-testid":"avatar-notification",className:fh({size:r,priority:o.priority}),children:o.value}),a&&u.jsx("span",{"data-testid":"avatar-camera-icon",className:ph({size:r}),children:u.jsx(Hc,{"data-testid":"avatar-camera",className:"text-[var(--color-neutral-black-1)]",size:12})})]})}function hh({className:e,...t}){return u.jsx(Ui,{className:j("aspect-square h-full w-full",e),...t})}function gh({className:e,...t}){return u.jsx(xr,{className:j("flex h-full w-full items-center justify-center rounded-full bg-muted",e),...t})}var vh="Separator",Ki="horizontal",bh=["horizontal","vertical"],Yi=l.forwardRef((e,t)=>{const{decorative:r,orientation:n=Ki,...o}=e,a=xh(n)?n:Ki,i=r?{role:"none"}:{"aria-orientation":a==="vertical"?a:void 0,role:"separator"};return u.jsx(V.div,{"data-orientation":a,...i,...o,ref:t})});Yi.displayName=vh;function xh(e){return bh.includes(e)}var yh=Yi;function wh({className:e,orientation:t="horizontal",decorative:r=!0,size:n=1,...o}){const a=t==="horizontal"?{1:"h-px",2:"h-0.5",3:"h-[3px]",4:"h-1"}[n]:{1:"w-px",2:"w-0.5",3:"w-[3px]",4:"w-1"}[n];return u.jsx(yh,{"data-slot":"separator",role:"separator",decorative:r,orientation:t,className:j("bg-neutral-black-4 shrink-0",t==="horizontal"?"w-full":"h-full",a,e),...o})}const Sh=le("flex flex-col gap-12"),Ch=le("",{variants:{variant:{filled:"h-3 w-3 rounded-full bg-neutral-black-2",outlined:"h-3 w-3 rounded-full bg-transparent border-2 border-neutral-black-2",icon:"h-12 w-12 rounded-full flex items-center justify-center text-display-xs"},visited:{true:"",false:""}},compoundVariants:[{variant:"icon",visited:!0,class:"bg-primary-1 text-white"},{variant:"icon",visited:!1,class:"bg-neutral-black-5 text-neutral-black-2"}],defaultVariants:{variant:"filled",visited:!0}}),kh=le("flex relative after:border-l-2 after:absolute after:h-full after:-translate-x-1/2",{variants:{hideConnector:{true:"after:hidden",false:"min-h-9"},variant:{filled:"pl-7 after:left-[6px] after:border-l-neutral-black-2",outlined:"pl-7 after:left-[6px] after:border-l-neutral-black-2",icon:"pl-10 after:left-[24px]"},visited:{true:"",false:""}},compoundVariants:[{variant:"icon",visited:!0,class:"after:border-l-primary-1"},{variant:"icon",visited:!1,class:"after:border-l-neutral-black-5"}],defaultVariants:{hideConnector:!1,variant:"filled",visited:!0}}),Eh=(e,t)=>e&&!t;function Rh({items:e,variant:t="filled",className:r}){const n=e.findIndex(a=>a.notVisited===!0),o=e.map((a,s)=>n!==-1&&s>=n?{...a,notVisited:!0}:a);return u.jsx("div",{className:j(Sh(),r),"data-testid":"timeline",children:u.jsx("div",{className:"flex flex-col",children:o.map((a,s)=>{const i=s===o.length-1,c=!!(a.description||a.content),d=Eh(i,c),f=a.notVisited||!1,p=o[s+1],g=(p==null?void 0:p.notVisited)||!1,h=t==="icon"&&g;return u.jsxs("div",{className:"flex flex-col","data-testid":"timeline-item",children:[u.jsxs("div",{className:"flex items-center gap-4 min-h-[35px]",children:[u.jsx("div",{"data-testid":"timeline-dot",className:j(Ch({variant:t,visited:!f})),children:t==="icon"&&a.icon&&u.jsx("div",{className:"flex items-center justify-center w-full h-full",children:a.icon})}),u.jsx("p",{className:j("text-neutral-black-1",f&&"text-neutral-black-4"),children:a.title})]}),u.jsx("div",{"data-testid":"timeline-connector",className:j(kh({hideConnector:d,variant:t,visited:!h})),children:(a.description||a.content)&&u.jsxs("div",{className:"flex flex-col gap-2 py-2",children:[a.description&&u.jsx("p",{className:j("text-neutral-black-1 text-sm",f&&"text-neutral-black-4"),children:a.description}),a.content&&u.jsx("div",{className:"min-h-[35px]",children:a.content})]})})]},a.id)})})})}const _h=({variant:e="icon",width:t,height:r,iconSize:n=40,className:o,...a})=>{const s=()=>{switch(e){case"image":return u.jsx(Jc,{size:n,"data-testid":"placeholder-image"});case"video":return u.jsx(tu,{size:n,"data-testid":"placeholder-video"});case"pieChart":return u.jsx(Uc,{size:n,"data-testid":"placeholder-pieChart"});case"icon":default:return u.jsx(eu,{size:n,"data-testid":"placeholder-smile"})}};return u.jsx("div",{"data-testid":"placeholder-wrapper",className:j("flex flex-col items-center justify-center text-neutral-black-2 gap-2 select-none bg-neutral-black-5 rounded-2xl",o),style:{width:t,height:r},...a,children:s()})},Nh=e=>e===void 0||isNaN(e)?0:Math.min(100,Math.max(0,e)),qi=l.forwardRef(({variant:e="linear",value:t=0,color:r="var(--color-primary-1)",className:n,...o},a)=>{const s=Nh(t);if(e==="circular"){const{size:i=80,thickness:c=8}=o,d=(i-c)/2,f=2*Math.PI*d,p=f-s/100*f;return u.jsx("div",{ref:a,role:"progressbar","aria-valuenow":s,"aria-valuemin":0,"aria-valuemax":100,className:j("flex flex-col items-center justify-center",n),...o,children:u.jsxs("svg",{width:i,height:i,className:"rotate-[-90deg]",children:[u.jsx("circle",{cx:i/2,cy:i/2,r:d,stroke:"var(--color-neutral-black-5)",strokeWidth:c,fill:"transparent"}),u.jsx("circle",{cx:i/2,cy:i/2,r:d,stroke:r,strokeWidth:c,fill:"transparent",strokeDasharray:f,strokeDashoffset:p,className:"transition-all duration-700"})]})})}return u.jsx("div",{ref:a,role:"progressbar","aria-valuenow":s,"aria-valuemin":0,"aria-valuemax":100,className:j("w-full h-2 bg-[var(--color-neutral-black-5)] overflow-hidden",n),...o,children:u.jsx("div",{className:"h-full transition-all duration-300",style:{width:`${s}%`,backgroundColor:r}})})});qi.displayName="ProgressIndicator";function Ph({className:e,...t}){return u.jsx("div",{"data-slot":"skeleton",className:j("bg-neutral-black-5 animate-pulse rounded-sm",e),...t})}function Th({className:e,title:t="Oops! It looks like you're lost.",description:r="The page you're looking for isn't available. Try to search again or use the go to.",backButtonText:n="Back to home",href:o="/"}){return u.jsx("main",{className:j("flex flex-1 w-full py-16 px-6 md:py-24 md:px-8",e),children:u.jsxs("div",{className:"flex flex-col lg:flex-row gap-16 lg:gap-20 flex-1 max-w-7xl mx-auto",children:[u.jsx("div",{className:"flex-shrink-0 w-full max-w-[484px] h-64 lg:h-96 max-h-[370px] rounded-lg flex items-center justify-center",children:u.jsx("img",{src:"https://iili.io/KTthUtR.png",alt:"Page not found illustration"})}),u.jsxs("div",{className:"flex flex-col flex-1 gap-6 items-start",children:[u.jsxs("h1",{className:"font-bold text-neutral-black-1 text-6xl md:text-8xl lg:text-[129px]/[176px]",children:["40",u.jsx("span",{className:"text-primary-1",children:"4"})]}),u.jsxs("div",{className:"flex flex-col gap-3 max-w-lg",children:[u.jsx("h2",{className:"font-bold text-2xl md:text-3xl text-neutral-black-1",children:t}),u.jsx("p",{className:"text-base md:text-lg text-neutral-black-1 leading-relaxed",children:r})]}),u.jsx("a",{href:o,children:u.jsx(Ot,{variant:"default",size:"sm",className:"cursor-pointer",children:n})})]})]})})}function Ah({...e}){return u.jsx("nav",{"aria-label":"breadcrumb","data-slot":"breadcrumb",...e})}function Ih({className:e,...t}){return u.jsx("ol",{"data-slot":"breadcrumb-list",className:j("text-muted-foreground flex flex-wrap items-center gap-2 text-sm break-words",e),...t})}function jh({className:e,...t}){return u.jsx("li",{"data-slot":"breadcrumb-item",className:j("inline-flex items-center gap-1.5",e),...t})}function Oh({asChild:e,className:t,...r}){const n=e?At:"a";return u.jsx(n,{"data-slot":"breadcrumb-link",className:j("text-neutral-black-1 hover:text-primary-1 hover:no-underline",t),...r})}function Mh({className:e,...t}){return u.jsx("span",{"data-slot":"breadcrumb-page",role:"link","aria-disabled":"true","aria-current":"page",className:j("text-neutral-black-2 cursor-default",e),...t})}function Dh({children:e,className:t,...r}){return u.jsx("li",{"data-slot":"breadcrumb-separator",role:"presentation","aria-hidden":"true",className:j("[&>svg]:size-3.5 text-neutral-black-3 text-[20px]",t),...r,children:e??u.jsx(Kc,{})})}function Lh({className:e,...t}){return u.jsxs("span",{"data-slot":"breadcrumb-ellipsis",role:"presentation","aria-hidden":"true",className:j("flex size-9 items-center justify-center",e),...t,children:[u.jsx(qc,{className:"size-4"}),u.jsx("span",{className:"sr-only",children:"More"})]})}const $h=le("flex items-center justify-between w-full bg-neutral-black-5 px-4 py-3"),Fh=le("flex items-center gap-3");function Vh({className:e,children:t,...r}){return u.jsx("nav",{className:j($h(),e),...r,children:t})}function Bh({children:e,className:t,isCollapsed:r,onToggleCollapse:n,logo:o,logoAlt:a}){return u.jsxs("div",{className:j(Fh(),t),children:[u.jsx("div",{className:"flex items-center",children:u.jsx("img",{src:o,alt:a,className:r?"hidden":"w-auto max-w-32 pr-10"})}),u.jsx("div",{children:u.jsx(Qc,{className:"h-5 w-5 cursor-pointer",onClick:n})}),e]})}function zh({children:e,className:t}){return u.jsx("div",{className:j("flex items-center gap-2",t),children:e})}var yr="Tabs",[Wh,Ag]=de(yr,[Ft]),Xi=Ft(),[Gh,On]=Wh(yr),Zi=l.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,onValueChange:o,defaultValue:a,orientation:s="horizontal",dir:i,activationMode:c="automatic",...d}=e,f=$t(i),[p,g]=ye({prop:n,onChange:o,defaultProp:a??"",caller:yr});return u.jsx(Gh,{scope:r,baseId:ce(),value:p,onValueChange:g,orientation:s,dir:f,activationMode:c,children:u.jsx(V.div,{dir:f,"data-orientation":s,...d,ref:t})})});Zi.displayName=yr;var Ji="TabsList",Qi=l.forwardRef((e,t)=>{const{__scopeTabs:r,loop:n=!0,...o}=e,a=On(Ji,r),s=Xi(r);return u.jsx(vo,{asChild:!0,...s,orientation:a.orientation,dir:a.dir,loop:n,children:u.jsx(V.div,{role:"tablist","aria-orientation":a.orientation,...o,ref:t})})});Qi.displayName=Ji;var el="TabsTrigger",tl=l.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,disabled:o=!1,...a}=e,s=On(el,r),i=Xi(r),c=ol(s.baseId,n),d=al(s.baseId,n),f=n===s.value;return u.jsx(bo,{asChild:!0,...i,focusable:!o,active:f,children:u.jsx(V.button,{type:"button",role:"tab","aria-selected":f,"aria-controls":d,"data-state":f?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:c,...a,ref:t,onMouseDown:z(e.onMouseDown,p=>{!o&&p.button===0&&p.ctrlKey===!1?s.onValueChange(n):p.preventDefault()}),onKeyDown:z(e.onKeyDown,p=>{[" ","Enter"].includes(p.key)&&s.onValueChange(n)}),onFocus:z(e.onFocus,()=>{const p=s.activationMode!=="manual";!f&&!o&&p&&s.onValueChange(n)})})})});tl.displayName=el;var rl="TabsContent",nl=l.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,forceMount:o,children:a,...s}=e,i=On(rl,r),c=ol(i.baseId,n),d=al(i.baseId,n),f=n===i.value,p=l.useRef(f);return l.useEffect(()=>{const g=requestAnimationFrame(()=>p.current=!1);return()=>cancelAnimationFrame(g)},[]),u.jsx(he,{present:o||f,children:({present:g})=>u.jsx(V.div,{"data-state":f?"active":"inactive","data-orientation":i.orientation,role:"tabpanel","aria-labelledby":c,hidden:!g,id:d,tabIndex:0,...s,ref:t,style:{...e.style,animationDuration:p.current?"0s":void 0},children:g&&a})})});nl.displayName=rl;function ol(e,t){return`${e}-trigger-${t}`}function al(e,t){return`${e}-content-${t}`}var Hh=Zi,Uh=Qi,Kh=tl,Yh=nl;const qh={underline:"data-[state=active]:border-b-primary-1 px-5 py-4 border-b-[1.5px] border-b-neutral-black-3 text-md",badge:"px-3 py-2 rounded-md text-neutral-0 data-[state=active]:bg-white text-sm rounded-[5px]"},Xh=le("flex max-w-fit",{variants:{variant:{none:"",badge:"bg-neutral-black-5 p-[5px] rounded-[5px] h-12"}},defaultVariants:{variant:"none"}}),Zh=le("[&>svg]:text-neutral-black-2 cursor-pointer data-[state=active]:text-primary-1 data-[state=active]:[&>svg]:text-primary-1",{variants:{variant:qh},defaultVariants:{variant:"underline"}});function Jh({className:e,...t}){return u.jsx(Hh,{"data-slot":"tabs",className:j("flex flex-col gap-2",e),...t})}function Qh({className:e,variant:t,...r}){return u.jsx(Uh,{"data-slot":"tabs-list",className:j(Xh({variant:t}),e),...r})}function eg({className:e,variant:t="underline",...r}){return u.jsx(Kh,{"data-slot":"tabs-trigger",className:j(Zh({variant:t}),e),...r})}function tg({className:e,...t}){return u.jsx(Yh,{"data-slot":"tabs-content",className:j("flex-1 outline-none",e),...t})}L.Avatar=mh,L.AvatarFallback=gh,L.AvatarImage=hh,L.Badge=Yr,L.BaseInput=Is,L.Breadcrumb=Ah,L.BreadcrumbEllipsis=Lh,L.BreadcrumbItem=jh,L.BreadcrumbLink=Oh,L.BreadcrumbList=Ih,L.BreadcrumbPage=Mh,L.BreadcrumbSeparator=Dh,L.Button=Ot,L.Card=eh,L.Checkbox=qo,L.Dialog=gd,L.DialogClose=bd,L.DialogContent=xd,L.DialogDescription=Cd,L.DialogFooter=wd,L.DialogHeader=yd,L.DialogOverlay=Ba,L.DialogPortal=Va,L.DialogTitle=Sd,L.DialogTrigger=vd,L.Divider=wh,L.Input=js,L.InputLabel=Os,L.MultiSelect=Di,L.Navigation=Vh,L.NavigationEnd=zh,L.NavigationStart=Bh,L.Page404=Th,L.PasswordInput=vp,L.Placeholder=_h,L.ProgressIndicator=qi,L.RadioGroup=jo,L.RadioGroupItem=Oo,L.SearchInput=bp,L.SelectOption=Jm,L.SingleSelect=Mi,L.Skeleton=Ph,L.Tabs=Jh,L.TabsContent=tg,L.TabsList=Qh,L.TabsTrigger=eg,L.Timeline=Rh,L.Toggle=lc,L.Tooltip=pp,L.TooltipContent=hp,L.TooltipProvider=As,L.TooltipTrigger=mp,L.cn=j,Object.defineProperty(L,Symbol.toStringTag,{value:"Module"})});