@datawire-ai/busyfile-design-library 1.15.0 → 1.16.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.
- package/dist/index.js +244 -165
- package/dist/index.umd.cjs +27 -27
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.umd.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(G,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):(G=typeof globalThis<"u"?globalThis:G||self,te(G.BusyFileDesignSystem={},G.React,G.ReactDOM))})(this,function(G,te,br){"use strict";function yr(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const l=yr(te),At=yr(br);var dn={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 wr;function
|
|
9
|
+
*/var wr;function Qs(){if(wr)return ut;wr=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,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:r,key:s,ref:o!==void 0?o:null,props:a}}return ut.Fragment=t,ut.jsx=n,ut.jsxs=n,ut}var dt={};/**
|
|
10
10
|
* @license React
|
|
11
11
|
* react-jsx-runtime.development.js
|
|
12
12
|
*
|
|
@@ -14,13 +14,13 @@
|
|
|
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 Sr;function
|
|
17
|
+
*/var Sr;function ei(){return Sr||(Sr=1,process.env.NODE_ENV!=="production"&&function(){function e(C){if(C==null)return null;if(typeof C=="function")return C.$$typeof===q?null:C.displayName||C.name||null;if(typeof C=="string")return C;switch(C){case m:return"Fragment";case y:return"Profiler";case x:return"StrictMode";case k:return"Suspense";case N:return"SuspenseList";case B:return"Activity"}if(typeof C=="object")switch(typeof C.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),C.$$typeof){case v:return"Portal";case w:return(C.displayName||"Context")+".Provider";case b:return(C._context.displayName||"Context")+".Consumer";case E:var L=C.render;return C=C.displayName,C||(C=L.displayName||L.name||"",C=C!==""?"ForwardRef("+C+")":"ForwardRef"),C;case P:return L=C.displayName||null,L!==null?L:e(C.type)||"Memo";case _:L=C._payload,C=C._init;try{return e(C(L))}catch{}}return null}function t(C){return""+C}function n(C){try{t(C);var L=!1}catch{L=!0}if(L){L=console;var S=L.error,T=typeof Symbol=="function"&&Symbol.toStringTag&&C[Symbol.toStringTag]||C.constructor.name||"Object";return S.call(L,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",T),t(C)}}function r(C){if(C===m)return"<>";if(typeof C=="object"&&C!==null&&C.$$typeof===_)return"<...>";try{var L=e(C);return L?"<"+L+">":"<...>"}catch{return"<...>"}}function o(){var C=Q.A;return C===null?null:C.getOwner()}function a(){return Error("react-stack-top-frame")}function s(C){if(J.call(C,"key")){var L=Object.getOwnPropertyDescriptor(C,"key").get;if(L&&L.isReactWarning)return!1}return C.key!==void 0}function i(C,L){function S(){X||(X=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",L))}S.isReactWarning=!0,Object.defineProperty(C,"key",{get:S,configurable:!0})}function c(){var C=e(this.type);return $[C]||($[C]=!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.")),C=this.props.ref,C!==void 0?C:null}function u(C,L,S,T,M,O,U,A){return S=O.ref,C={$$typeof:h,type:C,key:L,props:O,_owner:M},(S!==void 0?S:null)!==null?Object.defineProperty(C,"ref",{enumerable:!1,get:c}):Object.defineProperty(C,"ref",{enumerable:!1,value:null}),C._store={},Object.defineProperty(C._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(C,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(C,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:U}),Object.defineProperty(C,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:A}),Object.freeze&&(Object.freeze(C.props),Object.freeze(C)),C}function p(C,L,S,T,M,O,U,A){var D=L.children;if(D!==void 0)if(T)if(ee(D)){for(T=0;T<D.length;T++)f(D[T]);Object.freeze&&Object.freeze(D)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else f(D);if(J.call(L,"key")){D=e(C);var W=Object.keys(L).filter(function(re){return re!=="key"});T=0<W.length?"{key: someKey, "+W.join(": ..., ")+": ...}":"{key: someKey}",ne[D+T]||(W=0<W.length?"{"+W.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,D,W,D),ne[D+T]=!0)}if(D=null,S!==void 0&&(n(S),D=""+S),s(L)&&(n(L.key),D=""+L.key),"key"in L){S={};for(var G in L)G!=="key"&&(S[G]=L[G])}else S=L;return D&&i(S,typeof C=="function"?C.displayName||C.name||"Unknown":C),u(C,D,O,M,o(),S,U,A)}function f(C){typeof C=="object"&&C!==null&&C.$$typeof===h&&C._store&&(C._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"),E=Symbol.for("react.forward_ref"),k=Symbol.for("react.suspense"),N=Symbol.for("react.suspense_list"),P=Symbol.for("react.memo"),_=Symbol.for("react.lazy"),B=Symbol.for("react.activity"),q=Symbol.for("react.client.reference"),Q=g.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,J=Object.prototype.hasOwnProperty,ee=Array.isArray,V=console.createTask?console.createTask:function(){return null};g={"react-stack-bottom-frame":function(C){return C()}};var X,$={},z=g["react-stack-bottom-frame"].bind(g,a)(),R=V(r(a)),ne={};dt.Fragment=m,dt.jsx=function(C,L,S,T,M){var O=1e4>Q.recentlyCreatedOwnerStacks++;return p(C,L,S,!1,T,M,O?Error("react-stack-top-frame"):z,O?V(r(C)):R)},dt.jsxs=function(C,L,S,T,M){var O=1e4>Q.recentlyCreatedOwnerStacks++;return p(C,L,S,!0,T,M,O?Error("react-stack-top-frame"):z,O?V(r(C)):R)}}()),dt}process.env.NODE_ENV==="production"?dn.exports=Js():dn.exports=Qs();var d=dn.exports;function Cr(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Le(...e){return t=>{let n=!1;const r=e.map(o=>{const a=Cr(o,t);return!n&&typeof a=="function"&&(n=!0),a});if(n)return()=>{for(let o=0;o<r.length;o++){const a=r[o];typeof a=="function"?a():Cr(e[o],null)}}}}function ae(...e){return l.useCallback(Le(...e),e)}function $e(e){const t=ei(e),n=l.forwardRef((r,o)=>{const{children:a,...s}=r,i=l.Children.toArray(a),c=i.find(ni);if(c){const u=c.props.children,p=i.map(f=>f===c?l.Children.count(u)>1?l.Children.only(null):l.isValidElement(u)?u.props.children:null:f);return d.jsx(t,{...s,ref:o,children:l.isValidElement(u)?l.cloneElement(u,void 0,p):null})}return d.jsx(t,{...s,ref:o,children:a})});return n.displayName=`${e}.Slot`,n}var fn=$e("Slot");function ei(e){const t=l.forwardRef((n,r)=>{const{children:o,...a}=n;if(l.isValidElement(o)){const s=oi(o),i=ri(a,o.props);return o.type!==l.Fragment&&(i.ref=r?Le(r,s):s),l.cloneElement(o,i)}return l.Children.count(o)>1?l.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Er=Symbol("radix.slottable");function ti(e){const t=({children:n})=>d.jsx(d.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=Er,t}function ni(e){return l.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Er}function ri(e,t){const n={...t};for(const r in t){const o=e[r],a=t[r];/^on[A-Z]/.test(r)?o&&a?n[r]=(...i)=>{const c=a(...i);return o(...i),c}:o&&(n[r]=o):r==="style"?n[r]={...o,...a}:r==="className"&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}function oi(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function kr(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=kr(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Pr(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=kr(e))&&(r&&(r+=" "),r+=t);return r}const pn="-",ai=e=>{const t=ii(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:s=>{const i=s.split(pn);return i[0]===""&&i.length!==1&&i.shift(),Rr(i,t)||si(s)},getConflictingClassGroupIds:(s,i)=>{const c=n[s]||[];return i&&r[s]?[...c,...r[s]]:c}}},Rr=(e,t)=>{var s;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?Rr(e.slice(1),r):void 0;if(o)return o;if(t.validators.length===0)return;const a=e.join(pn);return(s=t.validators.find(({validator:i})=>i(a)))==null?void 0:s.classGroupId},Ar=/^\[(.+)\]$/,si=e=>{if(Ar.test(e)){const t=Ar.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},ii=e=>{const{theme:t,classGroups:n}=e,r={nextPart:new Map,validators:[]};for(const o in n)mn(n[o],r,o,t);return r},mn=(e,t,n,r)=>{e.forEach(o=>{if(typeof o=="string"){const a=o===""?t:_r(t,o);a.classGroupId=n;return}if(typeof o=="function"){if(li(o)){mn(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([a,s])=>{mn(s,_r(t,a),n,r)})})},_r=(e,t)=>{let n=e;return t.split(pn).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},li=e=>e.isThemeGetter,ci=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(a,s)=>{n.set(a,s),t++,t>e&&(t=0,r=n,n=new Map)};return{get(a){let s=n.get(a);if(s!==void 0)return s;if((s=r.get(a))!==void 0)return o(a,s),s},set(a,s){n.has(a)?n.set(a,s):o(a,s)}}},hn="!",gn=":",ui=gn.length,di=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=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===gn){a.push(o.slice(c,v)),c=v+ui;continue}if(m==="/"){u=v;continue}}m==="["?s++:m==="]"?s--:m==="("?i++:m===")"&&i--}const p=a.length===0?o:o.substring(c),f=fi(p),g=f!==p,h=u&&u>c?u-c:void 0;return{modifiers:a,hasImportantModifier:g,baseClassName:f,maybePostfixModifierPosition:h}};if(t){const o=t+gn,a=r;r=s=>s.startsWith(o)?a(s.substring(o.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:s,maybePostfixModifierPosition:void 0}}if(n){const o=r;r=a=>n({className:a,parseClassName:o})}return r},fi=e=>e.endsWith(hn)?e.substring(0,e.length-1):e.startsWith(hn)?e.substring(1):e,pi=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(r=>[r,!0]));return r=>{if(r.length<=1)return r;const o=[];let a=[];return r.forEach(s=>{s[0]==="["||t[s]?(o.push(...a.sort(),s),a=[]):a.push(s)}),o.push(...a.sort()),o}},mi=e=>({cache:ci(e.cacheSize),parseClassName:di(e),sortModifiers:pi(e),...ai(e)}),hi=/\s+/,gi=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o,sortModifiers:a}=t,s=[],i=e.trim().split(hi);let c="";for(let u=i.length-1;u>=0;u-=1){const p=i[u],{isExternal:f,modifiers:g,hasImportantModifier:h,baseClassName:v,maybePostfixModifierPosition:m}=n(p);if(f){c=p+(c.length>0?" "+c:c);continue}let x=!!m,y=r(x?v.substring(0,m):v);if(!y){if(!x){c=p+(c.length>0?" "+c:c);continue}if(y=r(v),!y){c=p+(c.length>0?" "+c:c);continue}x=!1}const b=a(g).join(":"),w=h?b+hn:b,E=w+y;if(s.includes(E))continue;s.push(E);const k=o(y,x);for(let N=0;N<k.length;++N){const P=k[N];s.push(w+P)}c=p+(c.length>0?" "+c:c)}return c};function vi(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=Nr(t))&&(r&&(r+=" "),r+=n);return r}const Nr=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=Nr(e[r]))&&(n&&(n+=" "),n+=t);return n};function xi(e,...t){let n,r,o,a=s;function s(c){const u=t.reduce((p,f)=>f(p),e());return n=mi(u),r=n.cache.get,o=n.cache.set,a=i,i(c)}function i(c){const u=r(c);if(u)return u;const p=gi(c,n);return o(c,p),p}return function(){return a(vi.apply(null,arguments))}}const se=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},Tr=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Or=/^\((?:(\w[\w-]*):)?(.+)\)$/i,bi=/^\d+\/\d+$/,yi=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,wi=/\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$/,Si=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Ci=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Ei=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ge=e=>bi.test(e),K=e=>!!e&&!Number.isNaN(Number(e)),Re=e=>!!e&&Number.isInteger(Number(e)),vn=e=>e.endsWith("%")&&K(e.slice(0,-1)),Ee=e=>yi.test(e),ki=()=>!0,Pi=e=>wi.test(e)&&!Si.test(e),jr=()=>!1,Ri=e=>Ci.test(e),Ai=e=>Ei.test(e),_i=e=>!j(e)&&!I(e),Ni=e=>Ye(e,$r,jr),j=e=>Tr.test(e),Fe=e=>Ye(e,Fr,Pi),xn=e=>Ye(e,Mi,K),Ir=e=>Ye(e,Dr,jr),Ti=e=>Ye(e,Lr,Ai),_t=e=>Ye(e,Vr,Ri),I=e=>Or.test(e),ft=e=>Ke(e,Fr),Oi=e=>Ke(e,Di),Mr=e=>Ke(e,Dr),ji=e=>Ke(e,$r),Ii=e=>Ke(e,Lr),Nt=e=>Ke(e,Vr,!0),Ye=(e,t,n)=>{const r=Tr.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},Ke=(e,t,n=!1)=>{const r=Or.exec(e);return r?r[1]?t(r[1]):n:!1},Dr=e=>e==="position"||e==="percentage",Lr=e=>e==="image"||e==="url",$r=e=>e==="length"||e==="size"||e==="bg-size",Fr=e=>e==="length",Mi=e=>e==="number",Di=e=>e==="family-name",Vr=e=>e==="shadow",Li=xi(()=>{const e=se("color"),t=se("font"),n=se("text"),r=se("font-weight"),o=se("tracking"),a=se("leading"),s=se("breakpoint"),i=se("container"),c=se("spacing"),u=se("radius"),p=se("shadow"),f=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"],E=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],k=()=>[...E(),I,j],N=()=>["auto","hidden","clip","visible","scroll"],P=()=>["auto","contain","none"],_=()=>[I,j,c],B=()=>[Ge,"full","auto",..._()],q=()=>[Re,"none","subgrid",I,j],Q=()=>["auto",{span:["full",Re,I,j]},Re,I,j],J=()=>[Re,"auto",I,j],ee=()=>["auto","min","max","fr",I,j],V=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],X=()=>["start","end","center","stretch","center-safe","end-safe"],$=()=>["auto",..._()],z=()=>[Ge,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",..._()],R=()=>[e,I,j],ne=()=>[...E(),Mr,Ir,{position:[I,j]}],C=()=>["no-repeat",{repeat:["","x","y","space","round"]}],L=()=>["auto","cover","contain",ji,Ni,{size:[I,j]}],S=()=>[vn,ft,Fe],T=()=>["","none","full",u,I,j],M=()=>["",K,ft,Fe],O=()=>["solid","dashed","dotted","double"],U=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],A=()=>[K,vn,Mr,Ir],D=()=>["","none",v,I,j],W=()=>["none",K,I,j],G=()=>["none",K,I,j],re=()=>[K,I,j],oe=()=>[Ge,"full",..._()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Ee],breakpoint:[Ee],color:[ki],container:[Ee],"drop-shadow":[Ee],ease:["in","out","in-out"],font:[_i],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Ee],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Ee],shadow:[Ee],spacing:["px",K],text:[Ee],"text-shadow":[Ee],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Ge,j,I,x]}],container:["container"],columns:[{columns:[K,j,I,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:P()}],"overscroll-x":[{"overscroll-x":P()}],"overscroll-y":[{"overscroll-y":P()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:B()}],"inset-x":[{"inset-x":B()}],"inset-y":[{"inset-y":B()}],start:[{start:B()}],end:[{end:B()}],top:[{top:B()}],right:[{right:B()}],bottom:[{bottom:B()}],left:[{left:B()}],visibility:["visible","invisible","collapse"],z:[{z:[Re,"auto",I,j]}],basis:[{basis:[Ge,"full","auto",i,..._()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[K,Ge,"auto","initial","none",j]}],grow:[{grow:["",K,I,j]}],shrink:[{shrink:["",K,I,j]}],order:[{order:[Re,"first","last","none",I,j]}],"grid-cols":[{"grid-cols":q()}],"col-start-end":[{col:Q()}],"col-start":[{"col-start":J()}],"col-end":[{"col-end":J()}],"grid-rows":[{"grid-rows":q()}],"row-start-end":[{row:Q()}],"row-start":[{"row-start":J()}],"row-end":[{"row-end":J()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":ee()}],"auto-rows":[{"auto-rows":ee()}],gap:[{gap:_()}],"gap-x":[{"gap-x":_()}],"gap-y":[{"gap-y":_()}],"justify-content":[{justify:[...V(),"normal"]}],"justify-items":[{"justify-items":[...X(),"normal"]}],"justify-self":[{"justify-self":["auto",...X()]}],"align-content":[{content:["normal",...V()]}],"align-items":[{items:[...X(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...X(),{baseline:["","last"]}]}],"place-content":[{"place-content":V()}],"place-items":[{"place-items":[...X(),"baseline"]}],"place-self":[{"place-self":["auto",...X()]}],p:[{p:_()}],px:[{px:_()}],py:[{py:_()}],ps:[{ps:_()}],pe:[{pe:_()}],pt:[{pt:_()}],pr:[{pr:_()}],pb:[{pb:_()}],pl:[{pl:_()}],m:[{m:$()}],mx:[{mx:$()}],my:[{my:$()}],ms:[{ms:$()}],me:[{me:$()}],mt:[{mt:$()}],mr:[{mr:$()}],mb:[{mb:$()}],ml:[{ml:$()}],"space-x":[{"space-x":_()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":_()}],"space-y-reverse":["space-y-reverse"],size:[{size:z()}],w:[{w:[i,"screen",...z()]}],"min-w":[{"min-w":[i,"screen","none",...z()]}],"max-w":[{"max-w":[i,"screen","none","prose",{screen:[s]},...z()]}],h:[{h:["screen","lh",...z()]}],"min-h":[{"min-h":["screen","lh","none",...z()]}],"max-h":[{"max-h":["screen","lh",...z()]}],"font-size":[{text:["base",n,ft,Fe]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,I,xn]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",vn,j]}],"font-family":[{font:[Oi,j,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,I,j]}],"line-clamp":[{"line-clamp":[K,"none",I,xn]}],leading:[{leading:[a,..._()]}],"list-image":[{"list-image":["none",I,j]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",I,j]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:R()}],"text-color":[{text:R()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...O(),"wavy"]}],"text-decoration-thickness":[{decoration:[K,"from-font","auto",I,Fe]}],"text-decoration-color":[{decoration:R()}],"underline-offset":[{"underline-offset":[K,"auto",I,j]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:_()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",I,j]}],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",I,j]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:ne()}],"bg-repeat":[{bg:C()}],"bg-size":[{bg:L()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Re,I,j],radial:["",I,j],conic:[Re,I,j]},Ii,Ti]}],"bg-color":[{bg:R()}],"gradient-from-pos":[{from:S()}],"gradient-via-pos":[{via:S()}],"gradient-to-pos":[{to:S()}],"gradient-from":[{from:R()}],"gradient-via":[{via:R()}],"gradient-to":[{to:R()}],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:R()}],"border-color-x":[{"border-x":R()}],"border-color-y":[{"border-y":R()}],"border-color-s":[{"border-s":R()}],"border-color-e":[{"border-e":R()}],"border-color-t":[{"border-t":R()}],"border-color-r":[{"border-r":R()}],"border-color-b":[{"border-b":R()}],"border-color-l":[{"border-l":R()}],"divide-color":[{divide:R()}],"outline-style":[{outline:[...O(),"none","hidden"]}],"outline-offset":[{"outline-offset":[K,I,j]}],"outline-w":[{outline:["",K,ft,Fe]}],"outline-color":[{outline:R()}],shadow:[{shadow:["","none",p,Nt,_t]}],"shadow-color":[{shadow:R()}],"inset-shadow":[{"inset-shadow":["none",f,Nt,_t]}],"inset-shadow-color":[{"inset-shadow":R()}],"ring-w":[{ring:M()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:R()}],"ring-offset-w":[{"ring-offset":[K,Fe]}],"ring-offset-color":[{"ring-offset":R()}],"inset-ring-w":[{"inset-ring":M()}],"inset-ring-color":[{"inset-ring":R()}],"text-shadow":[{"text-shadow":["none",g,Nt,_t]}],"text-shadow-color":[{"text-shadow":R()}],opacity:[{opacity:[K,I,j]}],"mix-blend":[{"mix-blend":[...U(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":U()}],"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":[K]}],"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":R()}],"mask-image-linear-to-color":[{"mask-linear-to":R()}],"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":R()}],"mask-image-t-to-color":[{"mask-t-to":R()}],"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":R()}],"mask-image-r-to-color":[{"mask-r-to":R()}],"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":R()}],"mask-image-b-to-color":[{"mask-b-to":R()}],"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":R()}],"mask-image-l-to-color":[{"mask-l-to":R()}],"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":R()}],"mask-image-x-to-color":[{"mask-x-to":R()}],"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":R()}],"mask-image-y-to-color":[{"mask-y-to":R()}],"mask-image-radial":[{"mask-radial":[I,j]}],"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":R()}],"mask-image-radial-to-color":[{"mask-radial-to":R()}],"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":E()}],"mask-image-conic-pos":[{"mask-conic":[K]}],"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":R()}],"mask-image-conic-to-color":[{"mask-conic-to":R()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:ne()}],"mask-repeat":[{mask:C()}],"mask-size":[{mask:L()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",I,j]}],filter:[{filter:["","none",I,j]}],blur:[{blur:D()}],brightness:[{brightness:[K,I,j]}],contrast:[{contrast:[K,I,j]}],"drop-shadow":[{"drop-shadow":["","none",h,Nt,_t]}],"drop-shadow-color":[{"drop-shadow":R()}],grayscale:[{grayscale:["",K,I,j]}],"hue-rotate":[{"hue-rotate":[K,I,j]}],invert:[{invert:["",K,I,j]}],saturate:[{saturate:[K,I,j]}],sepia:[{sepia:["",K,I,j]}],"backdrop-filter":[{"backdrop-filter":["","none",I,j]}],"backdrop-blur":[{"backdrop-blur":D()}],"backdrop-brightness":[{"backdrop-brightness":[K,I,j]}],"backdrop-contrast":[{"backdrop-contrast":[K,I,j]}],"backdrop-grayscale":[{"backdrop-grayscale":["",K,I,j]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[K,I,j]}],"backdrop-invert":[{"backdrop-invert":["",K,I,j]}],"backdrop-opacity":[{"backdrop-opacity":[K,I,j]}],"backdrop-saturate":[{"backdrop-saturate":[K,I,j]}],"backdrop-sepia":[{"backdrop-sepia":["",K,I,j]}],"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",I,j]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[K,"initial",I,j]}],ease:[{ease:["linear","initial",y,I,j]}],delay:[{delay:[K,I,j]}],animate:[{animate:["none",b,I,j]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[m,I,j]}],"perspective-origin":[{"perspective-origin":k()}],rotate:[{rotate:W()}],"rotate-x":[{"rotate-x":W()}],"rotate-y":[{"rotate-y":W()}],"rotate-z":[{"rotate-z":W()}],scale:[{scale:G()}],"scale-x":[{"scale-x":G()}],"scale-y":[{"scale-y":G()}],"scale-z":[{"scale-z":G()}],"scale-3d":["scale-3d"],skew:[{skew:re()}],"skew-x":[{"skew-x":re()}],"skew-y":[{"skew-y":re()}],transform:[{transform:[I,j,"","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:R()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:R()}],"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",I,j]}],"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",I,j]}],fill:[{fill:["none",...R()]}],"stroke-w":[{stroke:[K,ft,Fe,xn]}],stroke:[{stroke:["none",...R()]}],"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 Li(Pr(e))}const zr=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Br=Pr,ue=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return Br(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:o,defaultVariants:a}=t,s=Object.keys(o).map(u=>{const p=n==null?void 0:n[u],f=a==null?void 0:a[u];if(p===null)return null;const g=zr(p)||zr(f);return o[u][g]}),i=n&&Object.entries(n).reduce((u,p)=>{let[f,g]=p;return g===void 0||(u[f]=g),u},{}),c=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,p)=>{let{class:f,className:g,...h}=p;return Object.entries(h).every(v=>{let[m,x]=v;return Array.isArray(x)?x.includes({...a,...i}[m]):{...a,...i}[m]===x})?[...u,f,g]:u},[]);return Br(e,s,c,n==null?void 0:n.class,n==null?void 0:n.className)},$i=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 Fi({className:e,variant:t,size:n,asChild:r=!1,children:o,...a}){const s=r?fn:"button";return d.jsx(s,{"data-slot":"button",className:F($i({variant:t,size:n}),e),...a,children:o})}function Z(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}var ie=globalThis!=null&&globalThis.document?l.useLayoutEffect:()=>{},Vi=l[" useInsertionEffect ".trim().toString()]||ie;function qe({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,a,s]=zi({defaultProp:t,onChange:n}),i=e!==void 0,c=i?e:o;{const p=l.useRef(e!==void 0);l.useEffect(()=>{const f=p.current;f!==i&&console.warn(`${r} is changing from ${f?"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.`),p.current=i},[i,r])}const u=l.useCallback(p=>{var f;if(i){const g=Bi(p)?p(e):p;g!==e&&((f=s.current)==null||f.call(s,g))}else a(p)},[i,e,a,s]);return[c,u]}function zi({defaultProp:e,onChange:t}){const[n,r]=l.useState(e),o=l.useRef(n),a=l.useRef(t);return Vi(()=>{a.current=t},[t]),l.useEffect(()=>{var s;o.current!==n&&((s=a.current)==null||s.call(a,n),o.current=n)},[n,o]),[n,r,a]}function Bi(e){return typeof e=="function"}var Wi=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],H=Wi.reduce((e,t)=>{const n=$e(`Primitive.${t}`),r=l.forwardRef((o,a)=>{const{asChild:s,...i}=o,c=s?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),d.jsx(c,{...i,ref:a})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Hi(e,t){e&&At.flushSync(()=>e.dispatchEvent(t))}var Wr="Toggle",Hr=l.forwardRef((e,t)=>{const{pressed:n,defaultPressed:r,onPressedChange:o,...a}=e,[s,i]=qe({prop:n,onChange:o,defaultProp:r??!1,caller:Wr});return d.jsx(H.button,{type:"button","aria-pressed":s,"data-state":s?"on":"off","data-disabled":e.disabled?"":void 0,...a,ref:t,onClick:Z(e.onClick,()=>{e.disabled||i(!s)})})});Hr.displayName=Wr;var Ur=Hr;const Gr=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"}}),Yr=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"}}),Kr=te.forwardRef(({pressed:e=!1,onPressedChange:t,variant:n="classic",disabled:r=!1,className:o,id:a,name:s,label:i,description:c,labelPosition:u="right","aria-label":p,"aria-labelledby":f,children:g,...h},v)=>{const m=te.useId(),x=a||m,y=`${x}-label`,b=`${x}-description`,w=k=>{!r&&t&&t(k)},E=d.jsx(Ur,{ref:v,pressed:e,onPressedChange:w,disabled:r,"aria-label":p,"aria-labelledby":f||(i?y:void 0),"aria-describedby":c?b:void 0,className:F(Gr({variant:n}),o),id:x,name:s,...h,children:g||d.jsx("span",{className:F(Yr({variant:n})),"aria-hidden":"true"})});return!i&&!c?E:d.jsxs("div",{className:F("flex gap-3",u==="left"?"flex-row-reverse":"flex-row",r&&"opacity-50 cursor-not-allowed"),children:[E,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",r&&"cursor-not-allowed"),children:i}),c&&d.jsx("p",{id:b,className:"text-xs text-muted-foreground mt-1",children:c})]})]})});Kr.displayName="Toggle";const qr=te.forwardRef(({defaultPressed:e=!1,variant:t="classic",disabled:n=!1,className:r,id:o,name:a,label:s,description:i,labelPosition:c="right","aria-label":u,"aria-labelledby":p,onPressedChange:f,children:g,...h},v)=>{const[m,x]=te.useState(e),y=te.useId(),b=o||y,w=`${b}-label`,E=`${b}-description`,k=P=>{n||(x(P),f&&f(P))},N=d.jsx(Ur,{ref:v,pressed:m,onPressedChange:k,disabled:n,"aria-label":u,"aria-labelledby":p||(s?w:void 0),"aria-describedby":i?E:void 0,className:F(Gr({variant:t}),r),id:b,name:a,...h,children:g||d.jsx("span",{className:F(Yr({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",n&&"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",n&&"cursor-not-allowed"),children:s}),i&&d.jsx("p",{id:E,className:"text-xs text-neutral-black-1",children:i})]})]})});qr.displayName="StatefulToggle";function Ui(e,t){const n=l.createContext(t),r=a=>{const{children:s,...i}=a,c=l.useMemo(()=>i,Object.values(i));return d.jsx(n.Provider,{value:c,children:s})};r.displayName=e+"Provider";function o(a){const s=l.useContext(n);if(s)return s;if(t!==void 0)return t;throw new Error(`\`${a}\` must be used within \`${e}\``)}return[r,o]}function Ve(e,t=[]){let n=[];function r(a,s){const i=l.createContext(s),c=n.length;n=[...n,s];const u=f=>{var y;const{scope:g,children:h,...v}=f,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 p(f,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(`\`${f}\` must be used within \`${a}\``)}return[u,p]}const o=()=>{const a=n.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,[r,Gi(o,...t)]}function Gi(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(a){const s=r.reduce((i,{useScope:c,scopeName:u})=>{const f=c(a)[`__scope${u}`];return{...i,...f}},{});return l.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}var Yi=l[" useId ".trim().toString()]||(()=>{}),Ki=0;function ce(e){const[t,n]=l.useState(Yi());return ie(()=>{n(r=>r??String(Ki++))},[e]),e||(t?`radix-${t}`:"")}function Ae(e){const t=l.useRef(e);return l.useEffect(()=>{t.current=e}),l.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function qi(e,t=globalThis==null?void 0:globalThis.document){const n=Ae(e);l.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var Xi="DismissableLayer",bn="dismissableLayer.update",Zi="dismissableLayer.pointerDownOutside",Ji="dismissableLayer.focusOutside",Xr,Zr=l.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),pt=l.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:s,onDismiss:i,...c}=e,u=l.useContext(Zr),[p,f]=l.useState(null),g=(p==null?void 0:p.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,h]=l.useState({}),v=ae(t,P=>f(P)),m=Array.from(u.layers),[x]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),y=m.indexOf(x),b=p?m.indexOf(p):-1,w=u.layersWithOutsidePointerEventsDisabled.size>0,E=b>=y,k=tl(P=>{const _=P.target,B=[...u.branches].some(q=>q.contains(_));!E||B||(o==null||o(P),s==null||s(P),P.defaultPrevented||i==null||i())},g),N=nl(P=>{const _=P.target;[...u.branches].some(q=>q.contains(_))||(a==null||a(P),s==null||s(P),P.defaultPrevented||i==null||i())},g);return qi(P=>{b===u.layers.size-1&&(r==null||r(P),!P.defaultPrevented&&i&&(P.preventDefault(),i()))},g),l.useEffect(()=>{if(p)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(Xr=g.body.style.pointerEvents,g.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(p)),u.layers.add(p),Jr(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(g.body.style.pointerEvents=Xr)}},[p,g,n,u]),l.useEffect(()=>()=>{p&&(u.layers.delete(p),u.layersWithOutsidePointerEventsDisabled.delete(p),Jr())},[p,u]),l.useEffect(()=>{const P=()=>h({});return document.addEventListener(bn,P),()=>document.removeEventListener(bn,P)},[]),d.jsx(H.div,{...c,ref:v,style:{pointerEvents:w?E?"auto":"none":void 0,...e.style},onFocusCapture:Z(e.onFocusCapture,N.onFocusCapture),onBlurCapture:Z(e.onBlurCapture,N.onBlurCapture),onPointerDownCapture:Z(e.onPointerDownCapture,k.onPointerDownCapture)})});pt.displayName=Xi;var Qi="DismissableLayerBranch",el=l.forwardRef((e,t)=>{const n=l.useContext(Zr),r=l.useRef(null),o=ae(t,r);return l.useEffect(()=>{const a=r.current;if(a)return n.branches.add(a),()=>{n.branches.delete(a)}},[n.branches]),d.jsx(H.div,{...e,ref:o})});el.displayName=Qi;function tl(e,t=globalThis==null?void 0:globalThis.document){const n=Ae(e),r=l.useRef(!1),o=l.useRef(()=>{});return l.useEffect(()=>{const a=i=>{if(i.target&&!r.current){let c=function(){Qr(Zi,n,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);r.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",a),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function nl(e,t=globalThis==null?void 0:globalThis.document){const n=Ae(e),r=l.useRef(!1);return l.useEffect(()=>{const o=a=>{a.target&&!r.current&&Qr(Ji,n,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Jr(){const e=new CustomEvent(bn);document.dispatchEvent(e)}function Qr(e,t,n,{discrete:r}){const o=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Hi(o,a):o.dispatchEvent(a)}var yn="focusScope.autoFocusOnMount",wn="focusScope.autoFocusOnUnmount",eo={bubbles:!1,cancelable:!0},rl="FocusScope",Tt=l.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...s}=e,[i,c]=l.useState(null),u=Ae(o),p=Ae(a),f=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(r){let m=function(w){if(h.paused||!i)return;const E=w.target;i.contains(E)?f.current=E:_e(f.current,{select:!0})},x=function(w){if(h.paused||!i)return;const E=w.relatedTarget;E!==null&&(i.contains(E)||_e(f.current,{select:!0}))},y=function(w){if(document.activeElement===document.body)for(const k of w)k.removedNodes.length>0&&_e(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()}}},[r,i,h.paused]),l.useEffect(()=>{if(i){ro.add(h);const m=document.activeElement;if(!i.contains(m)){const y=new CustomEvent(yn,eo);i.addEventListener(yn,u),i.dispatchEvent(y),y.defaultPrevented||(ol(cl(to(i)),{select:!0}),document.activeElement===m&&_e(i))}return()=>{i.removeEventListener(yn,u),setTimeout(()=>{const y=new CustomEvent(wn,eo);i.addEventListener(wn,p),i.dispatchEvent(y),y.defaultPrevented||_e(m??document.body,{select:!0}),i.removeEventListener(wn,p),ro.remove(h)},0)}}},[i,u,p,h]);const v=l.useCallback(m=>{if(!n&&!r||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,E]=al(b);w&&E?!m.shiftKey&&y===E?(m.preventDefault(),n&&_e(w,{select:!0})):m.shiftKey&&y===w&&(m.preventDefault(),n&&_e(E,{select:!0})):y===b&&m.preventDefault()}},[n,r,h.paused]);return d.jsx(H.div,{tabIndex:-1,...s,ref:g,onKeyDown:v})});Tt.displayName=rl;function ol(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(_e(r,{select:t}),document.activeElement!==n)return}function al(e){const t=to(e),n=no(t,e),r=no(t.reverse(),e);return[n,r]}function to(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function no(e,t){for(const n of e)if(!sl(n,{upTo:t}))return n}function sl(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 il(e){return e instanceof HTMLInputElement&&"select"in e}function _e(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&il(e)&&t&&e.select()}}var ro=ll();function ll(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=oo(e,t),e.unshift(t)},remove(t){var n;e=oo(e,t),(n=e[0])==null||n.resume()}}}function oo(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function cl(e){return e.filter(t=>t.tagName!=="A")}var ul="Portal",mt=l.forwardRef((e,t)=>{var i;const{container:n,...r}=e,[o,a]=l.useState(!1);ie(()=>a(!0),[]);const s=n||o&&((i=globalThis==null?void 0:globalThis.document)==null?void 0:i.body);return s?br.createPortal(d.jsx(H.div,{...r,ref:t}),s):null});mt.displayName=ul;function dl(e,t){return l.useReducer((n,r)=>t[n][r]??n,e)}var Ne=e=>{const{present:t,children:n}=e,r=fl(t),o=typeof n=="function"?n({present:r.isPresent}):l.Children.only(n),a=ae(r.ref,pl(o));return typeof n=="function"||r.isPresent?l.cloneElement(o,{ref:a}):null};Ne.displayName="Presence";function fl(e){const[t,n]=l.useState(),r=l.useRef(null),o=l.useRef(e),a=l.useRef("none"),s=e?"mounted":"unmounted",[i,c]=dl(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return l.useEffect(()=>{const u=Ot(r.current);a.current=i==="mounted"?u:"none"},[i]),ie(()=>{const u=r.current,p=o.current;if(p!==e){const g=a.current,h=Ot(u);e?c("MOUNT"):h==="none"||(u==null?void 0:u.display)==="none"?c("UNMOUNT"):c(p&&g!==h?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,c]),ie(()=>{if(t){let u;const p=t.ownerDocument.defaultView??window,f=h=>{const m=Ot(r.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=p.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=x)})}},g=h=>{h.target===t&&(a.current=Ot(r.current))};return t.addEventListener("animationstart",g),t.addEventListener("animationcancel",f),t.addEventListener("animationend",f),()=>{p.clearTimeout(u),t.removeEventListener("animationstart",g),t.removeEventListener("animationcancel",f),t.removeEventListener("animationend",f)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(i),ref:l.useCallback(u=>{r.current=u?getComputedStyle(u):null,n(u)},[])}}function Ot(e){return(e==null?void 0:e.animationName)||"none"}function pl(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Sn=0;function Cn(){l.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??ao()),document.body.insertAdjacentElement("beforeend",e[1]??ao()),Sn++,()=>{Sn===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Sn--}},[])}function ao(){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 xe=function(){return xe=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},xe.apply(this,arguments)};function so(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function ml(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,a;r<o;r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;var jt="right-scroll-bar-position",It="width-before-scroll-bar",hl="with-scroll-bars-hidden",gl="--removed-body-scroll-bar-size";function En(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function vl(e,t){var n=te.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}var xl=typeof window<"u"?l.useLayoutEffect:l.useEffect,io=new WeakMap;function bl(e,t){var n=vl(null,function(r){return e.forEach(function(o){return En(o,r)})});return xl(function(){var r=io.get(n);if(r){var o=new Set(r),a=new Set(e),s=n.current;o.forEach(function(i){a.has(i)||En(i,null)}),a.forEach(function(i){o.has(i)||En(i,s)})}io.set(n,e)},[e]),n}function yl(e){return e}function wl(e,t){t===void 0&&(t=yl);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(a){var s=t(a,r);return n.push(s),function(){n=n.filter(function(i){return i!==s})}},assignSyncMedium:function(a){for(r=!0;n.length;){var s=n;n=[],s.forEach(a)}n={push:function(i){return a(i)},filter:function(){return n}}},assignMedium:function(a){r=!0;var s=[];if(n.length){var i=n;n=[],i.forEach(a),s=n}var c=function(){var p=s;s=[],p.forEach(a)},u=function(){return Promise.resolve().then(c)};u(),n={push:function(p){s.push(p),u()},filter:function(p){return s=s.filter(p),n}}}};return o}function Sl(e){e===void 0&&(e={});var t=wl(null);return t.options=xe({async:!0,ssr:!1},e),t}var lo=function(e){var t=e.sideCar,n=so(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return l.createElement(r,xe({},n))};lo.isSideCarExport=!0;function Cl(e,t){return e.useMedium(t),lo}var co=Sl(),kn=function(){},Mt=l.forwardRef(function(e,t){var n=l.useRef(null),r=l.useState({onScrollCapture:kn,onWheelCapture:kn,onTouchMoveCapture:kn}),o=r[0],a=r[1],s=e.forwardProps,i=e.children,c=e.className,u=e.removeScrollBar,p=e.enabled,f=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,E=so(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),k=g,N=bl([n,t]),P=xe(xe({},E),o);return l.createElement(l.Fragment,null,p&&l.createElement(k,{sideCar:co,removeScrollBar:u,shards:f,noRelative:h,noIsolation:v,inert:m,setCallbacks:a,allowPinchZoom:!!x,lockRef:n,gapMode:w}),s?l.cloneElement(l.Children.only(i),xe(xe({},P),{ref:N})):l.createElement(b,xe({},P,{className:c,ref:N}),i))});Mt.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Mt.classNames={fullWidth:It,zeroRight:jt};var El=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function kl(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=El();return t&&e.setAttribute("nonce",t),e}function Pl(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Rl(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Al=function(){var e=0,t=null;return{add:function(n){e==0&&(t=kl())&&(Pl(t,n),Rl(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},_l=function(){var e=Al();return function(t,n){l.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},uo=function(){var e=_l(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},Nl={left:0,top:0,right:0,gap:0},Pn=function(e){return parseInt(e||"",10)||0},Tl=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[Pn(n),Pn(r),Pn(o)]},Ol=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Nl;var t=Tl(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},jl=uo(),Xe="data-scroll-locked",Il=function(e,t,n,r){var o=e.left,a=e.top,s=e.right,i=e.gap;return n===void 0&&(n="margin"),`
|
|
23
|
-
.`.concat(
|
|
22
|
+
<%s key={someKey} {...props} />`,T,D,W,D),ne[D+T]=!0)}if(D=null,S!==void 0&&(n(S),D=""+S),s(L)&&(n(L.key),D=""+L.key),"key"in L){S={};for(var Y in L)Y!=="key"&&(S[Y]=L[Y])}else S=L;return D&&i(S,typeof C=="function"?C.displayName||C.name||"Unknown":C),u(C,D,O,M,o(),S,U,A)}function f(C){typeof C=="object"&&C!==null&&C.$$typeof===h&&C._store&&(C._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"),E=Symbol.for("react.forward_ref"),k=Symbol.for("react.suspense"),N=Symbol.for("react.suspense_list"),P=Symbol.for("react.memo"),_=Symbol.for("react.lazy"),B=Symbol.for("react.activity"),q=Symbol.for("react.client.reference"),Q=g.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,J=Object.prototype.hasOwnProperty,ee=Array.isArray,V=console.createTask?console.createTask:function(){return null};g={"react-stack-bottom-frame":function(C){return C()}};var X,$={},z=g["react-stack-bottom-frame"].bind(g,a)(),R=V(r(a)),ne={};dt.Fragment=m,dt.jsx=function(C,L,S,T,M){var O=1e4>Q.recentlyCreatedOwnerStacks++;return p(C,L,S,!1,T,M,O?Error("react-stack-top-frame"):z,O?V(r(C)):R)},dt.jsxs=function(C,L,S,T,M){var O=1e4>Q.recentlyCreatedOwnerStacks++;return p(C,L,S,!0,T,M,O?Error("react-stack-top-frame"):z,O?V(r(C)):R)}}()),dt}process.env.NODE_ENV==="production"?dn.exports=Qs():dn.exports=ei();var d=dn.exports;function Cr(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Le(...e){return t=>{let n=!1;const r=e.map(o=>{const a=Cr(o,t);return!n&&typeof a=="function"&&(n=!0),a});if(n)return()=>{for(let o=0;o<r.length;o++){const a=r[o];typeof a=="function"?a():Cr(e[o],null)}}}}function ae(...e){return l.useCallback(Le(...e),e)}function $e(e){const t=ti(e),n=l.forwardRef((r,o)=>{const{children:a,...s}=r,i=l.Children.toArray(a),c=i.find(ri);if(c){const u=c.props.children,p=i.map(f=>f===c?l.Children.count(u)>1?l.Children.only(null):l.isValidElement(u)?u.props.children:null:f);return d.jsx(t,{...s,ref:o,children:l.isValidElement(u)?l.cloneElement(u,void 0,p):null})}return d.jsx(t,{...s,ref:o,children:a})});return n.displayName=`${e}.Slot`,n}var fn=$e("Slot");function ti(e){const t=l.forwardRef((n,r)=>{const{children:o,...a}=n;if(l.isValidElement(o)){const s=ai(o),i=oi(a,o.props);return o.type!==l.Fragment&&(i.ref=r?Le(r,s):s),l.cloneElement(o,i)}return l.Children.count(o)>1?l.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Er=Symbol("radix.slottable");function ni(e){const t=({children:n})=>d.jsx(d.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=Er,t}function ri(e){return l.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Er}function oi(e,t){const n={...t};for(const r in t){const o=e[r],a=t[r];/^on[A-Z]/.test(r)?o&&a?n[r]=(...i)=>{const c=a(...i);return o(...i),c}:o&&(n[r]=o):r==="style"?n[r]={...o,...a}:r==="className"&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}function ai(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function kr(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=kr(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Pr(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=kr(e))&&(r&&(r+=" "),r+=t);return r}const pn="-",si=e=>{const t=li(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:s=>{const i=s.split(pn);return i[0]===""&&i.length!==1&&i.shift(),Rr(i,t)||ii(s)},getConflictingClassGroupIds:(s,i)=>{const c=n[s]||[];return i&&r[s]?[...c,...r[s]]:c}}},Rr=(e,t)=>{var s;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?Rr(e.slice(1),r):void 0;if(o)return o;if(t.validators.length===0)return;const a=e.join(pn);return(s=t.validators.find(({validator:i})=>i(a)))==null?void 0:s.classGroupId},Ar=/^\[(.+)\]$/,ii=e=>{if(Ar.test(e)){const t=Ar.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},li=e=>{const{theme:t,classGroups:n}=e,r={nextPart:new Map,validators:[]};for(const o in n)mn(n[o],r,o,t);return r},mn=(e,t,n,r)=>{e.forEach(o=>{if(typeof o=="string"){const a=o===""?t:_r(t,o);a.classGroupId=n;return}if(typeof o=="function"){if(ci(o)){mn(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([a,s])=>{mn(s,_r(t,a),n,r)})})},_r=(e,t)=>{let n=e;return t.split(pn).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},ci=e=>e.isThemeGetter,ui=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(a,s)=>{n.set(a,s),t++,t>e&&(t=0,r=n,n=new Map)};return{get(a){let s=n.get(a);if(s!==void 0)return s;if((s=r.get(a))!==void 0)return o(a,s),s},set(a,s){n.has(a)?n.set(a,s):o(a,s)}}},hn="!",gn=":",di=gn.length,fi=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=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===gn){a.push(o.slice(c,v)),c=v+di;continue}if(m==="/"){u=v;continue}}m==="["?s++:m==="]"?s--:m==="("?i++:m===")"&&i--}const p=a.length===0?o:o.substring(c),f=pi(p),g=f!==p,h=u&&u>c?u-c:void 0;return{modifiers:a,hasImportantModifier:g,baseClassName:f,maybePostfixModifierPosition:h}};if(t){const o=t+gn,a=r;r=s=>s.startsWith(o)?a(s.substring(o.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:s,maybePostfixModifierPosition:void 0}}if(n){const o=r;r=a=>n({className:a,parseClassName:o})}return r},pi=e=>e.endsWith(hn)?e.substring(0,e.length-1):e.startsWith(hn)?e.substring(1):e,mi=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(r=>[r,!0]));return r=>{if(r.length<=1)return r;const o=[];let a=[];return r.forEach(s=>{s[0]==="["||t[s]?(o.push(...a.sort(),s),a=[]):a.push(s)}),o.push(...a.sort()),o}},hi=e=>({cache:ui(e.cacheSize),parseClassName:fi(e),sortModifiers:mi(e),...si(e)}),gi=/\s+/,vi=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o,sortModifiers:a}=t,s=[],i=e.trim().split(gi);let c="";for(let u=i.length-1;u>=0;u-=1){const p=i[u],{isExternal:f,modifiers:g,hasImportantModifier:h,baseClassName:v,maybePostfixModifierPosition:m}=n(p);if(f){c=p+(c.length>0?" "+c:c);continue}let x=!!m,y=r(x?v.substring(0,m):v);if(!y){if(!x){c=p+(c.length>0?" "+c:c);continue}if(y=r(v),!y){c=p+(c.length>0?" "+c:c);continue}x=!1}const b=a(g).join(":"),w=h?b+hn:b,E=w+y;if(s.includes(E))continue;s.push(E);const k=o(y,x);for(let N=0;N<k.length;++N){const P=k[N];s.push(w+P)}c=p+(c.length>0?" "+c:c)}return c};function xi(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=Nr(t))&&(r&&(r+=" "),r+=n);return r}const Nr=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=Nr(e[r]))&&(n&&(n+=" "),n+=t);return n};function bi(e,...t){let n,r,o,a=s;function s(c){const u=t.reduce((p,f)=>f(p),e());return n=hi(u),r=n.cache.get,o=n.cache.set,a=i,i(c)}function i(c){const u=r(c);if(u)return u;const p=vi(c,n);return o(c,p),p}return function(){return a(xi.apply(null,arguments))}}const se=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},Tr=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Or=/^\((?:(\w[\w-]*):)?(.+)\)$/i,yi=/^\d+\/\d+$/,wi=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Si=/\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$/,Ci=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Ei=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,ki=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ge=e=>yi.test(e),K=e=>!!e&&!Number.isNaN(Number(e)),Re=e=>!!e&&Number.isInteger(Number(e)),vn=e=>e.endsWith("%")&&K(e.slice(0,-1)),Ee=e=>wi.test(e),Pi=()=>!0,Ri=e=>Si.test(e)&&!Ci.test(e),jr=()=>!1,Ai=e=>Ei.test(e),_i=e=>ki.test(e),Ni=e=>!j(e)&&!I(e),Ti=e=>Ye(e,$r,jr),j=e=>Tr.test(e),Fe=e=>Ye(e,Fr,Ri),xn=e=>Ye(e,Di,K),Ir=e=>Ye(e,Dr,jr),Oi=e=>Ye(e,Lr,_i),_t=e=>Ye(e,Vr,Ai),I=e=>Or.test(e),ft=e=>Ke(e,Fr),ji=e=>Ke(e,Li),Mr=e=>Ke(e,Dr),Ii=e=>Ke(e,$r),Mi=e=>Ke(e,Lr),Nt=e=>Ke(e,Vr,!0),Ye=(e,t,n)=>{const r=Tr.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},Ke=(e,t,n=!1)=>{const r=Or.exec(e);return r?r[1]?t(r[1]):n:!1},Dr=e=>e==="position"||e==="percentage",Lr=e=>e==="image"||e==="url",$r=e=>e==="length"||e==="size"||e==="bg-size",Fr=e=>e==="length",Di=e=>e==="number",Li=e=>e==="family-name",Vr=e=>e==="shadow",$i=bi(()=>{const e=se("color"),t=se("font"),n=se("text"),r=se("font-weight"),o=se("tracking"),a=se("leading"),s=se("breakpoint"),i=se("container"),c=se("spacing"),u=se("radius"),p=se("shadow"),f=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"],E=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],k=()=>[...E(),I,j],N=()=>["auto","hidden","clip","visible","scroll"],P=()=>["auto","contain","none"],_=()=>[I,j,c],B=()=>[Ge,"full","auto",..._()],q=()=>[Re,"none","subgrid",I,j],Q=()=>["auto",{span:["full",Re,I,j]},Re,I,j],J=()=>[Re,"auto",I,j],ee=()=>["auto","min","max","fr",I,j],V=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],X=()=>["start","end","center","stretch","center-safe","end-safe"],$=()=>["auto",..._()],z=()=>[Ge,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",..._()],R=()=>[e,I,j],ne=()=>[...E(),Mr,Ir,{position:[I,j]}],C=()=>["no-repeat",{repeat:["","x","y","space","round"]}],L=()=>["auto","cover","contain",Ii,Ti,{size:[I,j]}],S=()=>[vn,ft,Fe],T=()=>["","none","full",u,I,j],M=()=>["",K,ft,Fe],O=()=>["solid","dashed","dotted","double"],U=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],A=()=>[K,vn,Mr,Ir],D=()=>["","none",v,I,j],W=()=>["none",K,I,j],Y=()=>["none",K,I,j],re=()=>[K,I,j],oe=()=>[Ge,"full",..._()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Ee],breakpoint:[Ee],color:[Pi],container:[Ee],"drop-shadow":[Ee],ease:["in","out","in-out"],font:[Ni],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Ee],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Ee],shadow:[Ee],spacing:["px",K],text:[Ee],"text-shadow":[Ee],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Ge,j,I,x]}],container:["container"],columns:[{columns:[K,j,I,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:P()}],"overscroll-x":[{"overscroll-x":P()}],"overscroll-y":[{"overscroll-y":P()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:B()}],"inset-x":[{"inset-x":B()}],"inset-y":[{"inset-y":B()}],start:[{start:B()}],end:[{end:B()}],top:[{top:B()}],right:[{right:B()}],bottom:[{bottom:B()}],left:[{left:B()}],visibility:["visible","invisible","collapse"],z:[{z:[Re,"auto",I,j]}],basis:[{basis:[Ge,"full","auto",i,..._()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[K,Ge,"auto","initial","none",j]}],grow:[{grow:["",K,I,j]}],shrink:[{shrink:["",K,I,j]}],order:[{order:[Re,"first","last","none",I,j]}],"grid-cols":[{"grid-cols":q()}],"col-start-end":[{col:Q()}],"col-start":[{"col-start":J()}],"col-end":[{"col-end":J()}],"grid-rows":[{"grid-rows":q()}],"row-start-end":[{row:Q()}],"row-start":[{"row-start":J()}],"row-end":[{"row-end":J()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":ee()}],"auto-rows":[{"auto-rows":ee()}],gap:[{gap:_()}],"gap-x":[{"gap-x":_()}],"gap-y":[{"gap-y":_()}],"justify-content":[{justify:[...V(),"normal"]}],"justify-items":[{"justify-items":[...X(),"normal"]}],"justify-self":[{"justify-self":["auto",...X()]}],"align-content":[{content:["normal",...V()]}],"align-items":[{items:[...X(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...X(),{baseline:["","last"]}]}],"place-content":[{"place-content":V()}],"place-items":[{"place-items":[...X(),"baseline"]}],"place-self":[{"place-self":["auto",...X()]}],p:[{p:_()}],px:[{px:_()}],py:[{py:_()}],ps:[{ps:_()}],pe:[{pe:_()}],pt:[{pt:_()}],pr:[{pr:_()}],pb:[{pb:_()}],pl:[{pl:_()}],m:[{m:$()}],mx:[{mx:$()}],my:[{my:$()}],ms:[{ms:$()}],me:[{me:$()}],mt:[{mt:$()}],mr:[{mr:$()}],mb:[{mb:$()}],ml:[{ml:$()}],"space-x":[{"space-x":_()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":_()}],"space-y-reverse":["space-y-reverse"],size:[{size:z()}],w:[{w:[i,"screen",...z()]}],"min-w":[{"min-w":[i,"screen","none",...z()]}],"max-w":[{"max-w":[i,"screen","none","prose",{screen:[s]},...z()]}],h:[{h:["screen","lh",...z()]}],"min-h":[{"min-h":["screen","lh","none",...z()]}],"max-h":[{"max-h":["screen","lh",...z()]}],"font-size":[{text:["base",n,ft,Fe]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,I,xn]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",vn,j]}],"font-family":[{font:[ji,j,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,I,j]}],"line-clamp":[{"line-clamp":[K,"none",I,xn]}],leading:[{leading:[a,..._()]}],"list-image":[{"list-image":["none",I,j]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",I,j]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:R()}],"text-color":[{text:R()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...O(),"wavy"]}],"text-decoration-thickness":[{decoration:[K,"from-font","auto",I,Fe]}],"text-decoration-color":[{decoration:R()}],"underline-offset":[{"underline-offset":[K,"auto",I,j]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:_()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",I,j]}],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",I,j]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:ne()}],"bg-repeat":[{bg:C()}],"bg-size":[{bg:L()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Re,I,j],radial:["",I,j],conic:[Re,I,j]},Mi,Oi]}],"bg-color":[{bg:R()}],"gradient-from-pos":[{from:S()}],"gradient-via-pos":[{via:S()}],"gradient-to-pos":[{to:S()}],"gradient-from":[{from:R()}],"gradient-via":[{via:R()}],"gradient-to":[{to:R()}],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:R()}],"border-color-x":[{"border-x":R()}],"border-color-y":[{"border-y":R()}],"border-color-s":[{"border-s":R()}],"border-color-e":[{"border-e":R()}],"border-color-t":[{"border-t":R()}],"border-color-r":[{"border-r":R()}],"border-color-b":[{"border-b":R()}],"border-color-l":[{"border-l":R()}],"divide-color":[{divide:R()}],"outline-style":[{outline:[...O(),"none","hidden"]}],"outline-offset":[{"outline-offset":[K,I,j]}],"outline-w":[{outline:["",K,ft,Fe]}],"outline-color":[{outline:R()}],shadow:[{shadow:["","none",p,Nt,_t]}],"shadow-color":[{shadow:R()}],"inset-shadow":[{"inset-shadow":["none",f,Nt,_t]}],"inset-shadow-color":[{"inset-shadow":R()}],"ring-w":[{ring:M()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:R()}],"ring-offset-w":[{"ring-offset":[K,Fe]}],"ring-offset-color":[{"ring-offset":R()}],"inset-ring-w":[{"inset-ring":M()}],"inset-ring-color":[{"inset-ring":R()}],"text-shadow":[{"text-shadow":["none",g,Nt,_t]}],"text-shadow-color":[{"text-shadow":R()}],opacity:[{opacity:[K,I,j]}],"mix-blend":[{"mix-blend":[...U(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":U()}],"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":[K]}],"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":R()}],"mask-image-linear-to-color":[{"mask-linear-to":R()}],"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":R()}],"mask-image-t-to-color":[{"mask-t-to":R()}],"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":R()}],"mask-image-r-to-color":[{"mask-r-to":R()}],"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":R()}],"mask-image-b-to-color":[{"mask-b-to":R()}],"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":R()}],"mask-image-l-to-color":[{"mask-l-to":R()}],"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":R()}],"mask-image-x-to-color":[{"mask-x-to":R()}],"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":R()}],"mask-image-y-to-color":[{"mask-y-to":R()}],"mask-image-radial":[{"mask-radial":[I,j]}],"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":R()}],"mask-image-radial-to-color":[{"mask-radial-to":R()}],"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":E()}],"mask-image-conic-pos":[{"mask-conic":[K]}],"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":R()}],"mask-image-conic-to-color":[{"mask-conic-to":R()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:ne()}],"mask-repeat":[{mask:C()}],"mask-size":[{mask:L()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",I,j]}],filter:[{filter:["","none",I,j]}],blur:[{blur:D()}],brightness:[{brightness:[K,I,j]}],contrast:[{contrast:[K,I,j]}],"drop-shadow":[{"drop-shadow":["","none",h,Nt,_t]}],"drop-shadow-color":[{"drop-shadow":R()}],grayscale:[{grayscale:["",K,I,j]}],"hue-rotate":[{"hue-rotate":[K,I,j]}],invert:[{invert:["",K,I,j]}],saturate:[{saturate:[K,I,j]}],sepia:[{sepia:["",K,I,j]}],"backdrop-filter":[{"backdrop-filter":["","none",I,j]}],"backdrop-blur":[{"backdrop-blur":D()}],"backdrop-brightness":[{"backdrop-brightness":[K,I,j]}],"backdrop-contrast":[{"backdrop-contrast":[K,I,j]}],"backdrop-grayscale":[{"backdrop-grayscale":["",K,I,j]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[K,I,j]}],"backdrop-invert":[{"backdrop-invert":["",K,I,j]}],"backdrop-opacity":[{"backdrop-opacity":[K,I,j]}],"backdrop-saturate":[{"backdrop-saturate":[K,I,j]}],"backdrop-sepia":[{"backdrop-sepia":["",K,I,j]}],"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",I,j]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[K,"initial",I,j]}],ease:[{ease:["linear","initial",y,I,j]}],delay:[{delay:[K,I,j]}],animate:[{animate:["none",b,I,j]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[m,I,j]}],"perspective-origin":[{"perspective-origin":k()}],rotate:[{rotate:W()}],"rotate-x":[{"rotate-x":W()}],"rotate-y":[{"rotate-y":W()}],"rotate-z":[{"rotate-z":W()}],scale:[{scale:Y()}],"scale-x":[{"scale-x":Y()}],"scale-y":[{"scale-y":Y()}],"scale-z":[{"scale-z":Y()}],"scale-3d":["scale-3d"],skew:[{skew:re()}],"skew-x":[{"skew-x":re()}],"skew-y":[{"skew-y":re()}],transform:[{transform:[I,j,"","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:R()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:R()}],"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",I,j]}],"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",I,j]}],fill:[{fill:["none",...R()]}],"stroke-w":[{stroke:[K,ft,Fe,xn]}],stroke:[{stroke:["none",...R()]}],"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 $i(Pr(e))}const zr=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Br=Pr,ue=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return Br(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:o,defaultVariants:a}=t,s=Object.keys(o).map(u=>{const p=n==null?void 0:n[u],f=a==null?void 0:a[u];if(p===null)return null;const g=zr(p)||zr(f);return o[u][g]}),i=n&&Object.entries(n).reduce((u,p)=>{let[f,g]=p;return g===void 0||(u[f]=g),u},{}),c=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,p)=>{let{class:f,className:g,...h}=p;return Object.entries(h).every(v=>{let[m,x]=v;return Array.isArray(x)?x.includes({...a,...i}[m]):{...a,...i}[m]===x})?[...u,f,g]:u},[]);return Br(e,s,c,n==null?void 0:n.class,n==null?void 0:n.className)},Fi=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 Vi({className:e,variant:t,size:n,asChild:r=!1,children:o,...a}){const s=r?fn:"button";return d.jsx(s,{"data-slot":"button",className:F(Fi({variant:t,size:n}),e),...a,children:o})}function Z(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}var ie=globalThis!=null&&globalThis.document?l.useLayoutEffect:()=>{},zi=l[" useInsertionEffect ".trim().toString()]||ie;function qe({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,a,s]=Bi({defaultProp:t,onChange:n}),i=e!==void 0,c=i?e:o;{const p=l.useRef(e!==void 0);l.useEffect(()=>{const f=p.current;f!==i&&console.warn(`${r} is changing from ${f?"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.`),p.current=i},[i,r])}const u=l.useCallback(p=>{var f;if(i){const g=Wi(p)?p(e):p;g!==e&&((f=s.current)==null||f.call(s,g))}else a(p)},[i,e,a,s]);return[c,u]}function Bi({defaultProp:e,onChange:t}){const[n,r]=l.useState(e),o=l.useRef(n),a=l.useRef(t);return zi(()=>{a.current=t},[t]),l.useEffect(()=>{var s;o.current!==n&&((s=a.current)==null||s.call(a,n),o.current=n)},[n,o]),[n,r,a]}function Wi(e){return typeof e=="function"}var Hi=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],H=Hi.reduce((e,t)=>{const n=$e(`Primitive.${t}`),r=l.forwardRef((o,a)=>{const{asChild:s,...i}=o,c=s?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),d.jsx(c,{...i,ref:a})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Ui(e,t){e&&At.flushSync(()=>e.dispatchEvent(t))}var Wr="Toggle",Hr=l.forwardRef((e,t)=>{const{pressed:n,defaultPressed:r,onPressedChange:o,...a}=e,[s,i]=qe({prop:n,onChange:o,defaultProp:r??!1,caller:Wr});return d.jsx(H.button,{type:"button","aria-pressed":s,"data-state":s?"on":"off","data-disabled":e.disabled?"":void 0,...a,ref:t,onClick:Z(e.onClick,()=>{e.disabled||i(!s)})})});Hr.displayName=Wr;var Ur=Hr;const Gr=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"}}),Yr=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"}}),Kr=te.forwardRef(({pressed:e=!1,onPressedChange:t,variant:n="classic",disabled:r=!1,className:o,id:a,name:s,label:i,description:c,labelPosition:u="right","aria-label":p,"aria-labelledby":f,children:g,...h},v)=>{const m=te.useId(),x=a||m,y=`${x}-label`,b=`${x}-description`,w=k=>{!r&&t&&t(k)},E=d.jsx(Ur,{ref:v,pressed:e,onPressedChange:w,disabled:r,"aria-label":p,"aria-labelledby":f||(i?y:void 0),"aria-describedby":c?b:void 0,className:F(Gr({variant:n}),o),id:x,name:s,...h,children:g||d.jsx("span",{className:F(Yr({variant:n})),"aria-hidden":"true"})});return!i&&!c?E:d.jsxs("div",{className:F("flex gap-3",u==="left"?"flex-row-reverse":"flex-row",r&&"opacity-50 cursor-not-allowed"),children:[E,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",r&&"cursor-not-allowed"),children:i}),c&&d.jsx("p",{id:b,className:"text-xs text-muted-foreground mt-1",children:c})]})]})});Kr.displayName="Toggle";const qr=te.forwardRef(({defaultPressed:e=!1,variant:t="classic",disabled:n=!1,className:r,id:o,name:a,label:s,description:i,labelPosition:c="right","aria-label":u,"aria-labelledby":p,onPressedChange:f,children:g,...h},v)=>{const[m,x]=te.useState(e),y=te.useId(),b=o||y,w=`${b}-label`,E=`${b}-description`,k=P=>{n||(x(P),f&&f(P))},N=d.jsx(Ur,{ref:v,pressed:m,onPressedChange:k,disabled:n,"aria-label":u,"aria-labelledby":p||(s?w:void 0),"aria-describedby":i?E:void 0,className:F(Gr({variant:t}),r),id:b,name:a,...h,children:g||d.jsx("span",{className:F(Yr({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",n&&"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",n&&"cursor-not-allowed"),children:s}),i&&d.jsx("p",{id:E,className:"text-xs text-neutral-black-1",children:i})]})]})});qr.displayName="StatefulToggle";function Gi(e,t){const n=l.createContext(t),r=a=>{const{children:s,...i}=a,c=l.useMemo(()=>i,Object.values(i));return d.jsx(n.Provider,{value:c,children:s})};r.displayName=e+"Provider";function o(a){const s=l.useContext(n);if(s)return s;if(t!==void 0)return t;throw new Error(`\`${a}\` must be used within \`${e}\``)}return[r,o]}function Ve(e,t=[]){let n=[];function r(a,s){const i=l.createContext(s),c=n.length;n=[...n,s];const u=f=>{var y;const{scope:g,children:h,...v}=f,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 p(f,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(`\`${f}\` must be used within \`${a}\``)}return[u,p]}const o=()=>{const a=n.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,[r,Yi(o,...t)]}function Yi(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(a){const s=r.reduce((i,{useScope:c,scopeName:u})=>{const f=c(a)[`__scope${u}`];return{...i,...f}},{});return l.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}var Ki=l[" useId ".trim().toString()]||(()=>{}),qi=0;function ce(e){const[t,n]=l.useState(Ki());return ie(()=>{n(r=>r??String(qi++))},[e]),e||(t?`radix-${t}`:"")}function Ae(e){const t=l.useRef(e);return l.useEffect(()=>{t.current=e}),l.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function Xi(e,t=globalThis==null?void 0:globalThis.document){const n=Ae(e);l.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var Zi="DismissableLayer",bn="dismissableLayer.update",Ji="dismissableLayer.pointerDownOutside",Qi="dismissableLayer.focusOutside",Xr,Zr=l.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),pt=l.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:s,onDismiss:i,...c}=e,u=l.useContext(Zr),[p,f]=l.useState(null),g=(p==null?void 0:p.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,h]=l.useState({}),v=ae(t,P=>f(P)),m=Array.from(u.layers),[x]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),y=m.indexOf(x),b=p?m.indexOf(p):-1,w=u.layersWithOutsidePointerEventsDisabled.size>0,E=b>=y,k=nl(P=>{const _=P.target,B=[...u.branches].some(q=>q.contains(_));!E||B||(o==null||o(P),s==null||s(P),P.defaultPrevented||i==null||i())},g),N=rl(P=>{const _=P.target;[...u.branches].some(q=>q.contains(_))||(a==null||a(P),s==null||s(P),P.defaultPrevented||i==null||i())},g);return Xi(P=>{b===u.layers.size-1&&(r==null||r(P),!P.defaultPrevented&&i&&(P.preventDefault(),i()))},g),l.useEffect(()=>{if(p)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(Xr=g.body.style.pointerEvents,g.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(p)),u.layers.add(p),Jr(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(g.body.style.pointerEvents=Xr)}},[p,g,n,u]),l.useEffect(()=>()=>{p&&(u.layers.delete(p),u.layersWithOutsidePointerEventsDisabled.delete(p),Jr())},[p,u]),l.useEffect(()=>{const P=()=>h({});return document.addEventListener(bn,P),()=>document.removeEventListener(bn,P)},[]),d.jsx(H.div,{...c,ref:v,style:{pointerEvents:w?E?"auto":"none":void 0,...e.style},onFocusCapture:Z(e.onFocusCapture,N.onFocusCapture),onBlurCapture:Z(e.onBlurCapture,N.onBlurCapture),onPointerDownCapture:Z(e.onPointerDownCapture,k.onPointerDownCapture)})});pt.displayName=Zi;var el="DismissableLayerBranch",tl=l.forwardRef((e,t)=>{const n=l.useContext(Zr),r=l.useRef(null),o=ae(t,r);return l.useEffect(()=>{const a=r.current;if(a)return n.branches.add(a),()=>{n.branches.delete(a)}},[n.branches]),d.jsx(H.div,{...e,ref:o})});tl.displayName=el;function nl(e,t=globalThis==null?void 0:globalThis.document){const n=Ae(e),r=l.useRef(!1),o=l.useRef(()=>{});return l.useEffect(()=>{const a=i=>{if(i.target&&!r.current){let c=function(){Qr(Ji,n,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);r.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",a),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function rl(e,t=globalThis==null?void 0:globalThis.document){const n=Ae(e),r=l.useRef(!1);return l.useEffect(()=>{const o=a=>{a.target&&!r.current&&Qr(Qi,n,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Jr(){const e=new CustomEvent(bn);document.dispatchEvent(e)}function Qr(e,t,n,{discrete:r}){const o=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Ui(o,a):o.dispatchEvent(a)}var yn="focusScope.autoFocusOnMount",wn="focusScope.autoFocusOnUnmount",eo={bubbles:!1,cancelable:!0},ol="FocusScope",Tt=l.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...s}=e,[i,c]=l.useState(null),u=Ae(o),p=Ae(a),f=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(r){let m=function(w){if(h.paused||!i)return;const E=w.target;i.contains(E)?f.current=E:_e(f.current,{select:!0})},x=function(w){if(h.paused||!i)return;const E=w.relatedTarget;E!==null&&(i.contains(E)||_e(f.current,{select:!0}))},y=function(w){if(document.activeElement===document.body)for(const k of w)k.removedNodes.length>0&&_e(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()}}},[r,i,h.paused]),l.useEffect(()=>{if(i){ro.add(h);const m=document.activeElement;if(!i.contains(m)){const y=new CustomEvent(yn,eo);i.addEventListener(yn,u),i.dispatchEvent(y),y.defaultPrevented||(al(ul(to(i)),{select:!0}),document.activeElement===m&&_e(i))}return()=>{i.removeEventListener(yn,u),setTimeout(()=>{const y=new CustomEvent(wn,eo);i.addEventListener(wn,p),i.dispatchEvent(y),y.defaultPrevented||_e(m??document.body,{select:!0}),i.removeEventListener(wn,p),ro.remove(h)},0)}}},[i,u,p,h]);const v=l.useCallback(m=>{if(!n&&!r||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,E]=sl(b);w&&E?!m.shiftKey&&y===E?(m.preventDefault(),n&&_e(w,{select:!0})):m.shiftKey&&y===w&&(m.preventDefault(),n&&_e(E,{select:!0})):y===b&&m.preventDefault()}},[n,r,h.paused]);return d.jsx(H.div,{tabIndex:-1,...s,ref:g,onKeyDown:v})});Tt.displayName=ol;function al(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(_e(r,{select:t}),document.activeElement!==n)return}function sl(e){const t=to(e),n=no(t,e),r=no(t.reverse(),e);return[n,r]}function to(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function no(e,t){for(const n of e)if(!il(n,{upTo:t}))return n}function il(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 ll(e){return e instanceof HTMLInputElement&&"select"in e}function _e(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&ll(e)&&t&&e.select()}}var ro=cl();function cl(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=oo(e,t),e.unshift(t)},remove(t){var n;e=oo(e,t),(n=e[0])==null||n.resume()}}}function oo(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function ul(e){return e.filter(t=>t.tagName!=="A")}var dl="Portal",mt=l.forwardRef((e,t)=>{var i;const{container:n,...r}=e,[o,a]=l.useState(!1);ie(()=>a(!0),[]);const s=n||o&&((i=globalThis==null?void 0:globalThis.document)==null?void 0:i.body);return s?br.createPortal(d.jsx(H.div,{...r,ref:t}),s):null});mt.displayName=dl;function fl(e,t){return l.useReducer((n,r)=>t[n][r]??n,e)}var Ne=e=>{const{present:t,children:n}=e,r=pl(t),o=typeof n=="function"?n({present:r.isPresent}):l.Children.only(n),a=ae(r.ref,ml(o));return typeof n=="function"||r.isPresent?l.cloneElement(o,{ref:a}):null};Ne.displayName="Presence";function pl(e){const[t,n]=l.useState(),r=l.useRef(null),o=l.useRef(e),a=l.useRef("none"),s=e?"mounted":"unmounted",[i,c]=fl(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return l.useEffect(()=>{const u=Ot(r.current);a.current=i==="mounted"?u:"none"},[i]),ie(()=>{const u=r.current,p=o.current;if(p!==e){const g=a.current,h=Ot(u);e?c("MOUNT"):h==="none"||(u==null?void 0:u.display)==="none"?c("UNMOUNT"):c(p&&g!==h?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,c]),ie(()=>{if(t){let u;const p=t.ownerDocument.defaultView??window,f=h=>{const m=Ot(r.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=p.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=x)})}},g=h=>{h.target===t&&(a.current=Ot(r.current))};return t.addEventListener("animationstart",g),t.addEventListener("animationcancel",f),t.addEventListener("animationend",f),()=>{p.clearTimeout(u),t.removeEventListener("animationstart",g),t.removeEventListener("animationcancel",f),t.removeEventListener("animationend",f)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(i),ref:l.useCallback(u=>{r.current=u?getComputedStyle(u):null,n(u)},[])}}function Ot(e){return(e==null?void 0:e.animationName)||"none"}function ml(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Sn=0;function Cn(){l.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??ao()),document.body.insertAdjacentElement("beforeend",e[1]??ao()),Sn++,()=>{Sn===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Sn--}},[])}function ao(){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 xe=function(){return xe=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},xe.apply(this,arguments)};function so(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function hl(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,a;r<o;r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;var jt="right-scroll-bar-position",It="width-before-scroll-bar",gl="with-scroll-bars-hidden",vl="--removed-body-scroll-bar-size";function En(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function xl(e,t){var n=te.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}var bl=typeof window<"u"?l.useLayoutEffect:l.useEffect,io=new WeakMap;function yl(e,t){var n=xl(null,function(r){return e.forEach(function(o){return En(o,r)})});return bl(function(){var r=io.get(n);if(r){var o=new Set(r),a=new Set(e),s=n.current;o.forEach(function(i){a.has(i)||En(i,null)}),a.forEach(function(i){o.has(i)||En(i,s)})}io.set(n,e)},[e]),n}function wl(e){return e}function Sl(e,t){t===void 0&&(t=wl);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(a){var s=t(a,r);return n.push(s),function(){n=n.filter(function(i){return i!==s})}},assignSyncMedium:function(a){for(r=!0;n.length;){var s=n;n=[],s.forEach(a)}n={push:function(i){return a(i)},filter:function(){return n}}},assignMedium:function(a){r=!0;var s=[];if(n.length){var i=n;n=[],i.forEach(a),s=n}var c=function(){var p=s;s=[],p.forEach(a)},u=function(){return Promise.resolve().then(c)};u(),n={push:function(p){s.push(p),u()},filter:function(p){return s=s.filter(p),n}}}};return o}function Cl(e){e===void 0&&(e={});var t=Sl(null);return t.options=xe({async:!0,ssr:!1},e),t}var lo=function(e){var t=e.sideCar,n=so(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return l.createElement(r,xe({},n))};lo.isSideCarExport=!0;function El(e,t){return e.useMedium(t),lo}var co=Cl(),kn=function(){},Mt=l.forwardRef(function(e,t){var n=l.useRef(null),r=l.useState({onScrollCapture:kn,onWheelCapture:kn,onTouchMoveCapture:kn}),o=r[0],a=r[1],s=e.forwardProps,i=e.children,c=e.className,u=e.removeScrollBar,p=e.enabled,f=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,E=so(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),k=g,N=yl([n,t]),P=xe(xe({},E),o);return l.createElement(l.Fragment,null,p&&l.createElement(k,{sideCar:co,removeScrollBar:u,shards:f,noRelative:h,noIsolation:v,inert:m,setCallbacks:a,allowPinchZoom:!!x,lockRef:n,gapMode:w}),s?l.cloneElement(l.Children.only(i),xe(xe({},P),{ref:N})):l.createElement(b,xe({},P,{className:c,ref:N}),i))});Mt.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Mt.classNames={fullWidth:It,zeroRight:jt};var kl=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Pl(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=kl();return t&&e.setAttribute("nonce",t),e}function Rl(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Al(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var _l=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Pl())&&(Rl(t,n),Al(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Nl=function(){var e=_l();return function(t,n){l.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},uo=function(){var e=Nl(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},Tl={left:0,top:0,right:0,gap:0},Pn=function(e){return parseInt(e||"",10)||0},Ol=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[Pn(n),Pn(r),Pn(o)]},jl=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Tl;var t=Ol(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},Il=uo(),Xe="data-scroll-locked",Ml=function(e,t,n,r){var o=e.left,a=e.top,s=e.right,i=e.gap;return n===void 0&&(n="margin"),`
|
|
23
|
+
.`.concat(gl,` {
|
|
24
24
|
overflow: hidden `).concat(r,`;
|
|
25
25
|
padding-right: `).concat(i,"px ").concat(r,`;
|
|
26
26
|
}
|
|
@@ -54,51 +54,51 @@ React keys must be passed directly to JSX without using spread:
|
|
|
54
54
|
}
|
|
55
55
|
|
|
56
56
|
body[`).concat(Xe,`] {
|
|
57
|
-
`).concat(
|
|
57
|
+
`).concat(vl,": ").concat(i,`px;
|
|
58
58
|
}
|
|
59
|
-
`)},fo=function(){var e=parseInt(document.body.getAttribute(Xe)||"0",10);return isFinite(e)?e:0},
|
|
59
|
+
`)},fo=function(){var e=parseInt(document.body.getAttribute(Xe)||"0",10);return isFinite(e)?e:0},Dl=function(){l.useEffect(function(){return document.body.setAttribute(Xe,(fo()+1).toString()),function(){var e=fo()-1;e<=0?document.body.removeAttribute(Xe):document.body.setAttribute(Xe,e.toString())}},[])},Ll=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;Dl();var a=l.useMemo(function(){return jl(o)},[o]);return l.createElement(Il,{styles:Ml(a,!t,o,n?"":"!important")})},Rn=!1;if(typeof window<"u")try{var Dt=Object.defineProperty({},"passive",{get:function(){return Rn=!0,!0}});window.addEventListener("test",Dt,Dt),window.removeEventListener("test",Dt,Dt)}catch{Rn=!1}var Ze=Rn?{passive:!1}:!1,$l=function(e){return e.tagName==="TEXTAREA"},po=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!$l(e)&&n[t]==="visible")},Fl=function(e){return po(e,"overflowY")},Vl=function(e){return po(e,"overflowX")},mo=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=ho(e,r);if(o){var a=go(e,r),s=a[1],i=a[2];if(s>i)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},zl=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},Bl=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},ho=function(e,t){return e==="v"?Fl(t):Vl(t)},go=function(e,t){return e==="v"?zl(t):Bl(t)},Wl=function(e,t){return e==="h"&&t==="rtl"?-1:1},Hl=function(e,t,n,r,o){var a=Wl(e,window.getComputedStyle(t).direction),s=a*r,i=n.target,c=t.contains(i),u=!1,p=s>0,f=0,g=0;do{if(!i)break;var h=go(e,i),v=h[0],m=h[1],x=h[2],y=m-x-a*v;(v||y)&&ho(e,i)&&(f+=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(p&&Math.abs(f)<1||!p&&Math.abs(g)<1)&&(u=!0),u},Lt=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},vo=function(e){return[e.deltaX,e.deltaY]},xo=function(e){return e&&"current"in e?e.current:e},Ul=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Gl=function(e){return`
|
|
60
60
|
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
61
61
|
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
62
|
-
`)},
|
|
62
|
+
`)},Yl=0,Je=[];function Kl(e){var t=l.useRef([]),n=l.useRef([0,0]),r=l.useRef(),o=l.useState(Yl++)[0],a=l.useState(uo)[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=hl([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=Lt(m),b=n.current,w="deltaX"in m?m.deltaX:b[0]-y[0],E="deltaY"in m?m.deltaY:b[1]-y[1],k,N=m.target,P=Math.abs(w)>Math.abs(E)?"h":"v";if("touches"in m&&P==="h"&&N.type==="range")return!1;var _=mo(P,N);if(!_)return!0;if(_?k=P:(k=P==="v"?"h":"v",_=mo(P,N)),!_)return!1;if(!r.current&&"changedTouches"in m&&(w||E)&&(r.current=k),!k)return!0;var B=r.current||k;return Hl(B,x,m,B==="h"?w:E)},[]),c=l.useCallback(function(m){var x=m;if(!(!Je.length||Je[Je.length-1]!==a)){var y="deltaY"in x?vo(x):Lt(x),b=t.current.filter(function(k){return k.name===x.type&&(k.target===x.target||x.target===k.shadowParent)&&Ul(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)}),E=w.length>0?i(x,w[0]):!s.current.noIsolation;E&&x.cancelable&&x.preventDefault()}}},[]),u=l.useCallback(function(m,x,y,b){var w={name:m,delta:x,target:y,should:b,shadowParent:ql(y)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(E){return E!==w})},1)},[]),p=l.useCallback(function(m){n.current=Lt(m),r.current=void 0},[]),f=l.useCallback(function(m){u(m.type,vo(m),m.target,i(m,e.lockRef.current))},[]),g=l.useCallback(function(m){u(m.type,Lt(m),m.target,i(m,e.lockRef.current))},[]);l.useEffect(function(){return Je.push(a),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:g}),document.addEventListener("wheel",c,Ze),document.addEventListener("touchmove",c,Ze),document.addEventListener("touchstart",p,Ze),function(){Je=Je.filter(function(m){return m!==a}),document.removeEventListener("wheel",c,Ze),document.removeEventListener("touchmove",c,Ze),document.removeEventListener("touchstart",p,Ze)}},[]);var h=e.removeScrollBar,v=e.inert;return l.createElement(l.Fragment,null,v?l.createElement(a,{styles:Gl(o)}):null,h?l.createElement(Ll,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function ql(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Xl=El(co,Kl);var $t=l.forwardRef(function(e,t){return l.createElement(Mt,xe({},e,{ref:t,sideCar:Xl}))});$t.classNames=Mt.classNames;var Zl=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Qe=new WeakMap,Ft=new WeakMap,Vt={},An=0,bo=function(e){return e&&(e.host||bo(e.parentNode))},Jl=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=bo(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},Ql=function(e,t,n,r){var o=Jl(t,Array.isArray(e)?e:[e]);Vt[n]||(Vt[n]=new WeakMap);var a=Vt[n],s=[],i=new Set,c=new Set(o),u=function(f){!f||i.has(f)||(i.add(f),u(f.parentNode))};o.forEach(u);var p=function(f){!f||c.has(f)||Array.prototype.forEach.call(f.children,function(g){if(i.has(g))p(g);else try{var h=g.getAttribute(r),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&&Ft.set(g,!0),x===1&&g.setAttribute(n,"true"),v||g.setAttribute(r,"true")}catch(y){console.error("aria-hidden: cannot operate on ",g,y)}})};return p(t),i.clear(),An++,function(){s.forEach(function(f){var g=Qe.get(f)-1,h=a.get(f)-1;Qe.set(f,g),a.set(f,h),g||(Ft.has(f)||f.removeAttribute(r),Ft.delete(f)),h||f.removeAttribute(n)}),An--,An||(Qe=new WeakMap,Qe=new WeakMap,Ft=new WeakMap,Vt={})}},_n=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=Zl(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),Ql(r,o,n,"aria-hidden")):function(){return null}},zt="Dialog",[yo,Zp]=Ve(zt),[ec,me]=yo(zt),wo=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:a,modal:s=!0}=e,i=l.useRef(null),c=l.useRef(null),[u,p]=qe({prop:r,defaultProp:o??!1,onChange:a,caller:zt});return d.jsx(ec,{scope:t,triggerRef:i,contentRef:c,contentId:ce(),titleId:ce(),descriptionId:ce(),open:u,onOpenChange:p,onOpenToggle:l.useCallback(()=>p(f=>!f),[p]),modal:s,children:n})};wo.displayName=zt;var So="DialogTrigger",Co=l.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=me(So,n),a=ae(t,o.triggerRef);return d.jsx(H.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":On(o.open),...r,ref:a,onClick:Z(e.onClick,o.onOpenToggle)})});Co.displayName=So;var Nn="DialogPortal",[tc,Eo]=yo(Nn,{forceMount:void 0}),ko=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,a=me(Nn,t);return d.jsx(tc,{scope:t,forceMount:n,children:l.Children.map(r,s=>d.jsx(Ne,{present:n||a.open,children:d.jsx(mt,{asChild:!0,container:o,children:s})}))})};ko.displayName=Nn;var Bt="DialogOverlay",Po=l.forwardRef((e,t)=>{const n=Eo(Bt,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=me(Bt,e.__scopeDialog);return a.modal?d.jsx(Ne,{present:r||a.open,children:d.jsx(rc,{...o,ref:t})}):null});Po.displayName=Bt;var nc=$e("DialogOverlay.RemoveScroll"),rc=l.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=me(Bt,n);return d.jsx($t,{as:nc,allowPinchZoom:!0,shards:[o.contentRef],children:d.jsx(H.div,{"data-state":On(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),ze="DialogContent",Ro=l.forwardRef((e,t)=>{const n=Eo(ze,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=me(ze,e.__scopeDialog);return d.jsx(Ne,{present:r||a.open,children:a.modal?d.jsx(oc,{...o,ref:t}):d.jsx(ac,{...o,ref:t})})});Ro.displayName=ze;var oc=l.forwardRef((e,t)=>{const n=me(ze,e.__scopeDialog),r=l.useRef(null),o=ae(t,n.contentRef,r);return l.useEffect(()=>{const a=r.current;if(a)return _n(a)},[]),d.jsx(Ao,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Z(e.onCloseAutoFocus,a=>{var s;a.preventDefault(),(s=n.triggerRef.current)==null||s.focus()}),onPointerDownOutside:Z(e.onPointerDownOutside,a=>{const s=a.detail.originalEvent,i=s.button===0&&s.ctrlKey===!0;(s.button===2||i)&&a.preventDefault()}),onFocusOutside:Z(e.onFocusOutside,a=>a.preventDefault())})}),ac=l.forwardRef((e,t)=>{const n=me(ze,e.__scopeDialog),r=l.useRef(!1),o=l.useRef(!1);return d.jsx(Ao,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{var s,i;(s=e.onCloseAutoFocus)==null||s.call(e,a),a.defaultPrevented||(r.current||(i=n.triggerRef.current)==null||i.focus(),a.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:a=>{var c,u;(c=e.onInteractOutside)==null||c.call(e,a),a.defaultPrevented||(r.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const s=a.target;((u=n.triggerRef.current)==null?void 0:u.contains(s))&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),Ao=l.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:a,...s}=e,i=me(ze,n),c=l.useRef(null),u=ae(t,c);return Cn(),d.jsxs(d.Fragment,{children:[d.jsx(Tt,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:a,children:d.jsx(pt,{role:"dialog",id:i.contentId,"aria-describedby":i.descriptionId,"aria-labelledby":i.titleId,"data-state":On(i.open),...s,ref:u,onDismiss:()=>i.onOpenChange(!1)})}),d.jsxs(d.Fragment,{children:[d.jsx(sc,{titleId:i.titleId}),d.jsx(lc,{contentRef:c,descriptionId:i.descriptionId})]})]})}),Tn="DialogTitle",_o=l.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=me(Tn,n);return d.jsx(H.h2,{id:o.titleId,...r,ref:t})});_o.displayName=Tn;var No="DialogDescription",To=l.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=me(No,n);return d.jsx(H.p,{id:o.descriptionId,...r,ref:t})});To.displayName=No;var Oo="DialogClose",jo=l.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=me(Oo,n);return d.jsx(H.button,{type:"button",...r,ref:t,onClick:Z(e.onClick,()=>o.onOpenChange(!1))})});jo.displayName=Oo;function On(e){return e?"open":"closed"}var Io="DialogTitleWarning",[Jp,Mo]=Gi(Io,{contentName:ze,titleName:Tn,docsSlug:"dialog"}),sc=({titleId:e})=>{const t=Mo(Io),n=`\`${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(n))},[n,e]),null},
|
|
66
|
+
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return l.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},ic="DialogDescriptionWarning",lc=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Mo(ic).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(r))},[r,e,t]),null},Do=wo,cc=Co,Lo=ko,$o=Po,Fo=Ro,uc=_o,dc=To,Vo=jo;/**
|
|
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
|
|
71
|
+
*/const fc=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),pc=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,r)=>r?r.toUpperCase():n.toLowerCase()),zo=e=>{const t=pc(e);return t.charAt(0).toUpperCase()+t.slice(1)},Bo=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim(),mc=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.
|
|
75
75
|
* See the LICENSE file in the root directory of this source tree.
|
|
76
|
-
*/var
|
|
76
|
+
*/var hc={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
|
|
77
77
|
* @license lucide-react v0.542.0 - ISC
|
|
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
|
|
81
|
+
*/const gc=te.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:a,iconNode:s,...i},c)=>te.createElement("svg",{ref:c,...hc,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:Bo("lucide",o),...!a&&!mc(i)&&{"aria-hidden":"true"},...i},[...s.map(([u,p])=>te.createElement(u,p)),...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 le=(e,t)=>{const n=te.forwardRef(({className:r,...o},a)=>te.createElement(
|
|
86
|
+
*/const le=(e,t)=>{const n=te.forwardRef(({className:r,...o},a)=>te.createElement(gc,{ref:a,iconNode:t,className:Bo(`lucide-${fc(zo(e))}`,`lucide-${e}`,r),...o}));return n.displayName=zo(e),n};/**
|
|
87
87
|
* @license lucide-react v0.542.0 - ISC
|
|
88
88
|
*
|
|
89
89
|
* This source code is licensed under the ISC license.
|
|
90
90
|
* See the LICENSE file in the root directory of this source tree.
|
|
91
|
-
*/const
|
|
91
|
+
*/const vc=le("camera",[["path",{d:"M13.997 4a2 2 0 0 1 1.76 1.05l.486.9A2 2 0 0 0 18.003 7H20a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2h1.997a2 2 0 0 0 1.759-1.048l.489-.904A2 2 0 0 1 10.004 4z",key:"18u6gg"}],["circle",{cx:"12",cy:"13",r:"3",key:"1vg3eu"}]]);/**
|
|
92
92
|
* @license lucide-react v0.542.0 - ISC
|
|
93
93
|
*
|
|
94
94
|
* This source code is licensed under the ISC license.
|
|
95
95
|
* See the LICENSE file in the root directory of this source tree.
|
|
96
|
-
*/const
|
|
96
|
+
*/const xc=le("chart-pie",[["path",{d:"M21 12c.552 0 1.005-.449.95-.998a10 10 0 0 0-8.953-8.951c-.55-.055-.998.398-.998.95v8a1 1 0 0 0 1 1z",key:"pzmjnu"}],["path",{d:"M21.21 15.89A10 10 0 1 1 8 2.83",key:"k2fpak"}]]);/**
|
|
97
97
|
* @license lucide-react v0.542.0 - ISC
|
|
98
98
|
*
|
|
99
99
|
* This source code is licensed under the ISC license.
|
|
100
100
|
* See the LICENSE file in the root directory of this source tree.
|
|
101
|
-
*/const
|
|
101
|
+
*/const bc=le("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
|
|
102
102
|
* @license lucide-react v0.542.0 - ISC
|
|
103
103
|
*
|
|
104
104
|
* This source code is licensed under the ISC license.
|
|
@@ -108,32 +108,32 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
|
|
|
108
108
|
*
|
|
109
109
|
* This source code is licensed under the ISC license.
|
|
110
110
|
* See the LICENSE file in the root directory of this source tree.
|
|
111
|
-
*/const
|
|
111
|
+
*/const yc=le("chevron-up",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/**
|
|
112
112
|
* @license lucide-react v0.542.0 - ISC
|
|
113
113
|
*
|
|
114
114
|
* This source code is licensed under the ISC license.
|
|
115
115
|
* See the LICENSE file in the root directory of this source tree.
|
|
116
|
-
*/const
|
|
116
|
+
*/const wc=le("circle-check",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
|
|
117
117
|
* @license lucide-react v0.542.0 - ISC
|
|
118
118
|
*
|
|
119
119
|
* This source code is licensed under the ISC license.
|
|
120
120
|
* See the LICENSE file in the root directory of this source tree.
|
|
121
|
-
*/const
|
|
121
|
+
*/const Sc=le("circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);/**
|
|
122
122
|
* @license lucide-react v0.542.0 - ISC
|
|
123
123
|
*
|
|
124
124
|
* This source code is licensed under the ISC license.
|
|
125
125
|
* See the LICENSE file in the root directory of this source tree.
|
|
126
|
-
*/const
|
|
126
|
+
*/const Cc=le("eye-off",[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]);/**
|
|
127
127
|
* @license lucide-react v0.542.0 - ISC
|
|
128
128
|
*
|
|
129
129
|
* This source code is licensed under the ISC license.
|
|
130
130
|
* See the LICENSE file in the root directory of this source tree.
|
|
131
|
-
*/const
|
|
131
|
+
*/const Ec=le("eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
|
|
132
132
|
* @license lucide-react v0.542.0 - ISC
|
|
133
133
|
*
|
|
134
134
|
* This source code is licensed under the ISC license.
|
|
135
135
|
* See the LICENSE file in the root directory of this source tree.
|
|
136
|
-
*/const
|
|
136
|
+
*/const kc=le("image",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]]);/**
|
|
137
137
|
* @license lucide-react v0.542.0 - ISC
|
|
138
138
|
*
|
|
139
139
|
* This source code is licensed under the ISC license.
|
|
@@ -143,7 +143,7 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
|
|
|
143
143
|
*
|
|
144
144
|
* This source code is licensed under the ISC license.
|
|
145
145
|
* See the LICENSE file in the root directory of this source tree.
|
|
146
|
-
*/const
|
|
146
|
+
*/const Pc=le("smile",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 14s1.5 2 4 2 4-2 4-2",key:"1y1vjs"}],["line",{x1:"9",x2:"9.01",y1:"9",y2:"9",key:"yxxnd0"}],["line",{x1:"15",x2:"15.01",y1:"9",y2:"9",key:"1p4y9e"}]]);/**
|
|
147
147
|
* @license lucide-react v0.542.0 - ISC
|
|
148
148
|
*
|
|
149
149
|
* This source code is licensed under the ISC license.
|
|
@@ -153,12 +153,12 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
|
|
|
153
153
|
*
|
|
154
154
|
* This source code is licensed under the ISC license.
|
|
155
155
|
* See the LICENSE file in the root directory of this source tree.
|
|
156
|
-
*/const
|
|
156
|
+
*/const Rc=le("video",[["path",{d:"m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5",key:"ftymec"}],["rect",{x:"2",y:"6",width:"14",height:"12",rx:"2",key:"158x01"}]]);/**
|
|
157
157
|
* @license lucide-react v0.542.0 - ISC
|
|
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 Uo=le("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);function Rc({...e}){return d.jsx(Do,{"data-slot":"dialog",...e})}function Ac({...e}){return d.jsx(lc,{"data-slot":"dialog-trigger",...e})}function Go({...e}){return d.jsx(Lo,{"data-slot":"dialog-portal",...e})}function _c({...e}){return d.jsx(Vo,{"data-slot":"dialog-close",...e})}function Yo({className:e,...t}){return d.jsx($o,{"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 Nc({className:e,children:t,showCloseButton:n=!0,...r}){return d.jsxs(Go,{"data-slot":"dialog-portal",children:[d.jsx(Yo,{}),d.jsxs(Fo,{"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),...r,children:[t,n&&d.jsxs(Vo,{"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(Uo,{}),d.jsx("span",{className:"sr-only",children:"Close"})]})]})]})}function Tc({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 Oc({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 jc({className:e,...t}){return d.jsx(cc,{"data-slot":"dialog-title",className:F("text-lg leading-none font-semibold ",e),...t})}function Ic({className:e,...t}){return d.jsx(uc,{"data-slot":"dialog-description",className:F("text-muted-foreground text-sm",e),...t})}const Mc=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 Ko({className:e,variant:t,type:n="filled",asChild:r=!1,children:o,...a}){const s=r?fn:"span";return d.jsx(s,{"data-slot":"badge",className:F(Mc({variant:t,type:n}),e),...a,children:o})}const Dc=["top","right","bottom","left"],Te=Math.min,de=Math.max,Wt=Math.round,Ht=Math.floor,be=e=>({x:e,y:e}),Lc={left:"right",right:"left",bottom:"top",top:"bottom"},$c={start:"end",end:"start"};function In(e,t,n){return de(e,Te(t,n))}function ke(e,t){return typeof e=="function"?e(t):e}function Pe(e){return e.split("-")[0]}function et(e){return e.split("-")[1]}function Mn(e){return e==="x"?"y":"x"}function Dn(e){return e==="y"?"height":"width"}const Fc=new Set(["top","bottom"]);function ye(e){return Fc.has(Pe(e))?"y":"x"}function Ln(e){return Mn(ye(e))}function Vc(e,t,n){n===void 0&&(n=!1);const r=et(e),o=Ln(e),a=Dn(o);let s=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(s=Ut(s)),[s,Ut(s)]}function zc(e){const t=Ut(e);return[$n(e),t,$n(t)]}function $n(e){return e.replace(/start|end/g,t=>$c[t])}const qo=["left","right"],Xo=["right","left"],Bc=["top","bottom"],Wc=["bottom","top"];function Hc(e,t,n){switch(e){case"top":case"bottom":return n?t?Xo:qo:t?qo:Xo;case"left":case"right":return t?Bc:Wc;default:return[]}}function Uc(e,t,n,r){const o=et(e);let a=Hc(Pe(e),n==="start",r);return o&&(a=a.map(s=>s+"-"+o),t&&(a=a.concat(a.map($n)))),a}function Ut(e){return e.replace(/left|right|bottom|top/g,t=>Lc[t])}function Gc(e){return{top:0,right:0,bottom:0,left:0,...e}}function Zo(e){return typeof e!="number"?Gc(e):{top:e,right:e,bottom:e,left:e}}function Gt(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function Jo(e,t,n){let{reference:r,floating:o}=e;const a=ye(t),s=Ln(t),i=Dn(s),c=Pe(t),u=a==="y",p=r.x+r.width/2-o.width/2,f=r.y+r.height/2-o.height/2,g=r[i]/2-o[i]/2;let h;switch(c){case"top":h={x:p,y:r.y-o.height};break;case"bottom":h={x:p,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:f};break;case"left":h={x:r.x-o.width,y:f};break;default:h={x:r.x,y:r.y}}switch(et(t)){case"start":h[s]-=g*(n&&u?-1:1);break;case"end":h[s]+=g*(n&&u?-1:1);break}return h}const Yc=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:a=[],platform:s}=n,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:p,y:f}=Jo(u,r,c),g=r,h={},v=0;for(let m=0;m<i.length;m++){const{name:x,fn:y}=i[m],{x:b,y:w,data:E,reset:k}=await y({x:p,y:f,initialPlacement:r,placement:g,strategy:o,middlewareData:h,rects:u,platform:s,elements:{reference:e,floating:t}});p=b??p,f=w??f,h={...h,[x]:{...h[x],...E}},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:p,y:f}=Jo(u,g,c)),m=-1)}return{x:p,y:f,placement:g,strategy:o,middlewareData:h}};async function ht(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:a,rects:s,elements:i,strategy:c}=e,{boundary:u="clippingAncestors",rootBoundary:p="viewport",elementContext:f="floating",altBoundary:g=!1,padding:h=0}=ke(t,e),v=Zo(h),x=i[g?f==="floating"?"reference":"floating":f],y=Gt(await a.getClippingRect({element:(n=await(a.isElement==null?void 0:a.isElement(x)))==null||n?x:x.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(i.floating)),boundary:u,rootBoundary:p,strategy:c})),b=f==="floating"?{x:r,y:o,width:s.floating.width,height:s.floating.height}:s.reference,w=await(a.getOffsetParent==null?void 0:a.getOffsetParent(i.floating)),E=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=Gt(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:i,rect:b,offsetParent:w,strategy:c}):b);return{top:(y.top-k.top+v.top)/E.y,bottom:(k.bottom-y.bottom+v.bottom)/E.y,left:(y.left-k.left+v.left)/E.x,right:(k.right-y.right+v.right)/E.x}}const Kc=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:a,platform:s,elements:i,middlewareData:c}=t,{element:u,padding:p=0}=ke(e,t)||{};if(u==null)return{};const f=Zo(p),g={x:n,y:r},h=Ln(o),v=Dn(h),m=await s.getDimensions(u),x=h==="y",y=x?"top":"left",b=x?"bottom":"right",w=x?"clientHeight":"clientWidth",E=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 P=N?N[w]:0;(!P||!await(s.isElement==null?void 0:s.isElement(N)))&&(P=i.floating[w]||a.floating[v]);const _=E/2-k/2,B=P/2-m[v]/2-1,q=Te(f[y],B),Q=Te(f[b],B),J=q,ee=P-m[v]-Q,V=P/2-m[v]/2+_,X=In(J,V,ee),$=!c.arrow&&et(o)!=null&&V!==X&&a.reference[v]/2-(V<J?q:Q)-m[v]/2<0,z=$?V<J?V-J:V-ee:0;return{[h]:g[h]+z,data:{[h]:X,centerOffset:V-X-z,...$&&{alignmentOffset:z}},reset:$}}}),qc=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:a,rects:s,initialPlacement:i,platform:c,elements:u}=t,{mainAxis:p=!0,crossAxis:f=!0,fallbackPlacements:g,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:m=!0,...x}=ke(e,t);if((n=a.arrow)!=null&&n.alignmentOffset)return{};const y=Pe(o),b=ye(i),w=Pe(i)===i,E=await(c.isRTL==null?void 0:c.isRTL(u.floating)),k=g||(w||!m?[Ut(i)]:zc(i)),N=v!=="none";!g&&N&&k.push(...Uc(i,m,v,E));const P=[i,...k],_=await ht(t,x),B=[];let q=((r=a.flip)==null?void 0:r.overflows)||[];if(p&&B.push(_[y]),f){const V=Vc(o,s,E);B.push(_[V[0]],_[V[1]])}if(q=[...q,{placement:o,overflows:B}],!B.every(V=>V<=0)){var Q,J;const V=(((Q=a.flip)==null?void 0:Q.index)||0)+1,X=P[V];if(X&&(!(f==="alignment"?b!==ye(X):!1)||q.every(R=>ye(R.placement)===b?R.overflows[0]>0:!0)))return{data:{index:V,overflows:q},reset:{placement:X}};let $=(J=q.filter(z=>z.overflows[0]<=0).sort((z,R)=>z.overflows[1]-R.overflows[1])[0])==null?void 0:J.placement;if(!$)switch(h){case"bestFit":{var ee;const z=(ee=q.filter(R=>{if(N){const ne=ye(R.placement);return ne===b||ne==="y"}return!0}).map(R=>[R.placement,R.overflows.filter(ne=>ne>0).reduce((ne,C)=>ne+C,0)]).sort((R,ne)=>R[1]-ne[1])[0])==null?void 0:ee[0];z&&($=z);break}case"initialPlacement":$=i;break}if(o!==$)return{reset:{placement:$}}}return{}}}};function Qo(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function ea(e){return Dc.some(t=>e[t]>=0)}const Xc=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=ke(e,t);switch(r){case"referenceHidden":{const a=await ht(t,{...o,elementContext:"reference"}),s=Qo(a,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:ea(s)}}}case"escaped":{const a=await ht(t,{...o,altBoundary:!0}),s=Qo(a,n.floating);return{data:{escapedOffsets:s,escaped:ea(s)}}}default:return{}}}}},ta=new Set(["left","top"]);async function Zc(e,t){const{placement:n,platform:r,elements:o}=e,a=await(r.isRTL==null?void 0:r.isRTL(o.floating)),s=Pe(n),i=et(n),c=ye(n)==="y",u=ta.has(s)?-1:1,p=a&&c?-1:1,f=ke(t,e);let{mainAxis:g,crossAxis:h,alignmentAxis:v}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return i&&typeof v=="number"&&(h=i==="end"?v*-1:v),c?{x:h*p,y:g*u}:{x:g*u,y:h*p}}const Jc=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:a,placement:s,middlewareData:i}=t,c=await Zc(t,e);return s===((n=i.offset)==null?void 0:n.placement)&&(r=i.arrow)!=null&&r.alignmentOffset?{}:{x:o+c.x,y:a+c.y,data:{...c,placement:s}}}}},Qc=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,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}=ke(e,t),u={x:n,y:r},p=await ht(t,c),f=ye(Pe(o)),g=Mn(f);let h=u[g],v=u[f];if(a){const x=g==="y"?"top":"left",y=g==="y"?"bottom":"right",b=h+p[x],w=h-p[y];h=In(b,h,w)}if(s){const x=f==="y"?"top":"left",y=f==="y"?"bottom":"right",b=v+p[x],w=v-p[y];v=In(b,v,w)}const m=i.fn({...t,[g]:h,[f]:v});return{...m,data:{x:m.x-n,y:m.y-r,enabled:{[g]:a,[f]:s}}}}}},eu=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:a,middlewareData:s}=t,{offset:i=0,mainAxis:c=!0,crossAxis:u=!0}=ke(e,t),p={x:n,y:r},f=ye(o),g=Mn(f);let h=p[g],v=p[f];const m=ke(i,t),x=typeof m=="number"?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(c){const w=g==="y"?"height":"width",E=a.reference[g]-a.floating[w]+x.mainAxis,k=a.reference[g]+a.reference[w]-x.mainAxis;h<E?h=E:h>k&&(h=k)}if(u){var y,b;const w=g==="y"?"width":"height",E=ta.has(Pe(o)),k=a.reference[f]-a.floating[w]+(E&&((y=s.offset)==null?void 0:y[f])||0)+(E?0:x.crossAxis),N=a.reference[f]+a.reference[w]+(E?0:((b=s.offset)==null?void 0:b[f])||0)-(E?x.crossAxis:0);v<k?v=k:v>N&&(v=N)}return{[g]:h,[f]:v}}}},tu=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:a,platform:s,elements:i}=t,{apply:c=()=>{},...u}=ke(e,t),p=await ht(t,u),f=Pe(o),g=et(o),h=ye(o)==="y",{width:v,height:m}=a.floating;let x,y;f==="top"||f==="bottom"?(x=f,y=g===(await(s.isRTL==null?void 0:s.isRTL(i.floating))?"start":"end")?"left":"right"):(y=f,x=g==="end"?"top":"bottom");const b=m-p.top-p.bottom,w=v-p.left-p.right,E=Te(m-p[x],b),k=Te(v-p[y],w),N=!t.middlewareData.shift;let P=E,_=k;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(_=w),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(P=b),N&&!g){const q=de(p.left,0),Q=de(p.right,0),J=de(p.top,0),ee=de(p.bottom,0);h?_=v-2*(q!==0||Q!==0?q+Q:de(p.left,p.right)):P=m-2*(J!==0||ee!==0?J+ee:de(p.top,p.bottom))}await c({...t,availableWidth:_,availableHeight:P});const B=await s.getDimensions(i.floating);return v!==B.width||m!==B.height?{reset:{rects:!0}}:{}}}};function Yt(){return typeof window<"u"}function tt(e){return na(e)?(e.nodeName||"").toLowerCase():"#document"}function fe(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function we(e){var t;return(t=(na(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function na(e){return Yt()?e instanceof Node||e instanceof fe(e).Node:!1}function he(e){return Yt()?e instanceof Element||e instanceof fe(e).Element:!1}function Se(e){return Yt()?e instanceof HTMLElement||e instanceof fe(e).HTMLElement:!1}function ra(e){return!Yt()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof fe(e).ShadowRoot}const nu=new Set(["inline","contents"]);function gt(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=ge(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!nu.has(o)}const ru=new Set(["table","td","th"]);function ou(e){return ru.has(tt(e))}const au=[":popover-open",":modal"];function Kt(e){return au.some(t=>{try{return e.matches(t)}catch{return!1}})}const su=["transform","translate","scale","rotate","perspective"],iu=["transform","translate","scale","rotate","perspective","filter"],lu=["paint","layout","strict","content"];function Fn(e){const t=Vn(),n=he(e)?ge(e):e;return su.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||iu.some(r=>(n.willChange||"").includes(r))||lu.some(r=>(n.contain||"").includes(r))}function cu(e){let t=Oe(e);for(;Se(t)&&!nt(t);){if(Fn(t))return t;if(Kt(t))return null;t=Oe(t)}return null}function Vn(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const uu=new Set(["html","body","#document"]);function nt(e){return uu.has(tt(e))}function ge(e){return fe(e).getComputedStyle(e)}function qt(e){return he(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Oe(e){if(tt(e)==="html")return e;const t=e.assignedSlot||e.parentNode||ra(e)&&e.host||we(e);return ra(t)?t.host:t}function oa(e){const t=Oe(e);return nt(t)?e.ownerDocument?e.ownerDocument.body:e.body:Se(t)&>(t)?t:oa(t)}function vt(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=oa(e),a=o===((r=e.ownerDocument)==null?void 0:r.body),s=fe(o);if(a){const i=zn(s);return t.concat(s,s.visualViewport||[],gt(o)?o:[],i&&n?vt(i):[])}return t.concat(o,vt(o,[],n))}function zn(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function aa(e){const t=ge(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Se(e),a=o?e.offsetWidth:n,s=o?e.offsetHeight:r,i=Wt(n)!==a||Wt(r)!==s;return i&&(n=a,r=s),{width:n,height:r,$:i}}function Bn(e){return he(e)?e:e.contextElement}function rt(e){const t=Bn(e);if(!Se(t))return be(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:a}=aa(t);let s=(a?Wt(n.width):n.width)/r,i=(a?Wt(n.height):n.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!i||!Number.isFinite(i))&&(i=1),{x:s,y:i}}const du=be(0);function sa(e){const t=fe(e);return!Vn()||!t.visualViewport?du:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function fu(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==fe(e)?!1:t}function Be(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),a=Bn(e);let s=be(1);t&&(r?he(r)&&(s=rt(r)):s=rt(e));const i=fu(a,n,r)?sa(a):be(0);let c=(o.left+i.x)/s.x,u=(o.top+i.y)/s.y,p=o.width/s.x,f=o.height/s.y;if(a){const g=fe(a),h=r&&he(r)?fe(r):r;let v=g,m=zn(v);for(;m&&r&&h!==v;){const x=rt(m),y=m.getBoundingClientRect(),b=ge(m),w=y.left+(m.clientLeft+parseFloat(b.paddingLeft))*x.x,E=y.top+(m.clientTop+parseFloat(b.paddingTop))*x.y;c*=x.x,u*=x.y,p*=x.x,f*=x.y,c+=w,u+=E,v=fe(m),m=zn(v)}}return Gt({width:p,height:f,x:c,y:u})}function Xt(e,t){const n=qt(e).scrollLeft;return t?t.left+n:Be(we(e)).left+n}function ia(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-Xt(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function pu(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const a=o==="fixed",s=we(r),i=t?Kt(t.floating):!1;if(r===s||i&&a)return n;let c={scrollLeft:0,scrollTop:0},u=be(1);const p=be(0),f=Se(r);if((f||!f&&!a)&&((tt(r)!=="body"||gt(s))&&(c=qt(r)),Se(r))){const h=Be(r);u=rt(r),p.x=h.x+r.clientLeft,p.y=h.y+r.clientTop}const g=s&&!f&&!a?ia(s,c):be(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-c.scrollLeft*u.x+p.x+g.x,y:n.y*u.y-c.scrollTop*u.y+p.y+g.y}}function mu(e){return Array.from(e.getClientRects())}function hu(e){const t=we(e),n=qt(e),r=e.ownerDocument.body,o=de(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=de(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+Xt(e);const i=-n.scrollTop;return ge(r).direction==="rtl"&&(s+=de(t.clientWidth,r.clientWidth)-o),{width:o,height:a,x:s,y:i}}const la=25;function gu(e,t){const n=fe(e),r=we(e),o=n.visualViewport;let a=r.clientWidth,s=r.clientHeight,i=0,c=0;if(o){a=o.width,s=o.height;const p=Vn();(!p||p&&t==="fixed")&&(i=o.offsetLeft,c=o.offsetTop)}const u=Xt(r);if(u<=0){const p=r.ownerDocument,f=p.body,g=getComputedStyle(f),h=p.compatMode==="CSS1Compat"&&parseFloat(g.marginLeft)+parseFloat(g.marginRight)||0,v=Math.abs(r.clientWidth-f.clientWidth-h);v<=la&&(a-=v)}else u<=la&&(a+=u);return{width:a,height:s,x:i,y:c}}const vu=new Set(["absolute","fixed"]);function xu(e,t){const n=Be(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,a=Se(e)?rt(e):be(1),s=e.clientWidth*a.x,i=e.clientHeight*a.y,c=o*a.x,u=r*a.y;return{width:s,height:i,x:c,y:u}}function ca(e,t,n){let r;if(t==="viewport")r=gu(e,n);else if(t==="document")r=hu(we(e));else if(he(t))r=xu(t,n);else{const o=sa(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Gt(r)}function ua(e,t){const n=Oe(e);return n===t||!he(n)||nt(n)?!1:ge(n).position==="fixed"||ua(n,t)}function bu(e,t){const n=t.get(e);if(n)return n;let r=vt(e,[],!1).filter(i=>he(i)&&tt(i)!=="body"),o=null;const a=ge(e).position==="fixed";let s=a?Oe(e):e;for(;he(s)&&!nt(s);){const i=ge(s),c=Fn(s);!c&&i.position==="fixed"&&(o=null),(a?!c&&!o:!c&&i.position==="static"&&!!o&&vu.has(o.position)||gt(s)&&!c&&ua(e,s))?r=r.filter(p=>p!==s):o=i,s=Oe(s)}return t.set(e,r),r}function yu(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const s=[...n==="clippingAncestors"?Kt(t)?[]:bu(t,this._c):[].concat(n),r],i=s[0],c=s.reduce((u,p)=>{const f=ca(t,p,o);return u.top=de(f.top,u.top),u.right=Te(f.right,u.right),u.bottom=Te(f.bottom,u.bottom),u.left=de(f.left,u.left),u},ca(t,i,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function wu(e){const{width:t,height:n}=aa(e);return{width:t,height:n}}function Su(e,t,n){const r=Se(t),o=we(t),a=n==="fixed",s=Be(e,!0,a,t);let i={scrollLeft:0,scrollTop:0};const c=be(0);function u(){c.x=Xt(o)}if(r||!r&&!a)if((tt(t)!=="body"||gt(o))&&(i=qt(t)),r){const h=Be(t,!0,a,t);c.x=h.x+t.clientLeft,c.y=h.y+t.clientTop}else o&&u();a&&!r&&o&&u();const p=o&&!r&&!a?ia(o,i):be(0),f=s.left+i.scrollLeft-c.x-p.x,g=s.top+i.scrollTop-c.y-p.y;return{x:f,y:g,width:s.width,height:s.height}}function Wn(e){return ge(e).position==="static"}function da(e,t){if(!Se(e)||ge(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return we(e)===n&&(n=n.ownerDocument.body),n}function fa(e,t){const n=fe(e);if(Kt(e))return n;if(!Se(e)){let o=Oe(e);for(;o&&!nt(o);){if(he(o)&&!Wn(o))return o;o=Oe(o)}return n}let r=da(e,t);for(;r&&ou(r)&&Wn(r);)r=da(r,t);return r&&nt(r)&&Wn(r)&&!Fn(r)?n:r||cu(e)||n}const Cu=async function(e){const t=this.getOffsetParent||fa,n=this.getDimensions,r=await n(e.floating);return{reference:Su(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Eu(e){return ge(e).direction==="rtl"}const ku={convertOffsetParentRelativeRectToViewportRelativeRect:pu,getDocumentElement:we,getClippingRect:yu,getOffsetParent:fa,getElementRects:Cu,getClientRects:mu,getDimensions:wu,getScale:rt,isElement:he,isRTL:Eu};function pa(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Pu(e,t){let n=null,r;const o=we(e);function a(){var i;clearTimeout(r),(i=n)==null||i.disconnect(),n=null}function s(i,c){i===void 0&&(i=!1),c===void 0&&(c=1),a();const u=e.getBoundingClientRect(),{left:p,top:f,width:g,height:h}=u;if(i||t(),!g||!h)return;const v=Ht(f),m=Ht(o.clientWidth-(p+g)),x=Ht(o.clientHeight-(f+h)),y=Ht(p),w={rootMargin:-v+"px "+-m+"px "+-x+"px "+-y+"px",threshold:de(0,Te(1,c))||1};let E=!0;function k(N){const P=N[0].intersectionRatio;if(P!==c){if(!E)return s();P?s(!1,P):r=setTimeout(()=>{s(!1,1e-7)},1e3)}P===1&&!pa(u,e.getBoundingClientRect())&&s(),E=!1}try{n=new IntersectionObserver(k,{...w,root:o.ownerDocument})}catch{n=new IntersectionObserver(k,w)}n.observe(e)}return s(!0),a}function Ru(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:i=typeof IntersectionObserver=="function",animationFrame:c=!1}=r,u=Bn(e),p=o||a?[...u?vt(u):[],...vt(t)]:[];p.forEach(y=>{o&&y.addEventListener("scroll",n,{passive:!0}),a&&y.addEventListener("resize",n)});const f=u&&i?Pu(u,n):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)})),n()}),u&&!c&&h.observe(u),h.observe(t));let v,m=c?Be(e):null;c&&x();function x(){const y=Be(e);m&&!pa(m,y)&&n(),m=y,v=requestAnimationFrame(x)}return n(),()=>{var y;p.forEach(b=>{o&&b.removeEventListener("scroll",n),a&&b.removeEventListener("resize",n)}),f==null||f(),(y=h)==null||y.disconnect(),h=null,c&&cancelAnimationFrame(v)}}const Au=Jc,_u=Qc,Nu=qc,Tu=tu,Ou=Xc,ma=Kc,ju=eu,Iu=(e,t,n)=>{const r=new Map,o={platform:ku,...n},a={...o.platform,_c:r};return Yc(e,t,{...o,platform:a})};var Mu=typeof document<"u",Du=function(){},Zt=Mu?te.useLayoutEffect:Du;function Jt(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Jt(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const a=o[r];if(!(a==="_owner"&&e.$$typeof)&&!Jt(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function ha(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function ga(e,t){const n=ha(e);return Math.round(t*n)/n}function Hn(e){const t=l.useRef(e);return Zt(()=>{t.current=e}),t}function Lu(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:a,floating:s}={},transform:i=!0,whileElementsMounted:c,open:u}=e,[p,f]=l.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[g,h]=l.useState(r);Jt(g,r)||h(r);const[v,m]=l.useState(null),[x,y]=l.useState(null),b=l.useCallback(R=>{R!==N.current&&(N.current=R,m(R))},[]),w=l.useCallback(R=>{R!==P.current&&(P.current=R,y(R))},[]),E=a||v,k=s||x,N=l.useRef(null),P=l.useRef(null),_=l.useRef(p),B=c!=null,q=Hn(c),Q=Hn(o),J=Hn(u),ee=l.useCallback(()=>{if(!N.current||!P.current)return;const R={placement:t,strategy:n,middleware:g};Q.current&&(R.platform=Q.current),Iu(N.current,P.current,R).then(ne=>{const C={...ne,isPositioned:J.current!==!1};V.current&&!Jt(_.current,C)&&(_.current=C,At.flushSync(()=>{f(C)}))})},[g,t,n,Q,J]);Zt(()=>{u===!1&&_.current.isPositioned&&(_.current.isPositioned=!1,f(R=>({...R,isPositioned:!1})))},[u]);const V=l.useRef(!1);Zt(()=>(V.current=!0,()=>{V.current=!1}),[]),Zt(()=>{if(E&&(N.current=E),k&&(P.current=k),E&&k){if(q.current)return q.current(E,k,ee);ee()}},[E,k,ee,q,B]);const X=l.useMemo(()=>({reference:N,floating:P,setReference:b,setFloating:w}),[b,w]),$=l.useMemo(()=>({reference:E,floating:k}),[E,k]),z=l.useMemo(()=>{const R={position:n,left:0,top:0};if(!$.floating)return R;const ne=ga($.floating,p.x),C=ga($.floating,p.y);return i?{...R,transform:"translate("+ne+"px, "+C+"px)",...ha($.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:ne,top:C}},[n,i,$.floating,p.x,p.y]);return l.useMemo(()=>({...p,update:ee,refs:X,elements:$,floatingStyles:z}),[p,ee,X,$,z])}const $u=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?ma({element:r.current,padding:o}).fn(n):{}:r?ma({element:r,padding:o}).fn(n):{}}}},Fu=(e,t)=>({...Au(e),options:[e,t]}),Vu=(e,t)=>({..._u(e),options:[e,t]}),zu=(e,t)=>({...ju(e),options:[e,t]}),Bu=(e,t)=>({...Nu(e),options:[e,t]}),Wu=(e,t)=>({...Tu(e),options:[e,t]}),Hu=(e,t)=>({...Ou(e),options:[e,t]}),Uu=(e,t)=>({...$u(e),options:[e,t]});var Gu="Arrow",va=l.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...a}=e;return d.jsx(H.svg,{...a,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:d.jsx("polygon",{points:"0,0 30,0 15,10"})})});va.displayName=Gu;var Yu=va;function Ku(e){const[t,n]=l.useState(void 0);return ie(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=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;n({width:s,height:i})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var Un="Popper",[xa,ot]=Ve(Un),[qu,ba]=xa(Un),ya=e=>{const{__scopePopper:t,children:n}=e,[r,o]=l.useState(null);return d.jsx(qu,{scope:t,anchor:r,onAnchorChange:o,children:n})};ya.displayName=Un;var wa="PopperAnchor",Sa=l.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,a=ba(wa,n),s=l.useRef(null),i=ae(t,s),c=l.useRef(null);return l.useEffect(()=>{const u=c.current;c.current=(r==null?void 0:r.current)||s.current,u!==c.current&&a.onAnchorChange(c.current)}),r?null:d.jsx(H.div,{...o,ref:i})});Sa.displayName=wa;var Gn="PopperContent",[Xu,Zu]=xa(Gn),Ca=l.forwardRef((e,t)=>{var A,D,W,G,re,oe;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:a="center",alignOffset:s=0,arrowPadding:i=0,avoidCollisions:c=!0,collisionBoundary:u=[],collisionPadding:p=0,sticky:f="partial",hideWhenDetached:g=!1,updatePositionStrategy:h="optimized",onPlaced:v,...m}=e,x=ba(Gn,n),[y,b]=l.useState(null),w=ae(t,pe=>b(pe)),[E,k]=l.useState(null),N=Ku(E),P=(N==null?void 0:N.width)??0,_=(N==null?void 0:N.height)??0,B=r+(a!=="center"?"-"+a:""),q=typeof p=="number"?p:{top:0,right:0,bottom:0,left:0,...p},Q=Array.isArray(u)?u:[u],J=Q.length>0,ee={padding:q,boundary:Q.filter(Qu),altBoundary:J},{refs:V,floatingStyles:X,placement:$,isPositioned:z,middlewareData:R}=Lu({strategy:"fixed",placement:B,whileElementsMounted:(...pe)=>Ru(...pe,{animationFrame:h==="always"}),elements:{reference:x.anchor},middleware:[Fu({mainAxis:o+_,alignmentAxis:s}),c&&Vu({mainAxis:!0,crossAxis:!1,limiter:f==="partial"?zu():void 0,...ee}),c&&Bu({...ee}),Wu({...ee,apply:({elements:pe,rects:Ce,availableWidth:kt,availableHeight:Pt})=>{const{width:Rt,height:Up}=Ce.reference,un=pe.floating.style;un.setProperty("--radix-popper-available-width",`${kt}px`),un.setProperty("--radix-popper-available-height",`${Pt}px`),un.setProperty("--radix-popper-anchor-width",`${Rt}px`),un.setProperty("--radix-popper-anchor-height",`${Up}px`)}}),E&&Uu({element:E,padding:i}),ed({arrowWidth:P,arrowHeight:_}),g&&Hu({strategy:"referenceHidden",...ee})]}),[ne,C]=Pa($),L=Ae(v);ie(()=>{z&&(L==null||L())},[z,L]);const S=(A=R.arrow)==null?void 0:A.x,T=(D=R.arrow)==null?void 0:D.y,M=((W=R.arrow)==null?void 0:W.centerOffset)!==0,[O,U]=l.useState();return ie(()=>{y&&U(window.getComputedStyle(y).zIndex)},[y]),d.jsx("div",{ref:V.setFloating,"data-radix-popper-content-wrapper":"",style:{...X,transform:z?X.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:O,"--radix-popper-transform-origin":[(G=R.transformOrigin)==null?void 0:G.x,(re=R.transformOrigin)==null?void 0:re.y].join(" "),...((oe=R.hide)==null?void 0:oe.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:d.jsx(Xu,{scope:n,placedSide:ne,onArrowChange:k,arrowX:S,arrowY:T,shouldHideArrow:M,children:d.jsx(H.div,{"data-side":ne,"data-align":C,...m,ref:w,style:{...m.style,animation:z?void 0:"none"}})})})});Ca.displayName=Gn;var Ea="PopperArrow",Ju={top:"bottom",right:"left",bottom:"top",left:"right"},ka=l.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,a=Zu(Ea,r),s=Ju[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(Yu,{...o,ref:n,style:{...o.style,display:"block"}})})});ka.displayName=Ea;function Qu(e){return e!==null}var ed=e=>({name:"transformOrigin",options:e,fn(t){var x,y,b;const{placement:n,rects:r,middlewareData:o}=t,s=((x=o.arrow)==null?void 0:x.centerOffset)!==0,i=s?0:e.arrowWidth,c=s?0:e.arrowHeight,[u,p]=Pa(n),f={start:"0%",center:"50%",end:"100%"}[p],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?f:`${g}px`,m=`${-c}px`):u==="top"?(v=s?f:`${g}px`,m=`${r.floating.height+c}px`):u==="right"?(v=`${-c}px`,m=s?f:`${h}px`):u==="left"&&(v=`${r.floating.width+c}px`,m=s?f:`${h}px`),{data:{x:v,y:m}}}});function Pa(e){const[t,n="center"]=e.split("-");return[t,n]}var Yn=ya,Qt=Sa,Kn=Ca,qn=ka,Ra=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"}),td="VisuallyHidden",Aa=l.forwardRef((e,t)=>d.jsx(H.span,{...e,ref:t,style:{...Ra,...e.style}}));Aa.displayName=td;var nd=Aa,[en,fm]=Ve("Tooltip",[ot]),tn=ot(),_a="TooltipProvider",rd=700,Xn="tooltip.open",[od,Zn]=en(_a),Na=e=>{const{__scopeTooltip:t,delayDuration:n=rd,skipDelayDuration:r=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(od,{scope:t,isOpenDelayedRef:s,delayDuration:n,onOpen:l.useCallback(()=>{window.clearTimeout(c.current),s.current=!1},[]),onClose:l.useCallback(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>s.current=!0,r)},[r]),isPointerInTransitRef:i,onPointerInTransitChange:l.useCallback(u=>{i.current=u},[]),disableHoverableContent:o,children:a})};Na.displayName=_a;var xt="Tooltip",[ad,bt]=en(xt),Ta=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o,onOpenChange:a,disableHoverableContent:s,delayDuration:i}=e,c=Zn(xt,e.__scopeTooltip),u=tn(t),[p,f]=l.useState(null),g=ce(),h=l.useRef(0),v=s??c.disableHoverableContent,m=i??c.delayDuration,x=l.useRef(!1),[y,b]=qe({prop:r,defaultProp:o??!1,onChange:P=>{P?(c.onOpen(),document.dispatchEvent(new CustomEvent(Xn))):c.onClose(),a==null||a(P)},caller:xt}),w=l.useMemo(()=>y?x.current?"delayed-open":"instant-open":"closed",[y]),E=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(Yn,{...u,children:d.jsx(ad,{scope:t,contentId:g,open:y,stateAttribute:w,trigger:p,onTriggerChange:f,onTriggerEnter:l.useCallback(()=>{c.isOpenDelayedRef.current?N():E()},[c.isOpenDelayedRef,N,E]),onTriggerLeave:l.useCallback(()=>{v?k():(window.clearTimeout(h.current),h.current=0)},[k,v]),onOpen:E,onClose:k,disableHoverableContent:v,children:n})})};Ta.displayName=xt;var Jn="TooltipTrigger",Oa=l.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=bt(Jn,n),a=Zn(Jn,n),s=tn(n),i=l.useRef(null),c=ae(t,i,o.onTriggerChange),u=l.useRef(!1),p=l.useRef(!1),f=l.useCallback(()=>u.current=!1,[]);return l.useEffect(()=>()=>document.removeEventListener("pointerup",f),[f]),d.jsx(Qt,{asChild:!0,...s,children:d.jsx(H.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:c,onPointerMove:Z(e.onPointerMove,g=>{g.pointerType!=="touch"&&!p.current&&!a.isPointerInTransitRef.current&&(o.onTriggerEnter(),p.current=!0)}),onPointerLeave:Z(e.onPointerLeave,()=>{o.onTriggerLeave(),p.current=!1}),onPointerDown:Z(e.onPointerDown,()=>{o.open&&o.onClose(),u.current=!0,document.addEventListener("pointerup",f,{once:!0})}),onFocus:Z(e.onFocus,()=>{u.current||o.onOpen()}),onBlur:Z(e.onBlur,o.onClose),onClick:Z(e.onClick,o.onClose)})})});Oa.displayName=Jn;var Qn="TooltipPortal",[sd,id]=en(Qn,{forceMount:void 0}),ja=e=>{const{__scopeTooltip:t,forceMount:n,children:r,container:o}=e,a=bt(Qn,t);return d.jsx(sd,{scope:t,forceMount:n,children:d.jsx(Ne,{present:n||a.open,children:d.jsx(mt,{asChild:!0,container:o,children:r})})})};ja.displayName=Qn;var at="TooltipContent",Ia=l.forwardRef((e,t)=>{const n=id(at,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...a}=e,s=bt(at,e.__scopeTooltip);return d.jsx(Ne,{present:r||s.open,children:s.disableHoverableContent?d.jsx(Ma,{side:o,...a,ref:t}):d.jsx(ld,{side:o,...a,ref:t})})}),ld=l.forwardRef((e,t)=>{const n=bt(at,e.__scopeTooltip),r=Zn(at,e.__scopeTooltip),o=l.useRef(null),a=ae(t,o),[s,i]=l.useState(null),{trigger:c,onClose:u}=n,p=o.current,{onPointerInTransitChange:f}=r,g=l.useCallback(()=>{i(null),f(!1)},[f]),h=l.useCallback((v,m)=>{const x=v.currentTarget,y={x:v.clientX,y:v.clientY},b=fd(y,x.getBoundingClientRect()),w=pd(y,b),E=md(m.getBoundingClientRect()),k=gd([...w,...E]);i(k),f(!0)},[f]);return l.useEffect(()=>()=>g(),[g]),l.useEffect(()=>{if(c&&p){const v=x=>h(x,p),m=x=>h(x,c);return c.addEventListener("pointerleave",v),p.addEventListener("pointerleave",m),()=>{c.removeEventListener("pointerleave",v),p.removeEventListener("pointerleave",m)}}},[c,p,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))||(p==null?void 0:p.contains(x)),w=!hd(y,s);b?g():w&&(g(),u())};return document.addEventListener("pointermove",v),()=>document.removeEventListener("pointermove",v)}},[c,p,s,u,g]),d.jsx(Ma,{...e,ref:a})}),[cd,ud]=en(xt,{isInside:!1}),dd=ti("TooltipContent"),Ma=l.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:a,onPointerDownOutside:s,...i}=e,c=bt(at,n),u=tn(n),{onClose:p}=c;return l.useEffect(()=>(document.addEventListener(Xn,p),()=>document.removeEventListener(Xn,p)),[p]),l.useEffect(()=>{if(c.trigger){const f=g=>{const h=g.target;h!=null&&h.contains(c.trigger)&&p()};return window.addEventListener("scroll",f,{capture:!0}),()=>window.removeEventListener("scroll",f,{capture:!0})}},[c.trigger,p]),d.jsx(pt,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:s,onFocusOutside:f=>f.preventDefault(),onDismiss:p,children:d.jsxs(Kn,{"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(dd,{children:r}),d.jsx(cd,{scope:n,isInside:!0,children:d.jsx(nd,{id:c.contentId,role:"tooltip",children:o||r})})]})})});Ia.displayName=at;var Da="TooltipArrow",La=l.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=tn(n);return ud(Da,n).isInside?null:d.jsx(qn,{...o,...r,ref:t})});La.displayName=Da;function fd(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x);switch(Math.min(n,r,o,a)){case a:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function pd(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function md(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}function hd(e,t){const{x:n,y:r}=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,p=i.y,f=c.x,g=c.y;p>r!=g>r&&n<(f-u)*(r-p)/(g-p)+u&&(o=!o)}return o}function gd(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),vd(t)}function vd(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const o=e[r];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 n=[];for(let r=e.length-1;r>=0;r--){const o=e[r];for(;n.length>=2;){const a=n[n.length-1],s=n[n.length-2];if((a.x-s.x)*(o.y-s.y)>=(a.y-s.y)*(o.x-s.x))n.pop();else break}n.push(o)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var xd=Na,bd=Ta,yd=Oa,wd=ja,Sd=Ia,Cd=La;function $a({delayDuration:e=0,...t}){return d.jsx(xd,{"data-slot":"tooltip-provider",delayDuration:e,...t})}function Ed({...e}){return d.jsx($a,{children:d.jsx(bd,{"data-slot":"tooltip",...e})})}function kd({...e}){return d.jsx(yd,{"data-slot":"tooltip-trigger",...e})}function Pd({className:e,sideOffset:t=0,children:n,...r}){return d.jsx(wd,{children:d.jsxs(Sd,{"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),...r,children:[n,d.jsx(Cd,{className:"bg-neutral-black-1 fill-foreground z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]"})]})})}const Rd=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"}}),er=({label:e,helperText:t,errorText:n,leftIcon:r,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(Rd({size:a,status:n?"error":i?"disabled":"default"}),s),children:[r&&d.jsx("span",{className:"mr-2 flex-shrink-0",children:r}),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||n)&&d.jsx("p",{className:F("text-xs mt-1",n?"text-primary-1":"text-neutral-black-2"),children:n||t})]}),Ad=e=>d.jsx(er,{type:"email",inputMode:"email",...e}),_d=({showForgot:e=!1,onValidityChange:t,customValidator:n,...r})=>{const[o,a]=te.useState(!1),[s,i]=te.useState(""),u=n?n(s):(f=>[{label:"minimum 8 characters",isValid:f.length>=8},{label:"one uppercase character",isValid:/[A-Z]/.test(f)},{label:"one lowercase character",isValid:/[a-z]/.test(f)},{label:"one special character",isValid:/[^A-Za-z0-9]/.test(f)},{label:"one number",isValid:/\d/.test(f)}])(s),p=u.every(f=>f.isValid);return te.useEffect(()=>{t&&t(p,u)},[s,p,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(er,{type:o?"text":"password",value:s,onChange:f=>i(f.target.value),...r,rightIcon:d.jsx("button",{type:"button",onClick:()=>a(!o),className:"p-1 text-neutral-0 hover:text-text-neutral-0",children:o?d.jsx(Sc,{size:18,className:"text-neutral-black-2"}):d.jsx(Cc,{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((f,g)=>d.jsxs("div",{className:"flex items-center gap-1",children:[f.isValid?d.jsx(yc,{size:14,className:"text-success-d"}):d.jsx(wc,{size:14,className:"text-stroke"}),d.jsx("span",{className:f.isValid?"text-success-d":"text-input",children:f.label})]},g))})]})})},Nd=e=>d.jsx(er,{type:"search",leftIcon:d.jsx(Wo,{"data-testid":"search-icon",className:"w-4 h-4 text-input-placeholder"}),placeholder:"Search...",...e});function Fa(e,[t,n]){return Math.min(n,Math.max(t,e))}function Td(e){const t=e+"CollectionProvider",[n,r]=Ve(t),[o,a]=n(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=$e(i),u=te.forwardRef((m,x)=>{const{scope:y,children:b}=m,w=a(i,y),E=ae(x,w.collectionRef);return d.jsx(c,{ref:E,children:b})});u.displayName=i;const p=e+"CollectionItemSlot",f="data-radix-collection-item",g=$e(p),h=te.forwardRef((m,x)=>{const{scope:y,children:b,...w}=m,E=te.useRef(null),k=ae(x,E),N=a(p,y);return te.useEffect(()=>(N.itemMap.set(E,{ref:E,...w}),()=>void N.itemMap.delete(E))),d.jsx(g,{[f]:"",ref:k,children:b})});h.displayName=p;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(`[${f}]`));return Array.from(x.itemMap.values()).sort((N,P)=>w.indexOf(N.ref.current)-w.indexOf(P.ref.current))},[x.collectionRef,x.itemMap])}return[{Provider:s,Slot:u,ItemSlot:h},v,r]}var Od=l.createContext(void 0);function jd(e){const t=l.useContext(Od);return e||t||"ltr"}function Id(e){const t=l.useRef({value:e,previous:e});return l.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var Md=[" ","Enter","ArrowUp","ArrowDown"],Dd=[" ","Enter"],We="Select",[nn,rn,Ld]=Td(We),[st,pm]=Ve(We,[Ld,ot]),on=ot(),[$d,je]=st(We),[Fd,Vd]=st(We),Va=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:o,onOpenChange:a,value:s,defaultValue:i,onValueChange:c,dir:u,name:p,autoComplete:f,disabled:g,required:h,form:v}=e,m=on(t),[x,y]=l.useState(null),[b,w]=l.useState(null),[E,k]=l.useState(!1),N=jd(u),[P,_]=qe({prop:r,defaultProp:o??!1,onChange:a,caller:We}),[B,q]=qe({prop:s,defaultProp:i,onChange:c,caller:We}),Q=l.useRef(null),J=x?v||!!x.closest("form"):!0,[ee,V]=l.useState(new Set),X=Array.from(ee).map($=>$.props.value).join(";");return d.jsx(Yn,{...m,children:d.jsxs($d,{required:h,scope:t,trigger:x,onTriggerChange:y,valueNode:b,onValueNodeChange:w,valueNodeHasChildren:E,onValueNodeHasChildrenChange:k,contentId:ce(),value:B,onValueChange:q,open:P,onOpenChange:_,dir:N,triggerPointerDownPosRef:Q,disabled:g,children:[d.jsx(nn.Provider,{scope:t,children:d.jsx(Fd,{scope:e.__scopeSelect,onNativeOptionAdd:l.useCallback($=>{V(z=>new Set(z).add($))},[]),onNativeOptionRemove:l.useCallback($=>{V(z=>{const R=new Set(z);return R.delete($),R})},[]),children:n})}),J?d.jsxs(us,{"aria-hidden":!0,required:h,tabIndex:-1,name:p,autoComplete:f,value:B,onChange:$=>q($.target.value),disabled:g,form:v,children:[B===void 0?d.jsx("option",{value:""}):null,Array.from(ee)]},X):null]})})};Va.displayName=We;var za="SelectTrigger",Ba=l.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...o}=e,a=on(n),s=je(za,n),i=s.disabled||r,c=ae(t,s.onTriggerChange),u=rn(n),p=l.useRef("touch"),[f,g,h]=fs(m=>{const x=u().filter(w=>!w.disabled),y=x.find(w=>w.value===s.value),b=ps(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(Qt,{asChild:!0,...a,children:d.jsx(H.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":ds(s.value)?"":void 0,...o,ref:c,onClick:Z(o.onClick,m=>{m.currentTarget.focus(),p.current!=="mouse"&&v(m)}),onPointerDown:Z(o.onPointerDown,m=>{p.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:Z(o.onKeyDown,m=>{const x=f.current!=="";!(m.ctrlKey||m.altKey||m.metaKey)&&m.key.length===1&&g(m.key),!(x&&m.key===" ")&&Md.includes(m.key)&&(v(),m.preventDefault())})})})});Ba.displayName=za;var Wa="SelectValue",Ha=l.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,children:a,placeholder:s="",...i}=e,c=je(Wa,n),{onValueNodeHasChildrenChange:u}=c,p=a!==void 0,f=ae(t,c.onValueNodeChange);return ie(()=>{u(p)},[u,p]),d.jsx(H.span,{...i,ref:f,style:{pointerEvents:"none"},children:ds(c.value)?d.jsx(d.Fragment,{children:s}):a})});Ha.displayName=Wa;var zd="SelectIcon",Ua=l.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...o}=e;return d.jsx(H.span,{"aria-hidden":!0,...o,ref:t,children:r||"▼"})});Ua.displayName=zd;var Bd="SelectPortal",Ga=e=>d.jsx(mt,{asChild:!0,...e});Ga.displayName=Bd;var He="SelectContent",Ya=l.forwardRef((e,t)=>{const n=je(He,e.__scopeSelect),[r,o]=l.useState();if(ie(()=>{o(new DocumentFragment)},[]),!n.open){const a=r;return a?At.createPortal(d.jsx(Ka,{scope:e.__scopeSelect,children:d.jsx(nn.Slot,{scope:e.__scopeSelect,children:d.jsx("div",{children:e.children})})}),a):null}return d.jsx(qa,{...e,ref:t})});Ya.displayName=He;var ve=10,[Ka,Ie]=st(He),Wd="SelectContentImpl",Hd=$e("SelectContent.RemoveScroll"),qa=l.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:a,onPointerDownOutside:s,side:i,sideOffset:c,align:u,alignOffset:p,arrowPadding:f,collisionBoundary:g,collisionPadding:h,sticky:v,hideWhenDetached:m,avoidCollisions:x,...y}=e,b=je(He,n),[w,E]=l.useState(null),[k,N]=l.useState(null),P=ae(t,A=>E(A)),[_,B]=l.useState(null),[q,Q]=l.useState(null),J=rn(n),[ee,V]=l.useState(!1),X=l.useRef(!1);l.useEffect(()=>{if(w)return _n(w)},[w]),Cn();const $=l.useCallback(A=>{const[D,...W]=J().map(oe=>oe.ref.current),[G]=W.slice(-1),re=document.activeElement;for(const oe of A)if(oe===re||(oe==null||oe.scrollIntoView({block:"nearest"}),oe===D&&k&&(k.scrollTop=0),oe===G&&k&&(k.scrollTop=k.scrollHeight),oe==null||oe.focus(),document.activeElement!==re))return},[J,k]),z=l.useCallback(()=>$([_,w]),[$,_,w]);l.useEffect(()=>{ee&&z()},[ee,z]);const{onOpenChange:R,triggerPointerDownPosRef:ne}=b;l.useEffect(()=>{if(w){let A={x:0,y:0};const D=G=>{var re,oe;A={x:Math.abs(Math.round(G.pageX)-(((re=ne.current)==null?void 0:re.x)??0)),y:Math.abs(Math.round(G.pageY)-(((oe=ne.current)==null?void 0:oe.y)??0))}},W=G=>{A.x<=10&&A.y<=10?G.preventDefault():w.contains(G.target)||R(!1),document.removeEventListener("pointermove",D),ne.current=null};return ne.current!==null&&(document.addEventListener("pointermove",D),document.addEventListener("pointerup",W,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",D),document.removeEventListener("pointerup",W,{capture:!0})}}},[w,R,ne]),l.useEffect(()=>{const A=()=>R(!1);return window.addEventListener("blur",A),window.addEventListener("resize",A),()=>{window.removeEventListener("blur",A),window.removeEventListener("resize",A)}},[R]);const[C,L]=fs(A=>{const D=J().filter(re=>!re.disabled),W=D.find(re=>re.ref.current===document.activeElement),G=ps(D,A,W);G&&setTimeout(()=>G.ref.current.focus())}),S=l.useCallback((A,D,W)=>{const G=!X.current&&!W;(b.value!==void 0&&b.value===D||G)&&(B(A),G&&(X.current=!0))},[b.value]),T=l.useCallback(()=>w==null?void 0:w.focus(),[w]),M=l.useCallback((A,D,W)=>{const G=!X.current&&!W;(b.value!==void 0&&b.value===D||G)&&Q(A)},[b.value]),O=r==="popper"?tr:Xa,U=O===tr?{side:i,sideOffset:c,align:u,alignOffset:p,arrowPadding:f,collisionBoundary:g,collisionPadding:h,sticky:v,hideWhenDetached:m,avoidCollisions:x}:{};return d.jsx(Ka,{scope:n,content:w,viewport:k,onViewportChange:N,itemRefCallback:S,selectedItem:_,onItemLeave:T,itemTextRefCallback:M,focusSelectedItem:z,selectedItemText:q,position:r,isPositioned:ee,searchRef:C,children:d.jsx($t,{as:Hd,allowPinchZoom:!0,children:d.jsx(Tt,{asChild:!0,trapped:b.open,onMountAutoFocus:A=>{A.preventDefault()},onUnmountAutoFocus:Z(o,A=>{var D;(D=b.trigger)==null||D.focus({preventScroll:!0}),A.preventDefault()}),children:d.jsx(pt,{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,...U,onPlaced:()=>V(!0),ref:P,style:{display:"flex",flexDirection:"column",outline:"none",...y.style},onKeyDown:Z(y.onKeyDown,A=>{const D=A.ctrlKey||A.altKey||A.metaKey;if(A.key==="Tab"&&A.preventDefault(),!D&&A.key.length===1&&L(A.key),["ArrowUp","ArrowDown","Home","End"].includes(A.key)){let G=J().filter(re=>!re.disabled).map(re=>re.ref.current);if(["ArrowUp","End"].includes(A.key)&&(G=G.slice().reverse()),["ArrowUp","ArrowDown"].includes(A.key)){const re=A.target,oe=G.indexOf(re);G=G.slice(oe+1)}setTimeout(()=>$(G)),A.preventDefault()}})})})})})})});qa.displayName=Wd;var Ud="SelectItemAlignedPosition",Xa=l.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...o}=e,a=je(He,n),s=Ie(He,n),[i,c]=l.useState(null),[u,p]=l.useState(null),f=ae(t,P=>p(P)),g=rn(n),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 P=a.trigger.getBoundingClientRect(),_=u.getBoundingClientRect(),B=a.valueNode.getBoundingClientRect(),q=y.getBoundingClientRect();if(a.dir!=="rtl"){const re=q.left-_.left,oe=B.left-re,pe=P.left-oe,Ce=P.width+pe,kt=Math.max(Ce,_.width),Pt=window.innerWidth-ve,Rt=Fa(oe,[ve,Math.max(ve,Pt-kt)]);i.style.minWidth=Ce+"px",i.style.left=Rt+"px"}else{const re=_.right-q.right,oe=window.innerWidth-B.right-re,pe=window.innerWidth-P.right-oe,Ce=P.width+pe,kt=Math.max(Ce,_.width),Pt=window.innerWidth-ve,Rt=Fa(oe,[ve,Math.max(ve,Pt-kt)]);i.style.minWidth=Ce+"px",i.style.right=Rt+"px"}const Q=g(),J=window.innerHeight-ve*2,ee=m.scrollHeight,V=window.getComputedStyle(u),X=parseInt(V.borderTopWidth,10),$=parseInt(V.paddingTop,10),z=parseInt(V.borderBottomWidth,10),R=parseInt(V.paddingBottom,10),ne=X+$+ee+R+z,C=Math.min(x.offsetHeight*5,ne),L=window.getComputedStyle(m),S=parseInt(L.paddingTop,10),T=parseInt(L.paddingBottom,10),M=P.top+P.height/2-ve,O=J-M,U=x.offsetHeight/2,A=x.offsetTop+U,D=X+$+A,W=ne-D;if(D<=M){const re=Q.length>0&&x===Q[Q.length-1].ref.current;i.style.bottom="0px";const oe=u.clientHeight-m.offsetTop-m.offsetHeight,pe=Math.max(O,U+(re?T:0)+oe+z),Ce=D+pe;i.style.height=Ce+"px"}else{const re=Q.length>0&&x===Q[0].ref.current;i.style.top="0px";const pe=Math.max(M,X+m.offsetTop+(re?S:0)+U)+W;i.style.height=pe+"px",m.scrollTop=D-M+m.offsetTop}i.style.margin=`${ve}px 0`,i.style.minHeight=C+"px",i.style.maxHeight=J+"px",r==null||r(),requestAnimationFrame(()=>h.current=!0)}},[g,a.trigger,a.valueNode,i,u,m,x,y,a.dir,r]);ie(()=>w(),[w]);const[E,k]=l.useState();ie(()=>{u&&k(window.getComputedStyle(u).zIndex)},[u]);const N=l.useCallback(P=>{P&&v.current===!0&&(w(),b==null||b(),v.current=!1)},[w,b]);return d.jsx(Yd,{scope:n,contentWrapper:i,shouldExpandOnScrollRef:h,onScrollButtonChange:N,children:d.jsx("div",{ref:c,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:E},children:d.jsx(H.div,{...o,ref:f,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});Xa.displayName=Ud;var Gd="SelectPopperPosition",tr=l.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:o=ve,...a}=e,s=on(n);return d.jsx(Kn,{...s,...a,ref:t,align:r,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)"}})});tr.displayName=Gd;var[Yd,nr]=st(He,{}),rr="SelectViewport",Za=l.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...o}=e,a=Ie(rr,n),s=nr(rr,n),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:r}),d.jsx(nn.Slot,{scope:n,children:d.jsx(H.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:i,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:Z(o.onScroll,u=>{const p=u.currentTarget,{contentWrapper:f,shouldExpandOnScrollRef:g}=s;if(g!=null&&g.current&&f){const h=Math.abs(c.current-p.scrollTop);if(h>0){const v=window.innerHeight-ve*2,m=parseFloat(f.style.minHeight),x=parseFloat(f.style.height),y=Math.max(m,x);if(y<v){const b=y+h,w=Math.min(v,b),E=b-w;f.style.height=w+"px",f.style.bottom==="0px"&&(p.scrollTop=E>0?E:0,f.style.justifyContent="flex-end")}}}c.current=p.scrollTop})})})]})});Za.displayName=rr;var Ja="SelectGroup",[Kd,qd]=st(Ja),Qa=l.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=ce();return d.jsx(Kd,{scope:n,id:o,children:d.jsx(H.div,{role:"group","aria-labelledby":o,...r,ref:t})})});Qa.displayName=Ja;var es="SelectLabel",ts=l.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=qd(es,n);return d.jsx(H.div,{id:o.id,...r,ref:t})});ts.displayName=es;var an="SelectItem",[Xd,ns]=st(an),rs=l.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:o=!1,textValue:a,...s}=e,i=je(an,n),c=Ie(an,n),u=i.value===r,[p,f]=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,r,o)}),m=ce(),x=l.useRef("touch"),y=()=>{o||(i.onValueChange(r),i.onOpenChange(!1))};if(r==="")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(Xd,{scope:n,value:r,disabled:o,textId:m,isSelected:u,onItemTextChange:l.useCallback(b=>{f(w=>w||((b==null?void 0:b.textContent)??"").trim())},[]),children:d.jsx(nn.ItemSlot,{scope:n,value:r,disabled:o,textValue:p,children:d.jsx(H.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:Z(s.onFocus,()=>h(!0)),onBlur:Z(s.onBlur,()=>h(!1)),onClick:Z(s.onClick,()=>{x.current!=="mouse"&&y()}),onPointerUp:Z(s.onPointerUp,()=>{x.current==="mouse"&&y()}),onPointerDown:Z(s.onPointerDown,b=>{x.current=b.pointerType}),onPointerMove:Z(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:Z(s.onPointerLeave,b=>{var w;b.currentTarget===document.activeElement&&((w=c.onItemLeave)==null||w.call(c))}),onKeyDown:Z(s.onKeyDown,b=>{var E;((E=c.searchRef)==null?void 0:E.current)!==""&&b.key===" "||(Dd.includes(b.key)&&y(),b.key===" "&&b.preventDefault())})})})})});rs.displayName=an;var yt="SelectItemText",os=l.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,...a}=e,s=je(yt,n),i=Ie(yt,n),c=ns(yt,n),u=Vd(yt,n),[p,f]=l.useState(null),g=ae(t,y=>f(y),c.onItemTextChange,y=>{var b;return(b=i.itemTextRefCallback)==null?void 0:b.call(i,y,c.value,c.disabled)}),h=p==null?void 0:p.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(H.span,{id:c.textId,...a,ref:g}),c.isSelected&&s.valueNode&&!s.valueNodeHasChildren?At.createPortal(a.children,s.valueNode):null]})});os.displayName=yt;var as="SelectItemIndicator",ss=l.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return ns(as,n).isSelected?d.jsx(H.span,{"aria-hidden":!0,...r,ref:t}):null});ss.displayName=as;var or="SelectScrollUpButton",is=l.forwardRef((e,t)=>{const n=Ie(or,e.__scopeSelect),r=nr(or,e.__scopeSelect),[o,a]=l.useState(!1),s=ae(t,r.onScrollButtonChange);return ie(()=>{if(n.viewport&&n.isPositioned){let i=function(){const u=c.scrollTop>0;a(u)};const c=n.viewport;return i(),c.addEventListener("scroll",i),()=>c.removeEventListener("scroll",i)}},[n.viewport,n.isPositioned]),o?d.jsx(cs,{...e,ref:s,onAutoScroll:()=>{const{viewport:i,selectedItem:c}=n;i&&c&&(i.scrollTop=i.scrollTop-c.offsetHeight)}}):null});is.displayName=or;var ar="SelectScrollDownButton",ls=l.forwardRef((e,t)=>{const n=Ie(ar,e.__scopeSelect),r=nr(ar,e.__scopeSelect),[o,a]=l.useState(!1),s=ae(t,r.onScrollButtonChange);return ie(()=>{if(n.viewport&&n.isPositioned){let i=function(){const u=c.scrollHeight-c.clientHeight,p=Math.ceil(c.scrollTop)<u;a(p)};const c=n.viewport;return i(),c.addEventListener("scroll",i),()=>c.removeEventListener("scroll",i)}},[n.viewport,n.isPositioned]),o?d.jsx(cs,{...e,ref:s,onAutoScroll:()=>{const{viewport:i,selectedItem:c}=n;i&&c&&(i.scrollTop=i.scrollTop+c.offsetHeight)}}):null});ls.displayName=ar;var cs=l.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...o}=e,a=Ie("SelectScrollButton",n),s=l.useRef(null),i=rn(n),c=l.useCallback(()=>{s.current!==null&&(window.clearInterval(s.current),s.current=null)},[]);return l.useEffect(()=>()=>c(),[c]),ie(()=>{var p;const u=i().find(f=>f.ref.current===document.activeElement);(p=u==null?void 0:u.ref.current)==null||p.scrollIntoView({block:"nearest"})},[i]),d.jsx(H.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:Z(o.onPointerDown,()=>{s.current===null&&(s.current=window.setInterval(r,50))}),onPointerMove:Z(o.onPointerMove,()=>{var u;(u=a.onItemLeave)==null||u.call(a),s.current===null&&(s.current=window.setInterval(r,50))}),onPointerLeave:Z(o.onPointerLeave,()=>{c()})})}),Zd="SelectSeparator",Jd=l.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return d.jsx(H.div,{"aria-hidden":!0,...r,ref:t})});Jd.displayName=Zd;var sr="SelectArrow",Qd=l.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=on(n),a=je(sr,n),s=Ie(sr,n);return a.open&&s.position==="popper"?d.jsx(qn,{...o,...r,ref:t}):null});Qd.displayName=sr;var ef="SelectBubbleInput",us=l.forwardRef(({__scopeSelect:e,value:t,...n},r)=>{const o=l.useRef(null),a=ae(r,o),s=Id(t);return l.useEffect(()=>{const i=o.current;if(!i)return;const c=window.HTMLSelectElement.prototype,p=Object.getOwnPropertyDescriptor(c,"value").set;if(s!==t&&p){const f=new Event("change",{bubbles:!0});p.call(i,t),i.dispatchEvent(f)}},[s,t]),d.jsx(H.select,{...n,style:{...Ra,...n.style},ref:a,defaultValue:t})});us.displayName=ef;function ds(e){return e===""||e===void 0}function fs(e){const t=Ae(e),n=l.useRef(""),r=l.useRef(0),o=l.useCallback(s=>{const i=n.current+s;t(i),function c(u){n.current=u,window.clearTimeout(r.current),u!==""&&(r.current=window.setTimeout(()=>c(""),1e3))}(i)},[t]),a=l.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return l.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,o,a]}function ps(e,t,n){const o=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,a=n?e.indexOf(n):-1;let s=tf(e,Math.max(a,0));o.length===1&&(s=s.filter(u=>u!==n));const c=s.find(u=>u.textValue.toLowerCase().startsWith(o.toLowerCase()));return c!==n?c:void 0}function tf(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var nf=Va,rf=Ba,of=Ha,af=Ua,sf=Ga,lf=Ya,cf=Za,uf=Qa,df=ts,ff=rs,pf=os,mf=ss,hf=is,gf=ls;function vf({...e}){return d.jsx(nf,{"data-slot":"select",...e})}function xf({...e}){return d.jsx(uf,{"data-slot":"select-group",...e})}function bf({...e}){return d.jsx(of,{"data-slot":"select-value",...e})}function yf({className:e,size:t="default",children:n,...r}){return d.jsxs(rf,{"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),...r,children:[n,d.jsx(af,{asChild:!0,children:d.jsx(jn,{className:"size-4 opacity-50"})})]})}function wf({className:e,children:t,position:n="popper",...r}){return d.jsx(sf,{children:d.jsxs(lf,{"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",n==="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:n,...r,children:[d.jsx(Cf,{}),d.jsx(cf,{className:F("p-1",n==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"),children:t}),d.jsx(Ef,{})]})})}function Sf({className:e,...t}){return d.jsx(df,{"data-slot":"select-label",className:F("text-muted-foreground px-2 py-1.5 text-xs",e),...t})}function ms({className:e,children:t,...n}){return d.jsxs(ff,{"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),...n,children:[d.jsx("span",{className:"absolute right-2 flex size-3.5 items-center justify-center",children:d.jsx(mf,{children:d.jsx(xc,{className:"size-4"})})}),d.jsx(pf,{children:t})]})}function Cf({className:e,...t}){return d.jsx(hf,{"data-slot":"select-scroll-up-button",className:F("flex cursor-default items-center justify-center py-1",e),...t,children:d.jsx(bc,{className:"size-4"})})}function Ef({className:e,...t}){return d.jsx(gf,{"data-slot":"select-scroll-down-button",className:F("flex cursor-default items-center justify-center py-1",e),...t,children:d.jsx(jn,{className:"size-4"})})}var sn="Popover",[hs,mm]=Ve(sn,[ot]),wt=ot(),[kf,Me]=hs(sn),gs=e=>{const{__scopePopover:t,children:n,open:r,defaultOpen:o,onOpenChange:a,modal:s=!1}=e,i=wt(t),c=l.useRef(null),[u,p]=l.useState(!1),[f,g]=qe({prop:r,defaultProp:o??!1,onChange:a,caller:sn});return d.jsx(Yn,{...i,children:d.jsx(kf,{scope:t,contentId:ce(),triggerRef:c,open:f,onOpenChange:g,onOpenToggle:l.useCallback(()=>g(h=>!h),[g]),hasCustomAnchor:u,onCustomAnchorAdd:l.useCallback(()=>p(!0),[]),onCustomAnchorRemove:l.useCallback(()=>p(!1),[]),modal:s,children:n})})};gs.displayName=sn;var vs="PopoverAnchor",Pf=l.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=Me(vs,n),a=wt(n),{onCustomAnchorAdd:s,onCustomAnchorRemove:i}=o;return l.useEffect(()=>(s(),()=>i()),[s,i]),d.jsx(Qt,{...a,...r,ref:t})});Pf.displayName=vs;var xs="PopoverTrigger",bs=l.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=Me(xs,n),a=wt(n),s=ae(t,o.triggerRef),i=d.jsx(H.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Es(o.open),...r,ref:s,onClick:Z(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?i:d.jsx(Qt,{asChild:!0,...a,children:i})});bs.displayName=xs;var ir="PopoverPortal",[Rf,Af]=hs(ir,{forceMount:void 0}),ys=e=>{const{__scopePopover:t,forceMount:n,children:r,container:o}=e,a=Me(ir,t);return d.jsx(Rf,{scope:t,forceMount:n,children:d.jsx(Ne,{present:n||a.open,children:d.jsx(mt,{asChild:!0,container:o,children:r})})})};ys.displayName=ir;var it="PopoverContent",ws=l.forwardRef((e,t)=>{const n=Af(it,e.__scopePopover),{forceMount:r=n.forceMount,...o}=e,a=Me(it,e.__scopePopover);return d.jsx(Ne,{present:r||a.open,children:a.modal?d.jsx(Nf,{...o,ref:t}):d.jsx(Tf,{...o,ref:t})})});ws.displayName=it;var _f=$e("PopoverContent.RemoveScroll"),Nf=l.forwardRef((e,t)=>{const n=Me(it,e.__scopePopover),r=l.useRef(null),o=ae(t,r),a=l.useRef(!1);return l.useEffect(()=>{const s=r.current;if(s)return _n(s)},[]),d.jsx($t,{as:_f,allowPinchZoom:!0,children:d.jsx(Ss,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Z(e.onCloseAutoFocus,s=>{var i;s.preventDefault(),a.current||(i=n.triggerRef.current)==null||i.focus()}),onPointerDownOutside:Z(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:Z(e.onFocusOutside,s=>s.preventDefault(),{checkForDefaultPrevented:!1})})})}),Tf=l.forwardRef((e,t)=>{const n=Me(it,e.__scopePopover),r=l.useRef(!1),o=l.useRef(!1);return d.jsx(Ss,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{var s,i;(s=e.onCloseAutoFocus)==null||s.call(e,a),a.defaultPrevented||(r.current||(i=n.triggerRef.current)==null||i.focus(),a.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:a=>{var c,u;(c=e.onInteractOutside)==null||c.call(e,a),a.defaultPrevented||(r.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const s=a.target;((u=n.triggerRef.current)==null?void 0:u.contains(s))&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),Ss=l.forwardRef((e,t)=>{const{__scopePopover:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:a,disableOutsidePointerEvents:s,onEscapeKeyDown:i,onPointerDownOutside:c,onFocusOutside:u,onInteractOutside:p,...f}=e,g=Me(it,n),h=wt(n);return Cn(),d.jsx(Tt,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:a,children:d.jsx(pt,{asChild:!0,disableOutsidePointerEvents:s,onInteractOutside:p,onEscapeKeyDown:i,onPointerDownOutside:c,onFocusOutside:u,onDismiss:()=>g.onOpenChange(!1),children:d.jsx(Kn,{"data-state":Es(g.open),role:"dialog",id:g.contentId,...h,...f,ref:t,style:{...f.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)"}})})})}),Cs="PopoverClose",Of=l.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=Me(Cs,n);return d.jsx(H.button,{type:"button",...r,ref:t,onClick:Z(e.onClick,()=>o.onOpenChange(!1))})});Of.displayName=Cs;var jf="PopoverArrow",If=l.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=wt(n);return d.jsx(qn,{...o,...r,ref:t})});If.displayName=jf;function Es(e){return e?"open":"closed"}var Mf=gs,Df=bs,Lf=ys,$f=ws;function Ff({...e}){return d.jsx(Mf,{"data-slot":"popover",...e})}function Vf({...e}){return d.jsx(Df,{"data-slot":"popover-trigger",...e})}function zf({className:e,align:t="center",sideOffset:n=4,...r}){return d.jsx(Lf,{children:d.jsx($f,{"data-slot":"popover-content",align:t,sideOffset:n,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),...r})})}var ks=1,Bf=.9,Wf=.8,Hf=.17,lr=.1,cr=.999,Uf=.9999,Gf=.99,Yf=/[\\\/_+.#"@\[\(\{&]/,Kf=/[\\\/_+.#"@\[\(\{&]/g,qf=/[\s-]/,Ps=/[\s-]/g;function ur(e,t,n,r,o,a,s){if(a===t.length)return o===e.length?ks:Gf;var i=`${o},${a}`;if(s[i]!==void 0)return s[i];for(var c=r.charAt(a),u=n.indexOf(c,o),p=0,f,g,h,v;u>=0;)f=ur(e,t,n,r,u+1,a+1,s),f>p&&(u===o?f*=ks:Yf.test(e.charAt(u-1))?(f*=Wf,h=e.slice(o,u-1).match(Kf),h&&o>0&&(f*=Math.pow(cr,h.length))):qf.test(e.charAt(u-1))?(f*=Bf,v=e.slice(o,u-1).match(Ps),v&&o>0&&(f*=Math.pow(cr,v.length))):(f*=Hf,o>0&&(f*=Math.pow(cr,u-o))),e.charAt(u)!==t.charAt(a)&&(f*=Uf)),(f<lr&&n.charAt(u-1)===r.charAt(a+1)||r.charAt(a+1)===r.charAt(a)&&n.charAt(u-1)!==r.charAt(a))&&(g=ur(e,t,n,r,u+1,a+2,s),g*lr>f&&(f=g*lr)),f>p&&(p=f),u=n.indexOf(c,u+1);return s[i]=p,p}function Rs(e){return e.toLowerCase().replace(Ps," ")}function Xf(e,t,n){return e=n&&n.length>0?`${e+" "+n.join(" ")}`:e,ur(e,t,Rs(e),Rs(t),0,0,{})}var St='[cmdk-group=""]',dr='[cmdk-group-items=""]',Zf='[cmdk-group-heading=""]',As='[cmdk-item=""]',_s=`${As}:not([aria-disabled="true"])`,fr="cmdk-item-select",lt="data-value",Jf=(e,t,n)=>Xf(e,t,n),Ns=l.createContext(void 0),Ct=()=>l.useContext(Ns),Ts=l.createContext(void 0),pr=()=>l.useContext(Ts),Os=l.createContext(void 0),js=l.forwardRef((e,t)=>{let n=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}}}),r=ct(()=>new Set),o=ct(()=>new Map),a=ct(()=>new Map),s=ct(()=>new Set),i=Is(e),{label:c,children:u,value:p,onValueChange:f,filter:g,shouldFilter:h,loop:v,disablePointerSelection:m=!1,vimBindings:x=!0,...y}=e,b=ce(),w=ce(),E=ce(),k=l.useRef(null),N=cp();Ue(()=>{if(p!==void 0){let S=p.trim();n.current.value=S,P.emit()}},[p]),Ue(()=>{N(6,ee)},[]);let P=l.useMemo(()=>({subscribe:S=>(s.current.add(S),()=>s.current.delete(S)),snapshot:()=>n.current,setState:(S,T,M)=>{var O,U,A,D;if(!Object.is(n.current[S],T)){if(n.current[S]=T,S==="search")J(),q(),N(1,Q);else if(S==="value"){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let W=document.getElementById(E);W?W.focus():(O=document.getElementById(b))==null||O.focus()}if(N(7,()=>{var W;n.current.selectedItemId=(W=V())==null?void 0:W.id,P.emit()}),M||N(5,ee),((U=i.current)==null?void 0:U.value)!==void 0){let W=T??"";(D=(A=i.current).onValueChange)==null||D.call(A,W);return}}P.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}),n.current.filtered.items.set(S,B(T,M)),N(2,()=>{q(),P.emit()}))},item:(S,T)=>(r.current.add(S),T&&(o.current.has(T)?o.current.get(T).add(S):o.current.set(T,new Set([S]))),N(3,()=>{J(),q(),n.current.value||Q(),P.emit()}),()=>{a.current.delete(S),r.current.delete(S),n.current.filtered.items.delete(S);let M=V();N(4,()=>{J(),(M==null?void 0:M.getAttribute("id"))===S&&Q(),P.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:E,labelId:w,listInnerRef:k}),[]);function B(S,T){var M,O;let U=(O=(M=i.current)==null?void 0:M.filter)!=null?O:Jf;return S?U(S,n.current.search,T):0}function q(){if(!n.current.search||i.current.shouldFilter===!1)return;let S=n.current.filtered.items,T=[];n.current.filtered.groups.forEach(O=>{let U=o.current.get(O),A=0;U.forEach(D=>{let W=S.get(D);A=Math.max(W,A)}),T.push([O,A])});let M=k.current;X().sort((O,U)=>{var A,D;let W=O.getAttribute("id"),G=U.getAttribute("id");return((A=S.get(G))!=null?A:0)-((D=S.get(W))!=null?D:0)}).forEach(O=>{let U=O.closest(dr);U?U.appendChild(O.parentElement===U?O:O.closest(`${dr} > *`)):M.appendChild(O.parentElement===M?O:O.closest(`${dr} > *`))}),T.sort((O,U)=>U[1]-O[1]).forEach(O=>{var U;let A=(U=k.current)==null?void 0:U.querySelector(`${St}[${lt}="${encodeURIComponent(O[0])}"]`);A==null||A.parentElement.appendChild(A)})}function Q(){let S=X().find(M=>M.getAttribute("aria-disabled")!=="true"),T=S==null?void 0:S.getAttribute(lt);P.setState("value",T||void 0)}function J(){var S,T,M,O;if(!n.current.search||i.current.shouldFilter===!1){n.current.filtered.count=r.current.size;return}n.current.filtered.groups=new Set;let U=0;for(let A of r.current){let D=(T=(S=a.current.get(A))==null?void 0:S.value)!=null?T:"",W=(O=(M=a.current.get(A))==null?void 0:M.keywords)!=null?O:[],G=B(D,W);n.current.filtered.items.set(A,G),G>0&&U++}for(let[A,D]of o.current)for(let W of D)if(n.current.filtered.items.get(W)>0){n.current.filtered.groups.add(A);break}n.current.filtered.count=U}function ee(){var S,T,M;let O=V();O&&(((S=O.parentElement)==null?void 0:S.firstChild)===O&&((M=(T=O.closest(St))==null?void 0:T.querySelector(Zf))==null||M.scrollIntoView({block:"nearest"})),O.scrollIntoView({block:"nearest"}))}function V(){var S;return(S=k.current)==null?void 0:S.querySelector(`${As}[aria-selected="true"]`)}function X(){var S;return Array.from(((S=k.current)==null?void 0:S.querySelectorAll(_s))||[])}function $(S){let T=X()[S];T&&P.setState("value",T.getAttribute(lt))}function z(S){var T;let M=V(),O=X(),U=O.findIndex(D=>D===M),A=O[U+S];(T=i.current)!=null&&T.loop&&(A=U+S<0?O[O.length-1]:U+S===O.length?O[0]:O[U+S]),A&&P.setState("value",A.getAttribute(lt))}function R(S){let T=V(),M=T==null?void 0:T.closest(St),O;for(;M&&!O;)M=S>0?ip(M,St):lp(M,St),O=M==null?void 0:M.querySelector(_s);O?P.setState("value",O.getAttribute(lt)):z(S)}let ne=()=>$(X().length-1),C=S=>{S.preventDefault(),S.metaKey?ne():S.altKey?R(1):z(1)},L=S=>{S.preventDefault(),S.metaKey?$(0):S.altKey?R(-1):z(-1)};return l.createElement(H.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&&C(S);break}case"ArrowDown":{C(S);break}case"p":case"k":{x&&S.ctrlKey&&L(S);break}case"ArrowUp":{L(S);break}case"Home":{S.preventDefault(),$(0);break}case"End":{S.preventDefault(),ne();break}case"Enter":{S.preventDefault();let O=V();if(O){let U=new Event(fr);O.dispatchEvent(U)}}}}},l.createElement("label",{"cmdk-label":"",htmlFor:_.inputId,id:_.labelId,style:dp},c),ln(e,S=>l.createElement(Ts.Provider,{value:P},l.createElement(Ns.Provider,{value:_},S))))}),Qf=l.forwardRef((e,t)=>{var n,r;let o=ce(),a=l.useRef(null),s=l.useContext(Os),i=Ct(),c=Is(e),u=(r=(n=c.current)==null?void 0:n.forceMount)!=null?r:s==null?void 0:s.forceMount;Ue(()=>{if(!u)return i.item(o,s==null?void 0:s.id)},[u]);let p=Ms(o,a,[e.value,e.children,a],e.keywords),f=pr(),g=De(N=>N.value&&N.value===p.current),h=De(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(fr,v),()=>N.removeEventListener(fr,v)},[h,e.onSelect,e.disabled]);function v(){var N,P;m(),(P=(N=c.current).onSelect)==null||P.call(N,p.current)}function m(){f.setState("value",p.current,!0)}if(!h)return null;let{disabled:x,value:y,onSelect:b,forceMount:w,keywords:E,...k}=e;return l.createElement(H.div,{ref:Le(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)}),ep=l.forwardRef((e,t)=>{let{heading:n,children:r,forceMount:o,...a}=e,s=ce(),i=l.useRef(null),c=l.useRef(null),u=ce(),p=Ct(),f=De(h=>o||p.filter()===!1?!0:h.search?h.filtered.groups.has(s):!0);Ue(()=>p.group(s),[]),Ms(s,i,[e.value,e.heading,c]);let g=l.useMemo(()=>({id:s,forceMount:o}),[o]);return l.createElement(H.div,{ref:Le(i,t),...a,"cmdk-group":"",role:"presentation",hidden:f?void 0:!0},n&&l.createElement("div",{ref:c,"cmdk-group-heading":"","aria-hidden":!0,id:u},n),ln(e,h=>l.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":n?u:void 0},l.createElement(Os.Provider,{value:g},h))))}),tp=l.forwardRef((e,t)=>{let{alwaysRender:n,...r}=e,o=l.useRef(null),a=De(s=>!s.search);return!n&&!a?null:l.createElement(H.div,{ref:Le(o,t),...r,"cmdk-separator":"",role:"separator"})}),np=l.forwardRef((e,t)=>{let{onValueChange:n,...r}=e,o=e.value!=null,a=pr(),s=De(u=>u.search),i=De(u=>u.selectedItemId),c=Ct();return l.useEffect(()=>{e.value!=null&&a.setState("search",e.value)},[e.value]),l.createElement(H.input,{ref:t,...r,"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),n==null||n(u.target.value)}})}),rp=l.forwardRef((e,t)=>{let{children:n,label:r="Suggestions",...o}=e,a=l.useRef(null),s=l.useRef(null),i=De(u=>u.selectedItemId),c=Ct();return l.useEffect(()=>{if(s.current&&a.current){let u=s.current,p=a.current,f,g=new ResizeObserver(()=>{f=requestAnimationFrame(()=>{let h=u.offsetHeight;p.style.setProperty("--cmdk-list-height",h.toFixed(1)+"px")})});return g.observe(u),()=>{cancelAnimationFrame(f),g.unobserve(u)}}},[]),l.createElement(H.div,{ref:Le(a,t),...o,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":i,"aria-label":r,id:c.listId},ln(e,u=>l.createElement("div",{ref:Le(s,c.listInnerRef),"cmdk-list-sizer":""},u)))}),op=l.forwardRef((e,t)=>{let{open:n,onOpenChange:r,overlayClassName:o,contentClassName:a,container:s,...i}=e;return l.createElement(Do,{open:n,onOpenChange:r},l.createElement(Lo,{container:s},l.createElement($o,{"cmdk-overlay":"",className:o}),l.createElement(Fo,{"aria-label":e.label,"cmdk-dialog":"",className:a},l.createElement(js,{ref:t,...i}))))}),ap=l.forwardRef((e,t)=>De(n=>n.filtered.count===0)?l.createElement(H.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null),sp=l.forwardRef((e,t)=>{let{progress:n,children:r,label:o="Loading...",...a}=e;return l.createElement(H.div,{ref:t,...a,"cmdk-loading":"",role:"progressbar","aria-valuenow":n,"aria-valuemin":0,"aria-valuemax":100,"aria-label":o},ln(e,s=>l.createElement("div",{"aria-hidden":!0},s)))}),Et=Object.assign(js,{List:rp,Item:Qf,Input:np,Group:ep,Separator:tp,Dialog:op,Empty:ap,Loading:sp});function ip(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return n;n=n.nextElementSibling}}function lp(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return n;n=n.previousElementSibling}}function Is(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 De(e){let t=pr(),n=()=>e(t.snapshot());return l.useSyncExternalStore(t.subscribe,n,n)}function Ms(e,t,n,r=[]){let o=l.useRef(),a=Ct();return Ue(()=>{var s;let i=(()=>{var u;for(let p of n){if(typeof p=="string")return p.trim();if(typeof p=="object"&&"current"in p)return p.current?(u=p.current.textContent)==null?void 0:u.trim():o.current}})(),c=r.map(u=>u.trim());a.value(e,i,c),(s=t.current)==null||s.setAttribute(lt,i),o.current=i}),o}var cp=()=>{let[e,t]=l.useState(),n=ct(()=>new Map);return Ue(()=>{n.current.forEach(r=>r()),n.current=new Map},[e]),(r,o)=>{n.current.set(r,o),t({})}};function up(e){let t=e.type;return typeof t=="function"?t(e.props):"render"in t?t.render(e.props):e}function ln({asChild:e,children:t},n){return e&&l.isValidElement(t)?l.cloneElement(up(t),{ref:t.ref},n(t.props.children)):n(t)}var dp={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};function fp({className:e,...t}){return d.jsx(Et,{"data-slot":"command",className:F("bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",e),...t})}function pp({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(Wo,{className:"size-4 shrink-0 opacity-50"}),d.jsx(Et.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 mp({...e}){return d.jsx(Et.Empty,{"data-slot":"command-empty",className:"py-6 text-center text-sm",...e})}function Ds({className:e,...t}){return d.jsx(Et.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 Ls({className:e,...t}){return d.jsx(Et.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 mr(e){return e.length>0&&e[0].kind==="group"}function hp(e){return e.multiple?d.jsx(Fs,{...e}):d.jsx($s,{...e})}const $s=({options:e,placeholder:t="Select...",disabled:n,error:r,helperText:o,value:a,onChange:s})=>{const[i,c]=te.useState(""),u=a??i,p=f=>{c(f),s==null||s(f)};return d.jsxs("div",{className:"w-94",children:[d.jsxs(vf,{value:u,onValueChange:p,disabled:n,children:[d.jsx(yf,{"aria-invalid":!!r,className:F("flex w-full items-center justify-between rounded-md border bg-white px-3 py-2 text-sm",n&&"cursor-not-allowed bg-neutral-black-4 border border-neutral-black-4 rounded",r?"border-primary-1":"border-neutral-black-4"),children:d.jsx(bf,{placeholder:t})}),d.jsx(wf,{className:"w-full bg-white border border-neutral-black-4",children:mr(e)?e.map(f=>d.jsxs(xf,{className:"p-2",children:[d.jsx(Sf,{children:f.label}),f.options.map(g=>d.jsx(ms,{value:g.value,disabled:g.disabled,children:g.label},g.value))]},f.label)):e.map(f=>d.jsx(ms,{value:f.value,disabled:f.disabled,className:"hover:cursor-pointer hover:bg-neutral-black-5",children:f.label},f.value))})]}),r&&d.jsx("p",{className:"mt-1 text-xs text-primary-1",children:r}),o&&d.jsx("p",{className:"mt-1 text-xs text-neutral-black-3",children:o})]})},Fs=({options:e,placeholder:t="Select...",disabled:n,error:r,helperText:o,value:a,onChange:s})=>{const[i,c]=te.useState(!1),[u,p]=te.useState([]),f=a??u,g=te.useMemo(()=>mr(e)?e.flatMap(v=>v.options):e,[e]),h=v=>{const m=f.includes(v)?f.filter(x=>x!==v):[...f,v];p(m),s==null||s(m)};return d.jsxs("div",{className:"w-94",children:[d.jsxs(Ff,{open:i,onOpenChange:c,children:[d.jsx(Vf,{asChild:!0,children:d.jsxs("button",{type:"button",disabled:n,"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",n&&"cursor-not-allowed bg-neutral-black-4 border border-neutral-black-4 rounded",r?"border-primary-1":"border-neutral-black-4"),children:[d.jsx("div",{className:"flex flex-wrap gap-1",children:f.length>0?f.map(v=>d.jsxs(Ko,{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(Uo,{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(jn,{className:"h-4 w-4 text-neutral-black-1"})]})}),d.jsx(zf,{className:"p-0 w-full bg-white border border-neutral-black-4",children:d.jsxs(fp,{className:"w-full",children:[d.jsx(pp,{placeholder:"Search..."}),d.jsx(mp,{children:"No results found."}),mr(e)?e.map(v=>d.jsx(Ds,{heading:v.label,children:v.options.map(m=>d.jsxs(Ls,{value:m.label,onSelect:()=>!m.disabled&&h(m.value),disabled:m.disabled,children:[d.jsx("input",{type:"checkbox",readOnly:!0,checked:f.includes(m.value),className:"mr-2"}),m.label]},m.value))},v.label)):d.jsx(Ds,{children:g.map(v=>d.jsxs(Ls,{value:v.label,onSelect:()=>!v.disabled&&h(v.value),disabled:v.disabled,children:[d.jsx("input",{type:"checkbox",readOnly:!0,checked:f.includes(v.value),className:"mr-2"}),v.label]},v.value))})]})})]}),r&&d.jsx("p",{className:"mt-1 text-xs text-primary-1",children:r}),o&&d.jsx("p",{className:"mt-1 text-xs text-neutral-black-3",children:o})]})},gp=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 vp({className:e,variant:t,asChild:n=!1,children:r,...o}){const a=n?fn:"div";return d.jsx(a,{"data-slot":"card",className:F(gp({variant:t}),e),...o,children:r})}var hr={exports:{}},gr={};/**
|
|
161
|
+
*/const Uo=le("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);function Ac({...e}){return d.jsx(Do,{"data-slot":"dialog",...e})}function _c({...e}){return d.jsx(cc,{"data-slot":"dialog-trigger",...e})}function Go({...e}){return d.jsx(Lo,{"data-slot":"dialog-portal",...e})}function Nc({...e}){return d.jsx(Vo,{"data-slot":"dialog-close",...e})}function Yo({className:e,...t}){return d.jsx($o,{"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 Tc({className:e,children:t,showCloseButton:n=!0,...r}){return d.jsxs(Go,{"data-slot":"dialog-portal",children:[d.jsx(Yo,{}),d.jsxs(Fo,{"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),...r,children:[t,n&&d.jsxs(Vo,{"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(Uo,{}),d.jsx("span",{className:"sr-only",children:"Close"})]})]})]})}function Oc({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 jc({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 Ic({className:e,...t}){return d.jsx(uc,{"data-slot":"dialog-title",className:F("text-lg leading-none font-semibold ",e),...t})}function Mc({className:e,...t}){return d.jsx(dc,{"data-slot":"dialog-description",className:F("text-muted-foreground text-sm",e),...t})}const Dc=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 Ko({className:e,variant:t,type:n="filled",asChild:r=!1,children:o,...a}){const s=r?fn:"span";return d.jsx(s,{"data-slot":"badge",className:F(Dc({variant:t,type:n}),e),...a,children:o})}const Lc=["top","right","bottom","left"],Te=Math.min,de=Math.max,Wt=Math.round,Ht=Math.floor,be=e=>({x:e,y:e}),$c={left:"right",right:"left",bottom:"top",top:"bottom"},Fc={start:"end",end:"start"};function In(e,t,n){return de(e,Te(t,n))}function ke(e,t){return typeof e=="function"?e(t):e}function Pe(e){return e.split("-")[0]}function et(e){return e.split("-")[1]}function Mn(e){return e==="x"?"y":"x"}function Dn(e){return e==="y"?"height":"width"}const Vc=new Set(["top","bottom"]);function ye(e){return Vc.has(Pe(e))?"y":"x"}function Ln(e){return Mn(ye(e))}function zc(e,t,n){n===void 0&&(n=!1);const r=et(e),o=Ln(e),a=Dn(o);let s=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(s=Ut(s)),[s,Ut(s)]}function Bc(e){const t=Ut(e);return[$n(e),t,$n(t)]}function $n(e){return e.replace(/start|end/g,t=>Fc[t])}const qo=["left","right"],Xo=["right","left"],Wc=["top","bottom"],Hc=["bottom","top"];function Uc(e,t,n){switch(e){case"top":case"bottom":return n?t?Xo:qo:t?qo:Xo;case"left":case"right":return t?Wc:Hc;default:return[]}}function Gc(e,t,n,r){const o=et(e);let a=Uc(Pe(e),n==="start",r);return o&&(a=a.map(s=>s+"-"+o),t&&(a=a.concat(a.map($n)))),a}function Ut(e){return e.replace(/left|right|bottom|top/g,t=>$c[t])}function Yc(e){return{top:0,right:0,bottom:0,left:0,...e}}function Zo(e){return typeof e!="number"?Yc(e):{top:e,right:e,bottom:e,left:e}}function Gt(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function Jo(e,t,n){let{reference:r,floating:o}=e;const a=ye(t),s=Ln(t),i=Dn(s),c=Pe(t),u=a==="y",p=r.x+r.width/2-o.width/2,f=r.y+r.height/2-o.height/2,g=r[i]/2-o[i]/2;let h;switch(c){case"top":h={x:p,y:r.y-o.height};break;case"bottom":h={x:p,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:f};break;case"left":h={x:r.x-o.width,y:f};break;default:h={x:r.x,y:r.y}}switch(et(t)){case"start":h[s]-=g*(n&&u?-1:1);break;case"end":h[s]+=g*(n&&u?-1:1);break}return h}const Kc=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:a=[],platform:s}=n,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:p,y:f}=Jo(u,r,c),g=r,h={},v=0;for(let m=0;m<i.length;m++){const{name:x,fn:y}=i[m],{x:b,y:w,data:E,reset:k}=await y({x:p,y:f,initialPlacement:r,placement:g,strategy:o,middlewareData:h,rects:u,platform:s,elements:{reference:e,floating:t}});p=b??p,f=w??f,h={...h,[x]:{...h[x],...E}},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:p,y:f}=Jo(u,g,c)),m=-1)}return{x:p,y:f,placement:g,strategy:o,middlewareData:h}};async function ht(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:a,rects:s,elements:i,strategy:c}=e,{boundary:u="clippingAncestors",rootBoundary:p="viewport",elementContext:f="floating",altBoundary:g=!1,padding:h=0}=ke(t,e),v=Zo(h),x=i[g?f==="floating"?"reference":"floating":f],y=Gt(await a.getClippingRect({element:(n=await(a.isElement==null?void 0:a.isElement(x)))==null||n?x:x.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(i.floating)),boundary:u,rootBoundary:p,strategy:c})),b=f==="floating"?{x:r,y:o,width:s.floating.width,height:s.floating.height}:s.reference,w=await(a.getOffsetParent==null?void 0:a.getOffsetParent(i.floating)),E=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=Gt(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:i,rect:b,offsetParent:w,strategy:c}):b);return{top:(y.top-k.top+v.top)/E.y,bottom:(k.bottom-y.bottom+v.bottom)/E.y,left:(y.left-k.left+v.left)/E.x,right:(k.right-y.right+v.right)/E.x}}const qc=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:a,platform:s,elements:i,middlewareData:c}=t,{element:u,padding:p=0}=ke(e,t)||{};if(u==null)return{};const f=Zo(p),g={x:n,y:r},h=Ln(o),v=Dn(h),m=await s.getDimensions(u),x=h==="y",y=x?"top":"left",b=x?"bottom":"right",w=x?"clientHeight":"clientWidth",E=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 P=N?N[w]:0;(!P||!await(s.isElement==null?void 0:s.isElement(N)))&&(P=i.floating[w]||a.floating[v]);const _=E/2-k/2,B=P/2-m[v]/2-1,q=Te(f[y],B),Q=Te(f[b],B),J=q,ee=P-m[v]-Q,V=P/2-m[v]/2+_,X=In(J,V,ee),$=!c.arrow&&et(o)!=null&&V!==X&&a.reference[v]/2-(V<J?q:Q)-m[v]/2<0,z=$?V<J?V-J:V-ee:0;return{[h]:g[h]+z,data:{[h]:X,centerOffset:V-X-z,...$&&{alignmentOffset:z}},reset:$}}}),Xc=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:a,rects:s,initialPlacement:i,platform:c,elements:u}=t,{mainAxis:p=!0,crossAxis:f=!0,fallbackPlacements:g,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:m=!0,...x}=ke(e,t);if((n=a.arrow)!=null&&n.alignmentOffset)return{};const y=Pe(o),b=ye(i),w=Pe(i)===i,E=await(c.isRTL==null?void 0:c.isRTL(u.floating)),k=g||(w||!m?[Ut(i)]:Bc(i)),N=v!=="none";!g&&N&&k.push(...Gc(i,m,v,E));const P=[i,...k],_=await ht(t,x),B=[];let q=((r=a.flip)==null?void 0:r.overflows)||[];if(p&&B.push(_[y]),f){const V=zc(o,s,E);B.push(_[V[0]],_[V[1]])}if(q=[...q,{placement:o,overflows:B}],!B.every(V=>V<=0)){var Q,J;const V=(((Q=a.flip)==null?void 0:Q.index)||0)+1,X=P[V];if(X&&(!(f==="alignment"?b!==ye(X):!1)||q.every(R=>ye(R.placement)===b?R.overflows[0]>0:!0)))return{data:{index:V,overflows:q},reset:{placement:X}};let $=(J=q.filter(z=>z.overflows[0]<=0).sort((z,R)=>z.overflows[1]-R.overflows[1])[0])==null?void 0:J.placement;if(!$)switch(h){case"bestFit":{var ee;const z=(ee=q.filter(R=>{if(N){const ne=ye(R.placement);return ne===b||ne==="y"}return!0}).map(R=>[R.placement,R.overflows.filter(ne=>ne>0).reduce((ne,C)=>ne+C,0)]).sort((R,ne)=>R[1]-ne[1])[0])==null?void 0:ee[0];z&&($=z);break}case"initialPlacement":$=i;break}if(o!==$)return{reset:{placement:$}}}return{}}}};function Qo(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function ea(e){return Lc.some(t=>e[t]>=0)}const Zc=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=ke(e,t);switch(r){case"referenceHidden":{const a=await ht(t,{...o,elementContext:"reference"}),s=Qo(a,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:ea(s)}}}case"escaped":{const a=await ht(t,{...o,altBoundary:!0}),s=Qo(a,n.floating);return{data:{escapedOffsets:s,escaped:ea(s)}}}default:return{}}}}},ta=new Set(["left","top"]);async function Jc(e,t){const{placement:n,platform:r,elements:o}=e,a=await(r.isRTL==null?void 0:r.isRTL(o.floating)),s=Pe(n),i=et(n),c=ye(n)==="y",u=ta.has(s)?-1:1,p=a&&c?-1:1,f=ke(t,e);let{mainAxis:g,crossAxis:h,alignmentAxis:v}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return i&&typeof v=="number"&&(h=i==="end"?v*-1:v),c?{x:h*p,y:g*u}:{x:g*u,y:h*p}}const Qc=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:a,placement:s,middlewareData:i}=t,c=await Jc(t,e);return s===((n=i.offset)==null?void 0:n.placement)&&(r=i.arrow)!=null&&r.alignmentOffset?{}:{x:o+c.x,y:a+c.y,data:{...c,placement:s}}}}},eu=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,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}=ke(e,t),u={x:n,y:r},p=await ht(t,c),f=ye(Pe(o)),g=Mn(f);let h=u[g],v=u[f];if(a){const x=g==="y"?"top":"left",y=g==="y"?"bottom":"right",b=h+p[x],w=h-p[y];h=In(b,h,w)}if(s){const x=f==="y"?"top":"left",y=f==="y"?"bottom":"right",b=v+p[x],w=v-p[y];v=In(b,v,w)}const m=i.fn({...t,[g]:h,[f]:v});return{...m,data:{x:m.x-n,y:m.y-r,enabled:{[g]:a,[f]:s}}}}}},tu=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:a,middlewareData:s}=t,{offset:i=0,mainAxis:c=!0,crossAxis:u=!0}=ke(e,t),p={x:n,y:r},f=ye(o),g=Mn(f);let h=p[g],v=p[f];const m=ke(i,t),x=typeof m=="number"?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(c){const w=g==="y"?"height":"width",E=a.reference[g]-a.floating[w]+x.mainAxis,k=a.reference[g]+a.reference[w]-x.mainAxis;h<E?h=E:h>k&&(h=k)}if(u){var y,b;const w=g==="y"?"width":"height",E=ta.has(Pe(o)),k=a.reference[f]-a.floating[w]+(E&&((y=s.offset)==null?void 0:y[f])||0)+(E?0:x.crossAxis),N=a.reference[f]+a.reference[w]+(E?0:((b=s.offset)==null?void 0:b[f])||0)-(E?x.crossAxis:0);v<k?v=k:v>N&&(v=N)}return{[g]:h,[f]:v}}}},nu=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:a,platform:s,elements:i}=t,{apply:c=()=>{},...u}=ke(e,t),p=await ht(t,u),f=Pe(o),g=et(o),h=ye(o)==="y",{width:v,height:m}=a.floating;let x,y;f==="top"||f==="bottom"?(x=f,y=g===(await(s.isRTL==null?void 0:s.isRTL(i.floating))?"start":"end")?"left":"right"):(y=f,x=g==="end"?"top":"bottom");const b=m-p.top-p.bottom,w=v-p.left-p.right,E=Te(m-p[x],b),k=Te(v-p[y],w),N=!t.middlewareData.shift;let P=E,_=k;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(_=w),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(P=b),N&&!g){const q=de(p.left,0),Q=de(p.right,0),J=de(p.top,0),ee=de(p.bottom,0);h?_=v-2*(q!==0||Q!==0?q+Q:de(p.left,p.right)):P=m-2*(J!==0||ee!==0?J+ee:de(p.top,p.bottom))}await c({...t,availableWidth:_,availableHeight:P});const B=await s.getDimensions(i.floating);return v!==B.width||m!==B.height?{reset:{rects:!0}}:{}}}};function Yt(){return typeof window<"u"}function tt(e){return na(e)?(e.nodeName||"").toLowerCase():"#document"}function fe(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function we(e){var t;return(t=(na(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function na(e){return Yt()?e instanceof Node||e instanceof fe(e).Node:!1}function he(e){return Yt()?e instanceof Element||e instanceof fe(e).Element:!1}function Se(e){return Yt()?e instanceof HTMLElement||e instanceof fe(e).HTMLElement:!1}function ra(e){return!Yt()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof fe(e).ShadowRoot}const ru=new Set(["inline","contents"]);function gt(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=ge(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!ru.has(o)}const ou=new Set(["table","td","th"]);function au(e){return ou.has(tt(e))}const su=[":popover-open",":modal"];function Kt(e){return su.some(t=>{try{return e.matches(t)}catch{return!1}})}const iu=["transform","translate","scale","rotate","perspective"],lu=["transform","translate","scale","rotate","perspective","filter"],cu=["paint","layout","strict","content"];function Fn(e){const t=Vn(),n=he(e)?ge(e):e;return iu.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||lu.some(r=>(n.willChange||"").includes(r))||cu.some(r=>(n.contain||"").includes(r))}function uu(e){let t=Oe(e);for(;Se(t)&&!nt(t);){if(Fn(t))return t;if(Kt(t))return null;t=Oe(t)}return null}function Vn(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const du=new Set(["html","body","#document"]);function nt(e){return du.has(tt(e))}function ge(e){return fe(e).getComputedStyle(e)}function qt(e){return he(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Oe(e){if(tt(e)==="html")return e;const t=e.assignedSlot||e.parentNode||ra(e)&&e.host||we(e);return ra(t)?t.host:t}function oa(e){const t=Oe(e);return nt(t)?e.ownerDocument?e.ownerDocument.body:e.body:Se(t)&>(t)?t:oa(t)}function vt(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=oa(e),a=o===((r=e.ownerDocument)==null?void 0:r.body),s=fe(o);if(a){const i=zn(s);return t.concat(s,s.visualViewport||[],gt(o)?o:[],i&&n?vt(i):[])}return t.concat(o,vt(o,[],n))}function zn(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function aa(e){const t=ge(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Se(e),a=o?e.offsetWidth:n,s=o?e.offsetHeight:r,i=Wt(n)!==a||Wt(r)!==s;return i&&(n=a,r=s),{width:n,height:r,$:i}}function Bn(e){return he(e)?e:e.contextElement}function rt(e){const t=Bn(e);if(!Se(t))return be(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:a}=aa(t);let s=(a?Wt(n.width):n.width)/r,i=(a?Wt(n.height):n.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!i||!Number.isFinite(i))&&(i=1),{x:s,y:i}}const fu=be(0);function sa(e){const t=fe(e);return!Vn()||!t.visualViewport?fu:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function pu(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==fe(e)?!1:t}function Be(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),a=Bn(e);let s=be(1);t&&(r?he(r)&&(s=rt(r)):s=rt(e));const i=pu(a,n,r)?sa(a):be(0);let c=(o.left+i.x)/s.x,u=(o.top+i.y)/s.y,p=o.width/s.x,f=o.height/s.y;if(a){const g=fe(a),h=r&&he(r)?fe(r):r;let v=g,m=zn(v);for(;m&&r&&h!==v;){const x=rt(m),y=m.getBoundingClientRect(),b=ge(m),w=y.left+(m.clientLeft+parseFloat(b.paddingLeft))*x.x,E=y.top+(m.clientTop+parseFloat(b.paddingTop))*x.y;c*=x.x,u*=x.y,p*=x.x,f*=x.y,c+=w,u+=E,v=fe(m),m=zn(v)}}return Gt({width:p,height:f,x:c,y:u})}function Xt(e,t){const n=qt(e).scrollLeft;return t?t.left+n:Be(we(e)).left+n}function ia(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-Xt(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function mu(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const a=o==="fixed",s=we(r),i=t?Kt(t.floating):!1;if(r===s||i&&a)return n;let c={scrollLeft:0,scrollTop:0},u=be(1);const p=be(0),f=Se(r);if((f||!f&&!a)&&((tt(r)!=="body"||gt(s))&&(c=qt(r)),Se(r))){const h=Be(r);u=rt(r),p.x=h.x+r.clientLeft,p.y=h.y+r.clientTop}const g=s&&!f&&!a?ia(s,c):be(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-c.scrollLeft*u.x+p.x+g.x,y:n.y*u.y-c.scrollTop*u.y+p.y+g.y}}function hu(e){return Array.from(e.getClientRects())}function gu(e){const t=we(e),n=qt(e),r=e.ownerDocument.body,o=de(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=de(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+Xt(e);const i=-n.scrollTop;return ge(r).direction==="rtl"&&(s+=de(t.clientWidth,r.clientWidth)-o),{width:o,height:a,x:s,y:i}}const la=25;function vu(e,t){const n=fe(e),r=we(e),o=n.visualViewport;let a=r.clientWidth,s=r.clientHeight,i=0,c=0;if(o){a=o.width,s=o.height;const p=Vn();(!p||p&&t==="fixed")&&(i=o.offsetLeft,c=o.offsetTop)}const u=Xt(r);if(u<=0){const p=r.ownerDocument,f=p.body,g=getComputedStyle(f),h=p.compatMode==="CSS1Compat"&&parseFloat(g.marginLeft)+parseFloat(g.marginRight)||0,v=Math.abs(r.clientWidth-f.clientWidth-h);v<=la&&(a-=v)}else u<=la&&(a+=u);return{width:a,height:s,x:i,y:c}}const xu=new Set(["absolute","fixed"]);function bu(e,t){const n=Be(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,a=Se(e)?rt(e):be(1),s=e.clientWidth*a.x,i=e.clientHeight*a.y,c=o*a.x,u=r*a.y;return{width:s,height:i,x:c,y:u}}function ca(e,t,n){let r;if(t==="viewport")r=vu(e,n);else if(t==="document")r=gu(we(e));else if(he(t))r=bu(t,n);else{const o=sa(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Gt(r)}function ua(e,t){const n=Oe(e);return n===t||!he(n)||nt(n)?!1:ge(n).position==="fixed"||ua(n,t)}function yu(e,t){const n=t.get(e);if(n)return n;let r=vt(e,[],!1).filter(i=>he(i)&&tt(i)!=="body"),o=null;const a=ge(e).position==="fixed";let s=a?Oe(e):e;for(;he(s)&&!nt(s);){const i=ge(s),c=Fn(s);!c&&i.position==="fixed"&&(o=null),(a?!c&&!o:!c&&i.position==="static"&&!!o&&xu.has(o.position)||gt(s)&&!c&&ua(e,s))?r=r.filter(p=>p!==s):o=i,s=Oe(s)}return t.set(e,r),r}function wu(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const s=[...n==="clippingAncestors"?Kt(t)?[]:yu(t,this._c):[].concat(n),r],i=s[0],c=s.reduce((u,p)=>{const f=ca(t,p,o);return u.top=de(f.top,u.top),u.right=Te(f.right,u.right),u.bottom=Te(f.bottom,u.bottom),u.left=de(f.left,u.left),u},ca(t,i,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function Su(e){const{width:t,height:n}=aa(e);return{width:t,height:n}}function Cu(e,t,n){const r=Se(t),o=we(t),a=n==="fixed",s=Be(e,!0,a,t);let i={scrollLeft:0,scrollTop:0};const c=be(0);function u(){c.x=Xt(o)}if(r||!r&&!a)if((tt(t)!=="body"||gt(o))&&(i=qt(t)),r){const h=Be(t,!0,a,t);c.x=h.x+t.clientLeft,c.y=h.y+t.clientTop}else o&&u();a&&!r&&o&&u();const p=o&&!r&&!a?ia(o,i):be(0),f=s.left+i.scrollLeft-c.x-p.x,g=s.top+i.scrollTop-c.y-p.y;return{x:f,y:g,width:s.width,height:s.height}}function Wn(e){return ge(e).position==="static"}function da(e,t){if(!Se(e)||ge(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return we(e)===n&&(n=n.ownerDocument.body),n}function fa(e,t){const n=fe(e);if(Kt(e))return n;if(!Se(e)){let o=Oe(e);for(;o&&!nt(o);){if(he(o)&&!Wn(o))return o;o=Oe(o)}return n}let r=da(e,t);for(;r&&au(r)&&Wn(r);)r=da(r,t);return r&&nt(r)&&Wn(r)&&!Fn(r)?n:r||uu(e)||n}const Eu=async function(e){const t=this.getOffsetParent||fa,n=this.getDimensions,r=await n(e.floating);return{reference:Cu(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function ku(e){return ge(e).direction==="rtl"}const Pu={convertOffsetParentRelativeRectToViewportRelativeRect:mu,getDocumentElement:we,getClippingRect:wu,getOffsetParent:fa,getElementRects:Eu,getClientRects:hu,getDimensions:Su,getScale:rt,isElement:he,isRTL:ku};function pa(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Ru(e,t){let n=null,r;const o=we(e);function a(){var i;clearTimeout(r),(i=n)==null||i.disconnect(),n=null}function s(i,c){i===void 0&&(i=!1),c===void 0&&(c=1),a();const u=e.getBoundingClientRect(),{left:p,top:f,width:g,height:h}=u;if(i||t(),!g||!h)return;const v=Ht(f),m=Ht(o.clientWidth-(p+g)),x=Ht(o.clientHeight-(f+h)),y=Ht(p),w={rootMargin:-v+"px "+-m+"px "+-x+"px "+-y+"px",threshold:de(0,Te(1,c))||1};let E=!0;function k(N){const P=N[0].intersectionRatio;if(P!==c){if(!E)return s();P?s(!1,P):r=setTimeout(()=>{s(!1,1e-7)},1e3)}P===1&&!pa(u,e.getBoundingClientRect())&&s(),E=!1}try{n=new IntersectionObserver(k,{...w,root:o.ownerDocument})}catch{n=new IntersectionObserver(k,w)}n.observe(e)}return s(!0),a}function Au(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:i=typeof IntersectionObserver=="function",animationFrame:c=!1}=r,u=Bn(e),p=o||a?[...u?vt(u):[],...vt(t)]:[];p.forEach(y=>{o&&y.addEventListener("scroll",n,{passive:!0}),a&&y.addEventListener("resize",n)});const f=u&&i?Ru(u,n):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)})),n()}),u&&!c&&h.observe(u),h.observe(t));let v,m=c?Be(e):null;c&&x();function x(){const y=Be(e);m&&!pa(m,y)&&n(),m=y,v=requestAnimationFrame(x)}return n(),()=>{var y;p.forEach(b=>{o&&b.removeEventListener("scroll",n),a&&b.removeEventListener("resize",n)}),f==null||f(),(y=h)==null||y.disconnect(),h=null,c&&cancelAnimationFrame(v)}}const _u=Qc,Nu=eu,Tu=Xc,Ou=nu,ju=Zc,ma=qc,Iu=tu,Mu=(e,t,n)=>{const r=new Map,o={platform:Pu,...n},a={...o.platform,_c:r};return Kc(e,t,{...o,platform:a})};var Du=typeof document<"u",Lu=function(){},Zt=Du?te.useLayoutEffect:Lu;function Jt(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Jt(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const a=o[r];if(!(a==="_owner"&&e.$$typeof)&&!Jt(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function ha(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function ga(e,t){const n=ha(e);return Math.round(t*n)/n}function Hn(e){const t=l.useRef(e);return Zt(()=>{t.current=e}),t}function $u(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:a,floating:s}={},transform:i=!0,whileElementsMounted:c,open:u}=e,[p,f]=l.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[g,h]=l.useState(r);Jt(g,r)||h(r);const[v,m]=l.useState(null),[x,y]=l.useState(null),b=l.useCallback(R=>{R!==N.current&&(N.current=R,m(R))},[]),w=l.useCallback(R=>{R!==P.current&&(P.current=R,y(R))},[]),E=a||v,k=s||x,N=l.useRef(null),P=l.useRef(null),_=l.useRef(p),B=c!=null,q=Hn(c),Q=Hn(o),J=Hn(u),ee=l.useCallback(()=>{if(!N.current||!P.current)return;const R={placement:t,strategy:n,middleware:g};Q.current&&(R.platform=Q.current),Mu(N.current,P.current,R).then(ne=>{const C={...ne,isPositioned:J.current!==!1};V.current&&!Jt(_.current,C)&&(_.current=C,At.flushSync(()=>{f(C)}))})},[g,t,n,Q,J]);Zt(()=>{u===!1&&_.current.isPositioned&&(_.current.isPositioned=!1,f(R=>({...R,isPositioned:!1})))},[u]);const V=l.useRef(!1);Zt(()=>(V.current=!0,()=>{V.current=!1}),[]),Zt(()=>{if(E&&(N.current=E),k&&(P.current=k),E&&k){if(q.current)return q.current(E,k,ee);ee()}},[E,k,ee,q,B]);const X=l.useMemo(()=>({reference:N,floating:P,setReference:b,setFloating:w}),[b,w]),$=l.useMemo(()=>({reference:E,floating:k}),[E,k]),z=l.useMemo(()=>{const R={position:n,left:0,top:0};if(!$.floating)return R;const ne=ga($.floating,p.x),C=ga($.floating,p.y);return i?{...R,transform:"translate("+ne+"px, "+C+"px)",...ha($.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:ne,top:C}},[n,i,$.floating,p.x,p.y]);return l.useMemo(()=>({...p,update:ee,refs:X,elements:$,floatingStyles:z}),[p,ee,X,$,z])}const Fu=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?ma({element:r.current,padding:o}).fn(n):{}:r?ma({element:r,padding:o}).fn(n):{}}}},Vu=(e,t)=>({..._u(e),options:[e,t]}),zu=(e,t)=>({...Nu(e),options:[e,t]}),Bu=(e,t)=>({...Iu(e),options:[e,t]}),Wu=(e,t)=>({...Tu(e),options:[e,t]}),Hu=(e,t)=>({...Ou(e),options:[e,t]}),Uu=(e,t)=>({...ju(e),options:[e,t]}),Gu=(e,t)=>({...Fu(e),options:[e,t]});var Yu="Arrow",va=l.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...a}=e;return d.jsx(H.svg,{...a,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:d.jsx("polygon",{points:"0,0 30,0 15,10"})})});va.displayName=Yu;var Ku=va;function qu(e){const[t,n]=l.useState(void 0);return ie(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=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;n({width:s,height:i})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var Un="Popper",[xa,ot]=Ve(Un),[Xu,ba]=xa(Un),ya=e=>{const{__scopePopper:t,children:n}=e,[r,o]=l.useState(null);return d.jsx(Xu,{scope:t,anchor:r,onAnchorChange:o,children:n})};ya.displayName=Un;var wa="PopperAnchor",Sa=l.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,a=ba(wa,n),s=l.useRef(null),i=ae(t,s),c=l.useRef(null);return l.useEffect(()=>{const u=c.current;c.current=(r==null?void 0:r.current)||s.current,u!==c.current&&a.onAnchorChange(c.current)}),r?null:d.jsx(H.div,{...o,ref:i})});Sa.displayName=wa;var Gn="PopperContent",[Zu,Ju]=xa(Gn),Ca=l.forwardRef((e,t)=>{var A,D,W,Y,re,oe;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:a="center",alignOffset:s=0,arrowPadding:i=0,avoidCollisions:c=!0,collisionBoundary:u=[],collisionPadding:p=0,sticky:f="partial",hideWhenDetached:g=!1,updatePositionStrategy:h="optimized",onPlaced:v,...m}=e,x=ba(Gn,n),[y,b]=l.useState(null),w=ae(t,pe=>b(pe)),[E,k]=l.useState(null),N=qu(E),P=(N==null?void 0:N.width)??0,_=(N==null?void 0:N.height)??0,B=r+(a!=="center"?"-"+a:""),q=typeof p=="number"?p:{top:0,right:0,bottom:0,left:0,...p},Q=Array.isArray(u)?u:[u],J=Q.length>0,ee={padding:q,boundary:Q.filter(ed),altBoundary:J},{refs:V,floatingStyles:X,placement:$,isPositioned:z,middlewareData:R}=$u({strategy:"fixed",placement:B,whileElementsMounted:(...pe)=>Au(...pe,{animationFrame:h==="always"}),elements:{reference:x.anchor},middleware:[Vu({mainAxis:o+_,alignmentAxis:s}),c&&zu({mainAxis:!0,crossAxis:!1,limiter:f==="partial"?Bu():void 0,...ee}),c&&Wu({...ee}),Hu({...ee,apply:({elements:pe,rects:Ce,availableWidth:kt,availableHeight:Pt})=>{const{width:Rt,height:Yp}=Ce.reference,un=pe.floating.style;un.setProperty("--radix-popper-available-width",`${kt}px`),un.setProperty("--radix-popper-available-height",`${Pt}px`),un.setProperty("--radix-popper-anchor-width",`${Rt}px`),un.setProperty("--radix-popper-anchor-height",`${Yp}px`)}}),E&&Gu({element:E,padding:i}),td({arrowWidth:P,arrowHeight:_}),g&&Uu({strategy:"referenceHidden",...ee})]}),[ne,C]=Pa($),L=Ae(v);ie(()=>{z&&(L==null||L())},[z,L]);const S=(A=R.arrow)==null?void 0:A.x,T=(D=R.arrow)==null?void 0:D.y,M=((W=R.arrow)==null?void 0:W.centerOffset)!==0,[O,U]=l.useState();return ie(()=>{y&&U(window.getComputedStyle(y).zIndex)},[y]),d.jsx("div",{ref:V.setFloating,"data-radix-popper-content-wrapper":"",style:{...X,transform:z?X.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:O,"--radix-popper-transform-origin":[(Y=R.transformOrigin)==null?void 0:Y.x,(re=R.transformOrigin)==null?void 0:re.y].join(" "),...((oe=R.hide)==null?void 0:oe.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:d.jsx(Zu,{scope:n,placedSide:ne,onArrowChange:k,arrowX:S,arrowY:T,shouldHideArrow:M,children:d.jsx(H.div,{"data-side":ne,"data-align":C,...m,ref:w,style:{...m.style,animation:z?void 0:"none"}})})})});Ca.displayName=Gn;var Ea="PopperArrow",Qu={top:"bottom",right:"left",bottom:"top",left:"right"},ka=l.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,a=Ju(Ea,r),s=Qu[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(Ku,{...o,ref:n,style:{...o.style,display:"block"}})})});ka.displayName=Ea;function ed(e){return e!==null}var td=e=>({name:"transformOrigin",options:e,fn(t){var x,y,b;const{placement:n,rects:r,middlewareData:o}=t,s=((x=o.arrow)==null?void 0:x.centerOffset)!==0,i=s?0:e.arrowWidth,c=s?0:e.arrowHeight,[u,p]=Pa(n),f={start:"0%",center:"50%",end:"100%"}[p],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?f:`${g}px`,m=`${-c}px`):u==="top"?(v=s?f:`${g}px`,m=`${r.floating.height+c}px`):u==="right"?(v=`${-c}px`,m=s?f:`${h}px`):u==="left"&&(v=`${r.floating.width+c}px`,m=s?f:`${h}px`),{data:{x:v,y:m}}}});function Pa(e){const[t,n="center"]=e.split("-");return[t,n]}var Yn=ya,Qt=Sa,Kn=Ca,qn=ka,Ra=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"}),nd="VisuallyHidden",Aa=l.forwardRef((e,t)=>d.jsx(H.span,{...e,ref:t,style:{...Ra,...e.style}}));Aa.displayName=nd;var rd=Aa,[en,mm]=Ve("Tooltip",[ot]),tn=ot(),_a="TooltipProvider",od=700,Xn="tooltip.open",[ad,Zn]=en(_a),Na=e=>{const{__scopeTooltip:t,delayDuration:n=od,skipDelayDuration:r=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(ad,{scope:t,isOpenDelayedRef:s,delayDuration:n,onOpen:l.useCallback(()=>{window.clearTimeout(c.current),s.current=!1},[]),onClose:l.useCallback(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>s.current=!0,r)},[r]),isPointerInTransitRef:i,onPointerInTransitChange:l.useCallback(u=>{i.current=u},[]),disableHoverableContent:o,children:a})};Na.displayName=_a;var xt="Tooltip",[sd,bt]=en(xt),Ta=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o,onOpenChange:a,disableHoverableContent:s,delayDuration:i}=e,c=Zn(xt,e.__scopeTooltip),u=tn(t),[p,f]=l.useState(null),g=ce(),h=l.useRef(0),v=s??c.disableHoverableContent,m=i??c.delayDuration,x=l.useRef(!1),[y,b]=qe({prop:r,defaultProp:o??!1,onChange:P=>{P?(c.onOpen(),document.dispatchEvent(new CustomEvent(Xn))):c.onClose(),a==null||a(P)},caller:xt}),w=l.useMemo(()=>y?x.current?"delayed-open":"instant-open":"closed",[y]),E=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(Yn,{...u,children:d.jsx(sd,{scope:t,contentId:g,open:y,stateAttribute:w,trigger:p,onTriggerChange:f,onTriggerEnter:l.useCallback(()=>{c.isOpenDelayedRef.current?N():E()},[c.isOpenDelayedRef,N,E]),onTriggerLeave:l.useCallback(()=>{v?k():(window.clearTimeout(h.current),h.current=0)},[k,v]),onOpen:E,onClose:k,disableHoverableContent:v,children:n})})};Ta.displayName=xt;var Jn="TooltipTrigger",Oa=l.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=bt(Jn,n),a=Zn(Jn,n),s=tn(n),i=l.useRef(null),c=ae(t,i,o.onTriggerChange),u=l.useRef(!1),p=l.useRef(!1),f=l.useCallback(()=>u.current=!1,[]);return l.useEffect(()=>()=>document.removeEventListener("pointerup",f),[f]),d.jsx(Qt,{asChild:!0,...s,children:d.jsx(H.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:c,onPointerMove:Z(e.onPointerMove,g=>{g.pointerType!=="touch"&&!p.current&&!a.isPointerInTransitRef.current&&(o.onTriggerEnter(),p.current=!0)}),onPointerLeave:Z(e.onPointerLeave,()=>{o.onTriggerLeave(),p.current=!1}),onPointerDown:Z(e.onPointerDown,()=>{o.open&&o.onClose(),u.current=!0,document.addEventListener("pointerup",f,{once:!0})}),onFocus:Z(e.onFocus,()=>{u.current||o.onOpen()}),onBlur:Z(e.onBlur,o.onClose),onClick:Z(e.onClick,o.onClose)})})});Oa.displayName=Jn;var Qn="TooltipPortal",[id,ld]=en(Qn,{forceMount:void 0}),ja=e=>{const{__scopeTooltip:t,forceMount:n,children:r,container:o}=e,a=bt(Qn,t);return d.jsx(id,{scope:t,forceMount:n,children:d.jsx(Ne,{present:n||a.open,children:d.jsx(mt,{asChild:!0,container:o,children:r})})})};ja.displayName=Qn;var at="TooltipContent",Ia=l.forwardRef((e,t)=>{const n=ld(at,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...a}=e,s=bt(at,e.__scopeTooltip);return d.jsx(Ne,{present:r||s.open,children:s.disableHoverableContent?d.jsx(Ma,{side:o,...a,ref:t}):d.jsx(cd,{side:o,...a,ref:t})})}),cd=l.forwardRef((e,t)=>{const n=bt(at,e.__scopeTooltip),r=Zn(at,e.__scopeTooltip),o=l.useRef(null),a=ae(t,o),[s,i]=l.useState(null),{trigger:c,onClose:u}=n,p=o.current,{onPointerInTransitChange:f}=r,g=l.useCallback(()=>{i(null),f(!1)},[f]),h=l.useCallback((v,m)=>{const x=v.currentTarget,y={x:v.clientX,y:v.clientY},b=pd(y,x.getBoundingClientRect()),w=md(y,b),E=hd(m.getBoundingClientRect()),k=vd([...w,...E]);i(k),f(!0)},[f]);return l.useEffect(()=>()=>g(),[g]),l.useEffect(()=>{if(c&&p){const v=x=>h(x,p),m=x=>h(x,c);return c.addEventListener("pointerleave",v),p.addEventListener("pointerleave",m),()=>{c.removeEventListener("pointerleave",v),p.removeEventListener("pointerleave",m)}}},[c,p,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))||(p==null?void 0:p.contains(x)),w=!gd(y,s);b?g():w&&(g(),u())};return document.addEventListener("pointermove",v),()=>document.removeEventListener("pointermove",v)}},[c,p,s,u,g]),d.jsx(Ma,{...e,ref:a})}),[ud,dd]=en(xt,{isInside:!1}),fd=ni("TooltipContent"),Ma=l.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:a,onPointerDownOutside:s,...i}=e,c=bt(at,n),u=tn(n),{onClose:p}=c;return l.useEffect(()=>(document.addEventListener(Xn,p),()=>document.removeEventListener(Xn,p)),[p]),l.useEffect(()=>{if(c.trigger){const f=g=>{const h=g.target;h!=null&&h.contains(c.trigger)&&p()};return window.addEventListener("scroll",f,{capture:!0}),()=>window.removeEventListener("scroll",f,{capture:!0})}},[c.trigger,p]),d.jsx(pt,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:s,onFocusOutside:f=>f.preventDefault(),onDismiss:p,children:d.jsxs(Kn,{"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(fd,{children:r}),d.jsx(ud,{scope:n,isInside:!0,children:d.jsx(rd,{id:c.contentId,role:"tooltip",children:o||r})})]})})});Ia.displayName=at;var Da="TooltipArrow",La=l.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=tn(n);return dd(Da,n).isInside?null:d.jsx(qn,{...o,...r,ref:t})});La.displayName=Da;function pd(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x);switch(Math.min(n,r,o,a)){case a:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function md(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function hd(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}function gd(e,t){const{x:n,y:r}=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,p=i.y,f=c.x,g=c.y;p>r!=g>r&&n<(f-u)*(r-p)/(g-p)+u&&(o=!o)}return o}function vd(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),xd(t)}function xd(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const o=e[r];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 n=[];for(let r=e.length-1;r>=0;r--){const o=e[r];for(;n.length>=2;){const a=n[n.length-1],s=n[n.length-2];if((a.x-s.x)*(o.y-s.y)>=(a.y-s.y)*(o.x-s.x))n.pop();else break}n.push(o)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var bd=Na,yd=Ta,wd=Oa,Sd=ja,Cd=Ia,Ed=La;function $a({delayDuration:e=0,...t}){return d.jsx(bd,{"data-slot":"tooltip-provider",delayDuration:e,...t})}function kd({...e}){return d.jsx($a,{children:d.jsx(yd,{"data-slot":"tooltip",...e})})}function Pd({...e}){return d.jsx(wd,{"data-slot":"tooltip-trigger",...e})}function Rd({className:e,sideOffset:t=0,children:n,...r}){return d.jsx(Sd,{children:d.jsxs(Cd,{"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),...r,children:[n,d.jsx(Ed,{className:"bg-neutral-black-1 fill-foreground z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]"})]})})}const Ad=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"}}),er=({label:e,helperText:t,errorText:n,leftIcon:r,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(Ad({size:a,status:n?"error":i?"disabled":"default"}),s),children:[r&&d.jsx("span",{className:"mr-2 flex-shrink-0",children:r}),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||n)&&d.jsx("p",{className:F("text-xs mt-1",n?"text-primary-1":"text-neutral-black-2"),children:n||t})]}),_d=e=>d.jsx(er,{type:"email",inputMode:"email",...e}),Nd=({showForgot:e=!1,onValidityChange:t,customValidator:n,...r})=>{const[o,a]=te.useState(!1),[s,i]=te.useState(""),u=n?n(s):(f=>[{label:"minimum 8 characters",isValid:f.length>=8},{label:"one uppercase character",isValid:/[A-Z]/.test(f)},{label:"one lowercase character",isValid:/[a-z]/.test(f)},{label:"one special character",isValid:/[^A-Za-z0-9]/.test(f)},{label:"one number",isValid:/\d/.test(f)}])(s),p=u.every(f=>f.isValid);return te.useEffect(()=>{t&&t(p,u)},[s,p,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(er,{type:o?"text":"password",value:s,onChange:f=>i(f.target.value),...r,rightIcon:d.jsx("button",{type:"button",onClick:()=>a(!o),className:"p-1 text-neutral-0 hover:text-text-neutral-0",children:o?d.jsx(Cc,{size:18,className:"text-neutral-black-2"}):d.jsx(Ec,{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((f,g)=>d.jsxs("div",{className:"flex items-center gap-1",children:[f.isValid?d.jsx(wc,{size:14,className:"text-success-d"}):d.jsx(Sc,{size:14,className:"text-stroke"}),d.jsx("span",{className:f.isValid?"text-success-d":"text-input",children:f.label})]},g))})]})})},Td=e=>d.jsx(er,{type:"search",leftIcon:d.jsx(Wo,{"data-testid":"search-icon",className:"w-4 h-4 text-input-placeholder"}),placeholder:"Search...",...e});function Fa(e,[t,n]){return Math.min(n,Math.max(t,e))}function Od(e){const t=e+"CollectionProvider",[n,r]=Ve(t),[o,a]=n(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=$e(i),u=te.forwardRef((m,x)=>{const{scope:y,children:b}=m,w=a(i,y),E=ae(x,w.collectionRef);return d.jsx(c,{ref:E,children:b})});u.displayName=i;const p=e+"CollectionItemSlot",f="data-radix-collection-item",g=$e(p),h=te.forwardRef((m,x)=>{const{scope:y,children:b,...w}=m,E=te.useRef(null),k=ae(x,E),N=a(p,y);return te.useEffect(()=>(N.itemMap.set(E,{ref:E,...w}),()=>void N.itemMap.delete(E))),d.jsx(g,{[f]:"",ref:k,children:b})});h.displayName=p;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(`[${f}]`));return Array.from(x.itemMap.values()).sort((N,P)=>w.indexOf(N.ref.current)-w.indexOf(P.ref.current))},[x.collectionRef,x.itemMap])}return[{Provider:s,Slot:u,ItemSlot:h},v,r]}var jd=l.createContext(void 0);function Id(e){const t=l.useContext(jd);return e||t||"ltr"}function Md(e){const t=l.useRef({value:e,previous:e});return l.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var Dd=[" ","Enter","ArrowUp","ArrowDown"],Ld=[" ","Enter"],We="Select",[nn,rn,$d]=Od(We),[st,hm]=Ve(We,[$d,ot]),on=ot(),[Fd,je]=st(We),[Vd,zd]=st(We),Va=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:o,onOpenChange:a,value:s,defaultValue:i,onValueChange:c,dir:u,name:p,autoComplete:f,disabled:g,required:h,form:v}=e,m=on(t),[x,y]=l.useState(null),[b,w]=l.useState(null),[E,k]=l.useState(!1),N=Id(u),[P,_]=qe({prop:r,defaultProp:o??!1,onChange:a,caller:We}),[B,q]=qe({prop:s,defaultProp:i,onChange:c,caller:We}),Q=l.useRef(null),J=x?v||!!x.closest("form"):!0,[ee,V]=l.useState(new Set),X=Array.from(ee).map($=>$.props.value).join(";");return d.jsx(Yn,{...m,children:d.jsxs(Fd,{required:h,scope:t,trigger:x,onTriggerChange:y,valueNode:b,onValueNodeChange:w,valueNodeHasChildren:E,onValueNodeHasChildrenChange:k,contentId:ce(),value:B,onValueChange:q,open:P,onOpenChange:_,dir:N,triggerPointerDownPosRef:Q,disabled:g,children:[d.jsx(nn.Provider,{scope:t,children:d.jsx(Vd,{scope:e.__scopeSelect,onNativeOptionAdd:l.useCallback($=>{V(z=>new Set(z).add($))},[]),onNativeOptionRemove:l.useCallback($=>{V(z=>{const R=new Set(z);return R.delete($),R})},[]),children:n})}),J?d.jsxs(us,{"aria-hidden":!0,required:h,tabIndex:-1,name:p,autoComplete:f,value:B,onChange:$=>q($.target.value),disabled:g,form:v,children:[B===void 0?d.jsx("option",{value:""}):null,Array.from(ee)]},X):null]})})};Va.displayName=We;var za="SelectTrigger",Ba=l.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...o}=e,a=on(n),s=je(za,n),i=s.disabled||r,c=ae(t,s.onTriggerChange),u=rn(n),p=l.useRef("touch"),[f,g,h]=fs(m=>{const x=u().filter(w=>!w.disabled),y=x.find(w=>w.value===s.value),b=ps(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(Qt,{asChild:!0,...a,children:d.jsx(H.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":ds(s.value)?"":void 0,...o,ref:c,onClick:Z(o.onClick,m=>{m.currentTarget.focus(),p.current!=="mouse"&&v(m)}),onPointerDown:Z(o.onPointerDown,m=>{p.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:Z(o.onKeyDown,m=>{const x=f.current!=="";!(m.ctrlKey||m.altKey||m.metaKey)&&m.key.length===1&&g(m.key),!(x&&m.key===" ")&&Dd.includes(m.key)&&(v(),m.preventDefault())})})})});Ba.displayName=za;var Wa="SelectValue",Ha=l.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,children:a,placeholder:s="",...i}=e,c=je(Wa,n),{onValueNodeHasChildrenChange:u}=c,p=a!==void 0,f=ae(t,c.onValueNodeChange);return ie(()=>{u(p)},[u,p]),d.jsx(H.span,{...i,ref:f,style:{pointerEvents:"none"},children:ds(c.value)?d.jsx(d.Fragment,{children:s}):a})});Ha.displayName=Wa;var Bd="SelectIcon",Ua=l.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...o}=e;return d.jsx(H.span,{"aria-hidden":!0,...o,ref:t,children:r||"▼"})});Ua.displayName=Bd;var Wd="SelectPortal",Ga=e=>d.jsx(mt,{asChild:!0,...e});Ga.displayName=Wd;var He="SelectContent",Ya=l.forwardRef((e,t)=>{const n=je(He,e.__scopeSelect),[r,o]=l.useState();if(ie(()=>{o(new DocumentFragment)},[]),!n.open){const a=r;return a?At.createPortal(d.jsx(Ka,{scope:e.__scopeSelect,children:d.jsx(nn.Slot,{scope:e.__scopeSelect,children:d.jsx("div",{children:e.children})})}),a):null}return d.jsx(qa,{...e,ref:t})});Ya.displayName=He;var ve=10,[Ka,Ie]=st(He),Hd="SelectContentImpl",Ud=$e("SelectContent.RemoveScroll"),qa=l.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:a,onPointerDownOutside:s,side:i,sideOffset:c,align:u,alignOffset:p,arrowPadding:f,collisionBoundary:g,collisionPadding:h,sticky:v,hideWhenDetached:m,avoidCollisions:x,...y}=e,b=je(He,n),[w,E]=l.useState(null),[k,N]=l.useState(null),P=ae(t,A=>E(A)),[_,B]=l.useState(null),[q,Q]=l.useState(null),J=rn(n),[ee,V]=l.useState(!1),X=l.useRef(!1);l.useEffect(()=>{if(w)return _n(w)},[w]),Cn();const $=l.useCallback(A=>{const[D,...W]=J().map(oe=>oe.ref.current),[Y]=W.slice(-1),re=document.activeElement;for(const oe of A)if(oe===re||(oe==null||oe.scrollIntoView({block:"nearest"}),oe===D&&k&&(k.scrollTop=0),oe===Y&&k&&(k.scrollTop=k.scrollHeight),oe==null||oe.focus(),document.activeElement!==re))return},[J,k]),z=l.useCallback(()=>$([_,w]),[$,_,w]);l.useEffect(()=>{ee&&z()},[ee,z]);const{onOpenChange:R,triggerPointerDownPosRef:ne}=b;l.useEffect(()=>{if(w){let A={x:0,y:0};const D=Y=>{var re,oe;A={x:Math.abs(Math.round(Y.pageX)-(((re=ne.current)==null?void 0:re.x)??0)),y:Math.abs(Math.round(Y.pageY)-(((oe=ne.current)==null?void 0:oe.y)??0))}},W=Y=>{A.x<=10&&A.y<=10?Y.preventDefault():w.contains(Y.target)||R(!1),document.removeEventListener("pointermove",D),ne.current=null};return ne.current!==null&&(document.addEventListener("pointermove",D),document.addEventListener("pointerup",W,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",D),document.removeEventListener("pointerup",W,{capture:!0})}}},[w,R,ne]),l.useEffect(()=>{const A=()=>R(!1);return window.addEventListener("blur",A),window.addEventListener("resize",A),()=>{window.removeEventListener("blur",A),window.removeEventListener("resize",A)}},[R]);const[C,L]=fs(A=>{const D=J().filter(re=>!re.disabled),W=D.find(re=>re.ref.current===document.activeElement),Y=ps(D,A,W);Y&&setTimeout(()=>Y.ref.current.focus())}),S=l.useCallback((A,D,W)=>{const Y=!X.current&&!W;(b.value!==void 0&&b.value===D||Y)&&(B(A),Y&&(X.current=!0))},[b.value]),T=l.useCallback(()=>w==null?void 0:w.focus(),[w]),M=l.useCallback((A,D,W)=>{const Y=!X.current&&!W;(b.value!==void 0&&b.value===D||Y)&&Q(A)},[b.value]),O=r==="popper"?tr:Xa,U=O===tr?{side:i,sideOffset:c,align:u,alignOffset:p,arrowPadding:f,collisionBoundary:g,collisionPadding:h,sticky:v,hideWhenDetached:m,avoidCollisions:x}:{};return d.jsx(Ka,{scope:n,content:w,viewport:k,onViewportChange:N,itemRefCallback:S,selectedItem:_,onItemLeave:T,itemTextRefCallback:M,focusSelectedItem:z,selectedItemText:q,position:r,isPositioned:ee,searchRef:C,children:d.jsx($t,{as:Ud,allowPinchZoom:!0,children:d.jsx(Tt,{asChild:!0,trapped:b.open,onMountAutoFocus:A=>{A.preventDefault()},onUnmountAutoFocus:Z(o,A=>{var D;(D=b.trigger)==null||D.focus({preventScroll:!0}),A.preventDefault()}),children:d.jsx(pt,{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,...U,onPlaced:()=>V(!0),ref:P,style:{display:"flex",flexDirection:"column",outline:"none",...y.style},onKeyDown:Z(y.onKeyDown,A=>{const D=A.ctrlKey||A.altKey||A.metaKey;if(A.key==="Tab"&&A.preventDefault(),!D&&A.key.length===1&&L(A.key),["ArrowUp","ArrowDown","Home","End"].includes(A.key)){let Y=J().filter(re=>!re.disabled).map(re=>re.ref.current);if(["ArrowUp","End"].includes(A.key)&&(Y=Y.slice().reverse()),["ArrowUp","ArrowDown"].includes(A.key)){const re=A.target,oe=Y.indexOf(re);Y=Y.slice(oe+1)}setTimeout(()=>$(Y)),A.preventDefault()}})})})})})})});qa.displayName=Hd;var Gd="SelectItemAlignedPosition",Xa=l.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...o}=e,a=je(He,n),s=Ie(He,n),[i,c]=l.useState(null),[u,p]=l.useState(null),f=ae(t,P=>p(P)),g=rn(n),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 P=a.trigger.getBoundingClientRect(),_=u.getBoundingClientRect(),B=a.valueNode.getBoundingClientRect(),q=y.getBoundingClientRect();if(a.dir!=="rtl"){const re=q.left-_.left,oe=B.left-re,pe=P.left-oe,Ce=P.width+pe,kt=Math.max(Ce,_.width),Pt=window.innerWidth-ve,Rt=Fa(oe,[ve,Math.max(ve,Pt-kt)]);i.style.minWidth=Ce+"px",i.style.left=Rt+"px"}else{const re=_.right-q.right,oe=window.innerWidth-B.right-re,pe=window.innerWidth-P.right-oe,Ce=P.width+pe,kt=Math.max(Ce,_.width),Pt=window.innerWidth-ve,Rt=Fa(oe,[ve,Math.max(ve,Pt-kt)]);i.style.minWidth=Ce+"px",i.style.right=Rt+"px"}const Q=g(),J=window.innerHeight-ve*2,ee=m.scrollHeight,V=window.getComputedStyle(u),X=parseInt(V.borderTopWidth,10),$=parseInt(V.paddingTop,10),z=parseInt(V.borderBottomWidth,10),R=parseInt(V.paddingBottom,10),ne=X+$+ee+R+z,C=Math.min(x.offsetHeight*5,ne),L=window.getComputedStyle(m),S=parseInt(L.paddingTop,10),T=parseInt(L.paddingBottom,10),M=P.top+P.height/2-ve,O=J-M,U=x.offsetHeight/2,A=x.offsetTop+U,D=X+$+A,W=ne-D;if(D<=M){const re=Q.length>0&&x===Q[Q.length-1].ref.current;i.style.bottom="0px";const oe=u.clientHeight-m.offsetTop-m.offsetHeight,pe=Math.max(O,U+(re?T:0)+oe+z),Ce=D+pe;i.style.height=Ce+"px"}else{const re=Q.length>0&&x===Q[0].ref.current;i.style.top="0px";const pe=Math.max(M,X+m.offsetTop+(re?S:0)+U)+W;i.style.height=pe+"px",m.scrollTop=D-M+m.offsetTop}i.style.margin=`${ve}px 0`,i.style.minHeight=C+"px",i.style.maxHeight=J+"px",r==null||r(),requestAnimationFrame(()=>h.current=!0)}},[g,a.trigger,a.valueNode,i,u,m,x,y,a.dir,r]);ie(()=>w(),[w]);const[E,k]=l.useState();ie(()=>{u&&k(window.getComputedStyle(u).zIndex)},[u]);const N=l.useCallback(P=>{P&&v.current===!0&&(w(),b==null||b(),v.current=!1)},[w,b]);return d.jsx(Kd,{scope:n,contentWrapper:i,shouldExpandOnScrollRef:h,onScrollButtonChange:N,children:d.jsx("div",{ref:c,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:E},children:d.jsx(H.div,{...o,ref:f,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});Xa.displayName=Gd;var Yd="SelectPopperPosition",tr=l.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:o=ve,...a}=e,s=on(n);return d.jsx(Kn,{...s,...a,ref:t,align:r,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)"}})});tr.displayName=Yd;var[Kd,nr]=st(He,{}),rr="SelectViewport",Za=l.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...o}=e,a=Ie(rr,n),s=nr(rr,n),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:r}),d.jsx(nn.Slot,{scope:n,children:d.jsx(H.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:i,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:Z(o.onScroll,u=>{const p=u.currentTarget,{contentWrapper:f,shouldExpandOnScrollRef:g}=s;if(g!=null&&g.current&&f){const h=Math.abs(c.current-p.scrollTop);if(h>0){const v=window.innerHeight-ve*2,m=parseFloat(f.style.minHeight),x=parseFloat(f.style.height),y=Math.max(m,x);if(y<v){const b=y+h,w=Math.min(v,b),E=b-w;f.style.height=w+"px",f.style.bottom==="0px"&&(p.scrollTop=E>0?E:0,f.style.justifyContent="flex-end")}}}c.current=p.scrollTop})})})]})});Za.displayName=rr;var Ja="SelectGroup",[qd,Xd]=st(Ja),Qa=l.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=ce();return d.jsx(qd,{scope:n,id:o,children:d.jsx(H.div,{role:"group","aria-labelledby":o,...r,ref:t})})});Qa.displayName=Ja;var es="SelectLabel",ts=l.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=Xd(es,n);return d.jsx(H.div,{id:o.id,...r,ref:t})});ts.displayName=es;var an="SelectItem",[Zd,ns]=st(an),rs=l.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:o=!1,textValue:a,...s}=e,i=je(an,n),c=Ie(an,n),u=i.value===r,[p,f]=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,r,o)}),m=ce(),x=l.useRef("touch"),y=()=>{o||(i.onValueChange(r),i.onOpenChange(!1))};if(r==="")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(Zd,{scope:n,value:r,disabled:o,textId:m,isSelected:u,onItemTextChange:l.useCallback(b=>{f(w=>w||((b==null?void 0:b.textContent)??"").trim())},[]),children:d.jsx(nn.ItemSlot,{scope:n,value:r,disabled:o,textValue:p,children:d.jsx(H.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:Z(s.onFocus,()=>h(!0)),onBlur:Z(s.onBlur,()=>h(!1)),onClick:Z(s.onClick,()=>{x.current!=="mouse"&&y()}),onPointerUp:Z(s.onPointerUp,()=>{x.current==="mouse"&&y()}),onPointerDown:Z(s.onPointerDown,b=>{x.current=b.pointerType}),onPointerMove:Z(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:Z(s.onPointerLeave,b=>{var w;b.currentTarget===document.activeElement&&((w=c.onItemLeave)==null||w.call(c))}),onKeyDown:Z(s.onKeyDown,b=>{var E;((E=c.searchRef)==null?void 0:E.current)!==""&&b.key===" "||(Ld.includes(b.key)&&y(),b.key===" "&&b.preventDefault())})})})})});rs.displayName=an;var yt="SelectItemText",os=l.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,...a}=e,s=je(yt,n),i=Ie(yt,n),c=ns(yt,n),u=zd(yt,n),[p,f]=l.useState(null),g=ae(t,y=>f(y),c.onItemTextChange,y=>{var b;return(b=i.itemTextRefCallback)==null?void 0:b.call(i,y,c.value,c.disabled)}),h=p==null?void 0:p.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(H.span,{id:c.textId,...a,ref:g}),c.isSelected&&s.valueNode&&!s.valueNodeHasChildren?At.createPortal(a.children,s.valueNode):null]})});os.displayName=yt;var as="SelectItemIndicator",ss=l.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return ns(as,n).isSelected?d.jsx(H.span,{"aria-hidden":!0,...r,ref:t}):null});ss.displayName=as;var or="SelectScrollUpButton",is=l.forwardRef((e,t)=>{const n=Ie(or,e.__scopeSelect),r=nr(or,e.__scopeSelect),[o,a]=l.useState(!1),s=ae(t,r.onScrollButtonChange);return ie(()=>{if(n.viewport&&n.isPositioned){let i=function(){const u=c.scrollTop>0;a(u)};const c=n.viewport;return i(),c.addEventListener("scroll",i),()=>c.removeEventListener("scroll",i)}},[n.viewport,n.isPositioned]),o?d.jsx(cs,{...e,ref:s,onAutoScroll:()=>{const{viewport:i,selectedItem:c}=n;i&&c&&(i.scrollTop=i.scrollTop-c.offsetHeight)}}):null});is.displayName=or;var ar="SelectScrollDownButton",ls=l.forwardRef((e,t)=>{const n=Ie(ar,e.__scopeSelect),r=nr(ar,e.__scopeSelect),[o,a]=l.useState(!1),s=ae(t,r.onScrollButtonChange);return ie(()=>{if(n.viewport&&n.isPositioned){let i=function(){const u=c.scrollHeight-c.clientHeight,p=Math.ceil(c.scrollTop)<u;a(p)};const c=n.viewport;return i(),c.addEventListener("scroll",i),()=>c.removeEventListener("scroll",i)}},[n.viewport,n.isPositioned]),o?d.jsx(cs,{...e,ref:s,onAutoScroll:()=>{const{viewport:i,selectedItem:c}=n;i&&c&&(i.scrollTop=i.scrollTop+c.offsetHeight)}}):null});ls.displayName=ar;var cs=l.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...o}=e,a=Ie("SelectScrollButton",n),s=l.useRef(null),i=rn(n),c=l.useCallback(()=>{s.current!==null&&(window.clearInterval(s.current),s.current=null)},[]);return l.useEffect(()=>()=>c(),[c]),ie(()=>{var p;const u=i().find(f=>f.ref.current===document.activeElement);(p=u==null?void 0:u.ref.current)==null||p.scrollIntoView({block:"nearest"})},[i]),d.jsx(H.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:Z(o.onPointerDown,()=>{s.current===null&&(s.current=window.setInterval(r,50))}),onPointerMove:Z(o.onPointerMove,()=>{var u;(u=a.onItemLeave)==null||u.call(a),s.current===null&&(s.current=window.setInterval(r,50))}),onPointerLeave:Z(o.onPointerLeave,()=>{c()})})}),Jd="SelectSeparator",Qd=l.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return d.jsx(H.div,{"aria-hidden":!0,...r,ref:t})});Qd.displayName=Jd;var sr="SelectArrow",ef=l.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=on(n),a=je(sr,n),s=Ie(sr,n);return a.open&&s.position==="popper"?d.jsx(qn,{...o,...r,ref:t}):null});ef.displayName=sr;var tf="SelectBubbleInput",us=l.forwardRef(({__scopeSelect:e,value:t,...n},r)=>{const o=l.useRef(null),a=ae(r,o),s=Md(t);return l.useEffect(()=>{const i=o.current;if(!i)return;const c=window.HTMLSelectElement.prototype,p=Object.getOwnPropertyDescriptor(c,"value").set;if(s!==t&&p){const f=new Event("change",{bubbles:!0});p.call(i,t),i.dispatchEvent(f)}},[s,t]),d.jsx(H.select,{...n,style:{...Ra,...n.style},ref:a,defaultValue:t})});us.displayName=tf;function ds(e){return e===""||e===void 0}function fs(e){const t=Ae(e),n=l.useRef(""),r=l.useRef(0),o=l.useCallback(s=>{const i=n.current+s;t(i),function c(u){n.current=u,window.clearTimeout(r.current),u!==""&&(r.current=window.setTimeout(()=>c(""),1e3))}(i)},[t]),a=l.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return l.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,o,a]}function ps(e,t,n){const o=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,a=n?e.indexOf(n):-1;let s=nf(e,Math.max(a,0));o.length===1&&(s=s.filter(u=>u!==n));const c=s.find(u=>u.textValue.toLowerCase().startsWith(o.toLowerCase()));return c!==n?c:void 0}function nf(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var rf=Va,of=Ba,af=Ha,sf=Ua,lf=Ga,cf=Ya,uf=Za,df=Qa,ff=ts,pf=rs,mf=os,hf=ss,gf=is,vf=ls;function xf({...e}){return d.jsx(rf,{"data-slot":"select",...e})}function bf({...e}){return d.jsx(df,{"data-slot":"select-group",...e})}function yf({...e}){return d.jsx(af,{"data-slot":"select-value",...e})}function wf({className:e,size:t="default",children:n,...r}){return d.jsxs(of,{"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),...r,children:[n,d.jsx(sf,{asChild:!0,children:d.jsx(jn,{className:"size-4 opacity-50"})})]})}function Sf({className:e,children:t,position:n="popper",...r}){return d.jsx(lf,{children:d.jsxs(cf,{"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",n==="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:n,...r,children:[d.jsx(Ef,{}),d.jsx(uf,{className:F("p-1",n==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"),children:t}),d.jsx(kf,{})]})})}function Cf({className:e,...t}){return d.jsx(ff,{"data-slot":"select-label",className:F("text-muted-foreground px-2 py-1.5 text-xs",e),...t})}function ms({className:e,children:t,...n}){return d.jsxs(pf,{"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),...n,children:[d.jsx("span",{className:"absolute right-2 flex size-3.5 items-center justify-center",children:d.jsx(hf,{children:d.jsx(bc,{className:"size-4"})})}),d.jsx(mf,{children:t})]})}function Ef({className:e,...t}){return d.jsx(gf,{"data-slot":"select-scroll-up-button",className:F("flex cursor-default items-center justify-center py-1",e),...t,children:d.jsx(yc,{className:"size-4"})})}function kf({className:e,...t}){return d.jsx(vf,{"data-slot":"select-scroll-down-button",className:F("flex cursor-default items-center justify-center py-1",e),...t,children:d.jsx(jn,{className:"size-4"})})}var sn="Popover",[hs,gm]=Ve(sn,[ot]),wt=ot(),[Pf,Me]=hs(sn),gs=e=>{const{__scopePopover:t,children:n,open:r,defaultOpen:o,onOpenChange:a,modal:s=!1}=e,i=wt(t),c=l.useRef(null),[u,p]=l.useState(!1),[f,g]=qe({prop:r,defaultProp:o??!1,onChange:a,caller:sn});return d.jsx(Yn,{...i,children:d.jsx(Pf,{scope:t,contentId:ce(),triggerRef:c,open:f,onOpenChange:g,onOpenToggle:l.useCallback(()=>g(h=>!h),[g]),hasCustomAnchor:u,onCustomAnchorAdd:l.useCallback(()=>p(!0),[]),onCustomAnchorRemove:l.useCallback(()=>p(!1),[]),modal:s,children:n})})};gs.displayName=sn;var vs="PopoverAnchor",Rf=l.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=Me(vs,n),a=wt(n),{onCustomAnchorAdd:s,onCustomAnchorRemove:i}=o;return l.useEffect(()=>(s(),()=>i()),[s,i]),d.jsx(Qt,{...a,...r,ref:t})});Rf.displayName=vs;var xs="PopoverTrigger",bs=l.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=Me(xs,n),a=wt(n),s=ae(t,o.triggerRef),i=d.jsx(H.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Es(o.open),...r,ref:s,onClick:Z(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?i:d.jsx(Qt,{asChild:!0,...a,children:i})});bs.displayName=xs;var ir="PopoverPortal",[Af,_f]=hs(ir,{forceMount:void 0}),ys=e=>{const{__scopePopover:t,forceMount:n,children:r,container:o}=e,a=Me(ir,t);return d.jsx(Af,{scope:t,forceMount:n,children:d.jsx(Ne,{present:n||a.open,children:d.jsx(mt,{asChild:!0,container:o,children:r})})})};ys.displayName=ir;var it="PopoverContent",ws=l.forwardRef((e,t)=>{const n=_f(it,e.__scopePopover),{forceMount:r=n.forceMount,...o}=e,a=Me(it,e.__scopePopover);return d.jsx(Ne,{present:r||a.open,children:a.modal?d.jsx(Tf,{...o,ref:t}):d.jsx(Of,{...o,ref:t})})});ws.displayName=it;var Nf=$e("PopoverContent.RemoveScroll"),Tf=l.forwardRef((e,t)=>{const n=Me(it,e.__scopePopover),r=l.useRef(null),o=ae(t,r),a=l.useRef(!1);return l.useEffect(()=>{const s=r.current;if(s)return _n(s)},[]),d.jsx($t,{as:Nf,allowPinchZoom:!0,children:d.jsx(Ss,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Z(e.onCloseAutoFocus,s=>{var i;s.preventDefault(),a.current||(i=n.triggerRef.current)==null||i.focus()}),onPointerDownOutside:Z(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:Z(e.onFocusOutside,s=>s.preventDefault(),{checkForDefaultPrevented:!1})})})}),Of=l.forwardRef((e,t)=>{const n=Me(it,e.__scopePopover),r=l.useRef(!1),o=l.useRef(!1);return d.jsx(Ss,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{var s,i;(s=e.onCloseAutoFocus)==null||s.call(e,a),a.defaultPrevented||(r.current||(i=n.triggerRef.current)==null||i.focus(),a.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:a=>{var c,u;(c=e.onInteractOutside)==null||c.call(e,a),a.defaultPrevented||(r.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const s=a.target;((u=n.triggerRef.current)==null?void 0:u.contains(s))&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),Ss=l.forwardRef((e,t)=>{const{__scopePopover:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:a,disableOutsidePointerEvents:s,onEscapeKeyDown:i,onPointerDownOutside:c,onFocusOutside:u,onInteractOutside:p,...f}=e,g=Me(it,n),h=wt(n);return Cn(),d.jsx(Tt,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:a,children:d.jsx(pt,{asChild:!0,disableOutsidePointerEvents:s,onInteractOutside:p,onEscapeKeyDown:i,onPointerDownOutside:c,onFocusOutside:u,onDismiss:()=>g.onOpenChange(!1),children:d.jsx(Kn,{"data-state":Es(g.open),role:"dialog",id:g.contentId,...h,...f,ref:t,style:{...f.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)"}})})})}),Cs="PopoverClose",jf=l.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=Me(Cs,n);return d.jsx(H.button,{type:"button",...r,ref:t,onClick:Z(e.onClick,()=>o.onOpenChange(!1))})});jf.displayName=Cs;var If="PopoverArrow",Mf=l.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=wt(n);return d.jsx(qn,{...o,...r,ref:t})});Mf.displayName=If;function Es(e){return e?"open":"closed"}var Df=gs,Lf=bs,$f=ys,Ff=ws;function Vf({...e}){return d.jsx(Df,{"data-slot":"popover",...e})}function zf({...e}){return d.jsx(Lf,{"data-slot":"popover-trigger",...e})}function Bf({className:e,align:t="center",sideOffset:n=4,...r}){return d.jsx($f,{children:d.jsx(Ff,{"data-slot":"popover-content",align:t,sideOffset:n,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),...r})})}var ks=1,Wf=.9,Hf=.8,Uf=.17,lr=.1,cr=.999,Gf=.9999,Yf=.99,Kf=/[\\\/_+.#"@\[\(\{&]/,qf=/[\\\/_+.#"@\[\(\{&]/g,Xf=/[\s-]/,Ps=/[\s-]/g;function ur(e,t,n,r,o,a,s){if(a===t.length)return o===e.length?ks:Yf;var i=`${o},${a}`;if(s[i]!==void 0)return s[i];for(var c=r.charAt(a),u=n.indexOf(c,o),p=0,f,g,h,v;u>=0;)f=ur(e,t,n,r,u+1,a+1,s),f>p&&(u===o?f*=ks:Kf.test(e.charAt(u-1))?(f*=Hf,h=e.slice(o,u-1).match(qf),h&&o>0&&(f*=Math.pow(cr,h.length))):Xf.test(e.charAt(u-1))?(f*=Wf,v=e.slice(o,u-1).match(Ps),v&&o>0&&(f*=Math.pow(cr,v.length))):(f*=Uf,o>0&&(f*=Math.pow(cr,u-o))),e.charAt(u)!==t.charAt(a)&&(f*=Gf)),(f<lr&&n.charAt(u-1)===r.charAt(a+1)||r.charAt(a+1)===r.charAt(a)&&n.charAt(u-1)!==r.charAt(a))&&(g=ur(e,t,n,r,u+1,a+2,s),g*lr>f&&(f=g*lr)),f>p&&(p=f),u=n.indexOf(c,u+1);return s[i]=p,p}function Rs(e){return e.toLowerCase().replace(Ps," ")}function Zf(e,t,n){return e=n&&n.length>0?`${e+" "+n.join(" ")}`:e,ur(e,t,Rs(e),Rs(t),0,0,{})}var St='[cmdk-group=""]',dr='[cmdk-group-items=""]',Jf='[cmdk-group-heading=""]',As='[cmdk-item=""]',_s=`${As}:not([aria-disabled="true"])`,fr="cmdk-item-select",lt="data-value",Qf=(e,t,n)=>Zf(e,t,n),Ns=l.createContext(void 0),Ct=()=>l.useContext(Ns),Ts=l.createContext(void 0),pr=()=>l.useContext(Ts),Os=l.createContext(void 0),js=l.forwardRef((e,t)=>{let n=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}}}),r=ct(()=>new Set),o=ct(()=>new Map),a=ct(()=>new Map),s=ct(()=>new Set),i=Is(e),{label:c,children:u,value:p,onValueChange:f,filter:g,shouldFilter:h,loop:v,disablePointerSelection:m=!1,vimBindings:x=!0,...y}=e,b=ce(),w=ce(),E=ce(),k=l.useRef(null),N=up();Ue(()=>{if(p!==void 0){let S=p.trim();n.current.value=S,P.emit()}},[p]),Ue(()=>{N(6,ee)},[]);let P=l.useMemo(()=>({subscribe:S=>(s.current.add(S),()=>s.current.delete(S)),snapshot:()=>n.current,setState:(S,T,M)=>{var O,U,A,D;if(!Object.is(n.current[S],T)){if(n.current[S]=T,S==="search")J(),q(),N(1,Q);else if(S==="value"){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let W=document.getElementById(E);W?W.focus():(O=document.getElementById(b))==null||O.focus()}if(N(7,()=>{var W;n.current.selectedItemId=(W=V())==null?void 0:W.id,P.emit()}),M||N(5,ee),((U=i.current)==null?void 0:U.value)!==void 0){let W=T??"";(D=(A=i.current).onValueChange)==null||D.call(A,W);return}}P.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}),n.current.filtered.items.set(S,B(T,M)),N(2,()=>{q(),P.emit()}))},item:(S,T)=>(r.current.add(S),T&&(o.current.has(T)?o.current.get(T).add(S):o.current.set(T,new Set([S]))),N(3,()=>{J(),q(),n.current.value||Q(),P.emit()}),()=>{a.current.delete(S),r.current.delete(S),n.current.filtered.items.delete(S);let M=V();N(4,()=>{J(),(M==null?void 0:M.getAttribute("id"))===S&&Q(),P.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:E,labelId:w,listInnerRef:k}),[]);function B(S,T){var M,O;let U=(O=(M=i.current)==null?void 0:M.filter)!=null?O:Qf;return S?U(S,n.current.search,T):0}function q(){if(!n.current.search||i.current.shouldFilter===!1)return;let S=n.current.filtered.items,T=[];n.current.filtered.groups.forEach(O=>{let U=o.current.get(O),A=0;U.forEach(D=>{let W=S.get(D);A=Math.max(W,A)}),T.push([O,A])});let M=k.current;X().sort((O,U)=>{var A,D;let W=O.getAttribute("id"),Y=U.getAttribute("id");return((A=S.get(Y))!=null?A:0)-((D=S.get(W))!=null?D:0)}).forEach(O=>{let U=O.closest(dr);U?U.appendChild(O.parentElement===U?O:O.closest(`${dr} > *`)):M.appendChild(O.parentElement===M?O:O.closest(`${dr} > *`))}),T.sort((O,U)=>U[1]-O[1]).forEach(O=>{var U;let A=(U=k.current)==null?void 0:U.querySelector(`${St}[${lt}="${encodeURIComponent(O[0])}"]`);A==null||A.parentElement.appendChild(A)})}function Q(){let S=X().find(M=>M.getAttribute("aria-disabled")!=="true"),T=S==null?void 0:S.getAttribute(lt);P.setState("value",T||void 0)}function J(){var S,T,M,O;if(!n.current.search||i.current.shouldFilter===!1){n.current.filtered.count=r.current.size;return}n.current.filtered.groups=new Set;let U=0;for(let A of r.current){let D=(T=(S=a.current.get(A))==null?void 0:S.value)!=null?T:"",W=(O=(M=a.current.get(A))==null?void 0:M.keywords)!=null?O:[],Y=B(D,W);n.current.filtered.items.set(A,Y),Y>0&&U++}for(let[A,D]of o.current)for(let W of D)if(n.current.filtered.items.get(W)>0){n.current.filtered.groups.add(A);break}n.current.filtered.count=U}function ee(){var S,T,M;let O=V();O&&(((S=O.parentElement)==null?void 0:S.firstChild)===O&&((M=(T=O.closest(St))==null?void 0:T.querySelector(Jf))==null||M.scrollIntoView({block:"nearest"})),O.scrollIntoView({block:"nearest"}))}function V(){var S;return(S=k.current)==null?void 0:S.querySelector(`${As}[aria-selected="true"]`)}function X(){var S;return Array.from(((S=k.current)==null?void 0:S.querySelectorAll(_s))||[])}function $(S){let T=X()[S];T&&P.setState("value",T.getAttribute(lt))}function z(S){var T;let M=V(),O=X(),U=O.findIndex(D=>D===M),A=O[U+S];(T=i.current)!=null&&T.loop&&(A=U+S<0?O[O.length-1]:U+S===O.length?O[0]:O[U+S]),A&&P.setState("value",A.getAttribute(lt))}function R(S){let T=V(),M=T==null?void 0:T.closest(St),O;for(;M&&!O;)M=S>0?lp(M,St):cp(M,St),O=M==null?void 0:M.querySelector(_s);O?P.setState("value",O.getAttribute(lt)):z(S)}let ne=()=>$(X().length-1),C=S=>{S.preventDefault(),S.metaKey?ne():S.altKey?R(1):z(1)},L=S=>{S.preventDefault(),S.metaKey?$(0):S.altKey?R(-1):z(-1)};return l.createElement(H.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&&C(S);break}case"ArrowDown":{C(S);break}case"p":case"k":{x&&S.ctrlKey&&L(S);break}case"ArrowUp":{L(S);break}case"Home":{S.preventDefault(),$(0);break}case"End":{S.preventDefault(),ne();break}case"Enter":{S.preventDefault();let O=V();if(O){let U=new Event(fr);O.dispatchEvent(U)}}}}},l.createElement("label",{"cmdk-label":"",htmlFor:_.inputId,id:_.labelId,style:fp},c),ln(e,S=>l.createElement(Ts.Provider,{value:P},l.createElement(Ns.Provider,{value:_},S))))}),ep=l.forwardRef((e,t)=>{var n,r;let o=ce(),a=l.useRef(null),s=l.useContext(Os),i=Ct(),c=Is(e),u=(r=(n=c.current)==null?void 0:n.forceMount)!=null?r:s==null?void 0:s.forceMount;Ue(()=>{if(!u)return i.item(o,s==null?void 0:s.id)},[u]);let p=Ms(o,a,[e.value,e.children,a],e.keywords),f=pr(),g=De(N=>N.value&&N.value===p.current),h=De(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(fr,v),()=>N.removeEventListener(fr,v)},[h,e.onSelect,e.disabled]);function v(){var N,P;m(),(P=(N=c.current).onSelect)==null||P.call(N,p.current)}function m(){f.setState("value",p.current,!0)}if(!h)return null;let{disabled:x,value:y,onSelect:b,forceMount:w,keywords:E,...k}=e;return l.createElement(H.div,{ref:Le(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)}),tp=l.forwardRef((e,t)=>{let{heading:n,children:r,forceMount:o,...a}=e,s=ce(),i=l.useRef(null),c=l.useRef(null),u=ce(),p=Ct(),f=De(h=>o||p.filter()===!1?!0:h.search?h.filtered.groups.has(s):!0);Ue(()=>p.group(s),[]),Ms(s,i,[e.value,e.heading,c]);let g=l.useMemo(()=>({id:s,forceMount:o}),[o]);return l.createElement(H.div,{ref:Le(i,t),...a,"cmdk-group":"",role:"presentation",hidden:f?void 0:!0},n&&l.createElement("div",{ref:c,"cmdk-group-heading":"","aria-hidden":!0,id:u},n),ln(e,h=>l.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":n?u:void 0},l.createElement(Os.Provider,{value:g},h))))}),np=l.forwardRef((e,t)=>{let{alwaysRender:n,...r}=e,o=l.useRef(null),a=De(s=>!s.search);return!n&&!a?null:l.createElement(H.div,{ref:Le(o,t),...r,"cmdk-separator":"",role:"separator"})}),rp=l.forwardRef((e,t)=>{let{onValueChange:n,...r}=e,o=e.value!=null,a=pr(),s=De(u=>u.search),i=De(u=>u.selectedItemId),c=Ct();return l.useEffect(()=>{e.value!=null&&a.setState("search",e.value)},[e.value]),l.createElement(H.input,{ref:t,...r,"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),n==null||n(u.target.value)}})}),op=l.forwardRef((e,t)=>{let{children:n,label:r="Suggestions",...o}=e,a=l.useRef(null),s=l.useRef(null),i=De(u=>u.selectedItemId),c=Ct();return l.useEffect(()=>{if(s.current&&a.current){let u=s.current,p=a.current,f,g=new ResizeObserver(()=>{f=requestAnimationFrame(()=>{let h=u.offsetHeight;p.style.setProperty("--cmdk-list-height",h.toFixed(1)+"px")})});return g.observe(u),()=>{cancelAnimationFrame(f),g.unobserve(u)}}},[]),l.createElement(H.div,{ref:Le(a,t),...o,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":i,"aria-label":r,id:c.listId},ln(e,u=>l.createElement("div",{ref:Le(s,c.listInnerRef),"cmdk-list-sizer":""},u)))}),ap=l.forwardRef((e,t)=>{let{open:n,onOpenChange:r,overlayClassName:o,contentClassName:a,container:s,...i}=e;return l.createElement(Do,{open:n,onOpenChange:r},l.createElement(Lo,{container:s},l.createElement($o,{"cmdk-overlay":"",className:o}),l.createElement(Fo,{"aria-label":e.label,"cmdk-dialog":"",className:a},l.createElement(js,{ref:t,...i}))))}),sp=l.forwardRef((e,t)=>De(n=>n.filtered.count===0)?l.createElement(H.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null),ip=l.forwardRef((e,t)=>{let{progress:n,children:r,label:o="Loading...",...a}=e;return l.createElement(H.div,{ref:t,...a,"cmdk-loading":"",role:"progressbar","aria-valuenow":n,"aria-valuemin":0,"aria-valuemax":100,"aria-label":o},ln(e,s=>l.createElement("div",{"aria-hidden":!0},s)))}),Et=Object.assign(js,{List:op,Item:ep,Input:rp,Group:tp,Separator:np,Dialog:ap,Empty:sp,Loading:ip});function lp(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return n;n=n.nextElementSibling}}function cp(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return n;n=n.previousElementSibling}}function Is(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 De(e){let t=pr(),n=()=>e(t.snapshot());return l.useSyncExternalStore(t.subscribe,n,n)}function Ms(e,t,n,r=[]){let o=l.useRef(),a=Ct();return Ue(()=>{var s;let i=(()=>{var u;for(let p of n){if(typeof p=="string")return p.trim();if(typeof p=="object"&&"current"in p)return p.current?(u=p.current.textContent)==null?void 0:u.trim():o.current}})(),c=r.map(u=>u.trim());a.value(e,i,c),(s=t.current)==null||s.setAttribute(lt,i),o.current=i}),o}var up=()=>{let[e,t]=l.useState(),n=ct(()=>new Map);return Ue(()=>{n.current.forEach(r=>r()),n.current=new Map},[e]),(r,o)=>{n.current.set(r,o),t({})}};function dp(e){let t=e.type;return typeof t=="function"?t(e.props):"render"in t?t.render(e.props):e}function ln({asChild:e,children:t},n){return e&&l.isValidElement(t)?l.cloneElement(dp(t),{ref:t.ref},n(t.props.children)):n(t)}var fp={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};function pp({className:e,...t}){return d.jsx(Et,{"data-slot":"command",className:F("bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",e),...t})}function mp({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(Wo,{className:"size-4 shrink-0 opacity-50"}),d.jsx(Et.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 hp({...e}){return d.jsx(Et.Empty,{"data-slot":"command-empty",className:"py-6 text-center text-sm",...e})}function Ds({className:e,...t}){return d.jsx(Et.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 Ls({className:e,...t}){return d.jsx(Et.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 mr(e){return e.length>0&&e[0].kind==="group"}function gp(e){return e.multiple?d.jsx(Fs,{...e}):d.jsx($s,{...e})}const $s=({options:e,placeholder:t="Select...",disabled:n,error:r,helperText:o,value:a,onChange:s})=>{const[i,c]=te.useState(""),u=a??i,p=f=>{c(f),s==null||s(f)};return d.jsxs("div",{className:"w-94",children:[d.jsxs(xf,{value:u,onValueChange:p,disabled:n,children:[d.jsx(wf,{"aria-invalid":!!r,className:F("flex w-full items-center justify-between rounded-md border bg-white px-3 py-2 text-sm",n&&"cursor-not-allowed bg-neutral-black-4 border border-neutral-black-4 rounded",r?"border-primary-1":"border-neutral-black-4"),children:d.jsx(yf,{placeholder:t})}),d.jsx(Sf,{className:"w-full bg-white border border-neutral-black-4",children:mr(e)?e.map(f=>d.jsxs(bf,{className:"p-2",children:[d.jsx(Cf,{children:f.label}),f.options.map(g=>d.jsx(ms,{value:g.value,disabled:g.disabled,children:g.label},g.value))]},f.label)):e.map(f=>d.jsx(ms,{value:f.value,disabled:f.disabled,className:"hover:cursor-pointer hover:bg-neutral-black-5",children:f.label},f.value))})]}),r&&d.jsx("p",{className:"mt-1 text-xs text-primary-1",children:r}),o&&d.jsx("p",{className:"mt-1 text-xs text-neutral-black-3",children:o})]})},Fs=({options:e,placeholder:t="Select...",disabled:n,error:r,helperText:o,value:a,onChange:s})=>{const[i,c]=te.useState(!1),[u,p]=te.useState([]),f=a??u,g=te.useMemo(()=>mr(e)?e.flatMap(v=>v.options):e,[e]),h=v=>{const m=f.includes(v)?f.filter(x=>x!==v):[...f,v];p(m),s==null||s(m)};return d.jsxs("div",{className:"w-94",children:[d.jsxs(Vf,{open:i,onOpenChange:c,children:[d.jsx(zf,{asChild:!0,children:d.jsxs("button",{type:"button",disabled:n,"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",n&&"cursor-not-allowed bg-neutral-black-4 border border-neutral-black-4 rounded",r?"border-primary-1":"border-neutral-black-4"),children:[d.jsx("div",{className:"flex flex-wrap gap-1",children:f.length>0?f.map(v=>d.jsxs(Ko,{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(Uo,{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(jn,{className:"h-4 w-4 text-neutral-black-1"})]})}),d.jsx(Bf,{className:"p-0 w-full bg-white border border-neutral-black-4",children:d.jsxs(pp,{className:"w-full",children:[d.jsx(mp,{placeholder:"Search..."}),d.jsx(hp,{children:"No results found."}),mr(e)?e.map(v=>d.jsx(Ds,{heading:v.label,children:v.options.map(m=>d.jsxs(Ls,{value:m.label,onSelect:()=>!m.disabled&&h(m.value),disabled:m.disabled,children:[d.jsx("input",{type:"checkbox",readOnly:!0,checked:f.includes(m.value),className:"mr-2"}),m.label]},m.value))},v.label)):d.jsx(Ds,{children:g.map(v=>d.jsxs(Ls,{value:v.label,onSelect:()=>!v.disabled&&h(v.value),disabled:v.disabled,children:[d.jsx("input",{type:"checkbox",readOnly:!0,checked:f.includes(v.value),className:"mr-2"}),v.label]},v.value))})]})})]}),r&&d.jsx("p",{className:"mt-1 text-xs text-primary-1",children:r}),o&&d.jsx("p",{className:"mt-1 text-xs text-neutral-black-3",children:o})]})},vp=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 xp({className:e,variant:t,asChild:n=!1,children:r,...o}){const a=n?fn:"div";return d.jsx(a,{"data-slot":"card",className:F(vp({variant:t}),e),...o,children:r})}var hr={exports:{}},gr={};/**
|
|
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 Vs;function
|
|
169
|
+
*/var Vs;function bp(){if(Vs)return gr;Vs=1;var e=te;function t(f,g){return f===g&&(f!==0||1/f===1/g)||f!==f&&g!==g}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,o=e.useEffect,a=e.useLayoutEffect,s=e.useDebugValue;function i(f,g){var h=g(),v=r({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})},[f,h,g]),o(function(){return c(m)&&x({inst:m}),f(function(){c(m)&&x({inst:m})})},[f]),s(h),h}function c(f){var g=f.getSnapshot;f=f.value;try{var h=g();return!n(f,h)}catch{return!0}}function u(f,g){return g()}var p=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?u:i;return gr.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:p,gr}var vr={};/**
|
|
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 zs;function bp(){return zs||(zs=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){p||o.startTransition===void 0||(p=!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(!f){var x=v();a(m,x)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),f=!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,n(y)&&b({inst:y})},[h,m,v]),i(function(){return n(y)&&b({inst:y}),h(function(){n(y)&&b({inst:y})})},[h]),u(m),m}function n(h){var v=h.getSnapshot;h=h.value;try{var m=v();return!a(h,m)}catch{return!0}}function r(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,p=!1,f=!1,g=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?r:t;vr.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())}()),vr}process.env.NODE_ENV==="production"?hr.exports=xp():hr.exports=bp();var yp=hr.exports;function wp(){return yp.useSyncExternalStore(Sp,()=>!0,()=>!1)}function Sp(){return()=>{}}var xr="Avatar",[Cp,hm]=Ve(xr),[Ep,Bs]=Cp(xr),Ws=l.forwardRef((e,t)=>{const{__scopeAvatar:n,...r}=e,[o,a]=l.useState("idle");return d.jsx(Ep,{scope:n,imageLoadingStatus:o,onImageLoadingStatusChange:a,children:d.jsx(H.span,{...r,ref:t})})});Ws.displayName=xr;var Hs="AvatarImage",Us=l.forwardRef((e,t)=>{const{__scopeAvatar:n,src:r,onLoadingStatusChange:o=()=>{},...a}=e,s=Bs(Hs,n),i=kp(r,a),c=Ae(u=>{o(u),s.onImageLoadingStatusChange(u)});return ie(()=>{i!=="idle"&&c(i)},[i,c]),i==="loaded"?d.jsx(H.img,{...a,ref:t,src:r}):null});Us.displayName=Hs;var Gs="AvatarFallback",Ys=l.forwardRef((e,t)=>{const{__scopeAvatar:n,delayMs:r,...o}=e,a=Bs(Gs,n),[s,i]=l.useState(r===void 0);return l.useEffect(()=>{if(r!==void 0){const c=window.setTimeout(()=>i(!0),r);return()=>window.clearTimeout(c)}},[r]),s&&a.imageLoadingStatus!=="loaded"?d.jsx(H.span,{...o,ref:t}):null});Ys.displayName=Gs;function Ks(e,t){return e?t?(e.src!==t&&(e.src=t),e.complete&&e.naturalWidth>0?"loaded":"loading"):"error":"idle"}function kp(e,{referrerPolicy:t,crossOrigin:n}){const r=wp(),o=l.useRef(null),a=r?(o.current||(o.current=new window.Image),o.current):null,[s,i]=l.useState(()=>Ks(a,e));return ie(()=>{i(Ks(a,e))},[a,e]),ie(()=>{const c=f=>()=>{i(f)};if(!a)return;const u=c("loaded"),p=c("error");return a.addEventListener("load",u),a.addEventListener("error",p),t&&(a.referrerPolicy=t),typeof n=="string"&&(a.crossOrigin=n),()=>{a.removeEventListener("load",u),a.removeEventListener("error",p)}},[a,n,t]),s}var Pp=Ws,qs=Us,cn=Ys;const Rp=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}}),Ap=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"}}),_p=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"}}),Np=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 Tp(e){const{type:t,size:n="md",status:r="Neutral",notification:o,CTAIndicator:a=!1,progress:s=!1,className:i,...c}=e;return d.jsxs(Pp,{className:F(Rp({size:n,progress:s}),i),...c,children:[t==="picture"&&d.jsxs(d.Fragment,{children:[d.jsx(qs,{src:e.src,alt:"avatar",className:"w-full h-full object-cover rounded-full"}),d.jsx(cn,{children:d.jsx(Ho,{className:"text-black",size:n==="sm"?16:n==="md"?20:n==="lg"?24:n==="xl"?28:32})})]}),t==="initials"&&d.jsx(cn,{className:"uppercase",children:e.initials}),t==="placeholder"&&d.jsx(cn,{children:d.jsx(Ho,{"data-testid":"avatar-placeholder",className:"text-black",size:n==="sm"?16:n==="md"?20:n==="lg"?24:n==="xl"?28:32})}),r!=="Neutral"&&d.jsx("span",{"data-testid":"avatar-status",className:Ap({status:r,size:n})}),o&&d.jsx("span",{"data-testid":"avatar-notification",className:_p({size:n,priority:o.priority}),children:o.value}),a&&d.jsx("span",{"data-testid":"avatar-camera-icon",className:Np({size:n}),children:d.jsx(gc,{"data-testid":"avatar-camera",className:"text-[var(--color-neutral-black-1)]",size:12})})]})}function Op({className:e,...t}){return d.jsx(qs,{className:F("aspect-square h-full w-full",e),...t})}function jp({className:e,...t}){return d.jsx(cn,{className:F("flex h-full w-full items-center justify-center rounded-full bg-muted",e),...t})}var Ip="Separator",Xs="horizontal",Mp=["horizontal","vertical"],Zs=l.forwardRef((e,t)=>{const{decorative:n,orientation:r=Xs,...o}=e,a=Dp(r)?r:Xs,i=n?{role:"none"}:{"aria-orientation":a==="vertical"?a:void 0,role:"separator"};return d.jsx(H.div,{"data-orientation":a,...i,...o,ref:t})});Zs.displayName=Ip;function Dp(e){return Mp.includes(e)}var Lp=Zs;function $p({className:e,orientation:t="horizontal",decorative:n=!0,size:r=1,...o}){const a=t==="horizontal"?{1:"h-px",2:"h-0.5",3:"h-[3px]",4:"h-1"}[r]:{1:"w-px",2:"w-0.5",3:"w-[3px]",4:"w-1"}[r];return d.jsx(Lp,{"data-slot":"separator",role:"separator",decorative:n,orientation:t,className:F("bg-neutral-black-4 shrink-0",t==="horizontal"?"w-full":"h-full",a,e),...o})}const Fp=ue("flex flex-col gap-12"),Vp=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}}),zp=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}}),Bp=(e,t)=>e&&!t;function Wp({items:e,variant:t="filled",className:n}){const r=e.findIndex(a=>a.notVisited===!0),o=e.map((a,s)=>r!==-1&&s>=r?{...a,notVisited:!0}:a);return d.jsx("div",{className:F(Fp(),n),"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=Bp(i,c),p=a.notVisited||!1,f=o[s+1],g=(f==null?void 0:f.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(Vp({variant:t,visited:!p})),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",p&&"text-neutral-black-4"),children:a.title})]}),d.jsx("div",{"data-testid":"timeline-connector",className:F(zp({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",p&&"text-neutral-black-4"),children:a.description}),a.content&&d.jsx("div",{className:"min-h-[35px]",children:a.content})]})})]},a.id)})})})}const Hp=({variant:e="icon",width:t,height:n,iconSize:r=40,className:o,...a})=>{const s=()=>{switch(e){case"image":return d.jsx(Ec,{size:r,"data-testid":"placeholder-image"});case"video":return d.jsx(Pc,{size:r,"data-testid":"placeholder-video"});case"pieChart":return d.jsx(vc,{size:r,"data-testid":"placeholder-pieChart"});case"icon":default:return d.jsx(kc,{size:r,"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:n},...a,children:s()})};Y.Avatar=Tp,Y.AvatarFallback=jp,Y.AvatarImage=Op,Y.Badge=Ko,Y.Button=Fi,Y.Card=vp,Y.Dialog=Rc,Y.DialogClose=_c,Y.DialogContent=Nc,Y.DialogDescription=Ic,Y.DialogFooter=Oc,Y.DialogHeader=Tc,Y.DialogOverlay=Yo,Y.DialogPortal=Go,Y.DialogTitle=jc,Y.DialogTrigger=Ac,Y.Divider=$p,Y.EmailInput=Ad,Y.MultiSelect=Fs,Y.PasswordInput=_d,Y.Placeholder=Hp,Y.SearchInput=Nd,Y.SelectOption=hp,Y.SingleSelect=$s,Y.StatefulToggle=qr,Y.Timeline=Wp,Y.Toggle=Kr,Y.Tooltip=Ed,Y.TooltipContent=Pd,Y.TooltipProvider=$a,Y.TooltipTrigger=kd,Y.cn=F,Object.defineProperty(Y,Symbol.toStringTag,{value:"Module"})});
|
|
177
|
+
*/var zs;function yp(){return zs||(zs=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){p||o.startTransition===void 0||(p=!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(!f){var x=v();a(m,x)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),f=!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,n(y)&&b({inst:y})},[h,m,v]),i(function(){return n(y)&&b({inst:y}),h(function(){n(y)&&b({inst:y})})},[h]),u(m),m}function n(h){var v=h.getSnapshot;h=h.value;try{var m=v();return!a(h,m)}catch{return!0}}function r(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,p=!1,f=!1,g=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?r:t;vr.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())}()),vr}process.env.NODE_ENV==="production"?hr.exports=bp():hr.exports=yp();var wp=hr.exports;function Sp(){return wp.useSyncExternalStore(Cp,()=>!0,()=>!1)}function Cp(){return()=>{}}var xr="Avatar",[Ep,vm]=Ve(xr),[kp,Bs]=Ep(xr),Ws=l.forwardRef((e,t)=>{const{__scopeAvatar:n,...r}=e,[o,a]=l.useState("idle");return d.jsx(kp,{scope:n,imageLoadingStatus:o,onImageLoadingStatusChange:a,children:d.jsx(H.span,{...r,ref:t})})});Ws.displayName=xr;var Hs="AvatarImage",Us=l.forwardRef((e,t)=>{const{__scopeAvatar:n,src:r,onLoadingStatusChange:o=()=>{},...a}=e,s=Bs(Hs,n),i=Pp(r,a),c=Ae(u=>{o(u),s.onImageLoadingStatusChange(u)});return ie(()=>{i!=="idle"&&c(i)},[i,c]),i==="loaded"?d.jsx(H.img,{...a,ref:t,src:r}):null});Us.displayName=Hs;var Gs="AvatarFallback",Ys=l.forwardRef((e,t)=>{const{__scopeAvatar:n,delayMs:r,...o}=e,a=Bs(Gs,n),[s,i]=l.useState(r===void 0);return l.useEffect(()=>{if(r!==void 0){const c=window.setTimeout(()=>i(!0),r);return()=>window.clearTimeout(c)}},[r]),s&&a.imageLoadingStatus!=="loaded"?d.jsx(H.span,{...o,ref:t}):null});Ys.displayName=Gs;function Ks(e,t){return e?t?(e.src!==t&&(e.src=t),e.complete&&e.naturalWidth>0?"loaded":"loading"):"error":"idle"}function Pp(e,{referrerPolicy:t,crossOrigin:n}){const r=Sp(),o=l.useRef(null),a=r?(o.current||(o.current=new window.Image),o.current):null,[s,i]=l.useState(()=>Ks(a,e));return ie(()=>{i(Ks(a,e))},[a,e]),ie(()=>{const c=f=>()=>{i(f)};if(!a)return;const u=c("loaded"),p=c("error");return a.addEventListener("load",u),a.addEventListener("error",p),t&&(a.referrerPolicy=t),typeof n=="string"&&(a.crossOrigin=n),()=>{a.removeEventListener("load",u),a.removeEventListener("error",p)}},[a,n,t]),s}var Rp=Ws,qs=Us,cn=Ys;const Ap=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}}),_p=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"}}),Np=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"}}),Tp=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 Op(e){const{type:t,size:n="md",status:r="Neutral",notification:o,CTAIndicator:a=!1,progress:s=!1,className:i,...c}=e;return d.jsxs(Rp,{className:F(Ap({size:n,progress:s}),i),...c,children:[t==="picture"&&d.jsxs(d.Fragment,{children:[d.jsx(qs,{src:e.src,alt:"avatar",className:"w-full h-full object-cover rounded-full"}),d.jsx(cn,{children:d.jsx(Ho,{className:"text-black",size:n==="sm"?16:n==="md"?20:n==="lg"?24:n==="xl"?28:32})})]}),t==="initials"&&d.jsx(cn,{className:"uppercase",children:e.initials}),t==="placeholder"&&d.jsx(cn,{children:d.jsx(Ho,{"data-testid":"avatar-placeholder",className:"text-black",size:n==="sm"?16:n==="md"?20:n==="lg"?24:n==="xl"?28:32})}),r!=="Neutral"&&d.jsx("span",{"data-testid":"avatar-status",className:_p({status:r,size:n})}),o&&d.jsx("span",{"data-testid":"avatar-notification",className:Np({size:n,priority:o.priority}),children:o.value}),a&&d.jsx("span",{"data-testid":"avatar-camera-icon",className:Tp({size:n}),children:d.jsx(vc,{"data-testid":"avatar-camera",className:"text-[var(--color-neutral-black-1)]",size:12})})]})}function jp({className:e,...t}){return d.jsx(qs,{className:F("aspect-square h-full w-full",e),...t})}function Ip({className:e,...t}){return d.jsx(cn,{className:F("flex h-full w-full items-center justify-center rounded-full bg-muted",e),...t})}var Mp="Separator",Xs="horizontal",Dp=["horizontal","vertical"],Zs=l.forwardRef((e,t)=>{const{decorative:n,orientation:r=Xs,...o}=e,a=Lp(r)?r:Xs,i=n?{role:"none"}:{"aria-orientation":a==="vertical"?a:void 0,role:"separator"};return d.jsx(H.div,{"data-orientation":a,...i,...o,ref:t})});Zs.displayName=Mp;function Lp(e){return Dp.includes(e)}var $p=Zs;function Fp({className:e,orientation:t="horizontal",decorative:n=!0,size:r=1,...o}){const a=t==="horizontal"?{1:"h-px",2:"h-0.5",3:"h-[3px]",4:"h-1"}[r]:{1:"w-px",2:"w-0.5",3:"w-[3px]",4:"w-1"}[r];return d.jsx($p,{"data-slot":"separator",role:"separator",decorative:n,orientation:t,className:F("bg-neutral-black-4 shrink-0",t==="horizontal"?"w-full":"h-full",a,e),...o})}const Vp=ue("flex flex-col gap-12"),zp=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}}),Bp=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}}),Wp=(e,t)=>e&&!t;function Hp({items:e,variant:t="filled",className:n}){const r=e.findIndex(a=>a.notVisited===!0),o=e.map((a,s)=>r!==-1&&s>=r?{...a,notVisited:!0}:a);return d.jsx("div",{className:F(Vp(),n),"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=Wp(i,c),p=a.notVisited||!1,f=o[s+1],g=(f==null?void 0:f.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(zp({variant:t,visited:!p})),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",p&&"text-neutral-black-4"),children:a.title})]}),d.jsx("div",{"data-testid":"timeline-connector",className:F(Bp({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",p&&"text-neutral-black-4"),children:a.description}),a.content&&d.jsx("div",{className:"min-h-[35px]",children:a.content})]})})]},a.id)})})})}const Up=({variant:e="icon",width:t,height:n,iconSize:r=40,className:o,...a})=>{const s=()=>{switch(e){case"image":return d.jsx(kc,{size:r,"data-testid":"placeholder-image"});case"video":return d.jsx(Rc,{size:r,"data-testid":"placeholder-video"});case"pieChart":return d.jsx(xc,{size:r,"data-testid":"placeholder-pieChart"});case"icon":default:return d.jsx(Pc,{size:r,"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:n},...a,children:s()})},Gp=e=>e===void 0||isNaN(e)?0:Math.min(100,Math.max(0,e)),Js=l.forwardRef(({variant:e="linear",value:t=0,color:n="var(--color-primary-1)",className:r,...o},a)=>{const s=Gp(t);if(e==="circular"){const{size:i=80,thickness:c=8}=o,u=(i-c)/2,p=2*Math.PI*u,f=p-s/100*p;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",r),...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:n,strokeWidth:c,fill:"transparent",strokeDasharray:p,strokeDashoffset:f,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",r),...o,children:d.jsx("div",{className:"h-full transition-all duration-300",style:{width:`${s}%`,backgroundColor:n}})})});Js.displayName="ProgressIndicator",G.Avatar=Op,G.AvatarFallback=Ip,G.AvatarImage=jp,G.Badge=Ko,G.Button=Vi,G.Card=xp,G.Dialog=Ac,G.DialogClose=Nc,G.DialogContent=Tc,G.DialogDescription=Mc,G.DialogFooter=jc,G.DialogHeader=Oc,G.DialogOverlay=Yo,G.DialogPortal=Go,G.DialogTitle=Ic,G.DialogTrigger=_c,G.Divider=Fp,G.EmailInput=_d,G.MultiSelect=Fs,G.PasswordInput=Nd,G.Placeholder=Up,G.ProgressIndicator=Js,G.SearchInput=Td,G.SelectOption=gp,G.SingleSelect=$s,G.StatefulToggle=qr,G.Timeline=Hp,G.Toggle=Kr,G.Tooltip=kd,G.TooltipContent=Rd,G.TooltipProvider=$a,G.TooltipTrigger=Pd,G.cn=F,Object.defineProperty(G,Symbol.toStringTag,{value:"Module"})});
|