@datawire-ai/busyfile-design-library 1.8.0 → 1.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- (function(W,ee){typeof exports=="object"&&typeof module<"u"?ee(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],ee):(W=typeof globalThis<"u"?globalThis:W||self,ee(W.BusyFileDesignSystem={},W.React,W.ReactDOM))})(this,function(W,ee,un){"use strict";function dn(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 u=dn(ee),fn=dn(un);var Ct={exports:{}},Be={};/**
1
+ (function(ne,re){typeof exports=="object"&&typeof module<"u"?re(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],re):(ne=typeof globalThis<"u"?globalThis:ne||self,re(ne.BusyFileDesignSystem={},ne.React,ne.ReactDOM))})(this,function(ne,re,pr){"use strict";function mr(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=mr(re),Rt=mr(pr);var cn={exports:{}},lt={};/**
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 mn;function Co(){if(mn)return Be;mn=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,o,i){var s=null;if(i!==void 0&&(s=""+i),o.key!==void 0&&(s=""+o.key),"key"in o){i={};for(var a in o)a!=="key"&&(i[a]=o[a])}else i=o;return o=i.ref,{$$typeof:e,type:r,key:s,ref:o!==void 0?o:null,props:i}}return Be.Fragment=t,Be.jsx=n,Be.jsxs=n,Be}var Ve={};/**
9
+ */var gr;function Ra(){if(gr)return lt;gr=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,o,s){var a=null;if(s!==void 0&&(a=""+s),o.key!==void 0&&(a=""+o.key),"key"in o){s={};for(var i in o)i!=="key"&&(s[i]=o[i])}else s=o;return o=s.ref,{$$typeof:e,type:r,key:a,ref:o!==void 0?o:null,props:s}}return lt.Fragment=t,lt.jsx=n,lt.jsxs=n,lt}var ct={};/**
10
10
  * @license React
11
11
  * react-jsx-runtime.development.js
12
12
  *
@@ -14,78 +14,118 @@
14
14
  *
15
15
  * This source code is licensed under the MIT license found in the
16
16
  * LICENSE file in the root directory of this source tree.
17
- */var pn;function ko(){return pn||(pn=1,process.env.NODE_ENV!=="production"&&function(){function e(b){if(b==null)return null;if(typeof b=="function")return b.$$typeof===$?null:b.displayName||b.name||null;if(typeof b=="string")return b;switch(b){case m:return"Fragment";case y:return"Profiler";case v:return"StrictMode";case S:return"Suspense";case O:return"SuspenseList";case M:return"Activity"}if(typeof b=="object")switch(typeof b.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),b.$$typeof){case h:return"Portal";case k:return(b.displayName||"Context")+".Provider";case E:return(b._context.displayName||"Context")+".Consumer";case C:var N=b.render;return b=b.displayName,b||(b=N.displayName||N.name||"",b=b!==""?"ForwardRef("+b+")":"ForwardRef"),b;case T:return N=b.displayName||null,N!==null?N:e(b.type)||"Memo";case R:N=b._payload,b=b._init;try{return e(b(N))}catch{}}return null}function t(b){return""+b}function n(b){try{t(b);var N=!1}catch{N=!0}if(N){N=console;var F=N.error,D=typeof Symbol=="function"&&Symbol.toStringTag&&b[Symbol.toStringTag]||b.constructor.name||"Object";return F.call(N,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",D),t(b)}}function r(b){if(b===m)return"<>";if(typeof b=="object"&&b!==null&&b.$$typeof===R)return"<...>";try{var N=e(b);return N?"<"+N+">":"<...>"}catch{return"<...>"}}function o(){var b=G.A;return b===null?null:b.getOwner()}function i(){return Error("react-stack-top-frame")}function s(b){if(H.call(b,"key")){var N=Object.getOwnPropertyDescriptor(b,"key").get;if(N&&N.isReactWarning)return!1}return b.key!==void 0}function a(b,N){function F(){U||(U=!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)",N))}F.isReactWarning=!0,Object.defineProperty(b,"key",{get:F,configurable:!0})}function c(){var b=e(this.type);return L[b]||(L[b]=!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.")),b=this.props.ref,b!==void 0?b:null}function l(b,N,F,D,V,K,Ee,z){return F=K.ref,b={$$typeof:p,type:b,key:N,props:K,_owner:V},(F!==void 0?F:null)!==null?Object.defineProperty(b,"ref",{enumerable:!1,get:c}):Object.defineProperty(b,"ref",{enumerable:!1,value:null}),b._store={},Object.defineProperty(b._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(b,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(b,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:Ee}),Object.defineProperty(b,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:z}),Object.freeze&&(Object.freeze(b.props),Object.freeze(b)),b}function d(b,N,F,D,V,K,Ee,z){var X=N.children;if(X!==void 0)if(D)if(B(X)){for(D=0;D<X.length;D++)f(X[D]);Object.freeze&&Object.freeze(X)}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(X);if(H.call(N,"key")){X=e(b);var Q=Object.keys(N).filter(function(Ce){return Ce!=="key"});D=0<Q.length?"{key: someKey, "+Q.join(": ..., ")+": ...}":"{key: someKey}",Y[X+D]||(Q=0<Q.length?"{"+Q.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
17
+ */var hr;function Aa(){return hr||(hr=1,process.env.NODE_ENV!=="production"&&function(){function e(S){if(S==null)return null;if(typeof S=="function")return S.$$typeof===G?null:S.displayName||S.name||null;if(typeof S=="string")return S;switch(S){case m:return"Fragment";case y:return"Profiler";case b:return"StrictMode";case P:return"Suspense";case N:return"SuspenseList";case V:return"Activity"}if(typeof S=="object")switch(typeof S.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),S.$$typeof){case v:return"Portal";case w:return(S.displayName||"Context")+".Provider";case x:return(S._context.displayName||"Context")+".Consumer";case E:var L=S.render;return S=S.displayName,S||(S=L.displayName||L.name||"",S=S!==""?"ForwardRef("+S+")":"ForwardRef"),S;case R:return L=S.displayName||null,L!==null?L:e(S.type)||"Memo";case T:L=S._payload,S=S._init;try{return e(S(L))}catch{}}return null}function t(S){return""+S}function n(S){try{t(S);var L=!1}catch{L=!0}if(L){L=console;var C=L.error,O=typeof Symbol=="function"&&Symbol.toStringTag&&S[Symbol.toStringTag]||S.constructor.name||"Object";return C.call(L,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",O),t(S)}}function r(S){if(S===m)return"<>";if(typeof S=="object"&&S!==null&&S.$$typeof===T)return"<...>";try{var L=e(S);return L?"<"+L+">":"<...>"}catch{return"<...>"}}function o(){var S=Z.A;return S===null?null:S.getOwner()}function s(){return Error("react-stack-top-frame")}function a(S){if(X.call(S,"key")){var L=Object.getOwnPropertyDescriptor(S,"key").get;if(L&&L.isReactWarning)return!1}return S.key!==void 0}function i(S,L){function C(){Y||(Y=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",L))}C.isReactWarning=!0,Object.defineProperty(S,"key",{get:C,configurable:!0})}function c(){var S=e(this.type);return $[S]||($[S]=!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.")),S=this.props.ref,S!==void 0?S:null}function u(S,L,C,O,M,_,B,A){return C=_.ref,S={$$typeof:h,type:S,key:L,props:_,_owner:M},(C!==void 0?C:null)!==null?Object.defineProperty(S,"ref",{enumerable:!1,get:c}):Object.defineProperty(S,"ref",{enumerable:!1,value:null}),S._store={},Object.defineProperty(S._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(S,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(S,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:B}),Object.defineProperty(S,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:A}),Object.freeze&&(Object.freeze(S.props),Object.freeze(S)),S}function d(S,L,C,O,M,_,B,A){var D=L.children;if(D!==void 0)if(O)if(J(D)){for(O=0;O<D.length;O++)f(D[O]);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(X.call(L,"key")){D=e(S);var W=Object.keys(L).filter(function(ee){return ee!=="key"});O=0<W.length?"{key: someKey, "+W.join(": ..., ")+": ...}":"{key: someKey}",Q[D+O]||(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} />`,D,X,Q,X),Y[X+D]=!0)}if(X=null,F!==void 0&&(n(F),X=""+F),s(N)&&(n(N.key),X=""+N.key),"key"in N){F={};for(var ae in N)ae!=="key"&&(F[ae]=N[ae])}else F=N;return X&&a(F,typeof b=="function"?b.displayName||b.name||"Unknown":b),l(b,X,K,V,o(),F,Ee,z)}function f(b){typeof b=="object"&&b!==null&&b.$$typeof===p&&b._store&&(b._store.validated=1)}var g=ee,p=Symbol.for("react.transitional.element"),h=Symbol.for("react.portal"),m=Symbol.for("react.fragment"),v=Symbol.for("react.strict_mode"),y=Symbol.for("react.profiler"),E=Symbol.for("react.consumer"),k=Symbol.for("react.context"),C=Symbol.for("react.forward_ref"),S=Symbol.for("react.suspense"),O=Symbol.for("react.suspense_list"),T=Symbol.for("react.memo"),R=Symbol.for("react.lazy"),M=Symbol.for("react.activity"),$=Symbol.for("react.client.reference"),G=g.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,H=Object.prototype.hasOwnProperty,B=Array.isArray,I=console.createTask?console.createTask:function(){return null};g={"react-stack-bottom-frame":function(b){return b()}};var U,L={},j=g["react-stack-bottom-frame"].bind(g,i)(),x=I(r(i)),Y={};Ve.Fragment=m,Ve.jsx=function(b,N,F,D,V){var K=1e4>G.recentlyCreatedOwnerStacks++;return d(b,N,F,!1,D,V,K?Error("react-stack-top-frame"):j,K?I(r(b)):x)},Ve.jsxs=function(b,N,F,D,V){var K=1e4>G.recentlyCreatedOwnerStacks++;return d(b,N,F,!0,D,V,K?Error("react-stack-top-frame"):j,K?I(r(b)):x)}}()),Ve}process.env.NODE_ENV==="production"?Ct.exports=Co():Ct.exports=ko();var w=Ct.exports;function gn(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function hn(...e){return t=>{let n=!1;const r=e.map(o=>{const i=gn(o,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let o=0;o<r.length;o++){const i=r[o];typeof i=="function"?i():gn(e[o],null)}}}}function re(...e){return u.useCallback(hn(...e),e)}function kt(e){const t=So(e),n=u.forwardRef((r,o)=>{const{children:i,...s}=r,a=u.Children.toArray(i),c=a.find(Ao);if(c){const l=c.props.children,d=a.map(f=>f===c?u.Children.count(l)>1?u.Children.only(null):u.isValidElement(l)?l.props.children:null:f);return w.jsx(t,{...s,ref:o,children:u.isValidElement(l)?u.cloneElement(l,void 0,d):null})}return w.jsx(t,{...s,ref:o,children:i})});return n.displayName=`${e}.Slot`,n}var vn=kt("Slot");function So(e){const t=u.forwardRef((n,r)=>{const{children:o,...i}=n;if(u.isValidElement(o)){const s=To(o),a=Po(i,o.props);return o.type!==u.Fragment&&(a.ref=r?hn(r,s):s),u.cloneElement(o,a)}return u.Children.count(o)>1?u.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var bn=Symbol("radix.slottable");function Ro(e){const t=({children:n})=>w.jsx(w.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=bn,t}function Ao(e){return u.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===bn}function Po(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...a)=>{const c=i(...a);return o(...a),c}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function To(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 yn(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=yn(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function wn(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=yn(e))&&(r&&(r+=" "),r+=t);return r}const St="-",Oo=e=>{const t=_o(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:s=>{const a=s.split(St);return a[0]===""&&a.length!==1&&a.shift(),xn(a,t)||No(s)},getConflictingClassGroupIds:(s,a)=>{const c=n[s]||[];return a&&r[s]?[...c,...r[s]]:c}}},xn=(e,t)=>{var s;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?xn(e.slice(1),r):void 0;if(o)return o;if(t.validators.length===0)return;const i=e.join(St);return(s=t.validators.find(({validator:a})=>a(i)))==null?void 0:s.classGroupId},En=/^\[(.+)\]$/,No=e=>{if(En.test(e)){const t=En.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},_o=e=>{const{theme:t,classGroups:n}=e,r={nextPart:new Map,validators:[]};for(const o in n)Rt(n[o],r,o,t);return r},Rt=(e,t,n,r)=>{e.forEach(o=>{if(typeof o=="string"){const i=o===""?t:Cn(t,o);i.classGroupId=n;return}if(typeof o=="function"){if(Do(o)){Rt(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([i,s])=>{Rt(s,Cn(t,i),n,r)})})},Cn=(e,t)=>{let n=e;return t.split(St).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},Do=e=>e.isThemeGetter,Mo=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(i,s)=>{n.set(i,s),t++,t>e&&(t=0,r=n,n=new Map)};return{get(i){let s=n.get(i);if(s!==void 0)return s;if((s=r.get(i))!==void 0)return o(i,s),s},set(i,s){n.has(i)?n.set(i,s):o(i,s)}}},At="!",Pt=":",Lo=Pt.length,jo=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=o=>{const i=[];let s=0,a=0,c=0,l;for(let h=0;h<o.length;h++){let m=o[h];if(s===0&&a===0){if(m===Pt){i.push(o.slice(c,h)),c=h+Lo;continue}if(m==="/"){l=h;continue}}m==="["?s++:m==="]"?s--:m==="("?a++:m===")"&&a--}const d=i.length===0?o:o.substring(c),f=Io(d),g=f!==d,p=l&&l>c?l-c:void 0;return{modifiers:i,hasImportantModifier:g,baseClassName:f,maybePostfixModifierPosition:p}};if(t){const o=t+Pt,i=r;r=s=>s.startsWith(o)?i(s.substring(o.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:s,maybePostfixModifierPosition:void 0}}if(n){const o=r;r=i=>n({className:i,parseClassName:o})}return r},Io=e=>e.endsWith(At)?e.substring(0,e.length-1):e.startsWith(At)?e.substring(1):e,Fo=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(r=>[r,!0]));return r=>{if(r.length<=1)return r;const o=[];let i=[];return r.forEach(s=>{s[0]==="["||t[s]?(o.push(...i.sort(),s),i=[]):i.push(s)}),o.push(...i.sort()),o}},$o=e=>({cache:Mo(e.cacheSize),parseClassName:jo(e),sortModifiers:Fo(e),...Oo(e)}),zo=/\s+/,Wo=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o,sortModifiers:i}=t,s=[],a=e.trim().split(zo);let c="";for(let l=a.length-1;l>=0;l-=1){const d=a[l],{isExternal:f,modifiers:g,hasImportantModifier:p,baseClassName:h,maybePostfixModifierPosition:m}=n(d);if(f){c=d+(c.length>0?" "+c:c);continue}let v=!!m,y=r(v?h.substring(0,m):h);if(!y){if(!v){c=d+(c.length>0?" "+c:c);continue}if(y=r(h),!y){c=d+(c.length>0?" "+c:c);continue}v=!1}const E=i(g).join(":"),k=p?E+At:E,C=k+y;if(s.includes(C))continue;s.push(C);const S=o(y,v);for(let O=0;O<S.length;++O){const T=S[O];s.push(k+T)}c=d+(c.length>0?" "+c:c)}return c};function Bo(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=kn(t))&&(r&&(r+=" "),r+=n);return r}const kn=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=kn(e[r]))&&(n&&(n+=" "),n+=t);return n};function Vo(e,...t){let n,r,o,i=s;function s(c){const l=t.reduce((d,f)=>f(d),e());return n=$o(l),r=n.cache.get,o=n.cache.set,i=a,a(c)}function a(c){const l=r(c);if(l)return l;const d=Wo(c,n);return o(c,d),d}return function(){return i(Bo.apply(null,arguments))}}const q=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},Sn=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Rn=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Ho=/^\d+\/\d+$/,Uo=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Go=/\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$/,Yo=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Xo=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,qo=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Pe=e=>Ho.test(e),_=e=>!!e&&!Number.isNaN(Number(e)),ve=e=>!!e&&Number.isInteger(Number(e)),Tt=e=>e.endsWith("%")&&_(e.slice(0,-1)),pe=e=>Uo.test(e),Ko=()=>!0,Zo=e=>Go.test(e)&&!Yo.test(e),An=()=>!1,Jo=e=>Xo.test(e),Qo=e=>qo.test(e),ei=e=>!A(e)&&!P(e),ti=e=>Te(e,_n,An),A=e=>Sn.test(e),ke=e=>Te(e,Dn,Zo),Ot=e=>Te(e,si,_),Pn=e=>Te(e,On,An),ni=e=>Te(e,Nn,Qo),Ze=e=>Te(e,Mn,Jo),P=e=>Rn.test(e),He=e=>Oe(e,Dn),ri=e=>Oe(e,ai),Tn=e=>Oe(e,On),oi=e=>Oe(e,_n),ii=e=>Oe(e,Nn),Je=e=>Oe(e,Mn,!0),Te=(e,t,n)=>{const r=Sn.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},Oe=(e,t,n=!1)=>{const r=Rn.exec(e);return r?r[1]?t(r[1]):n:!1},On=e=>e==="position"||e==="percentage",Nn=e=>e==="image"||e==="url",_n=e=>e==="length"||e==="size"||e==="bg-size",Dn=e=>e==="length",si=e=>e==="number",ai=e=>e==="family-name",Mn=e=>e==="shadow",ci=Vo(()=>{const e=q("color"),t=q("font"),n=q("text"),r=q("font-weight"),o=q("tracking"),i=q("leading"),s=q("breakpoint"),a=q("container"),c=q("spacing"),l=q("radius"),d=q("shadow"),f=q("inset-shadow"),g=q("text-shadow"),p=q("drop-shadow"),h=q("blur"),m=q("perspective"),v=q("aspect"),y=q("ease"),E=q("animate"),k=()=>["auto","avoid","all","avoid-page","page","left","right","column"],C=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],S=()=>[...C(),P,A],O=()=>["auto","hidden","clip","visible","scroll"],T=()=>["auto","contain","none"],R=()=>[P,A,c],M=()=>[Pe,"full","auto",...R()],$=()=>[ve,"none","subgrid",P,A],G=()=>["auto",{span:["full",ve,P,A]},ve,P,A],H=()=>[ve,"auto",P,A],B=()=>["auto","min","max","fr",P,A],I=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],U=()=>["start","end","center","stretch","center-safe","end-safe"],L=()=>["auto",...R()],j=()=>[Pe,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...R()],x=()=>[e,P,A],Y=()=>[...C(),Tn,Pn,{position:[P,A]}],b=()=>["no-repeat",{repeat:["","x","y","space","round"]}],N=()=>["auto","cover","contain",oi,ti,{size:[P,A]}],F=()=>[Tt,He,ke],D=()=>["","none","full",l,P,A],V=()=>["",_,He,ke],K=()=>["solid","dashed","dotted","double"],Ee=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],z=()=>[_,Tt,Tn,Pn],X=()=>["","none",h,P,A],Q=()=>["none",_,P,A],ae=()=>["none",_,P,A],Ce=()=>[_,P,A],Ae=()=>[Pe,"full",...R()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[pe],breakpoint:[pe],color:[Ko],container:[pe],"drop-shadow":[pe],ease:["in","out","in-out"],font:[ei],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[pe],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[pe],shadow:[pe],spacing:["px",_],text:[pe],"text-shadow":[pe],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Pe,A,P,v]}],container:["container"],columns:[{columns:[_,A,P,a]}],"break-after":[{"break-after":k()}],"break-before":[{"break-before":k()}],"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:S()}],overflow:[{overflow:O()}],"overflow-x":[{"overflow-x":O()}],"overflow-y":[{"overflow-y":O()}],overscroll:[{overscroll:T()}],"overscroll-x":[{"overscroll-x":T()}],"overscroll-y":[{"overscroll-y":T()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:M()}],"inset-x":[{"inset-x":M()}],"inset-y":[{"inset-y":M()}],start:[{start:M()}],end:[{end:M()}],top:[{top:M()}],right:[{right:M()}],bottom:[{bottom:M()}],left:[{left:M()}],visibility:["visible","invisible","collapse"],z:[{z:[ve,"auto",P,A]}],basis:[{basis:[Pe,"full","auto",a,...R()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[_,Pe,"auto","initial","none",A]}],grow:[{grow:["",_,P,A]}],shrink:[{shrink:["",_,P,A]}],order:[{order:[ve,"first","last","none",P,A]}],"grid-cols":[{"grid-cols":$()}],"col-start-end":[{col:G()}],"col-start":[{"col-start":H()}],"col-end":[{"col-end":H()}],"grid-rows":[{"grid-rows":$()}],"row-start-end":[{row:G()}],"row-start":[{"row-start":H()}],"row-end":[{"row-end":H()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":B()}],"auto-rows":[{"auto-rows":B()}],gap:[{gap:R()}],"gap-x":[{"gap-x":R()}],"gap-y":[{"gap-y":R()}],"justify-content":[{justify:[...I(),"normal"]}],"justify-items":[{"justify-items":[...U(),"normal"]}],"justify-self":[{"justify-self":["auto",...U()]}],"align-content":[{content:["normal",...I()]}],"align-items":[{items:[...U(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...U(),{baseline:["","last"]}]}],"place-content":[{"place-content":I()}],"place-items":[{"place-items":[...U(),"baseline"]}],"place-self":[{"place-self":["auto",...U()]}],p:[{p:R()}],px:[{px:R()}],py:[{py:R()}],ps:[{ps:R()}],pe:[{pe:R()}],pt:[{pt:R()}],pr:[{pr:R()}],pb:[{pb:R()}],pl:[{pl:R()}],m:[{m:L()}],mx:[{mx:L()}],my:[{my:L()}],ms:[{ms:L()}],me:[{me:L()}],mt:[{mt:L()}],mr:[{mr:L()}],mb:[{mb:L()}],ml:[{ml:L()}],"space-x":[{"space-x":R()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":R()}],"space-y-reverse":["space-y-reverse"],size:[{size:j()}],w:[{w:[a,"screen",...j()]}],"min-w":[{"min-w":[a,"screen","none",...j()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[s]},...j()]}],h:[{h:["screen","lh",...j()]}],"min-h":[{"min-h":["screen","lh","none",...j()]}],"max-h":[{"max-h":["screen","lh",...j()]}],"font-size":[{text:["base",n,He,ke]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,P,Ot]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Tt,A]}],"font-family":[{font:[ri,A,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,P,A]}],"line-clamp":[{"line-clamp":[_,"none",P,Ot]}],leading:[{leading:[i,...R()]}],"list-image":[{"list-image":["none",P,A]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",P,A]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:x()}],"text-color":[{text:x()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...K(),"wavy"]}],"text-decoration-thickness":[{decoration:[_,"from-font","auto",P,ke]}],"text-decoration-color":[{decoration:x()}],"underline-offset":[{"underline-offset":[_,"auto",P,A]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:R()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",P,A]}],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",P,A]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:Y()}],"bg-repeat":[{bg:b()}],"bg-size":[{bg:N()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},ve,P,A],radial:["",P,A],conic:[ve,P,A]},ii,ni]}],"bg-color":[{bg:x()}],"gradient-from-pos":[{from:F()}],"gradient-via-pos":[{via:F()}],"gradient-to-pos":[{to:F()}],"gradient-from":[{from:x()}],"gradient-via":[{via:x()}],"gradient-to":[{to:x()}],rounded:[{rounded:D()}],"rounded-s":[{"rounded-s":D()}],"rounded-e":[{"rounded-e":D()}],"rounded-t":[{"rounded-t":D()}],"rounded-r":[{"rounded-r":D()}],"rounded-b":[{"rounded-b":D()}],"rounded-l":[{"rounded-l":D()}],"rounded-ss":[{"rounded-ss":D()}],"rounded-se":[{"rounded-se":D()}],"rounded-ee":[{"rounded-ee":D()}],"rounded-es":[{"rounded-es":D()}],"rounded-tl":[{"rounded-tl":D()}],"rounded-tr":[{"rounded-tr":D()}],"rounded-br":[{"rounded-br":D()}],"rounded-bl":[{"rounded-bl":D()}],"border-w":[{border:V()}],"border-w-x":[{"border-x":V()}],"border-w-y":[{"border-y":V()}],"border-w-s":[{"border-s":V()}],"border-w-e":[{"border-e":V()}],"border-w-t":[{"border-t":V()}],"border-w-r":[{"border-r":V()}],"border-w-b":[{"border-b":V()}],"border-w-l":[{"border-l":V()}],"divide-x":[{"divide-x":V()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":V()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...K(),"hidden","none"]}],"divide-style":[{divide:[...K(),"hidden","none"]}],"border-color":[{border:x()}],"border-color-x":[{"border-x":x()}],"border-color-y":[{"border-y":x()}],"border-color-s":[{"border-s":x()}],"border-color-e":[{"border-e":x()}],"border-color-t":[{"border-t":x()}],"border-color-r":[{"border-r":x()}],"border-color-b":[{"border-b":x()}],"border-color-l":[{"border-l":x()}],"divide-color":[{divide:x()}],"outline-style":[{outline:[...K(),"none","hidden"]}],"outline-offset":[{"outline-offset":[_,P,A]}],"outline-w":[{outline:["",_,He,ke]}],"outline-color":[{outline:x()}],shadow:[{shadow:["","none",d,Je,Ze]}],"shadow-color":[{shadow:x()}],"inset-shadow":[{"inset-shadow":["none",f,Je,Ze]}],"inset-shadow-color":[{"inset-shadow":x()}],"ring-w":[{ring:V()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:x()}],"ring-offset-w":[{"ring-offset":[_,ke]}],"ring-offset-color":[{"ring-offset":x()}],"inset-ring-w":[{"inset-ring":V()}],"inset-ring-color":[{"inset-ring":x()}],"text-shadow":[{"text-shadow":["none",g,Je,Ze]}],"text-shadow-color":[{"text-shadow":x()}],opacity:[{opacity:[_,P,A]}],"mix-blend":[{"mix-blend":[...Ee(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Ee()}],"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":[_]}],"mask-image-linear-from-pos":[{"mask-linear-from":z()}],"mask-image-linear-to-pos":[{"mask-linear-to":z()}],"mask-image-linear-from-color":[{"mask-linear-from":x()}],"mask-image-linear-to-color":[{"mask-linear-to":x()}],"mask-image-t-from-pos":[{"mask-t-from":z()}],"mask-image-t-to-pos":[{"mask-t-to":z()}],"mask-image-t-from-color":[{"mask-t-from":x()}],"mask-image-t-to-color":[{"mask-t-to":x()}],"mask-image-r-from-pos":[{"mask-r-from":z()}],"mask-image-r-to-pos":[{"mask-r-to":z()}],"mask-image-r-from-color":[{"mask-r-from":x()}],"mask-image-r-to-color":[{"mask-r-to":x()}],"mask-image-b-from-pos":[{"mask-b-from":z()}],"mask-image-b-to-pos":[{"mask-b-to":z()}],"mask-image-b-from-color":[{"mask-b-from":x()}],"mask-image-b-to-color":[{"mask-b-to":x()}],"mask-image-l-from-pos":[{"mask-l-from":z()}],"mask-image-l-to-pos":[{"mask-l-to":z()}],"mask-image-l-from-color":[{"mask-l-from":x()}],"mask-image-l-to-color":[{"mask-l-to":x()}],"mask-image-x-from-pos":[{"mask-x-from":z()}],"mask-image-x-to-pos":[{"mask-x-to":z()}],"mask-image-x-from-color":[{"mask-x-from":x()}],"mask-image-x-to-color":[{"mask-x-to":x()}],"mask-image-y-from-pos":[{"mask-y-from":z()}],"mask-image-y-to-pos":[{"mask-y-to":z()}],"mask-image-y-from-color":[{"mask-y-from":x()}],"mask-image-y-to-color":[{"mask-y-to":x()}],"mask-image-radial":[{"mask-radial":[P,A]}],"mask-image-radial-from-pos":[{"mask-radial-from":z()}],"mask-image-radial-to-pos":[{"mask-radial-to":z()}],"mask-image-radial-from-color":[{"mask-radial-from":x()}],"mask-image-radial-to-color":[{"mask-radial-to":x()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":C()}],"mask-image-conic-pos":[{"mask-conic":[_]}],"mask-image-conic-from-pos":[{"mask-conic-from":z()}],"mask-image-conic-to-pos":[{"mask-conic-to":z()}],"mask-image-conic-from-color":[{"mask-conic-from":x()}],"mask-image-conic-to-color":[{"mask-conic-to":x()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:Y()}],"mask-repeat":[{mask:b()}],"mask-size":[{mask:N()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",P,A]}],filter:[{filter:["","none",P,A]}],blur:[{blur:X()}],brightness:[{brightness:[_,P,A]}],contrast:[{contrast:[_,P,A]}],"drop-shadow":[{"drop-shadow":["","none",p,Je,Ze]}],"drop-shadow-color":[{"drop-shadow":x()}],grayscale:[{grayscale:["",_,P,A]}],"hue-rotate":[{"hue-rotate":[_,P,A]}],invert:[{invert:["",_,P,A]}],saturate:[{saturate:[_,P,A]}],sepia:[{sepia:["",_,P,A]}],"backdrop-filter":[{"backdrop-filter":["","none",P,A]}],"backdrop-blur":[{"backdrop-blur":X()}],"backdrop-brightness":[{"backdrop-brightness":[_,P,A]}],"backdrop-contrast":[{"backdrop-contrast":[_,P,A]}],"backdrop-grayscale":[{"backdrop-grayscale":["",_,P,A]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[_,P,A]}],"backdrop-invert":[{"backdrop-invert":["",_,P,A]}],"backdrop-opacity":[{"backdrop-opacity":[_,P,A]}],"backdrop-saturate":[{"backdrop-saturate":[_,P,A]}],"backdrop-sepia":[{"backdrop-sepia":["",_,P,A]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":R()}],"border-spacing-x":[{"border-spacing-x":R()}],"border-spacing-y":[{"border-spacing-y":R()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",P,A]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[_,"initial",P,A]}],ease:[{ease:["linear","initial",y,P,A]}],delay:[{delay:[_,P,A]}],animate:[{animate:["none",E,P,A]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[m,P,A]}],"perspective-origin":[{"perspective-origin":S()}],rotate:[{rotate:Q()}],"rotate-x":[{"rotate-x":Q()}],"rotate-y":[{"rotate-y":Q()}],"rotate-z":[{"rotate-z":Q()}],scale:[{scale:ae()}],"scale-x":[{"scale-x":ae()}],"scale-y":[{"scale-y":ae()}],"scale-z":[{"scale-z":ae()}],"scale-3d":["scale-3d"],skew:[{skew:Ce()}],"skew-x":[{"skew-x":Ce()}],"skew-y":[{"skew-y":Ce()}],transform:[{transform:[P,A,"","none","gpu","cpu"]}],"transform-origin":[{origin:S()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Ae()}],"translate-x":[{"translate-x":Ae()}],"translate-y":[{"translate-y":Ae()}],"translate-z":[{"translate-z":Ae()}],"translate-none":["translate-none"],accent:[{accent:x()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:x()}],"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",P,A]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":R()}],"scroll-mx":[{"scroll-mx":R()}],"scroll-my":[{"scroll-my":R()}],"scroll-ms":[{"scroll-ms":R()}],"scroll-me":[{"scroll-me":R()}],"scroll-mt":[{"scroll-mt":R()}],"scroll-mr":[{"scroll-mr":R()}],"scroll-mb":[{"scroll-mb":R()}],"scroll-ml":[{"scroll-ml":R()}],"scroll-p":[{"scroll-p":R()}],"scroll-px":[{"scroll-px":R()}],"scroll-py":[{"scroll-py":R()}],"scroll-ps":[{"scroll-ps":R()}],"scroll-pe":[{"scroll-pe":R()}],"scroll-pt":[{"scroll-pt":R()}],"scroll-pr":[{"scroll-pr":R()}],"scroll-pb":[{"scroll-pb":R()}],"scroll-pl":[{"scroll-pl":R()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",P,A]}],fill:[{fill:["none",...x()]}],"stroke-w":[{stroke:[_,He,ke,Ot]}],stroke:[{stroke:["none",...x()]}],"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 ce(...e){return ci(wn(e))}const Ln=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,jn=wn,In=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return jn(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:o,defaultVariants:i}=t,s=Object.keys(o).map(l=>{const d=n==null?void 0:n[l],f=i==null?void 0:i[l];if(d===null)return null;const g=Ln(d)||Ln(f);return o[l][g]}),a=n&&Object.entries(n).reduce((l,d)=>{let[f,g]=d;return g===void 0||(l[f]=g),l},{}),c=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((l,d)=>{let{class:f,className:g,...p}=d;return Object.entries(p).every(h=>{let[m,v]=h;return Array.isArray(v)?v.includes({...i,...a}[m]):{...i,...a}[m]===v})?[...l,f,g]:l},[]);return jn(e,s,c,n==null?void 0:n.class,n==null?void 0:n.className)},li=In("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-black text-sm font-normal text-white shadow-sm hover:bg-black-soft focus-visible:ring-black",primary:"bg-neutral-99 text-sm font-normal text-neutral-70 hover:bg-neutral-99 focus-visible:ring-bg-neutral-99",outline:"bg-transparent text-black hover:bg-surface focus-visible:ring-4 focus-visible:ring-bg-surface border border-black-soft"},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 ui({className:e,variant:t,size:n,asChild:r=!1,children:o,...i}){const s=r?vn:"button";return w.jsx(s,{"data-slot":"button",className:ce(li({variant:t,size:n}),e),...i,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)}}function di(e,t){const n=u.createContext(t),r=i=>{const{children:s,...a}=i,c=u.useMemo(()=>a,Object.values(a));return w.jsx(n.Provider,{value:c,children:s})};r.displayName=e+"Provider";function o(i){const s=u.useContext(n);if(s)return s;if(t!==void 0)return t;throw new Error(`\`${i}\` must be used within \`${e}\``)}return[r,o]}function Nt(e,t=[]){let n=[];function r(i,s){const a=u.createContext(s),c=n.length;n=[...n,s];const l=f=>{var y;const{scope:g,children:p,...h}=f,m=((y=g==null?void 0:g[e])==null?void 0:y[c])||a,v=u.useMemo(()=>h,Object.values(h));return w.jsx(m.Provider,{value:v,children:p})};l.displayName=i+"Provider";function d(f,g){var m;const p=((m=g==null?void 0:g[e])==null?void 0:m[c])||a,h=u.useContext(p);if(h)return h;if(s!==void 0)return s;throw new Error(`\`${f}\` must be used within \`${i}\``)}return[l,d]}const o=()=>{const i=n.map(s=>u.createContext(s));return function(a){const c=(a==null?void 0:a[e])||i;return u.useMemo(()=>({[`__scope${e}`]:{...a,[e]:c}}),[a,c])}};return o.scopeName=e,[r,fi(o,...t)]}function fi(...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(i){const s=r.reduce((a,{useScope:c,scopeName:l})=>{const f=c(i)[`__scope${l}`];return{...a,...f}},{});return u.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}var be=globalThis!=null&&globalThis.document?u.useLayoutEffect:()=>{},mi=u[" useId ".trim().toString()]||(()=>{}),pi=0;function Qe(e){const[t,n]=u.useState(mi());return be(()=>{n(r=>r??String(pi++))},[e]),e||(t?`radix-${t}`:"")}var gi=u[" useInsertionEffect ".trim().toString()]||be;function Fn({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,i,s]=hi({defaultProp:t,onChange:n}),a=e!==void 0,c=a?e:o;{const d=u.useRef(e!==void 0);u.useEffect(()=>{const f=d.current;f!==a&&console.warn(`${r} is changing from ${f?"controlled":"uncontrolled"} to ${a?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),d.current=a},[a,r])}const l=u.useCallback(d=>{var f;if(a){const g=vi(d)?d(e):d;g!==e&&((f=s.current)==null||f.call(s,g))}else i(d)},[a,e,i,s]);return[c,l]}function hi({defaultProp:e,onChange:t}){const[n,r]=u.useState(e),o=u.useRef(n),i=u.useRef(t);return gi(()=>{i.current=t},[t]),u.useEffect(()=>{var s;o.current!==n&&((s=i.current)==null||s.call(i,n),o.current=n)},[n,o]),[n,r,i]}function vi(e){return typeof e=="function"}var bi=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],J=bi.reduce((e,t)=>{const n=kt(`Primitive.${t}`),r=u.forwardRef((o,i)=>{const{asChild:s,...a}=o,c=s?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),w.jsx(c,{...a,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function yi(e,t){e&&fn.flushSync(()=>e.dispatchEvent(t))}function Ne(e){const t=u.useRef(e);return u.useEffect(()=>{t.current=e}),u.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function wi(e,t=globalThis==null?void 0:globalThis.document){const n=Ne(e);u.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",_t="dismissableLayer.update",Ei="dismissableLayer.pointerDownOutside",Ci="dismissableLayer.focusOutside",$n,zn=u.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Dt=u.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:s,onDismiss:a,...c}=e,l=u.useContext(zn),[d,f]=u.useState(null),g=(d==null?void 0:d.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,p]=u.useState({}),h=re(t,T=>f(T)),m=Array.from(l.layers),[v]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),y=m.indexOf(v),E=d?m.indexOf(d):-1,k=l.layersWithOutsidePointerEventsDisabled.size>0,C=E>=y,S=Ri(T=>{const R=T.target,M=[...l.branches].some($=>$.contains(R));!C||M||(o==null||o(T),s==null||s(T),T.defaultPrevented||a==null||a())},g),O=Ai(T=>{const R=T.target;[...l.branches].some($=>$.contains(R))||(i==null||i(T),s==null||s(T),T.defaultPrevented||a==null||a())},g);return wi(T=>{E===l.layers.size-1&&(r==null||r(T),!T.defaultPrevented&&a&&(T.preventDefault(),a()))},g),u.useEffect(()=>{if(d)return n&&(l.layersWithOutsidePointerEventsDisabled.size===0&&($n=g.body.style.pointerEvents,g.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(d)),l.layers.add(d),Wn(),()=>{n&&l.layersWithOutsidePointerEventsDisabled.size===1&&(g.body.style.pointerEvents=$n)}},[d,g,n,l]),u.useEffect(()=>()=>{d&&(l.layers.delete(d),l.layersWithOutsidePointerEventsDisabled.delete(d),Wn())},[d,l]),u.useEffect(()=>{const T=()=>p({});return document.addEventListener(_t,T),()=>document.removeEventListener(_t,T)},[]),w.jsx(J.div,{...c,ref:h,style:{pointerEvents:k?C?"auto":"none":void 0,...e.style},onFocusCapture:Z(e.onFocusCapture,O.onFocusCapture),onBlurCapture:Z(e.onBlurCapture,O.onBlurCapture),onPointerDownCapture:Z(e.onPointerDownCapture,S.onPointerDownCapture)})});Dt.displayName=xi;var ki="DismissableLayerBranch",Si=u.forwardRef((e,t)=>{const n=u.useContext(zn),r=u.useRef(null),o=re(t,r);return u.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),w.jsx(J.div,{...e,ref:o})});Si.displayName=ki;function Ri(e,t=globalThis==null?void 0:globalThis.document){const n=Ne(e),r=u.useRef(!1),o=u.useRef(()=>{});return u.useEffect(()=>{const i=a=>{if(a.target&&!r.current){let c=function(){Bn(Ei,n,l,{discrete:!0})};const l={originalEvent:a};a.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",i)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function Ai(e,t=globalThis==null?void 0:globalThis.document){const n=Ne(e),r=u.useRef(!1);return u.useEffect(()=>{const o=i=>{i.target&&!r.current&&Bn(Ci,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Wn(){const e=new CustomEvent(_t);document.dispatchEvent(e)}function Bn(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?yi(o,i):o.dispatchEvent(i)}var Mt="focusScope.autoFocusOnMount",Lt="focusScope.autoFocusOnUnmount",Vn={bubbles:!1,cancelable:!0},Pi="FocusScope",Hn=u.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...s}=e,[a,c]=u.useState(null),l=Ne(o),d=Ne(i),f=u.useRef(null),g=re(t,m=>c(m)),p=u.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;u.useEffect(()=>{if(r){let m=function(k){if(p.paused||!a)return;const C=k.target;a.contains(C)?f.current=C:ye(f.current,{select:!0})},v=function(k){if(p.paused||!a)return;const C=k.relatedTarget;C!==null&&(a.contains(C)||ye(f.current,{select:!0}))},y=function(k){if(document.activeElement===document.body)for(const S of k)S.removedNodes.length>0&&ye(a)};document.addEventListener("focusin",m),document.addEventListener("focusout",v);const E=new MutationObserver(y);return a&&E.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",m),document.removeEventListener("focusout",v),E.disconnect()}}},[r,a,p.paused]),u.useEffect(()=>{if(a){Yn.add(p);const m=document.activeElement;if(!a.contains(m)){const y=new CustomEvent(Mt,Vn);a.addEventListener(Mt,l),a.dispatchEvent(y),y.defaultPrevented||(Ti(Mi(Un(a)),{select:!0}),document.activeElement===m&&ye(a))}return()=>{a.removeEventListener(Mt,l),setTimeout(()=>{const y=new CustomEvent(Lt,Vn);a.addEventListener(Lt,d),a.dispatchEvent(y),y.defaultPrevented||ye(m??document.body,{select:!0}),a.removeEventListener(Lt,d),Yn.remove(p)},0)}}},[a,l,d,p]);const h=u.useCallback(m=>{if(!n&&!r||p.paused)return;const v=m.key==="Tab"&&!m.altKey&&!m.ctrlKey&&!m.metaKey,y=document.activeElement;if(v&&y){const E=m.currentTarget,[k,C]=Oi(E);k&&C?!m.shiftKey&&y===C?(m.preventDefault(),n&&ye(k,{select:!0})):m.shiftKey&&y===k&&(m.preventDefault(),n&&ye(C,{select:!0})):y===E&&m.preventDefault()}},[n,r,p.paused]);return w.jsx(J.div,{tabIndex:-1,...s,ref:g,onKeyDown:h})});Hn.displayName=Pi;function Ti(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(ye(r,{select:t}),document.activeElement!==n)return}function Oi(e){const t=Un(e),n=Gn(t,e),r=Gn(t.reverse(),e);return[n,r]}function Un(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 Gn(e,t){for(const n of e)if(!Ni(n,{upTo:t}))return n}function Ni(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 _i(e){return e instanceof HTMLInputElement&&"select"in e}function ye(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&_i(e)&&t&&e.select()}}var Yn=Di();function Di(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=Xn(e,t),e.unshift(t)},remove(t){var n;e=Xn(e,t),(n=e[0])==null||n.resume()}}}function Xn(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function Mi(e){return e.filter(t=>t.tagName!=="A")}var Li="Portal",jt=u.forwardRef((e,t)=>{var a;const{container:n,...r}=e,[o,i]=u.useState(!1);be(()=>i(!0),[]);const s=n||o&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return s?un.createPortal(w.jsx(J.div,{...r,ref:t}),s):null});jt.displayName=Li;function ji(e,t){return u.useReducer((n,r)=>t[n][r]??n,e)}var _e=e=>{const{present:t,children:n}=e,r=Ii(t),o=typeof n=="function"?n({present:r.isPresent}):u.Children.only(n),i=re(r.ref,Fi(o));return typeof n=="function"||r.isPresent?u.cloneElement(o,{ref:i}):null};_e.displayName="Presence";function Ii(e){const[t,n]=u.useState(),r=u.useRef(null),o=u.useRef(e),i=u.useRef("none"),s=e?"mounted":"unmounted",[a,c]=ji(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return u.useEffect(()=>{const l=et(r.current);i.current=a==="mounted"?l:"none"},[a]),be(()=>{const l=r.current,d=o.current;if(d!==e){const g=i.current,p=et(l);e?c("MOUNT"):p==="none"||(l==null?void 0:l.display)==="none"?c("UNMOUNT"):c(d&&g!==p?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,c]),be(()=>{if(t){let l;const d=t.ownerDocument.defaultView??window,f=p=>{const m=et(r.current).includes(CSS.escape(p.animationName));if(p.target===t&&m&&(c("ANIMATION_END"),!o.current)){const v=t.style.animationFillMode;t.style.animationFillMode="forwards",l=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=v)})}},g=p=>{p.target===t&&(i.current=et(r.current))};return t.addEventListener("animationstart",g),t.addEventListener("animationcancel",f),t.addEventListener("animationend",f),()=>{d.clearTimeout(l),t.removeEventListener("animationstart",g),t.removeEventListener("animationcancel",f),t.removeEventListener("animationend",f)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:u.useCallback(l=>{r.current=l?getComputedStyle(l):null,n(l)},[])}}function et(e){return(e==null?void 0:e.animationName)||"none"}function Fi(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 It=0;function $i(){u.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??qn()),document.body.insertAdjacentElement("beforeend",e[1]??qn()),It++,()=>{It===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),It--}},[])}function qn(){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 le=function(){return le=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},le.apply(this,arguments)};function Kn(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 zi(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,i;r<o;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;var tt="right-scroll-bar-position",nt="width-before-scroll-bar",Wi="with-scroll-bars-hidden",Bi="--removed-body-scroll-bar-size";function Ft(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Vi(e,t){var n=ee.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 Hi=typeof window<"u"?u.useLayoutEffect:u.useEffect,Zn=new WeakMap;function Ui(e,t){var n=Vi(null,function(r){return e.forEach(function(o){return Ft(o,r)})});return Hi(function(){var r=Zn.get(n);if(r){var o=new Set(r),i=new Set(e),s=n.current;o.forEach(function(a){i.has(a)||Ft(a,null)}),i.forEach(function(a){o.has(a)||Ft(a,s)})}Zn.set(n,e)},[e]),n}function Gi(e){return e}function Yi(e,t){t===void 0&&(t=Gi);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(i){var s=t(i,r);return n.push(s),function(){n=n.filter(function(a){return a!==s})}},assignSyncMedium:function(i){for(r=!0;n.length;){var s=n;n=[],s.forEach(i)}n={push:function(a){return i(a)},filter:function(){return n}}},assignMedium:function(i){r=!0;var s=[];if(n.length){var a=n;n=[],a.forEach(i),s=n}var c=function(){var d=s;s=[],d.forEach(i)},l=function(){return Promise.resolve().then(c)};l(),n={push:function(d){s.push(d),l()},filter:function(d){return s=s.filter(d),n}}}};return o}function Xi(e){e===void 0&&(e={});var t=Yi(null);return t.options=le({async:!0,ssr:!1},e),t}var Jn=function(e){var t=e.sideCar,n=Kn(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 u.createElement(r,le({},n))};Jn.isSideCarExport=!0;function qi(e,t){return e.useMedium(t),Jn}var Qn=Xi(),$t=function(){},rt=u.forwardRef(function(e,t){var n=u.useRef(null),r=u.useState({onScrollCapture:$t,onWheelCapture:$t,onTouchMoveCapture:$t}),o=r[0],i=r[1],s=e.forwardProps,a=e.children,c=e.className,l=e.removeScrollBar,d=e.enabled,f=e.shards,g=e.sideCar,p=e.noRelative,h=e.noIsolation,m=e.inert,v=e.allowPinchZoom,y=e.as,E=y===void 0?"div":y,k=e.gapMode,C=Kn(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),S=g,O=Ui([n,t]),T=le(le({},C),o);return u.createElement(u.Fragment,null,d&&u.createElement(S,{sideCar:Qn,removeScrollBar:l,shards:f,noRelative:p,noIsolation:h,inert:m,setCallbacks:i,allowPinchZoom:!!v,lockRef:n,gapMode:k}),s?u.cloneElement(u.Children.only(a),le(le({},T),{ref:O})):u.createElement(E,le({},T,{className:c,ref:O}),a))});rt.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},rt.classNames={fullWidth:nt,zeroRight:tt};var Ki=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Zi(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Ki();return t&&e.setAttribute("nonce",t),e}function Ji(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Qi(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var es=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Zi())&&(Ji(t,n),Qi(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},ts=function(){var e=es();return function(t,n){u.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},er=function(){var e=ts(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},ns={left:0,top:0,right:0,gap:0},zt=function(e){return parseInt(e||"",10)||0},rs=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[zt(n),zt(r),zt(o)]},os=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return ns;var t=rs(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])}},is=er(),De="data-scroll-locked",ss=function(e,t,n,r){var o=e.left,i=e.top,s=e.right,a=e.gap;return n===void 0&&(n="margin"),`
23
- .`.concat(Wi,` {
22
+ <%s key={someKey} {...props} />`,O,D,W,D),Q[D+O]=!0)}if(D=null,C!==void 0&&(n(C),D=""+C),a(L)&&(n(L.key),D=""+L.key),"key"in L){C={};for(var H in L)H!=="key"&&(C[H]=L[H])}else C=L;return D&&i(C,typeof S=="function"?S.displayName||S.name||"Unknown":S),u(S,D,_,M,o(),C,B,A)}function f(S){typeof S=="object"&&S!==null&&S.$$typeof===h&&S._store&&(S._store.validated=1)}var g=re,h=Symbol.for("react.transitional.element"),v=Symbol.for("react.portal"),m=Symbol.for("react.fragment"),b=Symbol.for("react.strict_mode"),y=Symbol.for("react.profiler"),x=Symbol.for("react.consumer"),w=Symbol.for("react.context"),E=Symbol.for("react.forward_ref"),P=Symbol.for("react.suspense"),N=Symbol.for("react.suspense_list"),R=Symbol.for("react.memo"),T=Symbol.for("react.lazy"),V=Symbol.for("react.activity"),G=Symbol.for("react.client.reference"),Z=g.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,X=Object.prototype.hasOwnProperty,J=Array.isArray,F=console.createTask?console.createTask:function(){return null};g={"react-stack-bottom-frame":function(S){return S()}};var Y,$={},z=g["react-stack-bottom-frame"].bind(g,s)(),k=F(r(s)),Q={};ct.Fragment=m,ct.jsx=function(S,L,C,O,M){var _=1e4>Z.recentlyCreatedOwnerStacks++;return d(S,L,C,!1,O,M,_?Error("react-stack-top-frame"):z,_?F(r(S)):k)},ct.jsxs=function(S,L,C,O,M){var _=1e4>Z.recentlyCreatedOwnerStacks++;return d(S,L,C,!0,O,M,_?Error("react-stack-top-frame"):z,_?F(r(S)):k)}}()),ct}process.env.NODE_ENV==="production"?cn.exports=Ra():cn.exports=Aa();var p=cn.exports;function vr(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Me(...e){return t=>{let n=!1;const r=e.map(o=>{const s=vr(o,t);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let o=0;o<r.length;o++){const s=r[o];typeof s=="function"?s():vr(e[o],null)}}}}function se(...e){return l.useCallback(Me(...e),e)}function De(e){const t=Ta(e),n=l.forwardRef((r,o)=>{const{children:s,...a}=r,i=l.Children.toArray(s),c=i.find(Oa);if(c){const u=c.props.children,d=i.map(f=>f===c?l.Children.count(u)>1?l.Children.only(null):l.isValidElement(u)?u.props.children:null:f);return p.jsx(t,{...a,ref:o,children:l.isValidElement(u)?l.cloneElement(u,void 0,d):null})}return p.jsx(t,{...a,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}var br=De("Slot");function Ta(e){const t=l.forwardRef((n,r)=>{const{children:o,...s}=n;if(l.isValidElement(o)){const a=Ia(o),i=_a(s,o.props);return o.type!==l.Fragment&&(i.ref=r?Me(r,a):a),l.cloneElement(o,i)}return l.Children.count(o)>1?l.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var xr=Symbol("radix.slottable");function Na(e){const t=({children:n})=>p.jsx(p.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=xr,t}function Oa(e){return l.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===xr}function _a(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...i)=>{const c=s(...i);return o(...i),c}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function Ia(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 yr(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=yr(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function wr(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=yr(e))&&(r&&(r+=" "),r+=t);return r}const un="-",ja=e=>{const t=Da(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:a=>{const i=a.split(un);return i[0]===""&&i.length!==1&&i.shift(),Cr(i,t)||Ma(a)},getConflictingClassGroupIds:(a,i)=>{const c=n[a]||[];return i&&r[a]?[...c,...r[a]]:c}}},Cr=(e,t)=>{var a;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?Cr(e.slice(1),r):void 0;if(o)return o;if(t.validators.length===0)return;const s=e.join(un);return(a=t.validators.find(({validator:i})=>i(s)))==null?void 0:a.classGroupId},Sr=/^\[(.+)\]$/,Ma=e=>{if(Sr.test(e)){const t=Sr.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},Da=e=>{const{theme:t,classGroups:n}=e,r={nextPart:new Map,validators:[]};for(const o in n)dn(n[o],r,o,t);return r},dn=(e,t,n,r)=>{e.forEach(o=>{if(typeof o=="string"){const s=o===""?t:Er(t,o);s.classGroupId=n;return}if(typeof o=="function"){if(La(o)){dn(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([s,a])=>{dn(a,Er(t,s),n,r)})})},Er=(e,t)=>{let n=e;return t.split(un).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},La=e=>e.isThemeGetter,$a=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(s,a)=>{n.set(s,a),t++,t>e&&(t=0,r=n,n=new Map)};return{get(s){let a=n.get(s);if(a!==void 0)return a;if((a=r.get(s))!==void 0)return o(s,a),a},set(s,a){n.has(s)?n.set(s,a):o(s,a)}}},fn="!",pn=":",Fa=pn.length,za=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=o=>{const s=[];let a=0,i=0,c=0,u;for(let v=0;v<o.length;v++){let m=o[v];if(a===0&&i===0){if(m===pn){s.push(o.slice(c,v)),c=v+Fa;continue}if(m==="/"){u=v;continue}}m==="["?a++:m==="]"?a--:m==="("?i++:m===")"&&i--}const d=s.length===0?o:o.substring(c),f=Va(d),g=f!==d,h=u&&u>c?u-c:void 0;return{modifiers:s,hasImportantModifier:g,baseClassName:f,maybePostfixModifierPosition:h}};if(t){const o=t+pn,s=r;r=a=>a.startsWith(o)?s(a.substring(o.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:a,maybePostfixModifierPosition:void 0}}if(n){const o=r;r=s=>n({className:s,parseClassName:o})}return r},Va=e=>e.endsWith(fn)?e.substring(0,e.length-1):e.startsWith(fn)?e.substring(1):e,Wa=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(r=>[r,!0]));return r=>{if(r.length<=1)return r;const o=[];let s=[];return r.forEach(a=>{a[0]==="["||t[a]?(o.push(...s.sort(),a),s=[]):s.push(a)}),o.push(...s.sort()),o}},Ba=e=>({cache:$a(e.cacheSize),parseClassName:za(e),sortModifiers:Wa(e),...ja(e)}),Ha=/\s+/,Ua=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o,sortModifiers:s}=t,a=[],i=e.trim().split(Ha);let c="";for(let u=i.length-1;u>=0;u-=1){const d=i[u],{isExternal:f,modifiers:g,hasImportantModifier:h,baseClassName:v,maybePostfixModifierPosition:m}=n(d);if(f){c=d+(c.length>0?" "+c:c);continue}let b=!!m,y=r(b?v.substring(0,m):v);if(!y){if(!b){c=d+(c.length>0?" "+c:c);continue}if(y=r(v),!y){c=d+(c.length>0?" "+c:c);continue}b=!1}const x=s(g).join(":"),w=h?x+fn:x,E=w+y;if(a.includes(E))continue;a.push(E);const P=o(y,b);for(let N=0;N<P.length;++N){const R=P[N];a.push(w+R)}c=d+(c.length>0?" "+c:c)}return c};function Ga(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=kr(t))&&(r&&(r+=" "),r+=n);return r}const kr=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=kr(e[r]))&&(n&&(n+=" "),n+=t);return n};function Ya(e,...t){let n,r,o,s=a;function a(c){const u=t.reduce((d,f)=>f(d),e());return n=Ba(u),r=n.cache.get,o=n.cache.set,s=i,i(c)}function i(c){const u=r(c);if(u)return u;const d=Ua(c,n);return o(c,d),d}return function(){return s(Ga.apply(null,arguments))}}const ae=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},Pr=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Rr=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Ka=/^\d+\/\d+$/,Xa=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,qa=/\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$/,Za=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Ja=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Qa=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,He=e=>Ka.test(e),U=e=>!!e&&!Number.isNaN(Number(e)),Pe=e=>!!e&&Number.isInteger(Number(e)),mn=e=>e.endsWith("%")&&U(e.slice(0,-1)),Ce=e=>Xa.test(e),ei=()=>!0,ti=e=>qa.test(e)&&!Za.test(e),Ar=()=>!1,ni=e=>Ja.test(e),ri=e=>Qa.test(e),oi=e=>!I(e)&&!j(e),si=e=>Ue(e,Ir,Ar),I=e=>Pr.test(e),Le=e=>Ue(e,jr,ti),gn=e=>Ue(e,ui,U),Tr=e=>Ue(e,Or,Ar),ai=e=>Ue(e,_r,ri),At=e=>Ue(e,Mr,ni),j=e=>Rr.test(e),ut=e=>Ge(e,jr),ii=e=>Ge(e,di),Nr=e=>Ge(e,Or),li=e=>Ge(e,Ir),ci=e=>Ge(e,_r),Tt=e=>Ge(e,Mr,!0),Ue=(e,t,n)=>{const r=Pr.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},Ge=(e,t,n=!1)=>{const r=Rr.exec(e);return r?r[1]?t(r[1]):n:!1},Or=e=>e==="position"||e==="percentage",_r=e=>e==="image"||e==="url",Ir=e=>e==="length"||e==="size"||e==="bg-size",jr=e=>e==="length",ui=e=>e==="number",di=e=>e==="family-name",Mr=e=>e==="shadow",fi=Ya(()=>{const e=ae("color"),t=ae("font"),n=ae("text"),r=ae("font-weight"),o=ae("tracking"),s=ae("leading"),a=ae("breakpoint"),i=ae("container"),c=ae("spacing"),u=ae("radius"),d=ae("shadow"),f=ae("inset-shadow"),g=ae("text-shadow"),h=ae("drop-shadow"),v=ae("blur"),m=ae("perspective"),b=ae("aspect"),y=ae("ease"),x=ae("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"],P=()=>[...E(),j,I],N=()=>["auto","hidden","clip","visible","scroll"],R=()=>["auto","contain","none"],T=()=>[j,I,c],V=()=>[He,"full","auto",...T()],G=()=>[Pe,"none","subgrid",j,I],Z=()=>["auto",{span:["full",Pe,j,I]},Pe,j,I],X=()=>[Pe,"auto",j,I],J=()=>["auto","min","max","fr",j,I],F=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],Y=()=>["start","end","center","stretch","center-safe","end-safe"],$=()=>["auto",...T()],z=()=>[He,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...T()],k=()=>[e,j,I],Q=()=>[...E(),Nr,Tr,{position:[j,I]}],S=()=>["no-repeat",{repeat:["","x","y","space","round"]}],L=()=>["auto","cover","contain",li,si,{size:[j,I]}],C=()=>[mn,ut,Le],O=()=>["","none","full",u,j,I],M=()=>["",U,ut,Le],_=()=>["solid","dashed","dotted","double"],B=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],A=()=>[U,mn,Nr,Tr],D=()=>["","none",v,j,I],W=()=>["none",U,j,I],H=()=>["none",U,j,I],ee=()=>[U,j,I],te=()=>[He,"full",...T()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Ce],breakpoint:[Ce],color:[ei],container:[Ce],"drop-shadow":[Ce],ease:["in","out","in-out"],font:[oi],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Ce],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Ce],shadow:[Ce],spacing:["px",U],text:[Ce],"text-shadow":[Ce],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",He,I,j,b]}],container:["container"],columns:[{columns:[U,I,j,i]}],"break-after":[{"break-after":w()}],"break-before":[{"break-before":w()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:P()}],overflow:[{overflow:N()}],"overflow-x":[{"overflow-x":N()}],"overflow-y":[{"overflow-y":N()}],overscroll:[{overscroll:R()}],"overscroll-x":[{"overscroll-x":R()}],"overscroll-y":[{"overscroll-y":R()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:V()}],"inset-x":[{"inset-x":V()}],"inset-y":[{"inset-y":V()}],start:[{start:V()}],end:[{end:V()}],top:[{top:V()}],right:[{right:V()}],bottom:[{bottom:V()}],left:[{left:V()}],visibility:["visible","invisible","collapse"],z:[{z:[Pe,"auto",j,I]}],basis:[{basis:[He,"full","auto",i,...T()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[U,He,"auto","initial","none",I]}],grow:[{grow:["",U,j,I]}],shrink:[{shrink:["",U,j,I]}],order:[{order:[Pe,"first","last","none",j,I]}],"grid-cols":[{"grid-cols":G()}],"col-start-end":[{col:Z()}],"col-start":[{"col-start":X()}],"col-end":[{"col-end":X()}],"grid-rows":[{"grid-rows":G()}],"row-start-end":[{row:Z()}],"row-start":[{"row-start":X()}],"row-end":[{"row-end":X()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":J()}],"auto-rows":[{"auto-rows":J()}],gap:[{gap:T()}],"gap-x":[{"gap-x":T()}],"gap-y":[{"gap-y":T()}],"justify-content":[{justify:[...F(),"normal"]}],"justify-items":[{"justify-items":[...Y(),"normal"]}],"justify-self":[{"justify-self":["auto",...Y()]}],"align-content":[{content:["normal",...F()]}],"align-items":[{items:[...Y(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...Y(),{baseline:["","last"]}]}],"place-content":[{"place-content":F()}],"place-items":[{"place-items":[...Y(),"baseline"]}],"place-self":[{"place-self":["auto",...Y()]}],p:[{p:T()}],px:[{px:T()}],py:[{py:T()}],ps:[{ps:T()}],pe:[{pe:T()}],pt:[{pt:T()}],pr:[{pr:T()}],pb:[{pb:T()}],pl:[{pl:T()}],m:[{m:$()}],mx:[{mx:$()}],my:[{my:$()}],ms:[{ms:$()}],me:[{me:$()}],mt:[{mt:$()}],mr:[{mr:$()}],mb:[{mb:$()}],ml:[{ml:$()}],"space-x":[{"space-x":T()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":T()}],"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:[a]},...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,ut,Le]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,j,gn]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",mn,I]}],"font-family":[{font:[ii,I,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,j,I]}],"line-clamp":[{"line-clamp":[U,"none",j,gn]}],leading:[{leading:[s,...T()]}],"list-image":[{"list-image":["none",j,I]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",j,I]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:k()}],"text-color":[{text:k()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[..._(),"wavy"]}],"text-decoration-thickness":[{decoration:[U,"from-font","auto",j,Le]}],"text-decoration-color":[{decoration:k()}],"underline-offset":[{"underline-offset":[U,"auto",j,I]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:T()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",j,I]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",j,I]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:Q()}],"bg-repeat":[{bg:S()}],"bg-size":[{bg:L()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Pe,j,I],radial:["",j,I],conic:[Pe,j,I]},ci,ai]}],"bg-color":[{bg:k()}],"gradient-from-pos":[{from:C()}],"gradient-via-pos":[{via:C()}],"gradient-to-pos":[{to:C()}],"gradient-from":[{from:k()}],"gradient-via":[{via:k()}],"gradient-to":[{to:k()}],rounded:[{rounded:O()}],"rounded-s":[{"rounded-s":O()}],"rounded-e":[{"rounded-e":O()}],"rounded-t":[{"rounded-t":O()}],"rounded-r":[{"rounded-r":O()}],"rounded-b":[{"rounded-b":O()}],"rounded-l":[{"rounded-l":O()}],"rounded-ss":[{"rounded-ss":O()}],"rounded-se":[{"rounded-se":O()}],"rounded-ee":[{"rounded-ee":O()}],"rounded-es":[{"rounded-es":O()}],"rounded-tl":[{"rounded-tl":O()}],"rounded-tr":[{"rounded-tr":O()}],"rounded-br":[{"rounded-br":O()}],"rounded-bl":[{"rounded-bl":O()}],"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:[..._(),"hidden","none"]}],"divide-style":[{divide:[..._(),"hidden","none"]}],"border-color":[{border:k()}],"border-color-x":[{"border-x":k()}],"border-color-y":[{"border-y":k()}],"border-color-s":[{"border-s":k()}],"border-color-e":[{"border-e":k()}],"border-color-t":[{"border-t":k()}],"border-color-r":[{"border-r":k()}],"border-color-b":[{"border-b":k()}],"border-color-l":[{"border-l":k()}],"divide-color":[{divide:k()}],"outline-style":[{outline:[..._(),"none","hidden"]}],"outline-offset":[{"outline-offset":[U,j,I]}],"outline-w":[{outline:["",U,ut,Le]}],"outline-color":[{outline:k()}],shadow:[{shadow:["","none",d,Tt,At]}],"shadow-color":[{shadow:k()}],"inset-shadow":[{"inset-shadow":["none",f,Tt,At]}],"inset-shadow-color":[{"inset-shadow":k()}],"ring-w":[{ring:M()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:k()}],"ring-offset-w":[{"ring-offset":[U,Le]}],"ring-offset-color":[{"ring-offset":k()}],"inset-ring-w":[{"inset-ring":M()}],"inset-ring-color":[{"inset-ring":k()}],"text-shadow":[{"text-shadow":["none",g,Tt,At]}],"text-shadow-color":[{"text-shadow":k()}],opacity:[{opacity:[U,j,I]}],"mix-blend":[{"mix-blend":[...B(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":B()}],"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":[U]}],"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":k()}],"mask-image-linear-to-color":[{"mask-linear-to":k()}],"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":k()}],"mask-image-t-to-color":[{"mask-t-to":k()}],"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":k()}],"mask-image-r-to-color":[{"mask-r-to":k()}],"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":k()}],"mask-image-b-to-color":[{"mask-b-to":k()}],"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":k()}],"mask-image-l-to-color":[{"mask-l-to":k()}],"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":k()}],"mask-image-x-to-color":[{"mask-x-to":k()}],"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":k()}],"mask-image-y-to-color":[{"mask-y-to":k()}],"mask-image-radial":[{"mask-radial":[j,I]}],"mask-image-radial-from-pos":[{"mask-radial-from":A()}],"mask-image-radial-to-pos":[{"mask-radial-to":A()}],"mask-image-radial-from-color":[{"mask-radial-from":k()}],"mask-image-radial-to-color":[{"mask-radial-to":k()}],"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":[U]}],"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":k()}],"mask-image-conic-to-color":[{"mask-conic-to":k()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:Q()}],"mask-repeat":[{mask:S()}],"mask-size":[{mask:L()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",j,I]}],filter:[{filter:["","none",j,I]}],blur:[{blur:D()}],brightness:[{brightness:[U,j,I]}],contrast:[{contrast:[U,j,I]}],"drop-shadow":[{"drop-shadow":["","none",h,Tt,At]}],"drop-shadow-color":[{"drop-shadow":k()}],grayscale:[{grayscale:["",U,j,I]}],"hue-rotate":[{"hue-rotate":[U,j,I]}],invert:[{invert:["",U,j,I]}],saturate:[{saturate:[U,j,I]}],sepia:[{sepia:["",U,j,I]}],"backdrop-filter":[{"backdrop-filter":["","none",j,I]}],"backdrop-blur":[{"backdrop-blur":D()}],"backdrop-brightness":[{"backdrop-brightness":[U,j,I]}],"backdrop-contrast":[{"backdrop-contrast":[U,j,I]}],"backdrop-grayscale":[{"backdrop-grayscale":["",U,j,I]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[U,j,I]}],"backdrop-invert":[{"backdrop-invert":["",U,j,I]}],"backdrop-opacity":[{"backdrop-opacity":[U,j,I]}],"backdrop-saturate":[{"backdrop-saturate":[U,j,I]}],"backdrop-sepia":[{"backdrop-sepia":["",U,j,I]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":T()}],"border-spacing-x":[{"border-spacing-x":T()}],"border-spacing-y":[{"border-spacing-y":T()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",j,I]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[U,"initial",j,I]}],ease:[{ease:["linear","initial",y,j,I]}],delay:[{delay:[U,j,I]}],animate:[{animate:["none",x,j,I]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[m,j,I]}],"perspective-origin":[{"perspective-origin":P()}],rotate:[{rotate:W()}],"rotate-x":[{"rotate-x":W()}],"rotate-y":[{"rotate-y":W()}],"rotate-z":[{"rotate-z":W()}],scale:[{scale:H()}],"scale-x":[{"scale-x":H()}],"scale-y":[{"scale-y":H()}],"scale-z":[{"scale-z":H()}],"scale-3d":["scale-3d"],skew:[{skew:ee()}],"skew-x":[{"skew-x":ee()}],"skew-y":[{"skew-y":ee()}],transform:[{transform:[j,I,"","none","gpu","cpu"]}],"transform-origin":[{origin:P()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:te()}],"translate-x":[{"translate-x":te()}],"translate-y":[{"translate-y":te()}],"translate-z":[{"translate-z":te()}],"translate-none":["translate-none"],accent:[{accent:k()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:k()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",j,I]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":T()}],"scroll-mx":[{"scroll-mx":T()}],"scroll-my":[{"scroll-my":T()}],"scroll-ms":[{"scroll-ms":T()}],"scroll-me":[{"scroll-me":T()}],"scroll-mt":[{"scroll-mt":T()}],"scroll-mr":[{"scroll-mr":T()}],"scroll-mb":[{"scroll-mb":T()}],"scroll-ml":[{"scroll-ml":T()}],"scroll-p":[{"scroll-p":T()}],"scroll-px":[{"scroll-px":T()}],"scroll-py":[{"scroll-py":T()}],"scroll-ps":[{"scroll-ps":T()}],"scroll-pe":[{"scroll-pe":T()}],"scroll-pt":[{"scroll-pt":T()}],"scroll-pr":[{"scroll-pr":T()}],"scroll-pb":[{"scroll-pb":T()}],"scroll-pl":[{"scroll-pl":T()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",j,I]}],fill:[{fill:["none",...k()]}],"stroke-w":[{stroke:[U,ut,Le,gn]}],stroke:[{stroke:["none",...k()]}],"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 oe(...e){return fi(wr(e))}const Dr=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Lr=wr,hn=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return Lr(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:o,defaultVariants:s}=t,a=Object.keys(o).map(u=>{const d=n==null?void 0:n[u],f=s==null?void 0:s[u];if(d===null)return null;const g=Dr(d)||Dr(f);return o[u][g]}),i=n&&Object.entries(n).reduce((u,d)=>{let[f,g]=d;return g===void 0||(u[f]=g),u},{}),c=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,d)=>{let{class:f,className:g,...h}=d;return Object.entries(h).every(v=>{let[m,b]=v;return Array.isArray(b)?b.includes({...s,...i}[m]):{...s,...i}[m]===b})?[...u,f,g]:u},[]);return Lr(e,a,c,n==null?void 0:n.class,n==null?void 0:n.className)},pi=hn("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 mi({className:e,variant:t,size:n,asChild:r=!1,children:o,...s}){const a=r?br:"button";return p.jsx(a,{"data-slot":"button",className:oe(pi({variant:t,size:n}),e),...s,children:o})}function q(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function gi(e,t){const n=l.createContext(t),r=s=>{const{children:a,...i}=s,c=l.useMemo(()=>i,Object.values(i));return p.jsx(n.Provider,{value:c,children:a})};r.displayName=e+"Provider";function o(s){const a=l.useContext(n);if(a)return a;if(t!==void 0)return t;throw new Error(`\`${s}\` must be used within \`${e}\``)}return[r,o]}function Ye(e,t=[]){let n=[];function r(s,a){const i=l.createContext(a),c=n.length;n=[...n,a];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,b=l.useMemo(()=>v,Object.values(v));return p.jsx(m.Provider,{value:b,children:h})};u.displayName=s+"Provider";function d(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(a!==void 0)return a;throw new Error(`\`${f}\` must be used within \`${s}\``)}return[u,d]}const o=()=>{const s=n.map(a=>l.createContext(a));return function(i){const c=(i==null?void 0:i[e])||s;return l.useMemo(()=>({[`__scope${e}`]:{...i,[e]:c}}),[i,c])}};return o.scopeName=e,[r,hi(o,...t)]}function hi(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(s){const a=r.reduce((i,{useScope:c,scopeName:u})=>{const f=c(s)[`__scope${u}`];return{...i,...f}},{});return l.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}var ie=globalThis!=null&&globalThis.document?l.useLayoutEffect:()=>{},vi=l[" useId ".trim().toString()]||(()=>{}),bi=0;function le(e){const[t,n]=l.useState(vi());return ie(()=>{n(r=>r??String(bi++))},[e]),e||(t?`radix-${t}`:"")}var xi=l[" useInsertionEffect ".trim().toString()]||ie;function dt({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,s,a]=yi({defaultProp:t,onChange:n}),i=e!==void 0,c=i?e:o;{const d=l.useRef(e!==void 0);l.useEffect(()=>{const f=d.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.`),d.current=i},[i,r])}const u=l.useCallback(d=>{var f;if(i){const g=wi(d)?d(e):d;g!==e&&((f=a.current)==null||f.call(a,g))}else s(d)},[i,e,s,a]);return[c,u]}function yi({defaultProp:e,onChange:t}){const[n,r]=l.useState(e),o=l.useRef(n),s=l.useRef(t);return xi(()=>{s.current=t},[t]),l.useEffect(()=>{var a;o.current!==n&&((a=s.current)==null||a.call(s,n),o.current=n)},[n,o]),[n,r,s]}function wi(e){return typeof e=="function"}var Ci=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],K=Ci.reduce((e,t)=>{const n=De(`Primitive.${t}`),r=l.forwardRef((o,s)=>{const{asChild:a,...i}=o,c=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),p.jsx(c,{...i,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Si(e,t){e&&Rt.flushSync(()=>e.dispatchEvent(t))}function $e(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 Ei(e,t=globalThis==null?void 0:globalThis.document){const n=$e(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 ki="DismissableLayer",vn="dismissableLayer.update",Pi="dismissableLayer.pointerDownOutside",Ri="dismissableLayer.focusOutside",$r,Fr=l.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),ft=l.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:a,onDismiss:i,...c}=e,u=l.useContext(Fr),[d,f]=l.useState(null),g=(d==null?void 0:d.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,h]=l.useState({}),v=se(t,R=>f(R)),m=Array.from(u.layers),[b]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),y=m.indexOf(b),x=d?m.indexOf(d):-1,w=u.layersWithOutsidePointerEventsDisabled.size>0,E=x>=y,P=Ni(R=>{const T=R.target,V=[...u.branches].some(G=>G.contains(T));!E||V||(o==null||o(R),a==null||a(R),R.defaultPrevented||i==null||i())},g),N=Oi(R=>{const T=R.target;[...u.branches].some(G=>G.contains(T))||(s==null||s(R),a==null||a(R),R.defaultPrevented||i==null||i())},g);return Ei(R=>{x===u.layers.size-1&&(r==null||r(R),!R.defaultPrevented&&i&&(R.preventDefault(),i()))},g),l.useEffect(()=>{if(d)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&($r=g.body.style.pointerEvents,g.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),zr(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(g.body.style.pointerEvents=$r)}},[d,g,n,u]),l.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),zr())},[d,u]),l.useEffect(()=>{const R=()=>h({});return document.addEventListener(vn,R),()=>document.removeEventListener(vn,R)},[]),p.jsx(K.div,{...c,ref:v,style:{pointerEvents:w?E?"auto":"none":void 0,...e.style},onFocusCapture:q(e.onFocusCapture,N.onFocusCapture),onBlurCapture:q(e.onBlurCapture,N.onBlurCapture),onPointerDownCapture:q(e.onPointerDownCapture,P.onPointerDownCapture)})});ft.displayName=ki;var Ai="DismissableLayerBranch",Ti=l.forwardRef((e,t)=>{const n=l.useContext(Fr),r=l.useRef(null),o=se(t,r);return l.useEffect(()=>{const s=r.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),p.jsx(K.div,{...e,ref:o})});Ti.displayName=Ai;function Ni(e,t=globalThis==null?void 0:globalThis.document){const n=$e(e),r=l.useRef(!1),o=l.useRef(()=>{});return l.useEffect(()=>{const s=i=>{if(i.target&&!r.current){let c=function(){Vr(Pi,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},a=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",s),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function Oi(e,t=globalThis==null?void 0:globalThis.document){const n=$e(e),r=l.useRef(!1);return l.useEffect(()=>{const o=s=>{s.target&&!r.current&&Vr(Ri,n,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function zr(){const e=new CustomEvent(vn);document.dispatchEvent(e)}function Vr(e,t,n,{discrete:r}){const o=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Si(o,s):o.dispatchEvent(s)}var bn="focusScope.autoFocusOnMount",xn="focusScope.autoFocusOnUnmount",Wr={bubbles:!1,cancelable:!0},_i="FocusScope",Nt=l.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:s,...a}=e,[i,c]=l.useState(null),u=$e(o),d=$e(s),f=l.useRef(null),g=se(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:Re(f.current,{select:!0})},b=function(w){if(h.paused||!i)return;const E=w.relatedTarget;E!==null&&(i.contains(E)||Re(f.current,{select:!0}))},y=function(w){if(document.activeElement===document.body)for(const P of w)P.removedNodes.length>0&&Re(i)};document.addEventListener("focusin",m),document.addEventListener("focusout",b);const x=new MutationObserver(y);return i&&x.observe(i,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",m),document.removeEventListener("focusout",b),x.disconnect()}}},[r,i,h.paused]),l.useEffect(()=>{if(i){Ur.add(h);const m=document.activeElement;if(!i.contains(m)){const y=new CustomEvent(bn,Wr);i.addEventListener(bn,u),i.dispatchEvent(y),y.defaultPrevented||(Ii($i(Br(i)),{select:!0}),document.activeElement===m&&Re(i))}return()=>{i.removeEventListener(bn,u),setTimeout(()=>{const y=new CustomEvent(xn,Wr);i.addEventListener(xn,d),i.dispatchEvent(y),y.defaultPrevented||Re(m??document.body,{select:!0}),i.removeEventListener(xn,d),Ur.remove(h)},0)}}},[i,u,d,h]);const v=l.useCallback(m=>{if(!n&&!r||h.paused)return;const b=m.key==="Tab"&&!m.altKey&&!m.ctrlKey&&!m.metaKey,y=document.activeElement;if(b&&y){const x=m.currentTarget,[w,E]=ji(x);w&&E?!m.shiftKey&&y===E?(m.preventDefault(),n&&Re(w,{select:!0})):m.shiftKey&&y===w&&(m.preventDefault(),n&&Re(E,{select:!0})):y===x&&m.preventDefault()}},[n,r,h.paused]);return p.jsx(K.div,{tabIndex:-1,...a,ref:g,onKeyDown:v})});Nt.displayName=_i;function Ii(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Re(r,{select:t}),document.activeElement!==n)return}function ji(e){const t=Br(e),n=Hr(t,e),r=Hr(t.reverse(),e);return[n,r]}function Br(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 Hr(e,t){for(const n of e)if(!Mi(n,{upTo:t}))return n}function Mi(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 Di(e){return e instanceof HTMLInputElement&&"select"in e}function Re(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Di(e)&&t&&e.select()}}var Ur=Li();function Li(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=Gr(e,t),e.unshift(t)},remove(t){var n;e=Gr(e,t),(n=e[0])==null||n.resume()}}}function Gr(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function $i(e){return e.filter(t=>t.tagName!=="A")}var Fi="Portal",pt=l.forwardRef((e,t)=>{var i;const{container:n,...r}=e,[o,s]=l.useState(!1);ie(()=>s(!0),[]);const a=n||o&&((i=globalThis==null?void 0:globalThis.document)==null?void 0:i.body);return a?pr.createPortal(p.jsx(K.div,{...r,ref:t}),a):null});pt.displayName=Fi;function zi(e,t){return l.useReducer((n,r)=>t[n][r]??n,e)}var Ae=e=>{const{present:t,children:n}=e,r=Vi(t),o=typeof n=="function"?n({present:r.isPresent}):l.Children.only(n),s=se(r.ref,Wi(o));return typeof n=="function"||r.isPresent?l.cloneElement(o,{ref:s}):null};Ae.displayName="Presence";function Vi(e){const[t,n]=l.useState(),r=l.useRef(null),o=l.useRef(e),s=l.useRef("none"),a=e?"mounted":"unmounted",[i,c]=zi(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return l.useEffect(()=>{const u=Ot(r.current);s.current=i==="mounted"?u:"none"},[i]),ie(()=>{const u=r.current,d=o.current;if(d!==e){const g=s.current,h=Ot(u);e?c("MOUNT"):h==="none"||(u==null?void 0:u.display)==="none"?c("UNMOUNT"):c(d&&g!==h?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,c]),ie(()=>{if(t){let u;const d=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 b=t.style.animationFillMode;t.style.animationFillMode="forwards",u=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=b)})}},g=h=>{h.target===t&&(s.current=Ot(r.current))};return t.addEventListener("animationstart",g),t.addEventListener("animationcancel",f),t.addEventListener("animationend",f),()=>{d.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 Wi(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var yn=0;function wn(){l.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Yr()),document.body.insertAdjacentElement("beforeend",e[1]??Yr()),yn++,()=>{yn===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),yn--}},[])}function Yr(){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 he=function(){return he=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},he.apply(this,arguments)};function Kr(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 Bi(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,s;r<o;r++)(s||!(r in t))&&(s||(s=Array.prototype.slice.call(t,0,r)),s[r]=t[r]);return e.concat(s||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;var _t="right-scroll-bar-position",It="width-before-scroll-bar",Hi="with-scroll-bars-hidden",Ui="--removed-body-scroll-bar-size";function Cn(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Gi(e,t){var n=re.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 Yi=typeof window<"u"?l.useLayoutEffect:l.useEffect,Xr=new WeakMap;function Ki(e,t){var n=Gi(null,function(r){return e.forEach(function(o){return Cn(o,r)})});return Yi(function(){var r=Xr.get(n);if(r){var o=new Set(r),s=new Set(e),a=n.current;o.forEach(function(i){s.has(i)||Cn(i,null)}),s.forEach(function(i){o.has(i)||Cn(i,a)})}Xr.set(n,e)},[e]),n}function Xi(e){return e}function qi(e,t){t===void 0&&(t=Xi);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(s){var a=t(s,r);return n.push(a),function(){n=n.filter(function(i){return i!==a})}},assignSyncMedium:function(s){for(r=!0;n.length;){var a=n;n=[],a.forEach(s)}n={push:function(i){return s(i)},filter:function(){return n}}},assignMedium:function(s){r=!0;var a=[];if(n.length){var i=n;n=[],i.forEach(s),a=n}var c=function(){var d=a;a=[],d.forEach(s)},u=function(){return Promise.resolve().then(c)};u(),n={push:function(d){a.push(d),u()},filter:function(d){return a=a.filter(d),n}}}};return o}function Zi(e){e===void 0&&(e={});var t=qi(null);return t.options=he({async:!0,ssr:!1},e),t}var qr=function(e){var t=e.sideCar,n=Kr(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,he({},n))};qr.isSideCarExport=!0;function Ji(e,t){return e.useMedium(t),qr}var Zr=Zi(),Sn=function(){},jt=l.forwardRef(function(e,t){var n=l.useRef(null),r=l.useState({onScrollCapture:Sn,onWheelCapture:Sn,onTouchMoveCapture:Sn}),o=r[0],s=r[1],a=e.forwardProps,i=e.children,c=e.className,u=e.removeScrollBar,d=e.enabled,f=e.shards,g=e.sideCar,h=e.noRelative,v=e.noIsolation,m=e.inert,b=e.allowPinchZoom,y=e.as,x=y===void 0?"div":y,w=e.gapMode,E=Kr(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),P=g,N=Ki([n,t]),R=he(he({},E),o);return l.createElement(l.Fragment,null,d&&l.createElement(P,{sideCar:Zr,removeScrollBar:u,shards:f,noRelative:h,noIsolation:v,inert:m,setCallbacks:s,allowPinchZoom:!!b,lockRef:n,gapMode:w}),a?l.cloneElement(l.Children.only(i),he(he({},R),{ref:N})):l.createElement(x,he({},R,{className:c,ref:N}),i))});jt.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},jt.classNames={fullWidth:It,zeroRight:_t};var Qi=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function el(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Qi();return t&&e.setAttribute("nonce",t),e}function tl(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function nl(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var rl=function(){var e=0,t=null;return{add:function(n){e==0&&(t=el())&&(tl(t,n),nl(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},ol=function(){var e=rl();return function(t,n){l.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Jr=function(){var e=ol(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},sl={left:0,top:0,right:0,gap:0},En=function(e){return parseInt(e||"",10)||0},al=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[En(n),En(r),En(o)]},il=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return sl;var t=al(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])}},ll=Jr(),Ke="data-scroll-locked",cl=function(e,t,n,r){var o=e.left,s=e.top,a=e.right,i=e.gap;return n===void 0&&(n="margin"),`
23
+ .`.concat(Hi,` {
24
24
  overflow: hidden `).concat(r,`;
25
- padding-right: `).concat(a,"px ").concat(r,`;
25
+ padding-right: `).concat(i,"px ").concat(r,`;
26
26
  }
27
- body[`).concat(De,`] {
27
+ body[`).concat(Ke,`] {
28
28
  overflow: hidden `).concat(r,`;
29
29
  overscroll-behavior: contain;
30
30
  `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
31
31
  padding-left: `.concat(o,`px;
32
- padding-top: `).concat(i,`px;
33
- padding-right: `).concat(s,`px;
32
+ padding-top: `).concat(s,`px;
33
+ padding-right: `).concat(a,`px;
34
34
  margin-left:0;
35
35
  margin-top:0;
36
- margin-right: `).concat(a,"px ").concat(r,`;
37
- `),n==="padding"&&"padding-right: ".concat(a,"px ").concat(r,";")].filter(Boolean).join(""),`
36
+ margin-right: `).concat(i,"px ").concat(r,`;
37
+ `),n==="padding"&&"padding-right: ".concat(i,"px ").concat(r,";")].filter(Boolean).join(""),`
38
38
  }
39
39
 
40
- .`).concat(tt,` {
41
- right: `).concat(a,"px ").concat(r,`;
40
+ .`).concat(_t,` {
41
+ right: `).concat(i,"px ").concat(r,`;
42
42
  }
43
43
 
44
- .`).concat(nt,` {
45
- margin-right: `).concat(a,"px ").concat(r,`;
44
+ .`).concat(It,` {
45
+ margin-right: `).concat(i,"px ").concat(r,`;
46
46
  }
47
47
 
48
- .`).concat(tt," .").concat(tt,` {
48
+ .`).concat(_t," .").concat(_t,` {
49
49
  right: 0 `).concat(r,`;
50
50
  }
51
51
 
52
- .`).concat(nt," .").concat(nt,` {
52
+ .`).concat(It," .").concat(It,` {
53
53
  margin-right: 0 `).concat(r,`;
54
54
  }
55
55
 
56
- body[`).concat(De,`] {
57
- `).concat(Bi,": ").concat(a,`px;
56
+ body[`).concat(Ke,`] {
57
+ `).concat(Ui,": ").concat(i,`px;
58
58
  }
59
- `)},tr=function(){var e=parseInt(document.body.getAttribute(De)||"0",10);return isFinite(e)?e:0},as=function(){u.useEffect(function(){return document.body.setAttribute(De,(tr()+1).toString()),function(){var e=tr()-1;e<=0?document.body.removeAttribute(De):document.body.setAttribute(De,e.toString())}},[])},cs=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;as();var i=u.useMemo(function(){return os(o)},[o]);return u.createElement(is,{styles:ss(i,!t,o,n?"":"!important")})},Wt=!1;if(typeof window<"u")try{var ot=Object.defineProperty({},"passive",{get:function(){return Wt=!0,!0}});window.addEventListener("test",ot,ot),window.removeEventListener("test",ot,ot)}catch{Wt=!1}var Me=Wt?{passive:!1}:!1,ls=function(e){return e.tagName==="TEXTAREA"},nr=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!ls(e)&&n[t]==="visible")},us=function(e){return nr(e,"overflowY")},ds=function(e){return nr(e,"overflowX")},rr=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=or(e,r);if(o){var i=ir(e,r),s=i[1],a=i[2];if(s>a)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},fs=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},ms=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},or=function(e,t){return e==="v"?us(t):ds(t)},ir=function(e,t){return e==="v"?fs(t):ms(t)},ps=function(e,t){return e==="h"&&t==="rtl"?-1:1},gs=function(e,t,n,r,o){var i=ps(e,window.getComputedStyle(t).direction),s=i*r,a=n.target,c=t.contains(a),l=!1,d=s>0,f=0,g=0;do{if(!a)break;var p=ir(e,a),h=p[0],m=p[1],v=p[2],y=m-v-i*h;(h||y)&&or(e,a)&&(f+=y,g+=h);var E=a.parentNode;a=E&&E.nodeType===Node.DOCUMENT_FRAGMENT_NODE?E.host:E}while(!c&&a!==document.body||c&&(t.contains(a)||t===a));return(d&&Math.abs(f)<1||!d&&Math.abs(g)<1)&&(l=!0),l},it=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},sr=function(e){return[e.deltaX,e.deltaY]},ar=function(e){return e&&"current"in e?e.current:e},hs=function(e,t){return e[0]===t[0]&&e[1]===t[1]},vs=function(e){return`
59
+ `)},Qr=function(){var e=parseInt(document.body.getAttribute(Ke)||"0",10);return isFinite(e)?e:0},ul=function(){l.useEffect(function(){return document.body.setAttribute(Ke,(Qr()+1).toString()),function(){var e=Qr()-1;e<=0?document.body.removeAttribute(Ke):document.body.setAttribute(Ke,e.toString())}},[])},dl=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;ul();var s=l.useMemo(function(){return il(o)},[o]);return l.createElement(ll,{styles:cl(s,!t,o,n?"":"!important")})},kn=!1;if(typeof window<"u")try{var Mt=Object.defineProperty({},"passive",{get:function(){return kn=!0,!0}});window.addEventListener("test",Mt,Mt),window.removeEventListener("test",Mt,Mt)}catch{kn=!1}var Xe=kn?{passive:!1}:!1,fl=function(e){return e.tagName==="TEXTAREA"},eo=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!fl(e)&&n[t]==="visible")},pl=function(e){return eo(e,"overflowY")},ml=function(e){return eo(e,"overflowX")},to=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=no(e,r);if(o){var s=ro(e,r),a=s[1],i=s[2];if(a>i)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},gl=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},hl=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},no=function(e,t){return e==="v"?pl(t):ml(t)},ro=function(e,t){return e==="v"?gl(t):hl(t)},vl=function(e,t){return e==="h"&&t==="rtl"?-1:1},bl=function(e,t,n,r,o){var s=vl(e,window.getComputedStyle(t).direction),a=s*r,i=n.target,c=t.contains(i),u=!1,d=a>0,f=0,g=0;do{if(!i)break;var h=ro(e,i),v=h[0],m=h[1],b=h[2],y=m-b-s*v;(v||y)&&no(e,i)&&(f+=y,g+=v);var x=i.parentNode;i=x&&x.nodeType===Node.DOCUMENT_FRAGMENT_NODE?x.host:x}while(!c&&i!==document.body||c&&(t.contains(i)||t===i));return(d&&Math.abs(f)<1||!d&&Math.abs(g)<1)&&(u=!0),u},Dt=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},oo=function(e){return[e.deltaX,e.deltaY]},so=function(e){return e&&"current"in e?e.current:e},xl=function(e,t){return e[0]===t[0]&&e[1]===t[1]},yl=function(e){return`
60
60
  .block-interactivity-`.concat(e,` {pointer-events: none;}
61
61
  .allow-interactivity-`).concat(e,` {pointer-events: all;}
62
- `)},bs=0,Le=[];function ys(e){var t=u.useRef([]),n=u.useRef([0,0]),r=u.useRef(),o=u.useState(bs++)[0],i=u.useState(er)[0],s=u.useRef(e);u.useEffect(function(){s.current=e},[e]),u.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var m=zi([e.lockRef.current],(e.shards||[]).map(ar),!0).filter(Boolean);return m.forEach(function(v){return v.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),m.forEach(function(v){return v.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var a=u.useCallback(function(m,v){if("touches"in m&&m.touches.length===2||m.type==="wheel"&&m.ctrlKey)return!s.current.allowPinchZoom;var y=it(m),E=n.current,k="deltaX"in m?m.deltaX:E[0]-y[0],C="deltaY"in m?m.deltaY:E[1]-y[1],S,O=m.target,T=Math.abs(k)>Math.abs(C)?"h":"v";if("touches"in m&&T==="h"&&O.type==="range")return!1;var R=rr(T,O);if(!R)return!0;if(R?S=T:(S=T==="v"?"h":"v",R=rr(T,O)),!R)return!1;if(!r.current&&"changedTouches"in m&&(k||C)&&(r.current=S),!S)return!0;var M=r.current||S;return gs(M,v,m,M==="h"?k:C)},[]),c=u.useCallback(function(m){var v=m;if(!(!Le.length||Le[Le.length-1]!==i)){var y="deltaY"in v?sr(v):it(v),E=t.current.filter(function(S){return S.name===v.type&&(S.target===v.target||v.target===S.shadowParent)&&hs(S.delta,y)})[0];if(E&&E.should){v.cancelable&&v.preventDefault();return}if(!E){var k=(s.current.shards||[]).map(ar).filter(Boolean).filter(function(S){return S.contains(v.target)}),C=k.length>0?a(v,k[0]):!s.current.noIsolation;C&&v.cancelable&&v.preventDefault()}}},[]),l=u.useCallback(function(m,v,y,E){var k={name:m,delta:v,target:y,should:E,shadowParent:ws(y)};t.current.push(k),setTimeout(function(){t.current=t.current.filter(function(C){return C!==k})},1)},[]),d=u.useCallback(function(m){n.current=it(m),r.current=void 0},[]),f=u.useCallback(function(m){l(m.type,sr(m),m.target,a(m,e.lockRef.current))},[]),g=u.useCallback(function(m){l(m.type,it(m),m.target,a(m,e.lockRef.current))},[]);u.useEffect(function(){return Le.push(i),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:g}),document.addEventListener("wheel",c,Me),document.addEventListener("touchmove",c,Me),document.addEventListener("touchstart",d,Me),function(){Le=Le.filter(function(m){return m!==i}),document.removeEventListener("wheel",c,Me),document.removeEventListener("touchmove",c,Me),document.removeEventListener("touchstart",d,Me)}},[]);var p=e.removeScrollBar,h=e.inert;return u.createElement(u.Fragment,null,h?u.createElement(i,{styles:vs(o)}):null,p?u.createElement(cs,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function ws(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const xs=qi(Qn,ys);var cr=u.forwardRef(function(e,t){return u.createElement(rt,le({},e,{ref:t,sideCar:xs}))});cr.classNames=rt.classNames;var Es=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},je=new WeakMap,st=new WeakMap,at={},Bt=0,lr=function(e){return e&&(e.host||lr(e.parentNode))},Cs=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=lr(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})},ks=function(e,t,n,r){var o=Cs(t,Array.isArray(e)?e:[e]);at[n]||(at[n]=new WeakMap);var i=at[n],s=[],a=new Set,c=new Set(o),l=function(f){!f||a.has(f)||(a.add(f),l(f.parentNode))};o.forEach(l);var d=function(f){!f||c.has(f)||Array.prototype.forEach.call(f.children,function(g){if(a.has(g))d(g);else try{var p=g.getAttribute(r),h=p!==null&&p!=="false",m=(je.get(g)||0)+1,v=(i.get(g)||0)+1;je.set(g,m),i.set(g,v),s.push(g),m===1&&h&&st.set(g,!0),v===1&&g.setAttribute(n,"true"),h||g.setAttribute(r,"true")}catch(y){console.error("aria-hidden: cannot operate on ",g,y)}})};return d(t),a.clear(),Bt++,function(){s.forEach(function(f){var g=je.get(f)-1,p=i.get(f)-1;je.set(f,g),i.set(f,p),g||(st.has(f)||f.removeAttribute(r),st.delete(f)),p||f.removeAttribute(n)}),Bt--,Bt||(je=new WeakMap,je=new WeakMap,st=new WeakMap,at={})}},Ss=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=Es(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),ks(r,o,n,"aria-hidden")):function(){return null}},ct="Dialog",[ur]=Nt(ct),[Rs,oe]=ur(ct),dr=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:s=!0}=e,a=u.useRef(null),c=u.useRef(null),[l,d]=Fn({prop:r,defaultProp:o??!1,onChange:i,caller:ct});return w.jsx(Rs,{scope:t,triggerRef:a,contentRef:c,contentId:Qe(),titleId:Qe(),descriptionId:Qe(),open:l,onOpenChange:d,onOpenToggle:u.useCallback(()=>d(f=>!f),[d]),modal:s,children:n})};dr.displayName=ct;var fr="DialogTrigger",mr=u.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=oe(fr,n),i=re(t,o.triggerRef);return w.jsx(J.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Ut(o.open),...r,ref:i,onClick:Z(e.onClick,o.onOpenToggle)})});mr.displayName=fr;var Vt="DialogPortal",[As,pr]=ur(Vt,{forceMount:void 0}),gr=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,i=oe(Vt,t);return w.jsx(As,{scope:t,forceMount:n,children:u.Children.map(r,s=>w.jsx(_e,{present:n||i.open,children:w.jsx(jt,{asChild:!0,container:o,children:s})}))})};gr.displayName=Vt;var lt="DialogOverlay",hr=u.forwardRef((e,t)=>{const n=pr(lt,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=oe(lt,e.__scopeDialog);return i.modal?w.jsx(_e,{present:r||i.open,children:w.jsx(Ts,{...o,ref:t})}):null});hr.displayName=lt;var Ps=kt("DialogOverlay.RemoveScroll"),Ts=u.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=oe(lt,n);return w.jsx(cr,{as:Ps,allowPinchZoom:!0,shards:[o.contentRef],children:w.jsx(J.div,{"data-state":Ut(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),Se="DialogContent",vr=u.forwardRef((e,t)=>{const n=pr(Se,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=oe(Se,e.__scopeDialog);return w.jsx(_e,{present:r||i.open,children:i.modal?w.jsx(Os,{...o,ref:t}):w.jsx(Ns,{...o,ref:t})})});vr.displayName=Se;var Os=u.forwardRef((e,t)=>{const n=oe(Se,e.__scopeDialog),r=u.useRef(null),o=re(t,n.contentRef,r);return u.useEffect(()=>{const i=r.current;if(i)return Ss(i)},[]),w.jsx(br,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Z(e.onCloseAutoFocus,i=>{var s;i.preventDefault(),(s=n.triggerRef.current)==null||s.focus()}),onPointerDownOutside:Z(e.onPointerDownOutside,i=>{const s=i.detail.originalEvent,a=s.button===0&&s.ctrlKey===!0;(s.button===2||a)&&i.preventDefault()}),onFocusOutside:Z(e.onFocusOutside,i=>i.preventDefault())})}),Ns=u.forwardRef((e,t)=>{const n=oe(Se,e.__scopeDialog),r=u.useRef(!1),o=u.useRef(!1);return w.jsx(br,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var s,a;(s=e.onCloseAutoFocus)==null||s.call(e,i),i.defaultPrevented||(r.current||(a=n.triggerRef.current)==null||a.focus(),i.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:i=>{var c,l;(c=e.onInteractOutside)==null||c.call(e,i),i.defaultPrevented||(r.current=!0,i.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const s=i.target;((l=n.triggerRef.current)==null?void 0:l.contains(s))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&o.current&&i.preventDefault()}})}),br=u.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,...s}=e,a=oe(Se,n),c=u.useRef(null),l=re(t,c);return $i(),w.jsxs(w.Fragment,{children:[w.jsx(Hn,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i,children:w.jsx(Dt,{role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":Ut(a.open),...s,ref:l,onDismiss:()=>a.onOpenChange(!1)})}),w.jsxs(w.Fragment,{children:[w.jsx(_s,{titleId:a.titleId}),w.jsx(Ms,{contentRef:c,descriptionId:a.descriptionId})]})]})}),Ht="DialogTitle",yr=u.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=oe(Ht,n);return w.jsx(J.h2,{id:o.titleId,...r,ref:t})});yr.displayName=Ht;var wr="DialogDescription",xr=u.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=oe(wr,n);return w.jsx(J.p,{id:o.descriptionId,...r,ref:t})});xr.displayName=wr;var Er="DialogClose",Cr=u.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=oe(Er,n);return w.jsx(J.button,{type:"button",...r,ref:t,onClick:Z(e.onClick,()=>o.onOpenChange(!1))})});Cr.displayName=Er;function Ut(e){return e?"open":"closed"}var kr="DialogTitleWarning",[cl,Sr]=di(kr,{contentName:Se,titleName:Ht,docsSlug:"dialog"}),_s=({titleId:e})=>{const t=Sr(kr),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
62
+ `)},wl=0,qe=[];function Cl(e){var t=l.useRef([]),n=l.useRef([0,0]),r=l.useRef(),o=l.useState(wl++)[0],s=l.useState(Jr)[0],a=l.useRef(e);l.useEffect(function(){a.current=e},[e]),l.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var m=Bi([e.lockRef.current],(e.shards||[]).map(so),!0).filter(Boolean);return m.forEach(function(b){return b.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),m.forEach(function(b){return b.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var i=l.useCallback(function(m,b){if("touches"in m&&m.touches.length===2||m.type==="wheel"&&m.ctrlKey)return!a.current.allowPinchZoom;var y=Dt(m),x=n.current,w="deltaX"in m?m.deltaX:x[0]-y[0],E="deltaY"in m?m.deltaY:x[1]-y[1],P,N=m.target,R=Math.abs(w)>Math.abs(E)?"h":"v";if("touches"in m&&R==="h"&&N.type==="range")return!1;var T=to(R,N);if(!T)return!0;if(T?P=R:(P=R==="v"?"h":"v",T=to(R,N)),!T)return!1;if(!r.current&&"changedTouches"in m&&(w||E)&&(r.current=P),!P)return!0;var V=r.current||P;return bl(V,b,m,V==="h"?w:E)},[]),c=l.useCallback(function(m){var b=m;if(!(!qe.length||qe[qe.length-1]!==s)){var y="deltaY"in b?oo(b):Dt(b),x=t.current.filter(function(P){return P.name===b.type&&(P.target===b.target||b.target===P.shadowParent)&&xl(P.delta,y)})[0];if(x&&x.should){b.cancelable&&b.preventDefault();return}if(!x){var w=(a.current.shards||[]).map(so).filter(Boolean).filter(function(P){return P.contains(b.target)}),E=w.length>0?i(b,w[0]):!a.current.noIsolation;E&&b.cancelable&&b.preventDefault()}}},[]),u=l.useCallback(function(m,b,y,x){var w={name:m,delta:b,target:y,should:x,shadowParent:Sl(y)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(E){return E!==w})},1)},[]),d=l.useCallback(function(m){n.current=Dt(m),r.current=void 0},[]),f=l.useCallback(function(m){u(m.type,oo(m),m.target,i(m,e.lockRef.current))},[]),g=l.useCallback(function(m){u(m.type,Dt(m),m.target,i(m,e.lockRef.current))},[]);l.useEffect(function(){return qe.push(s),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:g}),document.addEventListener("wheel",c,Xe),document.addEventListener("touchmove",c,Xe),document.addEventListener("touchstart",d,Xe),function(){qe=qe.filter(function(m){return m!==s}),document.removeEventListener("wheel",c,Xe),document.removeEventListener("touchmove",c,Xe),document.removeEventListener("touchstart",d,Xe)}},[]);var h=e.removeScrollBar,v=e.inert;return l.createElement(l.Fragment,null,v?l.createElement(s,{styles:yl(o)}):null,h?l.createElement(dl,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Sl(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const El=Ji(Zr,Cl);var Lt=l.forwardRef(function(e,t){return l.createElement(jt,he({},e,{ref:t,sideCar:El}))});Lt.classNames=jt.classNames;var kl=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Ze=new WeakMap,$t=new WeakMap,Ft={},Pn=0,ao=function(e){return e&&(e.host||ao(e.parentNode))},Pl=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=ao(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})},Rl=function(e,t,n,r){var o=Pl(t,Array.isArray(e)?e:[e]);Ft[n]||(Ft[n]=new WeakMap);var s=Ft[n],a=[],i=new Set,c=new Set(o),u=function(f){!f||i.has(f)||(i.add(f),u(f.parentNode))};o.forEach(u);var d=function(f){!f||c.has(f)||Array.prototype.forEach.call(f.children,function(g){if(i.has(g))d(g);else try{var h=g.getAttribute(r),v=h!==null&&h!=="false",m=(Ze.get(g)||0)+1,b=(s.get(g)||0)+1;Ze.set(g,m),s.set(g,b),a.push(g),m===1&&v&&$t.set(g,!0),b===1&&g.setAttribute(n,"true"),v||g.setAttribute(r,"true")}catch(y){console.error("aria-hidden: cannot operate on ",g,y)}})};return d(t),i.clear(),Pn++,function(){a.forEach(function(f){var g=Ze.get(f)-1,h=s.get(f)-1;Ze.set(f,g),s.set(f,h),g||($t.has(f)||f.removeAttribute(r),$t.delete(f)),h||f.removeAttribute(n)}),Pn--,Pn||(Ze=new WeakMap,Ze=new WeakMap,$t=new WeakMap,Ft={})}},Rn=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=kl(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),Rl(r,o,n,"aria-hidden")):function(){return null}},zt="Dialog",[io,Hf]=Ye(zt),[Al,fe]=io(zt),lo=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:s,modal:a=!0}=e,i=l.useRef(null),c=l.useRef(null),[u,d]=dt({prop:r,defaultProp:o??!1,onChange:s,caller:zt});return p.jsx(Al,{scope:t,triggerRef:i,contentRef:c,contentId:le(),titleId:le(),descriptionId:le(),open:u,onOpenChange:d,onOpenToggle:l.useCallback(()=>d(f=>!f),[d]),modal:a,children:n})};lo.displayName=zt;var co="DialogTrigger",uo=l.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=fe(co,n),s=se(t,o.triggerRef);return p.jsx(K.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Nn(o.open),...r,ref:s,onClick:q(e.onClick,o.onOpenToggle)})});uo.displayName=co;var An="DialogPortal",[Tl,fo]=io(An,{forceMount:void 0}),po=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,s=fe(An,t);return p.jsx(Tl,{scope:t,forceMount:n,children:l.Children.map(r,a=>p.jsx(Ae,{present:n||s.open,children:p.jsx(pt,{asChild:!0,container:o,children:a})}))})};po.displayName=An;var Vt="DialogOverlay",mo=l.forwardRef((e,t)=>{const n=fo(Vt,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,s=fe(Vt,e.__scopeDialog);return s.modal?p.jsx(Ae,{present:r||s.open,children:p.jsx(Ol,{...o,ref:t})}):null});mo.displayName=Vt;var Nl=De("DialogOverlay.RemoveScroll"),Ol=l.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=fe(Vt,n);return p.jsx(Lt,{as:Nl,allowPinchZoom:!0,shards:[o.contentRef],children:p.jsx(K.div,{"data-state":Nn(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),Fe="DialogContent",go=l.forwardRef((e,t)=>{const n=fo(Fe,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,s=fe(Fe,e.__scopeDialog);return p.jsx(Ae,{present:r||s.open,children:s.modal?p.jsx(_l,{...o,ref:t}):p.jsx(Il,{...o,ref:t})})});go.displayName=Fe;var _l=l.forwardRef((e,t)=>{const n=fe(Fe,e.__scopeDialog),r=l.useRef(null),o=se(t,n.contentRef,r);return l.useEffect(()=>{const s=r.current;if(s)return Rn(s)},[]),p.jsx(ho,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:q(e.onCloseAutoFocus,s=>{var a;s.preventDefault(),(a=n.triggerRef.current)==null||a.focus()}),onPointerDownOutside:q(e.onPointerDownOutside,s=>{const a=s.detail.originalEvent,i=a.button===0&&a.ctrlKey===!0;(a.button===2||i)&&s.preventDefault()}),onFocusOutside:q(e.onFocusOutside,s=>s.preventDefault())})}),Il=l.forwardRef((e,t)=>{const n=fe(Fe,e.__scopeDialog),r=l.useRef(!1),o=l.useRef(!1);return p.jsx(ho,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{var a,i;(a=e.onCloseAutoFocus)==null||a.call(e,s),s.defaultPrevented||(r.current||(i=n.triggerRef.current)==null||i.focus(),s.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:s=>{var c,u;(c=e.onInteractOutside)==null||c.call(e,s),s.defaultPrevented||(r.current=!0,s.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const a=s.target;((u=n.triggerRef.current)==null?void 0:u.contains(a))&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&o.current&&s.preventDefault()}})}),ho=l.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:s,...a}=e,i=fe(Fe,n),c=l.useRef(null),u=se(t,c);return wn(),p.jsxs(p.Fragment,{children:[p.jsx(Nt,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:s,children:p.jsx(ft,{role:"dialog",id:i.contentId,"aria-describedby":i.descriptionId,"aria-labelledby":i.titleId,"data-state":Nn(i.open),...a,ref:u,onDismiss:()=>i.onOpenChange(!1)})}),p.jsxs(p.Fragment,{children:[p.jsx(jl,{titleId:i.titleId}),p.jsx(Dl,{contentRef:c,descriptionId:i.descriptionId})]})]})}),Tn="DialogTitle",vo=l.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=fe(Tn,n);return p.jsx(K.h2,{id:o.titleId,...r,ref:t})});vo.displayName=Tn;var bo="DialogDescription",xo=l.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=fe(bo,n);return p.jsx(K.p,{id:o.descriptionId,...r,ref:t})});xo.displayName=bo;var yo="DialogClose",wo=l.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=fe(yo,n);return p.jsx(K.button,{type:"button",...r,ref:t,onClick:q(e.onClick,()=>o.onOpenChange(!1))})});wo.displayName=yo;function Nn(e){return e?"open":"closed"}var Co="DialogTitleWarning",[Uf,So]=gi(Co,{contentName:Fe,titleName:Tn,docsSlug:"dialog"}),jl=({titleId:e})=>{const t=So(Co),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 u.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},Ds="DialogDescriptionWarning",Ms=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Sr(Ds).contentName}}.`;return u.useEffect(()=>{var i;const o=(i=e.current)==null?void 0:i.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},Ls=dr,js=mr,Is=gr,Fs=hr,$s=vr,zs=yr,Ws=xr,Rr=Cr;/**
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},Ml="DialogDescriptionWarning",Dl=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${So(Ml).contentName}}.`;return l.useEffect(()=>{var s;const o=(s=e.current)==null?void 0:s.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},Eo=lo,Ll=uo,ko=po,Po=mo,Ro=go,$l=vo,Fl=xo,Ao=wo;/**
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 Bs=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Vs=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,r)=>r?r.toUpperCase():n.toLowerCase()),Ar=e=>{const t=Vs(e);return t.charAt(0).toUpperCase()+t.slice(1)},Pr=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim(),Hs=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};/**
71
+ */const zl=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Vl=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,r)=>r?r.toUpperCase():n.toLowerCase()),To=e=>{const t=Vl(e);return t.charAt(0).toUpperCase()+t.slice(1)},No=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim(),Wl=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 Us={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"};/**
76
+ */var Bl={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 Gs=ee.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:i,iconNode:s,...a},c)=>ee.createElement("svg",{ref:c,...Us,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:Pr("lucide",o),...!i&&!Hs(a)&&{"aria-hidden":"true"},...a},[...s.map(([l,d])=>ee.createElement(l,d)),...Array.isArray(i)?i:[i]]));/**
81
+ */const Hl=re.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:s,iconNode:a,...i},c)=>re.createElement("svg",{ref:c,...Bl,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:No("lucide",o),...!s&&!Wl(i)&&{"aria-hidden":"true"},...i},[...a.map(([u,d])=>re.createElement(u,d)),...Array.isArray(s)?s:[s]]));/**
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 Ys=(e,t)=>{const n=ee.forwardRef(({className:r,...o},i)=>ee.createElement(Gs,{ref:i,iconNode:t,className:Pr(`lucide-${Bs(Ar(e))}`,`lucide-${e}`,r),...o}));return n.displayName=Ar(e),n};/**
86
+ */const Se=(e,t)=>{const n=re.forwardRef(({className:r,...o},s)=>re.createElement(Hl,{ref:s,iconNode:t,className:No(`lucide-${zl(To(e))}`,`lucide-${e}`,r),...o}));return n.displayName=To(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 Xs=Ys("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);function qs({...e}){return w.jsx(Ls,{"data-slot":"dialog",...e})}function Ks({...e}){return w.jsx(js,{"data-slot":"dialog-trigger",...e})}function Tr({...e}){return w.jsx(Is,{"data-slot":"dialog-portal",...e})}function Zs({...e}){return w.jsx(Rr,{"data-slot":"dialog-close",...e})}function Or({className:e,...t}){return w.jsx(Fs,{"data-slot":"dialog-overlay",className:ce("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 Js({className:e,children:t,showCloseButton:n=!0,...r}){return w.jsxs(Tr,{"data-slot":"dialog-portal",children:[w.jsx(Or,{}),w.jsxs($s,{"data-slot":"dialog-content",className:ce("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&&w.jsxs(Rr,{"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:[w.jsx(Xs,{}),w.jsx("span",{className:"sr-only",children:"Close"})]})]})]})}function Qs({className:e,...t}){return w.jsx("div",{"data-slot":"dialog-header",className:ce("flex flex-col gap-2 text-center sm:text-left",e),...t})}function ea({className:e,...t}){return w.jsx("div",{"data-slot":"dialog-footer",className:ce("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",e),...t})}function ta({className:e,...t}){return w.jsx(zs,{"data-slot":"dialog-title",className:ce("text-lg leading-none font-semibold ",e),...t})}function na({className:e,...t}){return w.jsx(Ws,{"data-slot":"dialog-description",className:ce("text-muted-foreground text-sm",e),...t})}const ra=In("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 oa({className:e,variant:t,type:n="filled",asChild:r=!1,children:o,...i}){const s=r?vn:"span";return w.jsx(s,{"data-slot":"badge",className:ce(ra({variant:t,type:n}),e),...i,children:o})}const ia=["top","right","bottom","left"],we=Math.min,te=Math.max,ut=Math.round,dt=Math.floor,ue=e=>({x:e,y:e}),sa={left:"right",right:"left",bottom:"top",top:"bottom"},aa={start:"end",end:"start"};function Gt(e,t,n){return te(e,we(t,n))}function ge(e,t){return typeof e=="function"?e(t):e}function he(e){return e.split("-")[0]}function Ie(e){return e.split("-")[1]}function Yt(e){return e==="x"?"y":"x"}function Xt(e){return e==="y"?"height":"width"}const ca=new Set(["top","bottom"]);function de(e){return ca.has(he(e))?"y":"x"}function qt(e){return Yt(de(e))}function la(e,t,n){n===void 0&&(n=!1);const r=Ie(e),o=qt(e),i=Xt(o);let s=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=ft(s)),[s,ft(s)]}function ua(e){const t=ft(e);return[Kt(e),t,Kt(t)]}function Kt(e){return e.replace(/start|end/g,t=>aa[t])}const Nr=["left","right"],_r=["right","left"],da=["top","bottom"],fa=["bottom","top"];function ma(e,t,n){switch(e){case"top":case"bottom":return n?t?_r:Nr:t?Nr:_r;case"left":case"right":return t?da:fa;default:return[]}}function pa(e,t,n,r){const o=Ie(e);let i=ma(he(e),n==="start",r);return o&&(i=i.map(s=>s+"-"+o),t&&(i=i.concat(i.map(Kt)))),i}function ft(e){return e.replace(/left|right|bottom|top/g,t=>sa[t])}function ga(e){return{top:0,right:0,bottom:0,left:0,...e}}function Dr(e){return typeof e!="number"?ga(e):{top:e,right:e,bottom:e,left:e}}function mt(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 Mr(e,t,n){let{reference:r,floating:o}=e;const i=de(t),s=qt(t),a=Xt(s),c=he(t),l=i==="y",d=r.x+r.width/2-o.width/2,f=r.y+r.height/2-o.height/2,g=r[a]/2-o[a]/2;let p;switch(c){case"top":p={x:d,y:r.y-o.height};break;case"bottom":p={x:d,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:f};break;case"left":p={x:r.x-o.width,y:f};break;default:p={x:r.x,y:r.y}}switch(Ie(t)){case"start":p[s]-=g*(n&&l?-1:1);break;case"end":p[s]+=g*(n&&l?-1:1);break}return p}const ha=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:s}=n,a=i.filter(Boolean),c=await(s.isRTL==null?void 0:s.isRTL(t));let l=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:d,y:f}=Mr(l,r,c),g=r,p={},h=0;for(let m=0;m<a.length;m++){const{name:v,fn:y}=a[m],{x:E,y:k,data:C,reset:S}=await y({x:d,y:f,initialPlacement:r,placement:g,strategy:o,middlewareData:p,rects:l,platform:s,elements:{reference:e,floating:t}});d=E??d,f=k??f,p={...p,[v]:{...p[v],...C}},S&&h<=50&&(h++,typeof S=="object"&&(S.placement&&(g=S.placement),S.rects&&(l=S.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:o}):S.rects),{x:d,y:f}=Mr(l,g,c)),m=-1)}return{x:d,y:f,placement:g,strategy:o,middlewareData:p}};async function Ue(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:i,rects:s,elements:a,strategy:c}=e,{boundary:l="clippingAncestors",rootBoundary:d="viewport",elementContext:f="floating",altBoundary:g=!1,padding:p=0}=ge(t,e),h=Dr(p),v=a[g?f==="floating"?"reference":"floating":f],y=mt(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(v)))==null||n?v:v.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(a.floating)),boundary:l,rootBoundary:d,strategy:c})),E=f==="floating"?{x:r,y:o,width:s.floating.width,height:s.floating.height}:s.reference,k=await(i.getOffsetParent==null?void 0:i.getOffsetParent(a.floating)),C=await(i.isElement==null?void 0:i.isElement(k))?await(i.getScale==null?void 0:i.getScale(k))||{x:1,y:1}:{x:1,y:1},S=mt(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:E,offsetParent:k,strategy:c}):E);return{top:(y.top-S.top+h.top)/C.y,bottom:(S.bottom-y.bottom+h.bottom)/C.y,left:(y.left-S.left+h.left)/C.x,right:(S.right-y.right+h.right)/C.x}}const va=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:s,elements:a,middlewareData:c}=t,{element:l,padding:d=0}=ge(e,t)||{};if(l==null)return{};const f=Dr(d),g={x:n,y:r},p=qt(o),h=Xt(p),m=await s.getDimensions(l),v=p==="y",y=v?"top":"left",E=v?"bottom":"right",k=v?"clientHeight":"clientWidth",C=i.reference[h]+i.reference[p]-g[p]-i.floating[h],S=g[p]-i.reference[p],O=await(s.getOffsetParent==null?void 0:s.getOffsetParent(l));let T=O?O[k]:0;(!T||!await(s.isElement==null?void 0:s.isElement(O)))&&(T=a.floating[k]||i.floating[h]);const R=C/2-S/2,M=T/2-m[h]/2-1,$=we(f[y],M),G=we(f[E],M),H=$,B=T-m[h]-G,I=T/2-m[h]/2+R,U=Gt(H,I,B),L=!c.arrow&&Ie(o)!=null&&I!==U&&i.reference[h]/2-(I<H?$:G)-m[h]/2<0,j=L?I<H?I-H:I-B:0;return{[p]:g[p]+j,data:{[p]:U,centerOffset:I-U-j,...L&&{alignmentOffset:j}},reset:L}}}),ba=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:s,initialPlacement:a,platform:c,elements:l}=t,{mainAxis:d=!0,crossAxis:f=!0,fallbackPlacements:g,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:m=!0,...v}=ge(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const y=he(o),E=de(a),k=he(a)===a,C=await(c.isRTL==null?void 0:c.isRTL(l.floating)),S=g||(k||!m?[ft(a)]:ua(a)),O=h!=="none";!g&&O&&S.push(...pa(a,m,h,C));const T=[a,...S],R=await Ue(t,v),M=[];let $=((r=i.flip)==null?void 0:r.overflows)||[];if(d&&M.push(R[y]),f){const I=la(o,s,C);M.push(R[I[0]],R[I[1]])}if($=[...$,{placement:o,overflows:M}],!M.every(I=>I<=0)){var G,H;const I=(((G=i.flip)==null?void 0:G.index)||0)+1,U=T[I];if(U&&(!(f==="alignment"?E!==de(U):!1)||$.every(x=>de(x.placement)===E?x.overflows[0]>0:!0)))return{data:{index:I,overflows:$},reset:{placement:U}};let L=(H=$.filter(j=>j.overflows[0]<=0).sort((j,x)=>j.overflows[1]-x.overflows[1])[0])==null?void 0:H.placement;if(!L)switch(p){case"bestFit":{var B;const j=(B=$.filter(x=>{if(O){const Y=de(x.placement);return Y===E||Y==="y"}return!0}).map(x=>[x.placement,x.overflows.filter(Y=>Y>0).reduce((Y,b)=>Y+b,0)]).sort((x,Y)=>x[1]-Y[1])[0])==null?void 0:B[0];j&&(L=j);break}case"initialPlacement":L=a;break}if(o!==L)return{reset:{placement:L}}}return{}}}};function Lr(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function jr(e){return ia.some(t=>e[t]>=0)}const ya=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=ge(e,t);switch(r){case"referenceHidden":{const i=await Ue(t,{...o,elementContext:"reference"}),s=Lr(i,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:jr(s)}}}case"escaped":{const i=await Ue(t,{...o,altBoundary:!0}),s=Lr(i,n.floating);return{data:{escapedOffsets:s,escaped:jr(s)}}}default:return{}}}}},Ir=new Set(["left","top"]);async function wa(e,t){const{placement:n,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),s=he(n),a=Ie(n),c=de(n)==="y",l=Ir.has(s)?-1:1,d=i&&c?-1:1,f=ge(t,e);let{mainAxis:g,crossAxis:p,alignmentAxis:h}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return a&&typeof h=="number"&&(p=a==="end"?h*-1:h),c?{x:p*d,y:g*l}:{x:g*l,y:p*d}}const xa=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:s,middlewareData:a}=t,c=await wa(t,e);return s===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:o+c.x,y:i+c.y,data:{...c,placement:s}}}}},Ea=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:a={fn:v=>{let{x:y,y:E}=v;return{x:y,y:E}}},...c}=ge(e,t),l={x:n,y:r},d=await Ue(t,c),f=de(he(o)),g=Yt(f);let p=l[g],h=l[f];if(i){const v=g==="y"?"top":"left",y=g==="y"?"bottom":"right",E=p+d[v],k=p-d[y];p=Gt(E,p,k)}if(s){const v=f==="y"?"top":"left",y=f==="y"?"bottom":"right",E=h+d[v],k=h-d[y];h=Gt(E,h,k)}const m=a.fn({...t,[g]:p,[f]:h});return{...m,data:{x:m.x-n,y:m.y-r,enabled:{[g]:i,[f]:s}}}}}},Ca=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:s}=t,{offset:a=0,mainAxis:c=!0,crossAxis:l=!0}=ge(e,t),d={x:n,y:r},f=de(o),g=Yt(f);let p=d[g],h=d[f];const m=ge(a,t),v=typeof m=="number"?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(c){const k=g==="y"?"height":"width",C=i.reference[g]-i.floating[k]+v.mainAxis,S=i.reference[g]+i.reference[k]-v.mainAxis;p<C?p=C:p>S&&(p=S)}if(l){var y,E;const k=g==="y"?"width":"height",C=Ir.has(he(o)),S=i.reference[f]-i.floating[k]+(C&&((y=s.offset)==null?void 0:y[f])||0)+(C?0:v.crossAxis),O=i.reference[f]+i.reference[k]+(C?0:((E=s.offset)==null?void 0:E[f])||0)-(C?v.crossAxis:0);h<S?h=S:h>O&&(h=O)}return{[g]:p,[f]:h}}}},ka=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:i,platform:s,elements:a}=t,{apply:c=()=>{},...l}=ge(e,t),d=await Ue(t,l),f=he(o),g=Ie(o),p=de(o)==="y",{width:h,height:m}=i.floating;let v,y;f==="top"||f==="bottom"?(v=f,y=g===(await(s.isRTL==null?void 0:s.isRTL(a.floating))?"start":"end")?"left":"right"):(y=f,v=g==="end"?"top":"bottom");const E=m-d.top-d.bottom,k=h-d.left-d.right,C=we(m-d[v],E),S=we(h-d[y],k),O=!t.middlewareData.shift;let T=C,R=S;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(R=k),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(T=E),O&&!g){const $=te(d.left,0),G=te(d.right,0),H=te(d.top,0),B=te(d.bottom,0);p?R=h-2*($!==0||G!==0?$+G:te(d.left,d.right)):T=m-2*(H!==0||B!==0?H+B:te(d.top,d.bottom))}await c({...t,availableWidth:R,availableHeight:T});const M=await s.getDimensions(a.floating);return h!==M.width||m!==M.height?{reset:{rects:!0}}:{}}}};function pt(){return typeof window<"u"}function Fe(e){return Fr(e)?(e.nodeName||"").toLowerCase():"#document"}function ne(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function fe(e){var t;return(t=(Fr(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Fr(e){return pt()?e instanceof Node||e instanceof ne(e).Node:!1}function ie(e){return pt()?e instanceof Element||e instanceof ne(e).Element:!1}function me(e){return pt()?e instanceof HTMLElement||e instanceof ne(e).HTMLElement:!1}function $r(e){return!pt()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ne(e).ShadowRoot}const Sa=new Set(["inline","contents"]);function Ge(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=se(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!Sa.has(o)}const Ra=new Set(["table","td","th"]);function Aa(e){return Ra.has(Fe(e))}const Pa=[":popover-open",":modal"];function gt(e){return Pa.some(t=>{try{return e.matches(t)}catch{return!1}})}const Ta=["transform","translate","scale","rotate","perspective"],Oa=["transform","translate","scale","rotate","perspective","filter"],Na=["paint","layout","strict","content"];function Zt(e){const t=Jt(),n=ie(e)?se(e):e;return Ta.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)||Oa.some(r=>(n.willChange||"").includes(r))||Na.some(r=>(n.contain||"").includes(r))}function _a(e){let t=xe(e);for(;me(t)&&!$e(t);){if(Zt(t))return t;if(gt(t))return null;t=xe(t)}return null}function Jt(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const Da=new Set(["html","body","#document"]);function $e(e){return Da.has(Fe(e))}function se(e){return ne(e).getComputedStyle(e)}function ht(e){return ie(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function xe(e){if(Fe(e)==="html")return e;const t=e.assignedSlot||e.parentNode||$r(e)&&e.host||fe(e);return $r(t)?t.host:t}function zr(e){const t=xe(e);return $e(t)?e.ownerDocument?e.ownerDocument.body:e.body:me(t)&&Ge(t)?t:zr(t)}function Ye(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=zr(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),s=ne(o);if(i){const a=Qt(s);return t.concat(s,s.visualViewport||[],Ge(o)?o:[],a&&n?Ye(a):[])}return t.concat(o,Ye(o,[],n))}function Qt(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Wr(e){const t=se(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=me(e),i=o?e.offsetWidth:n,s=o?e.offsetHeight:r,a=ut(n)!==i||ut(r)!==s;return a&&(n=i,r=s),{width:n,height:r,$:a}}function en(e){return ie(e)?e:e.contextElement}function ze(e){const t=en(e);if(!me(t))return ue(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=Wr(t);let s=(i?ut(n.width):n.width)/r,a=(i?ut(n.height):n.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const Ma=ue(0);function Br(e){const t=ne(e);return!Jt()||!t.visualViewport?Ma:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function La(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==ne(e)?!1:t}function Re(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=en(e);let s=ue(1);t&&(r?ie(r)&&(s=ze(r)):s=ze(e));const a=La(i,n,r)?Br(i):ue(0);let c=(o.left+a.x)/s.x,l=(o.top+a.y)/s.y,d=o.width/s.x,f=o.height/s.y;if(i){const g=ne(i),p=r&&ie(r)?ne(r):r;let h=g,m=Qt(h);for(;m&&r&&p!==h;){const v=ze(m),y=m.getBoundingClientRect(),E=se(m),k=y.left+(m.clientLeft+parseFloat(E.paddingLeft))*v.x,C=y.top+(m.clientTop+parseFloat(E.paddingTop))*v.y;c*=v.x,l*=v.y,d*=v.x,f*=v.y,c+=k,l+=C,h=ne(m),m=Qt(h)}}return mt({width:d,height:f,x:c,y:l})}function vt(e,t){const n=ht(e).scrollLeft;return t?t.left+n:Re(fe(e)).left+n}function Vr(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-vt(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function ja(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i=o==="fixed",s=fe(r),a=t?gt(t.floating):!1;if(r===s||a&&i)return n;let c={scrollLeft:0,scrollTop:0},l=ue(1);const d=ue(0),f=me(r);if((f||!f&&!i)&&((Fe(r)!=="body"||Ge(s))&&(c=ht(r)),me(r))){const p=Re(r);l=ze(r),d.x=p.x+r.clientLeft,d.y=p.y+r.clientTop}const g=s&&!f&&!i?Vr(s,c):ue(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+d.x+g.x,y:n.y*l.y-c.scrollTop*l.y+d.y+g.y}}function Ia(e){return Array.from(e.getClientRects())}function Fa(e){const t=fe(e),n=ht(e),r=e.ownerDocument.body,o=te(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=te(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+vt(e);const a=-n.scrollTop;return se(r).direction==="rtl"&&(s+=te(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:s,y:a}}const Hr=25;function $a(e,t){const n=ne(e),r=fe(e),o=n.visualViewport;let i=r.clientWidth,s=r.clientHeight,a=0,c=0;if(o){i=o.width,s=o.height;const d=Jt();(!d||d&&t==="fixed")&&(a=o.offsetLeft,c=o.offsetTop)}const l=vt(r);if(l<=0){const d=r.ownerDocument,f=d.body,g=getComputedStyle(f),p=d.compatMode==="CSS1Compat"&&parseFloat(g.marginLeft)+parseFloat(g.marginRight)||0,h=Math.abs(r.clientWidth-f.clientWidth-p);h<=Hr&&(i-=h)}else l<=Hr&&(i+=l);return{width:i,height:s,x:a,y:c}}const za=new Set(["absolute","fixed"]);function Wa(e,t){const n=Re(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=me(e)?ze(e):ue(1),s=e.clientWidth*i.x,a=e.clientHeight*i.y,c=o*i.x,l=r*i.y;return{width:s,height:a,x:c,y:l}}function Ur(e,t,n){let r;if(t==="viewport")r=$a(e,n);else if(t==="document")r=Fa(fe(e));else if(ie(t))r=Wa(t,n);else{const o=Br(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return mt(r)}function Gr(e,t){const n=xe(e);return n===t||!ie(n)||$e(n)?!1:se(n).position==="fixed"||Gr(n,t)}function Ba(e,t){const n=t.get(e);if(n)return n;let r=Ye(e,[],!1).filter(a=>ie(a)&&Fe(a)!=="body"),o=null;const i=se(e).position==="fixed";let s=i?xe(e):e;for(;ie(s)&&!$e(s);){const a=se(s),c=Zt(s);!c&&a.position==="fixed"&&(o=null),(i?!c&&!o:!c&&a.position==="static"&&!!o&&za.has(o.position)||Ge(s)&&!c&&Gr(e,s))?r=r.filter(d=>d!==s):o=a,s=xe(s)}return t.set(e,r),r}function Va(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const s=[...n==="clippingAncestors"?gt(t)?[]:Ba(t,this._c):[].concat(n),r],a=s[0],c=s.reduce((l,d)=>{const f=Ur(t,d,o);return l.top=te(f.top,l.top),l.right=we(f.right,l.right),l.bottom=we(f.bottom,l.bottom),l.left=te(f.left,l.left),l},Ur(t,a,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function Ha(e){const{width:t,height:n}=Wr(e);return{width:t,height:n}}function Ua(e,t,n){const r=me(t),o=fe(t),i=n==="fixed",s=Re(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const c=ue(0);function l(){c.x=vt(o)}if(r||!r&&!i)if((Fe(t)!=="body"||Ge(o))&&(a=ht(t)),r){const p=Re(t,!0,i,t);c.x=p.x+t.clientLeft,c.y=p.y+t.clientTop}else o&&l();i&&!r&&o&&l();const d=o&&!r&&!i?Vr(o,a):ue(0),f=s.left+a.scrollLeft-c.x-d.x,g=s.top+a.scrollTop-c.y-d.y;return{x:f,y:g,width:s.width,height:s.height}}function tn(e){return se(e).position==="static"}function Yr(e,t){if(!me(e)||se(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return fe(e)===n&&(n=n.ownerDocument.body),n}function Xr(e,t){const n=ne(e);if(gt(e))return n;if(!me(e)){let o=xe(e);for(;o&&!$e(o);){if(ie(o)&&!tn(o))return o;o=xe(o)}return n}let r=Yr(e,t);for(;r&&Aa(r)&&tn(r);)r=Yr(r,t);return r&&$e(r)&&tn(r)&&!Zt(r)?n:r||_a(e)||n}const Ga=async function(e){const t=this.getOffsetParent||Xr,n=this.getDimensions,r=await n(e.floating);return{reference:Ua(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Ya(e){return se(e).direction==="rtl"}const Xa={convertOffsetParentRelativeRectToViewportRelativeRect:ja,getDocumentElement:fe,getClippingRect:Va,getOffsetParent:Xr,getElementRects:Ga,getClientRects:Ia,getDimensions:Ha,getScale:ze,isElement:ie,isRTL:Ya};function qr(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function qa(e,t){let n=null,r;const o=fe(e);function i(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function s(a,c){a===void 0&&(a=!1),c===void 0&&(c=1),i();const l=e.getBoundingClientRect(),{left:d,top:f,width:g,height:p}=l;if(a||t(),!g||!p)return;const h=dt(f),m=dt(o.clientWidth-(d+g)),v=dt(o.clientHeight-(f+p)),y=dt(d),k={rootMargin:-h+"px "+-m+"px "+-v+"px "+-y+"px",threshold:te(0,we(1,c))||1};let C=!0;function S(O){const T=O[0].intersectionRatio;if(T!==c){if(!C)return s();T?s(!1,T):r=setTimeout(()=>{s(!1,1e-7)},1e3)}T===1&&!qr(l,e.getBoundingClientRect())&&s(),C=!1}try{n=new IntersectionObserver(S,{...k,root:o.ownerDocument})}catch{n=new IntersectionObserver(S,k)}n.observe(e)}return s(!0),i}function Ka(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:c=!1}=r,l=en(e),d=o||i?[...l?Ye(l):[],...Ye(t)]:[];d.forEach(y=>{o&&y.addEventListener("scroll",n,{passive:!0}),i&&y.addEventListener("resize",n)});const f=l&&a?qa(l,n):null;let g=-1,p=null;s&&(p=new ResizeObserver(y=>{let[E]=y;E&&E.target===l&&p&&(p.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var k;(k=p)==null||k.observe(t)})),n()}),l&&!c&&p.observe(l),p.observe(t));let h,m=c?Re(e):null;c&&v();function v(){const y=Re(e);m&&!qr(m,y)&&n(),m=y,h=requestAnimationFrame(v)}return n(),()=>{var y;d.forEach(E=>{o&&E.removeEventListener("scroll",n),i&&E.removeEventListener("resize",n)}),f==null||f(),(y=p)==null||y.disconnect(),p=null,c&&cancelAnimationFrame(h)}}const Za=xa,Ja=Ea,Qa=ba,ec=ka,tc=ya,Kr=va,nc=Ca,rc=(e,t,n)=>{const r=new Map,o={platform:Xa,...n},i={...o.platform,_c:r};return ha(e,t,{...o,platform:i})};var oc=typeof document<"u",ic=function(){},bt=oc?ee.useLayoutEffect:ic;function yt(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(!yt(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 i=o[r];if(!(i==="_owner"&&e.$$typeof)&&!yt(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function Zr(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Jr(e,t){const n=Zr(e);return Math.round(t*n)/n}function nn(e){const t=u.useRef(e);return bt(()=>{t.current=e}),t}function sc(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:s}={},transform:a=!0,whileElementsMounted:c,open:l}=e,[d,f]=u.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[g,p]=u.useState(r);yt(g,r)||p(r);const[h,m]=u.useState(null),[v,y]=u.useState(null),E=u.useCallback(x=>{x!==O.current&&(O.current=x,m(x))},[]),k=u.useCallback(x=>{x!==T.current&&(T.current=x,y(x))},[]),C=i||h,S=s||v,O=u.useRef(null),T=u.useRef(null),R=u.useRef(d),M=c!=null,$=nn(c),G=nn(o),H=nn(l),B=u.useCallback(()=>{if(!O.current||!T.current)return;const x={placement:t,strategy:n,middleware:g};G.current&&(x.platform=G.current),rc(O.current,T.current,x).then(Y=>{const b={...Y,isPositioned:H.current!==!1};I.current&&!yt(R.current,b)&&(R.current=b,fn.flushSync(()=>{f(b)}))})},[g,t,n,G,H]);bt(()=>{l===!1&&R.current.isPositioned&&(R.current.isPositioned=!1,f(x=>({...x,isPositioned:!1})))},[l]);const I=u.useRef(!1);bt(()=>(I.current=!0,()=>{I.current=!1}),[]),bt(()=>{if(C&&(O.current=C),S&&(T.current=S),C&&S){if($.current)return $.current(C,S,B);B()}},[C,S,B,$,M]);const U=u.useMemo(()=>({reference:O,floating:T,setReference:E,setFloating:k}),[E,k]),L=u.useMemo(()=>({reference:C,floating:S}),[C,S]),j=u.useMemo(()=>{const x={position:n,left:0,top:0};if(!L.floating)return x;const Y=Jr(L.floating,d.x),b=Jr(L.floating,d.y);return a?{...x,transform:"translate("+Y+"px, "+b+"px)",...Zr(L.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:Y,top:b}},[n,a,L.floating,d.x,d.y]);return u.useMemo(()=>({...d,update:B,refs:U,elements:L,floatingStyles:j}),[d,B,U,L,j])}const ac=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?Kr({element:r.current,padding:o}).fn(n):{}:r?Kr({element:r,padding:o}).fn(n):{}}}},cc=(e,t)=>({...Za(e),options:[e,t]}),lc=(e,t)=>({...Ja(e),options:[e,t]}),uc=(e,t)=>({...nc(e),options:[e,t]}),dc=(e,t)=>({...Qa(e),options:[e,t]}),fc=(e,t)=>({...ec(e),options:[e,t]}),mc=(e,t)=>({...tc(e),options:[e,t]}),pc=(e,t)=>({...ac(e),options:[e,t]});var gc="Arrow",Qr=u.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...i}=e;return w.jsx(J.svg,{...i,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:w.jsx("polygon",{points:"0,0 30,0 15,10"})})});Qr.displayName=gc;var hc=Qr;function vc(e){const[t,n]=u.useState(void 0);return be(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const i=o[0];let s,a;if("borderBoxSize"in i){const c=i.borderBoxSize,l=Array.isArray(c)?c[0]:c;s=l.inlineSize,a=l.blockSize}else s=e.offsetWidth,a=e.offsetHeight;n({width:s,height:a})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var rn="Popper",[eo,to]=Nt(rn),[bc,no]=eo(rn),ro=e=>{const{__scopePopper:t,children:n}=e,[r,o]=u.useState(null);return w.jsx(bc,{scope:t,anchor:r,onAnchorChange:o,children:n})};ro.displayName=rn;var oo="PopperAnchor",io=u.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,i=no(oo,n),s=u.useRef(null),a=re(t,s),c=u.useRef(null);return u.useEffect(()=>{const l=c.current;c.current=(r==null?void 0:r.current)||s.current,l!==c.current&&i.onAnchorChange(c.current)}),r?null:w.jsx(J.div,{...o,ref:a})});io.displayName=oo;var on="PopperContent",[yc,wc]=eo(on),so=u.forwardRef((e,t)=>{var z,X,Q,ae,Ce,Ae;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:i="center",alignOffset:s=0,arrowPadding:a=0,avoidCollisions:c=!0,collisionBoundary:l=[],collisionPadding:d=0,sticky:f="partial",hideWhenDetached:g=!1,updatePositionStrategy:p="optimized",onPlaced:h,...m}=e,v=no(on,n),[y,E]=u.useState(null),k=re(t,Ke=>E(Ke)),[C,S]=u.useState(null),O=vc(C),T=(O==null?void 0:O.width)??0,R=(O==null?void 0:O.height)??0,M=r+(i!=="center"?"-"+i:""),$=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},G=Array.isArray(l)?l:[l],H=G.length>0,B={padding:$,boundary:G.filter(Ec),altBoundary:H},{refs:I,floatingStyles:U,placement:L,isPositioned:j,middlewareData:x}=sc({strategy:"fixed",placement:M,whileElementsMounted:(...Ke)=>Ka(...Ke,{animationFrame:p==="always"}),elements:{reference:v.anchor},middleware:[cc({mainAxis:o+R,alignmentAxis:s}),c&&lc({mainAxis:!0,crossAxis:!1,limiter:f==="partial"?uc():void 0,...B}),c&&dc({...B}),fc({...B,apply:({elements:Ke,rects:Eo,availableWidth:tl,availableHeight:nl})=>{const{width:rl,height:ol}=Eo.reference,Et=Ke.floating.style;Et.setProperty("--radix-popper-available-width",`${tl}px`),Et.setProperty("--radix-popper-available-height",`${nl}px`),Et.setProperty("--radix-popper-anchor-width",`${rl}px`),Et.setProperty("--radix-popper-anchor-height",`${ol}px`)}}),C&&pc({element:C,padding:a}),Cc({arrowWidth:T,arrowHeight:R}),g&&mc({strategy:"referenceHidden",...B})]}),[Y,b]=lo(L),N=Ne(h);be(()=>{j&&(N==null||N())},[j,N]);const F=(z=x.arrow)==null?void 0:z.x,D=(X=x.arrow)==null?void 0:X.y,V=((Q=x.arrow)==null?void 0:Q.centerOffset)!==0,[K,Ee]=u.useState();return be(()=>{y&&Ee(window.getComputedStyle(y).zIndex)},[y]),w.jsx("div",{ref:I.setFloating,"data-radix-popper-content-wrapper":"",style:{...U,transform:j?U.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:K,"--radix-popper-transform-origin":[(ae=x.transformOrigin)==null?void 0:ae.x,(Ce=x.transformOrigin)==null?void 0:Ce.y].join(" "),...((Ae=x.hide)==null?void 0:Ae.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:w.jsx(yc,{scope:n,placedSide:Y,onArrowChange:S,arrowX:F,arrowY:D,shouldHideArrow:V,children:w.jsx(J.div,{"data-side":Y,"data-align":b,...m,ref:k,style:{...m.style,animation:j?void 0:"none"}})})})});so.displayName=on;var ao="PopperArrow",xc={top:"bottom",right:"left",bottom:"top",left:"right"},co=u.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,i=wc(ao,r),s=xc[i.placedSide];return w.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:w.jsx(hc,{...o,ref:n,style:{...o.style,display:"block"}})})});co.displayName=ao;function Ec(e){return e!==null}var Cc=e=>({name:"transformOrigin",options:e,fn(t){var v,y,E;const{placement:n,rects:r,middlewareData:o}=t,s=((v=o.arrow)==null?void 0:v.centerOffset)!==0,a=s?0:e.arrowWidth,c=s?0:e.arrowHeight,[l,d]=lo(n),f={start:"0%",center:"50%",end:"100%"}[d],g=(((y=o.arrow)==null?void 0:y.x)??0)+a/2,p=(((E=o.arrow)==null?void 0:E.y)??0)+c/2;let h="",m="";return l==="bottom"?(h=s?f:`${g}px`,m=`${-c}px`):l==="top"?(h=s?f:`${g}px`,m=`${r.floating.height+c}px`):l==="right"?(h=`${-c}px`,m=s?f:`${p}px`):l==="left"&&(h=`${r.floating.width+c}px`,m=s?f:`${p}px`),{data:{x:h,y:m}}}});function lo(e){const[t,n="center"]=e.split("-");return[t,n]}var kc=ro,Sc=io,Rc=so,Ac=co,Pc=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"}),Tc="VisuallyHidden",uo=u.forwardRef((e,t)=>w.jsx(J.span,{...e,ref:t,style:{...Pc,...e.style}}));uo.displayName=Tc;var Oc=uo,[wt]=Nt("Tooltip",[to]),xt=to(),fo="TooltipProvider",Nc=700,sn="tooltip.open",[_c,an]=wt(fo),mo=e=>{const{__scopeTooltip:t,delayDuration:n=Nc,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:i}=e,s=u.useRef(!0),a=u.useRef(!1),c=u.useRef(0);return u.useEffect(()=>{const l=c.current;return()=>window.clearTimeout(l)},[]),w.jsx(_c,{scope:t,isOpenDelayedRef:s,delayDuration:n,onOpen:u.useCallback(()=>{window.clearTimeout(c.current),s.current=!1},[]),onClose:u.useCallback(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>s.current=!0,r)},[r]),isPointerInTransitRef:a,onPointerInTransitChange:u.useCallback(l=>{a.current=l},[]),disableHoverableContent:o,children:i})};mo.displayName=fo;var Xe="Tooltip",[Dc,qe]=wt(Xe),po=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o,onOpenChange:i,disableHoverableContent:s,delayDuration:a}=e,c=an(Xe,e.__scopeTooltip),l=xt(t),[d,f]=u.useState(null),g=Qe(),p=u.useRef(0),h=s??c.disableHoverableContent,m=a??c.delayDuration,v=u.useRef(!1),[y,E]=Fn({prop:r,defaultProp:o??!1,onChange:T=>{T?(c.onOpen(),document.dispatchEvent(new CustomEvent(sn))):c.onClose(),i==null||i(T)},caller:Xe}),k=u.useMemo(()=>y?v.current?"delayed-open":"instant-open":"closed",[y]),C=u.useCallback(()=>{window.clearTimeout(p.current),p.current=0,v.current=!1,E(!0)},[E]),S=u.useCallback(()=>{window.clearTimeout(p.current),p.current=0,E(!1)},[E]),O=u.useCallback(()=>{window.clearTimeout(p.current),p.current=window.setTimeout(()=>{v.current=!0,E(!0),p.current=0},m)},[m,E]);return u.useEffect(()=>()=>{p.current&&(window.clearTimeout(p.current),p.current=0)},[]),w.jsx(kc,{...l,children:w.jsx(Dc,{scope:t,contentId:g,open:y,stateAttribute:k,trigger:d,onTriggerChange:f,onTriggerEnter:u.useCallback(()=>{c.isOpenDelayedRef.current?O():C()},[c.isOpenDelayedRef,O,C]),onTriggerLeave:u.useCallback(()=>{h?S():(window.clearTimeout(p.current),p.current=0)},[S,h]),onOpen:C,onClose:S,disableHoverableContent:h,children:n})})};po.displayName=Xe;var cn="TooltipTrigger",go=u.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=qe(cn,n),i=an(cn,n),s=xt(n),a=u.useRef(null),c=re(t,a,o.onTriggerChange),l=u.useRef(!1),d=u.useRef(!1),f=u.useCallback(()=>l.current=!1,[]);return u.useEffect(()=>()=>document.removeEventListener("pointerup",f),[f]),w.jsx(Sc,{asChild:!0,...s,children:w.jsx(J.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:c,onPointerMove:Z(e.onPointerMove,g=>{g.pointerType!=="touch"&&!d.current&&!i.isPointerInTransitRef.current&&(o.onTriggerEnter(),d.current=!0)}),onPointerLeave:Z(e.onPointerLeave,()=>{o.onTriggerLeave(),d.current=!1}),onPointerDown:Z(e.onPointerDown,()=>{o.open&&o.onClose(),l.current=!0,document.addEventListener("pointerup",f,{once:!0})}),onFocus:Z(e.onFocus,()=>{l.current||o.onOpen()}),onBlur:Z(e.onBlur,o.onClose),onClick:Z(e.onClick,o.onClose)})})});go.displayName=cn;var ln="TooltipPortal",[Mc,Lc]=wt(ln,{forceMount:void 0}),ho=e=>{const{__scopeTooltip:t,forceMount:n,children:r,container:o}=e,i=qe(ln,t);return w.jsx(Mc,{scope:t,forceMount:n,children:w.jsx(_e,{present:n||i.open,children:w.jsx(jt,{asChild:!0,container:o,children:r})})})};ho.displayName=ln;var We="TooltipContent",vo=u.forwardRef((e,t)=>{const n=Lc(We,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...i}=e,s=qe(We,e.__scopeTooltip);return w.jsx(_e,{present:r||s.open,children:s.disableHoverableContent?w.jsx(bo,{side:o,...i,ref:t}):w.jsx(jc,{side:o,...i,ref:t})})}),jc=u.forwardRef((e,t)=>{const n=qe(We,e.__scopeTooltip),r=an(We,e.__scopeTooltip),o=u.useRef(null),i=re(t,o),[s,a]=u.useState(null),{trigger:c,onClose:l}=n,d=o.current,{onPointerInTransitChange:f}=r,g=u.useCallback(()=>{a(null),f(!1)},[f]),p=u.useCallback((h,m)=>{const v=h.currentTarget,y={x:h.clientX,y:h.clientY},E=zc(y,v.getBoundingClientRect()),k=Wc(y,E),C=Bc(m.getBoundingClientRect()),S=Hc([...k,...C]);a(S),f(!0)},[f]);return u.useEffect(()=>()=>g(),[g]),u.useEffect(()=>{if(c&&d){const h=v=>p(v,d),m=v=>p(v,c);return c.addEventListener("pointerleave",h),d.addEventListener("pointerleave",m),()=>{c.removeEventListener("pointerleave",h),d.removeEventListener("pointerleave",m)}}},[c,d,p,g]),u.useEffect(()=>{if(s){const h=m=>{const v=m.target,y={x:m.clientX,y:m.clientY},E=(c==null?void 0:c.contains(v))||(d==null?void 0:d.contains(v)),k=!Vc(y,s);E?g():k&&(g(),l())};return document.addEventListener("pointermove",h),()=>document.removeEventListener("pointermove",h)}},[c,d,s,l,g]),w.jsx(bo,{...e,ref:i})}),[Ic,Fc]=wt(Xe,{isInside:!1}),$c=Ro("TooltipContent"),bo=u.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:i,onPointerDownOutside:s,...a}=e,c=qe(We,n),l=xt(n),{onClose:d}=c;return u.useEffect(()=>(document.addEventListener(sn,d),()=>document.removeEventListener(sn,d)),[d]),u.useEffect(()=>{if(c.trigger){const f=g=>{const p=g.target;p!=null&&p.contains(c.trigger)&&d()};return window.addEventListener("scroll",f,{capture:!0}),()=>window.removeEventListener("scroll",f,{capture:!0})}},[c.trigger,d]),w.jsx(Dt,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:f=>f.preventDefault(),onDismiss:d,children:w.jsxs(Rc,{"data-state":c.stateAttribute,...l,...a,ref:t,style:{...a.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:[w.jsx($c,{children:r}),w.jsx(Ic,{scope:n,isInside:!0,children:w.jsx(Oc,{id:c.contentId,role:"tooltip",children:o||r})})]})})});vo.displayName=We;var yo="TooltipArrow",wo=u.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=xt(n);return Fc(yo,n).isInside?null:w.jsx(Ac,{...o,...r,ref:t})});wo.displayName=yo;function zc(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(n,r,o,i)){case i:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function Wc(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 Bc(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 Vc(e,t){const{x:n,y:r}=e;let o=!1;for(let i=0,s=t.length-1;i<t.length;s=i++){const a=t[i],c=t[s],l=a.x,d=a.y,f=c.x,g=c.y;d>r!=g>r&&n<(f-l)*(r-d)/(g-d)+l&&(o=!o)}return o}function Hc(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),Uc(t)}function Uc(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 i=t[t.length-1],s=t[t.length-2];if((i.x-s.x)*(o.y-s.y)>=(i.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 i=n[n.length-1],s=n[n.length-2];if((i.x-s.x)*(o.y-s.y)>=(i.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 Gc=mo,Yc=po,Xc=go,qc=ho,Kc=vo,Zc=wo;function xo({delayDuration:e=0,...t}){return w.jsx(Gc,{"data-slot":"tooltip-provider",delayDuration:e,...t})}function Jc({...e}){return w.jsx(xo,{children:w.jsx(Yc,{"data-slot":"tooltip",...e})})}function Qc({...e}){return w.jsx(Xc,{"data-slot":"tooltip-trigger",...e})}function el({className:e,sideOffset:t=0,children:n,...r}){return w.jsx(qc,{children:w.jsxs(Kc,{"data-slot":"tooltip-content",sideOffset:t,className:ce("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,w.jsx(Zc,{className:"bg-neutral-black-1 fill-foreground z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]"})]})})}W.Badge=oa,W.Button=ui,W.Dialog=qs,W.DialogClose=Zs,W.DialogContent=Js,W.DialogDescription=na,W.DialogFooter=ea,W.DialogHeader=Qs,W.DialogOverlay=Or,W.DialogPortal=Tr,W.DialogTitle=ta,W.DialogTrigger=Ks,W.Tooltip=Jc,W.TooltipContent=el,W.TooltipProvider=xo,W.TooltipTrigger=Qc,W.cn=ce,Object.defineProperty(W,Symbol.toStringTag,{value:"Module"})});
91
+ */const Ul=Se("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
92
+ * @license lucide-react v0.542.0 - ISC
93
+ *
94
+ * This source code is licensed under the ISC license.
95
+ * See the LICENSE file in the root directory of this source tree.
96
+ */const On=Se("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
97
+ * @license lucide-react v0.542.0 - ISC
98
+ *
99
+ * This source code is licensed under the ISC license.
100
+ * See the LICENSE file in the root directory of this source tree.
101
+ */const Gl=Se("chevron-up",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/**
102
+ * @license lucide-react v0.542.0 - ISC
103
+ *
104
+ * This source code is licensed under the ISC license.
105
+ * See the LICENSE file in the root directory of this source tree.
106
+ */const Yl=Se("circle-check",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
107
+ * @license lucide-react v0.542.0 - ISC
108
+ *
109
+ * This source code is licensed under the ISC license.
110
+ * See the LICENSE file in the root directory of this source tree.
111
+ */const Kl=Se("circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);/**
112
+ * @license lucide-react v0.542.0 - ISC
113
+ *
114
+ * This source code is licensed under the ISC license.
115
+ * See the LICENSE file in the root directory of this source tree.
116
+ */const Xl=Se("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"}]]);/**
117
+ * @license lucide-react v0.542.0 - ISC
118
+ *
119
+ * This source code is licensed under the ISC license.
120
+ * See the LICENSE file in the root directory of this source tree.
121
+ */const ql=Se("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"}]]);/**
122
+ * @license lucide-react v0.542.0 - ISC
123
+ *
124
+ * This source code is licensed under the ISC license.
125
+ * See the LICENSE file in the root directory of this source tree.
126
+ */const Oo=Se("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]);/**
127
+ * @license lucide-react v0.542.0 - ISC
128
+ *
129
+ * This source code is licensed under the ISC license.
130
+ * See the LICENSE file in the root directory of this source tree.
131
+ */const _o=Se("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);function Zl({...e}){return p.jsx(Eo,{"data-slot":"dialog",...e})}function Jl({...e}){return p.jsx(Ll,{"data-slot":"dialog-trigger",...e})}function Io({...e}){return p.jsx(ko,{"data-slot":"dialog-portal",...e})}function Ql({...e}){return p.jsx(Ao,{"data-slot":"dialog-close",...e})}function jo({className:e,...t}){return p.jsx(Po,{"data-slot":"dialog-overlay",className:oe("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 ec({className:e,children:t,showCloseButton:n=!0,...r}){return p.jsxs(Io,{"data-slot":"dialog-portal",children:[p.jsx(jo,{}),p.jsxs(Ro,{"data-slot":"dialog-content",className:oe("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&&p.jsxs(Ao,{"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:[p.jsx(_o,{}),p.jsx("span",{className:"sr-only",children:"Close"})]})]})]})}function tc({className:e,...t}){return p.jsx("div",{"data-slot":"dialog-header",className:oe("flex flex-col gap-2 text-center sm:text-left",e),...t})}function nc({className:e,...t}){return p.jsx("div",{"data-slot":"dialog-footer",className:oe("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",e),...t})}function rc({className:e,...t}){return p.jsx($l,{"data-slot":"dialog-title",className:oe("text-lg leading-none font-semibold ",e),...t})}function oc({className:e,...t}){return p.jsx(Fl,{"data-slot":"dialog-description",className:oe("text-muted-foreground text-sm",e),...t})}const sc=hn("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 Mo({className:e,variant:t,type:n="filled",asChild:r=!1,children:o,...s}){const a=r?br:"span";return p.jsx(a,{"data-slot":"badge",className:oe(sc({variant:t,type:n}),e),...s,children:o})}const ac=["top","right","bottom","left"],Te=Math.min,ce=Math.max,Wt=Math.round,Bt=Math.floor,ve=e=>({x:e,y:e}),ic={left:"right",right:"left",bottom:"top",top:"bottom"},lc={start:"end",end:"start"};function _n(e,t,n){return ce(e,Te(t,n))}function Ee(e,t){return typeof e=="function"?e(t):e}function ke(e){return e.split("-")[0]}function Je(e){return e.split("-")[1]}function In(e){return e==="x"?"y":"x"}function jn(e){return e==="y"?"height":"width"}const cc=new Set(["top","bottom"]);function be(e){return cc.has(ke(e))?"y":"x"}function Mn(e){return In(be(e))}function uc(e,t,n){n===void 0&&(n=!1);const r=Je(e),o=Mn(e),s=jn(o);let a=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(a=Ht(a)),[a,Ht(a)]}function dc(e){const t=Ht(e);return[Dn(e),t,Dn(t)]}function Dn(e){return e.replace(/start|end/g,t=>lc[t])}const Do=["left","right"],Lo=["right","left"],fc=["top","bottom"],pc=["bottom","top"];function mc(e,t,n){switch(e){case"top":case"bottom":return n?t?Lo:Do:t?Do:Lo;case"left":case"right":return t?fc:pc;default:return[]}}function gc(e,t,n,r){const o=Je(e);let s=mc(ke(e),n==="start",r);return o&&(s=s.map(a=>a+"-"+o),t&&(s=s.concat(s.map(Dn)))),s}function Ht(e){return e.replace(/left|right|bottom|top/g,t=>ic[t])}function hc(e){return{top:0,right:0,bottom:0,left:0,...e}}function $o(e){return typeof e!="number"?hc(e):{top:e,right:e,bottom:e,left:e}}function Ut(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 Fo(e,t,n){let{reference:r,floating:o}=e;const s=be(t),a=Mn(t),i=jn(a),c=ke(t),u=s==="y",d=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:d,y:r.y-o.height};break;case"bottom":h={x:d,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(Je(t)){case"start":h[a]-=g*(n&&u?-1:1);break;case"end":h[a]+=g*(n&&u?-1:1);break}return h}const vc=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:s=[],platform:a}=n,i=s.filter(Boolean),c=await(a.isRTL==null?void 0:a.isRTL(t));let u=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:d,y:f}=Fo(u,r,c),g=r,h={},v=0;for(let m=0;m<i.length;m++){const{name:b,fn:y}=i[m],{x,y:w,data:E,reset:P}=await y({x:d,y:f,initialPlacement:r,placement:g,strategy:o,middlewareData:h,rects:u,platform:a,elements:{reference:e,floating:t}});d=x??d,f=w??f,h={...h,[b]:{...h[b],...E}},P&&v<=50&&(v++,typeof P=="object"&&(P.placement&&(g=P.placement),P.rects&&(u=P.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:o}):P.rects),{x:d,y:f}=Fo(u,g,c)),m=-1)}return{x:d,y:f,placement:g,strategy:o,middlewareData:h}};async function mt(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:s,rects:a,elements:i,strategy:c}=e,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:f="floating",altBoundary:g=!1,padding:h=0}=Ee(t,e),v=$o(h),b=i[g?f==="floating"?"reference":"floating":f],y=Ut(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(b)))==null||n?b:b.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(i.floating)),boundary:u,rootBoundary:d,strategy:c})),x=f==="floating"?{x:r,y:o,width:a.floating.width,height:a.floating.height}:a.reference,w=await(s.getOffsetParent==null?void 0:s.getOffsetParent(i.floating)),E=await(s.isElement==null?void 0:s.isElement(w))?await(s.getScale==null?void 0:s.getScale(w))||{x:1,y:1}:{x:1,y:1},P=Ut(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:i,rect:x,offsetParent:w,strategy:c}):x);return{top:(y.top-P.top+v.top)/E.y,bottom:(P.bottom-y.bottom+v.bottom)/E.y,left:(y.left-P.left+v.left)/E.x,right:(P.right-y.right+v.right)/E.x}}const bc=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:s,platform:a,elements:i,middlewareData:c}=t,{element:u,padding:d=0}=Ee(e,t)||{};if(u==null)return{};const f=$o(d),g={x:n,y:r},h=Mn(o),v=jn(h),m=await a.getDimensions(u),b=h==="y",y=b?"top":"left",x=b?"bottom":"right",w=b?"clientHeight":"clientWidth",E=s.reference[v]+s.reference[h]-g[h]-s.floating[v],P=g[h]-s.reference[h],N=await(a.getOffsetParent==null?void 0:a.getOffsetParent(u));let R=N?N[w]:0;(!R||!await(a.isElement==null?void 0:a.isElement(N)))&&(R=i.floating[w]||s.floating[v]);const T=E/2-P/2,V=R/2-m[v]/2-1,G=Te(f[y],V),Z=Te(f[x],V),X=G,J=R-m[v]-Z,F=R/2-m[v]/2+T,Y=_n(X,F,J),$=!c.arrow&&Je(o)!=null&&F!==Y&&s.reference[v]/2-(F<X?G:Z)-m[v]/2<0,z=$?F<X?F-X:F-J:0;return{[h]:g[h]+z,data:{[h]:Y,centerOffset:F-Y-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:s,rects:a,initialPlacement:i,platform:c,elements:u}=t,{mainAxis:d=!0,crossAxis:f=!0,fallbackPlacements:g,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:m=!0,...b}=Ee(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const y=ke(o),x=be(i),w=ke(i)===i,E=await(c.isRTL==null?void 0:c.isRTL(u.floating)),P=g||(w||!m?[Ht(i)]:dc(i)),N=v!=="none";!g&&N&&P.push(...gc(i,m,v,E));const R=[i,...P],T=await mt(t,b),V=[];let G=((r=s.flip)==null?void 0:r.overflows)||[];if(d&&V.push(T[y]),f){const F=uc(o,a,E);V.push(T[F[0]],T[F[1]])}if(G=[...G,{placement:o,overflows:V}],!V.every(F=>F<=0)){var Z,X;const F=(((Z=s.flip)==null?void 0:Z.index)||0)+1,Y=R[F];if(Y&&(!(f==="alignment"?x!==be(Y):!1)||G.every(k=>be(k.placement)===x?k.overflows[0]>0:!0)))return{data:{index:F,overflows:G},reset:{placement:Y}};let $=(X=G.filter(z=>z.overflows[0]<=0).sort((z,k)=>z.overflows[1]-k.overflows[1])[0])==null?void 0:X.placement;if(!$)switch(h){case"bestFit":{var J;const z=(J=G.filter(k=>{if(N){const Q=be(k.placement);return Q===x||Q==="y"}return!0}).map(k=>[k.placement,k.overflows.filter(Q=>Q>0).reduce((Q,S)=>Q+S,0)]).sort((k,Q)=>k[1]-Q[1])[0])==null?void 0:J[0];z&&($=z);break}case"initialPlacement":$=i;break}if(o!==$)return{reset:{placement:$}}}return{}}}};function zo(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Vo(e){return ac.some(t=>e[t]>=0)}const yc=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=Ee(e,t);switch(r){case"referenceHidden":{const s=await mt(t,{...o,elementContext:"reference"}),a=zo(s,n.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:Vo(a)}}}case"escaped":{const s=await mt(t,{...o,altBoundary:!0}),a=zo(s,n.floating);return{data:{escapedOffsets:a,escaped:Vo(a)}}}default:return{}}}}},Wo=new Set(["left","top"]);async function wc(e,t){const{placement:n,platform:r,elements:o}=e,s=await(r.isRTL==null?void 0:r.isRTL(o.floating)),a=ke(n),i=Je(n),c=be(n)==="y",u=Wo.has(a)?-1:1,d=s&&c?-1:1,f=Ee(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*d,y:g*u}:{x:g*u,y:h*d}}const Cc=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:s,placement:a,middlewareData:i}=t,c=await wc(t,e);return a===((n=i.offset)==null?void 0:n.placement)&&(r=i.arrow)!=null&&r.alignmentOffset?{}:{x:o+c.x,y:s+c.y,data:{...c,placement:a}}}}},Sc=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:s=!0,crossAxis:a=!1,limiter:i={fn:b=>{let{x:y,y:x}=b;return{x:y,y:x}}},...c}=Ee(e,t),u={x:n,y:r},d=await mt(t,c),f=be(ke(o)),g=In(f);let h=u[g],v=u[f];if(s){const b=g==="y"?"top":"left",y=g==="y"?"bottom":"right",x=h+d[b],w=h-d[y];h=_n(x,h,w)}if(a){const b=f==="y"?"top":"left",y=f==="y"?"bottom":"right",x=v+d[b],w=v-d[y];v=_n(x,v,w)}const m=i.fn({...t,[g]:h,[f]:v});return{...m,data:{x:m.x-n,y:m.y-r,enabled:{[g]:s,[f]:a}}}}}},Ec=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:s,middlewareData:a}=t,{offset:i=0,mainAxis:c=!0,crossAxis:u=!0}=Ee(e,t),d={x:n,y:r},f=be(o),g=In(f);let h=d[g],v=d[f];const m=Ee(i,t),b=typeof m=="number"?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(c){const w=g==="y"?"height":"width",E=s.reference[g]-s.floating[w]+b.mainAxis,P=s.reference[g]+s.reference[w]-b.mainAxis;h<E?h=E:h>P&&(h=P)}if(u){var y,x;const w=g==="y"?"width":"height",E=Wo.has(ke(o)),P=s.reference[f]-s.floating[w]+(E&&((y=a.offset)==null?void 0:y[f])||0)+(E?0:b.crossAxis),N=s.reference[f]+s.reference[w]+(E?0:((x=a.offset)==null?void 0:x[f])||0)-(E?b.crossAxis:0);v<P?v=P:v>N&&(v=N)}return{[g]:h,[f]:v}}}},kc=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:s,platform:a,elements:i}=t,{apply:c=()=>{},...u}=Ee(e,t),d=await mt(t,u),f=ke(o),g=Je(o),h=be(o)==="y",{width:v,height:m}=s.floating;let b,y;f==="top"||f==="bottom"?(b=f,y=g===(await(a.isRTL==null?void 0:a.isRTL(i.floating))?"start":"end")?"left":"right"):(y=f,b=g==="end"?"top":"bottom");const x=m-d.top-d.bottom,w=v-d.left-d.right,E=Te(m-d[b],x),P=Te(v-d[y],w),N=!t.middlewareData.shift;let R=E,T=P;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(T=w),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(R=x),N&&!g){const G=ce(d.left,0),Z=ce(d.right,0),X=ce(d.top,0),J=ce(d.bottom,0);h?T=v-2*(G!==0||Z!==0?G+Z:ce(d.left,d.right)):R=m-2*(X!==0||J!==0?X+J:ce(d.top,d.bottom))}await c({...t,availableWidth:T,availableHeight:R});const V=await a.getDimensions(i.floating);return v!==V.width||m!==V.height?{reset:{rects:!0}}:{}}}};function Gt(){return typeof window<"u"}function Qe(e){return Bo(e)?(e.nodeName||"").toLowerCase():"#document"}function ue(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function xe(e){var t;return(t=(Bo(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Bo(e){return Gt()?e instanceof Node||e instanceof ue(e).Node:!1}function pe(e){return Gt()?e instanceof Element||e instanceof ue(e).Element:!1}function ye(e){return Gt()?e instanceof HTMLElement||e instanceof ue(e).HTMLElement:!1}function Ho(e){return!Gt()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ue(e).ShadowRoot}const Pc=new Set(["inline","contents"]);function gt(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=me(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!Pc.has(o)}const Rc=new Set(["table","td","th"]);function Ac(e){return Rc.has(Qe(e))}const Tc=[":popover-open",":modal"];function Yt(e){return Tc.some(t=>{try{return e.matches(t)}catch{return!1}})}const Nc=["transform","translate","scale","rotate","perspective"],Oc=["transform","translate","scale","rotate","perspective","filter"],_c=["paint","layout","strict","content"];function Ln(e){const t=$n(),n=pe(e)?me(e):e;return Nc.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)||Oc.some(r=>(n.willChange||"").includes(r))||_c.some(r=>(n.contain||"").includes(r))}function Ic(e){let t=Ne(e);for(;ye(t)&&!et(t);){if(Ln(t))return t;if(Yt(t))return null;t=Ne(t)}return null}function $n(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const jc=new Set(["html","body","#document"]);function et(e){return jc.has(Qe(e))}function me(e){return ue(e).getComputedStyle(e)}function Kt(e){return pe(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Ne(e){if(Qe(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Ho(e)&&e.host||xe(e);return Ho(t)?t.host:t}function Uo(e){const t=Ne(e);return et(t)?e.ownerDocument?e.ownerDocument.body:e.body:ye(t)&&gt(t)?t:Uo(t)}function ht(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=Uo(e),s=o===((r=e.ownerDocument)==null?void 0:r.body),a=ue(o);if(s){const i=Fn(a);return t.concat(a,a.visualViewport||[],gt(o)?o:[],i&&n?ht(i):[])}return t.concat(o,ht(o,[],n))}function Fn(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Go(e){const t=me(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=ye(e),s=o?e.offsetWidth:n,a=o?e.offsetHeight:r,i=Wt(n)!==s||Wt(r)!==a;return i&&(n=s,r=a),{width:n,height:r,$:i}}function zn(e){return pe(e)?e:e.contextElement}function tt(e){const t=zn(e);if(!ye(t))return ve(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:s}=Go(t);let a=(s?Wt(n.width):n.width)/r,i=(s?Wt(n.height):n.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!i||!Number.isFinite(i))&&(i=1),{x:a,y:i}}const Mc=ve(0);function Yo(e){const t=ue(e);return!$n()||!t.visualViewport?Mc:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Dc(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==ue(e)?!1:t}function ze(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),s=zn(e);let a=ve(1);t&&(r?pe(r)&&(a=tt(r)):a=tt(e));const i=Dc(s,n,r)?Yo(s):ve(0);let c=(o.left+i.x)/a.x,u=(o.top+i.y)/a.y,d=o.width/a.x,f=o.height/a.y;if(s){const g=ue(s),h=r&&pe(r)?ue(r):r;let v=g,m=Fn(v);for(;m&&r&&h!==v;){const b=tt(m),y=m.getBoundingClientRect(),x=me(m),w=y.left+(m.clientLeft+parseFloat(x.paddingLeft))*b.x,E=y.top+(m.clientTop+parseFloat(x.paddingTop))*b.y;c*=b.x,u*=b.y,d*=b.x,f*=b.y,c+=w,u+=E,v=ue(m),m=Fn(v)}}return Ut({width:d,height:f,x:c,y:u})}function Xt(e,t){const n=Kt(e).scrollLeft;return t?t.left+n:ze(xe(e)).left+n}function Ko(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 Lc(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const s=o==="fixed",a=xe(r),i=t?Yt(t.floating):!1;if(r===a||i&&s)return n;let c={scrollLeft:0,scrollTop:0},u=ve(1);const d=ve(0),f=ye(r);if((f||!f&&!s)&&((Qe(r)!=="body"||gt(a))&&(c=Kt(r)),ye(r))){const h=ze(r);u=tt(r),d.x=h.x+r.clientLeft,d.y=h.y+r.clientTop}const g=a&&!f&&!s?Ko(a,c):ve(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-c.scrollLeft*u.x+d.x+g.x,y:n.y*u.y-c.scrollTop*u.y+d.y+g.y}}function $c(e){return Array.from(e.getClientRects())}function Fc(e){const t=xe(e),n=Kt(e),r=e.ownerDocument.body,o=ce(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=ce(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+Xt(e);const i=-n.scrollTop;return me(r).direction==="rtl"&&(a+=ce(t.clientWidth,r.clientWidth)-o),{width:o,height:s,x:a,y:i}}const Xo=25;function zc(e,t){const n=ue(e),r=xe(e),o=n.visualViewport;let s=r.clientWidth,a=r.clientHeight,i=0,c=0;if(o){s=o.width,a=o.height;const d=$n();(!d||d&&t==="fixed")&&(i=o.offsetLeft,c=o.offsetTop)}const u=Xt(r);if(u<=0){const d=r.ownerDocument,f=d.body,g=getComputedStyle(f),h=d.compatMode==="CSS1Compat"&&parseFloat(g.marginLeft)+parseFloat(g.marginRight)||0,v=Math.abs(r.clientWidth-f.clientWidth-h);v<=Xo&&(s-=v)}else u<=Xo&&(s+=u);return{width:s,height:a,x:i,y:c}}const Vc=new Set(["absolute","fixed"]);function Wc(e,t){const n=ze(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,s=ye(e)?tt(e):ve(1),a=e.clientWidth*s.x,i=e.clientHeight*s.y,c=o*s.x,u=r*s.y;return{width:a,height:i,x:c,y:u}}function qo(e,t,n){let r;if(t==="viewport")r=zc(e,n);else if(t==="document")r=Fc(xe(e));else if(pe(t))r=Wc(t,n);else{const o=Yo(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Ut(r)}function Zo(e,t){const n=Ne(e);return n===t||!pe(n)||et(n)?!1:me(n).position==="fixed"||Zo(n,t)}function Bc(e,t){const n=t.get(e);if(n)return n;let r=ht(e,[],!1).filter(i=>pe(i)&&Qe(i)!=="body"),o=null;const s=me(e).position==="fixed";let a=s?Ne(e):e;for(;pe(a)&&!et(a);){const i=me(a),c=Ln(a);!c&&i.position==="fixed"&&(o=null),(s?!c&&!o:!c&&i.position==="static"&&!!o&&Vc.has(o.position)||gt(a)&&!c&&Zo(e,a))?r=r.filter(d=>d!==a):o=i,a=Ne(a)}return t.set(e,r),r}function Hc(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const a=[...n==="clippingAncestors"?Yt(t)?[]:Bc(t,this._c):[].concat(n),r],i=a[0],c=a.reduce((u,d)=>{const f=qo(t,d,o);return u.top=ce(f.top,u.top),u.right=Te(f.right,u.right),u.bottom=Te(f.bottom,u.bottom),u.left=ce(f.left,u.left),u},qo(t,i,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function Uc(e){const{width:t,height:n}=Go(e);return{width:t,height:n}}function Gc(e,t,n){const r=ye(t),o=xe(t),s=n==="fixed",a=ze(e,!0,s,t);let i={scrollLeft:0,scrollTop:0};const c=ve(0);function u(){c.x=Xt(o)}if(r||!r&&!s)if((Qe(t)!=="body"||gt(o))&&(i=Kt(t)),r){const h=ze(t,!0,s,t);c.x=h.x+t.clientLeft,c.y=h.y+t.clientTop}else o&&u();s&&!r&&o&&u();const d=o&&!r&&!s?Ko(o,i):ve(0),f=a.left+i.scrollLeft-c.x-d.x,g=a.top+i.scrollTop-c.y-d.y;return{x:f,y:g,width:a.width,height:a.height}}function Vn(e){return me(e).position==="static"}function Jo(e,t){if(!ye(e)||me(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return xe(e)===n&&(n=n.ownerDocument.body),n}function Qo(e,t){const n=ue(e);if(Yt(e))return n;if(!ye(e)){let o=Ne(e);for(;o&&!et(o);){if(pe(o)&&!Vn(o))return o;o=Ne(o)}return n}let r=Jo(e,t);for(;r&&Ac(r)&&Vn(r);)r=Jo(r,t);return r&&et(r)&&Vn(r)&&!Ln(r)?n:r||Ic(e)||n}const Yc=async function(e){const t=this.getOffsetParent||Qo,n=this.getDimensions,r=await n(e.floating);return{reference:Gc(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Kc(e){return me(e).direction==="rtl"}const Xc={convertOffsetParentRelativeRectToViewportRelativeRect:Lc,getDocumentElement:xe,getClippingRect:Hc,getOffsetParent:Qo,getElementRects:Yc,getClientRects:$c,getDimensions:Uc,getScale:tt,isElement:pe,isRTL:Kc};function es(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function qc(e,t){let n=null,r;const o=xe(e);function s(){var i;clearTimeout(r),(i=n)==null||i.disconnect(),n=null}function a(i,c){i===void 0&&(i=!1),c===void 0&&(c=1),s();const u=e.getBoundingClientRect(),{left:d,top:f,width:g,height:h}=u;if(i||t(),!g||!h)return;const v=Bt(f),m=Bt(o.clientWidth-(d+g)),b=Bt(o.clientHeight-(f+h)),y=Bt(d),w={rootMargin:-v+"px "+-m+"px "+-b+"px "+-y+"px",threshold:ce(0,Te(1,c))||1};let E=!0;function P(N){const R=N[0].intersectionRatio;if(R!==c){if(!E)return a();R?a(!1,R):r=setTimeout(()=>{a(!1,1e-7)},1e3)}R===1&&!es(u,e.getBoundingClientRect())&&a(),E=!1}try{n=new IntersectionObserver(P,{...w,root:o.ownerDocument})}catch{n=new IntersectionObserver(P,w)}n.observe(e)}return a(!0),s}function Zc(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:i=typeof IntersectionObserver=="function",animationFrame:c=!1}=r,u=zn(e),d=o||s?[...u?ht(u):[],...ht(t)]:[];d.forEach(y=>{o&&y.addEventListener("scroll",n,{passive:!0}),s&&y.addEventListener("resize",n)});const f=u&&i?qc(u,n):null;let g=-1,h=null;a&&(h=new ResizeObserver(y=>{let[x]=y;x&&x.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?ze(e):null;c&&b();function b(){const y=ze(e);m&&!es(m,y)&&n(),m=y,v=requestAnimationFrame(b)}return n(),()=>{var y;d.forEach(x=>{o&&x.removeEventListener("scroll",n),s&&x.removeEventListener("resize",n)}),f==null||f(),(y=h)==null||y.disconnect(),h=null,c&&cancelAnimationFrame(v)}}const Jc=Cc,Qc=Sc,eu=xc,tu=kc,nu=yc,ts=bc,ru=Ec,ou=(e,t,n)=>{const r=new Map,o={platform:Xc,...n},s={...o.platform,_c:r};return vc(e,t,{...o,platform:s})};var su=typeof document<"u",au=function(){},qt=su?re.useLayoutEffect:au;function Zt(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(!Zt(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const s=o[r];if(!(s==="_owner"&&e.$$typeof)&&!Zt(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function ns(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function rs(e,t){const n=ns(e);return Math.round(t*n)/n}function Wn(e){const t=l.useRef(e);return qt(()=>{t.current=e}),t}function iu(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:s,floating:a}={},transform:i=!0,whileElementsMounted:c,open:u}=e,[d,f]=l.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[g,h]=l.useState(r);Zt(g,r)||h(r);const[v,m]=l.useState(null),[b,y]=l.useState(null),x=l.useCallback(k=>{k!==N.current&&(N.current=k,m(k))},[]),w=l.useCallback(k=>{k!==R.current&&(R.current=k,y(k))},[]),E=s||v,P=a||b,N=l.useRef(null),R=l.useRef(null),T=l.useRef(d),V=c!=null,G=Wn(c),Z=Wn(o),X=Wn(u),J=l.useCallback(()=>{if(!N.current||!R.current)return;const k={placement:t,strategy:n,middleware:g};Z.current&&(k.platform=Z.current),ou(N.current,R.current,k).then(Q=>{const S={...Q,isPositioned:X.current!==!1};F.current&&!Zt(T.current,S)&&(T.current=S,Rt.flushSync(()=>{f(S)}))})},[g,t,n,Z,X]);qt(()=>{u===!1&&T.current.isPositioned&&(T.current.isPositioned=!1,f(k=>({...k,isPositioned:!1})))},[u]);const F=l.useRef(!1);qt(()=>(F.current=!0,()=>{F.current=!1}),[]),qt(()=>{if(E&&(N.current=E),P&&(R.current=P),E&&P){if(G.current)return G.current(E,P,J);J()}},[E,P,J,G,V]);const Y=l.useMemo(()=>({reference:N,floating:R,setReference:x,setFloating:w}),[x,w]),$=l.useMemo(()=>({reference:E,floating:P}),[E,P]),z=l.useMemo(()=>{const k={position:n,left:0,top:0};if(!$.floating)return k;const Q=rs($.floating,d.x),S=rs($.floating,d.y);return i?{...k,transform:"translate("+Q+"px, "+S+"px)",...ns($.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:Q,top:S}},[n,i,$.floating,d.x,d.y]);return l.useMemo(()=>({...d,update:J,refs:Y,elements:$,floatingStyles:z}),[d,J,Y,$,z])}const lu=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?ts({element:r.current,padding:o}).fn(n):{}:r?ts({element:r,padding:o}).fn(n):{}}}},cu=(e,t)=>({...Jc(e),options:[e,t]}),uu=(e,t)=>({...Qc(e),options:[e,t]}),du=(e,t)=>({...ru(e),options:[e,t]}),fu=(e,t)=>({...eu(e),options:[e,t]}),pu=(e,t)=>({...tu(e),options:[e,t]}),mu=(e,t)=>({...nu(e),options:[e,t]}),gu=(e,t)=>({...lu(e),options:[e,t]});var hu="Arrow",os=l.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...s}=e;return p.jsx(K.svg,{...s,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:p.jsx("polygon",{points:"0,0 30,0 15,10"})})});os.displayName=hu;var vu=os;function bu(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 s=o[0];let a,i;if("borderBoxSize"in s){const c=s.borderBoxSize,u=Array.isArray(c)?c[0]:c;a=u.inlineSize,i=u.blockSize}else a=e.offsetWidth,i=e.offsetHeight;n({width:a,height:i})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var Bn="Popper",[ss,nt]=Ye(Bn),[xu,as]=ss(Bn),is=e=>{const{__scopePopper:t,children:n}=e,[r,o]=l.useState(null);return p.jsx(xu,{scope:t,anchor:r,onAnchorChange:o,children:n})};is.displayName=Bn;var ls="PopperAnchor",cs=l.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,s=as(ls,n),a=l.useRef(null),i=se(t,a),c=l.useRef(null);return l.useEffect(()=>{const u=c.current;c.current=(r==null?void 0:r.current)||a.current,u!==c.current&&s.onAnchorChange(c.current)}),r?null:p.jsx(K.div,{...o,ref:i})});cs.displayName=ls;var Hn="PopperContent",[yu,wu]=ss(Hn),us=l.forwardRef((e,t)=>{var A,D,W,H,ee,te;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:s="center",alignOffset:a=0,arrowPadding:i=0,avoidCollisions:c=!0,collisionBoundary:u=[],collisionPadding:d=0,sticky:f="partial",hideWhenDetached:g=!1,updatePositionStrategy:h="optimized",onPlaced:v,...m}=e,b=as(Hn,n),[y,x]=l.useState(null),w=se(t,de=>x(de)),[E,P]=l.useState(null),N=bu(E),R=(N==null?void 0:N.width)??0,T=(N==null?void 0:N.height)??0,V=r+(s!=="center"?"-"+s:""),G=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},Z=Array.isArray(u)?u:[u],X=Z.length>0,J={padding:G,boundary:Z.filter(Su),altBoundary:X},{refs:F,floatingStyles:Y,placement:$,isPositioned:z,middlewareData:k}=iu({strategy:"fixed",placement:V,whileElementsMounted:(...de)=>Zc(...de,{animationFrame:h==="always"}),elements:{reference:b.anchor},middleware:[cu({mainAxis:o+T,alignmentAxis:a}),c&&uu({mainAxis:!0,crossAxis:!1,limiter:f==="partial"?du():void 0,...J}),c&&fu({...J}),pu({...J,apply:({elements:de,rects:we,availableWidth:Et,availableHeight:kt})=>{const{width:Pt,height:zf}=we.reference,ln=de.floating.style;ln.setProperty("--radix-popper-available-width",`${Et}px`),ln.setProperty("--radix-popper-available-height",`${kt}px`),ln.setProperty("--radix-popper-anchor-width",`${Pt}px`),ln.setProperty("--radix-popper-anchor-height",`${zf}px`)}}),E&&gu({element:E,padding:i}),Eu({arrowWidth:R,arrowHeight:T}),g&&mu({strategy:"referenceHidden",...J})]}),[Q,S]=ps($),L=$e(v);ie(()=>{z&&(L==null||L())},[z,L]);const C=(A=k.arrow)==null?void 0:A.x,O=(D=k.arrow)==null?void 0:D.y,M=((W=k.arrow)==null?void 0:W.centerOffset)!==0,[_,B]=l.useState();return ie(()=>{y&&B(window.getComputedStyle(y).zIndex)},[y]),p.jsx("div",{ref:F.setFloating,"data-radix-popper-content-wrapper":"",style:{...Y,transform:z?Y.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:_,"--radix-popper-transform-origin":[(H=k.transformOrigin)==null?void 0:H.x,(ee=k.transformOrigin)==null?void 0:ee.y].join(" "),...((te=k.hide)==null?void 0:te.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:p.jsx(yu,{scope:n,placedSide:Q,onArrowChange:P,arrowX:C,arrowY:O,shouldHideArrow:M,children:p.jsx(K.div,{"data-side":Q,"data-align":S,...m,ref:w,style:{...m.style,animation:z?void 0:"none"}})})})});us.displayName=Hn;var ds="PopperArrow",Cu={top:"bottom",right:"left",bottom:"top",left:"right"},fs=l.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,s=wu(ds,r),a=Cu[s.placedSide];return p.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:p.jsx(vu,{...o,ref:n,style:{...o.style,display:"block"}})})});fs.displayName=ds;function Su(e){return e!==null}var Eu=e=>({name:"transformOrigin",options:e,fn(t){var b,y,x;const{placement:n,rects:r,middlewareData:o}=t,a=((b=o.arrow)==null?void 0:b.centerOffset)!==0,i=a?0:e.arrowWidth,c=a?0:e.arrowHeight,[u,d]=ps(n),f={start:"0%",center:"50%",end:"100%"}[d],g=(((y=o.arrow)==null?void 0:y.x)??0)+i/2,h=(((x=o.arrow)==null?void 0:x.y)??0)+c/2;let v="",m="";return u==="bottom"?(v=a?f:`${g}px`,m=`${-c}px`):u==="top"?(v=a?f:`${g}px`,m=`${r.floating.height+c}px`):u==="right"?(v=`${-c}px`,m=a?f:`${h}px`):u==="left"&&(v=`${r.floating.width+c}px`,m=a?f:`${h}px`),{data:{x:v,y:m}}}});function ps(e){const[t,n="center"]=e.split("-");return[t,n]}var Un=is,Jt=cs,Gn=us,Yn=fs,ms=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"}),ku="VisuallyHidden",gs=l.forwardRef((e,t)=>p.jsx(K.span,{...e,ref:t,style:{...ms,...e.style}}));gs.displayName=ku;var Pu=gs,[Qt,tp]=Ye("Tooltip",[nt]),en=nt(),hs="TooltipProvider",Ru=700,Kn="tooltip.open",[Au,Xn]=Qt(hs),vs=e=>{const{__scopeTooltip:t,delayDuration:n=Ru,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:s}=e,a=l.useRef(!0),i=l.useRef(!1),c=l.useRef(0);return l.useEffect(()=>{const u=c.current;return()=>window.clearTimeout(u)},[]),p.jsx(Au,{scope:t,isOpenDelayedRef:a,delayDuration:n,onOpen:l.useCallback(()=>{window.clearTimeout(c.current),a.current=!1},[]),onClose:l.useCallback(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>a.current=!0,r)},[r]),isPointerInTransitRef:i,onPointerInTransitChange:l.useCallback(u=>{i.current=u},[]),disableHoverableContent:o,children:s})};vs.displayName=hs;var vt="Tooltip",[Tu,bt]=Qt(vt),bs=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o,onOpenChange:s,disableHoverableContent:a,delayDuration:i}=e,c=Xn(vt,e.__scopeTooltip),u=en(t),[d,f]=l.useState(null),g=le(),h=l.useRef(0),v=a??c.disableHoverableContent,m=i??c.delayDuration,b=l.useRef(!1),[y,x]=dt({prop:r,defaultProp:o??!1,onChange:R=>{R?(c.onOpen(),document.dispatchEvent(new CustomEvent(Kn))):c.onClose(),s==null||s(R)},caller:vt}),w=l.useMemo(()=>y?b.current?"delayed-open":"instant-open":"closed",[y]),E=l.useCallback(()=>{window.clearTimeout(h.current),h.current=0,b.current=!1,x(!0)},[x]),P=l.useCallback(()=>{window.clearTimeout(h.current),h.current=0,x(!1)},[x]),N=l.useCallback(()=>{window.clearTimeout(h.current),h.current=window.setTimeout(()=>{b.current=!0,x(!0),h.current=0},m)},[m,x]);return l.useEffect(()=>()=>{h.current&&(window.clearTimeout(h.current),h.current=0)},[]),p.jsx(Un,{...u,children:p.jsx(Tu,{scope:t,contentId:g,open:y,stateAttribute:w,trigger:d,onTriggerChange:f,onTriggerEnter:l.useCallback(()=>{c.isOpenDelayedRef.current?N():E()},[c.isOpenDelayedRef,N,E]),onTriggerLeave:l.useCallback(()=>{v?P():(window.clearTimeout(h.current),h.current=0)},[P,v]),onOpen:E,onClose:P,disableHoverableContent:v,children:n})})};bs.displayName=vt;var qn="TooltipTrigger",xs=l.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=bt(qn,n),s=Xn(qn,n),a=en(n),i=l.useRef(null),c=se(t,i,o.onTriggerChange),u=l.useRef(!1),d=l.useRef(!1),f=l.useCallback(()=>u.current=!1,[]);return l.useEffect(()=>()=>document.removeEventListener("pointerup",f),[f]),p.jsx(Jt,{asChild:!0,...a,children:p.jsx(K.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:c,onPointerMove:q(e.onPointerMove,g=>{g.pointerType!=="touch"&&!d.current&&!s.isPointerInTransitRef.current&&(o.onTriggerEnter(),d.current=!0)}),onPointerLeave:q(e.onPointerLeave,()=>{o.onTriggerLeave(),d.current=!1}),onPointerDown:q(e.onPointerDown,()=>{o.open&&o.onClose(),u.current=!0,document.addEventListener("pointerup",f,{once:!0})}),onFocus:q(e.onFocus,()=>{u.current||o.onOpen()}),onBlur:q(e.onBlur,o.onClose),onClick:q(e.onClick,o.onClose)})})});xs.displayName=qn;var Zn="TooltipPortal",[Nu,Ou]=Qt(Zn,{forceMount:void 0}),ys=e=>{const{__scopeTooltip:t,forceMount:n,children:r,container:o}=e,s=bt(Zn,t);return p.jsx(Nu,{scope:t,forceMount:n,children:p.jsx(Ae,{present:n||s.open,children:p.jsx(pt,{asChild:!0,container:o,children:r})})})};ys.displayName=Zn;var rt="TooltipContent",ws=l.forwardRef((e,t)=>{const n=Ou(rt,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...s}=e,a=bt(rt,e.__scopeTooltip);return p.jsx(Ae,{present:r||a.open,children:a.disableHoverableContent?p.jsx(Cs,{side:o,...s,ref:t}):p.jsx(_u,{side:o,...s,ref:t})})}),_u=l.forwardRef((e,t)=>{const n=bt(rt,e.__scopeTooltip),r=Xn(rt,e.__scopeTooltip),o=l.useRef(null),s=se(t,o),[a,i]=l.useState(null),{trigger:c,onClose:u}=n,d=o.current,{onPointerInTransitChange:f}=r,g=l.useCallback(()=>{i(null),f(!1)},[f]),h=l.useCallback((v,m)=>{const b=v.currentTarget,y={x:v.clientX,y:v.clientY},x=Du(y,b.getBoundingClientRect()),w=Lu(y,x),E=$u(m.getBoundingClientRect()),P=zu([...w,...E]);i(P),f(!0)},[f]);return l.useEffect(()=>()=>g(),[g]),l.useEffect(()=>{if(c&&d){const v=b=>h(b,d),m=b=>h(b,c);return c.addEventListener("pointerleave",v),d.addEventListener("pointerleave",m),()=>{c.removeEventListener("pointerleave",v),d.removeEventListener("pointerleave",m)}}},[c,d,h,g]),l.useEffect(()=>{if(a){const v=m=>{const b=m.target,y={x:m.clientX,y:m.clientY},x=(c==null?void 0:c.contains(b))||(d==null?void 0:d.contains(b)),w=!Fu(y,a);x?g():w&&(g(),u())};return document.addEventListener("pointermove",v),()=>document.removeEventListener("pointermove",v)}},[c,d,a,u,g]),p.jsx(Cs,{...e,ref:s})}),[Iu,ju]=Qt(vt,{isInside:!1}),Mu=Na("TooltipContent"),Cs=l.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:s,onPointerDownOutside:a,...i}=e,c=bt(rt,n),u=en(n),{onClose:d}=c;return l.useEffect(()=>(document.addEventListener(Kn,d),()=>document.removeEventListener(Kn,d)),[d]),l.useEffect(()=>{if(c.trigger){const f=g=>{const h=g.target;h!=null&&h.contains(c.trigger)&&d()};return window.addEventListener("scroll",f,{capture:!0}),()=>window.removeEventListener("scroll",f,{capture:!0})}},[c.trigger,d]),p.jsx(ft,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:a,onFocusOutside:f=>f.preventDefault(),onDismiss:d,children:p.jsxs(Gn,{"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:[p.jsx(Mu,{children:r}),p.jsx(Iu,{scope:n,isInside:!0,children:p.jsx(Pu,{id:c.contentId,role:"tooltip",children:o||r})})]})})});ws.displayName=rt;var Ss="TooltipArrow",Es=l.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=en(n);return ju(Ss,n).isInside?null:p.jsx(Yn,{...o,...r,ref:t})});Es.displayName=Ss;function Du(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),s=Math.abs(t.left-e.x);switch(Math.min(n,r,o,s)){case s:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function Lu(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 $u(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 Fu(e,t){const{x:n,y:r}=e;let o=!1;for(let s=0,a=t.length-1;s<t.length;a=s++){const i=t[s],c=t[a],u=i.x,d=i.y,f=c.x,g=c.y;d>r!=g>r&&n<(f-u)*(r-d)/(g-d)+u&&(o=!o)}return o}function zu(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),Vu(t)}function Vu(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 s=t[t.length-1],a=t[t.length-2];if((s.x-a.x)*(o.y-a.y)>=(s.y-a.y)*(o.x-a.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 s=n[n.length-1],a=n[n.length-2];if((s.x-a.x)*(o.y-a.y)>=(s.y-a.y)*(o.x-a.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 Wu=vs,Bu=bs,Hu=xs,Uu=ys,Gu=ws,Yu=Es;function ks({delayDuration:e=0,...t}){return p.jsx(Wu,{"data-slot":"tooltip-provider",delayDuration:e,...t})}function Ku({...e}){return p.jsx(ks,{children:p.jsx(Bu,{"data-slot":"tooltip",...e})})}function Xu({...e}){return p.jsx(Hu,{"data-slot":"tooltip-trigger",...e})}function qu({className:e,sideOffset:t=0,children:n,...r}){return p.jsx(Uu,{children:p.jsxs(Gu,{"data-slot":"tooltip-content",sideOffset:t,className:oe("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,p.jsx(Yu,{className:"bg-neutral-black-1 fill-foreground z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]"})]})})}const Zu=hn("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"}}),Jn=({label:e,helperText:t,errorText:n,leftIcon:r,rightIcon:o,size:s="medium",className:a,disabled:i=!1,...c})=>p.jsxs("div",{className:"flex flex-col gap-1",children:[e&&p.jsx("label",{className:"text-sm font-normal text-neutral-black-1",children:e}),p.jsxs("div",{className:oe(Zu({size:s,status:n?"error":i?"disabled":"default"}),a),children:[r&&p.jsx("span",{className:"mr-2 flex-shrink-0",children:r}),p.jsx("input",{disabled:i,className:oe("flex-1 bg-transparent outline-none placeholder:text-neutral-black-2 disabled:cursor-not-allowed disabled:opacity-50"),...c}),o&&p.jsx("span",{className:"ml-2 flex-shrink-0",children:o})]}),(t||n)&&p.jsx("p",{className:oe("text-xs mt-1",n?"text-primary-1":"text-neutral-black-2"),children:n||t})]}),Ju=e=>p.jsx(Jn,{type:"email",inputMode:"email",...e}),Qu=({showForgot:e=!1,onValidityChange:t,customValidator:n,...r})=>{const[o,s]=re.useState(!1),[a,i]=re.useState(""),u=n?n(a):(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)}])(a),d=u.every(f=>f.isValid);return re.useEffect(()=>{t&&t(d,u)},[a,d,u,t]),p.jsx("div",{className:"flex flex-col gap-2",children:p.jsxs("div",{className:"flex flex-col gap-2 w-full max-w-sm",children:[p.jsxs("div",{className:"flex justify-between items-center",children:[p.jsx("label",{className:"text-sm font-medium text-neutral-0",children:"Password"}),e&&p.jsx("button",{type:"button",className:"text-xs text-neutral-0 hover:underline",children:"Forgot Password?"})]}),p.jsx(Jn,{type:o?"text":"password",value:a,onChange:f=>i(f.target.value),...r,rightIcon:p.jsx("button",{type:"button",onClick:()=>s(!o),className:"p-1 text-neutral-0 hover:text-text-neutral-0",children:o?p.jsx(Xl,{size:18,className:"text-neutral-black-2"}):p.jsx(ql,{size:18,className:"text-neutral-black-2"})})}),p.jsx("div",{className:"grid grid-cols-2 gap-y-1 text-xs mt-3",children:u.map((f,g)=>p.jsxs("div",{className:"flex items-center gap-1",children:[f.isValid?p.jsx(Yl,{size:14,className:"text-success-d"}):p.jsx(Kl,{size:14,className:"text-stroke"}),p.jsx("span",{className:f.isValid?"text-success-d":"text-input",children:f.label})]},g))})]})})},ed=e=>p.jsx(Jn,{type:"search",leftIcon:p.jsx(Oo,{"data-testid":"search-icon",className:"w-4 h-4 text-input-placeholder"}),placeholder:"Search...",...e});function Ps(e,[t,n]){return Math.min(n,Math.max(t,e))}function td(e){const t=e+"CollectionProvider",[n,r]=Ye(t),[o,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),a=m=>{const{scope:b,children:y}=m,x=re.useRef(null),w=re.useRef(new Map).current;return p.jsx(o,{scope:b,itemMap:w,collectionRef:x,children:y})};a.displayName=t;const i=e+"CollectionSlot",c=De(i),u=re.forwardRef((m,b)=>{const{scope:y,children:x}=m,w=s(i,y),E=se(b,w.collectionRef);return p.jsx(c,{ref:E,children:x})});u.displayName=i;const d=e+"CollectionItemSlot",f="data-radix-collection-item",g=De(d),h=re.forwardRef((m,b)=>{const{scope:y,children:x,...w}=m,E=re.useRef(null),P=se(b,E),N=s(d,y);return re.useEffect(()=>(N.itemMap.set(E,{ref:E,...w}),()=>void N.itemMap.delete(E))),p.jsx(g,{[f]:"",ref:P,children:x})});h.displayName=d;function v(m){const b=s(e+"CollectionConsumer",m);return re.useCallback(()=>{const x=b.collectionRef.current;if(!x)return[];const w=Array.from(x.querySelectorAll(`[${f}]`));return Array.from(b.itemMap.values()).sort((N,R)=>w.indexOf(N.ref.current)-w.indexOf(R.ref.current))},[b.collectionRef,b.itemMap])}return[{Provider:a,Slot:u,ItemSlot:h},v,r]}var nd=l.createContext(void 0);function rd(e){const t=l.useContext(nd);return e||t||"ltr"}function od(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 sd=[" ","Enter","ArrowUp","ArrowDown"],ad=[" ","Enter"],Ve="Select",[tn,nn,id]=td(Ve),[ot,np]=Ye(Ve,[id,nt]),rn=nt(),[ld,Oe]=ot(Ve),[cd,ud]=ot(Ve),Rs=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:o,onOpenChange:s,value:a,defaultValue:i,onValueChange:c,dir:u,name:d,autoComplete:f,disabled:g,required:h,form:v}=e,m=rn(t),[b,y]=l.useState(null),[x,w]=l.useState(null),[E,P]=l.useState(!1),N=rd(u),[R,T]=dt({prop:r,defaultProp:o??!1,onChange:s,caller:Ve}),[V,G]=dt({prop:a,defaultProp:i,onChange:c,caller:Ve}),Z=l.useRef(null),X=b?v||!!b.closest("form"):!0,[J,F]=l.useState(new Set),Y=Array.from(J).map($=>$.props.value).join(";");return p.jsx(Un,{...m,children:p.jsxs(ld,{required:h,scope:t,trigger:b,onTriggerChange:y,valueNode:x,onValueNodeChange:w,valueNodeHasChildren:E,onValueNodeHasChildrenChange:P,contentId:le(),value:V,onValueChange:G,open:R,onOpenChange:T,dir:N,triggerPointerDownPosRef:Z,disabled:g,children:[p.jsx(tn.Provider,{scope:t,children:p.jsx(cd,{scope:e.__scopeSelect,onNativeOptionAdd:l.useCallback($=>{F(z=>new Set(z).add($))},[]),onNativeOptionRemove:l.useCallback($=>{F(z=>{const k=new Set(z);return k.delete($),k})},[]),children:n})}),X?p.jsxs(Zs,{"aria-hidden":!0,required:h,tabIndex:-1,name:d,autoComplete:f,value:V,onChange:$=>G($.target.value),disabled:g,form:v,children:[V===void 0?p.jsx("option",{value:""}):null,Array.from(J)]},Y):null]})})};Rs.displayName=Ve;var As="SelectTrigger",Ts=l.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...o}=e,s=rn(n),a=Oe(As,n),i=a.disabled||r,c=se(t,a.onTriggerChange),u=nn(n),d=l.useRef("touch"),[f,g,h]=Qs(m=>{const b=u().filter(w=>!w.disabled),y=b.find(w=>w.value===a.value),x=ea(b,m,y);x!==void 0&&a.onValueChange(x.value)}),v=m=>{i||(a.onOpenChange(!0),h()),m&&(a.triggerPointerDownPosRef.current={x:Math.round(m.pageX),y:Math.round(m.pageY)})};return p.jsx(Jt,{asChild:!0,...s,children:p.jsx(K.button,{type:"button",role:"combobox","aria-controls":a.contentId,"aria-expanded":a.open,"aria-required":a.required,"aria-autocomplete":"none",dir:a.dir,"data-state":a.open?"open":"closed",disabled:i,"data-disabled":i?"":void 0,"data-placeholder":Js(a.value)?"":void 0,...o,ref:c,onClick:q(o.onClick,m=>{m.currentTarget.focus(),d.current!=="mouse"&&v(m)}),onPointerDown:q(o.onPointerDown,m=>{d.current=m.pointerType;const b=m.target;b.hasPointerCapture(m.pointerId)&&b.releasePointerCapture(m.pointerId),m.button===0&&m.ctrlKey===!1&&m.pointerType==="mouse"&&(v(m),m.preventDefault())}),onKeyDown:q(o.onKeyDown,m=>{const b=f.current!=="";!(m.ctrlKey||m.altKey||m.metaKey)&&m.key.length===1&&g(m.key),!(b&&m.key===" ")&&sd.includes(m.key)&&(v(),m.preventDefault())})})})});Ts.displayName=As;var Ns="SelectValue",Os=l.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,children:s,placeholder:a="",...i}=e,c=Oe(Ns,n),{onValueNodeHasChildrenChange:u}=c,d=s!==void 0,f=se(t,c.onValueNodeChange);return ie(()=>{u(d)},[u,d]),p.jsx(K.span,{...i,ref:f,style:{pointerEvents:"none"},children:Js(c.value)?p.jsx(p.Fragment,{children:a}):s})});Os.displayName=Ns;var dd="SelectIcon",_s=l.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...o}=e;return p.jsx(K.span,{"aria-hidden":!0,...o,ref:t,children:r||"▼"})});_s.displayName=dd;var fd="SelectPortal",Is=e=>p.jsx(pt,{asChild:!0,...e});Is.displayName=fd;var We="SelectContent",js=l.forwardRef((e,t)=>{const n=Oe(We,e.__scopeSelect),[r,o]=l.useState();if(ie(()=>{o(new DocumentFragment)},[]),!n.open){const s=r;return s?Rt.createPortal(p.jsx(Ms,{scope:e.__scopeSelect,children:p.jsx(tn.Slot,{scope:e.__scopeSelect,children:p.jsx("div",{children:e.children})})}),s):null}return p.jsx(Ds,{...e,ref:t})});js.displayName=We;var ge=10,[Ms,_e]=ot(We),pd="SelectContentImpl",md=De("SelectContent.RemoveScroll"),Ds=l.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:s,onPointerDownOutside:a,side:i,sideOffset:c,align:u,alignOffset:d,arrowPadding:f,collisionBoundary:g,collisionPadding:h,sticky:v,hideWhenDetached:m,avoidCollisions:b,...y}=e,x=Oe(We,n),[w,E]=l.useState(null),[P,N]=l.useState(null),R=se(t,A=>E(A)),[T,V]=l.useState(null),[G,Z]=l.useState(null),X=nn(n),[J,F]=l.useState(!1),Y=l.useRef(!1);l.useEffect(()=>{if(w)return Rn(w)},[w]),wn();const $=l.useCallback(A=>{const[D,...W]=X().map(te=>te.ref.current),[H]=W.slice(-1),ee=document.activeElement;for(const te of A)if(te===ee||(te==null||te.scrollIntoView({block:"nearest"}),te===D&&P&&(P.scrollTop=0),te===H&&P&&(P.scrollTop=P.scrollHeight),te==null||te.focus(),document.activeElement!==ee))return},[X,P]),z=l.useCallback(()=>$([T,w]),[$,T,w]);l.useEffect(()=>{J&&z()},[J,z]);const{onOpenChange:k,triggerPointerDownPosRef:Q}=x;l.useEffect(()=>{if(w){let A={x:0,y:0};const D=H=>{var ee,te;A={x:Math.abs(Math.round(H.pageX)-(((ee=Q.current)==null?void 0:ee.x)??0)),y:Math.abs(Math.round(H.pageY)-(((te=Q.current)==null?void 0:te.y)??0))}},W=H=>{A.x<=10&&A.y<=10?H.preventDefault():w.contains(H.target)||k(!1),document.removeEventListener("pointermove",D),Q.current=null};return Q.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,k,Q]),l.useEffect(()=>{const A=()=>k(!1);return window.addEventListener("blur",A),window.addEventListener("resize",A),()=>{window.removeEventListener("blur",A),window.removeEventListener("resize",A)}},[k]);const[S,L]=Qs(A=>{const D=X().filter(ee=>!ee.disabled),W=D.find(ee=>ee.ref.current===document.activeElement),H=ea(D,A,W);H&&setTimeout(()=>H.ref.current.focus())}),C=l.useCallback((A,D,W)=>{const H=!Y.current&&!W;(x.value!==void 0&&x.value===D||H)&&(V(A),H&&(Y.current=!0))},[x.value]),O=l.useCallback(()=>w==null?void 0:w.focus(),[w]),M=l.useCallback((A,D,W)=>{const H=!Y.current&&!W;(x.value!==void 0&&x.value===D||H)&&Z(A)},[x.value]),_=r==="popper"?Qn:Ls,B=_===Qn?{side:i,sideOffset:c,align:u,alignOffset:d,arrowPadding:f,collisionBoundary:g,collisionPadding:h,sticky:v,hideWhenDetached:m,avoidCollisions:b}:{};return p.jsx(Ms,{scope:n,content:w,viewport:P,onViewportChange:N,itemRefCallback:C,selectedItem:T,onItemLeave:O,itemTextRefCallback:M,focusSelectedItem:z,selectedItemText:G,position:r,isPositioned:J,searchRef:S,children:p.jsx(Lt,{as:md,allowPinchZoom:!0,children:p.jsx(Nt,{asChild:!0,trapped:x.open,onMountAutoFocus:A=>{A.preventDefault()},onUnmountAutoFocus:q(o,A=>{var D;(D=x.trigger)==null||D.focus({preventScroll:!0}),A.preventDefault()}),children:p.jsx(ft,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:s,onPointerDownOutside:a,onFocusOutside:A=>A.preventDefault(),onDismiss:()=>x.onOpenChange(!1),children:p.jsx(_,{role:"listbox",id:x.contentId,"data-state":x.open?"open":"closed",dir:x.dir,onContextMenu:A=>A.preventDefault(),...y,...B,onPlaced:()=>F(!0),ref:R,style:{display:"flex",flexDirection:"column",outline:"none",...y.style},onKeyDown:q(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 H=X().filter(ee=>!ee.disabled).map(ee=>ee.ref.current);if(["ArrowUp","End"].includes(A.key)&&(H=H.slice().reverse()),["ArrowUp","ArrowDown"].includes(A.key)){const ee=A.target,te=H.indexOf(ee);H=H.slice(te+1)}setTimeout(()=>$(H)),A.preventDefault()}})})})})})})});Ds.displayName=pd;var gd="SelectItemAlignedPosition",Ls=l.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...o}=e,s=Oe(We,n),a=_e(We,n),[i,c]=l.useState(null),[u,d]=l.useState(null),f=se(t,R=>d(R)),g=nn(n),h=l.useRef(!1),v=l.useRef(!0),{viewport:m,selectedItem:b,selectedItemText:y,focusSelectedItem:x}=a,w=l.useCallback(()=>{if(s.trigger&&s.valueNode&&i&&u&&m&&b&&y){const R=s.trigger.getBoundingClientRect(),T=u.getBoundingClientRect(),V=s.valueNode.getBoundingClientRect(),G=y.getBoundingClientRect();if(s.dir!=="rtl"){const ee=G.left-T.left,te=V.left-ee,de=R.left-te,we=R.width+de,Et=Math.max(we,T.width),kt=window.innerWidth-ge,Pt=Ps(te,[ge,Math.max(ge,kt-Et)]);i.style.minWidth=we+"px",i.style.left=Pt+"px"}else{const ee=T.right-G.right,te=window.innerWidth-V.right-ee,de=window.innerWidth-R.right-te,we=R.width+de,Et=Math.max(we,T.width),kt=window.innerWidth-ge,Pt=Ps(te,[ge,Math.max(ge,kt-Et)]);i.style.minWidth=we+"px",i.style.right=Pt+"px"}const Z=g(),X=window.innerHeight-ge*2,J=m.scrollHeight,F=window.getComputedStyle(u),Y=parseInt(F.borderTopWidth,10),$=parseInt(F.paddingTop,10),z=parseInt(F.borderBottomWidth,10),k=parseInt(F.paddingBottom,10),Q=Y+$+J+k+z,S=Math.min(b.offsetHeight*5,Q),L=window.getComputedStyle(m),C=parseInt(L.paddingTop,10),O=parseInt(L.paddingBottom,10),M=R.top+R.height/2-ge,_=X-M,B=b.offsetHeight/2,A=b.offsetTop+B,D=Y+$+A,W=Q-D;if(D<=M){const ee=Z.length>0&&b===Z[Z.length-1].ref.current;i.style.bottom="0px";const te=u.clientHeight-m.offsetTop-m.offsetHeight,de=Math.max(_,B+(ee?O:0)+te+z),we=D+de;i.style.height=we+"px"}else{const ee=Z.length>0&&b===Z[0].ref.current;i.style.top="0px";const de=Math.max(M,Y+m.offsetTop+(ee?C:0)+B)+W;i.style.height=de+"px",m.scrollTop=D-M+m.offsetTop}i.style.margin=`${ge}px 0`,i.style.minHeight=S+"px",i.style.maxHeight=X+"px",r==null||r(),requestAnimationFrame(()=>h.current=!0)}},[g,s.trigger,s.valueNode,i,u,m,b,y,s.dir,r]);ie(()=>w(),[w]);const[E,P]=l.useState();ie(()=>{u&&P(window.getComputedStyle(u).zIndex)},[u]);const N=l.useCallback(R=>{R&&v.current===!0&&(w(),x==null||x(),v.current=!1)},[w,x]);return p.jsx(vd,{scope:n,contentWrapper:i,shouldExpandOnScrollRef:h,onScrollButtonChange:N,children:p.jsx("div",{ref:c,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:E},children:p.jsx(K.div,{...o,ref:f,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});Ls.displayName=gd;var hd="SelectPopperPosition",Qn=l.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:o=ge,...s}=e,a=rn(n);return p.jsx(Gn,{...a,...s,ref:t,align:r,collisionPadding:o,style:{boxSizing:"border-box",...s.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)"}})});Qn.displayName=hd;var[vd,er]=ot(We,{}),tr="SelectViewport",$s=l.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...o}=e,s=_e(tr,n),a=er(tr,n),i=se(t,s.onViewportChange),c=l.useRef(0);return p.jsxs(p.Fragment,{children:[p.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}),p.jsx(tn.Slot,{scope:n,children:p.jsx(K.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:i,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:q(o.onScroll,u=>{const d=u.currentTarget,{contentWrapper:f,shouldExpandOnScrollRef:g}=a;if(g!=null&&g.current&&f){const h=Math.abs(c.current-d.scrollTop);if(h>0){const v=window.innerHeight-ge*2,m=parseFloat(f.style.minHeight),b=parseFloat(f.style.height),y=Math.max(m,b);if(y<v){const x=y+h,w=Math.min(v,x),E=x-w;f.style.height=w+"px",f.style.bottom==="0px"&&(d.scrollTop=E>0?E:0,f.style.justifyContent="flex-end")}}}c.current=d.scrollTop})})})]})});$s.displayName=tr;var Fs="SelectGroup",[bd,xd]=ot(Fs),zs=l.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=le();return p.jsx(bd,{scope:n,id:o,children:p.jsx(K.div,{role:"group","aria-labelledby":o,...r,ref:t})})});zs.displayName=Fs;var Vs="SelectLabel",Ws=l.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=xd(Vs,n);return p.jsx(K.div,{id:o.id,...r,ref:t})});Ws.displayName=Vs;var on="SelectItem",[yd,Bs]=ot(on),Hs=l.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:o=!1,textValue:s,...a}=e,i=Oe(on,n),c=_e(on,n),u=i.value===r,[d,f]=l.useState(s??""),[g,h]=l.useState(!1),v=se(t,x=>{var w;return(w=c.itemRefCallback)==null?void 0:w.call(c,x,r,o)}),m=le(),b=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 p.jsx(yd,{scope:n,value:r,disabled:o,textId:m,isSelected:u,onItemTextChange:l.useCallback(x=>{f(w=>w||((x==null?void 0:x.textContent)??"").trim())},[]),children:p.jsx(tn.ItemSlot,{scope:n,value:r,disabled:o,textValue:d,children:p.jsx(K.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,...a,ref:v,onFocus:q(a.onFocus,()=>h(!0)),onBlur:q(a.onBlur,()=>h(!1)),onClick:q(a.onClick,()=>{b.current!=="mouse"&&y()}),onPointerUp:q(a.onPointerUp,()=>{b.current==="mouse"&&y()}),onPointerDown:q(a.onPointerDown,x=>{b.current=x.pointerType}),onPointerMove:q(a.onPointerMove,x=>{var w;b.current=x.pointerType,o?(w=c.onItemLeave)==null||w.call(c):b.current==="mouse"&&x.currentTarget.focus({preventScroll:!0})}),onPointerLeave:q(a.onPointerLeave,x=>{var w;x.currentTarget===document.activeElement&&((w=c.onItemLeave)==null||w.call(c))}),onKeyDown:q(a.onKeyDown,x=>{var E;((E=c.searchRef)==null?void 0:E.current)!==""&&x.key===" "||(ad.includes(x.key)&&y(),x.key===" "&&x.preventDefault())})})})})});Hs.displayName=on;var xt="SelectItemText",Us=l.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,...s}=e,a=Oe(xt,n),i=_e(xt,n),c=Bs(xt,n),u=ud(xt,n),[d,f]=l.useState(null),g=se(t,y=>f(y),c.onItemTextChange,y=>{var x;return(x=i.itemTextRefCallback)==null?void 0:x.call(i,y,c.value,c.disabled)}),h=d==null?void 0:d.textContent,v=l.useMemo(()=>p.jsx("option",{value:c.value,disabled:c.disabled,children:h},c.value),[c.disabled,c.value,h]),{onNativeOptionAdd:m,onNativeOptionRemove:b}=u;return ie(()=>(m(v),()=>b(v)),[m,b,v]),p.jsxs(p.Fragment,{children:[p.jsx(K.span,{id:c.textId,...s,ref:g}),c.isSelected&&a.valueNode&&!a.valueNodeHasChildren?Rt.createPortal(s.children,a.valueNode):null]})});Us.displayName=xt;var Gs="SelectItemIndicator",Ys=l.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return Bs(Gs,n).isSelected?p.jsx(K.span,{"aria-hidden":!0,...r,ref:t}):null});Ys.displayName=Gs;var nr="SelectScrollUpButton",Ks=l.forwardRef((e,t)=>{const n=_e(nr,e.__scopeSelect),r=er(nr,e.__scopeSelect),[o,s]=l.useState(!1),a=se(t,r.onScrollButtonChange);return ie(()=>{if(n.viewport&&n.isPositioned){let i=function(){const u=c.scrollTop>0;s(u)};const c=n.viewport;return i(),c.addEventListener("scroll",i),()=>c.removeEventListener("scroll",i)}},[n.viewport,n.isPositioned]),o?p.jsx(qs,{...e,ref:a,onAutoScroll:()=>{const{viewport:i,selectedItem:c}=n;i&&c&&(i.scrollTop=i.scrollTop-c.offsetHeight)}}):null});Ks.displayName=nr;var rr="SelectScrollDownButton",Xs=l.forwardRef((e,t)=>{const n=_e(rr,e.__scopeSelect),r=er(rr,e.__scopeSelect),[o,s]=l.useState(!1),a=se(t,r.onScrollButtonChange);return ie(()=>{if(n.viewport&&n.isPositioned){let i=function(){const u=c.scrollHeight-c.clientHeight,d=Math.ceil(c.scrollTop)<u;s(d)};const c=n.viewport;return i(),c.addEventListener("scroll",i),()=>c.removeEventListener("scroll",i)}},[n.viewport,n.isPositioned]),o?p.jsx(qs,{...e,ref:a,onAutoScroll:()=>{const{viewport:i,selectedItem:c}=n;i&&c&&(i.scrollTop=i.scrollTop+c.offsetHeight)}}):null});Xs.displayName=rr;var qs=l.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...o}=e,s=_e("SelectScrollButton",n),a=l.useRef(null),i=nn(n),c=l.useCallback(()=>{a.current!==null&&(window.clearInterval(a.current),a.current=null)},[]);return l.useEffect(()=>()=>c(),[c]),ie(()=>{var d;const u=i().find(f=>f.ref.current===document.activeElement);(d=u==null?void 0:u.ref.current)==null||d.scrollIntoView({block:"nearest"})},[i]),p.jsx(K.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:q(o.onPointerDown,()=>{a.current===null&&(a.current=window.setInterval(r,50))}),onPointerMove:q(o.onPointerMove,()=>{var u;(u=s.onItemLeave)==null||u.call(s),a.current===null&&(a.current=window.setInterval(r,50))}),onPointerLeave:q(o.onPointerLeave,()=>{c()})})}),wd="SelectSeparator",Cd=l.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return p.jsx(K.div,{"aria-hidden":!0,...r,ref:t})});Cd.displayName=wd;var or="SelectArrow",Sd=l.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=rn(n),s=Oe(or,n),a=_e(or,n);return s.open&&a.position==="popper"?p.jsx(Yn,{...o,...r,ref:t}):null});Sd.displayName=or;var Ed="SelectBubbleInput",Zs=l.forwardRef(({__scopeSelect:e,value:t,...n},r)=>{const o=l.useRef(null),s=se(r,o),a=od(t);return l.useEffect(()=>{const i=o.current;if(!i)return;const c=window.HTMLSelectElement.prototype,d=Object.getOwnPropertyDescriptor(c,"value").set;if(a!==t&&d){const f=new Event("change",{bubbles:!0});d.call(i,t),i.dispatchEvent(f)}},[a,t]),p.jsx(K.select,{...n,style:{...ms,...n.style},ref:s,defaultValue:t})});Zs.displayName=Ed;function Js(e){return e===""||e===void 0}function Qs(e){const t=$e(e),n=l.useRef(""),r=l.useRef(0),o=l.useCallback(a=>{const i=n.current+a;t(i),function c(u){n.current=u,window.clearTimeout(r.current),u!==""&&(r.current=window.setTimeout(()=>c(""),1e3))}(i)},[t]),s=l.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return l.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,o,s]}function ea(e,t,n){const o=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,s=n?e.indexOf(n):-1;let a=kd(e,Math.max(s,0));o.length===1&&(a=a.filter(u=>u!==n));const c=a.find(u=>u.textValue.toLowerCase().startsWith(o.toLowerCase()));return c!==n?c:void 0}function kd(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var Pd=Rs,Rd=Ts,Ad=Os,Td=_s,Nd=Is,Od=js,_d=$s,Id=zs,jd=Ws,Md=Hs,Dd=Us,Ld=Ys,$d=Ks,Fd=Xs;function zd({...e}){return p.jsx(Pd,{"data-slot":"select",...e})}function Vd({...e}){return p.jsx(Id,{"data-slot":"select-group",...e})}function Wd({...e}){return p.jsx(Ad,{"data-slot":"select-value",...e})}function Bd({className:e,size:t="default",children:n,...r}){return p.jsxs(Rd,{"data-slot":"select-trigger","data-size":t,className:oe("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,p.jsx(Td,{asChild:!0,children:p.jsx(On,{className:"size-4 opacity-50"})})]})}function Hd({className:e,children:t,position:n="popper",...r}){return p.jsx(Nd,{children:p.jsxs(Od,{"data-slot":"select-content",className:oe("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:[p.jsx(Gd,{}),p.jsx(_d,{className:oe("p-1",n==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"),children:t}),p.jsx(Yd,{})]})})}function Ud({className:e,...t}){return p.jsx(jd,{"data-slot":"select-label",className:oe("text-muted-foreground px-2 py-1.5 text-xs",e),...t})}function ta({className:e,children:t,...n}){return p.jsxs(Md,{"data-slot":"select-item",className:oe("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:[p.jsx("span",{className:"absolute right-2 flex size-3.5 items-center justify-center",children:p.jsx(Ld,{children:p.jsx(Ul,{className:"size-4"})})}),p.jsx(Dd,{children:t})]})}function Gd({className:e,...t}){return p.jsx($d,{"data-slot":"select-scroll-up-button",className:oe("flex cursor-default items-center justify-center py-1",e),...t,children:p.jsx(Gl,{className:"size-4"})})}function Yd({className:e,...t}){return p.jsx(Fd,{"data-slot":"select-scroll-down-button",className:oe("flex cursor-default items-center justify-center py-1",e),...t,children:p.jsx(On,{className:"size-4"})})}var sn="Popover",[na,rp]=Ye(sn,[nt]),yt=nt(),[Kd,Ie]=na(sn),ra=e=>{const{__scopePopover:t,children:n,open:r,defaultOpen:o,onOpenChange:s,modal:a=!1}=e,i=yt(t),c=l.useRef(null),[u,d]=l.useState(!1),[f,g]=dt({prop:r,defaultProp:o??!1,onChange:s,caller:sn});return p.jsx(Un,{...i,children:p.jsx(Kd,{scope:t,contentId:le(),triggerRef:c,open:f,onOpenChange:g,onOpenToggle:l.useCallback(()=>g(h=>!h),[g]),hasCustomAnchor:u,onCustomAnchorAdd:l.useCallback(()=>d(!0),[]),onCustomAnchorRemove:l.useCallback(()=>d(!1),[]),modal:a,children:n})})};ra.displayName=sn;var oa="PopoverAnchor",Xd=l.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=Ie(oa,n),s=yt(n),{onCustomAnchorAdd:a,onCustomAnchorRemove:i}=o;return l.useEffect(()=>(a(),()=>i()),[a,i]),p.jsx(Jt,{...s,...r,ref:t})});Xd.displayName=oa;var sa="PopoverTrigger",aa=l.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=Ie(sa,n),s=yt(n),a=se(t,o.triggerRef),i=p.jsx(K.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":da(o.open),...r,ref:a,onClick:q(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?i:p.jsx(Jt,{asChild:!0,...s,children:i})});aa.displayName=sa;var sr="PopoverPortal",[qd,Zd]=na(sr,{forceMount:void 0}),ia=e=>{const{__scopePopover:t,forceMount:n,children:r,container:o}=e,s=Ie(sr,t);return p.jsx(qd,{scope:t,forceMount:n,children:p.jsx(Ae,{present:n||s.open,children:p.jsx(pt,{asChild:!0,container:o,children:r})})})};ia.displayName=sr;var st="PopoverContent",la=l.forwardRef((e,t)=>{const n=Zd(st,e.__scopePopover),{forceMount:r=n.forceMount,...o}=e,s=Ie(st,e.__scopePopover);return p.jsx(Ae,{present:r||s.open,children:s.modal?p.jsx(Qd,{...o,ref:t}):p.jsx(ef,{...o,ref:t})})});la.displayName=st;var Jd=De("PopoverContent.RemoveScroll"),Qd=l.forwardRef((e,t)=>{const n=Ie(st,e.__scopePopover),r=l.useRef(null),o=se(t,r),s=l.useRef(!1);return l.useEffect(()=>{const a=r.current;if(a)return Rn(a)},[]),p.jsx(Lt,{as:Jd,allowPinchZoom:!0,children:p.jsx(ca,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:q(e.onCloseAutoFocus,a=>{var i;a.preventDefault(),s.current||(i=n.triggerRef.current)==null||i.focus()}),onPointerDownOutside:q(e.onPointerDownOutside,a=>{const i=a.detail.originalEvent,c=i.button===0&&i.ctrlKey===!0,u=i.button===2||c;s.current=u},{checkForDefaultPrevented:!1}),onFocusOutside:q(e.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1})})})}),ef=l.forwardRef((e,t)=>{const n=Ie(st,e.__scopePopover),r=l.useRef(!1),o=l.useRef(!1);return p.jsx(ca,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{var a,i;(a=e.onCloseAutoFocus)==null||a.call(e,s),s.defaultPrevented||(r.current||(i=n.triggerRef.current)==null||i.focus(),s.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:s=>{var c,u;(c=e.onInteractOutside)==null||c.call(e,s),s.defaultPrevented||(r.current=!0,s.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const a=s.target;((u=n.triggerRef.current)==null?void 0:u.contains(a))&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&o.current&&s.preventDefault()}})}),ca=l.forwardRef((e,t)=>{const{__scopePopover:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:s,disableOutsidePointerEvents:a,onEscapeKeyDown:i,onPointerDownOutside:c,onFocusOutside:u,onInteractOutside:d,...f}=e,g=Ie(st,n),h=yt(n);return wn(),p.jsx(Nt,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:s,children:p.jsx(ft,{asChild:!0,disableOutsidePointerEvents:a,onInteractOutside:d,onEscapeKeyDown:i,onPointerDownOutside:c,onFocusOutside:u,onDismiss:()=>g.onOpenChange(!1),children:p.jsx(Gn,{"data-state":da(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)"}})})})}),ua="PopoverClose",tf=l.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=Ie(ua,n);return p.jsx(K.button,{type:"button",...r,ref:t,onClick:q(e.onClick,()=>o.onOpenChange(!1))})});tf.displayName=ua;var nf="PopoverArrow",rf=l.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=yt(n);return p.jsx(Yn,{...o,...r,ref:t})});rf.displayName=nf;function da(e){return e?"open":"closed"}var of=ra,sf=aa,af=ia,lf=la;function cf({...e}){return p.jsx(of,{"data-slot":"popover",...e})}function uf({...e}){return p.jsx(sf,{"data-slot":"popover-trigger",...e})}function df({className:e,align:t="center",sideOffset:n=4,...r}){return p.jsx(af,{children:p.jsx(lf,{"data-slot":"popover-content",align:t,sideOffset:n,className:oe("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 fa=1,ff=.9,pf=.8,mf=.17,ar=.1,ir=.999,gf=.9999,hf=.99,vf=/[\\\/_+.#"@\[\(\{&]/,bf=/[\\\/_+.#"@\[\(\{&]/g,xf=/[\s-]/,pa=/[\s-]/g;function lr(e,t,n,r,o,s,a){if(s===t.length)return o===e.length?fa:hf;var i=`${o},${s}`;if(a[i]!==void 0)return a[i];for(var c=r.charAt(s),u=n.indexOf(c,o),d=0,f,g,h,v;u>=0;)f=lr(e,t,n,r,u+1,s+1,a),f>d&&(u===o?f*=fa:vf.test(e.charAt(u-1))?(f*=pf,h=e.slice(o,u-1).match(bf),h&&o>0&&(f*=Math.pow(ir,h.length))):xf.test(e.charAt(u-1))?(f*=ff,v=e.slice(o,u-1).match(pa),v&&o>0&&(f*=Math.pow(ir,v.length))):(f*=mf,o>0&&(f*=Math.pow(ir,u-o))),e.charAt(u)!==t.charAt(s)&&(f*=gf)),(f<ar&&n.charAt(u-1)===r.charAt(s+1)||r.charAt(s+1)===r.charAt(s)&&n.charAt(u-1)!==r.charAt(s))&&(g=lr(e,t,n,r,u+1,s+2,a),g*ar>f&&(f=g*ar)),f>d&&(d=f),u=n.indexOf(c,u+1);return a[i]=d,d}function ma(e){return e.toLowerCase().replace(pa," ")}function yf(e,t,n){return e=n&&n.length>0?`${e+" "+n.join(" ")}`:e,lr(e,t,ma(e),ma(t),0,0,{})}var wt='[cmdk-group=""]',cr='[cmdk-group-items=""]',wf='[cmdk-group-heading=""]',ga='[cmdk-item=""]',ha=`${ga}:not([aria-disabled="true"])`,ur="cmdk-item-select",at="data-value",Cf=(e,t,n)=>yf(e,t,n),va=l.createContext(void 0),Ct=()=>l.useContext(va),ba=l.createContext(void 0),dr=()=>l.useContext(ba),xa=l.createContext(void 0),ya=l.forwardRef((e,t)=>{let n=it(()=>{var C,O;return{search:"",value:(O=(C=e.value)!=null?C:e.defaultValue)!=null?O:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),r=it(()=>new Set),o=it(()=>new Map),s=it(()=>new Map),a=it(()=>new Set),i=wa(e),{label:c,children:u,value:d,onValueChange:f,filter:g,shouldFilter:h,loop:v,disablePointerSelection:m=!1,vimBindings:b=!0,...y}=e,x=le(),w=le(),E=le(),P=l.useRef(null),N=If();Be(()=>{if(d!==void 0){let C=d.trim();n.current.value=C,R.emit()}},[d]),Be(()=>{N(6,J)},[]);let R=l.useMemo(()=>({subscribe:C=>(a.current.add(C),()=>a.current.delete(C)),snapshot:()=>n.current,setState:(C,O,M)=>{var _,B,A,D;if(!Object.is(n.current[C],O)){if(n.current[C]=O,C==="search")X(),G(),N(1,Z);else if(C==="value"){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let W=document.getElementById(E);W?W.focus():(_=document.getElementById(x))==null||_.focus()}if(N(7,()=>{var W;n.current.selectedItemId=(W=F())==null?void 0:W.id,R.emit()}),M||N(5,J),((B=i.current)==null?void 0:B.value)!==void 0){let W=O??"";(D=(A=i.current).onValueChange)==null||D.call(A,W);return}}R.emit()}},emit:()=>{a.current.forEach(C=>C())}}),[]),T=l.useMemo(()=>({value:(C,O,M)=>{var _;O!==((_=s.current.get(C))==null?void 0:_.value)&&(s.current.set(C,{value:O,keywords:M}),n.current.filtered.items.set(C,V(O,M)),N(2,()=>{G(),R.emit()}))},item:(C,O)=>(r.current.add(C),O&&(o.current.has(O)?o.current.get(O).add(C):o.current.set(O,new Set([C]))),N(3,()=>{X(),G(),n.current.value||Z(),R.emit()}),()=>{s.current.delete(C),r.current.delete(C),n.current.filtered.items.delete(C);let M=F();N(4,()=>{X(),(M==null?void 0:M.getAttribute("id"))===C&&Z(),R.emit()})}),group:C=>(o.current.has(C)||o.current.set(C,new Set),()=>{s.current.delete(C),o.current.delete(C)}),filter:()=>i.current.shouldFilter,label:c||e["aria-label"],getDisablePointerSelection:()=>i.current.disablePointerSelection,listId:x,inputId:E,labelId:w,listInnerRef:P}),[]);function V(C,O){var M,_;let B=(_=(M=i.current)==null?void 0:M.filter)!=null?_:Cf;return C?B(C,n.current.search,O):0}function G(){if(!n.current.search||i.current.shouldFilter===!1)return;let C=n.current.filtered.items,O=[];n.current.filtered.groups.forEach(_=>{let B=o.current.get(_),A=0;B.forEach(D=>{let W=C.get(D);A=Math.max(W,A)}),O.push([_,A])});let M=P.current;Y().sort((_,B)=>{var A,D;let W=_.getAttribute("id"),H=B.getAttribute("id");return((A=C.get(H))!=null?A:0)-((D=C.get(W))!=null?D:0)}).forEach(_=>{let B=_.closest(cr);B?B.appendChild(_.parentElement===B?_:_.closest(`${cr} > *`)):M.appendChild(_.parentElement===M?_:_.closest(`${cr} > *`))}),O.sort((_,B)=>B[1]-_[1]).forEach(_=>{var B;let A=(B=P.current)==null?void 0:B.querySelector(`${wt}[${at}="${encodeURIComponent(_[0])}"]`);A==null||A.parentElement.appendChild(A)})}function Z(){let C=Y().find(M=>M.getAttribute("aria-disabled")!=="true"),O=C==null?void 0:C.getAttribute(at);R.setState("value",O||void 0)}function X(){var C,O,M,_;if(!n.current.search||i.current.shouldFilter===!1){n.current.filtered.count=r.current.size;return}n.current.filtered.groups=new Set;let B=0;for(let A of r.current){let D=(O=(C=s.current.get(A))==null?void 0:C.value)!=null?O:"",W=(_=(M=s.current.get(A))==null?void 0:M.keywords)!=null?_:[],H=V(D,W);n.current.filtered.items.set(A,H),H>0&&B++}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=B}function J(){var C,O,M;let _=F();_&&(((C=_.parentElement)==null?void 0:C.firstChild)===_&&((M=(O=_.closest(wt))==null?void 0:O.querySelector(wf))==null||M.scrollIntoView({block:"nearest"})),_.scrollIntoView({block:"nearest"}))}function F(){var C;return(C=P.current)==null?void 0:C.querySelector(`${ga}[aria-selected="true"]`)}function Y(){var C;return Array.from(((C=P.current)==null?void 0:C.querySelectorAll(ha))||[])}function $(C){let O=Y()[C];O&&R.setState("value",O.getAttribute(at))}function z(C){var O;let M=F(),_=Y(),B=_.findIndex(D=>D===M),A=_[B+C];(O=i.current)!=null&&O.loop&&(A=B+C<0?_[_.length-1]:B+C===_.length?_[0]:_[B+C]),A&&R.setState("value",A.getAttribute(at))}function k(C){let O=F(),M=O==null?void 0:O.closest(wt),_;for(;M&&!_;)M=C>0?Of(M,wt):_f(M,wt),_=M==null?void 0:M.querySelector(ha);_?R.setState("value",_.getAttribute(at)):z(C)}let Q=()=>$(Y().length-1),S=C=>{C.preventDefault(),C.metaKey?Q():C.altKey?k(1):z(1)},L=C=>{C.preventDefault(),C.metaKey?$(0):C.altKey?k(-1):z(-1)};return l.createElement(K.div,{ref:t,tabIndex:-1,...y,"cmdk-root":"",onKeyDown:C=>{var O;(O=y.onKeyDown)==null||O.call(y,C);let M=C.nativeEvent.isComposing||C.keyCode===229;if(!(C.defaultPrevented||M))switch(C.key){case"n":case"j":{b&&C.ctrlKey&&S(C);break}case"ArrowDown":{S(C);break}case"p":case"k":{b&&C.ctrlKey&&L(C);break}case"ArrowUp":{L(C);break}case"Home":{C.preventDefault(),$(0);break}case"End":{C.preventDefault(),Q();break}case"Enter":{C.preventDefault();let _=F();if(_){let B=new Event(ur);_.dispatchEvent(B)}}}}},l.createElement("label",{"cmdk-label":"",htmlFor:T.inputId,id:T.labelId,style:Mf},c),an(e,C=>l.createElement(ba.Provider,{value:R},l.createElement(va.Provider,{value:T},C))))}),Sf=l.forwardRef((e,t)=>{var n,r;let o=le(),s=l.useRef(null),a=l.useContext(xa),i=Ct(),c=wa(e),u=(r=(n=c.current)==null?void 0:n.forceMount)!=null?r:a==null?void 0:a.forceMount;Be(()=>{if(!u)return i.item(o,a==null?void 0:a.id)},[u]);let d=Ca(o,s,[e.value,e.children,s],e.keywords),f=dr(),g=je(N=>N.value&&N.value===d.current),h=je(N=>u||i.filter()===!1?!0:N.search?N.filtered.items.get(o)>0:!0);l.useEffect(()=>{let N=s.current;if(!(!N||e.disabled))return N.addEventListener(ur,v),()=>N.removeEventListener(ur,v)},[h,e.onSelect,e.disabled]);function v(){var N,R;m(),(R=(N=c.current).onSelect)==null||R.call(N,d.current)}function m(){f.setState("value",d.current,!0)}if(!h)return null;let{disabled:b,value:y,onSelect:x,forceMount:w,keywords:E,...P}=e;return l.createElement(K.div,{ref:Me(s,t),...P,id:o,"cmdk-item":"",role:"option","aria-disabled":!!b,"aria-selected":!!g,"data-disabled":!!b,"data-selected":!!g,onPointerMove:b||i.getDisablePointerSelection()?void 0:m,onClick:b?void 0:v},e.children)}),Ef=l.forwardRef((e,t)=>{let{heading:n,children:r,forceMount:o,...s}=e,a=le(),i=l.useRef(null),c=l.useRef(null),u=le(),d=Ct(),f=je(h=>o||d.filter()===!1?!0:h.search?h.filtered.groups.has(a):!0);Be(()=>d.group(a),[]),Ca(a,i,[e.value,e.heading,c]);let g=l.useMemo(()=>({id:a,forceMount:o}),[o]);return l.createElement(K.div,{ref:Me(i,t),...s,"cmdk-group":"",role:"presentation",hidden:f?void 0:!0},n&&l.createElement("div",{ref:c,"cmdk-group-heading":"","aria-hidden":!0,id:u},n),an(e,h=>l.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":n?u:void 0},l.createElement(xa.Provider,{value:g},h))))}),kf=l.forwardRef((e,t)=>{let{alwaysRender:n,...r}=e,o=l.useRef(null),s=je(a=>!a.search);return!n&&!s?null:l.createElement(K.div,{ref:Me(o,t),...r,"cmdk-separator":"",role:"separator"})}),Pf=l.forwardRef((e,t)=>{let{onValueChange:n,...r}=e,o=e.value!=null,s=dr(),a=je(u=>u.search),i=je(u=>u.selectedItemId),c=Ct();return l.useEffect(()=>{e.value!=null&&s.setState("search",e.value)},[e.value]),l.createElement(K.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:a,onChange:u=>{o||s.setState("search",u.target.value),n==null||n(u.target.value)}})}),Rf=l.forwardRef((e,t)=>{let{children:n,label:r="Suggestions",...o}=e,s=l.useRef(null),a=l.useRef(null),i=je(u=>u.selectedItemId),c=Ct();return l.useEffect(()=>{if(a.current&&s.current){let u=a.current,d=s.current,f,g=new ResizeObserver(()=>{f=requestAnimationFrame(()=>{let h=u.offsetHeight;d.style.setProperty("--cmdk-list-height",h.toFixed(1)+"px")})});return g.observe(u),()=>{cancelAnimationFrame(f),g.unobserve(u)}}},[]),l.createElement(K.div,{ref:Me(s,t),...o,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":i,"aria-label":r,id:c.listId},an(e,u=>l.createElement("div",{ref:Me(a,c.listInnerRef),"cmdk-list-sizer":""},u)))}),Af=l.forwardRef((e,t)=>{let{open:n,onOpenChange:r,overlayClassName:o,contentClassName:s,container:a,...i}=e;return l.createElement(Eo,{open:n,onOpenChange:r},l.createElement(ko,{container:a},l.createElement(Po,{"cmdk-overlay":"",className:o}),l.createElement(Ro,{"aria-label":e.label,"cmdk-dialog":"",className:s},l.createElement(ya,{ref:t,...i}))))}),Tf=l.forwardRef((e,t)=>je(n=>n.filtered.count===0)?l.createElement(K.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null),Nf=l.forwardRef((e,t)=>{let{progress:n,children:r,label:o="Loading...",...s}=e;return l.createElement(K.div,{ref:t,...s,"cmdk-loading":"",role:"progressbar","aria-valuenow":n,"aria-valuemin":0,"aria-valuemax":100,"aria-label":o},an(e,a=>l.createElement("div",{"aria-hidden":!0},a)))}),St=Object.assign(ya,{List:Rf,Item:Sf,Input:Pf,Group:Ef,Separator:kf,Dialog:Af,Empty:Tf,Loading:Nf});function Of(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return n;n=n.nextElementSibling}}function _f(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return n;n=n.previousElementSibling}}function wa(e){let t=l.useRef(e);return Be(()=>{t.current=e}),t}var Be=typeof window>"u"?l.useEffect:l.useLayoutEffect;function it(e){let t=l.useRef();return t.current===void 0&&(t.current=e()),t}function je(e){let t=dr(),n=()=>e(t.snapshot());return l.useSyncExternalStore(t.subscribe,n,n)}function Ca(e,t,n,r=[]){let o=l.useRef(),s=Ct();return Be(()=>{var a;let i=(()=>{var u;for(let d of n){if(typeof d=="string")return d.trim();if(typeof d=="object"&&"current"in d)return d.current?(u=d.current.textContent)==null?void 0:u.trim():o.current}})(),c=r.map(u=>u.trim());s.value(e,i,c),(a=t.current)==null||a.setAttribute(at,i),o.current=i}),o}var If=()=>{let[e,t]=l.useState(),n=it(()=>new Map);return Be(()=>{n.current.forEach(r=>r()),n.current=new Map},[e]),(r,o)=>{n.current.set(r,o),t({})}};function jf(e){let t=e.type;return typeof t=="function"?t(e.props):"render"in t?t.render(e.props):e}function an({asChild:e,children:t},n){return e&&l.isValidElement(t)?l.cloneElement(jf(t),{ref:t.ref},n(t.props.children)):n(t)}var Mf={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};function Df({className:e,...t}){return p.jsx(St,{"data-slot":"command",className:oe("bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",e),...t})}function Lf({className:e,...t}){return p.jsxs("div",{"data-slot":"command-input-wrapper",className:"flex h-9 items-center gap-2 border-b px-3",children:[p.jsx(Oo,{className:"size-4 shrink-0 opacity-50"}),p.jsx(St.Input,{"data-slot":"command-input",className:oe("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 $f({...e}){return p.jsx(St.Empty,{"data-slot":"command-empty",className:"py-6 text-center text-sm",...e})}function Sa({className:e,...t}){return p.jsx(St.Group,{"data-slot":"command-group",className:oe("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 Ea({className:e,...t}){return p.jsx(St.Item,{"data-slot":"command-item",className:oe("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 fr(e){return e.length>0&&e[0].kind==="group"}function Ff(e){return e.multiple?p.jsx(Pa,{...e}):p.jsx(ka,{...e})}const ka=({options:e,placeholder:t="Select...",disabled:n,error:r,helperText:o,value:s,onChange:a})=>{const[i,c]=re.useState(""),u=s??i,d=f=>{c(f),a==null||a(f)};return p.jsxs("div",{className:"w-94",children:[p.jsxs(zd,{value:u,onValueChange:d,disabled:n,children:[p.jsx(Bd,{"aria-invalid":!!r,className:oe("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:p.jsx(Wd,{placeholder:t})}),p.jsx(Hd,{className:"w-full bg-white border border-neutral-black-4",children:fr(e)?e.map(f=>p.jsxs(Vd,{className:"p-2",children:[p.jsx(Ud,{children:f.label}),f.options.map(g=>p.jsx(ta,{value:g.value,disabled:g.disabled,children:g.label},g.value))]},f.label)):e.map(f=>p.jsx(ta,{value:f.value,disabled:f.disabled,className:"hover:cursor-pointer hover:bg-neutral-black-5",children:f.label},f.value))})]}),r&&p.jsx("p",{className:"mt-1 text-xs text-primary-1",children:r}),o&&p.jsx("p",{className:"mt-1 text-xs text-neutral-black-3",children:o})]})},Pa=({options:e,placeholder:t="Select...",disabled:n,error:r,helperText:o,value:s,onChange:a})=>{const[i,c]=re.useState(!1),[u,d]=re.useState([]),f=s??u,g=re.useMemo(()=>fr(e)?e.flatMap(v=>v.options):e,[e]),h=v=>{const m=f.includes(v)?f.filter(b=>b!==v):[...f,v];d(m),a==null||a(m)};return p.jsxs("div",{className:"w-94",children:[p.jsxs(cf,{open:i,onOpenChange:c,children:[p.jsx(uf,{asChild:!0,children:p.jsxs("button",{type:"button",disabled:n,"aria-haspopup":"listbox","aria-expanded":i,className:oe("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:[p.jsx("div",{className:"flex flex-wrap gap-1",children:f.length>0?f.map(v=>p.jsxs(Mo,{type:"outline",onClick:m=>{m.stopPropagation(),h(v)},className:"cursor-pointer border-neutral-black-4 bg-transparent hover:bg-neutral-black-4",children:[p.jsx("span",{className:"text-neutral-black-1",children:v}),p.jsx("div",{className:"flex items-center justify-center rounded-full border border-neutral-black-2 h-5 w-5 ml-1",children:p.jsx(_o,{className:"h-3 w-3 text-neutral-black-1",strokeWidth:2})})]},v)):p.jsx("span",{className:"truncate text-xs text-neutral-black-1",children:t})}),p.jsx(On,{className:"h-4 w-4 text-neutral-black-1"})]})}),p.jsx(df,{className:"p-0 w-full bg-white border border-neutral-black-4",children:p.jsxs(Df,{className:"w-full",children:[p.jsx(Lf,{placeholder:"Search..."}),p.jsx($f,{children:"No results found."}),fr(e)?e.map(v=>p.jsx(Sa,{heading:v.label,children:v.options.map(m=>p.jsxs(Ea,{value:m.label,onSelect:()=>!m.disabled&&h(m.value),disabled:m.disabled,children:[p.jsx("input",{type:"checkbox",readOnly:!0,checked:f.includes(m.value),className:"mr-2"}),m.label]},m.value))},v.label)):p.jsx(Sa,{children:g.map(v=>p.jsxs(Ea,{value:v.label,onSelect:()=>!v.disabled&&h(v.value),disabled:v.disabled,children:[p.jsx("input",{type:"checkbox",readOnly:!0,checked:f.includes(v.value),className:"mr-2"}),v.label]},v.value))})]})})]}),r&&p.jsx("p",{className:"mt-1 text-xs text-primary-1",children:r}),o&&p.jsx("p",{className:"mt-1 text-xs text-neutral-black-3",children:o})]})};ne.Badge=Mo,ne.Button=mi,ne.Dialog=Zl,ne.DialogClose=Ql,ne.DialogContent=ec,ne.DialogDescription=oc,ne.DialogFooter=nc,ne.DialogHeader=tc,ne.DialogOverlay=jo,ne.DialogPortal=Io,ne.DialogTitle=rc,ne.DialogTrigger=Jl,ne.EmailInput=Ju,ne.MultiSelect=Pa,ne.PasswordInput=Qu,ne.SearchInput=ed,ne.SelectOption=Ff,ne.SingleSelect=ka,ne.Tooltip=Ku,ne.TooltipContent=qu,ne.TooltipProvider=ks,ne.TooltipTrigger=Xu,ne.cn=oe,Object.defineProperty(ne,Symbol.toStringTag,{value:"Module"})});