@datawire-ai/busyfile-design-library 1.17.0 → 1.18.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(U,te){typeof exports=="object"&&typeof module<"u"?te(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],te):(U=typeof globalThis<"u"?globalThis:U||self,te(U.BusyFileDesignSystem={},U.React,U.ReactDOM))})(this,function(U,te,kn){"use strict";function Rn(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=Rn(te),At=Rn(kn);var fr={exports:{}},ut={};/**
1
+ (function(U,te){typeof exports=="object"&&typeof module<"u"?te(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],te):(U=typeof globalThis<"u"?globalThis:U||self,te(U.BusyFileDesignSystem={},U.React,U.ReactDOM))})(this,function(U,te,Rn){"use strict";function _n(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=_n(te),Nt=_n(Rn);var fr={exports:{}},ut={};/**
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 _n;function Ni(){if(_n)return ut;_n=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 ut.Fragment=t,ut.jsx=r,ut.jsxs=r,ut}var dt={};/**
9
+ */var Pn;function Ai(){if(Pn)return ut;Pn=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 ut.Fragment=t,ut.jsx=r,ut.jsxs=r,ut}var dt={};/**
10
10
  * @license React
11
11
  * react-jsx-runtime.development.js
12
12
  *
@@ -14,12 +14,12 @@
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 Pn;function Ti(){return Pn||(Pn=1,process.env.NODE_ENV!=="production"&&function(){function e(E){if(E==null)return null;if(typeof E=="function")return E.$$typeof===K?null:E.displayName||E.name||null;if(typeof E=="string")return E;switch(E){case m:return"Fragment";case y:return"Profiler";case x:return"StrictMode";case k:return"Suspense";case N:return"SuspenseList";case W:return"Activity"}if(typeof E=="object")switch(typeof E.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),E.$$typeof){case v:return"Portal";case w:return(E.displayName||"Context")+".Provider";case b:return(E._context.displayName||"Context")+".Consumer";case C:var $=E.render;return E=E.displayName,E||(E=$.displayName||$.name||"",E=E!==""?"ForwardRef("+E+")":"ForwardRef"),E;case R:return $=E.displayName||null,$!==null?$:e(E.type)||"Memo";case _:$=E._payload,E=E._init;try{return e(E($))}catch{}}return null}function t(E){return""+E}function r(E){try{t(E);var $=!1}catch{$=!0}if($){$=console;var S=$.error,T=typeof Symbol=="function"&&Symbol.toStringTag&&E[Symbol.toStringTag]||E.constructor.name||"Object";return S.call($,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",T),t(E)}}function n(E){if(E===m)return"<>";if(typeof E=="object"&&E!==null&&E.$$typeof===_)return"<...>";try{var $=e(E);return $?"<"+$+">":"<...>"}catch{return"<...>"}}function o(){var E=X.A;return E===null?null:E.getOwner()}function a(){return Error("react-stack-top-frame")}function s(E){if(Q.call(E,"key")){var $=Object.getOwnPropertyDescriptor(E,"key").get;if($&&$.isReactWarning)return!1}return E.key!==void 0}function i(E,$){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)",$))}S.isReactWarning=!0,Object.defineProperty(E,"key",{get:S,configurable:!0})}function c(){var E=e(this.type);return D[E]||(D[E]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),E=this.props.ref,E!==void 0?E:null}function u(E,$,S,T,M,O,Y,A){return S=O.ref,E={$$typeof:h,type:E,key:$,props:O,_owner:M},(S!==void 0?S:null)!==null?Object.defineProperty(E,"ref",{enumerable:!1,get:c}):Object.defineProperty(E,"ref",{enumerable:!1,value:null}),E._store={},Object.defineProperty(E._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(E,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(E,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:Y}),Object.defineProperty(E,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:A}),Object.freeze&&(Object.freeze(E.props),Object.freeze(E)),E}function f(E,$,S,T,M,O,Y,A){var L=$.children;if(L!==void 0)if(T)if(ee(L)){for(T=0;T<L.length;T++)p(L[T]);Object.freeze&&Object.freeze(L)}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(L);if(Q.call($,"key")){L=e(E);var G=Object.keys($).filter(function(ne){return ne!=="key"});T=0<G.length?"{key: someKey, "+G.join(": ..., ")+": ...}":"{key: someKey}",re[L+T]||(G=0<G.length?"{"+G.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
17
+ */var Nn;function Ti(){return Nn||(Nn=1,process.env.NODE_ENV!=="production"&&function(){function e(E){if(E==null)return null;if(typeof E=="function")return E.$$typeof===K?null:E.displayName||E.name||null;if(typeof E=="string")return E;switch(E){case m:return"Fragment";case y:return"Profiler";case x:return"StrictMode";case k:return"Suspense";case A:return"SuspenseList";case W:return"Activity"}if(typeof E=="object")switch(typeof E.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),E.$$typeof){case v:return"Portal";case w:return(E.displayName||"Context")+".Provider";case b:return(E._context.displayName||"Context")+".Consumer";case C:var $=E.render;return E=E.displayName,E||(E=$.displayName||$.name||"",E=E!==""?"ForwardRef("+E+")":"ForwardRef"),E;case R:return $=E.displayName||null,$!==null?$:e(E.type)||"Memo";case _:$=E._payload,E=E._init;try{return e(E($))}catch{}}return null}function t(E){return""+E}function r(E){try{t(E);var $=!1}catch{$=!0}if($){$=console;var S=$.error,T=typeof Symbol=="function"&&Symbol.toStringTag&&E[Symbol.toStringTag]||E.constructor.name||"Object";return S.call($,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",T),t(E)}}function n(E){if(E===m)return"<>";if(typeof E=="object"&&E!==null&&E.$$typeof===_)return"<...>";try{var $=e(E);return $?"<"+$+">":"<...>"}catch{return"<...>"}}function o(){var E=X.A;return E===null?null:E.getOwner()}function a(){return Error("react-stack-top-frame")}function s(E){if(Q.call(E,"key")){var $=Object.getOwnPropertyDescriptor(E,"key").get;if($&&$.isReactWarning)return!1}return E.key!==void 0}function i(E,$){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)",$))}S.isReactWarning=!0,Object.defineProperty(E,"key",{get:S,configurable:!0})}function c(){var E=e(this.type);return D[E]||(D[E]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),E=this.props.ref,E!==void 0?E:null}function u(E,$,S,T,M,O,Y,N){return S=O.ref,E={$$typeof:h,type:E,key:$,props:O,_owner:M},(S!==void 0?S:null)!==null?Object.defineProperty(E,"ref",{enumerable:!1,get:c}):Object.defineProperty(E,"ref",{enumerable:!1,value:null}),E._store={},Object.defineProperty(E._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(E,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(E,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:Y}),Object.defineProperty(E,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:N}),Object.freeze&&(Object.freeze(E.props),Object.freeze(E)),E}function f(E,$,S,T,M,O,Y,N){var L=$.children;if(L!==void 0)if(T)if(ee(L)){for(T=0;T<L.length;T++)p(L[T]);Object.freeze&&Object.freeze(L)}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(L);if(Q.call($,"key")){L=e(E);var G=Object.keys($).filter(function(ne){return ne!=="key"});T=0<G.length?"{key: someKey, "+G.join(": ..., ")+": ...}":"{key: someKey}",re[L+T]||(G=0<G.length?"{"+G.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,L,G,L),re[L+T]=!0)}if(L=null,S!==void 0&&(r(S),L=""+S),s($)&&(r($.key),L=""+$.key),"key"in $){S={};for(var Z in $)Z!=="key"&&(S[Z]=$[Z])}else S=$;return L&&i(S,typeof E=="function"?E.displayName||E.name||"Unknown":E),u(E,L,O,M,o(),S,Y,A)}function p(E){typeof E=="object"&&E!==null&&E.$$typeof===h&&E._store&&(E._store.validated=1)}var g=te,h=Symbol.for("react.transitional.element"),v=Symbol.for("react.portal"),m=Symbol.for("react.fragment"),x=Symbol.for("react.strict_mode"),y=Symbol.for("react.profiler"),b=Symbol.for("react.consumer"),w=Symbol.for("react.context"),C=Symbol.for("react.forward_ref"),k=Symbol.for("react.suspense"),N=Symbol.for("react.suspense_list"),R=Symbol.for("react.memo"),_=Symbol.for("react.lazy"),W=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,z=console.createTask?console.createTask:function(){return null};g={"react-stack-bottom-frame":function(E){return E()}};var q,D={},H=g["react-stack-bottom-frame"].bind(g,a)(),P=z(n(a)),re={};dt.Fragment=m,dt.jsx=function(E,$,S,T,M){var O=1e4>X.recentlyCreatedOwnerStacks++;return f(E,$,S,!1,T,M,O?Error("react-stack-top-frame"):H,O?z(n(E)):P)},dt.jsxs=function(E,$,S,T,M){var O=1e4>X.recentlyCreatedOwnerStacks++;return f(E,$,S,!0,T,M,O?Error("react-stack-top-frame"):H,O?z(n(E)):P)}}()),dt}process.env.NODE_ENV==="production"?fr.exports=Ni():fr.exports=Ti();var d=fr.exports;function An(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function $e(...e){return t=>{let r=!1;const n=e.map(o=>{const a=An(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():An(e[o],null)}}}}function ae(...e){return l.useCallback($e(...e),e)}function Ve(e){const t=Oi(e),r=l.forwardRef((n,o)=>{const{children:a,...s}=n,i=l.Children.toArray(a),c=i.find(ji);if(c){const u=c.props.children,f=i.map(p=>p===c?l.Children.count(u)>1?l.Children.only(null):l.isValidElement(u)?u.props.children:null:p);return d.jsx(t,{...s,ref:o,children:l.isValidElement(u)?l.cloneElement(u,void 0,f):null})}return d.jsx(t,{...s,ref:o,children:a})});return r.displayName=`${e}.Slot`,r}var pr=Ve("Slot");function Oi(e){const t=l.forwardRef((r,n)=>{const{children:o,...a}=r;if(l.isValidElement(o)){const s=Di(o),i=Mi(a,o.props);return o.type!==l.Fragment&&(i.ref=n?$e(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 Nn=Symbol("radix.slottable");function Ii(e){const t=({children:r})=>d.jsx(d.Fragment,{children:r});return t.displayName=`${e}.Slottable`,t.__radixId=Nn,t}function ji(e){return l.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Nn}function Mi(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 Di(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 Tn(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=Tn(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function On(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=Tn(e))&&(n&&(n+=" "),n+=t);return n}const mr="-",Li=e=>{const t=$i(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:s=>{const i=s.split(mr);return i[0]===""&&i.length!==1&&i.shift(),In(i,t)||Fi(s)},getConflictingClassGroupIds:(s,i)=>{const c=r[s]||[];return i&&n[s]?[...c,...n[s]]:c}}},In=(e,t)=>{var s;if(e.length===0)return t.classGroupId;const r=e[0],n=t.nextPart.get(r),o=n?In(e.slice(1),n):void 0;if(o)return o;if(t.validators.length===0)return;const a=e.join(mr);return(s=t.validators.find(({validator:i})=>i(a)))==null?void 0:s.classGroupId},jn=/^\[(.+)\]$/,Fi=e=>{if(jn.test(e)){const t=jn.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},$i=e=>{const{theme:t,classGroups:r}=e,n={nextPart:new Map,validators:[]};for(const o in r)hr(r[o],n,o,t);return n},hr=(e,t,r,n)=>{e.forEach(o=>{if(typeof o=="string"){const a=o===""?t:Mn(t,o);a.classGroupId=r;return}if(typeof o=="function"){if(Vi(o)){hr(o(n),t,r,n);return}t.validators.push({validator:o,classGroupId:r});return}Object.entries(o).forEach(([a,s])=>{hr(s,Mn(t,a),r,n)})})},Mn=(e,t)=>{let r=e;return t.split(mr).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r},Vi=e=>e.isThemeGetter,zi=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)}}},gr="!",vr=":",Bi=vr.length,Wi=e=>{const{prefix:t,experimentalParseClassName:r}=e;let n=o=>{const a=[];let s=0,i=0,c=0,u;for(let v=0;v<o.length;v++){let m=o[v];if(s===0&&i===0){if(m===vr){a.push(o.slice(c,v)),c=v+Bi;continue}if(m==="/"){u=v;continue}}m==="["?s++:m==="]"?s--:m==="("?i++:m===")"&&i--}const f=a.length===0?o:o.substring(c),p=Hi(f),g=p!==f,h=u&&u>c?u-c:void 0;return{modifiers:a,hasImportantModifier:g,baseClassName:p,maybePostfixModifierPosition:h}};if(t){const o=t+vr,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},Hi=e=>e.endsWith(gr)?e.substring(0,e.length-1):e.startsWith(gr)?e.substring(1):e,Gi=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}},Ui=e=>({cache:zi(e.cacheSize),parseClassName:Wi(e),sortModifiers:Gi(e),...Li(e)}),Ki=/\s+/,Yi=(e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:o,sortModifiers:a}=t,s=[],i=e.trim().split(Ki);let c="";for(let u=i.length-1;u>=0;u-=1){const f=i[u],{isExternal:p,modifiers:g,hasImportantModifier:h,baseClassName:v,maybePostfixModifierPosition:m}=r(f);if(p){c=f+(c.length>0?" "+c:c);continue}let x=!!m,y=n(x?v.substring(0,m):v);if(!y){if(!x){c=f+(c.length>0?" "+c:c);continue}if(y=n(v),!y){c=f+(c.length>0?" "+c:c);continue}x=!1}const b=a(g).join(":"),w=h?b+gr:b,C=w+y;if(s.includes(C))continue;s.push(C);const k=o(y,x);for(let N=0;N<k.length;++N){const R=k[N];s.push(w+R)}c=f+(c.length>0?" "+c:c)}return c};function qi(){let e=0,t,r,n="";for(;e<arguments.length;)(t=arguments[e++])&&(r=Dn(t))&&(n&&(n+=" "),n+=r);return n}const Dn=e=>{if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=Dn(e[n]))&&(r&&(r+=" "),r+=t);return r};function Xi(e,...t){let r,n,o,a=s;function s(c){const u=t.reduce((f,p)=>p(f),e());return r=Ui(u),n=r.cache.get,o=r.cache.set,a=i,i(c)}function i(c){const u=n(c);if(u)return u;const f=Yi(c,r);return o(c,f),f}return function(){return a(qi.apply(null,arguments))}}const se=e=>{const t=r=>r[e]||[];return t.isThemeGetter=!0,t},Ln=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Fn=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Zi=/^\d+\/\d+$/,Ji=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Qi=/\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$/,el=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,tl=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,rl=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ke=e=>Zi.test(e),J=e=>!!e&&!Number.isNaN(Number(e)),Ne=e=>!!e&&Number.isInteger(Number(e)),xr=e=>e.endsWith("%")&&J(e.slice(0,-1)),ke=e=>Ji.test(e),nl=()=>!0,ol=e=>Qi.test(e)&&!el.test(e),$n=()=>!1,al=e=>tl.test(e),sl=e=>rl.test(e),il=e=>!I(e)&&!j(e),ll=e=>Ye(e,Hn,$n),I=e=>Ln.test(e),ze=e=>Ye(e,Gn,ol),br=e=>Ye(e,pl,J),Vn=e=>Ye(e,Bn,$n),cl=e=>Ye(e,Wn,sl),Nt=e=>Ye(e,Un,al),j=e=>Fn.test(e),ft=e=>qe(e,Gn),ul=e=>qe(e,ml),zn=e=>qe(e,Bn),dl=e=>qe(e,Hn),fl=e=>qe(e,Wn),Tt=e=>qe(e,Un,!0),Ye=(e,t,r)=>{const n=Ln.exec(e);return n?n[1]?t(n[1]):r(n[2]):!1},qe=(e,t,r=!1)=>{const n=Fn.exec(e);return n?n[1]?t(n[1]):r:!1},Bn=e=>e==="position"||e==="percentage",Wn=e=>e==="image"||e==="url",Hn=e=>e==="length"||e==="size"||e==="bg-size",Gn=e=>e==="length",pl=e=>e==="number",ml=e=>e==="family-name",Un=e=>e==="shadow",hl=Xi(()=>{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"),u=se("radius"),f=se("shadow"),p=se("inset-shadow"),g=se("text-shadow"),h=se("drop-shadow"),v=se("blur"),m=se("perspective"),x=se("aspect"),y=se("ease"),b=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"],k=()=>[...C(),j,I],N=()=>["auto","hidden","clip","visible","scroll"],R=()=>["auto","contain","none"],_=()=>[j,I,c],W=()=>[Ke,"full","auto",..._()],K=()=>[Ne,"none","subgrid",j,I],X=()=>["auto",{span:["full",Ne,j,I]},Ne,j,I],Q=()=>[Ne,"auto",j,I],ee=()=>["auto","min","max","fr",j,I],z=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],q=()=>["start","end","center","stretch","center-safe","end-safe"],D=()=>["auto",..._()],H=()=>[Ke,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",..._()],P=()=>[e,j,I],re=()=>[...C(),zn,Vn,{position:[j,I]}],E=()=>["no-repeat",{repeat:["","x","y","space","round"]}],$=()=>["auto","cover","contain",dl,ll,{size:[j,I]}],S=()=>[xr,ft,ze],T=()=>["","none","full",u,j,I],M=()=>["",J,ft,ze],O=()=>["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"],A=()=>[J,xr,zn,Vn],L=()=>["","none",v,j,I],G=()=>["none",J,j,I],Z=()=>["none",J,j,I],ne=()=>[J,j,I],oe=()=>[Ke,"full",..._()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[ke],breakpoint:[ke],color:[nl],container:[ke],"drop-shadow":[ke],ease:["in","out","in-out"],font:[il],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[ke],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[ke],shadow:[ke],spacing:["px",J],text:[ke],"text-shadow":[ke],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Ke,I,j,x]}],container:["container"],columns:[{columns:[J,I,j,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:k()}],overflow:[{overflow:N()}],"overflow-x":[{"overflow-x":N()}],"overflow-y":[{"overflow-y":N()}],overscroll:[{overscroll:R()}],"overscroll-x":[{"overscroll-x":R()}],"overscroll-y":[{"overscroll-y":R()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:W()}],"inset-x":[{"inset-x":W()}],"inset-y":[{"inset-y":W()}],start:[{start:W()}],end:[{end:W()}],top:[{top:W()}],right:[{right:W()}],bottom:[{bottom:W()}],left:[{left:W()}],visibility:["visible","invisible","collapse"],z:[{z:[Ne,"auto",j,I]}],basis:[{basis:[Ke,"full","auto",i,..._()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[J,Ke,"auto","initial","none",I]}],grow:[{grow:["",J,j,I]}],shrink:[{shrink:["",J,j,I]}],order:[{order:[Ne,"first","last","none",j,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:_()}],"gap-x":[{"gap-x":_()}],"gap-y":[{"gap-y":_()}],"justify-content":[{justify:[...z(),"normal"]}],"justify-items":[{"justify-items":[...q(),"normal"]}],"justify-self":[{"justify-self":["auto",...q()]}],"align-content":[{content:["normal",...z()]}],"align-items":[{items:[...q(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...q(),{baseline:["","last"]}]}],"place-content":[{"place-content":z()}],"place-items":[{"place-items":[...q(),"baseline"]}],"place-self":[{"place-self":["auto",...q()]}],p:[{p:_()}],px:[{px:_()}],py:[{py:_()}],ps:[{ps:_()}],pe:[{pe:_()}],pt:[{pt:_()}],pr:[{pr:_()}],pb:[{pb:_()}],pl:[{pl:_()}],m:[{m:D()}],mx:[{mx:D()}],my:[{my:D()}],ms:[{ms:D()}],me:[{me:D()}],mt:[{mt:D()}],mr:[{mr:D()}],mb:[{mb:D()}],ml:[{ml:D()}],"space-x":[{"space-x":_()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":_()}],"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,ft,ze]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,j,br]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",xr,I]}],"font-family":[{font:[ul,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,j,I]}],"line-clamp":[{"line-clamp":[J,"none",j,br]}],leading:[{leading:[a,..._()]}],"list-image":[{"list-image":["none",j,I]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",j,I]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:P()}],"text-color":[{text:P()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...O(),"wavy"]}],"text-decoration-thickness":[{decoration:[J,"from-font","auto",j,ze]}],"text-decoration-color":[{decoration:P()}],"underline-offset":[{"underline-offset":[J,"auto",j,I]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:_()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",j,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",j,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:re()}],"bg-repeat":[{bg:E()}],"bg-size":[{bg:$()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Ne,j,I],radial:["",j,I],conic:[Ne,j,I]},fl,cl]}],"bg-color":[{bg:P()}],"gradient-from-pos":[{from:S()}],"gradient-via-pos":[{via:S()}],"gradient-to-pos":[{to:S()}],"gradient-from":[{from:P()}],"gradient-via":[{via:P()}],"gradient-to":[{to:P()}],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:[...O(),"hidden","none"]}],"divide-style":[{divide:[...O(),"hidden","none"]}],"border-color":[{border:P()}],"border-color-x":[{"border-x":P()}],"border-color-y":[{"border-y":P()}],"border-color-s":[{"border-s":P()}],"border-color-e":[{"border-e":P()}],"border-color-t":[{"border-t":P()}],"border-color-r":[{"border-r":P()}],"border-color-b":[{"border-b":P()}],"border-color-l":[{"border-l":P()}],"divide-color":[{divide:P()}],"outline-style":[{outline:[...O(),"none","hidden"]}],"outline-offset":[{"outline-offset":[J,j,I]}],"outline-w":[{outline:["",J,ft,ze]}],"outline-color":[{outline:P()}],shadow:[{shadow:["","none",f,Tt,Nt]}],"shadow-color":[{shadow:P()}],"inset-shadow":[{"inset-shadow":["none",p,Tt,Nt]}],"inset-shadow-color":[{"inset-shadow":P()}],"ring-w":[{ring:M()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:P()}],"ring-offset-w":[{"ring-offset":[J,ze]}],"ring-offset-color":[{"ring-offset":P()}],"inset-ring-w":[{"inset-ring":M()}],"inset-ring-color":[{"inset-ring":P()}],"text-shadow":[{"text-shadow":["none",g,Tt,Nt]}],"text-shadow-color":[{"text-shadow":P()}],opacity:[{opacity:[J,j,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":A()}],"mask-image-linear-to-pos":[{"mask-linear-to":A()}],"mask-image-linear-from-color":[{"mask-linear-from":P()}],"mask-image-linear-to-color":[{"mask-linear-to":P()}],"mask-image-t-from-pos":[{"mask-t-from":A()}],"mask-image-t-to-pos":[{"mask-t-to":A()}],"mask-image-t-from-color":[{"mask-t-from":P()}],"mask-image-t-to-color":[{"mask-t-to":P()}],"mask-image-r-from-pos":[{"mask-r-from":A()}],"mask-image-r-to-pos":[{"mask-r-to":A()}],"mask-image-r-from-color":[{"mask-r-from":P()}],"mask-image-r-to-color":[{"mask-r-to":P()}],"mask-image-b-from-pos":[{"mask-b-from":A()}],"mask-image-b-to-pos":[{"mask-b-to":A()}],"mask-image-b-from-color":[{"mask-b-from":P()}],"mask-image-b-to-color":[{"mask-b-to":P()}],"mask-image-l-from-pos":[{"mask-l-from":A()}],"mask-image-l-to-pos":[{"mask-l-to":A()}],"mask-image-l-from-color":[{"mask-l-from":P()}],"mask-image-l-to-color":[{"mask-l-to":P()}],"mask-image-x-from-pos":[{"mask-x-from":A()}],"mask-image-x-to-pos":[{"mask-x-to":A()}],"mask-image-x-from-color":[{"mask-x-from":P()}],"mask-image-x-to-color":[{"mask-x-to":P()}],"mask-image-y-from-pos":[{"mask-y-from":A()}],"mask-image-y-to-pos":[{"mask-y-to":A()}],"mask-image-y-from-color":[{"mask-y-from":P()}],"mask-image-y-to-color":[{"mask-y-to":P()}],"mask-image-radial":[{"mask-radial":[j,I]}],"mask-image-radial-from-pos":[{"mask-radial-from":A()}],"mask-image-radial-to-pos":[{"mask-radial-to":A()}],"mask-image-radial-from-color":[{"mask-radial-from":P()}],"mask-image-radial-to-color":[{"mask-radial-to":P()}],"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":A()}],"mask-image-conic-to-pos":[{"mask-conic-to":A()}],"mask-image-conic-from-color":[{"mask-conic-from":P()}],"mask-image-conic-to-color":[{"mask-conic-to":P()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:re()}],"mask-repeat":[{mask:E()}],"mask-size":[{mask:$()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",j,I]}],filter:[{filter:["","none",j,I]}],blur:[{blur:L()}],brightness:[{brightness:[J,j,I]}],contrast:[{contrast:[J,j,I]}],"drop-shadow":[{"drop-shadow":["","none",h,Tt,Nt]}],"drop-shadow-color":[{"drop-shadow":P()}],grayscale:[{grayscale:["",J,j,I]}],"hue-rotate":[{"hue-rotate":[J,j,I]}],invert:[{invert:["",J,j,I]}],saturate:[{saturate:[J,j,I]}],sepia:[{sepia:["",J,j,I]}],"backdrop-filter":[{"backdrop-filter":["","none",j,I]}],"backdrop-blur":[{"backdrop-blur":L()}],"backdrop-brightness":[{"backdrop-brightness":[J,j,I]}],"backdrop-contrast":[{"backdrop-contrast":[J,j,I]}],"backdrop-grayscale":[{"backdrop-grayscale":["",J,j,I]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[J,j,I]}],"backdrop-invert":[{"backdrop-invert":["",J,j,I]}],"backdrop-opacity":[{"backdrop-opacity":[J,j,I]}],"backdrop-saturate":[{"backdrop-saturate":[J,j,I]}],"backdrop-sepia":[{"backdrop-sepia":["",J,j,I]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":_()}],"border-spacing-x":[{"border-spacing-x":_()}],"border-spacing-y":[{"border-spacing-y":_()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",j,I]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[J,"initial",j,I]}],ease:[{ease:["linear","initial",y,j,I]}],delay:[{delay:[J,j,I]}],animate:[{animate:["none",b,j,I]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[m,j,I]}],"perspective-origin":[{"perspective-origin":k()}],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:ne()}],"skew-x":[{"skew-x":ne()}],"skew-y":[{"skew-y":ne()}],transform:[{transform:[j,I,"","none","gpu","cpu"]}],"transform-origin":[{origin:k()}],"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:P()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:P()}],"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",j,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":_()}],"scroll-mx":[{"scroll-mx":_()}],"scroll-my":[{"scroll-my":_()}],"scroll-ms":[{"scroll-ms":_()}],"scroll-me":[{"scroll-me":_()}],"scroll-mt":[{"scroll-mt":_()}],"scroll-mr":[{"scroll-mr":_()}],"scroll-mb":[{"scroll-mb":_()}],"scroll-ml":[{"scroll-ml":_()}],"scroll-p":[{"scroll-p":_()}],"scroll-px":[{"scroll-px":_()}],"scroll-py":[{"scroll-py":_()}],"scroll-ps":[{"scroll-ps":_()}],"scroll-pe":[{"scroll-pe":_()}],"scroll-pt":[{"scroll-pt":_()}],"scroll-pr":[{"scroll-pr":_()}],"scroll-pb":[{"scroll-pb":_()}],"scroll-pl":[{"scroll-pl":_()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",j,I]}],fill:[{fill:["none",...P()]}],"stroke-w":[{stroke:[J,ft,ze,br]}],stroke:[{stroke:["none",...P()]}],"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 F(...e){return hl(On(e))}const Kn=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Yn=On,ue=(e,t)=>r=>{var n;if((t==null?void 0:t.variants)==null)return Yn(e,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:o,defaultVariants:a}=t,s=Object.keys(o).map(u=>{const f=r==null?void 0:r[u],p=a==null?void 0:a[u];if(f===null)return null;const g=Kn(f)||Kn(p);return o[u][g]}),i=r&&Object.entries(r).reduce((u,f)=>{let[p,g]=f;return g===void 0||(u[p]=g),u},{}),c=t==null||(n=t.compoundVariants)===null||n===void 0?void 0:n.reduce((u,f)=>{let{class:p,className:g,...h}=f;return Object.entries(h).every(v=>{let[m,x]=v;return Array.isArray(x)?x.includes({...a,...i}[m]):{...a,...i}[m]===x})?[...u,p,g]:u},[]);return Yn(e,s,c,r==null?void 0:r.class,r==null?void 0:r.className)},gl=ue("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 vl({className:e,variant:t,size:r,asChild:n=!1,children:o,...a}){const s=n?pr:"button";return d.jsx(s,{"data-slot":"button",className:F(gl({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)}}var ie=globalThis!=null&&globalThis.document?l.useLayoutEffect:()=>{},xl=l[" useInsertionEffect ".trim().toString()]||ie;function Te({prop:e,defaultProp:t,onChange:r=()=>{},caller:n}){const[o,a,s]=bl({defaultProp:t,onChange:r}),i=e!==void 0,c=i?e:o;{const f=l.useRef(e!==void 0);l.useEffect(()=>{const p=f.current;p!==i&&console.warn(`${n} is changing from ${p?"controlled":"uncontrolled"} to ${i?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),f.current=i},[i,n])}const u=l.useCallback(f=>{var p;if(i){const g=yl(f)?f(e):f;g!==e&&((p=s.current)==null||p.call(s,g))}else a(f)},[i,e,a,s]);return[c,u]}function bl({defaultProp:e,onChange:t}){const[r,n]=l.useState(e),o=l.useRef(r),a=l.useRef(t);return xl(()=>{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 yl(e){return typeof e=="function"}var wl=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],V=wl.reduce((e,t)=>{const r=Ve(`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),d.jsx(c,{...i,ref:a})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function Sl(e,t){e&&At.flushSync(()=>e.dispatchEvent(t))}var qn="Toggle",Xn=l.forwardRef((e,t)=>{const{pressed:r,defaultPressed:n,onPressedChange:o,...a}=e,[s,i]=Te({prop:r,onChange:o,defaultProp:n??!1,caller:qn});return d.jsx(V.button,{type:"button","aria-pressed":s,"data-state":s?"on":"off","data-disabled":e.disabled?"":void 0,...a,ref:t,onClick:B(e.onClick,()=>{e.disabled||i(!s)})})});Xn.displayName=qn;var Zn=Xn;const Jn=ue(["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"],{variants:{variant:{classic:["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=on]:bg-neutral-black-1 data-[state=on]:hover:shadow-[0_0_0_3px_rgba(10,10,10,.1)]","data-[state=on]:focus-visible:shadow-[0_0_0_3px_rgba(10,10,10,0.2)]","data-[state=on]: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=on]:disabled:bg-neutral-black-5 data-[state=on]:disabled:hover:shadow-none data-[state=on]:disabled:focus-visible:shadow-none data-[state=on]:disabled:active:shadow-none"]}},defaultVariants:{variant:"classic"}}),Qn=ue(["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)]"],{variants:{variant:{classic:["h-[11px] w-[11px] bg-white","translate-x-0 group-data-[state=on]:translate-x-[12px]"]}},defaultVariants:{variant:"classic"}}),eo=te.forwardRef(({pressed:e=!1,onPressedChange:t,variant:r="classic",disabled:n=!1,className:o,id:a,name:s,label:i,description:c,labelPosition:u="right","aria-label":f,"aria-labelledby":p,children:g,...h},v)=>{const m=te.useId(),x=a||m,y=`${x}-label`,b=`${x}-description`,w=k=>{!n&&t&&t(k)},C=d.jsx(Zn,{ref:v,pressed:e,onPressedChange:w,disabled:n,"aria-label":f,"aria-labelledby":p||(i?y:void 0),"aria-describedby":c?b:void 0,className:F(Jn({variant:r}),o),id:x,name:s,...h,children:g||d.jsx("span",{className:F(Qn({variant:r})),"aria-hidden":"true"})});return!i&&!c?C:d.jsxs("div",{className:F("flex gap-3",u==="left"?"flex-row-reverse":"flex-row",n&&"opacity-50 cursor-not-allowed"),children:[C,d.jsxs("div",{className:"flex flex-col justify-center",children:[i&&d.jsx("label",{id:y,htmlFor:x,className:F("text-sm font-medium leading-none cursor-pointer",n&&"cursor-not-allowed"),children:i}),c&&d.jsx("p",{id:b,className:"text-xs text-muted-foreground mt-1",children:c})]})]})});eo.displayName="Toggle";const to=te.forwardRef(({defaultPressed:e=!1,variant:t="classic",disabled:r=!1,className:n,id:o,name:a,label:s,description:i,labelPosition:c="right","aria-label":u,"aria-labelledby":f,onPressedChange:p,children:g,...h},v)=>{const[m,x]=te.useState(e),y=te.useId(),b=o||y,w=`${b}-label`,C=`${b}-description`,k=R=>{r||(x(R),p&&p(R))},N=d.jsx(Zn,{ref:v,pressed:m,onPressedChange:k,disabled:r,"aria-label":u,"aria-labelledby":f||(s?w:void 0),"aria-describedby":i?C:void 0,className:F(Jn({variant:t}),n),id:b,name:a,...h,children:g||d.jsx("span",{className:F(Qn({variant:t})),"aria-hidden":"true"})});return!s&&!i?N:d.jsxs("div",{className:F("flex gap-2.5",c==="left"?"flex-row-reverse":"flex-row",r&&"opacity-50 cursor-not-allowed"),children:[N,d.jsxs("div",{className:"flex flex-col justify-center gap-1",children:[s&&d.jsx("label",{id:w,htmlFor:b,className:F("text-sm font-medium leading-none cursor-pointer text-neutral-black-1",r&&"cursor-not-allowed"),children:s}),i&&d.jsx("p",{id:C,className:"text-xs text-neutral-black-1",children:i})]})]})});to.displayName="StatefulToggle";function Cl(e,t){const r=l.createContext(t),n=a=>{const{children:s,...i}=a,c=l.useMemo(()=>i,Object.values(i));return d.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 xe(e,t=[]){let r=[];function n(a,s){const i=l.createContext(s),c=r.length;r=[...r,s];const u=p=>{var y;const{scope:g,children:h,...v}=p,m=((y=g==null?void 0:g[e])==null?void 0:y[c])||i,x=l.useMemo(()=>v,Object.values(v));return d.jsx(m.Provider,{value:x,children:h})};u.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[u,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,El(o,...t)]}function El(...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:u})=>{const p=c(a)[`__scope${u}`];return{...i,...p}},{});return l.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return r.scopeName=t.scopeName,r}function ro(e){const t=e+"CollectionProvider",[r,n]=xe(t),[o,a]=r(t,{collectionRef:{current:null},itemMap:new Map}),s=m=>{const{scope:x,children:y}=m,b=te.useRef(null),w=te.useRef(new Map).current;return d.jsx(o,{scope:x,itemMap:w,collectionRef:b,children:y})};s.displayName=t;const i=e+"CollectionSlot",c=Ve(i),u=te.forwardRef((m,x)=>{const{scope:y,children:b}=m,w=a(i,y),C=ae(x,w.collectionRef);return d.jsx(c,{ref:C,children:b})});u.displayName=i;const f=e+"CollectionItemSlot",p="data-radix-collection-item",g=Ve(f),h=te.forwardRef((m,x)=>{const{scope:y,children:b,...w}=m,C=te.useRef(null),k=ae(x,C),N=a(f,y);return te.useEffect(()=>(N.itemMap.set(C,{ref:C,...w}),()=>void N.itemMap.delete(C))),d.jsx(g,{[p]:"",ref:k,children:b})});h.displayName=f;function v(m){const x=a(e+"CollectionConsumer",m);return te.useCallback(()=>{const b=x.collectionRef.current;if(!b)return[];const w=Array.from(b.querySelectorAll(`[${p}]`));return Array.from(x.itemMap.values()).sort((N,R)=>w.indexOf(N.ref.current)-w.indexOf(R.ref.current))},[x.collectionRef,x.itemMap])}return[{Provider:s,Slot:u,ItemSlot:h},v,n]}var kl=l[" useId ".trim().toString()]||(()=>{}),Rl=0;function le(e){const[t,r]=l.useState(kl());return ie(()=>{r(n=>n??String(Rl++))},[e]),t?`radix-${t}`:""}function Re(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 _l=l.createContext(void 0);function yr(e){const t=l.useContext(_l);return e||t||"ltr"}var wr="rovingFocusGroup.onEntryFocus",Pl={bubbles:!1,cancelable:!0},pt="RovingFocusGroup",[Sr,no,Al]=ro(pt),[Nl,oo]=xe(pt,[Al]),[Tl,Ol]=Nl(pt),ao=l.forwardRef((e,t)=>d.jsx(Sr.Provider,{scope:e.__scopeRovingFocusGroup,children:d.jsx(Sr.Slot,{scope:e.__scopeRovingFocusGroup,children:d.jsx(Il,{...e,ref:t})})}));ao.displayName=pt;var Il=l.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,orientation:n,loop:o=!1,dir:a,currentTabStopId:s,defaultCurrentTabStopId:i,onCurrentTabStopIdChange:c,onEntryFocus:u,preventScrollOnEntryFocus:f=!1,...p}=e,g=l.useRef(null),h=ae(t,g),v=yr(a),[m,x]=Te({prop:s,defaultProp:i??null,onChange:c,caller:pt}),[y,b]=l.useState(!1),w=Re(u),C=no(r),k=l.useRef(!1),[N,R]=l.useState(0);return l.useEffect(()=>{const _=g.current;if(_)return _.addEventListener(wr,w),()=>_.removeEventListener(wr,w)},[w]),d.jsx(Tl,{scope:r,orientation:n,dir:v,loop:o,currentTabStopId:m,onItemFocus:l.useCallback(_=>x(_),[x]),onItemShiftTab:l.useCallback(()=>b(!0),[]),onFocusableItemAdd:l.useCallback(()=>R(_=>_+1),[]),onFocusableItemRemove:l.useCallback(()=>R(_=>_-1),[]),children:d.jsx(V.div,{tabIndex:y||N===0?-1:0,"data-orientation":n,...p,ref:h,style:{outline:"none",...e.style},onMouseDown:B(e.onMouseDown,()=>{k.current=!0}),onFocus:B(e.onFocus,_=>{const W=!k.current;if(_.target===_.currentTarget&&W&&!y){const K=new CustomEvent(wr,Pl);if(_.currentTarget.dispatchEvent(K),!K.defaultPrevented){const X=C().filter(D=>D.focusable),Q=X.find(D=>D.active),ee=X.find(D=>D.id===m),q=[Q,ee,...X].filter(Boolean).map(D=>D.ref.current);lo(q,f)}}k.current=!1}),onBlur:B(e.onBlur,()=>b(!1))})})}),so="RovingFocusGroupItem",io=l.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,focusable:n=!0,active:o=!1,tabStopId:a,children:s,...i}=e,c=le(),u=a||c,f=Ol(so,r),p=f.currentTabStopId===u,g=no(r),{onFocusableItemAdd:h,onFocusableItemRemove:v,currentTabStopId:m}=f;return l.useEffect(()=>{if(n)return h(),()=>v()},[n,h,v]),d.jsx(Sr.ItemSlot,{scope:r,id:u,focusable:n,active:o,children:d.jsx(V.span,{tabIndex:p?0:-1,"data-orientation":f.orientation,...i,ref:t,onMouseDown:B(e.onMouseDown,x=>{n?f.onItemFocus(u):x.preventDefault()}),onFocus:B(e.onFocus,()=>f.onItemFocus(u)),onKeyDown:B(e.onKeyDown,x=>{if(x.key==="Tab"&&x.shiftKey){f.onItemShiftTab();return}if(x.target!==x.currentTarget)return;const y=Dl(x,f.orientation,f.dir);if(y!==void 0){if(x.metaKey||x.ctrlKey||x.altKey||x.shiftKey)return;x.preventDefault();let w=g().filter(C=>C.focusable).map(C=>C.ref.current);if(y==="last")w.reverse();else if(y==="prev"||y==="next"){y==="prev"&&w.reverse();const C=w.indexOf(x.currentTarget);w=f.loop?Ll(w,C+1):w.slice(C+1)}setTimeout(()=>lo(w))}}),children:typeof s=="function"?s({isCurrentTabStop:p,hasTabStop:m!=null}):s})})});io.displayName=so;var jl={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Ml(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function Dl(e,t,r){const n=Ml(e.key,r);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(n))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(n)))return jl[n]}function lo(e,t=!1){const r=document.activeElement;for(const n of e)if(n===r||(n.focus({preventScroll:t}),document.activeElement!==r))return}function Ll(e,t){return e.map((r,n)=>e[(t+n)%e.length])}var Fl=ao,$l=io;function co(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,u=Array.isArray(c)?c[0]:c;s=u.inlineSize,i=u.blockSize}else s=e.offsetWidth,i=e.offsetHeight;r({width:s,height:i})});return n.observe(e,{box:"border-box"}),()=>n.unobserve(e)}else r(void 0)},[e]),t}function uo(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 Vl(e,t){return l.useReducer((r,n)=>t[r][n]??r,e)}var _e=e=>{const{present:t,children:r}=e,n=zl(t),o=typeof r=="function"?r({present:n.isPresent}):l.Children.only(r),a=ae(n.ref,Bl(o));return typeof r=="function"||n.isPresent?l.cloneElement(o,{ref:a}):null};_e.displayName="Presence";function zl(e){const[t,r]=l.useState(),n=l.useRef(null),o=l.useRef(e),a=l.useRef("none"),s=e?"mounted":"unmounted",[i,c]=Vl(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return l.useEffect(()=>{const u=Ot(n.current);a.current=i==="mounted"?u:"none"},[i]),ie(()=>{const u=n.current,f=o.current;if(f!==e){const g=a.current,h=Ot(u);e?c("MOUNT"):h==="none"||(u==null?void 0:u.display)==="none"?c("UNMOUNT"):c(f&&g!==h?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,c]),ie(()=>{if(t){let u;const f=t.ownerDocument.defaultView??window,p=h=>{const m=Ot(n.current).includes(CSS.escape(h.animationName));if(h.target===t&&m&&(c("ANIMATION_END"),!o.current)){const x=t.style.animationFillMode;t.style.animationFillMode="forwards",u=f.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=x)})}},g=h=>{h.target===t&&(a.current=Ot(n.current))};return t.addEventListener("animationstart",g),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{f.clearTimeout(u),t.removeEventListener("animationstart",g),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(i),ref:l.useCallback(u=>{n.current=u?getComputedStyle(u):null,r(u)},[])}}function Ot(e){return(e==null?void 0:e.animationName)||"none"}function Bl(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 Cr="Radio",[Wl,fo]=xe(Cr),[Hl,Gl]=Wl(Cr),po=l.forwardRef((e,t)=>{const{__scopeRadio:r,name:n,checked:o=!1,required:a,disabled:s,value:i="on",onCheck:c,form:u,...f}=e,[p,g]=l.useState(null),h=ae(t,x=>g(x)),v=l.useRef(!1),m=p?u||!!p.closest("form"):!0;return d.jsxs(Hl,{scope:r,checked:o,disabled:s,children:[d.jsx(V.button,{type:"button",role:"radio","aria-checked":o,"data-state":vo(o),"data-disabled":s?"":void 0,disabled:s,value:i,...f,ref:h,onClick:B(e.onClick,x=>{o||c==null||c(),m&&(v.current=x.isPropagationStopped(),v.current||x.stopPropagation())})}),m&&d.jsx(go,{control:p,bubbles:!v.current,name:n,value:i,checked:o,required:a,disabled:s,form:u,style:{transform:"translateX(-100%)"}})]})});po.displayName=Cr;var mo="RadioIndicator",ho=l.forwardRef((e,t)=>{const{__scopeRadio:r,forceMount:n,...o}=e,a=Gl(mo,r);return d.jsx(_e,{present:n||a.checked,children:d.jsx(V.span,{"data-state":vo(a.checked),"data-disabled":a.disabled?"":void 0,...o,ref:t})})});ho.displayName=mo;var Ul="RadioBubbleInput",go=l.forwardRef(({__scopeRadio:e,control:t,checked:r,bubbles:n=!0,...o},a)=>{const s=l.useRef(null),i=ae(s,a),c=uo(r),u=co(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]),d.jsx(V.input,{type:"radio","aria-hidden":!0,defaultChecked:r,...o,tabIndex:-1,ref:i,style:{...o.style,...u,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});go.displayName=Ul;function vo(e){return e?"checked":"unchecked"}var Kl=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],It="RadioGroup",[Yl,Km]=xe(It,[oo,fo]),xo=oo(),bo=fo(),[ql,Xl]=Yl(It),yo=l.forwardRef((e,t)=>{const{__scopeRadioGroup:r,name:n,defaultValue:o,value:a,required:s=!1,disabled:i=!1,orientation:c,dir:u,loop:f=!0,onValueChange:p,...g}=e,h=xo(r),v=yr(u),[m,x]=Te({prop:a,defaultProp:o??null,onChange:p,caller:It});return d.jsx(ql,{scope:r,name:n,required:s,disabled:i,value:m,onValueChange:x,children:d.jsx(Fl,{asChild:!0,...h,orientation:c,dir:v,loop:f,children:d.jsx(V.div,{role:"radiogroup","aria-required":s,"aria-orientation":c,"data-disabled":i?"":void 0,dir:v,...g,ref:t})})})});yo.displayName=It;var wo="RadioGroupItem",So=l.forwardRef((e,t)=>{const{__scopeRadioGroup:r,disabled:n,...o}=e,a=Xl(wo,r),s=a.disabled||n,i=xo(r),c=bo(r),u=l.useRef(null),f=ae(t,u),p=a.value===o.value,g=l.useRef(!1);return l.useEffect(()=>{const h=m=>{Kl.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)}},[]),d.jsx($l,{asChild:!0,...i,focusable:!s,active:p,children:d.jsx(po,{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=u.current)==null||h.click())})})})});So.displayName=wo;var Zl="RadioGroupIndicator",Co=l.forwardRef((e,t)=>{const{__scopeRadioGroup:r,...n}=e,o=bo(r);return d.jsx(ho,{...o,...n,ref:t})});Co.displayName=Zl;var Eo=yo,ko=So,Jl=Co;const Ql=()=>({root:F("relative inline-flex items-center cursor-pointer","data-[disabled]:cursor-not-allowed"),indicator:F("relative flex items-center justify-center","w-4 h-4 rounded-full border-2 transition-all duration-200","border-[var(--color-neutral-black-2)]","hover:shadow-[0_0_0_3px_var(--color-neutral-black-5)] hover:bg-[var(--color-neutral-black-5)]","focus:shadow-[0_0_0_3px_var(--color-neutral-black-3)] focus:bg-[var(--color-neutral-black-3)]","data-[state=checked]:border-[var(--color-neutral-black-1)]","data-[state=checked]:hover:shadow-[0_0_0_3px_var(--color-neutral-black-4)]","data-[state=checked]:hover:bg-[var(--color-neutral-black-4)]","data-[state=checked]:focus:shadow-[0_0_0_3px_var(--color-neutral-black-1)]","data-[state=checked]:focus:bg-[var(--color-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-[var(--color-neutral-black-3)]"),innerCircle:F("w-2 h-2 rounded-full transition-all duration-200","bg-[var(--color-neutral-black-1)]"),label:F("ml-2.5 text-md cursor-pointer select-none","data-[disabled]:cursor-not-allowed")}),Ro=l.forwardRef(({className:e,...t},r)=>d.jsx(Eo,{className:F("grid gap-2",e),...t,ref:r}));Ro.displayName=Eo.displayName;const _o=l.forwardRef(({children:e,disabled:t,...r},n)=>{const o=Ql();return d.jsxs("label",{className:o.root,"data-disabled":t,children:[d.jsx(ko,{ref:n,className:F(o.indicator),disabled:t,...r,children:d.jsx(Jl,{className:"flex items-center justify-center",children:d.jsx("div",{className:o.innerCircle})})}),e&&d.jsx("span",{className:o.label,"data-disabled":t,children:e})]})});_o.displayName=ko.displayName;function ec(e,t=globalThis==null?void 0:globalThis.document){const r=Re(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 tc="DismissableLayer",Er="dismissableLayer.update",rc="dismissableLayer.pointerDownOutside",nc="dismissableLayer.focusOutside",Po,Ao=l.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),mt=l.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:s,onDismiss:i,...c}=e,u=l.useContext(Ao),[f,p]=l.useState(null),g=(f==null?void 0:f.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,h]=l.useState({}),v=ae(t,R=>p(R)),m=Array.from(u.layers),[x]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),y=m.indexOf(x),b=f?m.indexOf(f):-1,w=u.layersWithOutsidePointerEventsDisabled.size>0,C=b>=y,k=sc(R=>{const _=R.target,W=[...u.branches].some(K=>K.contains(_));!C||W||(o==null||o(R),s==null||s(R),R.defaultPrevented||i==null||i())},g),N=ic(R=>{const _=R.target;[...u.branches].some(K=>K.contains(_))||(a==null||a(R),s==null||s(R),R.defaultPrevented||i==null||i())},g);return ec(R=>{b===u.layers.size-1&&(n==null||n(R),!R.defaultPrevented&&i&&(R.preventDefault(),i()))},g),l.useEffect(()=>{if(f)return r&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(Po=g.body.style.pointerEvents,g.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(f)),u.layers.add(f),No(),()=>{r&&u.layersWithOutsidePointerEventsDisabled.size===1&&(g.body.style.pointerEvents=Po)}},[f,g,r,u]),l.useEffect(()=>()=>{f&&(u.layers.delete(f),u.layersWithOutsidePointerEventsDisabled.delete(f),No())},[f,u]),l.useEffect(()=>{const R=()=>h({});return document.addEventListener(Er,R),()=>document.removeEventListener(Er,R)},[]),d.jsx(V.div,{...c,ref:v,style:{pointerEvents:w?C?"auto":"none":void 0,...e.style},onFocusCapture:B(e.onFocusCapture,N.onFocusCapture),onBlurCapture:B(e.onBlurCapture,N.onBlurCapture),onPointerDownCapture:B(e.onPointerDownCapture,k.onPointerDownCapture)})});mt.displayName=tc;var oc="DismissableLayerBranch",ac=l.forwardRef((e,t)=>{const r=l.useContext(Ao),n=l.useRef(null),o=ae(t,n);return l.useEffect(()=>{const a=n.current;if(a)return r.branches.add(a),()=>{r.branches.delete(a)}},[r.branches]),d.jsx(V.div,{...e,ref:o})});ac.displayName=oc;function sc(e,t=globalThis==null?void 0:globalThis.document){const r=Re(e),n=l.useRef(!1),o=l.useRef(()=>{});return l.useEffect(()=>{const a=i=>{if(i.target&&!n.current){let c=function(){To(rc,r,u,{discrete:!0})};const u={originalEvent:i};i.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=c,t.addEventListener("click",o.current,{once:!0})):c()}else t.removeEventListener("click",o.current);n.current=!1},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 ic(e,t=globalThis==null?void 0:globalThis.document){const r=Re(e),n=l.useRef(!1);return l.useEffect(()=>{const o=a=>{a.target&&!n.current&&To(nc,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 No(){const e=new CustomEvent(Er);document.dispatchEvent(e)}function To(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?Sl(o,a):o.dispatchEvent(a)}var kr="focusScope.autoFocusOnMount",Rr="focusScope.autoFocusOnUnmount",Oo={bubbles:!1,cancelable:!0},lc="FocusScope",jt=l.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...s}=e,[i,c]=l.useState(null),u=Re(o),f=Re(a),p=l.useRef(null),g=ae(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:Oe(p.current,{select:!0})},x=function(w){if(h.paused||!i)return;const C=w.relatedTarget;C!==null&&(i.contains(C)||Oe(p.current,{select:!0}))},y=function(w){if(document.activeElement===document.body)for(const k of w)k.removedNodes.length>0&&Oe(i)};document.addEventListener("focusin",m),document.addEventListener("focusout",x);const b=new MutationObserver(y);return i&&b.observe(i,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",m),document.removeEventListener("focusout",x),b.disconnect()}}},[n,i,h.paused]),l.useEffect(()=>{if(i){Mo.add(h);const m=document.activeElement;if(!i.contains(m)){const y=new CustomEvent(kr,Oo);i.addEventListener(kr,u),i.dispatchEvent(y),y.defaultPrevented||(cc(mc(Io(i)),{select:!0}),document.activeElement===m&&Oe(i))}return()=>{i.removeEventListener(kr,u),setTimeout(()=>{const y=new CustomEvent(Rr,Oo);i.addEventListener(Rr,f),i.dispatchEvent(y),y.defaultPrevented||Oe(m??document.body,{select:!0}),i.removeEventListener(Rr,f),Mo.remove(h)},0)}}},[i,u,f,h]);const v=l.useCallback(m=>{if(!r&&!n||h.paused)return;const x=m.key==="Tab"&&!m.altKey&&!m.ctrlKey&&!m.metaKey,y=document.activeElement;if(x&&y){const b=m.currentTarget,[w,C]=uc(b);w&&C?!m.shiftKey&&y===C?(m.preventDefault(),r&&Oe(w,{select:!0})):m.shiftKey&&y===w&&(m.preventDefault(),r&&Oe(C,{select:!0})):y===b&&m.preventDefault()}},[r,n,h.paused]);return d.jsx(V.div,{tabIndex:-1,...s,ref:g,onKeyDown:v})});jt.displayName=lc;function cc(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(Oe(n,{select:t}),document.activeElement!==r)return}function uc(e){const t=Io(e),r=jo(t,e),n=jo(t.reverse(),e);return[r,n]}function Io(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 jo(e,t){for(const r of e)if(!dc(r,{upTo:t}))return r}function dc(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 fc(e){return e instanceof HTMLInputElement&&"select"in e}function Oe(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&fc(e)&&t&&e.select()}}var Mo=pc();function pc(){let e=[];return{add(t){const r=e[0];t!==r&&(r==null||r.pause()),e=Do(e,t),e.unshift(t)},remove(t){var r;e=Do(e,t),(r=e[0])==null||r.resume()}}}function Do(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function mc(e){return e.filter(t=>t.tagName!=="A")}var hc="Portal",ht=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?kn.createPortal(d.jsx(V.div,{...n,ref:t}),s):null});ht.displayName=hc;var _r=0;function Pr(){l.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Lo()),document.body.insertAdjacentElement("beforeend",e[1]??Lo()),_r++,()=>{_r===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),_r--}},[])}function Lo(){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 be=function(){return be=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},be.apply(this,arguments)};function Fo(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 gc(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 Mt="right-scroll-bar-position",Dt="width-before-scroll-bar",vc="with-scroll-bars-hidden",xc="--removed-body-scroll-bar-size";function Ar(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function bc(e,t){var r=te.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 yc=typeof window<"u"?l.useLayoutEffect:l.useEffect,$o=new WeakMap;function wc(e,t){var r=bc(null,function(n){return e.forEach(function(o){return Ar(o,n)})});return yc(function(){var n=$o.get(r);if(n){var o=new Set(n),a=new Set(e),s=r.current;o.forEach(function(i){a.has(i)||Ar(i,null)}),a.forEach(function(i){o.has(i)||Ar(i,s)})}$o.set(r,e)},[e]),r}function Sc(e){return e}function Cc(e,t){t===void 0&&(t=Sc);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)},u=function(){return Promise.resolve().then(c)};u(),r={push:function(f){s.push(f),u()},filter:function(f){return s=s.filter(f),r}}}};return o}function Ec(e){e===void 0&&(e={});var t=Cc(null);return t.options=be({async:!0,ssr:!1},e),t}var Vo=function(e){var t=e.sideCar,r=Fo(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,be({},r))};Vo.isSideCarExport=!0;function kc(e,t){return e.useMedium(t),Vo}var zo=Ec(),Nr=function(){},Lt=l.forwardRef(function(e,t){var r=l.useRef(null),n=l.useState({onScrollCapture:Nr,onWheelCapture:Nr,onTouchMoveCapture:Nr}),o=n[0],a=n[1],s=e.forwardProps,i=e.children,c=e.className,u=e.removeScrollBar,f=e.enabled,p=e.shards,g=e.sideCar,h=e.noRelative,v=e.noIsolation,m=e.inert,x=e.allowPinchZoom,y=e.as,b=y===void 0?"div":y,w=e.gapMode,C=Fo(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),k=g,N=wc([r,t]),R=be(be({},C),o);return l.createElement(l.Fragment,null,f&&l.createElement(k,{sideCar:zo,removeScrollBar:u,shards:p,noRelative:h,noIsolation:v,inert:m,setCallbacks:a,allowPinchZoom:!!x,lockRef:r,gapMode:w}),s?l.cloneElement(l.Children.only(i),be(be({},R),{ref:N})):l.createElement(b,be({},R,{className:c,ref:N}),i))});Lt.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Lt.classNames={fullWidth:Dt,zeroRight:Mt};var Rc=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function _c(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Rc();return t&&e.setAttribute("nonce",t),e}function Pc(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Ac(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Nc=function(){var e=0,t=null;return{add:function(r){e==0&&(t=_c())&&(Pc(t,r),Ac(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Tc=function(){var e=Nc();return function(t,r){l.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},Bo=function(){var e=Tc(),t=function(r){var n=r.styles,o=r.dynamic;return e(n,o),null};return t},Oc={left:0,top:0,right:0,gap:0},Tr=function(e){return parseInt(e||"",10)||0},Ic=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[Tr(r),Tr(n),Tr(o)]},jc=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Oc;var t=Ic(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])}},Mc=Bo(),Xe="data-scroll-locked",Dc=function(e,t,r,n){var o=e.left,a=e.top,s=e.right,i=e.gap;return r===void 0&&(r="margin"),`
22
+ <%s key={someKey} {...props} />`,T,L,G,L),re[L+T]=!0)}if(L=null,S!==void 0&&(r(S),L=""+S),s($)&&(r($.key),L=""+$.key),"key"in $){S={};for(var Z in $)Z!=="key"&&(S[Z]=$[Z])}else S=$;return L&&i(S,typeof E=="function"?E.displayName||E.name||"Unknown":E),u(E,L,O,M,o(),S,Y,N)}function p(E){typeof E=="object"&&E!==null&&E.$$typeof===h&&E._store&&(E._store.validated=1)}var g=te,h=Symbol.for("react.transitional.element"),v=Symbol.for("react.portal"),m=Symbol.for("react.fragment"),x=Symbol.for("react.strict_mode"),y=Symbol.for("react.profiler"),b=Symbol.for("react.consumer"),w=Symbol.for("react.context"),C=Symbol.for("react.forward_ref"),k=Symbol.for("react.suspense"),A=Symbol.for("react.suspense_list"),R=Symbol.for("react.memo"),_=Symbol.for("react.lazy"),W=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,z=console.createTask?console.createTask:function(){return null};g={"react-stack-bottom-frame":function(E){return E()}};var q,D={},H=g["react-stack-bottom-frame"].bind(g,a)(),P=z(n(a)),re={};dt.Fragment=m,dt.jsx=function(E,$,S,T,M){var O=1e4>X.recentlyCreatedOwnerStacks++;return f(E,$,S,!1,T,M,O?Error("react-stack-top-frame"):H,O?z(n(E)):P)},dt.jsxs=function(E,$,S,T,M){var O=1e4>X.recentlyCreatedOwnerStacks++;return f(E,$,S,!0,T,M,O?Error("react-stack-top-frame"):H,O?z(n(E)):P)}}()),dt}process.env.NODE_ENV==="production"?fr.exports=Ai():fr.exports=Ti();var d=fr.exports;function An(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function $e(...e){return t=>{let r=!1;const n=e.map(o=>{const a=An(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():An(e[o],null)}}}}function ae(...e){return l.useCallback($e(...e),e)}function Ve(e){const t=Oi(e),r=l.forwardRef((n,o)=>{const{children:a,...s}=n,i=l.Children.toArray(a),c=i.find(ji);if(c){const u=c.props.children,f=i.map(p=>p===c?l.Children.count(u)>1?l.Children.only(null):l.isValidElement(u)?u.props.children:null:p);return d.jsx(t,{...s,ref:o,children:l.isValidElement(u)?l.cloneElement(u,void 0,f):null})}return d.jsx(t,{...s,ref:o,children:a})});return r.displayName=`${e}.Slot`,r}var pr=Ve("Slot");function Oi(e){const t=l.forwardRef((r,n)=>{const{children:o,...a}=r;if(l.isValidElement(o)){const s=Di(o),i=Mi(a,o.props);return o.type!==l.Fragment&&(i.ref=n?$e(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 Tn=Symbol("radix.slottable");function Ii(e){const t=({children:r})=>d.jsx(d.Fragment,{children:r});return t.displayName=`${e}.Slottable`,t.__radixId=Tn,t}function ji(e){return l.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Tn}function Mi(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 Di(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 On(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=On(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function In(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=On(e))&&(n&&(n+=" "),n+=t);return n}const mr="-",Li=e=>{const t=$i(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:s=>{const i=s.split(mr);return i[0]===""&&i.length!==1&&i.shift(),jn(i,t)||Fi(s)},getConflictingClassGroupIds:(s,i)=>{const c=r[s]||[];return i&&n[s]?[...c,...n[s]]:c}}},jn=(e,t)=>{var s;if(e.length===0)return t.classGroupId;const r=e[0],n=t.nextPart.get(r),o=n?jn(e.slice(1),n):void 0;if(o)return o;if(t.validators.length===0)return;const a=e.join(mr);return(s=t.validators.find(({validator:i})=>i(a)))==null?void 0:s.classGroupId},Mn=/^\[(.+)\]$/,Fi=e=>{if(Mn.test(e)){const t=Mn.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},$i=e=>{const{theme:t,classGroups:r}=e,n={nextPart:new Map,validators:[]};for(const o in r)hr(r[o],n,o,t);return n},hr=(e,t,r,n)=>{e.forEach(o=>{if(typeof o=="string"){const a=o===""?t:Dn(t,o);a.classGroupId=r;return}if(typeof o=="function"){if(Vi(o)){hr(o(n),t,r,n);return}t.validators.push({validator:o,classGroupId:r});return}Object.entries(o).forEach(([a,s])=>{hr(s,Dn(t,a),r,n)})})},Dn=(e,t)=>{let r=e;return t.split(mr).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r},Vi=e=>e.isThemeGetter,zi=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)}}},gr="!",vr=":",Bi=vr.length,Wi=e=>{const{prefix:t,experimentalParseClassName:r}=e;let n=o=>{const a=[];let s=0,i=0,c=0,u;for(let v=0;v<o.length;v++){let m=o[v];if(s===0&&i===0){if(m===vr){a.push(o.slice(c,v)),c=v+Bi;continue}if(m==="/"){u=v;continue}}m==="["?s++:m==="]"?s--:m==="("?i++:m===")"&&i--}const f=a.length===0?o:o.substring(c),p=Hi(f),g=p!==f,h=u&&u>c?u-c:void 0;return{modifiers:a,hasImportantModifier:g,baseClassName:p,maybePostfixModifierPosition:h}};if(t){const o=t+vr,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},Hi=e=>e.endsWith(gr)?e.substring(0,e.length-1):e.startsWith(gr)?e.substring(1):e,Gi=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}},Ui=e=>({cache:zi(e.cacheSize),parseClassName:Wi(e),sortModifiers:Gi(e),...Li(e)}),Ki=/\s+/,Yi=(e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:o,sortModifiers:a}=t,s=[],i=e.trim().split(Ki);let c="";for(let u=i.length-1;u>=0;u-=1){const f=i[u],{isExternal:p,modifiers:g,hasImportantModifier:h,baseClassName:v,maybePostfixModifierPosition:m}=r(f);if(p){c=f+(c.length>0?" "+c:c);continue}let x=!!m,y=n(x?v.substring(0,m):v);if(!y){if(!x){c=f+(c.length>0?" "+c:c);continue}if(y=n(v),!y){c=f+(c.length>0?" "+c:c);continue}x=!1}const b=a(g).join(":"),w=h?b+gr:b,C=w+y;if(s.includes(C))continue;s.push(C);const k=o(y,x);for(let A=0;A<k.length;++A){const R=k[A];s.push(w+R)}c=f+(c.length>0?" "+c:c)}return c};function qi(){let e=0,t,r,n="";for(;e<arguments.length;)(t=arguments[e++])&&(r=Ln(t))&&(n&&(n+=" "),n+=r);return n}const Ln=e=>{if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=Ln(e[n]))&&(r&&(r+=" "),r+=t);return r};function Xi(e,...t){let r,n,o,a=s;function s(c){const u=t.reduce((f,p)=>p(f),e());return r=Ui(u),n=r.cache.get,o=r.cache.set,a=i,i(c)}function i(c){const u=n(c);if(u)return u;const f=Yi(c,r);return o(c,f),f}return function(){return a(qi.apply(null,arguments))}}const se=e=>{const t=r=>r[e]||[];return t.isThemeGetter=!0,t},Fn=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,$n=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Zi=/^\d+\/\d+$/,Ji=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Qi=/\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$/,el=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,tl=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,rl=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ke=e=>Zi.test(e),J=e=>!!e&&!Number.isNaN(Number(e)),Ae=e=>!!e&&Number.isInteger(Number(e)),xr=e=>e.endsWith("%")&&J(e.slice(0,-1)),ke=e=>Ji.test(e),nl=()=>!0,ol=e=>Qi.test(e)&&!el.test(e),Vn=()=>!1,al=e=>tl.test(e),sl=e=>rl.test(e),il=e=>!I(e)&&!j(e),ll=e=>Ye(e,Gn,Vn),I=e=>Fn.test(e),ze=e=>Ye(e,Un,ol),br=e=>Ye(e,pl,J),zn=e=>Ye(e,Wn,Vn),cl=e=>Ye(e,Hn,sl),At=e=>Ye(e,Kn,al),j=e=>$n.test(e),ft=e=>qe(e,Un),ul=e=>qe(e,ml),Bn=e=>qe(e,Wn),dl=e=>qe(e,Gn),fl=e=>qe(e,Hn),Tt=e=>qe(e,Kn,!0),Ye=(e,t,r)=>{const n=Fn.exec(e);return n?n[1]?t(n[1]):r(n[2]):!1},qe=(e,t,r=!1)=>{const n=$n.exec(e);return n?n[1]?t(n[1]):r:!1},Wn=e=>e==="position"||e==="percentage",Hn=e=>e==="image"||e==="url",Gn=e=>e==="length"||e==="size"||e==="bg-size",Un=e=>e==="length",pl=e=>e==="number",ml=e=>e==="family-name",Kn=e=>e==="shadow",hl=Xi(()=>{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"),u=se("radius"),f=se("shadow"),p=se("inset-shadow"),g=se("text-shadow"),h=se("drop-shadow"),v=se("blur"),m=se("perspective"),x=se("aspect"),y=se("ease"),b=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"],k=()=>[...C(),j,I],A=()=>["auto","hidden","clip","visible","scroll"],R=()=>["auto","contain","none"],_=()=>[j,I,c],W=()=>[Ke,"full","auto",..._()],K=()=>[Ae,"none","subgrid",j,I],X=()=>["auto",{span:["full",Ae,j,I]},Ae,j,I],Q=()=>[Ae,"auto",j,I],ee=()=>["auto","min","max","fr",j,I],z=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],q=()=>["start","end","center","stretch","center-safe","end-safe"],D=()=>["auto",..._()],H=()=>[Ke,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",..._()],P=()=>[e,j,I],re=()=>[...C(),Bn,zn,{position:[j,I]}],E=()=>["no-repeat",{repeat:["","x","y","space","round"]}],$=()=>["auto","cover","contain",dl,ll,{size:[j,I]}],S=()=>[xr,ft,ze],T=()=>["","none","full",u,j,I],M=()=>["",J,ft,ze],O=()=>["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"],N=()=>[J,xr,Bn,zn],L=()=>["","none",v,j,I],G=()=>["none",J,j,I],Z=()=>["none",J,j,I],ne=()=>[J,j,I],oe=()=>[Ke,"full",..._()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[ke],breakpoint:[ke],color:[nl],container:[ke],"drop-shadow":[ke],ease:["in","out","in-out"],font:[il],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[ke],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[ke],shadow:[ke],spacing:["px",J],text:[ke],"text-shadow":[ke],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Ke,I,j,x]}],container:["container"],columns:[{columns:[J,I,j,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:k()}],overflow:[{overflow:A()}],"overflow-x":[{"overflow-x":A()}],"overflow-y":[{"overflow-y":A()}],overscroll:[{overscroll:R()}],"overscroll-x":[{"overscroll-x":R()}],"overscroll-y":[{"overscroll-y":R()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:W()}],"inset-x":[{"inset-x":W()}],"inset-y":[{"inset-y":W()}],start:[{start:W()}],end:[{end:W()}],top:[{top:W()}],right:[{right:W()}],bottom:[{bottom:W()}],left:[{left:W()}],visibility:["visible","invisible","collapse"],z:[{z:[Ae,"auto",j,I]}],basis:[{basis:[Ke,"full","auto",i,..._()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[J,Ke,"auto","initial","none",I]}],grow:[{grow:["",J,j,I]}],shrink:[{shrink:["",J,j,I]}],order:[{order:[Ae,"first","last","none",j,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:_()}],"gap-x":[{"gap-x":_()}],"gap-y":[{"gap-y":_()}],"justify-content":[{justify:[...z(),"normal"]}],"justify-items":[{"justify-items":[...q(),"normal"]}],"justify-self":[{"justify-self":["auto",...q()]}],"align-content":[{content:["normal",...z()]}],"align-items":[{items:[...q(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...q(),{baseline:["","last"]}]}],"place-content":[{"place-content":z()}],"place-items":[{"place-items":[...q(),"baseline"]}],"place-self":[{"place-self":["auto",...q()]}],p:[{p:_()}],px:[{px:_()}],py:[{py:_()}],ps:[{ps:_()}],pe:[{pe:_()}],pt:[{pt:_()}],pr:[{pr:_()}],pb:[{pb:_()}],pl:[{pl:_()}],m:[{m:D()}],mx:[{mx:D()}],my:[{my:D()}],ms:[{ms:D()}],me:[{me:D()}],mt:[{mt:D()}],mr:[{mr:D()}],mb:[{mb:D()}],ml:[{ml:D()}],"space-x":[{"space-x":_()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":_()}],"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,ft,ze]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,j,br]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",xr,I]}],"font-family":[{font:[ul,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,j,I]}],"line-clamp":[{"line-clamp":[J,"none",j,br]}],leading:[{leading:[a,..._()]}],"list-image":[{"list-image":["none",j,I]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",j,I]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:P()}],"text-color":[{text:P()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...O(),"wavy"]}],"text-decoration-thickness":[{decoration:[J,"from-font","auto",j,ze]}],"text-decoration-color":[{decoration:P()}],"underline-offset":[{"underline-offset":[J,"auto",j,I]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:_()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",j,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",j,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:re()}],"bg-repeat":[{bg:E()}],"bg-size":[{bg:$()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Ae,j,I],radial:["",j,I],conic:[Ae,j,I]},fl,cl]}],"bg-color":[{bg:P()}],"gradient-from-pos":[{from:S()}],"gradient-via-pos":[{via:S()}],"gradient-to-pos":[{to:S()}],"gradient-from":[{from:P()}],"gradient-via":[{via:P()}],"gradient-to":[{to:P()}],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:[...O(),"hidden","none"]}],"divide-style":[{divide:[...O(),"hidden","none"]}],"border-color":[{border:P()}],"border-color-x":[{"border-x":P()}],"border-color-y":[{"border-y":P()}],"border-color-s":[{"border-s":P()}],"border-color-e":[{"border-e":P()}],"border-color-t":[{"border-t":P()}],"border-color-r":[{"border-r":P()}],"border-color-b":[{"border-b":P()}],"border-color-l":[{"border-l":P()}],"divide-color":[{divide:P()}],"outline-style":[{outline:[...O(),"none","hidden"]}],"outline-offset":[{"outline-offset":[J,j,I]}],"outline-w":[{outline:["",J,ft,ze]}],"outline-color":[{outline:P()}],shadow:[{shadow:["","none",f,Tt,At]}],"shadow-color":[{shadow:P()}],"inset-shadow":[{"inset-shadow":["none",p,Tt,At]}],"inset-shadow-color":[{"inset-shadow":P()}],"ring-w":[{ring:M()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:P()}],"ring-offset-w":[{"ring-offset":[J,ze]}],"ring-offset-color":[{"ring-offset":P()}],"inset-ring-w":[{"inset-ring":M()}],"inset-ring-color":[{"inset-ring":P()}],"text-shadow":[{"text-shadow":["none",g,Tt,At]}],"text-shadow-color":[{"text-shadow":P()}],opacity:[{opacity:[J,j,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":N()}],"mask-image-linear-to-pos":[{"mask-linear-to":N()}],"mask-image-linear-from-color":[{"mask-linear-from":P()}],"mask-image-linear-to-color":[{"mask-linear-to":P()}],"mask-image-t-from-pos":[{"mask-t-from":N()}],"mask-image-t-to-pos":[{"mask-t-to":N()}],"mask-image-t-from-color":[{"mask-t-from":P()}],"mask-image-t-to-color":[{"mask-t-to":P()}],"mask-image-r-from-pos":[{"mask-r-from":N()}],"mask-image-r-to-pos":[{"mask-r-to":N()}],"mask-image-r-from-color":[{"mask-r-from":P()}],"mask-image-r-to-color":[{"mask-r-to":P()}],"mask-image-b-from-pos":[{"mask-b-from":N()}],"mask-image-b-to-pos":[{"mask-b-to":N()}],"mask-image-b-from-color":[{"mask-b-from":P()}],"mask-image-b-to-color":[{"mask-b-to":P()}],"mask-image-l-from-pos":[{"mask-l-from":N()}],"mask-image-l-to-pos":[{"mask-l-to":N()}],"mask-image-l-from-color":[{"mask-l-from":P()}],"mask-image-l-to-color":[{"mask-l-to":P()}],"mask-image-x-from-pos":[{"mask-x-from":N()}],"mask-image-x-to-pos":[{"mask-x-to":N()}],"mask-image-x-from-color":[{"mask-x-from":P()}],"mask-image-x-to-color":[{"mask-x-to":P()}],"mask-image-y-from-pos":[{"mask-y-from":N()}],"mask-image-y-to-pos":[{"mask-y-to":N()}],"mask-image-y-from-color":[{"mask-y-from":P()}],"mask-image-y-to-color":[{"mask-y-to":P()}],"mask-image-radial":[{"mask-radial":[j,I]}],"mask-image-radial-from-pos":[{"mask-radial-from":N()}],"mask-image-radial-to-pos":[{"mask-radial-to":N()}],"mask-image-radial-from-color":[{"mask-radial-from":P()}],"mask-image-radial-to-color":[{"mask-radial-to":P()}],"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":N()}],"mask-image-conic-to-pos":[{"mask-conic-to":N()}],"mask-image-conic-from-color":[{"mask-conic-from":P()}],"mask-image-conic-to-color":[{"mask-conic-to":P()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:re()}],"mask-repeat":[{mask:E()}],"mask-size":[{mask:$()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",j,I]}],filter:[{filter:["","none",j,I]}],blur:[{blur:L()}],brightness:[{brightness:[J,j,I]}],contrast:[{contrast:[J,j,I]}],"drop-shadow":[{"drop-shadow":["","none",h,Tt,At]}],"drop-shadow-color":[{"drop-shadow":P()}],grayscale:[{grayscale:["",J,j,I]}],"hue-rotate":[{"hue-rotate":[J,j,I]}],invert:[{invert:["",J,j,I]}],saturate:[{saturate:[J,j,I]}],sepia:[{sepia:["",J,j,I]}],"backdrop-filter":[{"backdrop-filter":["","none",j,I]}],"backdrop-blur":[{"backdrop-blur":L()}],"backdrop-brightness":[{"backdrop-brightness":[J,j,I]}],"backdrop-contrast":[{"backdrop-contrast":[J,j,I]}],"backdrop-grayscale":[{"backdrop-grayscale":["",J,j,I]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[J,j,I]}],"backdrop-invert":[{"backdrop-invert":["",J,j,I]}],"backdrop-opacity":[{"backdrop-opacity":[J,j,I]}],"backdrop-saturate":[{"backdrop-saturate":[J,j,I]}],"backdrop-sepia":[{"backdrop-sepia":["",J,j,I]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":_()}],"border-spacing-x":[{"border-spacing-x":_()}],"border-spacing-y":[{"border-spacing-y":_()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",j,I]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[J,"initial",j,I]}],ease:[{ease:["linear","initial",y,j,I]}],delay:[{delay:[J,j,I]}],animate:[{animate:["none",b,j,I]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[m,j,I]}],"perspective-origin":[{"perspective-origin":k()}],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:ne()}],"skew-x":[{"skew-x":ne()}],"skew-y":[{"skew-y":ne()}],transform:[{transform:[j,I,"","none","gpu","cpu"]}],"transform-origin":[{origin:k()}],"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:P()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:P()}],"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",j,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":_()}],"scroll-mx":[{"scroll-mx":_()}],"scroll-my":[{"scroll-my":_()}],"scroll-ms":[{"scroll-ms":_()}],"scroll-me":[{"scroll-me":_()}],"scroll-mt":[{"scroll-mt":_()}],"scroll-mr":[{"scroll-mr":_()}],"scroll-mb":[{"scroll-mb":_()}],"scroll-ml":[{"scroll-ml":_()}],"scroll-p":[{"scroll-p":_()}],"scroll-px":[{"scroll-px":_()}],"scroll-py":[{"scroll-py":_()}],"scroll-ps":[{"scroll-ps":_()}],"scroll-pe":[{"scroll-pe":_()}],"scroll-pt":[{"scroll-pt":_()}],"scroll-pr":[{"scroll-pr":_()}],"scroll-pb":[{"scroll-pb":_()}],"scroll-pl":[{"scroll-pl":_()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",j,I]}],fill:[{fill:["none",...P()]}],"stroke-w":[{stroke:[J,ft,ze,br]}],stroke:[{stroke:["none",...P()]}],"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 F(...e){return hl(In(e))}const Yn=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,qn=In,ue=(e,t)=>r=>{var n;if((t==null?void 0:t.variants)==null)return qn(e,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:o,defaultVariants:a}=t,s=Object.keys(o).map(u=>{const f=r==null?void 0:r[u],p=a==null?void 0:a[u];if(f===null)return null;const g=Yn(f)||Yn(p);return o[u][g]}),i=r&&Object.entries(r).reduce((u,f)=>{let[p,g]=f;return g===void 0||(u[p]=g),u},{}),c=t==null||(n=t.compoundVariants)===null||n===void 0?void 0:n.reduce((u,f)=>{let{class:p,className:g,...h}=f;return Object.entries(h).every(v=>{let[m,x]=v;return Array.isArray(x)?x.includes({...a,...i}[m]):{...a,...i}[m]===x})?[...u,p,g]:u},[]);return qn(e,s,c,r==null?void 0:r.class,r==null?void 0:r.className)},gl=ue("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 vl({className:e,variant:t,size:r,asChild:n=!1,children:o,...a}){const s=n?pr:"button";return d.jsx(s,{"data-slot":"button",className:F(gl({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)}}var ie=globalThis!=null&&globalThis.document?l.useLayoutEffect:()=>{},xl=l[" useInsertionEffect ".trim().toString()]||ie;function Te({prop:e,defaultProp:t,onChange:r=()=>{},caller:n}){const[o,a,s]=bl({defaultProp:t,onChange:r}),i=e!==void 0,c=i?e:o;{const f=l.useRef(e!==void 0);l.useEffect(()=>{const p=f.current;p!==i&&console.warn(`${n} is changing from ${p?"controlled":"uncontrolled"} to ${i?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),f.current=i},[i,n])}const u=l.useCallback(f=>{var p;if(i){const g=yl(f)?f(e):f;g!==e&&((p=s.current)==null||p.call(s,g))}else a(f)},[i,e,a,s]);return[c,u]}function bl({defaultProp:e,onChange:t}){const[r,n]=l.useState(e),o=l.useRef(r),a=l.useRef(t);return xl(()=>{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 yl(e){return typeof e=="function"}var wl=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],V=wl.reduce((e,t)=>{const r=Ve(`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),d.jsx(c,{...i,ref:a})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function Sl(e,t){e&&Nt.flushSync(()=>e.dispatchEvent(t))}var Xn="Toggle",Zn=l.forwardRef((e,t)=>{const{pressed:r,defaultPressed:n,onPressedChange:o,...a}=e,[s,i]=Te({prop:r,onChange:o,defaultProp:n??!1,caller:Xn});return d.jsx(V.button,{type:"button","aria-pressed":s,"data-state":s?"on":"off","data-disabled":e.disabled?"":void 0,...a,ref:t,onClick:B(e.onClick,()=>{e.disabled||i(!s)})})});Zn.displayName=Xn;var Jn=Zn;const Qn=ue(["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"],{variants:{variant:{classic:["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=on]:bg-neutral-black-1 data-[state=on]:hover:shadow-[0_0_0_3px_rgba(10,10,10,.1)]","data-[state=on]:focus-visible:shadow-[0_0_0_3px_rgba(10,10,10,0.2)]","data-[state=on]: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=on]:disabled:bg-neutral-black-5 data-[state=on]:disabled:hover:shadow-none data-[state=on]:disabled:focus-visible:shadow-none data-[state=on]:disabled:active:shadow-none"]}},defaultVariants:{variant:"classic"}}),eo=ue(["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)]"],{variants:{variant:{classic:["h-[11px] w-[11px] bg-white","translate-x-0 group-data-[state=on]:translate-x-[12px]"]}},defaultVariants:{variant:"classic"}}),to=te.forwardRef(({pressed:e=!1,onPressedChange:t,variant:r="classic",disabled:n=!1,className:o,id:a,name:s,label:i,description:c,labelPosition:u="right","aria-label":f,"aria-labelledby":p,children:g,...h},v)=>{const m=te.useId(),x=a||m,y=`${x}-label`,b=`${x}-description`,w=k=>{!n&&t&&t(k)},C=d.jsx(Jn,{ref:v,pressed:e,onPressedChange:w,disabled:n,"aria-label":f,"aria-labelledby":p||(i?y:void 0),"aria-describedby":c?b:void 0,className:F(Qn({variant:r}),o),id:x,name:s,...h,children:g||d.jsx("span",{className:F(eo({variant:r})),"aria-hidden":"true"})});return!i&&!c?C:d.jsxs("div",{className:F("flex gap-3",u==="left"?"flex-row-reverse":"flex-row",n&&"opacity-50 cursor-not-allowed"),children:[C,d.jsxs("div",{className:"flex flex-col justify-center",children:[i&&d.jsx("label",{id:y,htmlFor:x,className:F("text-sm font-medium leading-none cursor-pointer",n&&"cursor-not-allowed"),children:i}),c&&d.jsx("p",{id:b,className:"text-xs text-muted-foreground mt-1",children:c})]})]})});to.displayName="Toggle";const ro=te.forwardRef(({defaultPressed:e=!1,variant:t="classic",disabled:r=!1,className:n,id:o,name:a,label:s,description:i,labelPosition:c="right","aria-label":u,"aria-labelledby":f,onPressedChange:p,children:g,...h},v)=>{const[m,x]=te.useState(e),y=te.useId(),b=o||y,w=`${b}-label`,C=`${b}-description`,k=R=>{r||(x(R),p&&p(R))},A=d.jsx(Jn,{ref:v,pressed:m,onPressedChange:k,disabled:r,"aria-label":u,"aria-labelledby":f||(s?w:void 0),"aria-describedby":i?C:void 0,className:F(Qn({variant:t}),n),id:b,name:a,...h,children:g||d.jsx("span",{className:F(eo({variant:t})),"aria-hidden":"true"})});return!s&&!i?A:d.jsxs("div",{className:F("flex gap-2.5",c==="left"?"flex-row-reverse":"flex-row",r&&"opacity-50 cursor-not-allowed"),children:[A,d.jsxs("div",{className:"flex flex-col justify-center gap-1",children:[s&&d.jsx("label",{id:w,htmlFor:b,className:F("text-sm font-medium leading-none cursor-pointer text-neutral-black-1",r&&"cursor-not-allowed"),children:s}),i&&d.jsx("p",{id:C,className:"text-xs text-neutral-black-1",children:i})]})]})});ro.displayName="StatefulToggle";function Cl(e,t){const r=l.createContext(t),n=a=>{const{children:s,...i}=a,c=l.useMemo(()=>i,Object.values(i));return d.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 xe(e,t=[]){let r=[];function n(a,s){const i=l.createContext(s),c=r.length;r=[...r,s];const u=p=>{var y;const{scope:g,children:h,...v}=p,m=((y=g==null?void 0:g[e])==null?void 0:y[c])||i,x=l.useMemo(()=>v,Object.values(v));return d.jsx(m.Provider,{value:x,children:h})};u.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[u,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,El(o,...t)]}function El(...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:u})=>{const p=c(a)[`__scope${u}`];return{...i,...p}},{});return l.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return r.scopeName=t.scopeName,r}function no(e){const t=e+"CollectionProvider",[r,n]=xe(t),[o,a]=r(t,{collectionRef:{current:null},itemMap:new Map}),s=m=>{const{scope:x,children:y}=m,b=te.useRef(null),w=te.useRef(new Map).current;return d.jsx(o,{scope:x,itemMap:w,collectionRef:b,children:y})};s.displayName=t;const i=e+"CollectionSlot",c=Ve(i),u=te.forwardRef((m,x)=>{const{scope:y,children:b}=m,w=a(i,y),C=ae(x,w.collectionRef);return d.jsx(c,{ref:C,children:b})});u.displayName=i;const f=e+"CollectionItemSlot",p="data-radix-collection-item",g=Ve(f),h=te.forwardRef((m,x)=>{const{scope:y,children:b,...w}=m,C=te.useRef(null),k=ae(x,C),A=a(f,y);return te.useEffect(()=>(A.itemMap.set(C,{ref:C,...w}),()=>void A.itemMap.delete(C))),d.jsx(g,{[p]:"",ref:k,children:b})});h.displayName=f;function v(m){const x=a(e+"CollectionConsumer",m);return te.useCallback(()=>{const b=x.collectionRef.current;if(!b)return[];const w=Array.from(b.querySelectorAll(`[${p}]`));return Array.from(x.itemMap.values()).sort((A,R)=>w.indexOf(A.ref.current)-w.indexOf(R.ref.current))},[x.collectionRef,x.itemMap])}return[{Provider:s,Slot:u,ItemSlot:h},v,n]}var kl=l[" useId ".trim().toString()]||(()=>{}),Rl=0;function le(e){const[t,r]=l.useState(kl());return ie(()=>{r(n=>n??String(Rl++))},[e]),t?`radix-${t}`:""}function Re(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 _l=l.createContext(void 0);function yr(e){const t=l.useContext(_l);return e||t||"ltr"}var wr="rovingFocusGroup.onEntryFocus",Pl={bubbles:!1,cancelable:!0},pt="RovingFocusGroup",[Sr,oo,Nl]=no(pt),[Al,ao]=xe(pt,[Nl]),[Tl,Ol]=Al(pt),so=l.forwardRef((e,t)=>d.jsx(Sr.Provider,{scope:e.__scopeRovingFocusGroup,children:d.jsx(Sr.Slot,{scope:e.__scopeRovingFocusGroup,children:d.jsx(Il,{...e,ref:t})})}));so.displayName=pt;var Il=l.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,orientation:n,loop:o=!1,dir:a,currentTabStopId:s,defaultCurrentTabStopId:i,onCurrentTabStopIdChange:c,onEntryFocus:u,preventScrollOnEntryFocus:f=!1,...p}=e,g=l.useRef(null),h=ae(t,g),v=yr(a),[m,x]=Te({prop:s,defaultProp:i??null,onChange:c,caller:pt}),[y,b]=l.useState(!1),w=Re(u),C=oo(r),k=l.useRef(!1),[A,R]=l.useState(0);return l.useEffect(()=>{const _=g.current;if(_)return _.addEventListener(wr,w),()=>_.removeEventListener(wr,w)},[w]),d.jsx(Tl,{scope:r,orientation:n,dir:v,loop:o,currentTabStopId:m,onItemFocus:l.useCallback(_=>x(_),[x]),onItemShiftTab:l.useCallback(()=>b(!0),[]),onFocusableItemAdd:l.useCallback(()=>R(_=>_+1),[]),onFocusableItemRemove:l.useCallback(()=>R(_=>_-1),[]),children:d.jsx(V.div,{tabIndex:y||A===0?-1:0,"data-orientation":n,...p,ref:h,style:{outline:"none",...e.style},onMouseDown:B(e.onMouseDown,()=>{k.current=!0}),onFocus:B(e.onFocus,_=>{const W=!k.current;if(_.target===_.currentTarget&&W&&!y){const K=new CustomEvent(wr,Pl);if(_.currentTarget.dispatchEvent(K),!K.defaultPrevented){const X=C().filter(D=>D.focusable),Q=X.find(D=>D.active),ee=X.find(D=>D.id===m),q=[Q,ee,...X].filter(Boolean).map(D=>D.ref.current);co(q,f)}}k.current=!1}),onBlur:B(e.onBlur,()=>b(!1))})})}),io="RovingFocusGroupItem",lo=l.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,focusable:n=!0,active:o=!1,tabStopId:a,children:s,...i}=e,c=le(),u=a||c,f=Ol(io,r),p=f.currentTabStopId===u,g=oo(r),{onFocusableItemAdd:h,onFocusableItemRemove:v,currentTabStopId:m}=f;return l.useEffect(()=>{if(n)return h(),()=>v()},[n,h,v]),d.jsx(Sr.ItemSlot,{scope:r,id:u,focusable:n,active:o,children:d.jsx(V.span,{tabIndex:p?0:-1,"data-orientation":f.orientation,...i,ref:t,onMouseDown:B(e.onMouseDown,x=>{n?f.onItemFocus(u):x.preventDefault()}),onFocus:B(e.onFocus,()=>f.onItemFocus(u)),onKeyDown:B(e.onKeyDown,x=>{if(x.key==="Tab"&&x.shiftKey){f.onItemShiftTab();return}if(x.target!==x.currentTarget)return;const y=Dl(x,f.orientation,f.dir);if(y!==void 0){if(x.metaKey||x.ctrlKey||x.altKey||x.shiftKey)return;x.preventDefault();let w=g().filter(C=>C.focusable).map(C=>C.ref.current);if(y==="last")w.reverse();else if(y==="prev"||y==="next"){y==="prev"&&w.reverse();const C=w.indexOf(x.currentTarget);w=f.loop?Ll(w,C+1):w.slice(C+1)}setTimeout(()=>co(w))}}),children:typeof s=="function"?s({isCurrentTabStop:p,hasTabStop:m!=null}):s})})});lo.displayName=io;var jl={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Ml(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function Dl(e,t,r){const n=Ml(e.key,r);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(n))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(n)))return jl[n]}function co(e,t=!1){const r=document.activeElement;for(const n of e)if(n===r||(n.focus({preventScroll:t}),document.activeElement!==r))return}function Ll(e,t){return e.map((r,n)=>e[(t+n)%e.length])}var Fl=so,$l=lo;function uo(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,u=Array.isArray(c)?c[0]:c;s=u.inlineSize,i=u.blockSize}else s=e.offsetWidth,i=e.offsetHeight;r({width:s,height:i})});return n.observe(e,{box:"border-box"}),()=>n.unobserve(e)}else r(void 0)},[e]),t}function fo(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 Vl(e,t){return l.useReducer((r,n)=>t[r][n]??r,e)}var _e=e=>{const{present:t,children:r}=e,n=zl(t),o=typeof r=="function"?r({present:n.isPresent}):l.Children.only(r),a=ae(n.ref,Bl(o));return typeof r=="function"||n.isPresent?l.cloneElement(o,{ref:a}):null};_e.displayName="Presence";function zl(e){const[t,r]=l.useState(),n=l.useRef(null),o=l.useRef(e),a=l.useRef("none"),s=e?"mounted":"unmounted",[i,c]=Vl(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return l.useEffect(()=>{const u=Ot(n.current);a.current=i==="mounted"?u:"none"},[i]),ie(()=>{const u=n.current,f=o.current;if(f!==e){const g=a.current,h=Ot(u);e?c("MOUNT"):h==="none"||(u==null?void 0:u.display)==="none"?c("UNMOUNT"):c(f&&g!==h?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,c]),ie(()=>{if(t){let u;const f=t.ownerDocument.defaultView??window,p=h=>{const m=Ot(n.current).includes(CSS.escape(h.animationName));if(h.target===t&&m&&(c("ANIMATION_END"),!o.current)){const x=t.style.animationFillMode;t.style.animationFillMode="forwards",u=f.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=x)})}},g=h=>{h.target===t&&(a.current=Ot(n.current))};return t.addEventListener("animationstart",g),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{f.clearTimeout(u),t.removeEventListener("animationstart",g),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(i),ref:l.useCallback(u=>{n.current=u?getComputedStyle(u):null,r(u)},[])}}function Ot(e){return(e==null?void 0:e.animationName)||"none"}function Bl(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 Cr="Radio",[Wl,po]=xe(Cr),[Hl,Gl]=Wl(Cr),mo=l.forwardRef((e,t)=>{const{__scopeRadio:r,name:n,checked:o=!1,required:a,disabled:s,value:i="on",onCheck:c,form:u,...f}=e,[p,g]=l.useState(null),h=ae(t,x=>g(x)),v=l.useRef(!1),m=p?u||!!p.closest("form"):!0;return d.jsxs(Hl,{scope:r,checked:o,disabled:s,children:[d.jsx(V.button,{type:"button",role:"radio","aria-checked":o,"data-state":xo(o),"data-disabled":s?"":void 0,disabled:s,value:i,...f,ref:h,onClick:B(e.onClick,x=>{o||c==null||c(),m&&(v.current=x.isPropagationStopped(),v.current||x.stopPropagation())})}),m&&d.jsx(vo,{control:p,bubbles:!v.current,name:n,value:i,checked:o,required:a,disabled:s,form:u,style:{transform:"translateX(-100%)"}})]})});mo.displayName=Cr;var ho="RadioIndicator",go=l.forwardRef((e,t)=>{const{__scopeRadio:r,forceMount:n,...o}=e,a=Gl(ho,r);return d.jsx(_e,{present:n||a.checked,children:d.jsx(V.span,{"data-state":xo(a.checked),"data-disabled":a.disabled?"":void 0,...o,ref:t})})});go.displayName=ho;var Ul="RadioBubbleInput",vo=l.forwardRef(({__scopeRadio:e,control:t,checked:r,bubbles:n=!0,...o},a)=>{const s=l.useRef(null),i=ae(s,a),c=fo(r),u=uo(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]),d.jsx(V.input,{type:"radio","aria-hidden":!0,defaultChecked:r,...o,tabIndex:-1,ref:i,style:{...o.style,...u,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});vo.displayName=Ul;function xo(e){return e?"checked":"unchecked"}var Kl=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],It="RadioGroup",[Yl,Ym]=xe(It,[ao,po]),bo=ao(),yo=po(),[ql,Xl]=Yl(It),wo=l.forwardRef((e,t)=>{const{__scopeRadioGroup:r,name:n,defaultValue:o,value:a,required:s=!1,disabled:i=!1,orientation:c,dir:u,loop:f=!0,onValueChange:p,...g}=e,h=bo(r),v=yr(u),[m,x]=Te({prop:a,defaultProp:o??null,onChange:p,caller:It});return d.jsx(ql,{scope:r,name:n,required:s,disabled:i,value:m,onValueChange:x,children:d.jsx(Fl,{asChild:!0,...h,orientation:c,dir:v,loop:f,children:d.jsx(V.div,{role:"radiogroup","aria-required":s,"aria-orientation":c,"data-disabled":i?"":void 0,dir:v,...g,ref:t})})})});wo.displayName=It;var So="RadioGroupItem",Co=l.forwardRef((e,t)=>{const{__scopeRadioGroup:r,disabled:n,...o}=e,a=Xl(So,r),s=a.disabled||n,i=bo(r),c=yo(r),u=l.useRef(null),f=ae(t,u),p=a.value===o.value,g=l.useRef(!1);return l.useEffect(()=>{const h=m=>{Kl.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)}},[]),d.jsx($l,{asChild:!0,...i,focusable:!s,active:p,children:d.jsx(mo,{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=u.current)==null||h.click())})})})});Co.displayName=So;var Zl="RadioGroupIndicator",Eo=l.forwardRef((e,t)=>{const{__scopeRadioGroup:r,...n}=e,o=yo(r);return d.jsx(go,{...o,...n,ref:t})});Eo.displayName=Zl;var ko=wo,Ro=Co,Jl=Eo;const Ql=()=>({root:F("relative inline-flex items-center cursor-pointer","data-[disabled]:cursor-not-allowed"),indicator:F("relative flex items-center justify-center","w-4 h-4 rounded-full border-2 transition-all duration-200","border-[var(--color-neutral-black-2)]","hover:shadow-[0_0_0_3px_var(--color-neutral-black-5)] hover:bg-[var(--color-neutral-black-5)]","focus:shadow-[0_0_0_3px_var(--color-neutral-black-3)] focus:bg-[var(--color-neutral-black-3)]","data-[state=checked]:border-[var(--color-neutral-black-1)]","data-[state=checked]:hover:shadow-[0_0_0_3px_var(--color-neutral-black-4)]","data-[state=checked]:hover:bg-[var(--color-neutral-black-4)]","data-[state=checked]:focus:shadow-[0_0_0_3px_var(--color-neutral-black-1)]","data-[state=checked]:focus:bg-[var(--color-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-[var(--color-neutral-black-3)]"),innerCircle:F("w-2 h-2 rounded-full transition-all duration-200","bg-[var(--color-neutral-black-1)]"),label:F("ml-2.5 text-md cursor-pointer select-none","data-[disabled]:cursor-not-allowed")}),_o=l.forwardRef(({className:e,...t},r)=>d.jsx(ko,{className:F("grid gap-2",e),...t,ref:r}));_o.displayName=ko.displayName;const Po=l.forwardRef(({children:e,disabled:t,...r},n)=>{const o=Ql();return d.jsxs("label",{className:o.root,"data-disabled":t,children:[d.jsx(Ro,{ref:n,className:F(o.indicator),disabled:t,...r,children:d.jsx(Jl,{className:"flex items-center justify-center",children:d.jsx("div",{className:o.innerCircle})})}),e&&d.jsx("span",{className:o.label,"data-disabled":t,children:e})]})});Po.displayName=Ro.displayName;function ec(e,t=globalThis==null?void 0:globalThis.document){const r=Re(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 tc="DismissableLayer",Er="dismissableLayer.update",rc="dismissableLayer.pointerDownOutside",nc="dismissableLayer.focusOutside",No,Ao=l.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),mt=l.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:s,onDismiss:i,...c}=e,u=l.useContext(Ao),[f,p]=l.useState(null),g=(f==null?void 0:f.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,h]=l.useState({}),v=ae(t,R=>p(R)),m=Array.from(u.layers),[x]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),y=m.indexOf(x),b=f?m.indexOf(f):-1,w=u.layersWithOutsidePointerEventsDisabled.size>0,C=b>=y,k=sc(R=>{const _=R.target,W=[...u.branches].some(K=>K.contains(_));!C||W||(o==null||o(R),s==null||s(R),R.defaultPrevented||i==null||i())},g),A=ic(R=>{const _=R.target;[...u.branches].some(K=>K.contains(_))||(a==null||a(R),s==null||s(R),R.defaultPrevented||i==null||i())},g);return ec(R=>{b===u.layers.size-1&&(n==null||n(R),!R.defaultPrevented&&i&&(R.preventDefault(),i()))},g),l.useEffect(()=>{if(f)return r&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(No=g.body.style.pointerEvents,g.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(f)),u.layers.add(f),To(),()=>{r&&u.layersWithOutsidePointerEventsDisabled.size===1&&(g.body.style.pointerEvents=No)}},[f,g,r,u]),l.useEffect(()=>()=>{f&&(u.layers.delete(f),u.layersWithOutsidePointerEventsDisabled.delete(f),To())},[f,u]),l.useEffect(()=>{const R=()=>h({});return document.addEventListener(Er,R),()=>document.removeEventListener(Er,R)},[]),d.jsx(V.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,k.onPointerDownCapture)})});mt.displayName=tc;var oc="DismissableLayerBranch",ac=l.forwardRef((e,t)=>{const r=l.useContext(Ao),n=l.useRef(null),o=ae(t,n);return l.useEffect(()=>{const a=n.current;if(a)return r.branches.add(a),()=>{r.branches.delete(a)}},[r.branches]),d.jsx(V.div,{...e,ref:o})});ac.displayName=oc;function sc(e,t=globalThis==null?void 0:globalThis.document){const r=Re(e),n=l.useRef(!1),o=l.useRef(()=>{});return l.useEffect(()=>{const a=i=>{if(i.target&&!n.current){let c=function(){Oo(rc,r,u,{discrete:!0})};const u={originalEvent:i};i.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=c,t.addEventListener("click",o.current,{once:!0})):c()}else t.removeEventListener("click",o.current);n.current=!1},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 ic(e,t=globalThis==null?void 0:globalThis.document){const r=Re(e),n=l.useRef(!1);return l.useEffect(()=>{const o=a=>{a.target&&!n.current&&Oo(nc,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 To(){const e=new CustomEvent(Er);document.dispatchEvent(e)}function Oo(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?Sl(o,a):o.dispatchEvent(a)}var kr="focusScope.autoFocusOnMount",Rr="focusScope.autoFocusOnUnmount",Io={bubbles:!1,cancelable:!0},lc="FocusScope",jt=l.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...s}=e,[i,c]=l.useState(null),u=Re(o),f=Re(a),p=l.useRef(null),g=ae(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:Oe(p.current,{select:!0})},x=function(w){if(h.paused||!i)return;const C=w.relatedTarget;C!==null&&(i.contains(C)||Oe(p.current,{select:!0}))},y=function(w){if(document.activeElement===document.body)for(const k of w)k.removedNodes.length>0&&Oe(i)};document.addEventListener("focusin",m),document.addEventListener("focusout",x);const b=new MutationObserver(y);return i&&b.observe(i,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",m),document.removeEventListener("focusout",x),b.disconnect()}}},[n,i,h.paused]),l.useEffect(()=>{if(i){Do.add(h);const m=document.activeElement;if(!i.contains(m)){const y=new CustomEvent(kr,Io);i.addEventListener(kr,u),i.dispatchEvent(y),y.defaultPrevented||(cc(mc(jo(i)),{select:!0}),document.activeElement===m&&Oe(i))}return()=>{i.removeEventListener(kr,u),setTimeout(()=>{const y=new CustomEvent(Rr,Io);i.addEventListener(Rr,f),i.dispatchEvent(y),y.defaultPrevented||Oe(m??document.body,{select:!0}),i.removeEventListener(Rr,f),Do.remove(h)},0)}}},[i,u,f,h]);const v=l.useCallback(m=>{if(!r&&!n||h.paused)return;const x=m.key==="Tab"&&!m.altKey&&!m.ctrlKey&&!m.metaKey,y=document.activeElement;if(x&&y){const b=m.currentTarget,[w,C]=uc(b);w&&C?!m.shiftKey&&y===C?(m.preventDefault(),r&&Oe(w,{select:!0})):m.shiftKey&&y===w&&(m.preventDefault(),r&&Oe(C,{select:!0})):y===b&&m.preventDefault()}},[r,n,h.paused]);return d.jsx(V.div,{tabIndex:-1,...s,ref:g,onKeyDown:v})});jt.displayName=lc;function cc(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(Oe(n,{select:t}),document.activeElement!==r)return}function uc(e){const t=jo(e),r=Mo(t,e),n=Mo(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 Mo(e,t){for(const r of e)if(!dc(r,{upTo:t}))return r}function dc(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 fc(e){return e instanceof HTMLInputElement&&"select"in e}function Oe(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&fc(e)&&t&&e.select()}}var Do=pc();function pc(){let e=[];return{add(t){const r=e[0];t!==r&&(r==null||r.pause()),e=Lo(e,t),e.unshift(t)},remove(t){var r;e=Lo(e,t),(r=e[0])==null||r.resume()}}}function Lo(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function mc(e){return e.filter(t=>t.tagName!=="A")}var hc="Portal",ht=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?Rn.createPortal(d.jsx(V.div,{...n,ref:t}),s):null});ht.displayName=hc;var _r=0;function Pr(){l.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Fo()),document.body.insertAdjacentElement("beforeend",e[1]??Fo()),_r++,()=>{_r===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),_r--}},[])}function Fo(){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 be=function(){return be=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},be.apply(this,arguments)};function $o(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 gc(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 Mt="right-scroll-bar-position",Dt="width-before-scroll-bar",vc="with-scroll-bars-hidden",xc="--removed-body-scroll-bar-size";function Nr(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function bc(e,t){var r=te.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 yc=typeof window<"u"?l.useLayoutEffect:l.useEffect,Vo=new WeakMap;function wc(e,t){var r=bc(null,function(n){return e.forEach(function(o){return Nr(o,n)})});return yc(function(){var n=Vo.get(r);if(n){var o=new Set(n),a=new Set(e),s=r.current;o.forEach(function(i){a.has(i)||Nr(i,null)}),a.forEach(function(i){o.has(i)||Nr(i,s)})}Vo.set(r,e)},[e]),r}function Sc(e){return e}function Cc(e,t){t===void 0&&(t=Sc);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)},u=function(){return Promise.resolve().then(c)};u(),r={push:function(f){s.push(f),u()},filter:function(f){return s=s.filter(f),r}}}};return o}function Ec(e){e===void 0&&(e={});var t=Cc(null);return t.options=be({async:!0,ssr:!1},e),t}var zo=function(e){var t=e.sideCar,r=$o(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,be({},r))};zo.isSideCarExport=!0;function kc(e,t){return e.useMedium(t),zo}var Bo=Ec(),Ar=function(){},Lt=l.forwardRef(function(e,t){var r=l.useRef(null),n=l.useState({onScrollCapture:Ar,onWheelCapture:Ar,onTouchMoveCapture:Ar}),o=n[0],a=n[1],s=e.forwardProps,i=e.children,c=e.className,u=e.removeScrollBar,f=e.enabled,p=e.shards,g=e.sideCar,h=e.noRelative,v=e.noIsolation,m=e.inert,x=e.allowPinchZoom,y=e.as,b=y===void 0?"div":y,w=e.gapMode,C=$o(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),k=g,A=wc([r,t]),R=be(be({},C),o);return l.createElement(l.Fragment,null,f&&l.createElement(k,{sideCar:Bo,removeScrollBar:u,shards:p,noRelative:h,noIsolation:v,inert:m,setCallbacks:a,allowPinchZoom:!!x,lockRef:r,gapMode:w}),s?l.cloneElement(l.Children.only(i),be(be({},R),{ref:A})):l.createElement(b,be({},R,{className:c,ref:A}),i))});Lt.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Lt.classNames={fullWidth:Dt,zeroRight:Mt};var Rc=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function _c(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Rc();return t&&e.setAttribute("nonce",t),e}function Pc(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Nc(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Ac=function(){var e=0,t=null;return{add:function(r){e==0&&(t=_c())&&(Pc(t,r),Nc(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Tc=function(){var e=Ac();return function(t,r){l.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},Wo=function(){var e=Tc(),t=function(r){var n=r.styles,o=r.dynamic;return e(n,o),null};return t},Oc={left:0,top:0,right:0,gap:0},Tr=function(e){return parseInt(e||"",10)||0},Ic=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[Tr(r),Tr(n),Tr(o)]},jc=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Oc;var t=Ic(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])}},Mc=Wo(),Xe="data-scroll-locked",Dc=function(e,t,r,n){var o=e.left,a=e.top,s=e.right,i=e.gap;return r===void 0&&(r="margin"),`
23
23
  .`.concat(vc,` {
24
24
  overflow: hidden `).concat(n,`;
25
25
  padding-right: `).concat(i,"px ").concat(n,`;
@@ -56,19 +56,19 @@ React keys must be passed directly to JSX without using spread:
56
56
  body[`).concat(Xe,`] {
57
57
  `).concat(xc,": ").concat(i,`px;
58
58
  }
59
- `)},Wo=function(){var e=parseInt(document.body.getAttribute(Xe)||"0",10);return isFinite(e)?e:0},Lc=function(){l.useEffect(function(){return document.body.setAttribute(Xe,(Wo()+1).toString()),function(){var e=Wo()-1;e<=0?document.body.removeAttribute(Xe):document.body.setAttribute(Xe,e.toString())}},[])},Fc=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,o=n===void 0?"margin":n;Lc();var a=l.useMemo(function(){return jc(o)},[o]);return l.createElement(Mc,{styles:Dc(a,!t,o,r?"":"!important")})},Or=!1;if(typeof window<"u")try{var Ft=Object.defineProperty({},"passive",{get:function(){return Or=!0,!0}});window.addEventListener("test",Ft,Ft),window.removeEventListener("test",Ft,Ft)}catch{Or=!1}var Ze=Or?{passive:!1}:!1,$c=function(e){return e.tagName==="TEXTAREA"},Ho=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!$c(e)&&r[t]==="visible")},Vc=function(e){return Ho(e,"overflowY")},zc=function(e){return Ho(e,"overflowX")},Go=function(e,t){var r=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var o=Uo(e,n);if(o){var a=Ko(e,n),s=a[1],i=a[2];if(s>i)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},Bc=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},Wc=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},Uo=function(e,t){return e==="v"?Vc(t):zc(t)},Ko=function(e,t){return e==="v"?Bc(t):Wc(t)},Hc=function(e,t){return e==="h"&&t==="rtl"?-1:1},Gc=function(e,t,r,n,o){var a=Hc(e,window.getComputedStyle(t).direction),s=a*n,i=r.target,c=t.contains(i),u=!1,f=s>0,p=0,g=0;do{if(!i)break;var h=Ko(e,i),v=h[0],m=h[1],x=h[2],y=m-x-a*v;(v||y)&&Uo(e,i)&&(p+=y,g+=v);var b=i.parentNode;i=b&&b.nodeType===Node.DOCUMENT_FRAGMENT_NODE?b.host:b}while(!c&&i!==document.body||c&&(t.contains(i)||t===i));return(f&&Math.abs(p)<1||!f&&Math.abs(g)<1)&&(u=!0),u},$t=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Yo=function(e){return[e.deltaX,e.deltaY]},qo=function(e){return e&&"current"in e?e.current:e},Uc=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Kc=function(e){return`
59
+ `)},Ho=function(){var e=parseInt(document.body.getAttribute(Xe)||"0",10);return isFinite(e)?e:0},Lc=function(){l.useEffect(function(){return document.body.setAttribute(Xe,(Ho()+1).toString()),function(){var e=Ho()-1;e<=0?document.body.removeAttribute(Xe):document.body.setAttribute(Xe,e.toString())}},[])},Fc=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,o=n===void 0?"margin":n;Lc();var a=l.useMemo(function(){return jc(o)},[o]);return l.createElement(Mc,{styles:Dc(a,!t,o,r?"":"!important")})},Or=!1;if(typeof window<"u")try{var Ft=Object.defineProperty({},"passive",{get:function(){return Or=!0,!0}});window.addEventListener("test",Ft,Ft),window.removeEventListener("test",Ft,Ft)}catch{Or=!1}var Ze=Or?{passive:!1}:!1,$c=function(e){return e.tagName==="TEXTAREA"},Go=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!$c(e)&&r[t]==="visible")},Vc=function(e){return Go(e,"overflowY")},zc=function(e){return Go(e,"overflowX")},Uo=function(e,t){var r=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var o=Ko(e,n);if(o){var a=Yo(e,n),s=a[1],i=a[2];if(s>i)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},Bc=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},Wc=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},Ko=function(e,t){return e==="v"?Vc(t):zc(t)},Yo=function(e,t){return e==="v"?Bc(t):Wc(t)},Hc=function(e,t){return e==="h"&&t==="rtl"?-1:1},Gc=function(e,t,r,n,o){var a=Hc(e,window.getComputedStyle(t).direction),s=a*n,i=r.target,c=t.contains(i),u=!1,f=s>0,p=0,g=0;do{if(!i)break;var h=Yo(e,i),v=h[0],m=h[1],x=h[2],y=m-x-a*v;(v||y)&&Ko(e,i)&&(p+=y,g+=v);var b=i.parentNode;i=b&&b.nodeType===Node.DOCUMENT_FRAGMENT_NODE?b.host:b}while(!c&&i!==document.body||c&&(t.contains(i)||t===i));return(f&&Math.abs(p)<1||!f&&Math.abs(g)<1)&&(u=!0),u},$t=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},qo=function(e){return[e.deltaX,e.deltaY]},Xo=function(e){return e&&"current"in e?e.current:e},Uc=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Kc=function(e){return`
60
60
  .block-interactivity-`.concat(e,` {pointer-events: none;}
61
61
  .allow-interactivity-`).concat(e,` {pointer-events: all;}
62
- `)},Yc=0,Je=[];function qc(e){var t=l.useRef([]),r=l.useRef([0,0]),n=l.useRef(),o=l.useState(Yc++)[0],a=l.useState(Bo)[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=gc([e.lockRef.current],(e.shards||[]).map(qo),!0).filter(Boolean);return m.forEach(function(x){return x.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),m.forEach(function(x){return x.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var i=l.useCallback(function(m,x){if("touches"in m&&m.touches.length===2||m.type==="wheel"&&m.ctrlKey)return!s.current.allowPinchZoom;var y=$t(m),b=r.current,w="deltaX"in m?m.deltaX:b[0]-y[0],C="deltaY"in m?m.deltaY:b[1]-y[1],k,N=m.target,R=Math.abs(w)>Math.abs(C)?"h":"v";if("touches"in m&&R==="h"&&N.type==="range")return!1;var _=Go(R,N);if(!_)return!0;if(_?k=R:(k=R==="v"?"h":"v",_=Go(R,N)),!_)return!1;if(!n.current&&"changedTouches"in m&&(w||C)&&(n.current=k),!k)return!0;var W=n.current||k;return Gc(W,x,m,W==="h"?w:C)},[]),c=l.useCallback(function(m){var x=m;if(!(!Je.length||Je[Je.length-1]!==a)){var y="deltaY"in x?Yo(x):$t(x),b=t.current.filter(function(k){return k.name===x.type&&(k.target===x.target||x.target===k.shadowParent)&&Uc(k.delta,y)})[0];if(b&&b.should){x.cancelable&&x.preventDefault();return}if(!b){var w=(s.current.shards||[]).map(qo).filter(Boolean).filter(function(k){return k.contains(x.target)}),C=w.length>0?i(x,w[0]):!s.current.noIsolation;C&&x.cancelable&&x.preventDefault()}}},[]),u=l.useCallback(function(m,x,y,b){var w={name:m,delta:x,target:y,should:b,shadowParent:Xc(y)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(C){return C!==w})},1)},[]),f=l.useCallback(function(m){r.current=$t(m),n.current=void 0},[]),p=l.useCallback(function(m){u(m.type,Yo(m),m.target,i(m,e.lockRef.current))},[]),g=l.useCallback(function(m){u(m.type,$t(m),m.target,i(m,e.lockRef.current))},[]);l.useEffect(function(){return Je.push(a),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:g}),document.addEventListener("wheel",c,Ze),document.addEventListener("touchmove",c,Ze),document.addEventListener("touchstart",f,Ze),function(){Je=Je.filter(function(m){return m!==a}),document.removeEventListener("wheel",c,Ze),document.removeEventListener("touchmove",c,Ze),document.removeEventListener("touchstart",f,Ze)}},[]);var h=e.removeScrollBar,v=e.inert;return l.createElement(l.Fragment,null,v?l.createElement(a,{styles:Kc(o)}):null,h?l.createElement(Fc,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Xc(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Zc=kc(zo,qc);var Vt=l.forwardRef(function(e,t){return l.createElement(Lt,be({},e,{ref:t,sideCar:Zc}))});Vt.classNames=Lt.classNames;var Jc=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Qe=new WeakMap,zt=new WeakMap,Bt={},Ir=0,Xo=function(e){return e&&(e.host||Xo(e.parentNode))},Qc=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=Xo(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})},eu=function(e,t,r,n){var o=Qc(t,Array.isArray(e)?e:[e]);Bt[r]||(Bt[r]=new WeakMap);var a=Bt[r],s=[],i=new Set,c=new Set(o),u=function(p){!p||i.has(p)||(i.add(p),u(p.parentNode))};o.forEach(u);var f=function(p){!p||c.has(p)||Array.prototype.forEach.call(p.children,function(g){if(i.has(g))f(g);else try{var h=g.getAttribute(n),v=h!==null&&h!=="false",m=(Qe.get(g)||0)+1,x=(a.get(g)||0)+1;Qe.set(g,m),a.set(g,x),s.push(g),m===1&&v&&zt.set(g,!0),x===1&&g.setAttribute(r,"true"),v||g.setAttribute(n,"true")}catch(y){console.error("aria-hidden: cannot operate on ",g,y)}})};return f(t),i.clear(),Ir++,function(){s.forEach(function(p){var g=Qe.get(p)-1,h=a.get(p)-1;Qe.set(p,g),a.set(p,h),g||(zt.has(p)||p.removeAttribute(n),zt.delete(p)),h||p.removeAttribute(r)}),Ir--,Ir||(Qe=new WeakMap,Qe=new WeakMap,zt=new WeakMap,Bt={})}},jr=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=Jc(e);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live], script"))),eu(n,o,r,"aria-hidden")):function(){return null}},Wt="Dialog",[Zo,Ym]=xe(Wt),[tu,me]=Zo(Wt),Jo=e=>{const{__scopeDialog:t,children:r,open:n,defaultOpen:o,onOpenChange:a,modal:s=!0}=e,i=l.useRef(null),c=l.useRef(null),[u,f]=Te({prop:n,defaultProp:o??!1,onChange:a,caller:Wt});return d.jsx(tu,{scope:t,triggerRef:i,contentRef:c,contentId:le(),titleId:le(),descriptionId:le(),open:u,onOpenChange:f,onOpenToggle:l.useCallback(()=>f(p=>!p),[f]),modal:s,children:r})};Jo.displayName=Wt;var Qo="DialogTrigger",ea=l.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=me(Qo,r),a=ae(t,o.triggerRef);return d.jsx(V.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Lr(o.open),...n,ref:a,onClick:B(e.onClick,o.onOpenToggle)})});ea.displayName=Qo;var Mr="DialogPortal",[ru,ta]=Zo(Mr,{forceMount:void 0}),ra=e=>{const{__scopeDialog:t,forceMount:r,children:n,container:o}=e,a=me(Mr,t);return d.jsx(ru,{scope:t,forceMount:r,children:l.Children.map(n,s=>d.jsx(_e,{present:r||a.open,children:d.jsx(ht,{asChild:!0,container:o,children:s})}))})};ra.displayName=Mr;var Ht="DialogOverlay",na=l.forwardRef((e,t)=>{const r=ta(Ht,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=me(Ht,e.__scopeDialog);return a.modal?d.jsx(_e,{present:n||a.open,children:d.jsx(ou,{...o,ref:t})}):null});na.displayName=Ht;var nu=Ve("DialogOverlay.RemoveScroll"),ou=l.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=me(Ht,r);return d.jsx(Vt,{as:nu,allowPinchZoom:!0,shards:[o.contentRef],children:d.jsx(V.div,{"data-state":Lr(o.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),Be="DialogContent",oa=l.forwardRef((e,t)=>{const r=ta(Be,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=me(Be,e.__scopeDialog);return d.jsx(_e,{present:n||a.open,children:a.modal?d.jsx(au,{...o,ref:t}):d.jsx(su,{...o,ref:t})})});oa.displayName=Be;var au=l.forwardRef((e,t)=>{const r=me(Be,e.__scopeDialog),n=l.useRef(null),o=ae(t,r.contentRef,n);return l.useEffect(()=>{const a=n.current;if(a)return jr(a)},[]),d.jsx(aa,{...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())})}),su=l.forwardRef((e,t)=>{const r=me(Be,e.__scopeDialog),n=l.useRef(!1),o=l.useRef(!1);return d.jsx(aa,{...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,u;(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;((u=r.triggerRef.current)==null?void 0:u.contains(s))&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),aa=l.forwardRef((e,t)=>{const{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:a,...s}=e,i=me(Be,r),c=l.useRef(null),u=ae(t,c);return Pr(),d.jsxs(d.Fragment,{children:[d.jsx(jt,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:a,children:d.jsx(mt,{role:"dialog",id:i.contentId,"aria-describedby":i.descriptionId,"aria-labelledby":i.titleId,"data-state":Lr(i.open),...s,ref:u,onDismiss:()=>i.onOpenChange(!1)})}),d.jsxs(d.Fragment,{children:[d.jsx(iu,{titleId:i.titleId}),d.jsx(cu,{contentRef:c,descriptionId:i.descriptionId})]})]})}),Dr="DialogTitle",sa=l.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=me(Dr,r);return d.jsx(V.h2,{id:o.titleId,...n,ref:t})});sa.displayName=Dr;var ia="DialogDescription",la=l.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=me(ia,r);return d.jsx(V.p,{id:o.descriptionId,...n,ref:t})});la.displayName=ia;var ca="DialogClose",ua=l.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=me(ca,r);return d.jsx(V.button,{type:"button",...n,ref:t,onClick:B(e.onClick,()=>o.onOpenChange(!1))})});ua.displayName=ca;function Lr(e){return e?"open":"closed"}var da="DialogTitleWarning",[qm,fa]=Cl(da,{contentName:Be,titleName:Dr,docsSlug:"dialog"}),iu=({titleId:e})=>{const t=fa(da),r=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
62
+ `)},Yc=0,Je=[];function qc(e){var t=l.useRef([]),r=l.useRef([0,0]),n=l.useRef(),o=l.useState(Yc++)[0],a=l.useState(Wo)[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=gc([e.lockRef.current],(e.shards||[]).map(Xo),!0).filter(Boolean);return m.forEach(function(x){return x.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),m.forEach(function(x){return x.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var i=l.useCallback(function(m,x){if("touches"in m&&m.touches.length===2||m.type==="wheel"&&m.ctrlKey)return!s.current.allowPinchZoom;var y=$t(m),b=r.current,w="deltaX"in m?m.deltaX:b[0]-y[0],C="deltaY"in m?m.deltaY:b[1]-y[1],k,A=m.target,R=Math.abs(w)>Math.abs(C)?"h":"v";if("touches"in m&&R==="h"&&A.type==="range")return!1;var _=Uo(R,A);if(!_)return!0;if(_?k=R:(k=R==="v"?"h":"v",_=Uo(R,A)),!_)return!1;if(!n.current&&"changedTouches"in m&&(w||C)&&(n.current=k),!k)return!0;var W=n.current||k;return Gc(W,x,m,W==="h"?w:C)},[]),c=l.useCallback(function(m){var x=m;if(!(!Je.length||Je[Je.length-1]!==a)){var y="deltaY"in x?qo(x):$t(x),b=t.current.filter(function(k){return k.name===x.type&&(k.target===x.target||x.target===k.shadowParent)&&Uc(k.delta,y)})[0];if(b&&b.should){x.cancelable&&x.preventDefault();return}if(!b){var w=(s.current.shards||[]).map(Xo).filter(Boolean).filter(function(k){return k.contains(x.target)}),C=w.length>0?i(x,w[0]):!s.current.noIsolation;C&&x.cancelable&&x.preventDefault()}}},[]),u=l.useCallback(function(m,x,y,b){var w={name:m,delta:x,target:y,should:b,shadowParent:Xc(y)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(C){return C!==w})},1)},[]),f=l.useCallback(function(m){r.current=$t(m),n.current=void 0},[]),p=l.useCallback(function(m){u(m.type,qo(m),m.target,i(m,e.lockRef.current))},[]),g=l.useCallback(function(m){u(m.type,$t(m),m.target,i(m,e.lockRef.current))},[]);l.useEffect(function(){return Je.push(a),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:g}),document.addEventListener("wheel",c,Ze),document.addEventListener("touchmove",c,Ze),document.addEventListener("touchstart",f,Ze),function(){Je=Je.filter(function(m){return m!==a}),document.removeEventListener("wheel",c,Ze),document.removeEventListener("touchmove",c,Ze),document.removeEventListener("touchstart",f,Ze)}},[]);var h=e.removeScrollBar,v=e.inert;return l.createElement(l.Fragment,null,v?l.createElement(a,{styles:Kc(o)}):null,h?l.createElement(Fc,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Xc(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Zc=kc(Bo,qc);var Vt=l.forwardRef(function(e,t){return l.createElement(Lt,be({},e,{ref:t,sideCar:Zc}))});Vt.classNames=Lt.classNames;var Jc=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Qe=new WeakMap,zt=new WeakMap,Bt={},Ir=0,Zo=function(e){return e&&(e.host||Zo(e.parentNode))},Qc=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=Zo(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})},eu=function(e,t,r,n){var o=Qc(t,Array.isArray(e)?e:[e]);Bt[r]||(Bt[r]=new WeakMap);var a=Bt[r],s=[],i=new Set,c=new Set(o),u=function(p){!p||i.has(p)||(i.add(p),u(p.parentNode))};o.forEach(u);var f=function(p){!p||c.has(p)||Array.prototype.forEach.call(p.children,function(g){if(i.has(g))f(g);else try{var h=g.getAttribute(n),v=h!==null&&h!=="false",m=(Qe.get(g)||0)+1,x=(a.get(g)||0)+1;Qe.set(g,m),a.set(g,x),s.push(g),m===1&&v&&zt.set(g,!0),x===1&&g.setAttribute(r,"true"),v||g.setAttribute(n,"true")}catch(y){console.error("aria-hidden: cannot operate on ",g,y)}})};return f(t),i.clear(),Ir++,function(){s.forEach(function(p){var g=Qe.get(p)-1,h=a.get(p)-1;Qe.set(p,g),a.set(p,h),g||(zt.has(p)||p.removeAttribute(n),zt.delete(p)),h||p.removeAttribute(r)}),Ir--,Ir||(Qe=new WeakMap,Qe=new WeakMap,zt=new WeakMap,Bt={})}},jr=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=Jc(e);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live], script"))),eu(n,o,r,"aria-hidden")):function(){return null}},Wt="Dialog",[Jo,qm]=xe(Wt),[tu,me]=Jo(Wt),Qo=e=>{const{__scopeDialog:t,children:r,open:n,defaultOpen:o,onOpenChange:a,modal:s=!0}=e,i=l.useRef(null),c=l.useRef(null),[u,f]=Te({prop:n,defaultProp:o??!1,onChange:a,caller:Wt});return d.jsx(tu,{scope:t,triggerRef:i,contentRef:c,contentId:le(),titleId:le(),descriptionId:le(),open:u,onOpenChange:f,onOpenToggle:l.useCallback(()=>f(p=>!p),[f]),modal:s,children:r})};Qo.displayName=Wt;var ea="DialogTrigger",ta=l.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=me(ea,r),a=ae(t,o.triggerRef);return d.jsx(V.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Lr(o.open),...n,ref:a,onClick:B(e.onClick,o.onOpenToggle)})});ta.displayName=ea;var Mr="DialogPortal",[ru,ra]=Jo(Mr,{forceMount:void 0}),na=e=>{const{__scopeDialog:t,forceMount:r,children:n,container:o}=e,a=me(Mr,t);return d.jsx(ru,{scope:t,forceMount:r,children:l.Children.map(n,s=>d.jsx(_e,{present:r||a.open,children:d.jsx(ht,{asChild:!0,container:o,children:s})}))})};na.displayName=Mr;var Ht="DialogOverlay",oa=l.forwardRef((e,t)=>{const r=ra(Ht,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=me(Ht,e.__scopeDialog);return a.modal?d.jsx(_e,{present:n||a.open,children:d.jsx(ou,{...o,ref:t})}):null});oa.displayName=Ht;var nu=Ve("DialogOverlay.RemoveScroll"),ou=l.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=me(Ht,r);return d.jsx(Vt,{as:nu,allowPinchZoom:!0,shards:[o.contentRef],children:d.jsx(V.div,{"data-state":Lr(o.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),Be="DialogContent",aa=l.forwardRef((e,t)=>{const r=ra(Be,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=me(Be,e.__scopeDialog);return d.jsx(_e,{present:n||a.open,children:a.modal?d.jsx(au,{...o,ref:t}):d.jsx(su,{...o,ref:t})})});aa.displayName=Be;var au=l.forwardRef((e,t)=>{const r=me(Be,e.__scopeDialog),n=l.useRef(null),o=ae(t,r.contentRef,n);return l.useEffect(()=>{const a=n.current;if(a)return jr(a)},[]),d.jsx(sa,{...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())})}),su=l.forwardRef((e,t)=>{const r=me(Be,e.__scopeDialog),n=l.useRef(!1),o=l.useRef(!1);return d.jsx(sa,{...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,u;(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;((u=r.triggerRef.current)==null?void 0:u.contains(s))&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),sa=l.forwardRef((e,t)=>{const{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:a,...s}=e,i=me(Be,r),c=l.useRef(null),u=ae(t,c);return Pr(),d.jsxs(d.Fragment,{children:[d.jsx(jt,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:a,children:d.jsx(mt,{role:"dialog",id:i.contentId,"aria-describedby":i.descriptionId,"aria-labelledby":i.titleId,"data-state":Lr(i.open),...s,ref:u,onDismiss:()=>i.onOpenChange(!1)})}),d.jsxs(d.Fragment,{children:[d.jsx(iu,{titleId:i.titleId}),d.jsx(cu,{contentRef:c,descriptionId:i.descriptionId})]})]})}),Dr="DialogTitle",ia=l.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=me(Dr,r);return d.jsx(V.h2,{id:o.titleId,...n,ref:t})});ia.displayName=Dr;var la="DialogDescription",ca=l.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=me(la,r);return d.jsx(V.p,{id:o.descriptionId,...n,ref:t})});ca.displayName=la;var ua="DialogClose",da=l.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=me(ua,r);return d.jsx(V.button,{type:"button",...n,ref:t,onClick:B(e.onClick,()=>o.onOpenChange(!1))})});da.displayName=ua;function Lr(e){return e?"open":"closed"}var fa="DialogTitleWarning",[Xm,pa]=Cl(fa,{contentName:Be,titleName:Dr,docsSlug:"dialog"}),iu=({titleId:e})=>{const t=pa(fa),r=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
63
63
 
64
64
  If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
65
65
 
66
- 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},lu="DialogDescriptionWarning",cu=({contentRef:e,descriptionId:t})=>{const n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${fa(lu).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},pa=Jo,uu=ea,ma=ra,ha=na,ga=oa,du=sa,fu=la,va=ua;/**
66
+ 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},lu="DialogDescriptionWarning",cu=({contentRef:e,descriptionId:t})=>{const n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${pa(lu).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=Qo,uu=ta,ha=na,ga=oa,va=aa,du=ia,fu=ca,xa=da;/**
67
67
  * @license lucide-react v0.542.0 - ISC
68
68
  *
69
69
  * This source code is licensed under the ISC license.
70
70
  * See the LICENSE file in the root directory of this source tree.
71
- */const pu=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),mu=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,r,n)=>n?n.toUpperCase():r.toLowerCase()),xa=e=>{const t=mu(e);return t.charAt(0).toUpperCase()+t.slice(1)},ba=(...e)=>e.filter((t,r,n)=>!!t&&t.trim()!==""&&n.indexOf(t)===r).join(" ").trim(),hu=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};/**
71
+ */const pu=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),mu=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,r,n)=>n?n.toUpperCase():r.toLowerCase()),ba=e=>{const t=mu(e);return t.charAt(0).toUpperCase()+t.slice(1)},ya=(...e)=>e.filter((t,r,n)=>!!t&&t.trim()!==""&&n.indexOf(t)===r).join(" ").trim(),hu=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};/**
72
72
  * @license lucide-react v0.542.0 - ISC
73
73
  *
74
74
  * This source code is licensed under the ISC license.
@@ -78,12 +78,12 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
78
78
  *
79
79
  * This source code is licensed under the ISC license.
80
80
  * See the LICENSE file in the root directory of this source tree.
81
- */const vu=te.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:n,className:o="",children:a,iconNode:s,...i},c)=>te.createElement("svg",{ref:c,...gu,width:t,height:t,stroke:e,strokeWidth:n?Number(r)*24/Number(t):r,className:ba("lucide",o),...!a&&!hu(i)&&{"aria-hidden":"true"},...i},[...s.map(([u,f])=>te.createElement(u,f)),...Array.isArray(a)?a:[a]]));/**
81
+ */const vu=te.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:n,className:o="",children:a,iconNode:s,...i},c)=>te.createElement("svg",{ref:c,...gu,width:t,height:t,stroke:e,strokeWidth:n?Number(r)*24/Number(t):r,className:ya("lucide",o),...!a&&!hu(i)&&{"aria-hidden":"true"},...i},[...s.map(([u,f])=>te.createElement(u,f)),...Array.isArray(a)?a:[a]]));/**
82
82
  * @license lucide-react v0.542.0 - ISC
83
83
  *
84
84
  * This source code is licensed under the ISC license.
85
85
  * See the LICENSE file in the root directory of this source tree.
86
- */const ce=(e,t)=>{const r=te.forwardRef(({className:n,...o},a)=>te.createElement(vu,{ref:a,iconNode:t,className:ba(`lucide-${pu(xa(e))}`,`lucide-${e}`,n),...o}));return r.displayName=xa(e),r};/**
86
+ */const ce=(e,t)=>{const r=te.forwardRef(({className:n,...o},a)=>te.createElement(vu,{ref:a,iconNode:t,className:ya(`lucide-${pu(ba(e))}`,`lucide-${e}`,n),...o}));return r.displayName=ba(e),r};/**
87
87
  * @license lucide-react v0.542.0 - ISC
88
88
  *
89
89
  * This source code is licensed under the ISC license.
@@ -138,7 +138,7 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
138
138
  *
139
139
  * This source code is licensed under the ISC license.
140
140
  * See the LICENSE file in the root directory of this source tree.
141
- */const ya=ce("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]);/**
141
+ */const wa=ce("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]);/**
142
142
  * @license lucide-react v0.542.0 - ISC
143
143
  *
144
144
  * This source code is licensed under the ISC license.
@@ -148,7 +148,7 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
148
148
  *
149
149
  * This source code is licensed under the ISC license.
150
150
  * See the LICENSE file in the root directory of this source tree.
151
- */const wa=ce("user-round",[["circle",{cx:"12",cy:"8",r:"5",key:"1hypcn"}],["path",{d:"M20 21a8 8 0 0 0-16 0",key:"rfgkzh"}]]);/**
151
+ */const Sa=ce("user-round",[["circle",{cx:"12",cy:"8",r:"5",key:"1hypcn"}],["path",{d:"M20 21a8 8 0 0 0-16 0",key:"rfgkzh"}]]);/**
152
152
  * @license lucide-react v0.542.0 - ISC
153
153
  *
154
154
  * This source code is licensed under the ISC license.
@@ -158,7 +158,7 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
158
158
  *
159
159
  * This source code is licensed under the ISC license.
160
160
  * See the LICENSE file in the root directory of this source tree.
161
- */const Sa=ce("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);function Au({...e}){return d.jsx(pa,{"data-slot":"dialog",...e})}function Nu({...e}){return d.jsx(uu,{"data-slot":"dialog-trigger",...e})}function Ca({...e}){return d.jsx(ma,{"data-slot":"dialog-portal",...e})}function Tu({...e}){return d.jsx(va,{"data-slot":"dialog-close",...e})}function Ea({className:e,...t}){return d.jsx(ha,{"data-slot":"dialog-overlay",className:F("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 Ou({className:e,children:t,showCloseButton:r=!0,...n}){return d.jsxs(Ca,{"data-slot":"dialog-portal",children:[d.jsx(Ea,{}),d.jsxs(ga,{"data-slot":"dialog-content",className:F("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&&d.jsxs(va,{"data-slot":"dialog-close",className:"ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",children:[d.jsx(Sa,{}),d.jsx("span",{className:"sr-only",children:"Close"})]})]})]})}function Iu({className:e,...t}){return d.jsx("div",{"data-slot":"dialog-header",className:F("flex flex-col gap-2 text-center sm:text-left",e),...t})}function ju({className:e,...t}){return d.jsx("div",{"data-slot":"dialog-footer",className:F("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",e),...t})}function Mu({className:e,...t}){return d.jsx(du,{"data-slot":"dialog-title",className:F("text-lg leading-none font-semibold ",e),...t})}function Du({className:e,...t}){return d.jsx(fu,{"data-slot":"dialog-description",className:F("text-muted-foreground text-sm",e),...t})}const Lu=ue("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"}});function ka({className:e,variant:t,type:r="filled",asChild:n=!1,children:o,...a}){const s=n?pr:"span";return d.jsx(s,{"data-slot":"badge",className:F(Lu({variant:t,type:r}),e),...a,children:o})}const Fu=["top","right","bottom","left"],Ie=Math.min,de=Math.max,Gt=Math.round,Ut=Math.floor,ye=e=>({x:e,y:e}),$u={left:"right",right:"left",bottom:"top",top:"bottom"},Vu={start:"end",end:"start"};function $r(e,t,r){return de(e,Ie(t,r))}function Pe(e,t){return typeof e=="function"?e(t):e}function Ae(e){return e.split("-")[0]}function et(e){return e.split("-")[1]}function Vr(e){return e==="x"?"y":"x"}function zr(e){return e==="y"?"height":"width"}const zu=new Set(["top","bottom"]);function we(e){return zu.has(Ae(e))?"y":"x"}function Br(e){return Vr(we(e))}function Bu(e,t,r){r===void 0&&(r=!1);const n=et(e),o=Br(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=Kt(s)),[s,Kt(s)]}function Wu(e){const t=Kt(e);return[Wr(e),t,Wr(t)]}function Wr(e){return e.replace(/start|end/g,t=>Vu[t])}const Ra=["left","right"],_a=["right","left"],Hu=["top","bottom"],Gu=["bottom","top"];function Uu(e,t,r){switch(e){case"top":case"bottom":return r?t?_a:Ra:t?Ra:_a;case"left":case"right":return t?Hu:Gu;default:return[]}}function Ku(e,t,r,n){const o=et(e);let a=Uu(Ae(e),r==="start",n);return o&&(a=a.map(s=>s+"-"+o),t&&(a=a.concat(a.map(Wr)))),a}function Kt(e){return e.replace(/left|right|bottom|top/g,t=>$u[t])}function Yu(e){return{top:0,right:0,bottom:0,left:0,...e}}function Pa(e){return typeof e!="number"?Yu(e):{top:e,right:e,bottom:e,left:e}}function Yt(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 Aa(e,t,r){let{reference:n,floating:o}=e;const a=we(t),s=Br(t),i=zr(s),c=Ae(t),u=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(et(t)){case"start":h[s]-=g*(r&&u?-1:1);break;case"end":h[s]+=g*(r&&u?-1:1);break}return h}const qu=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 u=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:f,y:p}=Aa(u,n,c),g=n,h={},v=0;for(let m=0;m<i.length;m++){const{name:x,fn:y}=i[m],{x:b,y:w,data:C,reset:k}=await y({x:f,y:p,initialPlacement:n,placement:g,strategy:o,middlewareData:h,rects:u,platform:s,elements:{reference:e,floating:t}});f=b??f,p=w??p,h={...h,[x]:{...h[x],...C}},k&&v<=50&&(v++,typeof k=="object"&&(k.placement&&(g=k.placement),k.rects&&(u=k.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:o}):k.rects),{x:f,y:p}=Aa(u,g,c)),m=-1)}return{x:f,y:p,placement:g,strategy:o,middlewareData:h}};async function gt(e,t){var r;t===void 0&&(t={});const{x:n,y:o,platform:a,rects:s,elements:i,strategy:c}=e,{boundary:u="clippingAncestors",rootBoundary:f="viewport",elementContext:p="floating",altBoundary:g=!1,padding:h=0}=Pe(t,e),v=Pa(h),x=i[g?p==="floating"?"reference":"floating":p],y=Yt(await a.getClippingRect({element:(r=await(a.isElement==null?void 0:a.isElement(x)))==null||r?x:x.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(i.floating)),boundary:u,rootBoundary:f,strategy:c})),b=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},k=Yt(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:i,rect:b,offsetParent:w,strategy:c}):b);return{top:(y.top-k.top+v.top)/C.y,bottom:(k.bottom-y.bottom+v.bottom)/C.y,left:(y.left-k.left+v.left)/C.x,right:(k.right-y.right+v.right)/C.x}}const Xu=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:u,padding:f=0}=Pe(e,t)||{};if(u==null)return{};const p=Pa(f),g={x:r,y:n},h=Br(o),v=zr(h),m=await s.getDimensions(u),x=h==="y",y=x?"top":"left",b=x?"bottom":"right",w=x?"clientHeight":"clientWidth",C=a.reference[v]+a.reference[h]-g[h]-a.floating[v],k=g[h]-a.reference[h],N=await(s.getOffsetParent==null?void 0:s.getOffsetParent(u));let R=N?N[w]:0;(!R||!await(s.isElement==null?void 0:s.isElement(N)))&&(R=i.floating[w]||a.floating[v]);const _=C/2-k/2,W=R/2-m[v]/2-1,K=Ie(p[y],W),X=Ie(p[b],W),Q=K,ee=R-m[v]-X,z=R/2-m[v]/2+_,q=$r(Q,z,ee),D=!c.arrow&&et(o)!=null&&z!==q&&a.reference[v]/2-(z<Q?K:X)-m[v]/2<0,H=D?z<Q?z-Q:z-ee:0;return{[h]:g[h]+H,data:{[h]:q,centerOffset:z-q-H,...D&&{alignmentOffset:H}},reset:D}}}),Zu=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:u}=t,{mainAxis:f=!0,crossAxis:p=!0,fallbackPlacements:g,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:m=!0,...x}=Pe(e,t);if((r=a.arrow)!=null&&r.alignmentOffset)return{};const y=Ae(o),b=we(i),w=Ae(i)===i,C=await(c.isRTL==null?void 0:c.isRTL(u.floating)),k=g||(w||!m?[Kt(i)]:Wu(i)),N=v!=="none";!g&&N&&k.push(...Ku(i,m,v,C));const R=[i,...k],_=await gt(t,x),W=[];let K=((n=a.flip)==null?void 0:n.overflows)||[];if(f&&W.push(_[y]),p){const z=Bu(o,s,C);W.push(_[z[0]],_[z[1]])}if(K=[...K,{placement:o,overflows:W}],!W.every(z=>z<=0)){var X,Q;const z=(((X=a.flip)==null?void 0:X.index)||0)+1,q=R[z];if(q&&(!(p==="alignment"?b!==we(q):!1)||K.every(P=>we(P.placement)===b?P.overflows[0]>0:!0)))return{data:{index:z,overflows:K},reset:{placement:q}};let D=(Q=K.filter(H=>H.overflows[0]<=0).sort((H,P)=>H.overflows[1]-P.overflows[1])[0])==null?void 0:Q.placement;if(!D)switch(h){case"bestFit":{var ee;const H=(ee=K.filter(P=>{if(N){const re=we(P.placement);return re===b||re==="y"}return!0}).map(P=>[P.placement,P.overflows.filter(re=>re>0).reduce((re,E)=>re+E,0)]).sort((P,re)=>P[1]-re[1])[0])==null?void 0:ee[0];H&&(D=H);break}case"initialPlacement":D=i;break}if(o!==D)return{reset:{placement:D}}}return{}}}};function Na(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Ta(e){return Fu.some(t=>e[t]>=0)}const Ju=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 gt(t,{...o,elementContext:"reference"}),s=Na(a,r.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:Ta(s)}}}case"escaped":{const a=await gt(t,{...o,altBoundary:!0}),s=Na(a,r.floating);return{data:{escapedOffsets:s,escaped:Ta(s)}}}default:return{}}}}},Oa=new Set(["left","top"]);async function Qu(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=et(r),c=we(r)==="y",u=Oa.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*u}:{x:g*u,y:h*f}}const ed=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 Qu(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}}}}},td=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:x=>{let{x:y,y:b}=x;return{x:y,y:b}}},...c}=Pe(e,t),u={x:r,y:n},f=await gt(t,c),p=we(Ae(o)),g=Vr(p);let h=u[g],v=u[p];if(a){const x=g==="y"?"top":"left",y=g==="y"?"bottom":"right",b=h+f[x],w=h-f[y];h=$r(b,h,w)}if(s){const x=p==="y"?"top":"left",y=p==="y"?"bottom":"right",b=v+f[x],w=v-f[y];v=$r(b,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}}}}}},rd=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:u=!0}=Pe(e,t),f={x:r,y:n},p=we(o),g=Vr(p);let h=f[g],v=f[p];const m=Pe(i,t),x=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]+x.mainAxis,k=a.reference[g]+a.reference[w]-x.mainAxis;h<C?h=C:h>k&&(h=k)}if(u){var y,b;const w=g==="y"?"width":"height",C=Oa.has(Ae(o)),k=a.reference[p]-a.floating[w]+(C&&((y=s.offset)==null?void 0:y[p])||0)+(C?0:x.crossAxis),N=a.reference[p]+a.reference[w]+(C?0:((b=s.offset)==null?void 0:b[p])||0)-(C?x.crossAxis:0);v<k?v=k:v>N&&(v=N)}return{[g]:h,[p]:v}}}},nd=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=()=>{},...u}=Pe(e,t),f=await gt(t,u),p=Ae(o),g=et(o),h=we(o)==="y",{width:v,height:m}=a.floating;let x,y;p==="top"||p==="bottom"?(x=p,y=g===(await(s.isRTL==null?void 0:s.isRTL(i.floating))?"start":"end")?"left":"right"):(y=p,x=g==="end"?"top":"bottom");const b=m-f.top-f.bottom,w=v-f.left-f.right,C=Ie(m-f[x],b),k=Ie(v-f[y],w),N=!t.middlewareData.shift;let R=C,_=k;if((r=t.middlewareData.shift)!=null&&r.enabled.x&&(_=w),(n=t.middlewareData.shift)!=null&&n.enabled.y&&(R=b),N&&!g){const K=de(f.left,0),X=de(f.right,0),Q=de(f.top,0),ee=de(f.bottom,0);h?_=v-2*(K!==0||X!==0?K+X:de(f.left,f.right)):R=m-2*(Q!==0||ee!==0?Q+ee:de(f.top,f.bottom))}await c({...t,availableWidth:_,availableHeight:R});const W=await s.getDimensions(i.floating);return v!==W.width||m!==W.height?{reset:{rects:!0}}:{}}}};function qt(){return typeof window<"u"}function tt(e){return Ia(e)?(e.nodeName||"").toLowerCase():"#document"}function fe(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Se(e){var t;return(t=(Ia(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Ia(e){return qt()?e instanceof Node||e instanceof fe(e).Node:!1}function he(e){return qt()?e instanceof Element||e instanceof fe(e).Element:!1}function Ce(e){return qt()?e instanceof HTMLElement||e instanceof fe(e).HTMLElement:!1}function ja(e){return!qt()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof fe(e).ShadowRoot}const od=new Set(["inline","contents"]);function vt(e){const{overflow:t,overflowX:r,overflowY:n,display:o}=ge(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!od.has(o)}const ad=new Set(["table","td","th"]);function sd(e){return ad.has(tt(e))}const id=[":popover-open",":modal"];function Xt(e){return id.some(t=>{try{return e.matches(t)}catch{return!1}})}const ld=["transform","translate","scale","rotate","perspective"],cd=["transform","translate","scale","rotate","perspective","filter"],ud=["paint","layout","strict","content"];function Hr(e){const t=Gr(),r=he(e)?ge(e):e;return ld.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)||cd.some(n=>(r.willChange||"").includes(n))||ud.some(n=>(r.contain||"").includes(n))}function dd(e){let t=je(e);for(;Ce(t)&&!rt(t);){if(Hr(t))return t;if(Xt(t))return null;t=je(t)}return null}function Gr(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const fd=new Set(["html","body","#document"]);function rt(e){return fd.has(tt(e))}function ge(e){return fe(e).getComputedStyle(e)}function Zt(e){return he(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function je(e){if(tt(e)==="html")return e;const t=e.assignedSlot||e.parentNode||ja(e)&&e.host||Se(e);return ja(t)?t.host:t}function Ma(e){const t=je(e);return rt(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ce(t)&&vt(t)?t:Ma(t)}function xt(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);const o=Ma(e),a=o===((n=e.ownerDocument)==null?void 0:n.body),s=fe(o);if(a){const i=Ur(s);return t.concat(s,s.visualViewport||[],vt(o)?o:[],i&&r?xt(i):[])}return t.concat(o,xt(o,[],r))}function Ur(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Da(e){const t=ge(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const o=Ce(e),a=o?e.offsetWidth:r,s=o?e.offsetHeight:n,i=Gt(r)!==a||Gt(n)!==s;return i&&(r=a,n=s),{width:r,height:n,$:i}}function Kr(e){return he(e)?e:e.contextElement}function nt(e){const t=Kr(e);if(!Ce(t))return ye(1);const r=t.getBoundingClientRect(),{width:n,height:o,$:a}=Da(t);let s=(a?Gt(r.width):r.width)/n,i=(a?Gt(r.height):r.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!i||!Number.isFinite(i))&&(i=1),{x:s,y:i}}const pd=ye(0);function La(e){const t=fe(e);return!Gr()||!t.visualViewport?pd:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function md(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==fe(e)?!1:t}function We(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);const o=e.getBoundingClientRect(),a=Kr(e);let s=ye(1);t&&(n?he(n)&&(s=nt(n)):s=nt(e));const i=md(a,r,n)?La(a):ye(0);let c=(o.left+i.x)/s.x,u=(o.top+i.y)/s.y,f=o.width/s.x,p=o.height/s.y;if(a){const g=fe(a),h=n&&he(n)?fe(n):n;let v=g,m=Ur(v);for(;m&&n&&h!==v;){const x=nt(m),y=m.getBoundingClientRect(),b=ge(m),w=y.left+(m.clientLeft+parseFloat(b.paddingLeft))*x.x,C=y.top+(m.clientTop+parseFloat(b.paddingTop))*x.y;c*=x.x,u*=x.y,f*=x.x,p*=x.y,c+=w,u+=C,v=fe(m),m=Ur(v)}}return Yt({width:f,height:p,x:c,y:u})}function Jt(e,t){const r=Zt(e).scrollLeft;return t?t.left+r:We(Se(e)).left+r}function Fa(e,t){const r=e.getBoundingClientRect(),n=r.left+t.scrollLeft-Jt(e,r),o=r.top+t.scrollTop;return{x:n,y:o}}function hd(e){let{elements:t,rect:r,offsetParent:n,strategy:o}=e;const a=o==="fixed",s=Se(n),i=t?Xt(t.floating):!1;if(n===s||i&&a)return r;let c={scrollLeft:0,scrollTop:0},u=ye(1);const f=ye(0),p=Ce(n);if((p||!p&&!a)&&((tt(n)!=="body"||vt(s))&&(c=Zt(n)),Ce(n))){const h=We(n);u=nt(n),f.x=h.x+n.clientLeft,f.y=h.y+n.clientTop}const g=s&&!p&&!a?Fa(s,c):ye(0);return{width:r.width*u.x,height:r.height*u.y,x:r.x*u.x-c.scrollLeft*u.x+f.x+g.x,y:r.y*u.y-c.scrollTop*u.y+f.y+g.y}}function gd(e){return Array.from(e.getClientRects())}function vd(e){const t=Se(e),r=Zt(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+Jt(e);const i=-r.scrollTop;return ge(n).direction==="rtl"&&(s+=de(t.clientWidth,n.clientWidth)-o),{width:o,height:a,x:s,y:i}}const $a=25;function xd(e,t){const r=fe(e),n=Se(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=Gr();(!f||f&&t==="fixed")&&(i=o.offsetLeft,c=o.offsetTop)}const u=Jt(n);if(u<=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<=$a&&(a-=v)}else u<=$a&&(a+=u);return{width:a,height:s,x:i,y:c}}const bd=new Set(["absolute","fixed"]);function yd(e,t){const r=We(e,!0,t==="fixed"),n=r.top+e.clientTop,o=r.left+e.clientLeft,a=Ce(e)?nt(e):ye(1),s=e.clientWidth*a.x,i=e.clientHeight*a.y,c=o*a.x,u=n*a.y;return{width:s,height:i,x:c,y:u}}function Va(e,t,r){let n;if(t==="viewport")n=xd(e,r);else if(t==="document")n=vd(Se(e));else if(he(t))n=yd(t,r);else{const o=La(e);n={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Yt(n)}function za(e,t){const r=je(e);return r===t||!he(r)||rt(r)?!1:ge(r).position==="fixed"||za(r,t)}function wd(e,t){const r=t.get(e);if(r)return r;let n=xt(e,[],!1).filter(i=>he(i)&&tt(i)!=="body"),o=null;const a=ge(e).position==="fixed";let s=a?je(e):e;for(;he(s)&&!rt(s);){const i=ge(s),c=Hr(s);!c&&i.position==="fixed"&&(o=null),(a?!c&&!o:!c&&i.position==="static"&&!!o&&bd.has(o.position)||vt(s)&&!c&&za(e,s))?n=n.filter(f=>f!==s):o=i,s=je(s)}return t.set(e,n),n}function Sd(e){let{element:t,boundary:r,rootBoundary:n,strategy:o}=e;const s=[...r==="clippingAncestors"?Xt(t)?[]:wd(t,this._c):[].concat(r),n],i=s[0],c=s.reduce((u,f)=>{const p=Va(t,f,o);return u.top=de(p.top,u.top),u.right=Ie(p.right,u.right),u.bottom=Ie(p.bottom,u.bottom),u.left=de(p.left,u.left),u},Va(t,i,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function Cd(e){const{width:t,height:r}=Da(e);return{width:t,height:r}}function Ed(e,t,r){const n=Ce(t),o=Se(t),a=r==="fixed",s=We(e,!0,a,t);let i={scrollLeft:0,scrollTop:0};const c=ye(0);function u(){c.x=Jt(o)}if(n||!n&&!a)if((tt(t)!=="body"||vt(o))&&(i=Zt(t)),n){const h=We(t,!0,a,t);c.x=h.x+t.clientLeft,c.y=h.y+t.clientTop}else o&&u();a&&!n&&o&&u();const f=o&&!n&&!a?Fa(o,i):ye(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 Yr(e){return ge(e).position==="static"}function Ba(e,t){if(!Ce(e)||ge(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return Se(e)===r&&(r=r.ownerDocument.body),r}function Wa(e,t){const r=fe(e);if(Xt(e))return r;if(!Ce(e)){let o=je(e);for(;o&&!rt(o);){if(he(o)&&!Yr(o))return o;o=je(o)}return r}let n=Ba(e,t);for(;n&&sd(n)&&Yr(n);)n=Ba(n,t);return n&&rt(n)&&Yr(n)&&!Hr(n)?r:n||dd(e)||r}const kd=async function(e){const t=this.getOffsetParent||Wa,r=this.getDimensions,n=await r(e.floating);return{reference:Ed(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function Rd(e){return ge(e).direction==="rtl"}const _d={convertOffsetParentRelativeRectToViewportRelativeRect:hd,getDocumentElement:Se,getClippingRect:Sd,getOffsetParent:Wa,getElementRects:kd,getClientRects:gd,getDimensions:Cd,getScale:nt,isElement:he,isRTL:Rd};function Ha(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Pd(e,t){let r=null,n;const o=Se(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 u=e.getBoundingClientRect(),{left:f,top:p,width:g,height:h}=u;if(i||t(),!g||!h)return;const v=Ut(p),m=Ut(o.clientWidth-(f+g)),x=Ut(o.clientHeight-(p+h)),y=Ut(f),w={rootMargin:-v+"px "+-m+"px "+-x+"px "+-y+"px",threshold:de(0,Ie(1,c))||1};let C=!0;function k(N){const R=N[0].intersectionRatio;if(R!==c){if(!C)return s();R?s(!1,R):n=setTimeout(()=>{s(!1,1e-7)},1e3)}R===1&&!Ha(u,e.getBoundingClientRect())&&s(),C=!1}try{r=new IntersectionObserver(k,{...w,root:o.ownerDocument})}catch{r=new IntersectionObserver(k,w)}r.observe(e)}return s(!0),a}function Ad(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,u=Kr(e),f=o||a?[...u?xt(u):[],...xt(t)]:[];f.forEach(y=>{o&&y.addEventListener("scroll",r,{passive:!0}),a&&y.addEventListener("resize",r)});const p=u&&i?Pd(u,r):null;let g=-1,h=null;s&&(h=new ResizeObserver(y=>{let[b]=y;b&&b.target===u&&h&&(h.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var w;(w=h)==null||w.observe(t)})),r()}),u&&!c&&h.observe(u),h.observe(t));let v,m=c?We(e):null;c&&x();function x(){const y=We(e);m&&!Ha(m,y)&&r(),m=y,v=requestAnimationFrame(x)}return r(),()=>{var y;f.forEach(b=>{o&&b.removeEventListener("scroll",r),a&&b.removeEventListener("resize",r)}),p==null||p(),(y=h)==null||y.disconnect(),h=null,c&&cancelAnimationFrame(v)}}const Nd=ed,Td=td,Od=Zu,Id=nd,jd=Ju,Ga=Xu,Md=rd,Dd=(e,t,r)=>{const n=new Map,o={platform:_d,...r},a={...o.platform,_c:n};return qu(e,t,{...o,platform:a})};var Ld=typeof document<"u",Fd=function(){},Qt=Ld?te.useLayoutEffect:Fd;function er(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(!er(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)&&!er(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function Ua(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Ka(e,t){const r=Ua(e);return Math.round(t*r)/r}function qr(e){const t=l.useRef(e);return Qt(()=>{t.current=e}),t}function $d(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:u}=e,[f,p]=l.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[g,h]=l.useState(n);er(g,n)||h(n);const[v,m]=l.useState(null),[x,y]=l.useState(null),b=l.useCallback(P=>{P!==N.current&&(N.current=P,m(P))},[]),w=l.useCallback(P=>{P!==R.current&&(R.current=P,y(P))},[]),C=a||v,k=s||x,N=l.useRef(null),R=l.useRef(null),_=l.useRef(f),W=c!=null,K=qr(c),X=qr(o),Q=qr(u),ee=l.useCallback(()=>{if(!N.current||!R.current)return;const P={placement:t,strategy:r,middleware:g};X.current&&(P.platform=X.current),Dd(N.current,R.current,P).then(re=>{const E={...re,isPositioned:Q.current!==!1};z.current&&!er(_.current,E)&&(_.current=E,At.flushSync(()=>{p(E)}))})},[g,t,r,X,Q]);Qt(()=>{u===!1&&_.current.isPositioned&&(_.current.isPositioned=!1,p(P=>({...P,isPositioned:!1})))},[u]);const z=l.useRef(!1);Qt(()=>(z.current=!0,()=>{z.current=!1}),[]),Qt(()=>{if(C&&(N.current=C),k&&(R.current=k),C&&k){if(K.current)return K.current(C,k,ee);ee()}},[C,k,ee,K,W]);const q=l.useMemo(()=>({reference:N,floating:R,setReference:b,setFloating:w}),[b,w]),D=l.useMemo(()=>({reference:C,floating:k}),[C,k]),H=l.useMemo(()=>{const P={position:r,left:0,top:0};if(!D.floating)return P;const re=Ka(D.floating,f.x),E=Ka(D.floating,f.y);return i?{...P,transform:"translate("+re+"px, "+E+"px)",...Ua(D.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:re,top:E}},[r,i,D.floating,f.x,f.y]);return l.useMemo(()=>({...f,update:ee,refs:q,elements:D,floatingStyles:H}),[f,ee,q,D,H])}const Vd=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?Ga({element:n.current,padding:o}).fn(r):{}:n?Ga({element:n,padding:o}).fn(r):{}}}},zd=(e,t)=>({...Nd(e),options:[e,t]}),Bd=(e,t)=>({...Td(e),options:[e,t]}),Wd=(e,t)=>({...Md(e),options:[e,t]}),Hd=(e,t)=>({...Od(e),options:[e,t]}),Gd=(e,t)=>({...Id(e),options:[e,t]}),Ud=(e,t)=>({...jd(e),options:[e,t]}),Kd=(e,t)=>({...Vd(e),options:[e,t]});var Yd="Arrow",Ya=l.forwardRef((e,t)=>{const{children:r,width:n=10,height:o=5,...a}=e;return d.jsx(V.svg,{...a,ref:t,width:n,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:d.jsx("polygon",{points:"0,0 30,0 15,10"})})});Ya.displayName=Yd;var qd=Ya,Xr="Popper",[qa,ot]=xe(Xr),[Xd,Xa]=qa(Xr),Za=e=>{const{__scopePopper:t,children:r}=e,[n,o]=l.useState(null);return d.jsx(Xd,{scope:t,anchor:n,onAnchorChange:o,children:r})};Za.displayName=Xr;var Ja="PopperAnchor",Qa=l.forwardRef((e,t)=>{const{__scopePopper:r,virtualRef:n,...o}=e,a=Xa(Ja,r),s=l.useRef(null),i=ae(t,s),c=l.useRef(null);return l.useEffect(()=>{const u=c.current;c.current=(n==null?void 0:n.current)||s.current,u!==c.current&&a.onAnchorChange(c.current)}),n?null:d.jsx(V.div,{...o,ref:i})});Qa.displayName=Ja;var Zr="PopperContent",[Zd,Jd]=qa(Zr),es=l.forwardRef((e,t)=>{var A,L,G,Z,ne,oe;const{__scopePopper:r,side:n="bottom",sideOffset:o=0,align:a="center",alignOffset:s=0,arrowPadding:i=0,avoidCollisions:c=!0,collisionBoundary:u=[],collisionPadding:f=0,sticky:p="partial",hideWhenDetached:g=!1,updatePositionStrategy:h="optimized",onPlaced:v,...m}=e,x=Xa(Zr,r),[y,b]=l.useState(null),w=ae(t,pe=>b(pe)),[C,k]=l.useState(null),N=co(C),R=(N==null?void 0:N.width)??0,_=(N==null?void 0:N.height)??0,W=n+(a!=="center"?"-"+a:""),K=typeof f=="number"?f:{top:0,right:0,bottom:0,left:0,...f},X=Array.isArray(u)?u:[u],Q=X.length>0,ee={padding:K,boundary:X.filter(ef),altBoundary:Q},{refs:z,floatingStyles:q,placement:D,isPositioned:H,middlewareData:P}=$d({strategy:"fixed",placement:W,whileElementsMounted:(...pe)=>Ad(...pe,{animationFrame:h==="always"}),elements:{reference:x.anchor},middleware:[zd({mainAxis:o+_,alignmentAxis:s}),c&&Bd({mainAxis:!0,crossAxis:!1,limiter:p==="partial"?Wd():void 0,...ee}),c&&Hd({...ee}),Gd({...ee,apply:({elements:pe,rects:Ee,availableWidth:Rt,availableHeight:_t})=>{const{width:Pt,height:Wm}=Ee.reference,dr=pe.floating.style;dr.setProperty("--radix-popper-available-width",`${Rt}px`),dr.setProperty("--radix-popper-available-height",`${_t}px`),dr.setProperty("--radix-popper-anchor-width",`${Pt}px`),dr.setProperty("--radix-popper-anchor-height",`${Wm}px`)}}),C&&Kd({element:C,padding:i}),tf({arrowWidth:R,arrowHeight:_}),g&&Ud({strategy:"referenceHidden",...ee})]}),[re,E]=ns(D),$=Re(v);ie(()=>{H&&($==null||$())},[H,$]);const S=(A=P.arrow)==null?void 0:A.x,T=(L=P.arrow)==null?void 0:L.y,M=((G=P.arrow)==null?void 0:G.centerOffset)!==0,[O,Y]=l.useState();return ie(()=>{y&&Y(window.getComputedStyle(y).zIndex)},[y]),d.jsx("div",{ref:z.setFloating,"data-radix-popper-content-wrapper":"",style:{...q,transform:H?q.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:O,"--radix-popper-transform-origin":[(Z=P.transformOrigin)==null?void 0:Z.x,(ne=P.transformOrigin)==null?void 0:ne.y].join(" "),...((oe=P.hide)==null?void 0:oe.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:d.jsx(Zd,{scope:r,placedSide:re,onArrowChange:k,arrowX:S,arrowY:T,shouldHideArrow:M,children:d.jsx(V.div,{"data-side":re,"data-align":E,...m,ref:w,style:{...m.style,animation:H?void 0:"none"}})})})});es.displayName=Zr;var ts="PopperArrow",Qd={top:"bottom",right:"left",bottom:"top",left:"right"},rs=l.forwardRef(function(t,r){const{__scopePopper:n,...o}=t,a=Jd(ts,n),s=Qd[a.placedSide];return d.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:d.jsx(qd,{...o,ref:r,style:{...o.style,display:"block"}})})});rs.displayName=ts;function ef(e){return e!==null}var tf=e=>({name:"transformOrigin",options:e,fn(t){var x,y,b;const{placement:r,rects:n,middlewareData:o}=t,s=((x=o.arrow)==null?void 0:x.centerOffset)!==0,i=s?0:e.arrowWidth,c=s?0:e.arrowHeight,[u,f]=ns(r),p={start:"0%",center:"50%",end:"100%"}[f],g=(((y=o.arrow)==null?void 0:y.x)??0)+i/2,h=(((b=o.arrow)==null?void 0:b.y)??0)+c/2;let v="",m="";return u==="bottom"?(v=s?p:`${g}px`,m=`${-c}px`):u==="top"?(v=s?p:`${g}px`,m=`${n.floating.height+c}px`):u==="right"?(v=`${-c}px`,m=s?p:`${h}px`):u==="left"&&(v=`${n.floating.width+c}px`,m=s?p:`${h}px`),{data:{x:v,y:m}}}});function ns(e){const[t,r="center"]=e.split("-");return[t,r]}var Jr=Za,tr=Qa,Qr=es,en=rs,os=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"}),rf="VisuallyHidden",as=l.forwardRef((e,t)=>d.jsx(V.span,{...e,ref:t,style:{...os,...e.style}}));as.displayName=rf;var nf=as,[rr,dh]=xe("Tooltip",[ot]),nr=ot(),ss="TooltipProvider",of=700,tn="tooltip.open",[af,rn]=rr(ss),is=e=>{const{__scopeTooltip:t,delayDuration:r=of,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 u=c.current;return()=>window.clearTimeout(u)},[]),d.jsx(af,{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(u=>{i.current=u},[]),disableHoverableContent:o,children:a})};is.displayName=ss;var bt="Tooltip",[sf,yt]=rr(bt),ls=e=>{const{__scopeTooltip:t,children:r,open:n,defaultOpen:o,onOpenChange:a,disableHoverableContent:s,delayDuration:i}=e,c=rn(bt,e.__scopeTooltip),u=nr(t),[f,p]=l.useState(null),g=le(),h=l.useRef(0),v=s??c.disableHoverableContent,m=i??c.delayDuration,x=l.useRef(!1),[y,b]=Te({prop:n,defaultProp:o??!1,onChange:R=>{R?(c.onOpen(),document.dispatchEvent(new CustomEvent(tn))):c.onClose(),a==null||a(R)},caller:bt}),w=l.useMemo(()=>y?x.current?"delayed-open":"instant-open":"closed",[y]),C=l.useCallback(()=>{window.clearTimeout(h.current),h.current=0,x.current=!1,b(!0)},[b]),k=l.useCallback(()=>{window.clearTimeout(h.current),h.current=0,b(!1)},[b]),N=l.useCallback(()=>{window.clearTimeout(h.current),h.current=window.setTimeout(()=>{x.current=!0,b(!0),h.current=0},m)},[m,b]);return l.useEffect(()=>()=>{h.current&&(window.clearTimeout(h.current),h.current=0)},[]),d.jsx(Jr,{...u,children:d.jsx(sf,{scope:t,contentId:g,open:y,stateAttribute:w,trigger:f,onTriggerChange:p,onTriggerEnter:l.useCallback(()=>{c.isOpenDelayedRef.current?N():C()},[c.isOpenDelayedRef,N,C]),onTriggerLeave:l.useCallback(()=>{v?k():(window.clearTimeout(h.current),h.current=0)},[k,v]),onOpen:C,onClose:k,disableHoverableContent:v,children:r})})};ls.displayName=bt;var nn="TooltipTrigger",cs=l.forwardRef((e,t)=>{const{__scopeTooltip:r,...n}=e,o=yt(nn,r),a=rn(nn,r),s=nr(r),i=l.useRef(null),c=ae(t,i,o.onTriggerChange),u=l.useRef(!1),f=l.useRef(!1),p=l.useCallback(()=>u.current=!1,[]);return l.useEffect(()=>()=>document.removeEventListener("pointerup",p),[p]),d.jsx(tr,{asChild:!0,...s,children:d.jsx(V.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(),u.current=!0,document.addEventListener("pointerup",p,{once:!0})}),onFocus:B(e.onFocus,()=>{u.current||o.onOpen()}),onBlur:B(e.onBlur,o.onClose),onClick:B(e.onClick,o.onClose)})})});cs.displayName=nn;var on="TooltipPortal",[lf,cf]=rr(on,{forceMount:void 0}),us=e=>{const{__scopeTooltip:t,forceMount:r,children:n,container:o}=e,a=yt(on,t);return d.jsx(lf,{scope:t,forceMount:r,children:d.jsx(_e,{present:r||a.open,children:d.jsx(ht,{asChild:!0,container:o,children:n})})})};us.displayName=on;var at="TooltipContent",ds=l.forwardRef((e,t)=>{const r=cf(at,e.__scopeTooltip),{forceMount:n=r.forceMount,side:o="top",...a}=e,s=yt(at,e.__scopeTooltip);return d.jsx(_e,{present:n||s.open,children:s.disableHoverableContent?d.jsx(fs,{side:o,...a,ref:t}):d.jsx(uf,{side:o,...a,ref:t})})}),uf=l.forwardRef((e,t)=>{const r=yt(at,e.__scopeTooltip),n=rn(at,e.__scopeTooltip),o=l.useRef(null),a=ae(t,o),[s,i]=l.useState(null),{trigger:c,onClose:u}=r,f=o.current,{onPointerInTransitChange:p}=n,g=l.useCallback(()=>{i(null),p(!1)},[p]),h=l.useCallback((v,m)=>{const x=v.currentTarget,y={x:v.clientX,y:v.clientY},b=mf(y,x.getBoundingClientRect()),w=hf(y,b),C=gf(m.getBoundingClientRect()),k=xf([...w,...C]);i(k),p(!0)},[p]);return l.useEffect(()=>()=>g(),[g]),l.useEffect(()=>{if(c&&f){const v=x=>h(x,f),m=x=>h(x,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 x=m.target,y={x:m.clientX,y:m.clientY},b=(c==null?void 0:c.contains(x))||(f==null?void 0:f.contains(x)),w=!vf(y,s);b?g():w&&(g(),u())};return document.addEventListener("pointermove",v),()=>document.removeEventListener("pointermove",v)}},[c,f,s,u,g]),d.jsx(fs,{...e,ref:a})}),[df,ff]=rr(bt,{isInside:!1}),pf=Ii("TooltipContent"),fs=l.forwardRef((e,t)=>{const{__scopeTooltip:r,children:n,"aria-label":o,onEscapeKeyDown:a,onPointerDownOutside:s,...i}=e,c=yt(at,r),u=nr(r),{onClose:f}=c;return l.useEffect(()=>(document.addEventListener(tn,f),()=>document.removeEventListener(tn,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]),d.jsx(mt,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:s,onFocusOutside:p=>p.preventDefault(),onDismiss:f,children:d.jsxs(Qr,{"data-state":c.stateAttribute,...u,...i,ref:t,style:{...i.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[d.jsx(pf,{children:n}),d.jsx(df,{scope:r,isInside:!0,children:d.jsx(nf,{id:c.contentId,role:"tooltip",children:o||n})})]})})});ds.displayName=at;var ps="TooltipArrow",ms=l.forwardRef((e,t)=>{const{__scopeTooltip:r,...n}=e,o=nr(r);return ff(ps,r).isInside?null:d.jsx(en,{...o,...n,ref:t})});ms.displayName=ps;function mf(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 hf(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 gf(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 vf(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],u=i.x,f=i.y,p=c.x,g=c.y;f>n!=g>n&&r<(p-u)*(n-f)/(g-f)+u&&(o=!o)}return o}function xf(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),bf(t)}function bf(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=is,wf=ls,Sf=cs,Cf=us,Ef=ds,kf=ms;function hs({delayDuration:e=0,...t}){return d.jsx(yf,{"data-slot":"tooltip-provider",delayDuration:e,...t})}function Rf({...e}){return d.jsx(hs,{children:d.jsx(wf,{"data-slot":"tooltip",...e})})}function _f({...e}){return d.jsx(Sf,{"data-slot":"tooltip-trigger",...e})}function Pf({className:e,sideOffset:t=0,children:r,...n}){return d.jsx(Cf,{children:d.jsxs(Ef,{"data-slot":"tooltip-content",sideOffset:t,className:F("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,d.jsx(kf,{className:"bg-neutral-black-1 fill-foreground z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]"})]})})}const Af=ue("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"}}),an=({label:e,helperText:t,errorText:r,leftIcon:n,rightIcon:o,size:a="medium",className:s,disabled:i=!1,...c})=>d.jsxs("div",{className:"flex flex-col gap-1",children:[e&&d.jsx("label",{className:"text-sm font-normal text-neutral-black-1",children:e}),d.jsxs("div",{className:F(Af({size:a,status:r?"error":i?"disabled":"default"}),s),children:[n&&d.jsx("span",{className:"mr-2 flex-shrink-0",children:n}),d.jsx("input",{disabled:i,className:F("flex-1 bg-transparent outline-none placeholder:text-neutral-black-2 disabled:cursor-not-allowed disabled:opacity-50"),...c}),o&&d.jsx("span",{className:"ml-2 flex-shrink-0",children:o})]}),(t||r)&&d.jsx("p",{className:F("text-xs mt-1",r?"text-primary-1":"text-neutral-black-2"),children:r||t})]}),Nf=e=>d.jsx(an,{type:"email",inputMode:"email",...e}),Tf=({showForgot:e=!1,onValidityChange:t,customValidator:r,...n})=>{const[o,a]=te.useState(!1),[s,i]=te.useState(""),u=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=u.every(p=>p.isValid);return te.useEffect(()=>{t&&t(f,u)},[s,f,u,t]),d.jsx("div",{className:"flex flex-col gap-2",children:d.jsxs("div",{className:"flex flex-col gap-2 w-full max-w-sm",children:[d.jsxs("div",{className:"flex justify-between items-center",children:[d.jsx("label",{className:"text-sm font-medium text-neutral-0",children:"Password"}),e&&d.jsx("button",{type:"button",className:"text-xs text-neutral-0 hover:underline",children:"Forgot Password?"})]}),d.jsx(an,{type:o?"text":"password",value:s,onChange:p=>i(p.target.value),...n,rightIcon:d.jsx("button",{type:"button",onClick:()=>a(!o),className:"p-1 text-neutral-0 hover:text-text-neutral-0",children:o?d.jsx(Eu,{size:18,className:"text-neutral-black-2"}):d.jsx(ku,{size:18,className:"text-neutral-black-2"})})}),d.jsx("div",{className:"grid grid-cols-2 gap-y-1 text-xs mt-3",children:u.map((p,g)=>d.jsxs("div",{className:"flex items-center gap-1",children:[p.isValid?d.jsx(Su,{size:14,className:"text-success-d"}):d.jsx(Cu,{size:14,className:"text-stroke"}),d.jsx("span",{className:p.isValid?"text-success-d":"text-input",children:p.label})]},g))})]})})},Of=e=>d.jsx(an,{type:"search",leftIcon:d.jsx(ya,{"data-testid":"search-icon",className:"w-4 h-4 text-input-placeholder"}),placeholder:"Search...",...e});function gs(e,[t,r]){return Math.min(r,Math.max(t,e))}var If=[" ","Enter","ArrowUp","ArrowDown"],jf=[" ","Enter"],He="Select",[or,ar,Mf]=ro(He),[st,fh]=xe(He,[Mf,ot]),sr=ot(),[Df,Me]=st(He),[Lf,Ff]=st(He),vs=e=>{const{__scopeSelect:t,children:r,open:n,defaultOpen:o,onOpenChange:a,value:s,defaultValue:i,onValueChange:c,dir:u,name:f,autoComplete:p,disabled:g,required:h,form:v}=e,m=sr(t),[x,y]=l.useState(null),[b,w]=l.useState(null),[C,k]=l.useState(!1),N=yr(u),[R,_]=Te({prop:n,defaultProp:o??!1,onChange:a,caller:He}),[W,K]=Te({prop:s,defaultProp:i,onChange:c,caller:He}),X=l.useRef(null),Q=x?v||!!x.closest("form"):!0,[ee,z]=l.useState(new Set),q=Array.from(ee).map(D=>D.props.value).join(";");return d.jsx(Jr,{...m,children:d.jsxs(Df,{required:h,scope:t,trigger:x,onTriggerChange:y,valueNode:b,onValueNodeChange:w,valueNodeHasChildren:C,onValueNodeHasChildrenChange:k,contentId:le(),value:W,onValueChange:K,open:R,onOpenChange:_,dir:N,triggerPointerDownPosRef:X,disabled:g,children:[d.jsx(or.Provider,{scope:t,children:d.jsx(Lf,{scope:e.__scopeSelect,onNativeOptionAdd:l.useCallback(D=>{z(H=>new Set(H).add(D))},[]),onNativeOptionRemove:l.useCallback(D=>{z(H=>{const P=new Set(H);return P.delete(D),P})},[]),children:r})}),Q?d.jsxs(zs,{"aria-hidden":!0,required:h,tabIndex:-1,name:f,autoComplete:p,value:W,onChange:D=>K(D.target.value),disabled:g,form:v,children:[W===void 0?d.jsx("option",{value:""}):null,Array.from(ee)]},q):null]})})};vs.displayName=He;var xs="SelectTrigger",bs=l.forwardRef((e,t)=>{const{__scopeSelect:r,disabled:n=!1,...o}=e,a=sr(r),s=Me(xs,r),i=s.disabled||n,c=ae(t,s.onTriggerChange),u=ar(r),f=l.useRef("touch"),[p,g,h]=Ws(m=>{const x=u().filter(w=>!w.disabled),y=x.find(w=>w.value===s.value),b=Hs(x,m,y);b!==void 0&&s.onValueChange(b.value)}),v=m=>{i||(s.onOpenChange(!0),h()),m&&(s.triggerPointerDownPosRef.current={x:Math.round(m.pageX),y:Math.round(m.pageY)})};return d.jsx(tr,{asChild:!0,...a,children:d.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":Bs(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 x=m.target;x.hasPointerCapture(m.pointerId)&&x.releasePointerCapture(m.pointerId),m.button===0&&m.ctrlKey===!1&&m.pointerType==="mouse"&&(v(m),m.preventDefault())}),onKeyDown:B(o.onKeyDown,m=>{const x=p.current!=="";!(m.ctrlKey||m.altKey||m.metaKey)&&m.key.length===1&&g(m.key),!(x&&m.key===" ")&&If.includes(m.key)&&(v(),m.preventDefault())})})})});bs.displayName=xs;var ys="SelectValue",ws=l.forwardRef((e,t)=>{const{__scopeSelect:r,className:n,style:o,children:a,placeholder:s="",...i}=e,c=Me(ys,r),{onValueNodeHasChildrenChange:u}=c,f=a!==void 0,p=ae(t,c.onValueNodeChange);return ie(()=>{u(f)},[u,f]),d.jsx(V.span,{...i,ref:p,style:{pointerEvents:"none"},children:Bs(c.value)?d.jsx(d.Fragment,{children:s}):a})});ws.displayName=ys;var $f="SelectIcon",Ss=l.forwardRef((e,t)=>{const{__scopeSelect:r,children:n,...o}=e;return d.jsx(V.span,{"aria-hidden":!0,...o,ref:t,children:n||"▼"})});Ss.displayName=$f;var Vf="SelectPortal",Cs=e=>d.jsx(ht,{asChild:!0,...e});Cs.displayName=Vf;var Ge="SelectContent",Es=l.forwardRef((e,t)=>{const r=Me(Ge,e.__scopeSelect),[n,o]=l.useState();if(ie(()=>{o(new DocumentFragment)},[]),!r.open){const a=n;return a?At.createPortal(d.jsx(ks,{scope:e.__scopeSelect,children:d.jsx(or.Slot,{scope:e.__scopeSelect,children:d.jsx("div",{children:e.children})})}),a):null}return d.jsx(Rs,{...e,ref:t})});Es.displayName=Ge;var ve=10,[ks,De]=st(Ge),zf="SelectContentImpl",Bf=Ve("SelectContent.RemoveScroll"),Rs=l.forwardRef((e,t)=>{const{__scopeSelect:r,position:n="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:a,onPointerDownOutside:s,side:i,sideOffset:c,align:u,alignOffset:f,arrowPadding:p,collisionBoundary:g,collisionPadding:h,sticky:v,hideWhenDetached:m,avoidCollisions:x,...y}=e,b=Me(Ge,r),[w,C]=l.useState(null),[k,N]=l.useState(null),R=ae(t,A=>C(A)),[_,W]=l.useState(null),[K,X]=l.useState(null),Q=ar(r),[ee,z]=l.useState(!1),q=l.useRef(!1);l.useEffect(()=>{if(w)return jr(w)},[w]),Pr();const D=l.useCallback(A=>{const[L,...G]=Q().map(oe=>oe.ref.current),[Z]=G.slice(-1),ne=document.activeElement;for(const oe of A)if(oe===ne||(oe==null||oe.scrollIntoView({block:"nearest"}),oe===L&&k&&(k.scrollTop=0),oe===Z&&k&&(k.scrollTop=k.scrollHeight),oe==null||oe.focus(),document.activeElement!==ne))return},[Q,k]),H=l.useCallback(()=>D([_,w]),[D,_,w]);l.useEffect(()=>{ee&&H()},[ee,H]);const{onOpenChange:P,triggerPointerDownPosRef:re}=b;l.useEffect(()=>{if(w){let A={x:0,y:0};const L=Z=>{var ne,oe;A={x:Math.abs(Math.round(Z.pageX)-(((ne=re.current)==null?void 0:ne.x)??0)),y:Math.abs(Math.round(Z.pageY)-(((oe=re.current)==null?void 0:oe.y)??0))}},G=Z=>{A.x<=10&&A.y<=10?Z.preventDefault():w.contains(Z.target)||P(!1),document.removeEventListener("pointermove",L),re.current=null};return re.current!==null&&(document.addEventListener("pointermove",L),document.addEventListener("pointerup",G,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",L),document.removeEventListener("pointerup",G,{capture:!0})}}},[w,P,re]),l.useEffect(()=>{const A=()=>P(!1);return window.addEventListener("blur",A),window.addEventListener("resize",A),()=>{window.removeEventListener("blur",A),window.removeEventListener("resize",A)}},[P]);const[E,$]=Ws(A=>{const L=Q().filter(ne=>!ne.disabled),G=L.find(ne=>ne.ref.current===document.activeElement),Z=Hs(L,A,G);Z&&setTimeout(()=>Z.ref.current.focus())}),S=l.useCallback((A,L,G)=>{const Z=!q.current&&!G;(b.value!==void 0&&b.value===L||Z)&&(W(A),Z&&(q.current=!0))},[b.value]),T=l.useCallback(()=>w==null?void 0:w.focus(),[w]),M=l.useCallback((A,L,G)=>{const Z=!q.current&&!G;(b.value!==void 0&&b.value===L||Z)&&X(A)},[b.value]),O=n==="popper"?sn:_s,Y=O===sn?{side:i,sideOffset:c,align:u,alignOffset:f,arrowPadding:p,collisionBoundary:g,collisionPadding:h,sticky:v,hideWhenDetached:m,avoidCollisions:x}:{};return d.jsx(ks,{scope:r,content:w,viewport:k,onViewportChange:N,itemRefCallback:S,selectedItem:_,onItemLeave:T,itemTextRefCallback:M,focusSelectedItem:H,selectedItemText:K,position:n,isPositioned:ee,searchRef:E,children:d.jsx(Vt,{as:Bf,allowPinchZoom:!0,children:d.jsx(jt,{asChild:!0,trapped:b.open,onMountAutoFocus:A=>{A.preventDefault()},onUnmountAutoFocus:B(o,A=>{var L;(L=b.trigger)==null||L.focus({preventScroll:!0}),A.preventDefault()}),children:d.jsx(mt,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:a,onPointerDownOutside:s,onFocusOutside:A=>A.preventDefault(),onDismiss:()=>b.onOpenChange(!1),children:d.jsx(O,{role:"listbox",id:b.contentId,"data-state":b.open?"open":"closed",dir:b.dir,onContextMenu:A=>A.preventDefault(),...y,...Y,onPlaced:()=>z(!0),ref:R,style:{display:"flex",flexDirection:"column",outline:"none",...y.style},onKeyDown:B(y.onKeyDown,A=>{const L=A.ctrlKey||A.altKey||A.metaKey;if(A.key==="Tab"&&A.preventDefault(),!L&&A.key.length===1&&$(A.key),["ArrowUp","ArrowDown","Home","End"].includes(A.key)){let Z=Q().filter(ne=>!ne.disabled).map(ne=>ne.ref.current);if(["ArrowUp","End"].includes(A.key)&&(Z=Z.slice().reverse()),["ArrowUp","ArrowDown"].includes(A.key)){const ne=A.target,oe=Z.indexOf(ne);Z=Z.slice(oe+1)}setTimeout(()=>D(Z)),A.preventDefault()}})})})})})})});Rs.displayName=zf;var Wf="SelectItemAlignedPosition",_s=l.forwardRef((e,t)=>{const{__scopeSelect:r,onPlaced:n,...o}=e,a=Me(Ge,r),s=De(Ge,r),[i,c]=l.useState(null),[u,f]=l.useState(null),p=ae(t,R=>f(R)),g=ar(r),h=l.useRef(!1),v=l.useRef(!0),{viewport:m,selectedItem:x,selectedItemText:y,focusSelectedItem:b}=s,w=l.useCallback(()=>{if(a.trigger&&a.valueNode&&i&&u&&m&&x&&y){const R=a.trigger.getBoundingClientRect(),_=u.getBoundingClientRect(),W=a.valueNode.getBoundingClientRect(),K=y.getBoundingClientRect();if(a.dir!=="rtl"){const ne=K.left-_.left,oe=W.left-ne,pe=R.left-oe,Ee=R.width+pe,Rt=Math.max(Ee,_.width),_t=window.innerWidth-ve,Pt=gs(oe,[ve,Math.max(ve,_t-Rt)]);i.style.minWidth=Ee+"px",i.style.left=Pt+"px"}else{const ne=_.right-K.right,oe=window.innerWidth-W.right-ne,pe=window.innerWidth-R.right-oe,Ee=R.width+pe,Rt=Math.max(Ee,_.width),_t=window.innerWidth-ve,Pt=gs(oe,[ve,Math.max(ve,_t-Rt)]);i.style.minWidth=Ee+"px",i.style.right=Pt+"px"}const X=g(),Q=window.innerHeight-ve*2,ee=m.scrollHeight,z=window.getComputedStyle(u),q=parseInt(z.borderTopWidth,10),D=parseInt(z.paddingTop,10),H=parseInt(z.borderBottomWidth,10),P=parseInt(z.paddingBottom,10),re=q+D+ee+P+H,E=Math.min(x.offsetHeight*5,re),$=window.getComputedStyle(m),S=parseInt($.paddingTop,10),T=parseInt($.paddingBottom,10),M=R.top+R.height/2-ve,O=Q-M,Y=x.offsetHeight/2,A=x.offsetTop+Y,L=q+D+A,G=re-L;if(L<=M){const ne=X.length>0&&x===X[X.length-1].ref.current;i.style.bottom="0px";const oe=u.clientHeight-m.offsetTop-m.offsetHeight,pe=Math.max(O,Y+(ne?T:0)+oe+H),Ee=L+pe;i.style.height=Ee+"px"}else{const ne=X.length>0&&x===X[0].ref.current;i.style.top="0px";const pe=Math.max(M,q+m.offsetTop+(ne?S:0)+Y)+G;i.style.height=pe+"px",m.scrollTop=L-M+m.offsetTop}i.style.margin=`${ve}px 0`,i.style.minHeight=E+"px",i.style.maxHeight=Q+"px",n==null||n(),requestAnimationFrame(()=>h.current=!0)}},[g,a.trigger,a.valueNode,i,u,m,x,y,a.dir,n]);ie(()=>w(),[w]);const[C,k]=l.useState();ie(()=>{u&&k(window.getComputedStyle(u).zIndex)},[u]);const N=l.useCallback(R=>{R&&v.current===!0&&(w(),b==null||b(),v.current=!1)},[w,b]);return d.jsx(Gf,{scope:r,contentWrapper:i,shouldExpandOnScrollRef:h,onScrollButtonChange:N,children:d.jsx("div",{ref:c,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:C},children:d.jsx(V.div,{...o,ref:p,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});_s.displayName=Wf;var Hf="SelectPopperPosition",sn=l.forwardRef((e,t)=>{const{__scopeSelect:r,align:n="start",collisionPadding:o=ve,...a}=e,s=sr(r);return d.jsx(Qr,{...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)"}})});sn.displayName=Hf;var[Gf,ln]=st(Ge,{}),cn="SelectViewport",Ps=l.forwardRef((e,t)=>{const{__scopeSelect:r,nonce:n,...o}=e,a=De(cn,r),s=ln(cn,r),i=ae(t,a.onViewportChange),c=l.useRef(0);return d.jsxs(d.Fragment,{children:[d.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:n}),d.jsx(or.Slot,{scope:r,children:d.jsx(V.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:i,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:B(o.onScroll,u=>{const f=u.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-ve*2,m=parseFloat(p.style.minHeight),x=parseFloat(p.style.height),y=Math.max(m,x);if(y<v){const b=y+h,w=Math.min(v,b),C=b-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})})})]})});Ps.displayName=cn;var As="SelectGroup",[Uf,Kf]=st(As),Ns=l.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,o=le();return d.jsx(Uf,{scope:r,id:o,children:d.jsx(V.div,{role:"group","aria-labelledby":o,...n,ref:t})})});Ns.displayName=As;var Ts="SelectLabel",Os=l.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,o=Kf(Ts,r);return d.jsx(V.div,{id:o.id,...n,ref:t})});Os.displayName=Ts;var ir="SelectItem",[Yf,Is]=st(ir),js=l.forwardRef((e,t)=>{const{__scopeSelect:r,value:n,disabled:o=!1,textValue:a,...s}=e,i=Me(ir,r),c=De(ir,r),u=i.value===n,[f,p]=l.useState(a??""),[g,h]=l.useState(!1),v=ae(t,b=>{var w;return(w=c.itemRefCallback)==null?void 0:w.call(c,b,n,o)}),m=le(),x=l.useRef("touch"),y=()=>{o||(i.onValueChange(n),i.onOpenChange(!1))};if(n==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return d.jsx(Yf,{scope:r,value:n,disabled:o,textId:m,isSelected:u,onItemTextChange:l.useCallback(b=>{p(w=>w||((b==null?void 0:b.textContent)??"").trim())},[]),children:d.jsx(or.ItemSlot,{scope:r,value:n,disabled:o,textValue:f,children:d.jsx(V.div,{role:"option","aria-labelledby":m,"data-highlighted":g?"":void 0,"aria-selected":u&&g,"data-state":u?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...s,ref:v,onFocus:B(s.onFocus,()=>h(!0)),onBlur:B(s.onBlur,()=>h(!1)),onClick:B(s.onClick,()=>{x.current!=="mouse"&&y()}),onPointerUp:B(s.onPointerUp,()=>{x.current==="mouse"&&y()}),onPointerDown:B(s.onPointerDown,b=>{x.current=b.pointerType}),onPointerMove:B(s.onPointerMove,b=>{var w;x.current=b.pointerType,o?(w=c.onItemLeave)==null||w.call(c):x.current==="mouse"&&b.currentTarget.focus({preventScroll:!0})}),onPointerLeave:B(s.onPointerLeave,b=>{var w;b.currentTarget===document.activeElement&&((w=c.onItemLeave)==null||w.call(c))}),onKeyDown:B(s.onKeyDown,b=>{var C;((C=c.searchRef)==null?void 0:C.current)!==""&&b.key===" "||(jf.includes(b.key)&&y(),b.key===" "&&b.preventDefault())})})})})});js.displayName=ir;var wt="SelectItemText",Ms=l.forwardRef((e,t)=>{const{__scopeSelect:r,className:n,style:o,...a}=e,s=Me(wt,r),i=De(wt,r),c=Is(wt,r),u=Ff(wt,r),[f,p]=l.useState(null),g=ae(t,y=>p(y),c.onItemTextChange,y=>{var b;return(b=i.itemTextRefCallback)==null?void 0:b.call(i,y,c.value,c.disabled)}),h=f==null?void 0:f.textContent,v=l.useMemo(()=>d.jsx("option",{value:c.value,disabled:c.disabled,children:h},c.value),[c.disabled,c.value,h]),{onNativeOptionAdd:m,onNativeOptionRemove:x}=u;return ie(()=>(m(v),()=>x(v)),[m,x,v]),d.jsxs(d.Fragment,{children:[d.jsx(V.span,{id:c.textId,...a,ref:g}),c.isSelected&&s.valueNode&&!s.valueNodeHasChildren?At.createPortal(a.children,s.valueNode):null]})});Ms.displayName=wt;var Ds="SelectItemIndicator",Ls=l.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e;return Is(Ds,r).isSelected?d.jsx(V.span,{"aria-hidden":!0,...n,ref:t}):null});Ls.displayName=Ds;var un="SelectScrollUpButton",Fs=l.forwardRef((e,t)=>{const r=De(un,e.__scopeSelect),n=ln(un,e.__scopeSelect),[o,a]=l.useState(!1),s=ae(t,n.onScrollButtonChange);return ie(()=>{if(r.viewport&&r.isPositioned){let i=function(){const u=c.scrollTop>0;a(u)};const c=r.viewport;return i(),c.addEventListener("scroll",i),()=>c.removeEventListener("scroll",i)}},[r.viewport,r.isPositioned]),o?d.jsx(Vs,{...e,ref:s,onAutoScroll:()=>{const{viewport:i,selectedItem:c}=r;i&&c&&(i.scrollTop=i.scrollTop-c.offsetHeight)}}):null});Fs.displayName=un;var dn="SelectScrollDownButton",$s=l.forwardRef((e,t)=>{const r=De(dn,e.__scopeSelect),n=ln(dn,e.__scopeSelect),[o,a]=l.useState(!1),s=ae(t,n.onScrollButtonChange);return ie(()=>{if(r.viewport&&r.isPositioned){let i=function(){const u=c.scrollHeight-c.clientHeight,f=Math.ceil(c.scrollTop)<u;a(f)};const c=r.viewport;return i(),c.addEventListener("scroll",i),()=>c.removeEventListener("scroll",i)}},[r.viewport,r.isPositioned]),o?d.jsx(Vs,{...e,ref:s,onAutoScroll:()=>{const{viewport:i,selectedItem:c}=r;i&&c&&(i.scrollTop=i.scrollTop+c.offsetHeight)}}):null});$s.displayName=dn;var Vs=l.forwardRef((e,t)=>{const{__scopeSelect:r,onAutoScroll:n,...o}=e,a=De("SelectScrollButton",r),s=l.useRef(null),i=ar(r),c=l.useCallback(()=>{s.current!==null&&(window.clearInterval(s.current),s.current=null)},[]);return l.useEffect(()=>()=>c(),[c]),ie(()=>{var f;const u=i().find(p=>p.ref.current===document.activeElement);(f=u==null?void 0:u.ref.current)==null||f.scrollIntoView({block:"nearest"})},[i]),d.jsx(V.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 u;(u=a.onItemLeave)==null||u.call(a),s.current===null&&(s.current=window.setInterval(n,50))}),onPointerLeave:B(o.onPointerLeave,()=>{c()})})}),qf="SelectSeparator",Xf=l.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e;return d.jsx(V.div,{"aria-hidden":!0,...n,ref:t})});Xf.displayName=qf;var fn="SelectArrow",Zf=l.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,o=sr(r),a=Me(fn,r),s=De(fn,r);return a.open&&s.position==="popper"?d.jsx(en,{...o,...n,ref:t}):null});Zf.displayName=fn;var Jf="SelectBubbleInput",zs=l.forwardRef(({__scopeSelect:e,value:t,...r},n)=>{const o=l.useRef(null),a=ae(n,o),s=uo(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]),d.jsx(V.select,{...r,style:{...os,...r.style},ref:a,defaultValue:t})});zs.displayName=Jf;function Bs(e){return e===""||e===void 0}function Ws(e){const t=Re(e),r=l.useRef(""),n=l.useRef(0),o=l.useCallback(s=>{const i=r.current+s;t(i),function c(u){r.current=u,window.clearTimeout(n.current),u!==""&&(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 Hs(e,t,r){const o=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,a=r?e.indexOf(r):-1;let s=Qf(e,Math.max(a,0));o.length===1&&(s=s.filter(u=>u!==r));const c=s.find(u=>u.textValue.toLowerCase().startsWith(o.toLowerCase()));return c!==r?c:void 0}function Qf(e,t){return e.map((r,n)=>e[(t+n)%e.length])}var ep=vs,tp=bs,rp=ws,np=Ss,op=Cs,ap=Es,sp=Ps,ip=Ns,lp=Os,cp=js,up=Ms,dp=Ls,fp=Fs,pp=$s;function mp({...e}){return d.jsx(ep,{"data-slot":"select",...e})}function hp({...e}){return d.jsx(ip,{"data-slot":"select-group",...e})}function gp({...e}){return d.jsx(rp,{"data-slot":"select-value",...e})}function vp({className:e,size:t="default",children:r,...n}){return d.jsxs(tp,{"data-slot":"select-trigger","data-size":t,className:F("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,d.jsx(np,{asChild:!0,children:d.jsx(Fr,{className:"size-4 opacity-50"})})]})}function xp({className:e,children:t,position:r="popper",...n}){return d.jsx(op,{children:d.jsxs(ap,{"data-slot":"select-content",className:F("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:[d.jsx(yp,{}),d.jsx(sp,{className:F("p-1",r==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"),children:t}),d.jsx(wp,{})]})})}function bp({className:e,...t}){return d.jsx(lp,{"data-slot":"select-label",className:F("text-muted-foreground px-2 py-1.5 text-xs",e),...t})}function Gs({className:e,children:t,...r}){return d.jsxs(cp,{"data-slot":"select-item",className:F("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:[d.jsx("span",{className:"absolute right-2 flex size-3.5 items-center justify-center",children:d.jsx(dp,{children:d.jsx(yu,{className:"size-4"})})}),d.jsx(up,{children:t})]})}function yp({className:e,...t}){return d.jsx(fp,{"data-slot":"select-scroll-up-button",className:F("flex cursor-default items-center justify-center py-1",e),...t,children:d.jsx(wu,{className:"size-4"})})}function wp({className:e,...t}){return d.jsx(pp,{"data-slot":"select-scroll-down-button",className:F("flex cursor-default items-center justify-center py-1",e),...t,children:d.jsx(Fr,{className:"size-4"})})}var lr="Popover",[Us,ph]=xe(lr,[ot]),St=ot(),[Sp,Le]=Us(lr),Ks=e=>{const{__scopePopover:t,children:r,open:n,defaultOpen:o,onOpenChange:a,modal:s=!1}=e,i=St(t),c=l.useRef(null),[u,f]=l.useState(!1),[p,g]=Te({prop:n,defaultProp:o??!1,onChange:a,caller:lr});return d.jsx(Jr,{...i,children:d.jsx(Sp,{scope:t,contentId:le(),triggerRef:c,open:p,onOpenChange:g,onOpenToggle:l.useCallback(()=>g(h=>!h),[g]),hasCustomAnchor:u,onCustomAnchorAdd:l.useCallback(()=>f(!0),[]),onCustomAnchorRemove:l.useCallback(()=>f(!1),[]),modal:s,children:r})})};Ks.displayName=lr;var Ys="PopoverAnchor",Cp=l.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=Le(Ys,r),a=St(r),{onCustomAnchorAdd:s,onCustomAnchorRemove:i}=o;return l.useEffect(()=>(s(),()=>i()),[s,i]),d.jsx(tr,{...a,...n,ref:t})});Cp.displayName=Ys;var qs="PopoverTrigger",Xs=l.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=Le(qs,r),a=St(r),s=ae(t,o.triggerRef),i=d.jsx(V.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":ti(o.open),...n,ref:s,onClick:B(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?i:d.jsx(tr,{asChild:!0,...a,children:i})});Xs.displayName=qs;var pn="PopoverPortal",[Ep,kp]=Us(pn,{forceMount:void 0}),Zs=e=>{const{__scopePopover:t,forceMount:r,children:n,container:o}=e,a=Le(pn,t);return d.jsx(Ep,{scope:t,forceMount:r,children:d.jsx(_e,{present:r||a.open,children:d.jsx(ht,{asChild:!0,container:o,children:n})})})};Zs.displayName=pn;var it="PopoverContent",Js=l.forwardRef((e,t)=>{const r=kp(it,e.__scopePopover),{forceMount:n=r.forceMount,...o}=e,a=Le(it,e.__scopePopover);return d.jsx(_e,{present:n||a.open,children:a.modal?d.jsx(_p,{...o,ref:t}):d.jsx(Pp,{...o,ref:t})})});Js.displayName=it;var Rp=Ve("PopoverContent.RemoveScroll"),_p=l.forwardRef((e,t)=>{const r=Le(it,e.__scopePopover),n=l.useRef(null),o=ae(t,n),a=l.useRef(!1);return l.useEffect(()=>{const s=n.current;if(s)return jr(s)},[]),d.jsx(Vt,{as:Rp,allowPinchZoom:!0,children:d.jsx(Qs,{...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,u=i.button===2||c;a.current=u},{checkForDefaultPrevented:!1}),onFocusOutside:B(e.onFocusOutside,s=>s.preventDefault(),{checkForDefaultPrevented:!1})})})}),Pp=l.forwardRef((e,t)=>{const r=Le(it,e.__scopePopover),n=l.useRef(!1),o=l.useRef(!1);return d.jsx(Qs,{...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,u;(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;((u=r.triggerRef.current)==null?void 0:u.contains(s))&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),Qs=l.forwardRef((e,t)=>{const{__scopePopover:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:a,disableOutsidePointerEvents:s,onEscapeKeyDown:i,onPointerDownOutside:c,onFocusOutside:u,onInteractOutside:f,...p}=e,g=Le(it,r),h=St(r);return Pr(),d.jsx(jt,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:a,children:d.jsx(mt,{asChild:!0,disableOutsidePointerEvents:s,onInteractOutside:f,onEscapeKeyDown:i,onPointerDownOutside:c,onFocusOutside:u,onDismiss:()=>g.onOpenChange(!1),children:d.jsx(Qr,{"data-state":ti(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)"}})})})}),ei="PopoverClose",Ap=l.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=Le(ei,r);return d.jsx(V.button,{type:"button",...n,ref:t,onClick:B(e.onClick,()=>o.onOpenChange(!1))})});Ap.displayName=ei;var Np="PopoverArrow",Tp=l.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=St(r);return d.jsx(en,{...o,...n,ref:t})});Tp.displayName=Np;function ti(e){return e?"open":"closed"}var Op=Ks,Ip=Xs,jp=Zs,Mp=Js;function Dp({...e}){return d.jsx(Op,{"data-slot":"popover",...e})}function Lp({...e}){return d.jsx(Ip,{"data-slot":"popover-trigger",...e})}function Fp({className:e,align:t="center",sideOffset:r=4,...n}){return d.jsx(jp,{children:d.jsx(Mp,{"data-slot":"popover-content",align:t,sideOffset:r,className:F("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden",e),...n})})}var ri=1,$p=.9,Vp=.8,zp=.17,mn=.1,hn=.999,Bp=.9999,Wp=.99,Hp=/[\\\/_+.#"@\[\(\{&]/,Gp=/[\\\/_+.#"@\[\(\{&]/g,Up=/[\s-]/,ni=/[\s-]/g;function gn(e,t,r,n,o,a,s){if(a===t.length)return o===e.length?ri:Wp;var i=`${o},${a}`;if(s[i]!==void 0)return s[i];for(var c=n.charAt(a),u=r.indexOf(c,o),f=0,p,g,h,v;u>=0;)p=gn(e,t,r,n,u+1,a+1,s),p>f&&(u===o?p*=ri:Hp.test(e.charAt(u-1))?(p*=Vp,h=e.slice(o,u-1).match(Gp),h&&o>0&&(p*=Math.pow(hn,h.length))):Up.test(e.charAt(u-1))?(p*=$p,v=e.slice(o,u-1).match(ni),v&&o>0&&(p*=Math.pow(hn,v.length))):(p*=zp,o>0&&(p*=Math.pow(hn,u-o))),e.charAt(u)!==t.charAt(a)&&(p*=Bp)),(p<mn&&r.charAt(u-1)===n.charAt(a+1)||n.charAt(a+1)===n.charAt(a)&&r.charAt(u-1)!==n.charAt(a))&&(g=gn(e,t,r,n,u+1,a+2,s),g*mn>p&&(p=g*mn)),p>f&&(f=p),u=r.indexOf(c,u+1);return s[i]=f,f}function oi(e){return e.toLowerCase().replace(ni," ")}function Kp(e,t,r){return e=r&&r.length>0?`${e+" "+r.join(" ")}`:e,gn(e,t,oi(e),oi(t),0,0,{})}var Ct='[cmdk-group=""]',vn='[cmdk-group-items=""]',Yp='[cmdk-group-heading=""]',ai='[cmdk-item=""]',si=`${ai}:not([aria-disabled="true"])`,xn="cmdk-item-select",lt="data-value",qp=(e,t,r)=>Kp(e,t,r),ii=l.createContext(void 0),Et=()=>l.useContext(ii),li=l.createContext(void 0),bn=()=>l.useContext(li),ci=l.createContext(void 0),ui=l.forwardRef((e,t)=>{let r=ct(()=>{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=ct(()=>new Set),o=ct(()=>new Map),a=ct(()=>new Map),s=ct(()=>new Set),i=di(e),{label:c,children:u,value:f,onValueChange:p,filter:g,shouldFilter:h,loop:v,disablePointerSelection:m=!1,vimBindings:x=!0,...y}=e,b=le(),w=le(),C=le(),k=l.useRef(null),N=sm();Ue(()=>{if(f!==void 0){let S=f.trim();r.current.value=S,R.emit()}},[f]),Ue(()=>{N(6,ee)},[]);let R=l.useMemo(()=>({subscribe:S=>(s.current.add(S),()=>s.current.delete(S)),snapshot:()=>r.current,setState:(S,T,M)=>{var O,Y,A,L;if(!Object.is(r.current[S],T)){if(r.current[S]=T,S==="search")Q(),K(),N(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():(O=document.getElementById(b))==null||O.focus()}if(N(7,()=>{var G;r.current.selectedItemId=(G=z())==null?void 0:G.id,R.emit()}),M||N(5,ee),((Y=i.current)==null?void 0:Y.value)!==void 0){let G=T??"";(L=(A=i.current).onValueChange)==null||L.call(A,G);return}}R.emit()}},emit:()=>{s.current.forEach(S=>S())}}),[]),_=l.useMemo(()=>({value:(S,T,M)=>{var O;T!==((O=a.current.get(S))==null?void 0:O.value)&&(a.current.set(S,{value:T,keywords:M}),r.current.filtered.items.set(S,W(T,M)),N(2,()=>{K(),R.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]))),N(3,()=>{Q(),K(),r.current.value||X(),R.emit()}),()=>{a.current.delete(S),n.current.delete(S),r.current.filtered.items.delete(S);let M=z();N(4,()=>{Q(),(M==null?void 0:M.getAttribute("id"))===S&&X(),R.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:b,inputId:C,labelId:w,listInnerRef:k}),[]);function W(S,T){var M,O;let Y=(O=(M=i.current)==null?void 0:M.filter)!=null?O:qp;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(O=>{let Y=o.current.get(O),A=0;Y.forEach(L=>{let G=S.get(L);A=Math.max(G,A)}),T.push([O,A])});let M=k.current;q().sort((O,Y)=>{var A,L;let G=O.getAttribute("id"),Z=Y.getAttribute("id");return((A=S.get(Z))!=null?A:0)-((L=S.get(G))!=null?L:0)}).forEach(O=>{let Y=O.closest(vn);Y?Y.appendChild(O.parentElement===Y?O:O.closest(`${vn} > *`)):M.appendChild(O.parentElement===M?O:O.closest(`${vn} > *`))}),T.sort((O,Y)=>Y[1]-O[1]).forEach(O=>{var Y;let A=(Y=k.current)==null?void 0:Y.querySelector(`${Ct}[${lt}="${encodeURIComponent(O[0])}"]`);A==null||A.parentElement.appendChild(A)})}function X(){let S=q().find(M=>M.getAttribute("aria-disabled")!=="true"),T=S==null?void 0:S.getAttribute(lt);R.setState("value",T||void 0)}function Q(){var S,T,M,O;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 A of n.current){let L=(T=(S=a.current.get(A))==null?void 0:S.value)!=null?T:"",G=(O=(M=a.current.get(A))==null?void 0:M.keywords)!=null?O:[],Z=W(L,G);r.current.filtered.items.set(A,Z),Z>0&&Y++}for(let[A,L]of o.current)for(let G of L)if(r.current.filtered.items.get(G)>0){r.current.filtered.groups.add(A);break}r.current.filtered.count=Y}function ee(){var S,T,M;let O=z();O&&(((S=O.parentElement)==null?void 0:S.firstChild)===O&&((M=(T=O.closest(Ct))==null?void 0:T.querySelector(Yp))==null||M.scrollIntoView({block:"nearest"})),O.scrollIntoView({block:"nearest"}))}function z(){var S;return(S=k.current)==null?void 0:S.querySelector(`${ai}[aria-selected="true"]`)}function q(){var S;return Array.from(((S=k.current)==null?void 0:S.querySelectorAll(si))||[])}function D(S){let T=q()[S];T&&R.setState("value",T.getAttribute(lt))}function H(S){var T;let M=z(),O=q(),Y=O.findIndex(L=>L===M),A=O[Y+S];(T=i.current)!=null&&T.loop&&(A=Y+S<0?O[O.length-1]:Y+S===O.length?O[0]:O[Y+S]),A&&R.setState("value",A.getAttribute(lt))}function P(S){let T=z(),M=T==null?void 0:T.closest(Ct),O;for(;M&&!O;)M=S>0?om(M,Ct):am(M,Ct),O=M==null?void 0:M.querySelector(si);O?R.setState("value",O.getAttribute(lt)):H(S)}let re=()=>D(q().length-1),E=S=>{S.preventDefault(),S.metaKey?re():S.altKey?P(1):H(1)},$=S=>{S.preventDefault(),S.metaKey?D(0):S.altKey?P(-1):H(-1)};return l.createElement(V.div,{ref:t,tabIndex:-1,...y,"cmdk-root":"",onKeyDown:S=>{var T;(T=y.onKeyDown)==null||T.call(y,S);let M=S.nativeEvent.isComposing||S.keyCode===229;if(!(S.defaultPrevented||M))switch(S.key){case"n":case"j":{x&&S.ctrlKey&&E(S);break}case"ArrowDown":{E(S);break}case"p":case"k":{x&&S.ctrlKey&&$(S);break}case"ArrowUp":{$(S);break}case"Home":{S.preventDefault(),D(0);break}case"End":{S.preventDefault(),re();break}case"Enter":{S.preventDefault();let O=z();if(O){let Y=new Event(xn);O.dispatchEvent(Y)}}}}},l.createElement("label",{"cmdk-label":"",htmlFor:_.inputId,id:_.labelId,style:lm},c),cr(e,S=>l.createElement(li.Provider,{value:R},l.createElement(ii.Provider,{value:_},S))))}),Xp=l.forwardRef((e,t)=>{var r,n;let o=le(),a=l.useRef(null),s=l.useContext(ci),i=Et(),c=di(e),u=(n=(r=c.current)==null?void 0:r.forceMount)!=null?n:s==null?void 0:s.forceMount;Ue(()=>{if(!u)return i.item(o,s==null?void 0:s.id)},[u]);let f=fi(o,a,[e.value,e.children,a],e.keywords),p=bn(),g=Fe(N=>N.value&&N.value===f.current),h=Fe(N=>u||i.filter()===!1?!0:N.search?N.filtered.items.get(o)>0:!0);l.useEffect(()=>{let N=a.current;if(!(!N||e.disabled))return N.addEventListener(xn,v),()=>N.removeEventListener(xn,v)},[h,e.onSelect,e.disabled]);function v(){var N,R;m(),(R=(N=c.current).onSelect)==null||R.call(N,f.current)}function m(){p.setState("value",f.current,!0)}if(!h)return null;let{disabled:x,value:y,onSelect:b,forceMount:w,keywords:C,...k}=e;return l.createElement(V.div,{ref:$e(a,t),...k,id:o,"cmdk-item":"",role:"option","aria-disabled":!!x,"aria-selected":!!g,"data-disabled":!!x,"data-selected":!!g,onPointerMove:x||i.getDisablePointerSelection()?void 0:m,onClick:x?void 0:v},e.children)}),Zp=l.forwardRef((e,t)=>{let{heading:r,children:n,forceMount:o,...a}=e,s=le(),i=l.useRef(null),c=l.useRef(null),u=le(),f=Et(),p=Fe(h=>o||f.filter()===!1?!0:h.search?h.filtered.groups.has(s):!0);Ue(()=>f.group(s),[]),fi(s,i,[e.value,e.heading,c]);let g=l.useMemo(()=>({id:s,forceMount:o}),[o]);return l.createElement(V.div,{ref:$e(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:u},r),cr(e,h=>l.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":r?u:void 0},l.createElement(ci.Provider,{value:g},h))))}),Jp=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:$e(o,t),...n,"cmdk-separator":"",role:"separator"})}),Qp=l.forwardRef((e,t)=>{let{onValueChange:r,...n}=e,o=e.value!=null,a=bn(),s=Fe(u=>u.search),i=Fe(u=>u.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:u=>{o||a.setState("search",u.target.value),r==null||r(u.target.value)}})}),em=l.forwardRef((e,t)=>{let{children:r,label:n="Suggestions",...o}=e,a=l.useRef(null),s=l.useRef(null),i=Fe(u=>u.selectedItemId),c=Et();return l.useEffect(()=>{if(s.current&&a.current){let u=s.current,f=a.current,p,g=new ResizeObserver(()=>{p=requestAnimationFrame(()=>{let h=u.offsetHeight;f.style.setProperty("--cmdk-list-height",h.toFixed(1)+"px")})});return g.observe(u),()=>{cancelAnimationFrame(p),g.unobserve(u)}}},[]),l.createElement(V.div,{ref:$e(a,t),...o,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":i,"aria-label":n,id:c.listId},cr(e,u=>l.createElement("div",{ref:$e(s,c.listInnerRef),"cmdk-list-sizer":""},u)))}),tm=l.forwardRef((e,t)=>{let{open:r,onOpenChange:n,overlayClassName:o,contentClassName:a,container:s,...i}=e;return l.createElement(pa,{open:r,onOpenChange:n},l.createElement(ma,{container:s},l.createElement(ha,{"cmdk-overlay":"",className:o}),l.createElement(ga,{"aria-label":e.label,"cmdk-dialog":"",className:a},l.createElement(ui,{ref:t,...i}))))}),rm=l.forwardRef((e,t)=>Fe(r=>r.filtered.count===0)?l.createElement(V.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null),nm=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},cr(e,s=>l.createElement("div",{"aria-hidden":!0},s)))}),kt=Object.assign(ui,{List:em,Item:Xp,Input:Qp,Group:Zp,Separator:Jp,Dialog:tm,Empty:rm,Loading:nm});function om(e,t){let r=e.nextElementSibling;for(;r;){if(r.matches(t))return r;r=r.nextElementSibling}}function am(e,t){let r=e.previousElementSibling;for(;r;){if(r.matches(t))return r;r=r.previousElementSibling}}function di(e){let t=l.useRef(e);return Ue(()=>{t.current=e}),t}var Ue=typeof window>"u"?l.useEffect:l.useLayoutEffect;function ct(e){let t=l.useRef();return t.current===void 0&&(t.current=e()),t}function Fe(e){let t=bn(),r=()=>e(t.snapshot());return l.useSyncExternalStore(t.subscribe,r,r)}function fi(e,t,r,n=[]){let o=l.useRef(),a=Et();return Ue(()=>{var s;let i=(()=>{var u;for(let f of r){if(typeof f=="string")return f.trim();if(typeof f=="object"&&"current"in f)return f.current?(u=f.current.textContent)==null?void 0:u.trim():o.current}})(),c=n.map(u=>u.trim());a.value(e,i,c),(s=t.current)==null||s.setAttribute(lt,i),o.current=i}),o}var sm=()=>{let[e,t]=l.useState(),r=ct(()=>new Map);return Ue(()=>{r.current.forEach(n=>n()),r.current=new Map},[e]),(n,o)=>{r.current.set(n,o),t({})}};function im(e){let t=e.type;return typeof t=="function"?t(e.props):"render"in t?t.render(e.props):e}function cr({asChild:e,children:t},r){return e&&l.isValidElement(t)?l.cloneElement(im(t),{ref:t.ref},r(t.props.children)):r(t)}var lm={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};function cm({className:e,...t}){return d.jsx(kt,{"data-slot":"command",className:F("bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",e),...t})}function um({className:e,...t}){return d.jsxs("div",{"data-slot":"command-input-wrapper",className:"flex h-9 items-center gap-2 border-b px-3",children:[d.jsx(ya,{className:"size-4 shrink-0 opacity-50"}),d.jsx(kt.Input,{"data-slot":"command-input",className:F("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 dm({...e}){return d.jsx(kt.Empty,{"data-slot":"command-empty",className:"py-6 text-center text-sm",...e})}function pi({className:e,...t}){return d.jsx(kt.Group,{"data-slot":"command-group",className:F("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 mi({className:e,...t}){return d.jsx(kt.Item,{"data-slot":"command-item",className:F("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 yn(e){return e.length>0&&e[0].kind==="group"}function fm(e){return e.multiple?d.jsx(gi,{...e}):d.jsx(hi,{...e})}const hi=({options:e,placeholder:t="Select...",disabled:r,error:n,helperText:o,value:a,onChange:s})=>{const[i,c]=te.useState(""),u=a??i,f=p=>{c(p),s==null||s(p)};return d.jsxs("div",{className:"w-94",children:[d.jsxs(mp,{value:u,onValueChange:f,disabled:r,children:[d.jsx(vp,{"aria-invalid":!!n,className:F("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:d.jsx(gp,{placeholder:t})}),d.jsx(xp,{className:"w-full bg-white border border-neutral-black-4",children:yn(e)?e.map(p=>d.jsxs(hp,{className:"p-2",children:[d.jsx(bp,{children:p.label}),p.options.map(g=>d.jsx(Gs,{value:g.value,disabled:g.disabled,children:g.label},g.value))]},p.label)):e.map(p=>d.jsx(Gs,{value:p.value,disabled:p.disabled,className:"hover:cursor-pointer hover:bg-neutral-black-5",children:p.label},p.value))})]}),n&&d.jsx("p",{className:"mt-1 text-xs text-primary-1",children:n}),o&&d.jsx("p",{className:"mt-1 text-xs text-neutral-black-3",children:o})]})},gi=({options:e,placeholder:t="Select...",disabled:r,error:n,helperText:o,value:a,onChange:s})=>{const[i,c]=te.useState(!1),[u,f]=te.useState([]),p=a??u,g=te.useMemo(()=>yn(e)?e.flatMap(v=>v.options):e,[e]),h=v=>{const m=p.includes(v)?p.filter(x=>x!==v):[...p,v];f(m),s==null||s(m)};return d.jsxs("div",{className:"w-94",children:[d.jsxs(Dp,{open:i,onOpenChange:c,children:[d.jsx(Lp,{asChild:!0,children:d.jsxs("button",{type:"button",disabled:r,"aria-haspopup":"listbox","aria-expanded":i,className:F("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:[d.jsx("div",{className:"flex flex-wrap gap-1",children:p.length>0?p.map(v=>d.jsxs(ka,{type:"outline",onClick:m=>{m.stopPropagation(),h(v)},className:"cursor-pointer border-neutral-black-4 bg-transparent hover:bg-neutral-black-4",children:[d.jsx("span",{className:"text-neutral-black-1",children:v}),d.jsx("div",{className:"flex items-center justify-center rounded-full border border-neutral-black-2 h-5 w-5 ml-1",children:d.jsx(Sa,{className:"h-3 w-3 text-neutral-black-1",strokeWidth:2})})]},v)):d.jsx("span",{className:"truncate text-xs text-neutral-black-1",children:t})}),d.jsx(Fr,{className:"h-4 w-4 text-neutral-black-1"})]})}),d.jsx(Fp,{className:"p-0 w-full bg-white border border-neutral-black-4",children:d.jsxs(cm,{className:"w-full",children:[d.jsx(um,{placeholder:"Search..."}),d.jsx(dm,{children:"No results found."}),yn(e)?e.map(v=>d.jsx(pi,{heading:v.label,children:v.options.map(m=>d.jsxs(mi,{value:m.label,onSelect:()=>!m.disabled&&h(m.value),disabled:m.disabled,children:[d.jsx("input",{type:"checkbox",readOnly:!0,checked:p.includes(m.value),className:"mr-2"}),m.label]},m.value))},v.label)):d.jsx(pi,{children:g.map(v=>d.jsxs(mi,{value:v.label,onSelect:()=>!v.disabled&&h(v.value),disabled:v.disabled,children:[d.jsx("input",{type:"checkbox",readOnly:!0,checked:p.includes(v.value),className:"mr-2"}),v.label]},v.value))})]})})]}),n&&d.jsx("p",{className:"mt-1 text-xs text-primary-1",children:n}),o&&d.jsx("p",{className:"mt-1 text-xs text-neutral-black-3",children:o})]})},pm=ue("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 mm({className:e,variant:t,asChild:r=!1,children:n,...o}){const a=r?pr:"div";return d.jsx(a,{"data-slot":"card",className:F(pm({variant:t}),e),...o,children:n})}var wn={exports:{}},Sn={};/**
161
+ */const Ca=ce("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);function Nu({...e}){return d.jsx(ma,{"data-slot":"dialog",...e})}function Au({...e}){return d.jsx(uu,{"data-slot":"dialog-trigger",...e})}function Ea({...e}){return d.jsx(ha,{"data-slot":"dialog-portal",...e})}function Tu({...e}){return d.jsx(xa,{"data-slot":"dialog-close",...e})}function ka({className:e,...t}){return d.jsx(ga,{"data-slot":"dialog-overlay",className:F("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 Ou({className:e,children:t,showCloseButton:r=!0,...n}){return d.jsxs(Ea,{"data-slot":"dialog-portal",children:[d.jsx(ka,{}),d.jsxs(va,{"data-slot":"dialog-content",className:F("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&&d.jsxs(xa,{"data-slot":"dialog-close",className:"ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",children:[d.jsx(Ca,{}),d.jsx("span",{className:"sr-only",children:"Close"})]})]})]})}function Iu({className:e,...t}){return d.jsx("div",{"data-slot":"dialog-header",className:F("flex flex-col gap-2 text-center sm:text-left",e),...t})}function ju({className:e,...t}){return d.jsx("div",{"data-slot":"dialog-footer",className:F("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",e),...t})}function Mu({className:e,...t}){return d.jsx(du,{"data-slot":"dialog-title",className:F("text-lg leading-none font-semibold ",e),...t})}function Du({className:e,...t}){return d.jsx(fu,{"data-slot":"dialog-description",className:F("text-muted-foreground text-sm",e),...t})}const Lu=ue("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"}}),$r=l.forwardRef(({className:e,variant:t,type:r="filled",asChild:n=!1,children:o,...a},s)=>{const i=n?pr:"span";return d.jsx(i,{ref:s,"data-slot":"badge",className:F(Lu({variant:t,type:r}),r==="outline"?"bg-transparent":"",e),...a,children:o})});$r.displayName="Badge";const Fu=["top","right","bottom","left"],Ie=Math.min,de=Math.max,Gt=Math.round,Ut=Math.floor,ye=e=>({x:e,y:e}),$u={left:"right",right:"left",bottom:"top",top:"bottom"},Vu={start:"end",end:"start"};function Vr(e,t,r){return de(e,Ie(t,r))}function Pe(e,t){return typeof e=="function"?e(t):e}function Ne(e){return e.split("-")[0]}function et(e){return e.split("-")[1]}function zr(e){return e==="x"?"y":"x"}function Br(e){return e==="y"?"height":"width"}const zu=new Set(["top","bottom"]);function we(e){return zu.has(Ne(e))?"y":"x"}function Wr(e){return zr(we(e))}function Bu(e,t,r){r===void 0&&(r=!1);const n=et(e),o=Wr(e),a=Br(o);let s=o==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(s=Kt(s)),[s,Kt(s)]}function Wu(e){const t=Kt(e);return[Hr(e),t,Hr(t)]}function Hr(e){return e.replace(/start|end/g,t=>Vu[t])}const Ra=["left","right"],_a=["right","left"],Hu=["top","bottom"],Gu=["bottom","top"];function Uu(e,t,r){switch(e){case"top":case"bottom":return r?t?_a:Ra:t?Ra:_a;case"left":case"right":return t?Hu:Gu;default:return[]}}function Ku(e,t,r,n){const o=et(e);let a=Uu(Ne(e),r==="start",n);return o&&(a=a.map(s=>s+"-"+o),t&&(a=a.concat(a.map(Hr)))),a}function Kt(e){return e.replace(/left|right|bottom|top/g,t=>$u[t])}function Yu(e){return{top:0,right:0,bottom:0,left:0,...e}}function Pa(e){return typeof e!="number"?Yu(e):{top:e,right:e,bottom:e,left:e}}function Yt(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 Na(e,t,r){let{reference:n,floating:o}=e;const a=we(t),s=Wr(t),i=Br(s),c=Ne(t),u=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(et(t)){case"start":h[s]-=g*(r&&u?-1:1);break;case"end":h[s]+=g*(r&&u?-1:1);break}return h}const qu=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 u=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:f,y:p}=Na(u,n,c),g=n,h={},v=0;for(let m=0;m<i.length;m++){const{name:x,fn:y}=i[m],{x:b,y:w,data:C,reset:k}=await y({x:f,y:p,initialPlacement:n,placement:g,strategy:o,middlewareData:h,rects:u,platform:s,elements:{reference:e,floating:t}});f=b??f,p=w??p,h={...h,[x]:{...h[x],...C}},k&&v<=50&&(v++,typeof k=="object"&&(k.placement&&(g=k.placement),k.rects&&(u=k.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:o}):k.rects),{x:f,y:p}=Na(u,g,c)),m=-1)}return{x:f,y:p,placement:g,strategy:o,middlewareData:h}};async function gt(e,t){var r;t===void 0&&(t={});const{x:n,y:o,platform:a,rects:s,elements:i,strategy:c}=e,{boundary:u="clippingAncestors",rootBoundary:f="viewport",elementContext:p="floating",altBoundary:g=!1,padding:h=0}=Pe(t,e),v=Pa(h),x=i[g?p==="floating"?"reference":"floating":p],y=Yt(await a.getClippingRect({element:(r=await(a.isElement==null?void 0:a.isElement(x)))==null||r?x:x.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(i.floating)),boundary:u,rootBoundary:f,strategy:c})),b=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},k=Yt(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:i,rect:b,offsetParent:w,strategy:c}):b);return{top:(y.top-k.top+v.top)/C.y,bottom:(k.bottom-y.bottom+v.bottom)/C.y,left:(y.left-k.left+v.left)/C.x,right:(k.right-y.right+v.right)/C.x}}const Xu=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:u,padding:f=0}=Pe(e,t)||{};if(u==null)return{};const p=Pa(f),g={x:r,y:n},h=Wr(o),v=Br(h),m=await s.getDimensions(u),x=h==="y",y=x?"top":"left",b=x?"bottom":"right",w=x?"clientHeight":"clientWidth",C=a.reference[v]+a.reference[h]-g[h]-a.floating[v],k=g[h]-a.reference[h],A=await(s.getOffsetParent==null?void 0:s.getOffsetParent(u));let R=A?A[w]:0;(!R||!await(s.isElement==null?void 0:s.isElement(A)))&&(R=i.floating[w]||a.floating[v]);const _=C/2-k/2,W=R/2-m[v]/2-1,K=Ie(p[y],W),X=Ie(p[b],W),Q=K,ee=R-m[v]-X,z=R/2-m[v]/2+_,q=Vr(Q,z,ee),D=!c.arrow&&et(o)!=null&&z!==q&&a.reference[v]/2-(z<Q?K:X)-m[v]/2<0,H=D?z<Q?z-Q:z-ee:0;return{[h]:g[h]+H,data:{[h]:q,centerOffset:z-q-H,...D&&{alignmentOffset:H}},reset:D}}}),Zu=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:u}=t,{mainAxis:f=!0,crossAxis:p=!0,fallbackPlacements:g,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:m=!0,...x}=Pe(e,t);if((r=a.arrow)!=null&&r.alignmentOffset)return{};const y=Ne(o),b=we(i),w=Ne(i)===i,C=await(c.isRTL==null?void 0:c.isRTL(u.floating)),k=g||(w||!m?[Kt(i)]:Wu(i)),A=v!=="none";!g&&A&&k.push(...Ku(i,m,v,C));const R=[i,...k],_=await gt(t,x),W=[];let K=((n=a.flip)==null?void 0:n.overflows)||[];if(f&&W.push(_[y]),p){const z=Bu(o,s,C);W.push(_[z[0]],_[z[1]])}if(K=[...K,{placement:o,overflows:W}],!W.every(z=>z<=0)){var X,Q;const z=(((X=a.flip)==null?void 0:X.index)||0)+1,q=R[z];if(q&&(!(p==="alignment"?b!==we(q):!1)||K.every(P=>we(P.placement)===b?P.overflows[0]>0:!0)))return{data:{index:z,overflows:K},reset:{placement:q}};let D=(Q=K.filter(H=>H.overflows[0]<=0).sort((H,P)=>H.overflows[1]-P.overflows[1])[0])==null?void 0:Q.placement;if(!D)switch(h){case"bestFit":{var ee;const H=(ee=K.filter(P=>{if(A){const re=we(P.placement);return re===b||re==="y"}return!0}).map(P=>[P.placement,P.overflows.filter(re=>re>0).reduce((re,E)=>re+E,0)]).sort((P,re)=>P[1]-re[1])[0])==null?void 0:ee[0];H&&(D=H);break}case"initialPlacement":D=i;break}if(o!==D)return{reset:{placement:D}}}return{}}}};function Aa(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Ta(e){return Fu.some(t=>e[t]>=0)}const Ju=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 gt(t,{...o,elementContext:"reference"}),s=Aa(a,r.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:Ta(s)}}}case"escaped":{const a=await gt(t,{...o,altBoundary:!0}),s=Aa(a,r.floating);return{data:{escapedOffsets:s,escaped:Ta(s)}}}default:return{}}}}},Oa=new Set(["left","top"]);async function Qu(e,t){const{placement:r,platform:n,elements:o}=e,a=await(n.isRTL==null?void 0:n.isRTL(o.floating)),s=Ne(r),i=et(r),c=we(r)==="y",u=Oa.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*u}:{x:g*u,y:h*f}}const ed=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 Qu(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}}}}},td=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:x=>{let{x:y,y:b}=x;return{x:y,y:b}}},...c}=Pe(e,t),u={x:r,y:n},f=await gt(t,c),p=we(Ne(o)),g=zr(p);let h=u[g],v=u[p];if(a){const x=g==="y"?"top":"left",y=g==="y"?"bottom":"right",b=h+f[x],w=h-f[y];h=Vr(b,h,w)}if(s){const x=p==="y"?"top":"left",y=p==="y"?"bottom":"right",b=v+f[x],w=v-f[y];v=Vr(b,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}}}}}},rd=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:u=!0}=Pe(e,t),f={x:r,y:n},p=we(o),g=zr(p);let h=f[g],v=f[p];const m=Pe(i,t),x=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]+x.mainAxis,k=a.reference[g]+a.reference[w]-x.mainAxis;h<C?h=C:h>k&&(h=k)}if(u){var y,b;const w=g==="y"?"width":"height",C=Oa.has(Ne(o)),k=a.reference[p]-a.floating[w]+(C&&((y=s.offset)==null?void 0:y[p])||0)+(C?0:x.crossAxis),A=a.reference[p]+a.reference[w]+(C?0:((b=s.offset)==null?void 0:b[p])||0)-(C?x.crossAxis:0);v<k?v=k:v>A&&(v=A)}return{[g]:h,[p]:v}}}},nd=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=()=>{},...u}=Pe(e,t),f=await gt(t,u),p=Ne(o),g=et(o),h=we(o)==="y",{width:v,height:m}=a.floating;let x,y;p==="top"||p==="bottom"?(x=p,y=g===(await(s.isRTL==null?void 0:s.isRTL(i.floating))?"start":"end")?"left":"right"):(y=p,x=g==="end"?"top":"bottom");const b=m-f.top-f.bottom,w=v-f.left-f.right,C=Ie(m-f[x],b),k=Ie(v-f[y],w),A=!t.middlewareData.shift;let R=C,_=k;if((r=t.middlewareData.shift)!=null&&r.enabled.x&&(_=w),(n=t.middlewareData.shift)!=null&&n.enabled.y&&(R=b),A&&!g){const K=de(f.left,0),X=de(f.right,0),Q=de(f.top,0),ee=de(f.bottom,0);h?_=v-2*(K!==0||X!==0?K+X:de(f.left,f.right)):R=m-2*(Q!==0||ee!==0?Q+ee:de(f.top,f.bottom))}await c({...t,availableWidth:_,availableHeight:R});const W=await s.getDimensions(i.floating);return v!==W.width||m!==W.height?{reset:{rects:!0}}:{}}}};function qt(){return typeof window<"u"}function tt(e){return Ia(e)?(e.nodeName||"").toLowerCase():"#document"}function fe(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Se(e){var t;return(t=(Ia(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Ia(e){return qt()?e instanceof Node||e instanceof fe(e).Node:!1}function he(e){return qt()?e instanceof Element||e instanceof fe(e).Element:!1}function Ce(e){return qt()?e instanceof HTMLElement||e instanceof fe(e).HTMLElement:!1}function ja(e){return!qt()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof fe(e).ShadowRoot}const od=new Set(["inline","contents"]);function vt(e){const{overflow:t,overflowX:r,overflowY:n,display:o}=ge(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!od.has(o)}const ad=new Set(["table","td","th"]);function sd(e){return ad.has(tt(e))}const id=[":popover-open",":modal"];function Xt(e){return id.some(t=>{try{return e.matches(t)}catch{return!1}})}const ld=["transform","translate","scale","rotate","perspective"],cd=["transform","translate","scale","rotate","perspective","filter"],ud=["paint","layout","strict","content"];function Gr(e){const t=Ur(),r=he(e)?ge(e):e;return ld.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)||cd.some(n=>(r.willChange||"").includes(n))||ud.some(n=>(r.contain||"").includes(n))}function dd(e){let t=je(e);for(;Ce(t)&&!rt(t);){if(Gr(t))return t;if(Xt(t))return null;t=je(t)}return null}function Ur(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const fd=new Set(["html","body","#document"]);function rt(e){return fd.has(tt(e))}function ge(e){return fe(e).getComputedStyle(e)}function Zt(e){return he(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function je(e){if(tt(e)==="html")return e;const t=e.assignedSlot||e.parentNode||ja(e)&&e.host||Se(e);return ja(t)?t.host:t}function Ma(e){const t=je(e);return rt(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ce(t)&&vt(t)?t:Ma(t)}function xt(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);const o=Ma(e),a=o===((n=e.ownerDocument)==null?void 0:n.body),s=fe(o);if(a){const i=Kr(s);return t.concat(s,s.visualViewport||[],vt(o)?o:[],i&&r?xt(i):[])}return t.concat(o,xt(o,[],r))}function Kr(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Da(e){const t=ge(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const o=Ce(e),a=o?e.offsetWidth:r,s=o?e.offsetHeight:n,i=Gt(r)!==a||Gt(n)!==s;return i&&(r=a,n=s),{width:r,height:n,$:i}}function Yr(e){return he(e)?e:e.contextElement}function nt(e){const t=Yr(e);if(!Ce(t))return ye(1);const r=t.getBoundingClientRect(),{width:n,height:o,$:a}=Da(t);let s=(a?Gt(r.width):r.width)/n,i=(a?Gt(r.height):r.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!i||!Number.isFinite(i))&&(i=1),{x:s,y:i}}const pd=ye(0);function La(e){const t=fe(e);return!Ur()||!t.visualViewport?pd:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function md(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==fe(e)?!1:t}function We(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);const o=e.getBoundingClientRect(),a=Yr(e);let s=ye(1);t&&(n?he(n)&&(s=nt(n)):s=nt(e));const i=md(a,r,n)?La(a):ye(0);let c=(o.left+i.x)/s.x,u=(o.top+i.y)/s.y,f=o.width/s.x,p=o.height/s.y;if(a){const g=fe(a),h=n&&he(n)?fe(n):n;let v=g,m=Kr(v);for(;m&&n&&h!==v;){const x=nt(m),y=m.getBoundingClientRect(),b=ge(m),w=y.left+(m.clientLeft+parseFloat(b.paddingLeft))*x.x,C=y.top+(m.clientTop+parseFloat(b.paddingTop))*x.y;c*=x.x,u*=x.y,f*=x.x,p*=x.y,c+=w,u+=C,v=fe(m),m=Kr(v)}}return Yt({width:f,height:p,x:c,y:u})}function Jt(e,t){const r=Zt(e).scrollLeft;return t?t.left+r:We(Se(e)).left+r}function Fa(e,t){const r=e.getBoundingClientRect(),n=r.left+t.scrollLeft-Jt(e,r),o=r.top+t.scrollTop;return{x:n,y:o}}function hd(e){let{elements:t,rect:r,offsetParent:n,strategy:o}=e;const a=o==="fixed",s=Se(n),i=t?Xt(t.floating):!1;if(n===s||i&&a)return r;let c={scrollLeft:0,scrollTop:0},u=ye(1);const f=ye(0),p=Ce(n);if((p||!p&&!a)&&((tt(n)!=="body"||vt(s))&&(c=Zt(n)),Ce(n))){const h=We(n);u=nt(n),f.x=h.x+n.clientLeft,f.y=h.y+n.clientTop}const g=s&&!p&&!a?Fa(s,c):ye(0);return{width:r.width*u.x,height:r.height*u.y,x:r.x*u.x-c.scrollLeft*u.x+f.x+g.x,y:r.y*u.y-c.scrollTop*u.y+f.y+g.y}}function gd(e){return Array.from(e.getClientRects())}function vd(e){const t=Se(e),r=Zt(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+Jt(e);const i=-r.scrollTop;return ge(n).direction==="rtl"&&(s+=de(t.clientWidth,n.clientWidth)-o),{width:o,height:a,x:s,y:i}}const $a=25;function xd(e,t){const r=fe(e),n=Se(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=Ur();(!f||f&&t==="fixed")&&(i=o.offsetLeft,c=o.offsetTop)}const u=Jt(n);if(u<=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<=$a&&(a-=v)}else u<=$a&&(a+=u);return{width:a,height:s,x:i,y:c}}const bd=new Set(["absolute","fixed"]);function yd(e,t){const r=We(e,!0,t==="fixed"),n=r.top+e.clientTop,o=r.left+e.clientLeft,a=Ce(e)?nt(e):ye(1),s=e.clientWidth*a.x,i=e.clientHeight*a.y,c=o*a.x,u=n*a.y;return{width:s,height:i,x:c,y:u}}function Va(e,t,r){let n;if(t==="viewport")n=xd(e,r);else if(t==="document")n=vd(Se(e));else if(he(t))n=yd(t,r);else{const o=La(e);n={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Yt(n)}function za(e,t){const r=je(e);return r===t||!he(r)||rt(r)?!1:ge(r).position==="fixed"||za(r,t)}function wd(e,t){const r=t.get(e);if(r)return r;let n=xt(e,[],!1).filter(i=>he(i)&&tt(i)!=="body"),o=null;const a=ge(e).position==="fixed";let s=a?je(e):e;for(;he(s)&&!rt(s);){const i=ge(s),c=Gr(s);!c&&i.position==="fixed"&&(o=null),(a?!c&&!o:!c&&i.position==="static"&&!!o&&bd.has(o.position)||vt(s)&&!c&&za(e,s))?n=n.filter(f=>f!==s):o=i,s=je(s)}return t.set(e,n),n}function Sd(e){let{element:t,boundary:r,rootBoundary:n,strategy:o}=e;const s=[...r==="clippingAncestors"?Xt(t)?[]:wd(t,this._c):[].concat(r),n],i=s[0],c=s.reduce((u,f)=>{const p=Va(t,f,o);return u.top=de(p.top,u.top),u.right=Ie(p.right,u.right),u.bottom=Ie(p.bottom,u.bottom),u.left=de(p.left,u.left),u},Va(t,i,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function Cd(e){const{width:t,height:r}=Da(e);return{width:t,height:r}}function Ed(e,t,r){const n=Ce(t),o=Se(t),a=r==="fixed",s=We(e,!0,a,t);let i={scrollLeft:0,scrollTop:0};const c=ye(0);function u(){c.x=Jt(o)}if(n||!n&&!a)if((tt(t)!=="body"||vt(o))&&(i=Zt(t)),n){const h=We(t,!0,a,t);c.x=h.x+t.clientLeft,c.y=h.y+t.clientTop}else o&&u();a&&!n&&o&&u();const f=o&&!n&&!a?Fa(o,i):ye(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 qr(e){return ge(e).position==="static"}function Ba(e,t){if(!Ce(e)||ge(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return Se(e)===r&&(r=r.ownerDocument.body),r}function Wa(e,t){const r=fe(e);if(Xt(e))return r;if(!Ce(e)){let o=je(e);for(;o&&!rt(o);){if(he(o)&&!qr(o))return o;o=je(o)}return r}let n=Ba(e,t);for(;n&&sd(n)&&qr(n);)n=Ba(n,t);return n&&rt(n)&&qr(n)&&!Gr(n)?r:n||dd(e)||r}const kd=async function(e){const t=this.getOffsetParent||Wa,r=this.getDimensions,n=await r(e.floating);return{reference:Ed(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function Rd(e){return ge(e).direction==="rtl"}const _d={convertOffsetParentRelativeRectToViewportRelativeRect:hd,getDocumentElement:Se,getClippingRect:Sd,getOffsetParent:Wa,getElementRects:kd,getClientRects:gd,getDimensions:Cd,getScale:nt,isElement:he,isRTL:Rd};function Ha(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Pd(e,t){let r=null,n;const o=Se(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 u=e.getBoundingClientRect(),{left:f,top:p,width:g,height:h}=u;if(i||t(),!g||!h)return;const v=Ut(p),m=Ut(o.clientWidth-(f+g)),x=Ut(o.clientHeight-(p+h)),y=Ut(f),w={rootMargin:-v+"px "+-m+"px "+-x+"px "+-y+"px",threshold:de(0,Ie(1,c))||1};let C=!0;function k(A){const R=A[0].intersectionRatio;if(R!==c){if(!C)return s();R?s(!1,R):n=setTimeout(()=>{s(!1,1e-7)},1e3)}R===1&&!Ha(u,e.getBoundingClientRect())&&s(),C=!1}try{r=new IntersectionObserver(k,{...w,root:o.ownerDocument})}catch{r=new IntersectionObserver(k,w)}r.observe(e)}return s(!0),a}function Nd(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,u=Yr(e),f=o||a?[...u?xt(u):[],...xt(t)]:[];f.forEach(y=>{o&&y.addEventListener("scroll",r,{passive:!0}),a&&y.addEventListener("resize",r)});const p=u&&i?Pd(u,r):null;let g=-1,h=null;s&&(h=new ResizeObserver(y=>{let[b]=y;b&&b.target===u&&h&&(h.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var w;(w=h)==null||w.observe(t)})),r()}),u&&!c&&h.observe(u),h.observe(t));let v,m=c?We(e):null;c&&x();function x(){const y=We(e);m&&!Ha(m,y)&&r(),m=y,v=requestAnimationFrame(x)}return r(),()=>{var y;f.forEach(b=>{o&&b.removeEventListener("scroll",r),a&&b.removeEventListener("resize",r)}),p==null||p(),(y=h)==null||y.disconnect(),h=null,c&&cancelAnimationFrame(v)}}const Ad=ed,Td=td,Od=Zu,Id=nd,jd=Ju,Ga=Xu,Md=rd,Dd=(e,t,r)=>{const n=new Map,o={platform:_d,...r},a={...o.platform,_c:n};return qu(e,t,{...o,platform:a})};var Ld=typeof document<"u",Fd=function(){},Qt=Ld?te.useLayoutEffect:Fd;function er(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(!er(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)&&!er(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function Ua(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Ka(e,t){const r=Ua(e);return Math.round(t*r)/r}function Xr(e){const t=l.useRef(e);return Qt(()=>{t.current=e}),t}function $d(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:u}=e,[f,p]=l.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[g,h]=l.useState(n);er(g,n)||h(n);const[v,m]=l.useState(null),[x,y]=l.useState(null),b=l.useCallback(P=>{P!==A.current&&(A.current=P,m(P))},[]),w=l.useCallback(P=>{P!==R.current&&(R.current=P,y(P))},[]),C=a||v,k=s||x,A=l.useRef(null),R=l.useRef(null),_=l.useRef(f),W=c!=null,K=Xr(c),X=Xr(o),Q=Xr(u),ee=l.useCallback(()=>{if(!A.current||!R.current)return;const P={placement:t,strategy:r,middleware:g};X.current&&(P.platform=X.current),Dd(A.current,R.current,P).then(re=>{const E={...re,isPositioned:Q.current!==!1};z.current&&!er(_.current,E)&&(_.current=E,Nt.flushSync(()=>{p(E)}))})},[g,t,r,X,Q]);Qt(()=>{u===!1&&_.current.isPositioned&&(_.current.isPositioned=!1,p(P=>({...P,isPositioned:!1})))},[u]);const z=l.useRef(!1);Qt(()=>(z.current=!0,()=>{z.current=!1}),[]),Qt(()=>{if(C&&(A.current=C),k&&(R.current=k),C&&k){if(K.current)return K.current(C,k,ee);ee()}},[C,k,ee,K,W]);const q=l.useMemo(()=>({reference:A,floating:R,setReference:b,setFloating:w}),[b,w]),D=l.useMemo(()=>({reference:C,floating:k}),[C,k]),H=l.useMemo(()=>{const P={position:r,left:0,top:0};if(!D.floating)return P;const re=Ka(D.floating,f.x),E=Ka(D.floating,f.y);return i?{...P,transform:"translate("+re+"px, "+E+"px)",...Ua(D.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:re,top:E}},[r,i,D.floating,f.x,f.y]);return l.useMemo(()=>({...f,update:ee,refs:q,elements:D,floatingStyles:H}),[f,ee,q,D,H])}const Vd=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?Ga({element:n.current,padding:o}).fn(r):{}:n?Ga({element:n,padding:o}).fn(r):{}}}},zd=(e,t)=>({...Ad(e),options:[e,t]}),Bd=(e,t)=>({...Td(e),options:[e,t]}),Wd=(e,t)=>({...Md(e),options:[e,t]}),Hd=(e,t)=>({...Od(e),options:[e,t]}),Gd=(e,t)=>({...Id(e),options:[e,t]}),Ud=(e,t)=>({...jd(e),options:[e,t]}),Kd=(e,t)=>({...Vd(e),options:[e,t]});var Yd="Arrow",Ya=l.forwardRef((e,t)=>{const{children:r,width:n=10,height:o=5,...a}=e;return d.jsx(V.svg,{...a,ref:t,width:n,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:d.jsx("polygon",{points:"0,0 30,0 15,10"})})});Ya.displayName=Yd;var qd=Ya,Zr="Popper",[qa,ot]=xe(Zr),[Xd,Xa]=qa(Zr),Za=e=>{const{__scopePopper:t,children:r}=e,[n,o]=l.useState(null);return d.jsx(Xd,{scope:t,anchor:n,onAnchorChange:o,children:r})};Za.displayName=Zr;var Ja="PopperAnchor",Qa=l.forwardRef((e,t)=>{const{__scopePopper:r,virtualRef:n,...o}=e,a=Xa(Ja,r),s=l.useRef(null),i=ae(t,s),c=l.useRef(null);return l.useEffect(()=>{const u=c.current;c.current=(n==null?void 0:n.current)||s.current,u!==c.current&&a.onAnchorChange(c.current)}),n?null:d.jsx(V.div,{...o,ref:i})});Qa.displayName=Ja;var Jr="PopperContent",[Zd,Jd]=qa(Jr),es=l.forwardRef((e,t)=>{var N,L,G,Z,ne,oe;const{__scopePopper:r,side:n="bottom",sideOffset:o=0,align:a="center",alignOffset:s=0,arrowPadding:i=0,avoidCollisions:c=!0,collisionBoundary:u=[],collisionPadding:f=0,sticky:p="partial",hideWhenDetached:g=!1,updatePositionStrategy:h="optimized",onPlaced:v,...m}=e,x=Xa(Jr,r),[y,b]=l.useState(null),w=ae(t,pe=>b(pe)),[C,k]=l.useState(null),A=uo(C),R=(A==null?void 0:A.width)??0,_=(A==null?void 0:A.height)??0,W=n+(a!=="center"?"-"+a:""),K=typeof f=="number"?f:{top:0,right:0,bottom:0,left:0,...f},X=Array.isArray(u)?u:[u],Q=X.length>0,ee={padding:K,boundary:X.filter(ef),altBoundary:Q},{refs:z,floatingStyles:q,placement:D,isPositioned:H,middlewareData:P}=$d({strategy:"fixed",placement:W,whileElementsMounted:(...pe)=>Nd(...pe,{animationFrame:h==="always"}),elements:{reference:x.anchor},middleware:[zd({mainAxis:o+_,alignmentAxis:s}),c&&Bd({mainAxis:!0,crossAxis:!1,limiter:p==="partial"?Wd():void 0,...ee}),c&&Hd({...ee}),Gd({...ee,apply:({elements:pe,rects:Ee,availableWidth:Rt,availableHeight:_t})=>{const{width:Pt,height:Hm}=Ee.reference,dr=pe.floating.style;dr.setProperty("--radix-popper-available-width",`${Rt}px`),dr.setProperty("--radix-popper-available-height",`${_t}px`),dr.setProperty("--radix-popper-anchor-width",`${Pt}px`),dr.setProperty("--radix-popper-anchor-height",`${Hm}px`)}}),C&&Kd({element:C,padding:i}),tf({arrowWidth:R,arrowHeight:_}),g&&Ud({strategy:"referenceHidden",...ee})]}),[re,E]=ns(D),$=Re(v);ie(()=>{H&&($==null||$())},[H,$]);const S=(N=P.arrow)==null?void 0:N.x,T=(L=P.arrow)==null?void 0:L.y,M=((G=P.arrow)==null?void 0:G.centerOffset)!==0,[O,Y]=l.useState();return ie(()=>{y&&Y(window.getComputedStyle(y).zIndex)},[y]),d.jsx("div",{ref:z.setFloating,"data-radix-popper-content-wrapper":"",style:{...q,transform:H?q.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:O,"--radix-popper-transform-origin":[(Z=P.transformOrigin)==null?void 0:Z.x,(ne=P.transformOrigin)==null?void 0:ne.y].join(" "),...((oe=P.hide)==null?void 0:oe.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:d.jsx(Zd,{scope:r,placedSide:re,onArrowChange:k,arrowX:S,arrowY:T,shouldHideArrow:M,children:d.jsx(V.div,{"data-side":re,"data-align":E,...m,ref:w,style:{...m.style,animation:H?void 0:"none"}})})})});es.displayName=Jr;var ts="PopperArrow",Qd={top:"bottom",right:"left",bottom:"top",left:"right"},rs=l.forwardRef(function(t,r){const{__scopePopper:n,...o}=t,a=Jd(ts,n),s=Qd[a.placedSide];return d.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:d.jsx(qd,{...o,ref:r,style:{...o.style,display:"block"}})})});rs.displayName=ts;function ef(e){return e!==null}var tf=e=>({name:"transformOrigin",options:e,fn(t){var x,y,b;const{placement:r,rects:n,middlewareData:o}=t,s=((x=o.arrow)==null?void 0:x.centerOffset)!==0,i=s?0:e.arrowWidth,c=s?0:e.arrowHeight,[u,f]=ns(r),p={start:"0%",center:"50%",end:"100%"}[f],g=(((y=o.arrow)==null?void 0:y.x)??0)+i/2,h=(((b=o.arrow)==null?void 0:b.y)??0)+c/2;let v="",m="";return u==="bottom"?(v=s?p:`${g}px`,m=`${-c}px`):u==="top"?(v=s?p:`${g}px`,m=`${n.floating.height+c}px`):u==="right"?(v=`${-c}px`,m=s?p:`${h}px`):u==="left"&&(v=`${n.floating.width+c}px`,m=s?p:`${h}px`),{data:{x:v,y:m}}}});function ns(e){const[t,r="center"]=e.split("-");return[t,r]}var Qr=Za,tr=Qa,en=es,tn=rs,os=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"}),rf="VisuallyHidden",as=l.forwardRef((e,t)=>d.jsx(V.span,{...e,ref:t,style:{...os,...e.style}}));as.displayName=rf;var nf=as,[rr,fh]=xe("Tooltip",[ot]),nr=ot(),ss="TooltipProvider",of=700,rn="tooltip.open",[af,nn]=rr(ss),is=e=>{const{__scopeTooltip:t,delayDuration:r=of,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 u=c.current;return()=>window.clearTimeout(u)},[]),d.jsx(af,{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(u=>{i.current=u},[]),disableHoverableContent:o,children:a})};is.displayName=ss;var bt="Tooltip",[sf,yt]=rr(bt),ls=e=>{const{__scopeTooltip:t,children:r,open:n,defaultOpen:o,onOpenChange:a,disableHoverableContent:s,delayDuration:i}=e,c=nn(bt,e.__scopeTooltip),u=nr(t),[f,p]=l.useState(null),g=le(),h=l.useRef(0),v=s??c.disableHoverableContent,m=i??c.delayDuration,x=l.useRef(!1),[y,b]=Te({prop:n,defaultProp:o??!1,onChange:R=>{R?(c.onOpen(),document.dispatchEvent(new CustomEvent(rn))):c.onClose(),a==null||a(R)},caller:bt}),w=l.useMemo(()=>y?x.current?"delayed-open":"instant-open":"closed",[y]),C=l.useCallback(()=>{window.clearTimeout(h.current),h.current=0,x.current=!1,b(!0)},[b]),k=l.useCallback(()=>{window.clearTimeout(h.current),h.current=0,b(!1)},[b]),A=l.useCallback(()=>{window.clearTimeout(h.current),h.current=window.setTimeout(()=>{x.current=!0,b(!0),h.current=0},m)},[m,b]);return l.useEffect(()=>()=>{h.current&&(window.clearTimeout(h.current),h.current=0)},[]),d.jsx(Qr,{...u,children:d.jsx(sf,{scope:t,contentId:g,open:y,stateAttribute:w,trigger:f,onTriggerChange:p,onTriggerEnter:l.useCallback(()=>{c.isOpenDelayedRef.current?A():C()},[c.isOpenDelayedRef,A,C]),onTriggerLeave:l.useCallback(()=>{v?k():(window.clearTimeout(h.current),h.current=0)},[k,v]),onOpen:C,onClose:k,disableHoverableContent:v,children:r})})};ls.displayName=bt;var on="TooltipTrigger",cs=l.forwardRef((e,t)=>{const{__scopeTooltip:r,...n}=e,o=yt(on,r),a=nn(on,r),s=nr(r),i=l.useRef(null),c=ae(t,i,o.onTriggerChange),u=l.useRef(!1),f=l.useRef(!1),p=l.useCallback(()=>u.current=!1,[]);return l.useEffect(()=>()=>document.removeEventListener("pointerup",p),[p]),d.jsx(tr,{asChild:!0,...s,children:d.jsx(V.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(),u.current=!0,document.addEventListener("pointerup",p,{once:!0})}),onFocus:B(e.onFocus,()=>{u.current||o.onOpen()}),onBlur:B(e.onBlur,o.onClose),onClick:B(e.onClick,o.onClose)})})});cs.displayName=on;var an="TooltipPortal",[lf,cf]=rr(an,{forceMount:void 0}),us=e=>{const{__scopeTooltip:t,forceMount:r,children:n,container:o}=e,a=yt(an,t);return d.jsx(lf,{scope:t,forceMount:r,children:d.jsx(_e,{present:r||a.open,children:d.jsx(ht,{asChild:!0,container:o,children:n})})})};us.displayName=an;var at="TooltipContent",ds=l.forwardRef((e,t)=>{const r=cf(at,e.__scopeTooltip),{forceMount:n=r.forceMount,side:o="top",...a}=e,s=yt(at,e.__scopeTooltip);return d.jsx(_e,{present:n||s.open,children:s.disableHoverableContent?d.jsx(fs,{side:o,...a,ref:t}):d.jsx(uf,{side:o,...a,ref:t})})}),uf=l.forwardRef((e,t)=>{const r=yt(at,e.__scopeTooltip),n=nn(at,e.__scopeTooltip),o=l.useRef(null),a=ae(t,o),[s,i]=l.useState(null),{trigger:c,onClose:u}=r,f=o.current,{onPointerInTransitChange:p}=n,g=l.useCallback(()=>{i(null),p(!1)},[p]),h=l.useCallback((v,m)=>{const x=v.currentTarget,y={x:v.clientX,y:v.clientY},b=mf(y,x.getBoundingClientRect()),w=hf(y,b),C=gf(m.getBoundingClientRect()),k=xf([...w,...C]);i(k),p(!0)},[p]);return l.useEffect(()=>()=>g(),[g]),l.useEffect(()=>{if(c&&f){const v=x=>h(x,f),m=x=>h(x,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 x=m.target,y={x:m.clientX,y:m.clientY},b=(c==null?void 0:c.contains(x))||(f==null?void 0:f.contains(x)),w=!vf(y,s);b?g():w&&(g(),u())};return document.addEventListener("pointermove",v),()=>document.removeEventListener("pointermove",v)}},[c,f,s,u,g]),d.jsx(fs,{...e,ref:a})}),[df,ff]=rr(bt,{isInside:!1}),pf=Ii("TooltipContent"),fs=l.forwardRef((e,t)=>{const{__scopeTooltip:r,children:n,"aria-label":o,onEscapeKeyDown:a,onPointerDownOutside:s,...i}=e,c=yt(at,r),u=nr(r),{onClose:f}=c;return l.useEffect(()=>(document.addEventListener(rn,f),()=>document.removeEventListener(rn,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]),d.jsx(mt,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:s,onFocusOutside:p=>p.preventDefault(),onDismiss:f,children:d.jsxs(en,{"data-state":c.stateAttribute,...u,...i,ref:t,style:{...i.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[d.jsx(pf,{children:n}),d.jsx(df,{scope:r,isInside:!0,children:d.jsx(nf,{id:c.contentId,role:"tooltip",children:o||n})})]})})});ds.displayName=at;var ps="TooltipArrow",ms=l.forwardRef((e,t)=>{const{__scopeTooltip:r,...n}=e,o=nr(r);return ff(ps,r).isInside?null:d.jsx(tn,{...o,...n,ref:t})});ms.displayName=ps;function mf(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 hf(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 gf(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 vf(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],u=i.x,f=i.y,p=c.x,g=c.y;f>n!=g>n&&r<(p-u)*(n-f)/(g-f)+u&&(o=!o)}return o}function xf(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),bf(t)}function bf(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=is,wf=ls,Sf=cs,Cf=us,Ef=ds,kf=ms;function hs({delayDuration:e=0,...t}){return d.jsx(yf,{"data-slot":"tooltip-provider",delayDuration:e,...t})}function Rf({...e}){return d.jsx(hs,{children:d.jsx(wf,{"data-slot":"tooltip",...e})})}function _f({...e}){return d.jsx(Sf,{"data-slot":"tooltip-trigger",...e})}function Pf({className:e,sideOffset:t=0,children:r,...n}){return d.jsx(Cf,{children:d.jsxs(Ef,{"data-slot":"tooltip-content",sideOffset:t,className:F("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,d.jsx(kf,{className:"bg-neutral-black-1 fill-foreground z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]"})]})})}const Nf=ue("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"}}),sn=({label:e,helperText:t,errorText:r,leftIcon:n,rightIcon:o,size:a="medium",className:s,disabled:i=!1,...c})=>d.jsxs("div",{className:"flex flex-col gap-1",children:[e&&d.jsx("label",{className:"text-sm font-normal text-neutral-black-1",children:e}),d.jsxs("div",{className:F(Nf({size:a,status:r?"error":i?"disabled":"default"}),s),children:[n&&d.jsx("span",{className:"mr-2 flex-shrink-0",children:n}),d.jsx("input",{disabled:i,className:F("flex-1 bg-transparent outline-none placeholder:text-neutral-black-2 disabled:cursor-not-allowed disabled:opacity-50"),...c}),o&&d.jsx("span",{className:"ml-2 flex-shrink-0",children:o})]}),(t||r)&&d.jsx("p",{className:F("text-xs mt-1",r?"text-primary-1":"text-neutral-black-2"),children:r||t})]}),Af=e=>d.jsx(sn,{type:"email",inputMode:"email",...e}),Tf=({showForgot:e=!1,onValidityChange:t,customValidator:r,...n})=>{const[o,a]=te.useState(!1),[s,i]=te.useState(""),u=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=u.every(p=>p.isValid);return te.useEffect(()=>{t&&t(f,u)},[s,f,u,t]),d.jsx("div",{className:"flex flex-col gap-2",children:d.jsxs("div",{className:"flex flex-col gap-2 w-full max-w-sm",children:[d.jsxs("div",{className:"flex justify-between items-center",children:[d.jsx("label",{className:"text-sm font-medium text-neutral-0",children:"Password"}),e&&d.jsx("button",{type:"button",className:"text-xs text-neutral-0 hover:underline",children:"Forgot Password?"})]}),d.jsx(sn,{type:o?"text":"password",value:s,onChange:p=>i(p.target.value),...n,rightIcon:d.jsx("button",{type:"button",onClick:()=>a(!o),className:"p-1 text-neutral-0 hover:text-text-neutral-0",children:o?d.jsx(Eu,{size:18,className:"text-neutral-black-2"}):d.jsx(ku,{size:18,className:"text-neutral-black-2"})})}),d.jsx("div",{className:"grid grid-cols-2 gap-y-1 text-xs mt-3",children:u.map((p,g)=>d.jsxs("div",{className:"flex items-center gap-1",children:[p.isValid?d.jsx(Su,{size:14,className:"text-success-d"}):d.jsx(Cu,{size:14,className:"text-stroke"}),d.jsx("span",{className:p.isValid?"text-success-d":"text-input",children:p.label})]},g))})]})})},Of=e=>d.jsx(sn,{type:"search",leftIcon:d.jsx(wa,{"data-testid":"search-icon",className:"w-4 h-4 text-input-placeholder"}),placeholder:"Search...",...e});function gs(e,[t,r]){return Math.min(r,Math.max(t,e))}var If=[" ","Enter","ArrowUp","ArrowDown"],jf=[" ","Enter"],He="Select",[or,ar,Mf]=no(He),[st,ph]=xe(He,[Mf,ot]),sr=ot(),[Df,Me]=st(He),[Lf,Ff]=st(He),vs=e=>{const{__scopeSelect:t,children:r,open:n,defaultOpen:o,onOpenChange:a,value:s,defaultValue:i,onValueChange:c,dir:u,name:f,autoComplete:p,disabled:g,required:h,form:v}=e,m=sr(t),[x,y]=l.useState(null),[b,w]=l.useState(null),[C,k]=l.useState(!1),A=yr(u),[R,_]=Te({prop:n,defaultProp:o??!1,onChange:a,caller:He}),[W,K]=Te({prop:s,defaultProp:i,onChange:c,caller:He}),X=l.useRef(null),Q=x?v||!!x.closest("form"):!0,[ee,z]=l.useState(new Set),q=Array.from(ee).map(D=>D.props.value).join(";");return d.jsx(Qr,{...m,children:d.jsxs(Df,{required:h,scope:t,trigger:x,onTriggerChange:y,valueNode:b,onValueNodeChange:w,valueNodeHasChildren:C,onValueNodeHasChildrenChange:k,contentId:le(),value:W,onValueChange:K,open:R,onOpenChange:_,dir:A,triggerPointerDownPosRef:X,disabled:g,children:[d.jsx(or.Provider,{scope:t,children:d.jsx(Lf,{scope:e.__scopeSelect,onNativeOptionAdd:l.useCallback(D=>{z(H=>new Set(H).add(D))},[]),onNativeOptionRemove:l.useCallback(D=>{z(H=>{const P=new Set(H);return P.delete(D),P})},[]),children:r})}),Q?d.jsxs(zs,{"aria-hidden":!0,required:h,tabIndex:-1,name:f,autoComplete:p,value:W,onChange:D=>K(D.target.value),disabled:g,form:v,children:[W===void 0?d.jsx("option",{value:""}):null,Array.from(ee)]},q):null]})})};vs.displayName=He;var xs="SelectTrigger",bs=l.forwardRef((e,t)=>{const{__scopeSelect:r,disabled:n=!1,...o}=e,a=sr(r),s=Me(xs,r),i=s.disabled||n,c=ae(t,s.onTriggerChange),u=ar(r),f=l.useRef("touch"),[p,g,h]=Ws(m=>{const x=u().filter(w=>!w.disabled),y=x.find(w=>w.value===s.value),b=Hs(x,m,y);b!==void 0&&s.onValueChange(b.value)}),v=m=>{i||(s.onOpenChange(!0),h()),m&&(s.triggerPointerDownPosRef.current={x:Math.round(m.pageX),y:Math.round(m.pageY)})};return d.jsx(tr,{asChild:!0,...a,children:d.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":Bs(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 x=m.target;x.hasPointerCapture(m.pointerId)&&x.releasePointerCapture(m.pointerId),m.button===0&&m.ctrlKey===!1&&m.pointerType==="mouse"&&(v(m),m.preventDefault())}),onKeyDown:B(o.onKeyDown,m=>{const x=p.current!=="";!(m.ctrlKey||m.altKey||m.metaKey)&&m.key.length===1&&g(m.key),!(x&&m.key===" ")&&If.includes(m.key)&&(v(),m.preventDefault())})})})});bs.displayName=xs;var ys="SelectValue",ws=l.forwardRef((e,t)=>{const{__scopeSelect:r,className:n,style:o,children:a,placeholder:s="",...i}=e,c=Me(ys,r),{onValueNodeHasChildrenChange:u}=c,f=a!==void 0,p=ae(t,c.onValueNodeChange);return ie(()=>{u(f)},[u,f]),d.jsx(V.span,{...i,ref:p,style:{pointerEvents:"none"},children:Bs(c.value)?d.jsx(d.Fragment,{children:s}):a})});ws.displayName=ys;var $f="SelectIcon",Ss=l.forwardRef((e,t)=>{const{__scopeSelect:r,children:n,...o}=e;return d.jsx(V.span,{"aria-hidden":!0,...o,ref:t,children:n||"▼"})});Ss.displayName=$f;var Vf="SelectPortal",Cs=e=>d.jsx(ht,{asChild:!0,...e});Cs.displayName=Vf;var Ge="SelectContent",Es=l.forwardRef((e,t)=>{const r=Me(Ge,e.__scopeSelect),[n,o]=l.useState();if(ie(()=>{o(new DocumentFragment)},[]),!r.open){const a=n;return a?Nt.createPortal(d.jsx(ks,{scope:e.__scopeSelect,children:d.jsx(or.Slot,{scope:e.__scopeSelect,children:d.jsx("div",{children:e.children})})}),a):null}return d.jsx(Rs,{...e,ref:t})});Es.displayName=Ge;var ve=10,[ks,De]=st(Ge),zf="SelectContentImpl",Bf=Ve("SelectContent.RemoveScroll"),Rs=l.forwardRef((e,t)=>{const{__scopeSelect:r,position:n="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:a,onPointerDownOutside:s,side:i,sideOffset:c,align:u,alignOffset:f,arrowPadding:p,collisionBoundary:g,collisionPadding:h,sticky:v,hideWhenDetached:m,avoidCollisions:x,...y}=e,b=Me(Ge,r),[w,C]=l.useState(null),[k,A]=l.useState(null),R=ae(t,N=>C(N)),[_,W]=l.useState(null),[K,X]=l.useState(null),Q=ar(r),[ee,z]=l.useState(!1),q=l.useRef(!1);l.useEffect(()=>{if(w)return jr(w)},[w]),Pr();const D=l.useCallback(N=>{const[L,...G]=Q().map(oe=>oe.ref.current),[Z]=G.slice(-1),ne=document.activeElement;for(const oe of N)if(oe===ne||(oe==null||oe.scrollIntoView({block:"nearest"}),oe===L&&k&&(k.scrollTop=0),oe===Z&&k&&(k.scrollTop=k.scrollHeight),oe==null||oe.focus(),document.activeElement!==ne))return},[Q,k]),H=l.useCallback(()=>D([_,w]),[D,_,w]);l.useEffect(()=>{ee&&H()},[ee,H]);const{onOpenChange:P,triggerPointerDownPosRef:re}=b;l.useEffect(()=>{if(w){let N={x:0,y:0};const L=Z=>{var ne,oe;N={x:Math.abs(Math.round(Z.pageX)-(((ne=re.current)==null?void 0:ne.x)??0)),y:Math.abs(Math.round(Z.pageY)-(((oe=re.current)==null?void 0:oe.y)??0))}},G=Z=>{N.x<=10&&N.y<=10?Z.preventDefault():w.contains(Z.target)||P(!1),document.removeEventListener("pointermove",L),re.current=null};return re.current!==null&&(document.addEventListener("pointermove",L),document.addEventListener("pointerup",G,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",L),document.removeEventListener("pointerup",G,{capture:!0})}}},[w,P,re]),l.useEffect(()=>{const N=()=>P(!1);return window.addEventListener("blur",N),window.addEventListener("resize",N),()=>{window.removeEventListener("blur",N),window.removeEventListener("resize",N)}},[P]);const[E,$]=Ws(N=>{const L=Q().filter(ne=>!ne.disabled),G=L.find(ne=>ne.ref.current===document.activeElement),Z=Hs(L,N,G);Z&&setTimeout(()=>Z.ref.current.focus())}),S=l.useCallback((N,L,G)=>{const Z=!q.current&&!G;(b.value!==void 0&&b.value===L||Z)&&(W(N),Z&&(q.current=!0))},[b.value]),T=l.useCallback(()=>w==null?void 0:w.focus(),[w]),M=l.useCallback((N,L,G)=>{const Z=!q.current&&!G;(b.value!==void 0&&b.value===L||Z)&&X(N)},[b.value]),O=n==="popper"?ln:_s,Y=O===ln?{side:i,sideOffset:c,align:u,alignOffset:f,arrowPadding:p,collisionBoundary:g,collisionPadding:h,sticky:v,hideWhenDetached:m,avoidCollisions:x}:{};return d.jsx(ks,{scope:r,content:w,viewport:k,onViewportChange:A,itemRefCallback:S,selectedItem:_,onItemLeave:T,itemTextRefCallback:M,focusSelectedItem:H,selectedItemText:K,position:n,isPositioned:ee,searchRef:E,children:d.jsx(Vt,{as:Bf,allowPinchZoom:!0,children:d.jsx(jt,{asChild:!0,trapped:b.open,onMountAutoFocus:N=>{N.preventDefault()},onUnmountAutoFocus:B(o,N=>{var L;(L=b.trigger)==null||L.focus({preventScroll:!0}),N.preventDefault()}),children:d.jsx(mt,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:a,onPointerDownOutside:s,onFocusOutside:N=>N.preventDefault(),onDismiss:()=>b.onOpenChange(!1),children:d.jsx(O,{role:"listbox",id:b.contentId,"data-state":b.open?"open":"closed",dir:b.dir,onContextMenu:N=>N.preventDefault(),...y,...Y,onPlaced:()=>z(!0),ref:R,style:{display:"flex",flexDirection:"column",outline:"none",...y.style},onKeyDown:B(y.onKeyDown,N=>{const L=N.ctrlKey||N.altKey||N.metaKey;if(N.key==="Tab"&&N.preventDefault(),!L&&N.key.length===1&&$(N.key),["ArrowUp","ArrowDown","Home","End"].includes(N.key)){let Z=Q().filter(ne=>!ne.disabled).map(ne=>ne.ref.current);if(["ArrowUp","End"].includes(N.key)&&(Z=Z.slice().reverse()),["ArrowUp","ArrowDown"].includes(N.key)){const ne=N.target,oe=Z.indexOf(ne);Z=Z.slice(oe+1)}setTimeout(()=>D(Z)),N.preventDefault()}})})})})})})});Rs.displayName=zf;var Wf="SelectItemAlignedPosition",_s=l.forwardRef((e,t)=>{const{__scopeSelect:r,onPlaced:n,...o}=e,a=Me(Ge,r),s=De(Ge,r),[i,c]=l.useState(null),[u,f]=l.useState(null),p=ae(t,R=>f(R)),g=ar(r),h=l.useRef(!1),v=l.useRef(!0),{viewport:m,selectedItem:x,selectedItemText:y,focusSelectedItem:b}=s,w=l.useCallback(()=>{if(a.trigger&&a.valueNode&&i&&u&&m&&x&&y){const R=a.trigger.getBoundingClientRect(),_=u.getBoundingClientRect(),W=a.valueNode.getBoundingClientRect(),K=y.getBoundingClientRect();if(a.dir!=="rtl"){const ne=K.left-_.left,oe=W.left-ne,pe=R.left-oe,Ee=R.width+pe,Rt=Math.max(Ee,_.width),_t=window.innerWidth-ve,Pt=gs(oe,[ve,Math.max(ve,_t-Rt)]);i.style.minWidth=Ee+"px",i.style.left=Pt+"px"}else{const ne=_.right-K.right,oe=window.innerWidth-W.right-ne,pe=window.innerWidth-R.right-oe,Ee=R.width+pe,Rt=Math.max(Ee,_.width),_t=window.innerWidth-ve,Pt=gs(oe,[ve,Math.max(ve,_t-Rt)]);i.style.minWidth=Ee+"px",i.style.right=Pt+"px"}const X=g(),Q=window.innerHeight-ve*2,ee=m.scrollHeight,z=window.getComputedStyle(u),q=parseInt(z.borderTopWidth,10),D=parseInt(z.paddingTop,10),H=parseInt(z.borderBottomWidth,10),P=parseInt(z.paddingBottom,10),re=q+D+ee+P+H,E=Math.min(x.offsetHeight*5,re),$=window.getComputedStyle(m),S=parseInt($.paddingTop,10),T=parseInt($.paddingBottom,10),M=R.top+R.height/2-ve,O=Q-M,Y=x.offsetHeight/2,N=x.offsetTop+Y,L=q+D+N,G=re-L;if(L<=M){const ne=X.length>0&&x===X[X.length-1].ref.current;i.style.bottom="0px";const oe=u.clientHeight-m.offsetTop-m.offsetHeight,pe=Math.max(O,Y+(ne?T:0)+oe+H),Ee=L+pe;i.style.height=Ee+"px"}else{const ne=X.length>0&&x===X[0].ref.current;i.style.top="0px";const pe=Math.max(M,q+m.offsetTop+(ne?S:0)+Y)+G;i.style.height=pe+"px",m.scrollTop=L-M+m.offsetTop}i.style.margin=`${ve}px 0`,i.style.minHeight=E+"px",i.style.maxHeight=Q+"px",n==null||n(),requestAnimationFrame(()=>h.current=!0)}},[g,a.trigger,a.valueNode,i,u,m,x,y,a.dir,n]);ie(()=>w(),[w]);const[C,k]=l.useState();ie(()=>{u&&k(window.getComputedStyle(u).zIndex)},[u]);const A=l.useCallback(R=>{R&&v.current===!0&&(w(),b==null||b(),v.current=!1)},[w,b]);return d.jsx(Gf,{scope:r,contentWrapper:i,shouldExpandOnScrollRef:h,onScrollButtonChange:A,children:d.jsx("div",{ref:c,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:C},children:d.jsx(V.div,{...o,ref:p,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});_s.displayName=Wf;var Hf="SelectPopperPosition",ln=l.forwardRef((e,t)=>{const{__scopeSelect:r,align:n="start",collisionPadding:o=ve,...a}=e,s=sr(r);return d.jsx(en,{...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)"}})});ln.displayName=Hf;var[Gf,cn]=st(Ge,{}),un="SelectViewport",Ps=l.forwardRef((e,t)=>{const{__scopeSelect:r,nonce:n,...o}=e,a=De(un,r),s=cn(un,r),i=ae(t,a.onViewportChange),c=l.useRef(0);return d.jsxs(d.Fragment,{children:[d.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:n}),d.jsx(or.Slot,{scope:r,children:d.jsx(V.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:i,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:B(o.onScroll,u=>{const f=u.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-ve*2,m=parseFloat(p.style.minHeight),x=parseFloat(p.style.height),y=Math.max(m,x);if(y<v){const b=y+h,w=Math.min(v,b),C=b-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})})})]})});Ps.displayName=un;var Ns="SelectGroup",[Uf,Kf]=st(Ns),As=l.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,o=le();return d.jsx(Uf,{scope:r,id:o,children:d.jsx(V.div,{role:"group","aria-labelledby":o,...n,ref:t})})});As.displayName=Ns;var Ts="SelectLabel",Os=l.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,o=Kf(Ts,r);return d.jsx(V.div,{id:o.id,...n,ref:t})});Os.displayName=Ts;var ir="SelectItem",[Yf,Is]=st(ir),js=l.forwardRef((e,t)=>{const{__scopeSelect:r,value:n,disabled:o=!1,textValue:a,...s}=e,i=Me(ir,r),c=De(ir,r),u=i.value===n,[f,p]=l.useState(a??""),[g,h]=l.useState(!1),v=ae(t,b=>{var w;return(w=c.itemRefCallback)==null?void 0:w.call(c,b,n,o)}),m=le(),x=l.useRef("touch"),y=()=>{o||(i.onValueChange(n),i.onOpenChange(!1))};if(n==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return d.jsx(Yf,{scope:r,value:n,disabled:o,textId:m,isSelected:u,onItemTextChange:l.useCallback(b=>{p(w=>w||((b==null?void 0:b.textContent)??"").trim())},[]),children:d.jsx(or.ItemSlot,{scope:r,value:n,disabled:o,textValue:f,children:d.jsx(V.div,{role:"option","aria-labelledby":m,"data-highlighted":g?"":void 0,"aria-selected":u&&g,"data-state":u?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...s,ref:v,onFocus:B(s.onFocus,()=>h(!0)),onBlur:B(s.onBlur,()=>h(!1)),onClick:B(s.onClick,()=>{x.current!=="mouse"&&y()}),onPointerUp:B(s.onPointerUp,()=>{x.current==="mouse"&&y()}),onPointerDown:B(s.onPointerDown,b=>{x.current=b.pointerType}),onPointerMove:B(s.onPointerMove,b=>{var w;x.current=b.pointerType,o?(w=c.onItemLeave)==null||w.call(c):x.current==="mouse"&&b.currentTarget.focus({preventScroll:!0})}),onPointerLeave:B(s.onPointerLeave,b=>{var w;b.currentTarget===document.activeElement&&((w=c.onItemLeave)==null||w.call(c))}),onKeyDown:B(s.onKeyDown,b=>{var C;((C=c.searchRef)==null?void 0:C.current)!==""&&b.key===" "||(jf.includes(b.key)&&y(),b.key===" "&&b.preventDefault())})})})})});js.displayName=ir;var wt="SelectItemText",Ms=l.forwardRef((e,t)=>{const{__scopeSelect:r,className:n,style:o,...a}=e,s=Me(wt,r),i=De(wt,r),c=Is(wt,r),u=Ff(wt,r),[f,p]=l.useState(null),g=ae(t,y=>p(y),c.onItemTextChange,y=>{var b;return(b=i.itemTextRefCallback)==null?void 0:b.call(i,y,c.value,c.disabled)}),h=f==null?void 0:f.textContent,v=l.useMemo(()=>d.jsx("option",{value:c.value,disabled:c.disabled,children:h},c.value),[c.disabled,c.value,h]),{onNativeOptionAdd:m,onNativeOptionRemove:x}=u;return ie(()=>(m(v),()=>x(v)),[m,x,v]),d.jsxs(d.Fragment,{children:[d.jsx(V.span,{id:c.textId,...a,ref:g}),c.isSelected&&s.valueNode&&!s.valueNodeHasChildren?Nt.createPortal(a.children,s.valueNode):null]})});Ms.displayName=wt;var Ds="SelectItemIndicator",Ls=l.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e;return Is(Ds,r).isSelected?d.jsx(V.span,{"aria-hidden":!0,...n,ref:t}):null});Ls.displayName=Ds;var dn="SelectScrollUpButton",Fs=l.forwardRef((e,t)=>{const r=De(dn,e.__scopeSelect),n=cn(dn,e.__scopeSelect),[o,a]=l.useState(!1),s=ae(t,n.onScrollButtonChange);return ie(()=>{if(r.viewport&&r.isPositioned){let i=function(){const u=c.scrollTop>0;a(u)};const c=r.viewport;return i(),c.addEventListener("scroll",i),()=>c.removeEventListener("scroll",i)}},[r.viewport,r.isPositioned]),o?d.jsx(Vs,{...e,ref:s,onAutoScroll:()=>{const{viewport:i,selectedItem:c}=r;i&&c&&(i.scrollTop=i.scrollTop-c.offsetHeight)}}):null});Fs.displayName=dn;var fn="SelectScrollDownButton",$s=l.forwardRef((e,t)=>{const r=De(fn,e.__scopeSelect),n=cn(fn,e.__scopeSelect),[o,a]=l.useState(!1),s=ae(t,n.onScrollButtonChange);return ie(()=>{if(r.viewport&&r.isPositioned){let i=function(){const u=c.scrollHeight-c.clientHeight,f=Math.ceil(c.scrollTop)<u;a(f)};const c=r.viewport;return i(),c.addEventListener("scroll",i),()=>c.removeEventListener("scroll",i)}},[r.viewport,r.isPositioned]),o?d.jsx(Vs,{...e,ref:s,onAutoScroll:()=>{const{viewport:i,selectedItem:c}=r;i&&c&&(i.scrollTop=i.scrollTop+c.offsetHeight)}}):null});$s.displayName=fn;var Vs=l.forwardRef((e,t)=>{const{__scopeSelect:r,onAutoScroll:n,...o}=e,a=De("SelectScrollButton",r),s=l.useRef(null),i=ar(r),c=l.useCallback(()=>{s.current!==null&&(window.clearInterval(s.current),s.current=null)},[]);return l.useEffect(()=>()=>c(),[c]),ie(()=>{var f;const u=i().find(p=>p.ref.current===document.activeElement);(f=u==null?void 0:u.ref.current)==null||f.scrollIntoView({block:"nearest"})},[i]),d.jsx(V.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 u;(u=a.onItemLeave)==null||u.call(a),s.current===null&&(s.current=window.setInterval(n,50))}),onPointerLeave:B(o.onPointerLeave,()=>{c()})})}),qf="SelectSeparator",Xf=l.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e;return d.jsx(V.div,{"aria-hidden":!0,...n,ref:t})});Xf.displayName=qf;var pn="SelectArrow",Zf=l.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,o=sr(r),a=Me(pn,r),s=De(pn,r);return a.open&&s.position==="popper"?d.jsx(tn,{...o,...n,ref:t}):null});Zf.displayName=pn;var Jf="SelectBubbleInput",zs=l.forwardRef(({__scopeSelect:e,value:t,...r},n)=>{const o=l.useRef(null),a=ae(n,o),s=fo(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]),d.jsx(V.select,{...r,style:{...os,...r.style},ref:a,defaultValue:t})});zs.displayName=Jf;function Bs(e){return e===""||e===void 0}function Ws(e){const t=Re(e),r=l.useRef(""),n=l.useRef(0),o=l.useCallback(s=>{const i=r.current+s;t(i),function c(u){r.current=u,window.clearTimeout(n.current),u!==""&&(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 Hs(e,t,r){const o=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,a=r?e.indexOf(r):-1;let s=Qf(e,Math.max(a,0));o.length===1&&(s=s.filter(u=>u!==r));const c=s.find(u=>u.textValue.toLowerCase().startsWith(o.toLowerCase()));return c!==r?c:void 0}function Qf(e,t){return e.map((r,n)=>e[(t+n)%e.length])}var ep=vs,tp=bs,rp=ws,np=Ss,op=Cs,ap=Es,sp=Ps,ip=As,lp=Os,cp=js,up=Ms,dp=Ls,fp=Fs,pp=$s;function mp({...e}){return d.jsx(ep,{"data-slot":"select",...e})}function hp({...e}){return d.jsx(ip,{"data-slot":"select-group",...e})}function gp({...e}){return d.jsx(rp,{"data-slot":"select-value",...e})}function vp({className:e,size:t="default",children:r,...n}){return d.jsxs(tp,{"data-slot":"select-trigger","data-size":t,className:F("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,d.jsx(np,{asChild:!0,children:d.jsx(Fr,{className:"size-4 opacity-50"})})]})}function xp({className:e,children:t,position:r="popper",...n}){return d.jsx(op,{children:d.jsxs(ap,{"data-slot":"select-content",className:F("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:[d.jsx(yp,{}),d.jsx(sp,{className:F("p-1",r==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"),children:t}),d.jsx(wp,{})]})})}function bp({className:e,...t}){return d.jsx(lp,{"data-slot":"select-label",className:F("text-muted-foreground px-2 py-1.5 text-xs",e),...t})}function Gs({className:e,children:t,...r}){return d.jsxs(cp,{"data-slot":"select-item",className:F("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:[d.jsx("span",{className:"absolute right-2 flex size-3.5 items-center justify-center",children:d.jsx(dp,{children:d.jsx(yu,{className:"size-4"})})}),d.jsx(up,{children:t})]})}function yp({className:e,...t}){return d.jsx(fp,{"data-slot":"select-scroll-up-button",className:F("flex cursor-default items-center justify-center py-1",e),...t,children:d.jsx(wu,{className:"size-4"})})}function wp({className:e,...t}){return d.jsx(pp,{"data-slot":"select-scroll-down-button",className:F("flex cursor-default items-center justify-center py-1",e),...t,children:d.jsx(Fr,{className:"size-4"})})}var lr="Popover",[Us,mh]=xe(lr,[ot]),St=ot(),[Sp,Le]=Us(lr),Ks=e=>{const{__scopePopover:t,children:r,open:n,defaultOpen:o,onOpenChange:a,modal:s=!1}=e,i=St(t),c=l.useRef(null),[u,f]=l.useState(!1),[p,g]=Te({prop:n,defaultProp:o??!1,onChange:a,caller:lr});return d.jsx(Qr,{...i,children:d.jsx(Sp,{scope:t,contentId:le(),triggerRef:c,open:p,onOpenChange:g,onOpenToggle:l.useCallback(()=>g(h=>!h),[g]),hasCustomAnchor:u,onCustomAnchorAdd:l.useCallback(()=>f(!0),[]),onCustomAnchorRemove:l.useCallback(()=>f(!1),[]),modal:s,children:r})})};Ks.displayName=lr;var Ys="PopoverAnchor",Cp=l.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=Le(Ys,r),a=St(r),{onCustomAnchorAdd:s,onCustomAnchorRemove:i}=o;return l.useEffect(()=>(s(),()=>i()),[s,i]),d.jsx(tr,{...a,...n,ref:t})});Cp.displayName=Ys;var qs="PopoverTrigger",Xs=l.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=Le(qs,r),a=St(r),s=ae(t,o.triggerRef),i=d.jsx(V.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":ti(o.open),...n,ref:s,onClick:B(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?i:d.jsx(tr,{asChild:!0,...a,children:i})});Xs.displayName=qs;var mn="PopoverPortal",[Ep,kp]=Us(mn,{forceMount:void 0}),Zs=e=>{const{__scopePopover:t,forceMount:r,children:n,container:o}=e,a=Le(mn,t);return d.jsx(Ep,{scope:t,forceMount:r,children:d.jsx(_e,{present:r||a.open,children:d.jsx(ht,{asChild:!0,container:o,children:n})})})};Zs.displayName=mn;var it="PopoverContent",Js=l.forwardRef((e,t)=>{const r=kp(it,e.__scopePopover),{forceMount:n=r.forceMount,...o}=e,a=Le(it,e.__scopePopover);return d.jsx(_e,{present:n||a.open,children:a.modal?d.jsx(_p,{...o,ref:t}):d.jsx(Pp,{...o,ref:t})})});Js.displayName=it;var Rp=Ve("PopoverContent.RemoveScroll"),_p=l.forwardRef((e,t)=>{const r=Le(it,e.__scopePopover),n=l.useRef(null),o=ae(t,n),a=l.useRef(!1);return l.useEffect(()=>{const s=n.current;if(s)return jr(s)},[]),d.jsx(Vt,{as:Rp,allowPinchZoom:!0,children:d.jsx(Qs,{...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,u=i.button===2||c;a.current=u},{checkForDefaultPrevented:!1}),onFocusOutside:B(e.onFocusOutside,s=>s.preventDefault(),{checkForDefaultPrevented:!1})})})}),Pp=l.forwardRef((e,t)=>{const r=Le(it,e.__scopePopover),n=l.useRef(!1),o=l.useRef(!1);return d.jsx(Qs,{...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,u;(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;((u=r.triggerRef.current)==null?void 0:u.contains(s))&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),Qs=l.forwardRef((e,t)=>{const{__scopePopover:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:a,disableOutsidePointerEvents:s,onEscapeKeyDown:i,onPointerDownOutside:c,onFocusOutside:u,onInteractOutside:f,...p}=e,g=Le(it,r),h=St(r);return Pr(),d.jsx(jt,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:a,children:d.jsx(mt,{asChild:!0,disableOutsidePointerEvents:s,onInteractOutside:f,onEscapeKeyDown:i,onPointerDownOutside:c,onFocusOutside:u,onDismiss:()=>g.onOpenChange(!1),children:d.jsx(en,{"data-state":ti(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)"}})})})}),ei="PopoverClose",Np=l.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=Le(ei,r);return d.jsx(V.button,{type:"button",...n,ref:t,onClick:B(e.onClick,()=>o.onOpenChange(!1))})});Np.displayName=ei;var Ap="PopoverArrow",Tp=l.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=St(r);return d.jsx(tn,{...o,...n,ref:t})});Tp.displayName=Ap;function ti(e){return e?"open":"closed"}var Op=Ks,Ip=Xs,jp=Zs,Mp=Js;function Dp({...e}){return d.jsx(Op,{"data-slot":"popover",...e})}function Lp({...e}){return d.jsx(Ip,{"data-slot":"popover-trigger",...e})}function Fp({className:e,align:t="center",sideOffset:r=4,...n}){return d.jsx(jp,{children:d.jsx(Mp,{"data-slot":"popover-content",align:t,sideOffset:r,className:F("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden",e),...n})})}var ri=1,$p=.9,Vp=.8,zp=.17,hn=.1,gn=.999,Bp=.9999,Wp=.99,Hp=/[\\\/_+.#"@\[\(\{&]/,Gp=/[\\\/_+.#"@\[\(\{&]/g,Up=/[\s-]/,ni=/[\s-]/g;function vn(e,t,r,n,o,a,s){if(a===t.length)return o===e.length?ri:Wp;var i=`${o},${a}`;if(s[i]!==void 0)return s[i];for(var c=n.charAt(a),u=r.indexOf(c,o),f=0,p,g,h,v;u>=0;)p=vn(e,t,r,n,u+1,a+1,s),p>f&&(u===o?p*=ri:Hp.test(e.charAt(u-1))?(p*=Vp,h=e.slice(o,u-1).match(Gp),h&&o>0&&(p*=Math.pow(gn,h.length))):Up.test(e.charAt(u-1))?(p*=$p,v=e.slice(o,u-1).match(ni),v&&o>0&&(p*=Math.pow(gn,v.length))):(p*=zp,o>0&&(p*=Math.pow(gn,u-o))),e.charAt(u)!==t.charAt(a)&&(p*=Bp)),(p<hn&&r.charAt(u-1)===n.charAt(a+1)||n.charAt(a+1)===n.charAt(a)&&r.charAt(u-1)!==n.charAt(a))&&(g=vn(e,t,r,n,u+1,a+2,s),g*hn>p&&(p=g*hn)),p>f&&(f=p),u=r.indexOf(c,u+1);return s[i]=f,f}function oi(e){return e.toLowerCase().replace(ni," ")}function Kp(e,t,r){return e=r&&r.length>0?`${e+" "+r.join(" ")}`:e,vn(e,t,oi(e),oi(t),0,0,{})}var Ct='[cmdk-group=""]',xn='[cmdk-group-items=""]',Yp='[cmdk-group-heading=""]',ai='[cmdk-item=""]',si=`${ai}:not([aria-disabled="true"])`,bn="cmdk-item-select",lt="data-value",qp=(e,t,r)=>Kp(e,t,r),ii=l.createContext(void 0),Et=()=>l.useContext(ii),li=l.createContext(void 0),yn=()=>l.useContext(li),ci=l.createContext(void 0),ui=l.forwardRef((e,t)=>{let r=ct(()=>{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=ct(()=>new Set),o=ct(()=>new Map),a=ct(()=>new Map),s=ct(()=>new Set),i=di(e),{label:c,children:u,value:f,onValueChange:p,filter:g,shouldFilter:h,loop:v,disablePointerSelection:m=!1,vimBindings:x=!0,...y}=e,b=le(),w=le(),C=le(),k=l.useRef(null),A=sm();Ue(()=>{if(f!==void 0){let S=f.trim();r.current.value=S,R.emit()}},[f]),Ue(()=>{A(6,ee)},[]);let R=l.useMemo(()=>({subscribe:S=>(s.current.add(S),()=>s.current.delete(S)),snapshot:()=>r.current,setState:(S,T,M)=>{var O,Y,N,L;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():(O=document.getElementById(b))==null||O.focus()}if(A(7,()=>{var G;r.current.selectedItemId=(G=z())==null?void 0:G.id,R.emit()}),M||A(5,ee),((Y=i.current)==null?void 0:Y.value)!==void 0){let G=T??"";(L=(N=i.current).onValueChange)==null||L.call(N,G);return}}R.emit()}},emit:()=>{s.current.forEach(S=>S())}}),[]),_=l.useMemo(()=>({value:(S,T,M)=>{var O;T!==((O=a.current.get(S))==null?void 0:O.value)&&(a.current.set(S,{value:T,keywords:M}),r.current.filtered.items.set(S,W(T,M)),A(2,()=>{K(),R.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(),R.emit()}),()=>{a.current.delete(S),n.current.delete(S),r.current.filtered.items.delete(S);let M=z();A(4,()=>{Q(),(M==null?void 0:M.getAttribute("id"))===S&&X(),R.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:b,inputId:C,labelId:w,listInnerRef:k}),[]);function W(S,T){var M,O;let Y=(O=(M=i.current)==null?void 0:M.filter)!=null?O:qp;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(O=>{let Y=o.current.get(O),N=0;Y.forEach(L=>{let G=S.get(L);N=Math.max(G,N)}),T.push([O,N])});let M=k.current;q().sort((O,Y)=>{var N,L;let G=O.getAttribute("id"),Z=Y.getAttribute("id");return((N=S.get(Z))!=null?N:0)-((L=S.get(G))!=null?L:0)}).forEach(O=>{let Y=O.closest(xn);Y?Y.appendChild(O.parentElement===Y?O:O.closest(`${xn} > *`)):M.appendChild(O.parentElement===M?O:O.closest(`${xn} > *`))}),T.sort((O,Y)=>Y[1]-O[1]).forEach(O=>{var Y;let N=(Y=k.current)==null?void 0:Y.querySelector(`${Ct}[${lt}="${encodeURIComponent(O[0])}"]`);N==null||N.parentElement.appendChild(N)})}function X(){let S=q().find(M=>M.getAttribute("aria-disabled")!=="true"),T=S==null?void 0:S.getAttribute(lt);R.setState("value",T||void 0)}function Q(){var S,T,M,O;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 N of n.current){let L=(T=(S=a.current.get(N))==null?void 0:S.value)!=null?T:"",G=(O=(M=a.current.get(N))==null?void 0:M.keywords)!=null?O:[],Z=W(L,G);r.current.filtered.items.set(N,Z),Z>0&&Y++}for(let[N,L]of o.current)for(let G of L)if(r.current.filtered.items.get(G)>0){r.current.filtered.groups.add(N);break}r.current.filtered.count=Y}function ee(){var S,T,M;let O=z();O&&(((S=O.parentElement)==null?void 0:S.firstChild)===O&&((M=(T=O.closest(Ct))==null?void 0:T.querySelector(Yp))==null||M.scrollIntoView({block:"nearest"})),O.scrollIntoView({block:"nearest"}))}function z(){var S;return(S=k.current)==null?void 0:S.querySelector(`${ai}[aria-selected="true"]`)}function q(){var S;return Array.from(((S=k.current)==null?void 0:S.querySelectorAll(si))||[])}function D(S){let T=q()[S];T&&R.setState("value",T.getAttribute(lt))}function H(S){var T;let M=z(),O=q(),Y=O.findIndex(L=>L===M),N=O[Y+S];(T=i.current)!=null&&T.loop&&(N=Y+S<0?O[O.length-1]:Y+S===O.length?O[0]:O[Y+S]),N&&R.setState("value",N.getAttribute(lt))}function P(S){let T=z(),M=T==null?void 0:T.closest(Ct),O;for(;M&&!O;)M=S>0?om(M,Ct):am(M,Ct),O=M==null?void 0:M.querySelector(si);O?R.setState("value",O.getAttribute(lt)):H(S)}let re=()=>D(q().length-1),E=S=>{S.preventDefault(),S.metaKey?re():S.altKey?P(1):H(1)},$=S=>{S.preventDefault(),S.metaKey?D(0):S.altKey?P(-1):H(-1)};return l.createElement(V.div,{ref:t,tabIndex:-1,...y,"cmdk-root":"",onKeyDown:S=>{var T;(T=y.onKeyDown)==null||T.call(y,S);let M=S.nativeEvent.isComposing||S.keyCode===229;if(!(S.defaultPrevented||M))switch(S.key){case"n":case"j":{x&&S.ctrlKey&&E(S);break}case"ArrowDown":{E(S);break}case"p":case"k":{x&&S.ctrlKey&&$(S);break}case"ArrowUp":{$(S);break}case"Home":{S.preventDefault(),D(0);break}case"End":{S.preventDefault(),re();break}case"Enter":{S.preventDefault();let O=z();if(O){let Y=new Event(bn);O.dispatchEvent(Y)}}}}},l.createElement("label",{"cmdk-label":"",htmlFor:_.inputId,id:_.labelId,style:lm},c),cr(e,S=>l.createElement(li.Provider,{value:R},l.createElement(ii.Provider,{value:_},S))))}),Xp=l.forwardRef((e,t)=>{var r,n;let o=le(),a=l.useRef(null),s=l.useContext(ci),i=Et(),c=di(e),u=(n=(r=c.current)==null?void 0:r.forceMount)!=null?n:s==null?void 0:s.forceMount;Ue(()=>{if(!u)return i.item(o,s==null?void 0:s.id)},[u]);let f=fi(o,a,[e.value,e.children,a],e.keywords),p=yn(),g=Fe(A=>A.value&&A.value===f.current),h=Fe(A=>u||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(bn,v),()=>A.removeEventListener(bn,v)},[h,e.onSelect,e.disabled]);function v(){var A,R;m(),(R=(A=c.current).onSelect)==null||R.call(A,f.current)}function m(){p.setState("value",f.current,!0)}if(!h)return null;let{disabled:x,value:y,onSelect:b,forceMount:w,keywords:C,...k}=e;return l.createElement(V.div,{ref:$e(a,t),...k,id:o,"cmdk-item":"",role:"option","aria-disabled":!!x,"aria-selected":!!g,"data-disabled":!!x,"data-selected":!!g,onPointerMove:x||i.getDisablePointerSelection()?void 0:m,onClick:x?void 0:v},e.children)}),Zp=l.forwardRef((e,t)=>{let{heading:r,children:n,forceMount:o,...a}=e,s=le(),i=l.useRef(null),c=l.useRef(null),u=le(),f=Et(),p=Fe(h=>o||f.filter()===!1?!0:h.search?h.filtered.groups.has(s):!0);Ue(()=>f.group(s),[]),fi(s,i,[e.value,e.heading,c]);let g=l.useMemo(()=>({id:s,forceMount:o}),[o]);return l.createElement(V.div,{ref:$e(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:u},r),cr(e,h=>l.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":r?u:void 0},l.createElement(ci.Provider,{value:g},h))))}),Jp=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:$e(o,t),...n,"cmdk-separator":"",role:"separator"})}),Qp=l.forwardRef((e,t)=>{let{onValueChange:r,...n}=e,o=e.value!=null,a=yn(),s=Fe(u=>u.search),i=Fe(u=>u.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:u=>{o||a.setState("search",u.target.value),r==null||r(u.target.value)}})}),em=l.forwardRef((e,t)=>{let{children:r,label:n="Suggestions",...o}=e,a=l.useRef(null),s=l.useRef(null),i=Fe(u=>u.selectedItemId),c=Et();return l.useEffect(()=>{if(s.current&&a.current){let u=s.current,f=a.current,p,g=new ResizeObserver(()=>{p=requestAnimationFrame(()=>{let h=u.offsetHeight;f.style.setProperty("--cmdk-list-height",h.toFixed(1)+"px")})});return g.observe(u),()=>{cancelAnimationFrame(p),g.unobserve(u)}}},[]),l.createElement(V.div,{ref:$e(a,t),...o,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":i,"aria-label":n,id:c.listId},cr(e,u=>l.createElement("div",{ref:$e(s,c.listInnerRef),"cmdk-list-sizer":""},u)))}),tm=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(ha,{container:s},l.createElement(ga,{"cmdk-overlay":"",className:o}),l.createElement(va,{"aria-label":e.label,"cmdk-dialog":"",className:a},l.createElement(ui,{ref:t,...i}))))}),rm=l.forwardRef((e,t)=>Fe(r=>r.filtered.count===0)?l.createElement(V.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null),nm=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},cr(e,s=>l.createElement("div",{"aria-hidden":!0},s)))}),kt=Object.assign(ui,{List:em,Item:Xp,Input:Qp,Group:Zp,Separator:Jp,Dialog:tm,Empty:rm,Loading:nm});function om(e,t){let r=e.nextElementSibling;for(;r;){if(r.matches(t))return r;r=r.nextElementSibling}}function am(e,t){let r=e.previousElementSibling;for(;r;){if(r.matches(t))return r;r=r.previousElementSibling}}function di(e){let t=l.useRef(e);return Ue(()=>{t.current=e}),t}var Ue=typeof window>"u"?l.useEffect:l.useLayoutEffect;function ct(e){let t=l.useRef();return t.current===void 0&&(t.current=e()),t}function Fe(e){let t=yn(),r=()=>e(t.snapshot());return l.useSyncExternalStore(t.subscribe,r,r)}function fi(e,t,r,n=[]){let o=l.useRef(),a=Et();return Ue(()=>{var s;let i=(()=>{var u;for(let f of r){if(typeof f=="string")return f.trim();if(typeof f=="object"&&"current"in f)return f.current?(u=f.current.textContent)==null?void 0:u.trim():o.current}})(),c=n.map(u=>u.trim());a.value(e,i,c),(s=t.current)==null||s.setAttribute(lt,i),o.current=i}),o}var sm=()=>{let[e,t]=l.useState(),r=ct(()=>new Map);return Ue(()=>{r.current.forEach(n=>n()),r.current=new Map},[e]),(n,o)=>{r.current.set(n,o),t({})}};function im(e){let t=e.type;return typeof t=="function"?t(e.props):"render"in t?t.render(e.props):e}function cr({asChild:e,children:t},r){return e&&l.isValidElement(t)?l.cloneElement(im(t),{ref:t.ref},r(t.props.children)):r(t)}var lm={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};function cm({className:e,...t}){return d.jsx(kt,{"data-slot":"command",className:F("bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",e),...t})}function um({className:e,...t}){return d.jsxs("div",{"data-slot":"command-input-wrapper",className:"flex h-9 items-center gap-2 border-b px-3",children:[d.jsx(wa,{className:"size-4 shrink-0 opacity-50"}),d.jsx(kt.Input,{"data-slot":"command-input",className:F("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 dm({...e}){return d.jsx(kt.Empty,{"data-slot":"command-empty",className:"py-6 text-center text-sm",...e})}function pi({className:e,...t}){return d.jsx(kt.Group,{"data-slot":"command-group",className:F("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 mi({className:e,...t}){return d.jsx(kt.Item,{"data-slot":"command-item",className:F("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 wn(e){return e.length>0&&e[0].kind==="group"}function fm(e){return e.multiple?d.jsx(gi,{...e}):d.jsx(hi,{...e})}const hi=({options:e,placeholder:t="Select...",disabled:r,error:n,helperText:o,value:a,onChange:s})=>{const[i,c]=te.useState(""),u=a??i,f=p=>{c(p),s==null||s(p)};return d.jsxs("div",{className:"w-94",children:[d.jsxs(mp,{value:u,onValueChange:f,disabled:r,children:[d.jsx(vp,{"aria-invalid":!!n,className:F("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:d.jsx(gp,{placeholder:t})}),d.jsx(xp,{className:"w-full bg-white border border-neutral-black-4",children:wn(e)?e.map(p=>d.jsxs(hp,{className:"p-2",children:[d.jsx(bp,{children:p.label}),p.options.map(g=>d.jsx(Gs,{value:g.value,disabled:g.disabled,children:g.label},g.value))]},p.label)):e.map(p=>d.jsx(Gs,{value:p.value,disabled:p.disabled,className:"hover:cursor-pointer hover:bg-neutral-black-5",children:p.label},p.value))})]}),n&&d.jsx("p",{className:"mt-1 text-xs text-primary-1",children:n}),o&&d.jsx("p",{className:"mt-1 text-xs text-neutral-black-3",children:o})]})},gi=({options:e,placeholder:t="Select...",disabled:r,error:n,helperText:o,value:a,onChange:s})=>{const[i,c]=te.useState(!1),[u,f]=te.useState([]),p=a??u,g=te.useMemo(()=>wn(e)?e.flatMap(v=>v.options):e,[e]),h=v=>{const m=p.includes(v)?p.filter(x=>x!==v):[...p,v];f(m),s==null||s(m)};return d.jsxs("div",{className:"w-94",children:[d.jsxs(Dp,{open:i,onOpenChange:c,children:[d.jsx(Lp,{asChild:!0,children:d.jsxs("button",{type:"button",disabled:r,"aria-haspopup":"listbox","aria-expanded":i,className:F("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:[d.jsx("div",{className:"flex flex-wrap gap-1",children:p.length>0?p.map(v=>d.jsxs($r,{type:"outline",onClick:m=>{m.stopPropagation(),h(v)},className:"cursor-pointer border-neutral-black-4 bg-transparent hover:bg-neutral-black-4",children:[d.jsx("span",{className:"text-neutral-black-1",children:v}),d.jsx("div",{className:"flex items-center justify-center rounded-full border border-neutral-black-2 h-5 w-5 ml-1",children:d.jsx(Ca,{className:"h-3 w-3 text-neutral-black-1",strokeWidth:2})})]},v)):d.jsx("span",{className:"truncate text-xs text-neutral-black-1",children:t})}),d.jsx(Fr,{className:"h-4 w-4 text-neutral-black-1"})]})}),d.jsx(Fp,{className:"p-0 w-full bg-white border border-neutral-black-4",children:d.jsxs(cm,{className:"w-full",children:[d.jsx(um,{placeholder:"Search..."}),d.jsx(dm,{children:"No results found."}),wn(e)?e.map(v=>d.jsx(pi,{heading:v.label,children:v.options.map(m=>d.jsxs(mi,{value:m.label,onSelect:()=>!m.disabled&&h(m.value),disabled:m.disabled,children:[d.jsx("input",{type:"checkbox",readOnly:!0,checked:p.includes(m.value),className:"mr-2"}),m.label]},m.value))},v.label)):d.jsx(pi,{children:g.map(v=>d.jsxs(mi,{value:v.label,onSelect:()=>!v.disabled&&h(v.value),disabled:v.disabled,children:[d.jsx("input",{type:"checkbox",readOnly:!0,checked:p.includes(v.value),className:"mr-2"}),v.label]},v.value))})]})})]}),n&&d.jsx("p",{className:"mt-1 text-xs text-primary-1",children:n}),o&&d.jsx("p",{className:"mt-1 text-xs text-neutral-black-3",children:o})]})},pm=ue("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 mm({className:e,variant:t,asChild:r=!1,children:n,...o}){const a=r?pr:"div";return d.jsx(a,{"data-slot":"card",className:F(pm({variant:t}),e),...o,children:n})}var Sn={exports:{}},Cn={};/**
162
162
  * @license React
163
163
  * use-sync-external-store-shim.production.js
164
164
  *
@@ -166,7 +166,7 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
166
166
  *
167
167
  * This source code is licensed under the MIT license found in the
168
168
  * LICENSE file in the root directory of this source tree.
169
- */var vi;function hm(){if(vi)return Sn;vi=1;var e=te;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,x=v[1];return a(function(){m.value=h,m.getSnapshot=g,c(m)&&x({inst:m})},[p,h,g]),o(function(){return c(m)&&x({inst:m}),p(function(){c(m)&&x({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 u(p,g){return g()}var f=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?u:i;return Sn.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:f,Sn}var Cn={};/**
169
+ */var vi;function hm(){if(vi)return Cn;vi=1;var e=te;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,x=v[1];return a(function(){m.value=h,m.getSnapshot=g,c(m)&&x({inst:m})},[p,h,g]),o(function(){return c(m)&&x({inst:m}),p(function(){c(m)&&x({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 u(p,g){return g()}var f=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?u:i;return Cn.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:f,Cn}var En={};/**
170
170
  * @license React
171
171
  * use-sync-external-store-shim.development.js
172
172
  *
@@ -174,4 +174,4 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
174
174
  *
175
175
  * This source code is licensed under the MIT license found in the
176
176
  * LICENSE file in the root directory of this source tree.
177
- */var xi;function gm(){return xi||(xi=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 x=v();a(m,x)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),p=!0)}x=s({inst:{value:m,getSnapshot:v}});var y=x[0].inst,b=x[1];return c(function(){y.value=m,y.getSnapshot=v,r(y)&&b({inst:y})},[h,m,v]),i(function(){return r(y)&&b({inst:y}),h(function(){r(y)&&b({inst:y})})},[h]),u(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=te,a=typeof Object.is=="function"?Object.is:e,s=o.useState,i=o.useEffect,c=o.useLayoutEffect,u=o.useDebugValue,f=!1,p=!1,g=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?n:t;Cn.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())}()),Cn}process.env.NODE_ENV==="production"?wn.exports=hm():wn.exports=gm();var vm=wn.exports;function xm(){return vm.useSyncExternalStore(bm,()=>!0,()=>!1)}function bm(){return()=>{}}var En="Avatar",[ym,mh]=xe(En),[wm,bi]=ym(En),yi=l.forwardRef((e,t)=>{const{__scopeAvatar:r,...n}=e,[o,a]=l.useState("idle");return d.jsx(wm,{scope:r,imageLoadingStatus:o,onImageLoadingStatusChange:a,children:d.jsx(V.span,{...n,ref:t})})});yi.displayName=En;var wi="AvatarImage",Si=l.forwardRef((e,t)=>{const{__scopeAvatar:r,src:n,onLoadingStatusChange:o=()=>{},...a}=e,s=bi(wi,r),i=Sm(n,a),c=Re(u=>{o(u),s.onImageLoadingStatusChange(u)});return ie(()=>{i!=="idle"&&c(i)},[i,c]),i==="loaded"?d.jsx(V.img,{...a,ref:t,src:n}):null});Si.displayName=wi;var Ci="AvatarFallback",Ei=l.forwardRef((e,t)=>{const{__scopeAvatar:r,delayMs:n,...o}=e,a=bi(Ci,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"?d.jsx(V.span,{...o,ref:t}):null});Ei.displayName=Ci;function ki(e,t){return e?t?(e.src!==t&&(e.src=t),e.complete&&e.naturalWidth>0?"loaded":"loading"):"error":"idle"}function Sm(e,{referrerPolicy:t,crossOrigin:r}){const n=xm(),o=l.useRef(null),a=n?(o.current||(o.current=new window.Image),o.current):null,[s,i]=l.useState(()=>ki(a,e));return ie(()=>{i(ki(a,e))},[a,e]),ie(()=>{const c=p=>()=>{i(p)};if(!a)return;const u=c("loaded"),f=c("error");return a.addEventListener("load",u),a.addEventListener("error",f),t&&(a.referrerPolicy=t),typeof r=="string"&&(a.crossOrigin=r),()=>{a.removeEventListener("load",u),a.removeEventListener("error",f)}},[a,r,t]),s}var Cm=yi,Ri=Si,ur=Ei;const Em=ue("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}}),km=ue("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"}}),Rm=ue("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"}}),_m=ue("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 Pm(e){const{type:t,size:r="md",status:n="Neutral",notification:o,CTAIndicator:a=!1,progress:s=!1,className:i,...c}=e;return d.jsxs(Cm,{className:F(Em({size:r,progress:s}),i),...c,children:[t==="picture"&&d.jsxs(d.Fragment,{children:[d.jsx(Ri,{src:e.src,alt:"avatar",className:"w-full h-full object-cover rounded-full"}),d.jsx(ur,{children:d.jsx(wa,{className:"text-black",size:r==="sm"?16:r==="md"?20:r==="lg"?24:r==="xl"?28:32})})]}),t==="initials"&&d.jsx(ur,{className:"uppercase",children:e.initials}),t==="placeholder"&&d.jsx(ur,{children:d.jsx(wa,{"data-testid":"avatar-placeholder",className:"text-black",size:r==="sm"?16:r==="md"?20:r==="lg"?24:r==="xl"?28:32})}),n!=="Neutral"&&d.jsx("span",{"data-testid":"avatar-status",className:km({status:n,size:r})}),o&&d.jsx("span",{"data-testid":"avatar-notification",className:Rm({size:r,priority:o.priority}),children:o.value}),a&&d.jsx("span",{"data-testid":"avatar-camera-icon",className:_m({size:r}),children:d.jsx(xu,{"data-testid":"avatar-camera",className:"text-[var(--color-neutral-black-1)]",size:12})})]})}function Am({className:e,...t}){return d.jsx(Ri,{className:F("aspect-square h-full w-full",e),...t})}function Nm({className:e,...t}){return d.jsx(ur,{className:F("flex h-full w-full items-center justify-center rounded-full bg-muted",e),...t})}var Tm="Separator",_i="horizontal",Om=["horizontal","vertical"],Pi=l.forwardRef((e,t)=>{const{decorative:r,orientation:n=_i,...o}=e,a=Im(n)?n:_i,i=r?{role:"none"}:{"aria-orientation":a==="vertical"?a:void 0,role:"separator"};return d.jsx(V.div,{"data-orientation":a,...i,...o,ref:t})});Pi.displayName=Tm;function Im(e){return Om.includes(e)}var jm=Pi;function Mm({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 d.jsx(jm,{"data-slot":"separator",role:"separator",decorative:r,orientation:t,className:F("bg-neutral-black-4 shrink-0",t==="horizontal"?"w-full":"h-full",a,e),...o})}const Dm=ue("flex flex-col gap-12"),Lm=ue("",{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}}),Fm=ue("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}}),$m=(e,t)=>e&&!t;function Vm({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 d.jsx("div",{className:F(Dm(),r),"data-testid":"timeline",children:d.jsx("div",{className:"flex flex-col",children:o.map((a,s)=>{const i=s===o.length-1,c=!!(a.description||a.content),u=$m(i,c),f=a.notVisited||!1,p=o[s+1],g=(p==null?void 0:p.notVisited)||!1,h=t==="icon"&&g;return d.jsxs("div",{className:"flex flex-col","data-testid":"timeline-item",children:[d.jsxs("div",{className:"flex items-center gap-4 min-h-[35px]",children:[d.jsx("div",{"data-testid":"timeline-dot",className:F(Lm({variant:t,visited:!f})),children:t==="icon"&&a.icon&&d.jsx("div",{className:"flex items-center justify-center w-full h-full",children:a.icon})}),d.jsx("p",{className:F("text-neutral-black-1",f&&"text-neutral-black-4"),children:a.title})]}),d.jsx("div",{"data-testid":"timeline-connector",className:F(Fm({hideConnector:u,variant:t,visited:!h})),children:(a.description||a.content)&&d.jsxs("div",{className:"flex flex-col gap-2 py-2",children:[a.description&&d.jsx("p",{className:F("text-[var(--color-neutral-black-1)] text-sm",f&&"text-neutral-black-4"),children:a.description}),a.content&&d.jsx("div",{className:"min-h-[35px]",children:a.content})]})})]},a.id)})})})}const zm=({variant:e="icon",width:t,height:r,iconSize:n=40,className:o,...a})=>{const s=()=>{switch(e){case"image":return d.jsx(Ru,{size:n,"data-testid":"placeholder-image"});case"video":return d.jsx(Pu,{size:n,"data-testid":"placeholder-video"});case"pieChart":return d.jsx(bu,{size:n,"data-testid":"placeholder-pieChart"});case"icon":default:return d.jsx(_u,{size:n,"data-testid":"placeholder-smile"})}};return d.jsx("div",{"data-testid":"placeholder-wrapper",className:F("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()})},Bm=e=>e===void 0||isNaN(e)?0:Math.min(100,Math.max(0,e)),Ai=l.forwardRef(({variant:e="linear",value:t=0,color:r="var(--color-primary-1)",className:n,...o},a)=>{const s=Bm(t);if(e==="circular"){const{size:i=80,thickness:c=8}=o,u=(i-c)/2,f=2*Math.PI*u,p=f-s/100*f;return d.jsx("div",{ref:a,role:"progressbar","aria-valuenow":s,"aria-valuemin":0,"aria-valuemax":100,className:F("flex flex-col items-center justify-center",n),...o,children:d.jsxs("svg",{width:i,height:i,className:"rotate-[-90deg]",children:[d.jsx("circle",{cx:i/2,cy:i/2,r:u,stroke:"var(--color-neutral-black-5)",strokeWidth:c,fill:"transparent"}),d.jsx("circle",{cx:i/2,cy:i/2,r:u,stroke:r,strokeWidth:c,fill:"transparent",strokeDasharray:f,strokeDashoffset:p,className:"transition-all duration-700"})]})})}return d.jsx("div",{ref:a,role:"progressbar","aria-valuenow":s,"aria-valuemin":0,"aria-valuemax":100,className:F("w-full h-2 bg-[var(--color-neutral-black-5)] overflow-hidden",n),...o,children:d.jsx("div",{className:"h-full transition-all duration-300",style:{width:`${s}%`,backgroundColor:r}})})});Ai.displayName="ProgressIndicator",U.Avatar=Pm,U.AvatarFallback=Nm,U.AvatarImage=Am,U.Badge=ka,U.Button=vl,U.Card=mm,U.Dialog=Au,U.DialogClose=Tu,U.DialogContent=Ou,U.DialogDescription=Du,U.DialogFooter=ju,U.DialogHeader=Iu,U.DialogOverlay=Ea,U.DialogPortal=Ca,U.DialogTitle=Mu,U.DialogTrigger=Nu,U.Divider=Mm,U.EmailInput=Nf,U.MultiSelect=gi,U.PasswordInput=Tf,U.Placeholder=zm,U.ProgressIndicator=Ai,U.RadioGroup=Ro,U.RadioGroupItem=_o,U.SearchInput=Of,U.SelectOption=fm,U.SingleSelect=hi,U.StatefulToggle=to,U.Timeline=Vm,U.Toggle=eo,U.Tooltip=Rf,U.TooltipContent=Pf,U.TooltipProvider=hs,U.TooltipTrigger=_f,U.cn=F,Object.defineProperty(U,Symbol.toStringTag,{value:"Module"})});
177
+ */var xi;function gm(){return xi||(xi=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 x=v();a(m,x)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),p=!0)}x=s({inst:{value:m,getSnapshot:v}});var y=x[0].inst,b=x[1];return c(function(){y.value=m,y.getSnapshot=v,r(y)&&b({inst:y})},[h,m,v]),i(function(){return r(y)&&b({inst:y}),h(function(){r(y)&&b({inst:y})})},[h]),u(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=te,a=typeof Object.is=="function"?Object.is:e,s=o.useState,i=o.useEffect,c=o.useLayoutEffect,u=o.useDebugValue,f=!1,p=!1,g=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?n:t;En.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())}()),En}process.env.NODE_ENV==="production"?Sn.exports=hm():Sn.exports=gm();var vm=Sn.exports;function xm(){return vm.useSyncExternalStore(bm,()=>!0,()=>!1)}function bm(){return()=>{}}var kn="Avatar",[ym,hh]=xe(kn),[wm,bi]=ym(kn),yi=l.forwardRef((e,t)=>{const{__scopeAvatar:r,...n}=e,[o,a]=l.useState("idle");return d.jsx(wm,{scope:r,imageLoadingStatus:o,onImageLoadingStatusChange:a,children:d.jsx(V.span,{...n,ref:t})})});yi.displayName=kn;var wi="AvatarImage",Si=l.forwardRef((e,t)=>{const{__scopeAvatar:r,src:n,onLoadingStatusChange:o=()=>{},...a}=e,s=bi(wi,r),i=Sm(n,a),c=Re(u=>{o(u),s.onImageLoadingStatusChange(u)});return ie(()=>{i!=="idle"&&c(i)},[i,c]),i==="loaded"?d.jsx(V.img,{...a,ref:t,src:n}):null});Si.displayName=wi;var Ci="AvatarFallback",Ei=l.forwardRef((e,t)=>{const{__scopeAvatar:r,delayMs:n,...o}=e,a=bi(Ci,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"?d.jsx(V.span,{...o,ref:t}):null});Ei.displayName=Ci;function ki(e,t){return e?t?(e.src!==t&&(e.src=t),e.complete&&e.naturalWidth>0?"loaded":"loading"):"error":"idle"}function Sm(e,{referrerPolicy:t,crossOrigin:r}){const n=xm(),o=l.useRef(null),a=n?(o.current||(o.current=new window.Image),o.current):null,[s,i]=l.useState(()=>ki(a,e));return ie(()=>{i(ki(a,e))},[a,e]),ie(()=>{const c=p=>()=>{i(p)};if(!a)return;const u=c("loaded"),f=c("error");return a.addEventListener("load",u),a.addEventListener("error",f),t&&(a.referrerPolicy=t),typeof r=="string"&&(a.crossOrigin=r),()=>{a.removeEventListener("load",u),a.removeEventListener("error",f)}},[a,r,t]),s}var Cm=yi,Ri=Si,ur=Ei;const Em=ue("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}}),km=ue("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"}}),Rm=ue("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"}}),_m=ue("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 Pm(e){const{type:t,size:r="md",status:n="Neutral",notification:o,CTAIndicator:a=!1,progress:s=!1,className:i,...c}=e;return d.jsxs(Cm,{className:F(Em({size:r,progress:s}),i),...c,children:[t==="picture"&&d.jsxs(d.Fragment,{children:[d.jsx(Ri,{src:e.src,alt:"avatar",className:"w-full h-full object-cover rounded-full"}),d.jsx(ur,{children:d.jsx(Sa,{className:"text-black",size:r==="sm"?16:r==="md"?20:r==="lg"?24:r==="xl"?28:32})})]}),t==="initials"&&d.jsx(ur,{className:"uppercase",children:e.initials}),t==="placeholder"&&d.jsx(ur,{children:d.jsx(Sa,{"data-testid":"avatar-placeholder",className:"text-black",size:r==="sm"?16:r==="md"?20:r==="lg"?24:r==="xl"?28:32})}),n!=="Neutral"&&d.jsx("span",{"data-testid":"avatar-status",className:km({status:n,size:r})}),o&&d.jsx("span",{"data-testid":"avatar-notification",className:Rm({size:r,priority:o.priority}),children:o.value}),a&&d.jsx("span",{"data-testid":"avatar-camera-icon",className:_m({size:r}),children:d.jsx(xu,{"data-testid":"avatar-camera",className:"text-[var(--color-neutral-black-1)]",size:12})})]})}function Nm({className:e,...t}){return d.jsx(Ri,{className:F("aspect-square h-full w-full",e),...t})}function Am({className:e,...t}){return d.jsx(ur,{className:F("flex h-full w-full items-center justify-center rounded-full bg-muted",e),...t})}var Tm="Separator",_i="horizontal",Om=["horizontal","vertical"],Pi=l.forwardRef((e,t)=>{const{decorative:r,orientation:n=_i,...o}=e,a=Im(n)?n:_i,i=r?{role:"none"}:{"aria-orientation":a==="vertical"?a:void 0,role:"separator"};return d.jsx(V.div,{"data-orientation":a,...i,...o,ref:t})});Pi.displayName=Tm;function Im(e){return Om.includes(e)}var jm=Pi;function Mm({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 d.jsx(jm,{"data-slot":"separator",role:"separator",decorative:r,orientation:t,className:F("bg-neutral-black-4 shrink-0",t==="horizontal"?"w-full":"h-full",a,e),...o})}const Dm=ue("flex flex-col gap-12"),Lm=ue("",{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}}),Fm=ue("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}}),$m=(e,t)=>e&&!t;function Vm({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 d.jsx("div",{className:F(Dm(),r),"data-testid":"timeline",children:d.jsx("div",{className:"flex flex-col",children:o.map((a,s)=>{const i=s===o.length-1,c=!!(a.description||a.content),u=$m(i,c),f=a.notVisited||!1,p=o[s+1],g=(p==null?void 0:p.notVisited)||!1,h=t==="icon"&&g;return d.jsxs("div",{className:"flex flex-col","data-testid":"timeline-item",children:[d.jsxs("div",{className:"flex items-center gap-4 min-h-[35px]",children:[d.jsx("div",{"data-testid":"timeline-dot",className:F(Lm({variant:t,visited:!f})),children:t==="icon"&&a.icon&&d.jsx("div",{className:"flex items-center justify-center w-full h-full",children:a.icon})}),d.jsx("p",{className:F("text-neutral-black-1",f&&"text-neutral-black-4"),children:a.title})]}),d.jsx("div",{"data-testid":"timeline-connector",className:F(Fm({hideConnector:u,variant:t,visited:!h})),children:(a.description||a.content)&&d.jsxs("div",{className:"flex flex-col gap-2 py-2",children:[a.description&&d.jsx("p",{className:F("text-[var(--color-neutral-black-1)] text-sm",f&&"text-neutral-black-4"),children:a.description}),a.content&&d.jsx("div",{className:"min-h-[35px]",children:a.content})]})})]},a.id)})})})}const zm=({variant:e="icon",width:t,height:r,iconSize:n=40,className:o,...a})=>{const s=()=>{switch(e){case"image":return d.jsx(Ru,{size:n,"data-testid":"placeholder-image"});case"video":return d.jsx(Pu,{size:n,"data-testid":"placeholder-video"});case"pieChart":return d.jsx(bu,{size:n,"data-testid":"placeholder-pieChart"});case"icon":default:return d.jsx(_u,{size:n,"data-testid":"placeholder-smile"})}};return d.jsx("div",{"data-testid":"placeholder-wrapper",className:F("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()})},Bm=e=>e===void 0||isNaN(e)?0:Math.min(100,Math.max(0,e)),Ni=l.forwardRef(({variant:e="linear",value:t=0,color:r="var(--color-primary-1)",className:n,...o},a)=>{const s=Bm(t);if(e==="circular"){const{size:i=80,thickness:c=8}=o,u=(i-c)/2,f=2*Math.PI*u,p=f-s/100*f;return d.jsx("div",{ref:a,role:"progressbar","aria-valuenow":s,"aria-valuemin":0,"aria-valuemax":100,className:F("flex flex-col items-center justify-center",n),...o,children:d.jsxs("svg",{width:i,height:i,className:"rotate-[-90deg]",children:[d.jsx("circle",{cx:i/2,cy:i/2,r:u,stroke:"var(--color-neutral-black-5)",strokeWidth:c,fill:"transparent"}),d.jsx("circle",{cx:i/2,cy:i/2,r:u,stroke:r,strokeWidth:c,fill:"transparent",strokeDasharray:f,strokeDashoffset:p,className:"transition-all duration-700"})]})})}return d.jsx("div",{ref:a,role:"progressbar","aria-valuenow":s,"aria-valuemin":0,"aria-valuemax":100,className:F("w-full h-2 bg-[var(--color-neutral-black-5)] overflow-hidden",n),...o,children:d.jsx("div",{className:"h-full transition-all duration-300",style:{width:`${s}%`,backgroundColor:r}})})});Ni.displayName="ProgressIndicator";function Wm({className:e,...t}){return d.jsx("div",{"data-slot":"skeleton",className:F("bg-neutral-black-5 animate-pulse rounded-sm",e),...t})}U.Avatar=Pm,U.AvatarFallback=Am,U.AvatarImage=Nm,U.Badge=$r,U.Button=vl,U.Card=mm,U.Dialog=Nu,U.DialogClose=Tu,U.DialogContent=Ou,U.DialogDescription=Du,U.DialogFooter=ju,U.DialogHeader=Iu,U.DialogOverlay=ka,U.DialogPortal=Ea,U.DialogTitle=Mu,U.DialogTrigger=Au,U.Divider=Mm,U.EmailInput=Af,U.MultiSelect=gi,U.PasswordInput=Tf,U.Placeholder=zm,U.ProgressIndicator=Ni,U.RadioGroup=_o,U.RadioGroupItem=Po,U.SearchInput=Of,U.SelectOption=fm,U.SingleSelect=hi,U.Skeleton=Wm,U.StatefulToggle=ro,U.Timeline=Vm,U.Toggle=to,U.Tooltip=Rf,U.TooltipContent=Pf,U.TooltipProvider=hs,U.TooltipTrigger=_f,U.cn=F,Object.defineProperty(U,Symbol.toStringTag,{value:"Module"})});