@uinetworks/design-system 1.0.2 → 1.0.4

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.
@@ -0,0 +1,54 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const ue=require("react"),Ir=require("react-dom");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(ue),Ft=Mr(Ir);var yt={exports:{}},dt={};var qn;function zi(){if(qn)return dt;qn=1;var e=ue,t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function s(a,c,u){var d,m={},h=null,g=null;u!==void 0&&(h=""+u),c.key!==void 0&&(h=""+c.key),c.ref!==void 0&&(g=c.ref);for(d in c)r.call(c,d)&&!i.hasOwnProperty(d)&&(m[d]=c[d]);if(a&&a.defaultProps)for(d in c=a.defaultProps,c)m[d]===void 0&&(m[d]=c[d]);return{$$typeof:t,type:a,key:h,ref:g,props:m,_owner:o.current}}return dt.Fragment=n,dt.jsx=s,dt.jsxs=s,dt}var ft={};var Zn;function Hi(){return Zn||(Zn=1,process.env.NODE_ENV!=="production"&&(function(){var e=ue,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),a=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),g=Symbol.for("react.offscreen"),w=Symbol.iterator,p="@@iterator";function v(f){if(f===null||typeof f!="object")return null;var R=w&&f[w]||f[p];return typeof R=="function"?R:null}var y=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function b(f){{for(var R=arguments.length,O=new Array(R>1?R-1:0),j=1;j<R;j++)O[j-1]=arguments[j];S("error",f,O)}}function S(f,R,O){{var j=y.ReactDebugCurrentFrame,Z=j.getStackAddendum();Z!==""&&(R+="%s",O=O.concat([Z]));var Q=O.map(function(G){return String(G)});Q.unshift("Warning: "+R),Function.prototype.apply.call(console[f],console,Q)}}var C=!1,A=!1,_=!1,P=!1,k=!1,D;D=Symbol.for("react.module.reference");function V(f){return!!(typeof f=="string"||typeof f=="function"||f===r||f===i||k||f===o||f===u||f===d||P||f===g||C||A||_||typeof f=="object"&&f!==null&&(f.$$typeof===h||f.$$typeof===m||f.$$typeof===s||f.$$typeof===a||f.$$typeof===c||f.$$typeof===D||f.getModuleId!==void 0))}function U(f,R,O){var j=f.displayName;if(j)return j;var Z=R.displayName||R.name||"";return Z!==""?O+"("+Z+")":O}function $(f){return f.displayName||"Context"}function W(f){if(f==null)return null;if(typeof f.tag=="number"&&b("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof f=="function")return f.displayName||f.name||null;if(typeof f=="string")return f;switch(f){case r:return"Fragment";case n:return"Portal";case i:return"Profiler";case o:return"StrictMode";case u:return"Suspense";case d:return"SuspenseList"}if(typeof f=="object")switch(f.$$typeof){case a:var R=f;return $(R)+".Consumer";case s:var O=f;return $(O._context)+".Provider";case c:return U(f,f.render,"ForwardRef");case m:var j=f.displayName||null;return j!==null?j:W(f.type)||"Memo";case h:{var Z=f,Q=Z._payload,G=Z._init;try{return W(G(Q))}catch{return null}}}return null}var L=Object.assign,z=0,M,F,E,K,se,ve,xe;function ee(){}ee.__reactDisabledLog=!0;function te(){{if(z===0){M=console.log,F=console.info,E=console.warn,K=console.error,se=console.group,ve=console.groupCollapsed,xe=console.groupEnd;var f={configurable:!0,enumerable:!0,value:ee,writable:!0};Object.defineProperties(console,{info:f,log:f,warn:f,error:f,group:f,groupCollapsed:f,groupEnd:f})}z++}}function be(){{if(z--,z===0){var f={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:L({},f,{value:M}),info:L({},f,{value:F}),warn:L({},f,{value:E}),error:L({},f,{value:K}),group:L({},f,{value:se}),groupCollapsed:L({},f,{value:ve}),groupEnd:L({},f,{value:xe})})}z<0&&b("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var me=y.ReactCurrentDispatcher,T;function X(f,R,O){{if(T===void 0)try{throw Error()}catch(Z){var j=Z.stack.trim().match(/\n( *(at )?)/);T=j&&j[1]||""}return`
2
+ `+T+f}}var ne=!1,Y;{var q=typeof WeakMap=="function"?WeakMap:Map;Y=new q}function J(f,R){if(!f||ne)return"";{var O=Y.get(f);if(O!==void 0)return O}var j;ne=!0;var Z=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var Q;Q=me.current,me.current=null,te();try{if(R){var G=function(){throw Error()};if(Object.defineProperty(G.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(G,[])}catch(ge){j=ge}Reflect.construct(f,[],G)}else{try{G.call()}catch(ge){j=ge}f.call(G.prototype)}}else{try{throw Error()}catch(ge){j=ge}f()}}catch(ge){if(ge&&j&&typeof ge.stack=="string"){for(var H=ge.stack.split(`
3
+ `),fe=j.stack.split(`
4
+ `),ie=H.length-1,ae=fe.length-1;ie>=1&&ae>=0&&H[ie]!==fe[ae];)ae--;for(;ie>=1&&ae>=0;ie--,ae--)if(H[ie]!==fe[ae]){if(ie!==1||ae!==1)do if(ie--,ae--,ae<0||H[ie]!==fe[ae]){var Se=`
5
+ `+H[ie].replace(" at new "," at ");return f.displayName&&Se.includes("<anonymous>")&&(Se=Se.replace("<anonymous>",f.displayName)),typeof f=="function"&&Y.set(f,Se),Se}while(ie>=1&&ae>=0);break}}}finally{ne=!1,me.current=Q,be(),Error.prepareStackTrace=Z}var Je=f?f.displayName||f.name:"",He=Je?X(Je):"";return typeof f=="function"&&Y.set(f,He),He}function he(f,R,O){return J(f,!1)}function _e(f){var R=f.prototype;return!!(R&&R.isReactComponent)}function De(f,R,O){if(f==null)return"";if(typeof f=="function")return J(f,_e(f));if(typeof f=="string")return X(f);switch(f){case u:return X("Suspense");case d:return X("SuspenseList")}if(typeof f=="object")switch(f.$$typeof){case c:return he(f.render);case m:return De(f.type,R,O);case h:{var j=f,Z=j._payload,Q=j._init;try{return De(Q(Z),R,O)}catch{}}}return""}var Ne=Object.prototype.hasOwnProperty,qe={},Ln=y.ReactDebugCurrentFrame;function bt(f){if(f){var R=f._owner,O=De(f.type,f._source,R?R.type:null);Ln.setExtraStackFrame(O)}else Ln.setExtraStackFrame(null)}function xi(f,R,O,j,Z){{var Q=Function.call.bind(Ne);for(var G in f)if(Q(f,G)){var H=void 0;try{if(typeof f[G]!="function"){var fe=Error((j||"React class")+": "+O+" type `"+G+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof f[G]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw fe.name="Invariant Violation",fe}H=f[G](R,G,j,O,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(ie){H=ie}H&&!(H instanceof Error)&&(bt(Z),b("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",j||"React class",O,G,typeof H),bt(null)),H instanceof Error&&!(H.message in qe)&&(qe[H.message]=!0,bt(Z),b("Failed %s type: %s",O,H.message),bt(null))}}}var Si=Array.isArray;function Xt(f){return Si(f)}function Ci(f){{var R=typeof Symbol=="function"&&Symbol.toStringTag,O=R&&f[Symbol.toStringTag]||f.constructor.name||"Object";return O}}function Ei(f){try{return Fn(f),!1}catch{return!0}}function Fn(f){return""+f}function Wn(f){if(Ei(f))return b("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Ci(f)),Fn(f)}var Bn=y.ReactCurrentOwner,Ri={key:!0,ref:!0,__self:!0,__source:!0},Vn,$n;function ki(f){if(Ne.call(f,"ref")){var R=Object.getOwnPropertyDescriptor(f,"ref").get;if(R&&R.isReactWarning)return!1}return f.ref!==void 0}function Pi(f){if(Ne.call(f,"key")){var R=Object.getOwnPropertyDescriptor(f,"key").get;if(R&&R.isReactWarning)return!1}return f.key!==void 0}function Ai(f,R){typeof f.ref=="string"&&Bn.current}function Ti(f,R){{var O=function(){Vn||(Vn=!0,b("%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://reactjs.org/link/special-props)",R))};O.isReactWarning=!0,Object.defineProperty(f,"key",{get:O,configurable:!0})}}function Oi(f,R){{var O=function(){$n||($n=!0,b("%s: `ref` 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://reactjs.org/link/special-props)",R))};O.isReactWarning=!0,Object.defineProperty(f,"ref",{get:O,configurable:!0})}}var _i=function(f,R,O,j,Z,Q,G){var H={$$typeof:t,type:f,key:R,ref:O,props:G,_owner:Q};return H._store={},Object.defineProperty(H._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(H,"_self",{configurable:!1,enumerable:!1,writable:!1,value:j}),Object.defineProperty(H,"_source",{configurable:!1,enumerable:!1,writable:!1,value:Z}),Object.freeze&&(Object.freeze(H.props),Object.freeze(H)),H};function Ni(f,R,O,j,Z){{var Q,G={},H=null,fe=null;O!==void 0&&(Wn(O),H=""+O),Pi(R)&&(Wn(R.key),H=""+R.key),ki(R)&&(fe=R.ref,Ai(R,Z));for(Q in R)Ne.call(R,Q)&&!Ri.hasOwnProperty(Q)&&(G[Q]=R[Q]);if(f&&f.defaultProps){var ie=f.defaultProps;for(Q in ie)G[Q]===void 0&&(G[Q]=ie[Q])}if(H||fe){var ae=typeof f=="function"?f.displayName||f.name||"Unknown":f;H&&Ti(G,ae),fe&&Oi(G,ae)}return _i(f,H,fe,Z,j,Bn.current,G)}}var qt=y.ReactCurrentOwner,zn=y.ReactDebugCurrentFrame;function Ze(f){if(f){var R=f._owner,O=De(f.type,f._source,R?R.type:null);zn.setExtraStackFrame(O)}else zn.setExtraStackFrame(null)}var Zt;Zt=!1;function Jt(f){return typeof f=="object"&&f!==null&&f.$$typeof===t}function Hn(){{if(qt.current){var f=W(qt.current.type);if(f)return`
6
+
7
+ Check the render method of \``+f+"`."}return""}}function Ii(f){return""}var Un={};function Mi(f){{var R=Hn();if(!R){var O=typeof f=="string"?f:f.displayName||f.name;O&&(R=`
8
+
9
+ Check the top-level render call using <`+O+">.")}return R}}function Yn(f,R){{if(!f._store||f._store.validated||f.key!=null)return;f._store.validated=!0;var O=Mi(R);if(Un[O])return;Un[O]=!0;var j="";f&&f._owner&&f._owner!==qt.current&&(j=" It was passed a child from "+W(f._owner.type)+"."),Ze(f),b('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',O,j),Ze(null)}}function Gn(f,R){{if(typeof f!="object")return;if(Xt(f))for(var O=0;O<f.length;O++){var j=f[O];Jt(j)&&Yn(j,R)}else if(Jt(f))f._store&&(f._store.validated=!0);else if(f){var Z=v(f);if(typeof Z=="function"&&Z!==f.entries)for(var Q=Z.call(f),G;!(G=Q.next()).done;)Jt(G.value)&&Yn(G.value,R)}}}function ji(f){{var R=f.type;if(R==null||typeof R=="string")return;var O;if(typeof R=="function")O=R.propTypes;else if(typeof R=="object"&&(R.$$typeof===c||R.$$typeof===m))O=R.propTypes;else return;if(O){var j=W(R);xi(O,f.props,"prop",j,f)}else if(R.PropTypes!==void 0&&!Zt){Zt=!0;var Z=W(R);b("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",Z||"Unknown")}typeof R.getDefaultProps=="function"&&!R.getDefaultProps.isReactClassApproved&&b("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Di(f){{for(var R=Object.keys(f.props),O=0;O<R.length;O++){var j=R[O];if(j!=="children"&&j!=="key"){Ze(f),b("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",j),Ze(null);break}}f.ref!==null&&(Ze(f),b("Invalid attribute `ref` supplied to `React.Fragment`."),Ze(null))}}var Kn={};function Xn(f,R,O,j,Z,Q){{var G=V(f);if(!G){var H="";(f===void 0||typeof f=="object"&&f!==null&&Object.keys(f).length===0)&&(H+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var fe=Ii();fe?H+=fe:H+=Hn();var ie;f===null?ie="null":Xt(f)?ie="array":f!==void 0&&f.$$typeof===t?(ie="<"+(W(f.type)||"Unknown")+" />",H=" Did you accidentally export a JSX literal instead of a component?"):ie=typeof f,b("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",ie,H)}var ae=Ni(f,R,O,Z,Q);if(ae==null)return ae;if(G){var Se=R.children;if(Se!==void 0)if(j)if(Xt(Se)){for(var Je=0;Je<Se.length;Je++)Gn(Se[Je],f);Object.freeze&&Object.freeze(Se)}else b("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 Gn(Se,f)}if(Ne.call(R,"key")){var He=W(f),ge=Object.keys(R).filter(function($i){return $i!=="key"}),Qt=ge.length>0?"{key: someKey, "+ge.join(": ..., ")+": ...}":"{key: someKey}";if(!Kn[He+Qt]){var Vi=ge.length>0?"{"+ge.join(": ..., ")+": ...}":"{}";b(`A props object containing a "key" prop is being spread into JSX:
10
+ let props = %s;
11
+ <%s {...props} />
12
+ React keys must be passed directly to JSX without using spread:
13
+ let props = %s;
14
+ <%s key={someKey} {...props} />`,Qt,He,Vi,He),Kn[He+Qt]=!0}}return f===r?Di(ae):ji(ae),ae}}function Li(f,R,O){return Xn(f,R,O,!0)}function Fi(f,R,O){return Xn(f,R,O,!1)}var Wi=Fi,Bi=Li;ft.Fragment=r,ft.jsx=Wi,ft.jsxs=Bi})()),ft}var Jn;function Ui(){return Jn||(Jn=1,process.env.NODE_ENV==="production"?yt.exports=zi():yt.exports=Hi()),yt.exports}var x=Ui();function Qn(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function gt(...e){return t=>{let n=!1;const r=e.map(o=>{const i=Qn(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():Qn(e[o],null)}}}}function ce(...e){return l.useCallback(gt(...e),e)}var Yi=Symbol.for("react.lazy"),_t=l[" use ".trim().toString()];function Gi(e){return typeof e=="object"&&e!==null&&"then"in e}function jr(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===Yi&&"_payload"in e&&Gi(e._payload)}function Ki(e){const t=qi(e),n=l.forwardRef((r,o)=>{let{children:i,...s}=r;jr(i)&&typeof _t=="function"&&(i=_t(i._payload));const a=l.Children.toArray(i),c=a.find(Ji);if(c){const u=c.props.children,d=a.map(m=>m===c?l.Children.count(u)>1?l.Children.only(null):l.isValidElement(u)?u.props.children:null:m);return x.jsx(t,{...s,ref:o,children:l.isValidElement(u)?l.cloneElement(u,void 0,d):null})}return x.jsx(t,{...s,ref:o,children:i})});return n.displayName=`${e}.Slot`,n}var Xi=Ki("Slot");function qi(e){const t=l.forwardRef((n,r)=>{let{children:o,...i}=n;if(jr(o)&&typeof _t=="function"&&(o=_t(o._payload)),l.isValidElement(o)){const s=es(o),a=Qi(i,o.props);return o.type!==l.Fragment&&(a.ref=r?gt(r,s):s),l.cloneElement(o,a)}return l.Children.count(o)>1?l.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Zi=Symbol("radix.slottable");function Ji(e){return l.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Zi}function Qi(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 es(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function Dr(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=Dr(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Lr(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Dr(e))&&(r&&(r+=" "),r+=t);return r}const er=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,tr=Lr,ts=(e,t)=>n=>{var r;if(t?.variants==null)return tr(e,n?.class,n?.className);const{variants:o,defaultVariants:i}=t,s=Object.keys(o).map(u=>{const d=n?.[u],m=i?.[u];if(d===null)return null;const h=er(d)||er(m);return o[u][h]}),a=n&&Object.entries(n).reduce((u,d)=>{let[m,h]=d;return h===void 0||(u[m]=h),u},{}),c=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,d)=>{let{class:m,className:h,...g}=d;return Object.entries(g).every(w=>{let[p,v]=w;return Array.isArray(v)?v.includes({...i,...a}[p]):{...i,...a}[p]===v})?[...u,m,h]:u},[]);return tr(e,s,c,n?.class,n?.className)},ns=(e,t)=>{const n=new Array(e.length+t.length);for(let r=0;r<e.length;r++)n[r]=e[r];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},rs=(e,t)=>({classGroupId:e,validator:t}),Fr=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),Nt="-",nr=[],os="arbitrary..",is=e=>{const t=as(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:s=>{if(s.startsWith("[")&&s.endsWith("]"))return ss(s);const a=s.split(Nt),c=a[0]===""&&a.length>1?1:0;return Wr(a,c,t)},getConflictingClassGroupIds:(s,a)=>{if(a){const c=r[s],u=n[s];return c?u?ns(u,c):c:u||nr}return n[s]||nr}}},Wr=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const o=e[t],i=n.nextPart.get(o);if(i){const u=Wr(e,t+1,i);if(u)return u}const s=n.validators;if(s===null)return;const a=t===0?e.join(Nt):e.slice(t).join(Nt),c=s.length;for(let u=0;u<c;u++){const d=s[u];if(d.validator(a))return d.classGroupId}},ss=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),n=t.indexOf(":"),r=t.slice(0,n);return r?os+r:void 0})(),as=e=>{const{theme:t,classGroups:n}=e;return cs(n,t)},cs=(e,t)=>{const n=Fr();for(const r in e){const o=e[r];En(o,n,r,t)}return n},En=(e,t,n,r)=>{const o=e.length;for(let i=0;i<o;i++){const s=e[i];ls(s,t,n,r)}},ls=(e,t,n,r)=>{if(typeof e=="string"){us(e,t,n);return}if(typeof e=="function"){ds(e,t,n,r);return}fs(e,t,n,r)},us=(e,t,n)=>{const r=e===""?t:Br(t,e);r.classGroupId=n},ds=(e,t,n,r)=>{if(ps(e)){En(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(rs(n,e))},fs=(e,t,n,r)=>{const o=Object.entries(e),i=o.length;for(let s=0;s<i;s++){const[a,c]=o[s];En(c,Br(t,a),n,r)}},Br=(e,t)=>{let n=e;const r=t.split(Nt),o=r.length;for(let i=0;i<o;i++){const s=r[i];let a=n.nextPart.get(s);a||(a=Fr(),n.nextPart.set(s,a)),n=a}return n},ps=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,ms=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null);const o=(i,s)=>{n[i]=s,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(i){let s=n[i];if(s!==void 0)return s;if((s=r[i])!==void 0)return o(i,s),s},set(i,s){i in n?n[i]=s:o(i,s)}}},fn="!",rr=":",hs=[],or=(e,t,n,r,o)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:o}),gs=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=o=>{const i=[];let s=0,a=0,c=0,u;const d=o.length;for(let p=0;p<d;p++){const v=o[p];if(s===0&&a===0){if(v===rr){i.push(o.slice(c,p)),c=p+1;continue}if(v==="/"){u=p;continue}}v==="["?s++:v==="]"?s--:v==="("?a++:v===")"&&a--}const m=i.length===0?o:o.slice(c);let h=m,g=!1;m.endsWith(fn)?(h=m.slice(0,-1),g=!0):m.startsWith(fn)&&(h=m.slice(1),g=!0);const w=u&&u>c?u-c:void 0;return or(i,g,h,w)};if(t){const o=t+rr,i=r;r=s=>s.startsWith(o)?i(s.slice(o.length)):or(hs,!1,s,void 0,!0)}if(n){const o=r;r=i=>n({className:i,parseClassName:o})}return r},vs=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((n,r)=>{t.set(n,1e6+r)}),n=>{const r=[];let o=[];for(let i=0;i<n.length;i++){const s=n[i],a=s[0]==="[",c=t.has(s);a||c?(o.length>0&&(o.sort(),r.push(...o),o=[]),r.push(s)):o.push(s)}return o.length>0&&(o.sort(),r.push(...o)),r}},bs=e=>({cache:ms(e.cacheSize),parseClassName:gs(e),sortModifiers:vs(e),...is(e)}),ys=/\s+/,ws=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o,sortModifiers:i}=t,s=[],a=e.trim().split(ys);let c="";for(let u=a.length-1;u>=0;u-=1){const d=a[u],{isExternal:m,modifiers:h,hasImportantModifier:g,baseClassName:w,maybePostfixModifierPosition:p}=n(d);if(m){c=d+(c.length>0?" "+c:c);continue}let v=!!p,y=r(v?w.substring(0,p):w);if(!y){if(!v){c=d+(c.length>0?" "+c:c);continue}if(y=r(w),!y){c=d+(c.length>0?" "+c:c);continue}v=!1}const b=h.length===0?"":h.length===1?h[0]:i(h).join(":"),S=g?b+fn:b,C=S+y;if(s.indexOf(C)>-1)continue;s.push(C);const A=o(y,v);for(let _=0;_<A.length;++_){const P=A[_];s.push(S+P)}c=d+(c.length>0?" "+c:c)}return c},xs=(...e)=>{let t=0,n,r,o="";for(;t<e.length;)(n=e[t++])&&(r=Vr(n))&&(o&&(o+=" "),o+=r);return o},Vr=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=Vr(e[r]))&&(n&&(n+=" "),n+=t);return n},Ss=(e,...t)=>{let n,r,o,i;const s=c=>{const u=t.reduce((d,m)=>m(d),e());return n=bs(u),r=n.cache.get,o=n.cache.set,i=a,a(c)},a=c=>{const u=r(c);if(u)return u;const d=ws(c,n);return o(c,d),d};return i=s,(...c)=>i(xs(...c))},Cs=[],le=e=>{const t=n=>n[e]||Cs;return t.isThemeGetter=!0,t},$r=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,zr=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Es=/^\d+\/\d+$/,Rs=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,ks=/\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$/,Ps=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,As=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Ts=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Qe=e=>Es.test(e),B=e=>!!e&&!Number.isNaN(Number(e)),Le=e=>!!e&&Number.isInteger(Number(e)),en=e=>e.endsWith("%")&&B(e.slice(0,-1)),Ie=e=>Rs.test(e),Os=()=>!0,_s=e=>ks.test(e)&&!Ps.test(e),Hr=()=>!1,Ns=e=>As.test(e),Is=e=>Ts.test(e),Ms=e=>!N(e)&&!I(e),js=e=>st(e,Gr,Hr),N=e=>$r.test(e),Ue=e=>st(e,Kr,_s),tn=e=>st(e,Bs,B),ir=e=>st(e,Ur,Hr),Ds=e=>st(e,Yr,Is),wt=e=>st(e,Xr,Ns),I=e=>zr.test(e),pt=e=>at(e,Kr),Ls=e=>at(e,Vs),sr=e=>at(e,Ur),Fs=e=>at(e,Gr),Ws=e=>at(e,Yr),xt=e=>at(e,Xr,!0),st=(e,t,n)=>{const r=$r.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},at=(e,t,n=!1)=>{const r=zr.exec(e);return r?r[1]?t(r[1]):n:!1},Ur=e=>e==="position"||e==="percentage",Yr=e=>e==="image"||e==="url",Gr=e=>e==="length"||e==="size"||e==="bg-size",Kr=e=>e==="length",Bs=e=>e==="number",Vs=e=>e==="family-name",Xr=e=>e==="shadow",$s=()=>{const e=le("color"),t=le("font"),n=le("text"),r=le("font-weight"),o=le("tracking"),i=le("leading"),s=le("breakpoint"),a=le("container"),c=le("spacing"),u=le("radius"),d=le("shadow"),m=le("inset-shadow"),h=le("text-shadow"),g=le("drop-shadow"),w=le("blur"),p=le("perspective"),v=le("aspect"),y=le("ease"),b=le("animate"),S=()=>["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"],A=()=>[...C(),I,N],_=()=>["auto","hidden","clip","visible","scroll"],P=()=>["auto","contain","none"],k=()=>[I,N,c],D=()=>[Qe,"full","auto",...k()],V=()=>[Le,"none","subgrid",I,N],U=()=>["auto",{span:["full",Le,I,N]},Le,I,N],$=()=>[Le,"auto",I,N],W=()=>["auto","min","max","fr",I,N],L=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],z=()=>["start","end","center","stretch","center-safe","end-safe"],M=()=>["auto",...k()],F=()=>[Qe,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...k()],E=()=>[e,I,N],K=()=>[...C(),sr,ir,{position:[I,N]}],se=()=>["no-repeat",{repeat:["","x","y","space","round"]}],ve=()=>["auto","cover","contain",Fs,js,{size:[I,N]}],xe=()=>[en,pt,Ue],ee=()=>["","none","full",u,I,N],te=()=>["",B,pt,Ue],be=()=>["solid","dashed","dotted","double"],me=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],T=()=>[B,en,sr,ir],X=()=>["","none",w,I,N],ne=()=>["none",B,I,N],Y=()=>["none",B,I,N],q=()=>[B,I,N],J=()=>[Qe,"full",...k()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Ie],breakpoint:[Ie],color:[Os],container:[Ie],"drop-shadow":[Ie],ease:["in","out","in-out"],font:[Ms],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Ie],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Ie],shadow:[Ie],spacing:["px",B],text:[Ie],"text-shadow":[Ie],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Qe,N,I,v]}],container:["container"],columns:[{columns:[B,N,I,a]}],"break-after":[{"break-after":S()}],"break-before":[{"break-before":S()}],"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:A()}],overflow:[{overflow:_()}],"overflow-x":[{"overflow-x":_()}],"overflow-y":[{"overflow-y":_()}],overscroll:[{overscroll:P()}],"overscroll-x":[{"overscroll-x":P()}],"overscroll-y":[{"overscroll-y":P()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:D()}],"inset-x":[{"inset-x":D()}],"inset-y":[{"inset-y":D()}],start:[{start:D()}],end:[{end:D()}],top:[{top:D()}],right:[{right:D()}],bottom:[{bottom:D()}],left:[{left:D()}],visibility:["visible","invisible","collapse"],z:[{z:[Le,"auto",I,N]}],basis:[{basis:[Qe,"full","auto",a,...k()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[B,Qe,"auto","initial","none",N]}],grow:[{grow:["",B,I,N]}],shrink:[{shrink:["",B,I,N]}],order:[{order:[Le,"first","last","none",I,N]}],"grid-cols":[{"grid-cols":V()}],"col-start-end":[{col:U()}],"col-start":[{"col-start":$()}],"col-end":[{"col-end":$()}],"grid-rows":[{"grid-rows":V()}],"row-start-end":[{row:U()}],"row-start":[{"row-start":$()}],"row-end":[{"row-end":$()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":W()}],"auto-rows":[{"auto-rows":W()}],gap:[{gap:k()}],"gap-x":[{"gap-x":k()}],"gap-y":[{"gap-y":k()}],"justify-content":[{justify:[...L(),"normal"]}],"justify-items":[{"justify-items":[...z(),"normal"]}],"justify-self":[{"justify-self":["auto",...z()]}],"align-content":[{content:["normal",...L()]}],"align-items":[{items:[...z(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...z(),{baseline:["","last"]}]}],"place-content":[{"place-content":L()}],"place-items":[{"place-items":[...z(),"baseline"]}],"place-self":[{"place-self":["auto",...z()]}],p:[{p:k()}],px:[{px:k()}],py:[{py:k()}],ps:[{ps:k()}],pe:[{pe:k()}],pt:[{pt:k()}],pr:[{pr:k()}],pb:[{pb:k()}],pl:[{pl:k()}],m:[{m:M()}],mx:[{mx:M()}],my:[{my:M()}],ms:[{ms:M()}],me:[{me:M()}],mt:[{mt:M()}],mr:[{mr:M()}],mb:[{mb:M()}],ml:[{ml:M()}],"space-x":[{"space-x":k()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":k()}],"space-y-reverse":["space-y-reverse"],size:[{size:F()}],w:[{w:[a,"screen",...F()]}],"min-w":[{"min-w":[a,"screen","none",...F()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[s]},...F()]}],h:[{h:["screen","lh",...F()]}],"min-h":[{"min-h":["screen","lh","none",...F()]}],"max-h":[{"max-h":["screen","lh",...F()]}],"font-size":[{text:["base",n,pt,Ue]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,I,tn]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",en,N]}],"font-family":[{font:[Ls,N,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,I,N]}],"line-clamp":[{"line-clamp":[B,"none",I,tn]}],leading:[{leading:[i,...k()]}],"list-image":[{"list-image":["none",I,N]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",I,N]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:E()}],"text-color":[{text:E()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...be(),"wavy"]}],"text-decoration-thickness":[{decoration:[B,"from-font","auto",I,Ue]}],"text-decoration-color":[{decoration:E()}],"underline-offset":[{"underline-offset":[B,"auto",I,N]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:k()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",I,N]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",I,N]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:K()}],"bg-repeat":[{bg:se()}],"bg-size":[{bg:ve()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Le,I,N],radial:["",I,N],conic:[Le,I,N]},Ws,Ds]}],"bg-color":[{bg:E()}],"gradient-from-pos":[{from:xe()}],"gradient-via-pos":[{via:xe()}],"gradient-to-pos":[{to:xe()}],"gradient-from":[{from:E()}],"gradient-via":[{via:E()}],"gradient-to":[{to:E()}],rounded:[{rounded:ee()}],"rounded-s":[{"rounded-s":ee()}],"rounded-e":[{"rounded-e":ee()}],"rounded-t":[{"rounded-t":ee()}],"rounded-r":[{"rounded-r":ee()}],"rounded-b":[{"rounded-b":ee()}],"rounded-l":[{"rounded-l":ee()}],"rounded-ss":[{"rounded-ss":ee()}],"rounded-se":[{"rounded-se":ee()}],"rounded-ee":[{"rounded-ee":ee()}],"rounded-es":[{"rounded-es":ee()}],"rounded-tl":[{"rounded-tl":ee()}],"rounded-tr":[{"rounded-tr":ee()}],"rounded-br":[{"rounded-br":ee()}],"rounded-bl":[{"rounded-bl":ee()}],"border-w":[{border:te()}],"border-w-x":[{"border-x":te()}],"border-w-y":[{"border-y":te()}],"border-w-s":[{"border-s":te()}],"border-w-e":[{"border-e":te()}],"border-w-t":[{"border-t":te()}],"border-w-r":[{"border-r":te()}],"border-w-b":[{"border-b":te()}],"border-w-l":[{"border-l":te()}],"divide-x":[{"divide-x":te()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":te()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...be(),"hidden","none"]}],"divide-style":[{divide:[...be(),"hidden","none"]}],"border-color":[{border:E()}],"border-color-x":[{"border-x":E()}],"border-color-y":[{"border-y":E()}],"border-color-s":[{"border-s":E()}],"border-color-e":[{"border-e":E()}],"border-color-t":[{"border-t":E()}],"border-color-r":[{"border-r":E()}],"border-color-b":[{"border-b":E()}],"border-color-l":[{"border-l":E()}],"divide-color":[{divide:E()}],"outline-style":[{outline:[...be(),"none","hidden"]}],"outline-offset":[{"outline-offset":[B,I,N]}],"outline-w":[{outline:["",B,pt,Ue]}],"outline-color":[{outline:E()}],shadow:[{shadow:["","none",d,xt,wt]}],"shadow-color":[{shadow:E()}],"inset-shadow":[{"inset-shadow":["none",m,xt,wt]}],"inset-shadow-color":[{"inset-shadow":E()}],"ring-w":[{ring:te()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:E()}],"ring-offset-w":[{"ring-offset":[B,Ue]}],"ring-offset-color":[{"ring-offset":E()}],"inset-ring-w":[{"inset-ring":te()}],"inset-ring-color":[{"inset-ring":E()}],"text-shadow":[{"text-shadow":["none",h,xt,wt]}],"text-shadow-color":[{"text-shadow":E()}],opacity:[{opacity:[B,I,N]}],"mix-blend":[{"mix-blend":[...me(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":me()}],"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":[B]}],"mask-image-linear-from-pos":[{"mask-linear-from":T()}],"mask-image-linear-to-pos":[{"mask-linear-to":T()}],"mask-image-linear-from-color":[{"mask-linear-from":E()}],"mask-image-linear-to-color":[{"mask-linear-to":E()}],"mask-image-t-from-pos":[{"mask-t-from":T()}],"mask-image-t-to-pos":[{"mask-t-to":T()}],"mask-image-t-from-color":[{"mask-t-from":E()}],"mask-image-t-to-color":[{"mask-t-to":E()}],"mask-image-r-from-pos":[{"mask-r-from":T()}],"mask-image-r-to-pos":[{"mask-r-to":T()}],"mask-image-r-from-color":[{"mask-r-from":E()}],"mask-image-r-to-color":[{"mask-r-to":E()}],"mask-image-b-from-pos":[{"mask-b-from":T()}],"mask-image-b-to-pos":[{"mask-b-to":T()}],"mask-image-b-from-color":[{"mask-b-from":E()}],"mask-image-b-to-color":[{"mask-b-to":E()}],"mask-image-l-from-pos":[{"mask-l-from":T()}],"mask-image-l-to-pos":[{"mask-l-to":T()}],"mask-image-l-from-color":[{"mask-l-from":E()}],"mask-image-l-to-color":[{"mask-l-to":E()}],"mask-image-x-from-pos":[{"mask-x-from":T()}],"mask-image-x-to-pos":[{"mask-x-to":T()}],"mask-image-x-from-color":[{"mask-x-from":E()}],"mask-image-x-to-color":[{"mask-x-to":E()}],"mask-image-y-from-pos":[{"mask-y-from":T()}],"mask-image-y-to-pos":[{"mask-y-to":T()}],"mask-image-y-from-color":[{"mask-y-from":E()}],"mask-image-y-to-color":[{"mask-y-to":E()}],"mask-image-radial":[{"mask-radial":[I,N]}],"mask-image-radial-from-pos":[{"mask-radial-from":T()}],"mask-image-radial-to-pos":[{"mask-radial-to":T()}],"mask-image-radial-from-color":[{"mask-radial-from":E()}],"mask-image-radial-to-color":[{"mask-radial-to":E()}],"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":[B]}],"mask-image-conic-from-pos":[{"mask-conic-from":T()}],"mask-image-conic-to-pos":[{"mask-conic-to":T()}],"mask-image-conic-from-color":[{"mask-conic-from":E()}],"mask-image-conic-to-color":[{"mask-conic-to":E()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:K()}],"mask-repeat":[{mask:se()}],"mask-size":[{mask:ve()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",I,N]}],filter:[{filter:["","none",I,N]}],blur:[{blur:X()}],brightness:[{brightness:[B,I,N]}],contrast:[{contrast:[B,I,N]}],"drop-shadow":[{"drop-shadow":["","none",g,xt,wt]}],"drop-shadow-color":[{"drop-shadow":E()}],grayscale:[{grayscale:["",B,I,N]}],"hue-rotate":[{"hue-rotate":[B,I,N]}],invert:[{invert:["",B,I,N]}],saturate:[{saturate:[B,I,N]}],sepia:[{sepia:["",B,I,N]}],"backdrop-filter":[{"backdrop-filter":["","none",I,N]}],"backdrop-blur":[{"backdrop-blur":X()}],"backdrop-brightness":[{"backdrop-brightness":[B,I,N]}],"backdrop-contrast":[{"backdrop-contrast":[B,I,N]}],"backdrop-grayscale":[{"backdrop-grayscale":["",B,I,N]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[B,I,N]}],"backdrop-invert":[{"backdrop-invert":["",B,I,N]}],"backdrop-opacity":[{"backdrop-opacity":[B,I,N]}],"backdrop-saturate":[{"backdrop-saturate":[B,I,N]}],"backdrop-sepia":[{"backdrop-sepia":["",B,I,N]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":k()}],"border-spacing-x":[{"border-spacing-x":k()}],"border-spacing-y":[{"border-spacing-y":k()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",I,N]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[B,"initial",I,N]}],ease:[{ease:["linear","initial",y,I,N]}],delay:[{delay:[B,I,N]}],animate:[{animate:["none",b,I,N]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[p,I,N]}],"perspective-origin":[{"perspective-origin":A()}],rotate:[{rotate:ne()}],"rotate-x":[{"rotate-x":ne()}],"rotate-y":[{"rotate-y":ne()}],"rotate-z":[{"rotate-z":ne()}],scale:[{scale:Y()}],"scale-x":[{"scale-x":Y()}],"scale-y":[{"scale-y":Y()}],"scale-z":[{"scale-z":Y()}],"scale-3d":["scale-3d"],skew:[{skew:q()}],"skew-x":[{"skew-x":q()}],"skew-y":[{"skew-y":q()}],transform:[{transform:[I,N,"","none","gpu","cpu"]}],"transform-origin":[{origin:A()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:J()}],"translate-x":[{"translate-x":J()}],"translate-y":[{"translate-y":J()}],"translate-z":[{"translate-z":J()}],"translate-none":["translate-none"],accent:[{accent:E()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:E()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",I,N]}],"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":k()}],"scroll-mx":[{"scroll-mx":k()}],"scroll-my":[{"scroll-my":k()}],"scroll-ms":[{"scroll-ms":k()}],"scroll-me":[{"scroll-me":k()}],"scroll-mt":[{"scroll-mt":k()}],"scroll-mr":[{"scroll-mr":k()}],"scroll-mb":[{"scroll-mb":k()}],"scroll-ml":[{"scroll-ml":k()}],"scroll-p":[{"scroll-p":k()}],"scroll-px":[{"scroll-px":k()}],"scroll-py":[{"scroll-py":k()}],"scroll-ps":[{"scroll-ps":k()}],"scroll-pe":[{"scroll-pe":k()}],"scroll-pt":[{"scroll-pt":k()}],"scroll-pr":[{"scroll-pr":k()}],"scroll-pb":[{"scroll-pb":k()}],"scroll-pl":[{"scroll-pl":k()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",I,N]}],fill:[{fill:["none",...E()]}],"stroke-w":[{stroke:[B,pt,Ue,tn]}],stroke:[{stroke:["none",...E()]}],"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"]}},zs=Ss($s);function pe(...e){return zs(Lr(e))}const Hs=ts("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:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive cursor-pointer",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background text-foreground hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9 rounded-md"}},defaultVariants:{variant:"default",size:"default"}});function Us({className:e,variant:t,size:n,asChild:r=!1,...o}){const i=r?Xi:"button";return x.jsx(i,{"data-slot":"button",className:pe(Hs({variant:t,size:n,className:e})),...o})}function Ys({className:e,type:t,...n}){return x.jsx("input",{type:t,"data-slot":"input",className:pe("file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input flex h-9 w-full min-w-0 rounded-md border px-3 py-1 text-base bg-input-background transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm","focus-visible:border-ring focus-visible:ring-[#1447e6] focus-visible:ring-[1px]","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",e),...n})}function Wt(e,t=[]){let n=[];function r(i,s){const a=l.createContext(s),c=n.length;n=[...n,s];const u=m=>{const{scope:h,children:g,...w}=m,p=h?.[e]?.[c]||a,v=l.useMemo(()=>w,Object.values(w));return x.jsx(p.Provider,{value:v,children:g})};u.displayName=i+"Provider";function d(m,h){const g=h?.[e]?.[c]||a,w=l.useContext(g);if(w)return w;if(s!==void 0)return s;throw new Error(`\`${m}\` must be used within \`${i}\``)}return[u,d]}const o=()=>{const i=n.map(s=>l.createContext(s));return function(a){const c=a?.[e]||i;return l.useMemo(()=>({[`__scope${e}`]:{...a,[e]:c}}),[a,c])}};return o.scopeName=e,[r,Gs(o,...t)]}function Gs(...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:u})=>{const m=c(i)[`__scope${u}`];return{...a,...m}},{});return l.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}function oe(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e?.(o),n===!1||!o.defaultPrevented)return t?.(o)}}var de=globalThis?.document?l.useLayoutEffect:()=>{},Ks=l[" useInsertionEffect ".trim().toString()]||de;function pn({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,i,s]=Xs({defaultProp:t,onChange:n}),a=e!==void 0,c=a?e:o;{const d=l.useRef(e!==void 0);l.useEffect(()=>{const m=d.current;m!==a&&console.warn(`${r} is changing from ${m?"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 u=l.useCallback(d=>{if(a){const m=qs(d)?d(e):d;m!==e&&s.current?.(m)}else i(d)},[a,e,i,s]);return[c,u]}function Xs({defaultProp:e,onChange:t}){const[n,r]=l.useState(e),o=l.useRef(n),i=l.useRef(t);return Ks(()=>{i.current=t},[t]),l.useEffect(()=>{o.current!==n&&(i.current?.(n),o.current=n)},[n,o]),[n,r,i]}function qs(e){return typeof e=="function"}function qr(e){const t=l.useRef({value:e,previous:e});return l.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}function Zr(e){const[t,n]=l.useState(void 0);return de(()=>{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,u=Array.isArray(c)?c[0]:c;s=u.inlineSize,a=u.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}function Zs(e,t){return l.useReducer((n,r)=>t[n][r]??n,e)}var Jr=e=>{const{present:t,children:n}=e,r=Js(t),o=typeof n=="function"?n({present:r.isPresent}):l.Children.only(n),i=ce(r.ref,Qs(o));return typeof n=="function"||r.isPresent?l.cloneElement(o,{ref:i}):null};Jr.displayName="Presence";function Js(e){const[t,n]=l.useState(),r=l.useRef(null),o=l.useRef(e),i=l.useRef("none"),s=e?"mounted":"unmounted",[a,c]=Zs(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return l.useEffect(()=>{const u=St(r.current);i.current=a==="mounted"?u:"none"},[a]),de(()=>{const u=r.current,d=o.current;if(d!==e){const h=i.current,g=St(u);e?c("MOUNT"):g==="none"||u?.display==="none"?c("UNMOUNT"):c(d&&h!==g?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,c]),de(()=>{if(t){let u;const d=t.ownerDocument.defaultView??window,m=g=>{const p=St(r.current).includes(CSS.escape(g.animationName));if(g.target===t&&p&&(c("ANIMATION_END"),!o.current)){const v=t.style.animationFillMode;t.style.animationFillMode="forwards",u=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=v)})}},h=g=>{g.target===t&&(i.current=St(r.current))};return t.addEventListener("animationstart",h),t.addEventListener("animationcancel",m),t.addEventListener("animationend",m),()=>{d.clearTimeout(u),t.removeEventListener("animationstart",h),t.removeEventListener("animationcancel",m),t.removeEventListener("animationend",m)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:l.useCallback(u=>{r.current=u?getComputedStyle(u):null,n(u)},[])}}function St(e){return e?.animationName||"none"}function Qs(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function ea(e){const t=ta(e),n=l.forwardRef((r,o)=>{const{children:i,...s}=r,a=l.Children.toArray(i),c=a.find(ra);if(c){const u=c.props.children,d=a.map(m=>m===c?l.Children.count(u)>1?l.Children.only(null):l.isValidElement(u)?u.props.children:null:m);return x.jsx(t,{...s,ref:o,children:l.isValidElement(u)?l.cloneElement(u,void 0,d):null})}return x.jsx(t,{...s,ref:o,children:i})});return n.displayName=`${e}.Slot`,n}function ta(e){const t=l.forwardRef((n,r)=>{const{children:o,...i}=n;if(l.isValidElement(o)){const s=ia(o),a=oa(i,o.props);return o.type!==l.Fragment&&(a.ref=r?gt(r,s):s),l.cloneElement(o,a)}return l.Children.count(o)>1?l.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var na=Symbol("radix.slottable");function ra(e){return l.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===na}function oa(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 ia(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var sa=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],re=sa.reduce((e,t)=>{const n=ea(`Primitive.${t}`),r=l.forwardRef((o,i)=>{const{asChild:s,...a}=o,c=s?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),x.jsx(c,{...a,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function aa(e,t){e&&Ft.flushSync(()=>e.dispatchEvent(t))}var Bt="Checkbox",[ca]=Wt(Bt),[la,Rn]=ca(Bt);function ua(e){const{__scopeCheckbox:t,checked:n,children:r,defaultChecked:o,disabled:i,form:s,name:a,onCheckedChange:c,required:u,value:d="on",internal_do_not_use_render:m}=e,[h,g]=pn({prop:n,defaultProp:o??!1,onChange:c,caller:Bt}),[w,p]=l.useState(null),[v,y]=l.useState(null),b=l.useRef(!1),S=w?!!s||!!w.closest("form"):!0,C={checked:h,disabled:i,setChecked:g,control:w,setControl:p,name:a,form:s,value:d,hasConsumerStoppedPropagationRef:b,required:u,defaultChecked:We(o)?!1:o,isFormControl:S,bubbleInput:v,setBubbleInput:y};return x.jsx(la,{scope:t,...C,children:da(m)?m(C):r})}var Qr="CheckboxTrigger",eo=l.forwardRef(({__scopeCheckbox:e,onKeyDown:t,onClick:n,...r},o)=>{const{control:i,value:s,disabled:a,checked:c,required:u,setControl:d,setChecked:m,hasConsumerStoppedPropagationRef:h,isFormControl:g,bubbleInput:w}=Rn(Qr,e),p=ce(o,d),v=l.useRef(c);return l.useEffect(()=>{const y=i?.form;if(y){const b=()=>m(v.current);return y.addEventListener("reset",b),()=>y.removeEventListener("reset",b)}},[i,m]),x.jsx(re.button,{type:"button",role:"checkbox","aria-checked":We(c)?"mixed":c,"aria-required":u,"data-state":so(c),"data-disabled":a?"":void 0,disabled:a,value:s,...r,ref:p,onKeyDown:oe(t,y=>{y.key==="Enter"&&y.preventDefault()}),onClick:oe(n,y=>{m(b=>We(b)?!0:!b),w&&g&&(h.current=y.isPropagationStopped(),h.current||y.stopPropagation())})})});eo.displayName=Qr;var to=l.forwardRef((e,t)=>{const{__scopeCheckbox:n,name:r,checked:o,defaultChecked:i,required:s,disabled:a,value:c,onCheckedChange:u,form:d,...m}=e;return x.jsx(ua,{__scopeCheckbox:n,checked:o,defaultChecked:i,disabled:a,required:s,onCheckedChange:u,name:r,form:d,value:c,internal_do_not_use_render:({isFormControl:h})=>x.jsxs(x.Fragment,{children:[x.jsx(eo,{...m,ref:t,__scopeCheckbox:n}),h&&x.jsx(io,{__scopeCheckbox:n})]})})});to.displayName=Bt;var no="CheckboxIndicator",ro=l.forwardRef((e,t)=>{const{__scopeCheckbox:n,forceMount:r,...o}=e,i=Rn(no,n);return x.jsx(Jr,{present:r||We(i.checked)||i.checked===!0,children:x.jsx(re.span,{"data-state":so(i.checked),"data-disabled":i.disabled?"":void 0,...o,ref:t,style:{pointerEvents:"none",...e.style}})})});ro.displayName=no;var oo="CheckboxBubbleInput",io=l.forwardRef(({__scopeCheckbox:e,...t},n)=>{const{control:r,hasConsumerStoppedPropagationRef:o,checked:i,defaultChecked:s,required:a,disabled:c,name:u,value:d,form:m,bubbleInput:h,setBubbleInput:g}=Rn(oo,e),w=ce(n,g),p=qr(i),v=Zr(r);l.useEffect(()=>{const b=h;if(!b)return;const S=window.HTMLInputElement.prototype,A=Object.getOwnPropertyDescriptor(S,"checked").set,_=!o.current;if(p!==i&&A){const P=new Event("click",{bubbles:_});b.indeterminate=We(i),A.call(b,We(i)?!1:i),b.dispatchEvent(P)}},[h,p,i,o]);const y=l.useRef(We(i)?!1:i);return x.jsx(re.input,{type:"checkbox","aria-hidden":!0,defaultChecked:s??y.current,required:a,disabled:c,name:u,value:d,form:m,...t,tabIndex:-1,ref:w,style:{...t.style,...v,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});io.displayName=oo;function da(e){return typeof e=="function"}function We(e){return e==="indeterminate"}function so(e){return We(e)?"indeterminate":e?"checked":"unchecked"}const ao=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();const fa=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const pa=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,r)=>r?r.toUpperCase():n.toLowerCase());const ar=e=>{const t=pa(e);return t.charAt(0).toUpperCase()+t.slice(1)};var ma={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"};const ha=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1};const ga=ue.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:i,iconNode:s,...a},c)=>ue.createElement("svg",{ref:c,...ma,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:ao("lucide",o),...!i&&!ha(a)&&{"aria-hidden":"true"},...a},[...s.map(([u,d])=>ue.createElement(u,d)),...Array.isArray(i)?i:[i]]));const kn=(e,t)=>{const n=ue.forwardRef(({className:r,...o},i)=>ue.createElement(ga,{ref:i,iconNode:t,className:ao(`lucide-${fa(ar(e))}`,`lucide-${e}`,r),...o}));return n.displayName=ar(e),n};const va=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],co=kn("check",va);const ba=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],lo=kn("chevron-down",ba);const ya=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],wa=kn("chevron-up",ya);function xa({className:e,...t}){return x.jsx(to,{"data-slot":"checkbox",className:pe("peer border bg-input-background dark:bg-input/30 data-[state=checked]:bg-[#1447e6] data-[state=checked]:text-white dark:data-[state=checked]:bg-[#1447e6] data-[state=checked]:border-[#1447e6] focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive size-4 shrink-0 rounded-[4px] border shadow-xs transition-shadow outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",e),...t,children:x.jsx(ro,{"data-slot":"checkbox-indicator",className:"flex items-center justify-center text-current transition-none",children:x.jsx(co,{className:"size-3.5"})})})}function cr(e,[t,n]){return Math.min(n,Math.max(t,e))}function lr(e){const t=Sa(e),n=l.forwardRef((r,o)=>{const{children:i,...s}=r,a=l.Children.toArray(i),c=a.find(Ea);if(c){const u=c.props.children,d=a.map(m=>m===c?l.Children.count(u)>1?l.Children.only(null):l.isValidElement(u)?u.props.children:null:m);return x.jsx(t,{...s,ref:o,children:l.isValidElement(u)?l.cloneElement(u,void 0,d):null})}return x.jsx(t,{...s,ref:o,children:i})});return n.displayName=`${e}.Slot`,n}function Sa(e){const t=l.forwardRef((n,r)=>{const{children:o,...i}=n;if(l.isValidElement(o)){const s=ka(o),a=Ra(i,o.props);return o.type!==l.Fragment&&(a.ref=r?gt(r,s):s),l.cloneElement(o,a)}return l.Children.count(o)>1?l.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Ca=Symbol("radix.slottable");function Ea(e){return l.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Ca}function Ra(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 ka(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function Pa(e){const t=e+"CollectionProvider",[n,r]=Wt(t),[o,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),s=p=>{const{scope:v,children:y}=p,b=ue.useRef(null),S=ue.useRef(new Map).current;return x.jsx(o,{scope:v,itemMap:S,collectionRef:b,children:y})};s.displayName=t;const a=e+"CollectionSlot",c=lr(a),u=ue.forwardRef((p,v)=>{const{scope:y,children:b}=p,S=i(a,y),C=ce(v,S.collectionRef);return x.jsx(c,{ref:C,children:b})});u.displayName=a;const d=e+"CollectionItemSlot",m="data-radix-collection-item",h=lr(d),g=ue.forwardRef((p,v)=>{const{scope:y,children:b,...S}=p,C=ue.useRef(null),A=ce(v,C),_=i(d,y);return ue.useEffect(()=>(_.itemMap.set(C,{ref:C,...S}),()=>{_.itemMap.delete(C)})),x.jsx(h,{[m]:"",ref:A,children:b})});g.displayName=d;function w(p){const v=i(e+"CollectionConsumer",p);return ue.useCallback(()=>{const b=v.collectionRef.current;if(!b)return[];const S=Array.from(b.querySelectorAll(`[${m}]`));return Array.from(v.itemMap.values()).sort((_,P)=>S.indexOf(_.ref.current)-S.indexOf(P.ref.current))},[v.collectionRef,v.itemMap])}return[{Provider:s,Slot:u,ItemSlot:g},w,r]}var Aa=l.createContext(void 0);function Ta(e){const t=l.useContext(Aa);return e||t||"ltr"}function Ye(e){const t=l.useRef(e);return l.useEffect(()=>{t.current=e}),l.useMemo(()=>(...n)=>t.current?.(...n),[])}function Oa(e,t=globalThis?.document){const n=Ye(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 _a="DismissableLayer",mn="dismissableLayer.update",Na="dismissableLayer.pointerDownOutside",Ia="dismissableLayer.focusOutside",ur,uo=l.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),fo=l.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:s,onDismiss:a,...c}=e,u=l.useContext(uo),[d,m]=l.useState(null),h=d?.ownerDocument??globalThis?.document,[,g]=l.useState({}),w=ce(t,P=>m(P)),p=Array.from(u.layers),[v]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),y=p.indexOf(v),b=d?p.indexOf(d):-1,S=u.layersWithOutsidePointerEventsDisabled.size>0,C=b>=y,A=Da(P=>{const k=P.target,D=[...u.branches].some(V=>V.contains(k));!C||D||(o?.(P),s?.(P),P.defaultPrevented||a?.())},h),_=La(P=>{const k=P.target;[...u.branches].some(V=>V.contains(k))||(i?.(P),s?.(P),P.defaultPrevented||a?.())},h);return Oa(P=>{b===u.layers.size-1&&(r?.(P),!P.defaultPrevented&&a&&(P.preventDefault(),a()))},h),l.useEffect(()=>{if(d)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(ur=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),dr(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=ur)}},[d,h,n,u]),l.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),dr())},[d,u]),l.useEffect(()=>{const P=()=>g({});return document.addEventListener(mn,P),()=>document.removeEventListener(mn,P)},[]),x.jsx(re.div,{...c,ref:w,style:{pointerEvents:S?C?"auto":"none":void 0,...e.style},onFocusCapture:oe(e.onFocusCapture,_.onFocusCapture),onBlurCapture:oe(e.onBlurCapture,_.onBlurCapture),onPointerDownCapture:oe(e.onPointerDownCapture,A.onPointerDownCapture)})});fo.displayName=_a;var Ma="DismissableLayerBranch",ja=l.forwardRef((e,t)=>{const n=l.useContext(uo),r=l.useRef(null),o=ce(t,r);return l.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),x.jsx(re.div,{...e,ref:o})});ja.displayName=Ma;function Da(e,t=globalThis?.document){const n=Ye(e),r=l.useRef(!1),o=l.useRef(()=>{});return l.useEffect(()=>{const i=a=>{if(a.target&&!r.current){let c=function(){po(Na,n,u,{discrete:!0})};const u={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 La(e,t=globalThis?.document){const n=Ye(e),r=l.useRef(!1);return l.useEffect(()=>{const o=i=>{i.target&&!r.current&&po(Ia,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 dr(){const e=new CustomEvent(mn);document.dispatchEvent(e)}function po(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?aa(o,i):o.dispatchEvent(i)}var nn=0;function Fa(){l.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??fr()),document.body.insertAdjacentElement("beforeend",e[1]??fr()),nn++,()=>{nn===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),nn--}},[])}function fr(){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 rn="focusScope.autoFocusOnMount",on="focusScope.autoFocusOnUnmount",pr={bubbles:!1,cancelable:!0},Wa="FocusScope",mo=l.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...s}=e,[a,c]=l.useState(null),u=Ye(o),d=Ye(i),m=l.useRef(null),h=ce(t,p=>c(p)),g=l.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;l.useEffect(()=>{if(r){let p=function(S){if(g.paused||!a)return;const C=S.target;a.contains(C)?m.current=C:Fe(m.current,{select:!0})},v=function(S){if(g.paused||!a)return;const C=S.relatedTarget;C!==null&&(a.contains(C)||Fe(m.current,{select:!0}))},y=function(S){if(document.activeElement===document.body)for(const A of S)A.removedNodes.length>0&&Fe(a)};document.addEventListener("focusin",p),document.addEventListener("focusout",v);const b=new MutationObserver(y);return a&&b.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",p),document.removeEventListener("focusout",v),b.disconnect()}}},[r,a,g.paused]),l.useEffect(()=>{if(a){hr.add(g);const p=document.activeElement;if(!a.contains(p)){const y=new CustomEvent(rn,pr);a.addEventListener(rn,u),a.dispatchEvent(y),y.defaultPrevented||(Ba(Ua(ho(a)),{select:!0}),document.activeElement===p&&Fe(a))}return()=>{a.removeEventListener(rn,u),setTimeout(()=>{const y=new CustomEvent(on,pr);a.addEventListener(on,d),a.dispatchEvent(y),y.defaultPrevented||Fe(p??document.body,{select:!0}),a.removeEventListener(on,d),hr.remove(g)},0)}}},[a,u,d,g]);const w=l.useCallback(p=>{if(!n&&!r||g.paused)return;const v=p.key==="Tab"&&!p.altKey&&!p.ctrlKey&&!p.metaKey,y=document.activeElement;if(v&&y){const b=p.currentTarget,[S,C]=Va(b);S&&C?!p.shiftKey&&y===C?(p.preventDefault(),n&&Fe(S,{select:!0})):p.shiftKey&&y===S&&(p.preventDefault(),n&&Fe(C,{select:!0})):y===b&&p.preventDefault()}},[n,r,g.paused]);return x.jsx(re.div,{tabIndex:-1,...s,ref:h,onKeyDown:w})});mo.displayName=Wa;function Ba(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Fe(r,{select:t}),document.activeElement!==n)return}function Va(e){const t=ho(e),n=mr(t,e),r=mr(t.reverse(),e);return[n,r]}function ho(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 mr(e,t){for(const n of e)if(!$a(n,{upTo:t}))return n}function $a(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 za(e){return e instanceof HTMLInputElement&&"select"in e}function Fe(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&za(e)&&t&&e.select()}}var hr=Ha();function Ha(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=gr(e,t),e.unshift(t)},remove(t){e=gr(e,t),e[0]?.resume()}}}function gr(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function Ua(e){return e.filter(t=>t.tagName!=="A")}var Ya=l[" useId ".trim().toString()]||(()=>{}),Ga=0;function Pn(e){const[t,n]=l.useState(Ya());return de(()=>{n(r=>r??String(Ga++))},[e]),e||(t?`radix-${t}`:"")}const Ka=["top","right","bottom","left"],Be=Math.min,ye=Math.max,It=Math.round,Ct=Math.floor,Ae=e=>({x:e,y:e}),Xa={left:"right",right:"left",bottom:"top",top:"bottom"},qa={start:"end",end:"start"};function hn(e,t,n){return ye(e,Be(t,n))}function Me(e,t){return typeof e=="function"?e(t):e}function je(e){return e.split("-")[0]}function ct(e){return e.split("-")[1]}function An(e){return e==="x"?"y":"x"}function Tn(e){return e==="y"?"height":"width"}const Za=new Set(["top","bottom"]);function Pe(e){return Za.has(je(e))?"y":"x"}function On(e){return An(Pe(e))}function Ja(e,t,n){n===void 0&&(n=!1);const r=ct(e),o=On(e),i=Tn(o);let s=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=Mt(s)),[s,Mt(s)]}function Qa(e){const t=Mt(e);return[gn(e),t,gn(t)]}function gn(e){return e.replace(/start|end/g,t=>qa[t])}const vr=["left","right"],br=["right","left"],ec=["top","bottom"],tc=["bottom","top"];function nc(e,t,n){switch(e){case"top":case"bottom":return n?t?br:vr:t?vr:br;case"left":case"right":return t?ec:tc;default:return[]}}function rc(e,t,n,r){const o=ct(e);let i=nc(je(e),n==="start",r);return o&&(i=i.map(s=>s+"-"+o),t&&(i=i.concat(i.map(gn)))),i}function Mt(e){return e.replace(/left|right|bottom|top/g,t=>Xa[t])}function oc(e){return{top:0,right:0,bottom:0,left:0,...e}}function go(e){return typeof e!="number"?oc(e):{top:e,right:e,bottom:e,left:e}}function jt(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 yr(e,t,n){let{reference:r,floating:o}=e;const i=Pe(t),s=On(t),a=Tn(s),c=je(t),u=i==="y",d=r.x+r.width/2-o.width/2,m=r.y+r.height/2-o.height/2,h=r[a]/2-o[a]/2;let g;switch(c){case"top":g={x:d,y:r.y-o.height};break;case"bottom":g={x:d,y:r.y+r.height};break;case"right":g={x:r.x+r.width,y:m};break;case"left":g={x:r.x-o.width,y:m};break;default:g={x:r.x,y:r.y}}switch(ct(t)){case"start":g[s]-=h*(n&&u?-1:1);break;case"end":g[s]+=h*(n&&u?-1:1);break}return g}async function ic(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:i,rects:s,elements:a,strategy:c}=e,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:m="floating",altBoundary:h=!1,padding:g=0}=Me(t,e),w=go(g),v=a[h?m==="floating"?"reference":"floating":m],y=jt(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:u,rootBoundary:d,strategy:c})),b=m==="floating"?{x:r,y:o,width:s.floating.width,height:s.floating.height}:s.reference,S=await(i.getOffsetParent==null?void 0:i.getOffsetParent(a.floating)),C=await(i.isElement==null?void 0:i.isElement(S))?await(i.getScale==null?void 0:i.getScale(S))||{x:1,y:1}:{x:1,y:1},A=jt(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:b,offsetParent:S,strategy:c}):b);return{top:(y.top-A.top+w.top)/C.y,bottom:(A.bottom-y.bottom+w.bottom)/C.y,left:(y.left-A.left+w.left)/C.x,right:(A.right-y.right+w.right)/C.x}}const sc=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 u=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:d,y:m}=yr(u,r,c),h=r,g={},w=0;for(let v=0;v<a.length;v++){var p;const{name:y,fn:b}=a[v],{x:S,y:C,data:A,reset:_}=await b({x:d,y:m,initialPlacement:r,placement:h,strategy:o,middlewareData:g,rects:u,platform:{...s,detectOverflow:(p=s.detectOverflow)!=null?p:ic},elements:{reference:e,floating:t}});d=S??d,m=C??m,g={...g,[y]:{...g[y],...A}},_&&w<=50&&(w++,typeof _=="object"&&(_.placement&&(h=_.placement),_.rects&&(u=_.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:o}):_.rects),{x:d,y:m}=yr(u,h,c)),v=-1)}return{x:d,y:m,placement:h,strategy:o,middlewareData:g}},ac=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:u,padding:d=0}=Me(e,t)||{};if(u==null)return{};const m=go(d),h={x:n,y:r},g=On(o),w=Tn(g),p=await s.getDimensions(u),v=g==="y",y=v?"top":"left",b=v?"bottom":"right",S=v?"clientHeight":"clientWidth",C=i.reference[w]+i.reference[g]-h[g]-i.floating[w],A=h[g]-i.reference[g],_=await(s.getOffsetParent==null?void 0:s.getOffsetParent(u));let P=_?_[S]:0;(!P||!await(s.isElement==null?void 0:s.isElement(_)))&&(P=a.floating[S]||i.floating[w]);const k=C/2-A/2,D=P/2-p[w]/2-1,V=Be(m[y],D),U=Be(m[b],D),$=V,W=P-p[w]-U,L=P/2-p[w]/2+k,z=hn($,L,W),M=!c.arrow&&ct(o)!=null&&L!==z&&i.reference[w]/2-(L<$?V:U)-p[w]/2<0,F=M?L<$?L-$:L-W:0;return{[g]:h[g]+F,data:{[g]:z,centerOffset:L-z-F,...M&&{alignmentOffset:F}},reset:M}}}),cc=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:u}=t,{mainAxis:d=!0,crossAxis:m=!0,fallbackPlacements:h,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:w="none",flipAlignment:p=!0,...v}=Me(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const y=je(o),b=Pe(a),S=je(a)===a,C=await(c.isRTL==null?void 0:c.isRTL(u.floating)),A=h||(S||!p?[Mt(a)]:Qa(a)),_=w!=="none";!h&&_&&A.push(...rc(a,p,w,C));const P=[a,...A],k=await c.detectOverflow(t,v),D=[];let V=((r=i.flip)==null?void 0:r.overflows)||[];if(d&&D.push(k[y]),m){const L=Ja(o,s,C);D.push(k[L[0]],k[L[1]])}if(V=[...V,{placement:o,overflows:D}],!D.every(L=>L<=0)){var U,$;const L=(((U=i.flip)==null?void 0:U.index)||0)+1,z=P[L];if(z&&(!(m==="alignment"?b!==Pe(z):!1)||V.every(E=>Pe(E.placement)===b?E.overflows[0]>0:!0)))return{data:{index:L,overflows:V},reset:{placement:z}};let M=($=V.filter(F=>F.overflows[0]<=0).sort((F,E)=>F.overflows[1]-E.overflows[1])[0])==null?void 0:$.placement;if(!M)switch(g){case"bestFit":{var W;const F=(W=V.filter(E=>{if(_){const K=Pe(E.placement);return K===b||K==="y"}return!0}).map(E=>[E.placement,E.overflows.filter(K=>K>0).reduce((K,se)=>K+se,0)]).sort((E,K)=>E[1]-K[1])[0])==null?void 0:W[0];F&&(M=F);break}case"initialPlacement":M=a;break}if(o!==M)return{reset:{placement:M}}}return{}}}};function wr(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function xr(e){return Ka.some(t=>e[t]>=0)}const lc=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:r}=t,{strategy:o="referenceHidden",...i}=Me(e,t);switch(o){case"referenceHidden":{const s=await r.detectOverflow(t,{...i,elementContext:"reference"}),a=wr(s,n.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:xr(a)}}}case"escaped":{const s=await r.detectOverflow(t,{...i,altBoundary:!0}),a=wr(s,n.floating);return{data:{escapedOffsets:a,escaped:xr(a)}}}default:return{}}}}},vo=new Set(["left","top"]);async function uc(e,t){const{placement:n,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),s=je(n),a=ct(n),c=Pe(n)==="y",u=vo.has(s)?-1:1,d=i&&c?-1:1,m=Me(t,e);let{mainAxis:h,crossAxis:g,alignmentAxis:w}=typeof m=="number"?{mainAxis:m,crossAxis:0,alignmentAxis:null}:{mainAxis:m.mainAxis||0,crossAxis:m.crossAxis||0,alignmentAxis:m.alignmentAxis};return a&&typeof w=="number"&&(g=a==="end"?w*-1:w),c?{x:g*d,y:h*u}:{x:h*u,y:g*d}}const dc=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 uc(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}}}}},fc=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o,platform:i}=t,{mainAxis:s=!0,crossAxis:a=!1,limiter:c={fn:y=>{let{x:b,y:S}=y;return{x:b,y:S}}},...u}=Me(e,t),d={x:n,y:r},m=await i.detectOverflow(t,u),h=Pe(je(o)),g=An(h);let w=d[g],p=d[h];if(s){const y=g==="y"?"top":"left",b=g==="y"?"bottom":"right",S=w+m[y],C=w-m[b];w=hn(S,w,C)}if(a){const y=h==="y"?"top":"left",b=h==="y"?"bottom":"right",S=p+m[y],C=p-m[b];p=hn(S,p,C)}const v=c.fn({...t,[g]:w,[h]:p});return{...v,data:{x:v.x-n,y:v.y-r,enabled:{[g]:s,[h]:a}}}}}},pc=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:u=!0}=Me(e,t),d={x:n,y:r},m=Pe(o),h=An(m);let g=d[h],w=d[m];const p=Me(a,t),v=typeof p=="number"?{mainAxis:p,crossAxis:0}:{mainAxis:0,crossAxis:0,...p};if(c){const S=h==="y"?"height":"width",C=i.reference[h]-i.floating[S]+v.mainAxis,A=i.reference[h]+i.reference[S]-v.mainAxis;g<C?g=C:g>A&&(g=A)}if(u){var y,b;const S=h==="y"?"width":"height",C=vo.has(je(o)),A=i.reference[m]-i.floating[S]+(C&&((y=s.offset)==null?void 0:y[m])||0)+(C?0:v.crossAxis),_=i.reference[m]+i.reference[S]+(C?0:((b=s.offset)==null?void 0:b[m])||0)-(C?v.crossAxis:0);w<A?w=A:w>_&&(w=_)}return{[h]:g,[m]:w}}}},mc=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=()=>{},...u}=Me(e,t),d=await s.detectOverflow(t,u),m=je(o),h=ct(o),g=Pe(o)==="y",{width:w,height:p}=i.floating;let v,y;m==="top"||m==="bottom"?(v=m,y=h===(await(s.isRTL==null?void 0:s.isRTL(a.floating))?"start":"end")?"left":"right"):(y=m,v=h==="end"?"top":"bottom");const b=p-d.top-d.bottom,S=w-d.left-d.right,C=Be(p-d[v],b),A=Be(w-d[y],S),_=!t.middlewareData.shift;let P=C,k=A;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(k=S),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(P=b),_&&!h){const V=ye(d.left,0),U=ye(d.right,0),$=ye(d.top,0),W=ye(d.bottom,0);g?k=w-2*(V!==0||U!==0?V+U:ye(d.left,d.right)):P=p-2*($!==0||W!==0?$+W:ye(d.top,d.bottom))}await c({...t,availableWidth:k,availableHeight:P});const D=await s.getDimensions(a.floating);return w!==D.width||p!==D.height?{reset:{rects:!0}}:{}}}};function Vt(){return typeof window<"u"}function lt(e){return bo(e)?(e.nodeName||"").toLowerCase():"#document"}function we(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Oe(e){var t;return(t=(bo(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function bo(e){return Vt()?e instanceof Node||e instanceof we(e).Node:!1}function Ee(e){return Vt()?e instanceof Element||e instanceof we(e).Element:!1}function Te(e){return Vt()?e instanceof HTMLElement||e instanceof we(e).HTMLElement:!1}function Sr(e){return!Vt()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof we(e).ShadowRoot}const hc=new Set(["inline","contents"]);function vt(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Re(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!hc.has(o)}const gc=new Set(["table","td","th"]);function vc(e){return gc.has(lt(e))}const bc=[":popover-open",":modal"];function $t(e){return bc.some(t=>{try{return e.matches(t)}catch{return!1}})}const yc=["transform","translate","scale","rotate","perspective"],wc=["transform","translate","scale","rotate","perspective","filter"],xc=["paint","layout","strict","content"];function _n(e){const t=Nn(),n=Ee(e)?Re(e):e;return yc.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)||wc.some(r=>(n.willChange||"").includes(r))||xc.some(r=>(n.contain||"").includes(r))}function Sc(e){let t=Ve(e);for(;Te(t)&&!it(t);){if(_n(t))return t;if($t(t))return null;t=Ve(t)}return null}function Nn(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const Cc=new Set(["html","body","#document"]);function it(e){return Cc.has(lt(e))}function Re(e){return we(e).getComputedStyle(e)}function zt(e){return Ee(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Ve(e){if(lt(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Sr(e)&&e.host||Oe(e);return Sr(t)?t.host:t}function yo(e){const t=Ve(e);return it(t)?e.ownerDocument?e.ownerDocument.body:e.body:Te(t)&&vt(t)?t:yo(t)}function ht(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=yo(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),s=we(o);if(i){const a=vn(s);return t.concat(s,s.visualViewport||[],vt(o)?o:[],a&&n?ht(a):[])}return t.concat(o,ht(o,[],n))}function vn(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function wo(e){const t=Re(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Te(e),i=o?e.offsetWidth:n,s=o?e.offsetHeight:r,a=It(n)!==i||It(r)!==s;return a&&(n=i,r=s),{width:n,height:r,$:a}}function In(e){return Ee(e)?e:e.contextElement}function rt(e){const t=In(e);if(!Te(t))return Ae(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=wo(t);let s=(i?It(n.width):n.width)/r,a=(i?It(n.height):n.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const Ec=Ae(0);function xo(e){const t=we(e);return!Nn()||!t.visualViewport?Ec:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Rc(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==we(e)?!1:t}function Ge(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=In(e);let s=Ae(1);t&&(r?Ee(r)&&(s=rt(r)):s=rt(e));const a=Rc(i,n,r)?xo(i):Ae(0);let c=(o.left+a.x)/s.x,u=(o.top+a.y)/s.y,d=o.width/s.x,m=o.height/s.y;if(i){const h=we(i),g=r&&Ee(r)?we(r):r;let w=h,p=vn(w);for(;p&&r&&g!==w;){const v=rt(p),y=p.getBoundingClientRect(),b=Re(p),S=y.left+(p.clientLeft+parseFloat(b.paddingLeft))*v.x,C=y.top+(p.clientTop+parseFloat(b.paddingTop))*v.y;c*=v.x,u*=v.y,d*=v.x,m*=v.y,c+=S,u+=C,w=we(p),p=vn(w)}}return jt({width:d,height:m,x:c,y:u})}function Ht(e,t){const n=zt(e).scrollLeft;return t?t.left+n:Ge(Oe(e)).left+n}function So(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-Ht(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function kc(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i=o==="fixed",s=Oe(r),a=t?$t(t.floating):!1;if(r===s||a&&i)return n;let c={scrollLeft:0,scrollTop:0},u=Ae(1);const d=Ae(0),m=Te(r);if((m||!m&&!i)&&((lt(r)!=="body"||vt(s))&&(c=zt(r)),Te(r))){const g=Ge(r);u=rt(r),d.x=g.x+r.clientLeft,d.y=g.y+r.clientTop}const h=s&&!m&&!i?So(s,c):Ae(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-c.scrollLeft*u.x+d.x+h.x,y:n.y*u.y-c.scrollTop*u.y+d.y+h.y}}function Pc(e){return Array.from(e.getClientRects())}function Ac(e){const t=Oe(e),n=zt(e),r=e.ownerDocument.body,o=ye(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=ye(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+Ht(e);const a=-n.scrollTop;return Re(r).direction==="rtl"&&(s+=ye(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:s,y:a}}const Cr=25;function Tc(e,t){const n=we(e),r=Oe(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=Nn();(!d||d&&t==="fixed")&&(a=o.offsetLeft,c=o.offsetTop)}const u=Ht(r);if(u<=0){const d=r.ownerDocument,m=d.body,h=getComputedStyle(m),g=d.compatMode==="CSS1Compat"&&parseFloat(h.marginLeft)+parseFloat(h.marginRight)||0,w=Math.abs(r.clientWidth-m.clientWidth-g);w<=Cr&&(i-=w)}else u<=Cr&&(i+=u);return{width:i,height:s,x:a,y:c}}const Oc=new Set(["absolute","fixed"]);function _c(e,t){const n=Ge(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=Te(e)?rt(e):Ae(1),s=e.clientWidth*i.x,a=e.clientHeight*i.y,c=o*i.x,u=r*i.y;return{width:s,height:a,x:c,y:u}}function Er(e,t,n){let r;if(t==="viewport")r=Tc(e,n);else if(t==="document")r=Ac(Oe(e));else if(Ee(t))r=_c(t,n);else{const o=xo(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return jt(r)}function Co(e,t){const n=Ve(e);return n===t||!Ee(n)||it(n)?!1:Re(n).position==="fixed"||Co(n,t)}function Nc(e,t){const n=t.get(e);if(n)return n;let r=ht(e,[],!1).filter(a=>Ee(a)&&lt(a)!=="body"),o=null;const i=Re(e).position==="fixed";let s=i?Ve(e):e;for(;Ee(s)&&!it(s);){const a=Re(s),c=_n(s);!c&&a.position==="fixed"&&(o=null),(i?!c&&!o:!c&&a.position==="static"&&!!o&&Oc.has(o.position)||vt(s)&&!c&&Co(e,s))?r=r.filter(d=>d!==s):o=a,s=Ve(s)}return t.set(e,r),r}function Ic(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const s=[...n==="clippingAncestors"?$t(t)?[]:Nc(t,this._c):[].concat(n),r],a=s[0],c=s.reduce((u,d)=>{const m=Er(t,d,o);return u.top=ye(m.top,u.top),u.right=Be(m.right,u.right),u.bottom=Be(m.bottom,u.bottom),u.left=ye(m.left,u.left),u},Er(t,a,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function Mc(e){const{width:t,height:n}=wo(e);return{width:t,height:n}}function jc(e,t,n){const r=Te(t),o=Oe(t),i=n==="fixed",s=Ge(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const c=Ae(0);function u(){c.x=Ht(o)}if(r||!r&&!i)if((lt(t)!=="body"||vt(o))&&(a=zt(t)),r){const g=Ge(t,!0,i,t);c.x=g.x+t.clientLeft,c.y=g.y+t.clientTop}else o&&u();i&&!r&&o&&u();const d=o&&!r&&!i?So(o,a):Ae(0),m=s.left+a.scrollLeft-c.x-d.x,h=s.top+a.scrollTop-c.y-d.y;return{x:m,y:h,width:s.width,height:s.height}}function sn(e){return Re(e).position==="static"}function Rr(e,t){if(!Te(e)||Re(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Oe(e)===n&&(n=n.ownerDocument.body),n}function Eo(e,t){const n=we(e);if($t(e))return n;if(!Te(e)){let o=Ve(e);for(;o&&!it(o);){if(Ee(o)&&!sn(o))return o;o=Ve(o)}return n}let r=Rr(e,t);for(;r&&vc(r)&&sn(r);)r=Rr(r,t);return r&&it(r)&&sn(r)&&!_n(r)?n:r||Sc(e)||n}const Dc=async function(e){const t=this.getOffsetParent||Eo,n=this.getDimensions,r=await n(e.floating);return{reference:jc(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Lc(e){return Re(e).direction==="rtl"}const Fc={convertOffsetParentRelativeRectToViewportRelativeRect:kc,getDocumentElement:Oe,getClippingRect:Ic,getOffsetParent:Eo,getElementRects:Dc,getClientRects:Pc,getDimensions:Mc,getScale:rt,isElement:Ee,isRTL:Lc};function Ro(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Wc(e,t){let n=null,r;const o=Oe(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 u=e.getBoundingClientRect(),{left:d,top:m,width:h,height:g}=u;if(a||t(),!h||!g)return;const w=Ct(m),p=Ct(o.clientWidth-(d+h)),v=Ct(o.clientHeight-(m+g)),y=Ct(d),S={rootMargin:-w+"px "+-p+"px "+-v+"px "+-y+"px",threshold:ye(0,Be(1,c))||1};let C=!0;function A(_){const P=_[0].intersectionRatio;if(P!==c){if(!C)return s();P?s(!1,P):r=setTimeout(()=>{s(!1,1e-7)},1e3)}P===1&&!Ro(u,e.getBoundingClientRect())&&s(),C=!1}try{n=new IntersectionObserver(A,{...S,root:o.ownerDocument})}catch{n=new IntersectionObserver(A,S)}n.observe(e)}return s(!0),i}function Bc(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,u=In(e),d=o||i?[...u?ht(u):[],...ht(t)]:[];d.forEach(y=>{o&&y.addEventListener("scroll",n,{passive:!0}),i&&y.addEventListener("resize",n)});const m=u&&a?Wc(u,n):null;let h=-1,g=null;s&&(g=new ResizeObserver(y=>{let[b]=y;b&&b.target===u&&g&&(g.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var S;(S=g)==null||S.observe(t)})),n()}),u&&!c&&g.observe(u),g.observe(t));let w,p=c?Ge(e):null;c&&v();function v(){const y=Ge(e);p&&!Ro(p,y)&&n(),p=y,w=requestAnimationFrame(v)}return n(),()=>{var y;d.forEach(b=>{o&&b.removeEventListener("scroll",n),i&&b.removeEventListener("resize",n)}),m?.(),(y=g)==null||y.disconnect(),g=null,c&&cancelAnimationFrame(w)}}const Vc=dc,$c=fc,zc=cc,Hc=mc,Uc=lc,kr=ac,Yc=pc,Gc=(e,t,n)=>{const r=new Map,o={platform:Fc,...n},i={...o.platform,_c:r};return sc(e,t,{...o,platform:i})};var Kc=typeof document<"u",Xc=function(){},At=Kc?ue.useLayoutEffect:Xc;function Dt(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Dt(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const i=o[r];if(!(i==="_owner"&&e.$$typeof)&&!Dt(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function ko(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Pr(e,t){const n=ko(e);return Math.round(t*n)/n}function an(e){const t=l.useRef(e);return At(()=>{t.current=e}),t}function qc(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:u}=e,[d,m]=l.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,g]=l.useState(r);Dt(h,r)||g(r);const[w,p]=l.useState(null),[v,y]=l.useState(null),b=l.useCallback(E=>{E!==_.current&&(_.current=E,p(E))},[]),S=l.useCallback(E=>{E!==P.current&&(P.current=E,y(E))},[]),C=i||w,A=s||v,_=l.useRef(null),P=l.useRef(null),k=l.useRef(d),D=c!=null,V=an(c),U=an(o),$=an(u),W=l.useCallback(()=>{if(!_.current||!P.current)return;const E={placement:t,strategy:n,middleware:h};U.current&&(E.platform=U.current),Gc(_.current,P.current,E).then(K=>{const se={...K,isPositioned:$.current!==!1};L.current&&!Dt(k.current,se)&&(k.current=se,Ft.flushSync(()=>{m(se)}))})},[h,t,n,U,$]);At(()=>{u===!1&&k.current.isPositioned&&(k.current.isPositioned=!1,m(E=>({...E,isPositioned:!1})))},[u]);const L=l.useRef(!1);At(()=>(L.current=!0,()=>{L.current=!1}),[]),At(()=>{if(C&&(_.current=C),A&&(P.current=A),C&&A){if(V.current)return V.current(C,A,W);W()}},[C,A,W,V,D]);const z=l.useMemo(()=>({reference:_,floating:P,setReference:b,setFloating:S}),[b,S]),M=l.useMemo(()=>({reference:C,floating:A}),[C,A]),F=l.useMemo(()=>{const E={position:n,left:0,top:0};if(!M.floating)return E;const K=Pr(M.floating,d.x),se=Pr(M.floating,d.y);return a?{...E,transform:"translate("+K+"px, "+se+"px)",...ko(M.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:K,top:se}},[n,a,M.floating,d.x,d.y]);return l.useMemo(()=>({...d,update:W,refs:z,elements:M,floatingStyles:F}),[d,W,z,M,F])}const Zc=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):{}}}},Jc=(e,t)=>({...Vc(e),options:[e,t]}),Qc=(e,t)=>({...$c(e),options:[e,t]}),el=(e,t)=>({...Yc(e),options:[e,t]}),tl=(e,t)=>({...zc(e),options:[e,t]}),nl=(e,t)=>({...Hc(e),options:[e,t]}),rl=(e,t)=>({...Uc(e),options:[e,t]}),ol=(e,t)=>({...Zc(e),options:[e,t]});var il="Arrow",Po=l.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...i}=e;return x.jsx(re.svg,{...i,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:x.jsx("polygon",{points:"0,0 30,0 15,10"})})});Po.displayName=il;var sl=Po,Mn="Popper",[Ao,To]=Wt(Mn),[al,Oo]=Ao(Mn),_o=e=>{const{__scopePopper:t,children:n}=e,[r,o]=l.useState(null);return x.jsx(al,{scope:t,anchor:r,onAnchorChange:o,children:n})};_o.displayName=Mn;var No="PopperAnchor",Io=l.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,i=Oo(No,n),s=l.useRef(null),a=ce(t,s),c=l.useRef(null);return l.useEffect(()=>{const u=c.current;c.current=r?.current||s.current,u!==c.current&&i.onAnchorChange(c.current)}),r?null:x.jsx(re.div,{...o,ref:a})});Io.displayName=No;var jn="PopperContent",[cl,ll]=Ao(jn),Mo=l.forwardRef((e,t)=>{const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:i="center",alignOffset:s=0,arrowPadding:a=0,avoidCollisions:c=!0,collisionBoundary:u=[],collisionPadding:d=0,sticky:m="partial",hideWhenDetached:h=!1,updatePositionStrategy:g="optimized",onPlaced:w,...p}=e,v=Oo(jn,n),[y,b]=l.useState(null),S=ce(t,T=>b(T)),[C,A]=l.useState(null),_=Zr(C),P=_?.width??0,k=_?.height??0,D=r+(i!=="center"?"-"+i:""),V=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},U=Array.isArray(u)?u:[u],$=U.length>0,W={padding:V,boundary:U.filter(dl),altBoundary:$},{refs:L,floatingStyles:z,placement:M,isPositioned:F,middlewareData:E}=qc({strategy:"fixed",placement:D,whileElementsMounted:(...T)=>Bc(...T,{animationFrame:g==="always"}),elements:{reference:v.anchor},middleware:[Jc({mainAxis:o+k,alignmentAxis:s}),c&&Qc({mainAxis:!0,crossAxis:!1,limiter:m==="partial"?el():void 0,...W}),c&&tl({...W}),nl({...W,apply:({elements:T,rects:X,availableWidth:ne,availableHeight:Y})=>{const{width:q,height:J}=X.reference,he=T.floating.style;he.setProperty("--radix-popper-available-width",`${ne}px`),he.setProperty("--radix-popper-available-height",`${Y}px`),he.setProperty("--radix-popper-anchor-width",`${q}px`),he.setProperty("--radix-popper-anchor-height",`${J}px`)}}),C&&ol({element:C,padding:a}),fl({arrowWidth:P,arrowHeight:k}),h&&rl({strategy:"referenceHidden",...W})]}),[K,se]=Lo(M),ve=Ye(w);de(()=>{F&&ve?.()},[F,ve]);const xe=E.arrow?.x,ee=E.arrow?.y,te=E.arrow?.centerOffset!==0,[be,me]=l.useState();return de(()=>{y&&me(window.getComputedStyle(y).zIndex)},[y]),x.jsx("div",{ref:L.setFloating,"data-radix-popper-content-wrapper":"",style:{...z,transform:F?z.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:be,"--radix-popper-transform-origin":[E.transformOrigin?.x,E.transformOrigin?.y].join(" "),...E.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:x.jsx(cl,{scope:n,placedSide:K,onArrowChange:A,arrowX:xe,arrowY:ee,shouldHideArrow:te,children:x.jsx(re.div,{"data-side":K,"data-align":se,...p,ref:S,style:{...p.style,animation:F?void 0:"none"}})})})});Mo.displayName=jn;var jo="PopperArrow",ul={top:"bottom",right:"left",bottom:"top",left:"right"},Do=l.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,i=ll(jo,r),s=ul[i.placedSide];return x.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:x.jsx(sl,{...o,ref:n,style:{...o.style,display:"block"}})})});Do.displayName=jo;function dl(e){return e!==null}var fl=e=>({name:"transformOrigin",options:e,fn(t){const{placement:n,rects:r,middlewareData:o}=t,s=o.arrow?.centerOffset!==0,a=s?0:e.arrowWidth,c=s?0:e.arrowHeight,[u,d]=Lo(n),m={start:"0%",center:"50%",end:"100%"}[d],h=(o.arrow?.x??0)+a/2,g=(o.arrow?.y??0)+c/2;let w="",p="";return u==="bottom"?(w=s?m:`${h}px`,p=`${-c}px`):u==="top"?(w=s?m:`${h}px`,p=`${r.floating.height+c}px`):u==="right"?(w=`${-c}px`,p=s?m:`${g}px`):u==="left"&&(w=`${r.floating.width+c}px`,p=s?m:`${g}px`),{data:{x:w,y:p}}}});function Lo(e){const[t,n="center"]=e.split("-");return[t,n]}var pl=_o,ml=Io,hl=Mo,gl=Do,vl="Portal",Fo=l.forwardRef((e,t)=>{const{container:n,...r}=e,[o,i]=l.useState(!1);de(()=>i(!0),[]);const s=n||o&&globalThis?.document?.body;return s?Ir.createPortal(x.jsx(re.div,{...r,ref:t}),s):null});Fo.displayName=vl;function bl(e){const t=yl(e),n=l.forwardRef((r,o)=>{const{children:i,...s}=r,a=l.Children.toArray(i),c=a.find(xl);if(c){const u=c.props.children,d=a.map(m=>m===c?l.Children.count(u)>1?l.Children.only(null):l.isValidElement(u)?u.props.children:null:m);return x.jsx(t,{...s,ref:o,children:l.isValidElement(u)?l.cloneElement(u,void 0,d):null})}return x.jsx(t,{...s,ref:o,children:i})});return n.displayName=`${e}.Slot`,n}function yl(e){const t=l.forwardRef((n,r)=>{const{children:o,...i}=n;if(l.isValidElement(o)){const s=Cl(o),a=Sl(i,o.props);return o.type!==l.Fragment&&(a.ref=r?gt(r,s):s),l.cloneElement(o,a)}return l.Children.count(o)>1?l.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var wl=Symbol("radix.slottable");function xl(e){return l.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===wl}function Sl(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 Cl(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Wo=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"}),El="VisuallyHidden",Rl=l.forwardRef((e,t)=>x.jsx(re.span,{...e,ref:t,style:{...Wo,...e.style}}));Rl.displayName=El;var kl=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},et=new WeakMap,Et=new WeakMap,Rt={},cn=0,Bo=function(e){return e&&(e.host||Bo(e.parentNode))},Pl=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=Bo(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},Al=function(e,t,n,r){var o=Pl(t,Array.isArray(e)?e:[e]);Rt[n]||(Rt[n]=new WeakMap);var i=Rt[n],s=[],a=new Set,c=new Set(o),u=function(m){!m||a.has(m)||(a.add(m),u(m.parentNode))};o.forEach(u);var d=function(m){!m||c.has(m)||Array.prototype.forEach.call(m.children,function(h){if(a.has(h))d(h);else try{var g=h.getAttribute(r),w=g!==null&&g!=="false",p=(et.get(h)||0)+1,v=(i.get(h)||0)+1;et.set(h,p),i.set(h,v),s.push(h),p===1&&w&&Et.set(h,!0),v===1&&h.setAttribute(n,"true"),w||h.setAttribute(r,"true")}catch(y){console.error("aria-hidden: cannot operate on ",h,y)}})};return d(t),a.clear(),cn++,function(){s.forEach(function(m){var h=et.get(m)-1,g=i.get(m)-1;et.set(m,h),i.set(m,g),h||(Et.has(m)||m.removeAttribute(r),Et.delete(m)),g||m.removeAttribute(n)}),cn--,cn||(et=new WeakMap,et=new WeakMap,Et=new WeakMap,Rt={})}},Tl=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"))),Al(r,o,n,"aria-hidden")):function(){return null}},ke=function(){return ke=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},ke.apply(this,arguments)};function Vo(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 Ol(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))}var Tt="right-scroll-bar-position",Ot="width-before-scroll-bar",_l="with-scroll-bars-hidden",Nl="--removed-body-scroll-bar-size";function ln(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Il(e,t){var n=ue.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 Ml=typeof window<"u"?l.useLayoutEffect:l.useEffect,Ar=new WeakMap;function jl(e,t){var n=Il(null,function(r){return e.forEach(function(o){return ln(o,r)})});return Ml(function(){var r=Ar.get(n);if(r){var o=new Set(r),i=new Set(e),s=n.current;o.forEach(function(a){i.has(a)||ln(a,null)}),i.forEach(function(a){o.has(a)||ln(a,s)})}Ar.set(n,e)},[e]),n}function Dl(e){return e}function Ll(e,t){t===void 0&&(t=Dl);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)},u=function(){return Promise.resolve().then(c)};u(),n={push:function(d){s.push(d),u()},filter:function(d){return s=s.filter(d),n}}}};return o}function Fl(e){e===void 0&&(e={});var t=Ll(null);return t.options=ke({async:!0,ssr:!1},e),t}var $o=function(e){var t=e.sideCar,n=Vo(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,ke({},n))};$o.isSideCarExport=!0;function Wl(e,t){return e.useMedium(t),$o}var zo=Fl(),un=function(){},Ut=l.forwardRef(function(e,t){var n=l.useRef(null),r=l.useState({onScrollCapture:un,onWheelCapture:un,onTouchMoveCapture:un}),o=r[0],i=r[1],s=e.forwardProps,a=e.children,c=e.className,u=e.removeScrollBar,d=e.enabled,m=e.shards,h=e.sideCar,g=e.noRelative,w=e.noIsolation,p=e.inert,v=e.allowPinchZoom,y=e.as,b=y===void 0?"div":y,S=e.gapMode,C=Vo(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),A=h,_=jl([n,t]),P=ke(ke({},C),o);return l.createElement(l.Fragment,null,d&&l.createElement(A,{sideCar:zo,removeScrollBar:u,shards:m,noRelative:g,noIsolation:w,inert:p,setCallbacks:i,allowPinchZoom:!!v,lockRef:n,gapMode:S}),s?l.cloneElement(l.Children.only(a),ke(ke({},P),{ref:_})):l.createElement(b,ke({},P,{className:c,ref:_}),a))});Ut.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Ut.classNames={fullWidth:Ot,zeroRight:Tt};var Bl=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Vl(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Bl();return t&&e.setAttribute("nonce",t),e}function $l(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function zl(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Hl=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Vl())&&($l(t,n),zl(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Ul=function(){var e=Hl();return function(t,n){l.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Ho=function(){var e=Ul(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},Yl={left:0,top:0,right:0,gap:0},dn=function(e){return parseInt(e||"",10)||0},Gl=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[dn(n),dn(r),dn(o)]},Kl=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Yl;var t=Gl(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])}},Xl=Ho(),ot="data-scroll-locked",ql=function(e,t,n,r){var o=e.left,i=e.top,s=e.right,a=e.gap;return n===void 0&&(n="margin"),`
15
+ .`.concat(_l,` {
16
+ overflow: hidden `).concat(r,`;
17
+ padding-right: `).concat(a,"px ").concat(r,`;
18
+ }
19
+ body[`).concat(ot,`] {
20
+ overflow: hidden `).concat(r,`;
21
+ overscroll-behavior: contain;
22
+ `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
23
+ padding-left: `.concat(o,`px;
24
+ padding-top: `).concat(i,`px;
25
+ padding-right: `).concat(s,`px;
26
+ margin-left:0;
27
+ margin-top:0;
28
+ margin-right: `).concat(a,"px ").concat(r,`;
29
+ `),n==="padding"&&"padding-right: ".concat(a,"px ").concat(r,";")].filter(Boolean).join(""),`
30
+ }
31
+
32
+ .`).concat(Tt,` {
33
+ right: `).concat(a,"px ").concat(r,`;
34
+ }
35
+
36
+ .`).concat(Ot,` {
37
+ margin-right: `).concat(a,"px ").concat(r,`;
38
+ }
39
+
40
+ .`).concat(Tt," .").concat(Tt,` {
41
+ right: 0 `).concat(r,`;
42
+ }
43
+
44
+ .`).concat(Ot," .").concat(Ot,` {
45
+ margin-right: 0 `).concat(r,`;
46
+ }
47
+
48
+ body[`).concat(ot,`] {
49
+ `).concat(Nl,": ").concat(a,`px;
50
+ }
51
+ `)},Tr=function(){var e=parseInt(document.body.getAttribute(ot)||"0",10);return isFinite(e)?e:0},Zl=function(){l.useEffect(function(){return document.body.setAttribute(ot,(Tr()+1).toString()),function(){var e=Tr()-1;e<=0?document.body.removeAttribute(ot):document.body.setAttribute(ot,e.toString())}},[])},Jl=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;Zl();var i=l.useMemo(function(){return Kl(o)},[o]);return l.createElement(Xl,{styles:ql(i,!t,o,n?"":"!important")})},bn=!1;if(typeof window<"u")try{var kt=Object.defineProperty({},"passive",{get:function(){return bn=!0,!0}});window.addEventListener("test",kt,kt),window.removeEventListener("test",kt,kt)}catch{bn=!1}var tt=bn?{passive:!1}:!1,Ql=function(e){return e.tagName==="TEXTAREA"},Uo=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!Ql(e)&&n[t]==="visible")},eu=function(e){return Uo(e,"overflowY")},tu=function(e){return Uo(e,"overflowX")},Or=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=Yo(e,r);if(o){var i=Go(e,r),s=i[1],a=i[2];if(s>a)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},nu=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},ru=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},Yo=function(e,t){return e==="v"?eu(t):tu(t)},Go=function(e,t){return e==="v"?nu(t):ru(t)},ou=function(e,t){return e==="h"&&t==="rtl"?-1:1},iu=function(e,t,n,r,o){var i=ou(e,window.getComputedStyle(t).direction),s=i*r,a=n.target,c=t.contains(a),u=!1,d=s>0,m=0,h=0;do{if(!a)break;var g=Go(e,a),w=g[0],p=g[1],v=g[2],y=p-v-i*w;(w||y)&&Yo(e,a)&&(m+=y,h+=w);var b=a.parentNode;a=b&&b.nodeType===Node.DOCUMENT_FRAGMENT_NODE?b.host:b}while(!c&&a!==document.body||c&&(t.contains(a)||t===a));return(d&&Math.abs(m)<1||!d&&Math.abs(h)<1)&&(u=!0),u},Pt=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},_r=function(e){return[e.deltaX,e.deltaY]},Nr=function(e){return e&&"current"in e?e.current:e},su=function(e,t){return e[0]===t[0]&&e[1]===t[1]},au=function(e){return`
52
+ .block-interactivity-`.concat(e,` {pointer-events: none;}
53
+ .allow-interactivity-`).concat(e,` {pointer-events: all;}
54
+ `)},cu=0,nt=[];function lu(e){var t=l.useRef([]),n=l.useRef([0,0]),r=l.useRef(),o=l.useState(cu++)[0],i=l.useState(Ho)[0],s=l.useRef(e);l.useEffect(function(){s.current=e},[e]),l.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var p=Ol([e.lockRef.current],(e.shards||[]).map(Nr),!0).filter(Boolean);return p.forEach(function(v){return v.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),p.forEach(function(v){return v.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var a=l.useCallback(function(p,v){if("touches"in p&&p.touches.length===2||p.type==="wheel"&&p.ctrlKey)return!s.current.allowPinchZoom;var y=Pt(p),b=n.current,S="deltaX"in p?p.deltaX:b[0]-y[0],C="deltaY"in p?p.deltaY:b[1]-y[1],A,_=p.target,P=Math.abs(S)>Math.abs(C)?"h":"v";if("touches"in p&&P==="h"&&_.type==="range")return!1;var k=window.getSelection(),D=k&&k.anchorNode,V=D?D===_||D.contains(_):!1;if(V)return!1;var U=Or(P,_);if(!U)return!0;if(U?A=P:(A=P==="v"?"h":"v",U=Or(P,_)),!U)return!1;if(!r.current&&"changedTouches"in p&&(S||C)&&(r.current=A),!A)return!0;var $=r.current||A;return iu($,v,p,$==="h"?S:C)},[]),c=l.useCallback(function(p){var v=p;if(!(!nt.length||nt[nt.length-1]!==i)){var y="deltaY"in v?_r(v):Pt(v),b=t.current.filter(function(A){return A.name===v.type&&(A.target===v.target||v.target===A.shadowParent)&&su(A.delta,y)})[0];if(b&&b.should){v.cancelable&&v.preventDefault();return}if(!b){var S=(s.current.shards||[]).map(Nr).filter(Boolean).filter(function(A){return A.contains(v.target)}),C=S.length>0?a(v,S[0]):!s.current.noIsolation;C&&v.cancelable&&v.preventDefault()}}},[]),u=l.useCallback(function(p,v,y,b){var S={name:p,delta:v,target:y,should:b,shadowParent:uu(y)};t.current.push(S),setTimeout(function(){t.current=t.current.filter(function(C){return C!==S})},1)},[]),d=l.useCallback(function(p){n.current=Pt(p),r.current=void 0},[]),m=l.useCallback(function(p){u(p.type,_r(p),p.target,a(p,e.lockRef.current))},[]),h=l.useCallback(function(p){u(p.type,Pt(p),p.target,a(p,e.lockRef.current))},[]);l.useEffect(function(){return nt.push(i),e.setCallbacks({onScrollCapture:m,onWheelCapture:m,onTouchMoveCapture:h}),document.addEventListener("wheel",c,tt),document.addEventListener("touchmove",c,tt),document.addEventListener("touchstart",d,tt),function(){nt=nt.filter(function(p){return p!==i}),document.removeEventListener("wheel",c,tt),document.removeEventListener("touchmove",c,tt),document.removeEventListener("touchstart",d,tt)}},[]);var g=e.removeScrollBar,w=e.inert;return l.createElement(l.Fragment,null,w?l.createElement(i,{styles:au(o)}):null,g?l.createElement(Jl,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function uu(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const du=Wl(zo,lu);var Ko=l.forwardRef(function(e,t){return l.createElement(Ut,ke({},e,{ref:t,sideCar:du}))});Ko.classNames=Ut.classNames;var fu=[" ","Enter","ArrowUp","ArrowDown"],pu=[" ","Enter"],Ke="Select",[Yt,Gt,mu]=Pa(Ke),[ut]=Wt(Ke,[mu,To]),Kt=To(),[hu,$e]=ut(Ke),[gu,vu]=ut(Ke),Xo=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:o,onOpenChange:i,value:s,defaultValue:a,onValueChange:c,dir:u,name:d,autoComplete:m,disabled:h,required:g,form:w}=e,p=Kt(t),[v,y]=l.useState(null),[b,S]=l.useState(null),[C,A]=l.useState(!1),_=Ta(u),[P,k]=pn({prop:r,defaultProp:o??!1,onChange:i,caller:Ke}),[D,V]=pn({prop:s,defaultProp:a,onChange:c,caller:Ke}),U=l.useRef(null),$=v?w||!!v.closest("form"):!0,[W,L]=l.useState(new Set),z=Array.from(W).map(M=>M.props.value).join(";");return x.jsx(pl,{...p,children:x.jsxs(hu,{required:g,scope:t,trigger:v,onTriggerChange:y,valueNode:b,onValueNodeChange:S,valueNodeHasChildren:C,onValueNodeHasChildrenChange:A,contentId:Pn(),value:D,onValueChange:V,open:P,onOpenChange:k,dir:_,triggerPointerDownPosRef:U,disabled:h,children:[x.jsx(Yt.Provider,{scope:t,children:x.jsx(gu,{scope:e.__scopeSelect,onNativeOptionAdd:l.useCallback(M=>{L(F=>new Set(F).add(M))},[]),onNativeOptionRemove:l.useCallback(M=>{L(F=>{const E=new Set(F);return E.delete(M),E})},[]),children:n})}),$?x.jsxs(vi,{"aria-hidden":!0,required:g,tabIndex:-1,name:d,autoComplete:m,value:D,onChange:M=>V(M.target.value),disabled:h,form:w,children:[D===void 0?x.jsx("option",{value:""}):null,Array.from(W)]},z):null]})})};Xo.displayName=Ke;var qo="SelectTrigger",Zo=l.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...o}=e,i=Kt(n),s=$e(qo,n),a=s.disabled||r,c=ce(t,s.onTriggerChange),u=Gt(n),d=l.useRef("touch"),[m,h,g]=yi(p=>{const v=u().filter(S=>!S.disabled),y=v.find(S=>S.value===s.value),b=wi(v,p,y);b!==void 0&&s.onValueChange(b.value)}),w=p=>{a||(s.onOpenChange(!0),g()),p&&(s.triggerPointerDownPosRef.current={x:Math.round(p.pageX),y:Math.round(p.pageY)})};return x.jsx(ml,{asChild:!0,...i,children:x.jsx(re.button,{type:"button",role:"combobox","aria-controls":s.contentId,"aria-expanded":s.open,"aria-required":s.required,"aria-autocomplete":"none",dir:s.dir,"data-state":s.open?"open":"closed",disabled:a,"data-disabled":a?"":void 0,"data-placeholder":bi(s.value)?"":void 0,...o,ref:c,onClick:oe(o.onClick,p=>{p.currentTarget.focus(),d.current!=="mouse"&&w(p)}),onPointerDown:oe(o.onPointerDown,p=>{d.current=p.pointerType;const v=p.target;v.hasPointerCapture(p.pointerId)&&v.releasePointerCapture(p.pointerId),p.button===0&&p.ctrlKey===!1&&p.pointerType==="mouse"&&(w(p),p.preventDefault())}),onKeyDown:oe(o.onKeyDown,p=>{const v=m.current!=="";!(p.ctrlKey||p.altKey||p.metaKey)&&p.key.length===1&&h(p.key),!(v&&p.key===" ")&&fu.includes(p.key)&&(w(),p.preventDefault())})})})});Zo.displayName=qo;var Jo="SelectValue",Qo=l.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,children:i,placeholder:s="",...a}=e,c=$e(Jo,n),{onValueNodeHasChildrenChange:u}=c,d=i!==void 0,m=ce(t,c.onValueNodeChange);return de(()=>{u(d)},[u,d]),x.jsx(re.span,{...a,ref:m,style:{pointerEvents:"none"},children:bi(c.value)?x.jsx(x.Fragment,{children:s}):i})});Qo.displayName=Jo;var bu="SelectIcon",ei=l.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...o}=e;return x.jsx(re.span,{"aria-hidden":!0,...o,ref:t,children:r||"▼"})});ei.displayName=bu;var yu="SelectPortal",ti=e=>x.jsx(Fo,{asChild:!0,...e});ti.displayName=yu;var Xe="SelectContent",ni=l.forwardRef((e,t)=>{const n=$e(Xe,e.__scopeSelect),[r,o]=l.useState();if(de(()=>{o(new DocumentFragment)},[]),!n.open){const i=r;return i?Ft.createPortal(x.jsx(ri,{scope:e.__scopeSelect,children:x.jsx(Yt.Slot,{scope:e.__scopeSelect,children:x.jsx("div",{children:e.children})})}),i):null}return x.jsx(oi,{...e,ref:t})});ni.displayName=Xe;var Ce=10,[ri,ze]=ut(Xe),wu="SelectContentImpl",xu=bl("SelectContent.RemoveScroll"),oi=l.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:i,onPointerDownOutside:s,side:a,sideOffset:c,align:u,alignOffset:d,arrowPadding:m,collisionBoundary:h,collisionPadding:g,sticky:w,hideWhenDetached:p,avoidCollisions:v,...y}=e,b=$e(Xe,n),[S,C]=l.useState(null),[A,_]=l.useState(null),P=ce(t,T=>C(T)),[k,D]=l.useState(null),[V,U]=l.useState(null),$=Gt(n),[W,L]=l.useState(!1),z=l.useRef(!1);l.useEffect(()=>{if(S)return Tl(S)},[S]),Fa();const M=l.useCallback(T=>{const[X,...ne]=$().map(J=>J.ref.current),[Y]=ne.slice(-1),q=document.activeElement;for(const J of T)if(J===q||(J?.scrollIntoView({block:"nearest"}),J===X&&A&&(A.scrollTop=0),J===Y&&A&&(A.scrollTop=A.scrollHeight),J?.focus(),document.activeElement!==q))return},[$,A]),F=l.useCallback(()=>M([k,S]),[M,k,S]);l.useEffect(()=>{W&&F()},[W,F]);const{onOpenChange:E,triggerPointerDownPosRef:K}=b;l.useEffect(()=>{if(S){let T={x:0,y:0};const X=Y=>{T={x:Math.abs(Math.round(Y.pageX)-(K.current?.x??0)),y:Math.abs(Math.round(Y.pageY)-(K.current?.y??0))}},ne=Y=>{T.x<=10&&T.y<=10?Y.preventDefault():S.contains(Y.target)||E(!1),document.removeEventListener("pointermove",X),K.current=null};return K.current!==null&&(document.addEventListener("pointermove",X),document.addEventListener("pointerup",ne,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",X),document.removeEventListener("pointerup",ne,{capture:!0})}}},[S,E,K]),l.useEffect(()=>{const T=()=>E(!1);return window.addEventListener("blur",T),window.addEventListener("resize",T),()=>{window.removeEventListener("blur",T),window.removeEventListener("resize",T)}},[E]);const[se,ve]=yi(T=>{const X=$().filter(q=>!q.disabled),ne=X.find(q=>q.ref.current===document.activeElement),Y=wi(X,T,ne);Y&&setTimeout(()=>Y.ref.current.focus())}),xe=l.useCallback((T,X,ne)=>{const Y=!z.current&&!ne;(b.value!==void 0&&b.value===X||Y)&&(D(T),Y&&(z.current=!0))},[b.value]),ee=l.useCallback(()=>S?.focus(),[S]),te=l.useCallback((T,X,ne)=>{const Y=!z.current&&!ne;(b.value!==void 0&&b.value===X||Y)&&U(T)},[b.value]),be=r==="popper"?yn:ii,me=be===yn?{side:a,sideOffset:c,align:u,alignOffset:d,arrowPadding:m,collisionBoundary:h,collisionPadding:g,sticky:w,hideWhenDetached:p,avoidCollisions:v}:{};return x.jsx(ri,{scope:n,content:S,viewport:A,onViewportChange:_,itemRefCallback:xe,selectedItem:k,onItemLeave:ee,itemTextRefCallback:te,focusSelectedItem:F,selectedItemText:V,position:r,isPositioned:W,searchRef:se,children:x.jsx(Ko,{as:xu,allowPinchZoom:!0,children:x.jsx(mo,{asChild:!0,trapped:b.open,onMountAutoFocus:T=>{T.preventDefault()},onUnmountAutoFocus:oe(o,T=>{b.trigger?.focus({preventScroll:!0}),T.preventDefault()}),children:x.jsx(fo,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:T=>T.preventDefault(),onDismiss:()=>b.onOpenChange(!1),children:x.jsx(be,{role:"listbox",id:b.contentId,"data-state":b.open?"open":"closed",dir:b.dir,onContextMenu:T=>T.preventDefault(),...y,...me,onPlaced:()=>L(!0),ref:P,style:{display:"flex",flexDirection:"column",outline:"none",...y.style},onKeyDown:oe(y.onKeyDown,T=>{const X=T.ctrlKey||T.altKey||T.metaKey;if(T.key==="Tab"&&T.preventDefault(),!X&&T.key.length===1&&ve(T.key),["ArrowUp","ArrowDown","Home","End"].includes(T.key)){let Y=$().filter(q=>!q.disabled).map(q=>q.ref.current);if(["ArrowUp","End"].includes(T.key)&&(Y=Y.slice().reverse()),["ArrowUp","ArrowDown"].includes(T.key)){const q=T.target,J=Y.indexOf(q);Y=Y.slice(J+1)}setTimeout(()=>M(Y)),T.preventDefault()}})})})})})})});oi.displayName=wu;var Su="SelectItemAlignedPosition",ii=l.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...o}=e,i=$e(Xe,n),s=ze(Xe,n),[a,c]=l.useState(null),[u,d]=l.useState(null),m=ce(t,P=>d(P)),h=Gt(n),g=l.useRef(!1),w=l.useRef(!0),{viewport:p,selectedItem:v,selectedItemText:y,focusSelectedItem:b}=s,S=l.useCallback(()=>{if(i.trigger&&i.valueNode&&a&&u&&p&&v&&y){const P=i.trigger.getBoundingClientRect(),k=u.getBoundingClientRect(),D=i.valueNode.getBoundingClientRect(),V=y.getBoundingClientRect();if(i.dir!=="rtl"){const q=V.left-k.left,J=D.left-q,he=P.left-J,_e=P.width+he,De=Math.max(_e,k.width),Ne=window.innerWidth-Ce,qe=cr(J,[Ce,Math.max(Ce,Ne-De)]);a.style.minWidth=_e+"px",a.style.left=qe+"px"}else{const q=k.right-V.right,J=window.innerWidth-D.right-q,he=window.innerWidth-P.right-J,_e=P.width+he,De=Math.max(_e,k.width),Ne=window.innerWidth-Ce,qe=cr(J,[Ce,Math.max(Ce,Ne-De)]);a.style.minWidth=_e+"px",a.style.right=qe+"px"}const U=h(),$=window.innerHeight-Ce*2,W=p.scrollHeight,L=window.getComputedStyle(u),z=parseInt(L.borderTopWidth,10),M=parseInt(L.paddingTop,10),F=parseInt(L.borderBottomWidth,10),E=parseInt(L.paddingBottom,10),K=z+M+W+E+F,se=Math.min(v.offsetHeight*5,K),ve=window.getComputedStyle(p),xe=parseInt(ve.paddingTop,10),ee=parseInt(ve.paddingBottom,10),te=P.top+P.height/2-Ce,be=$-te,me=v.offsetHeight/2,T=v.offsetTop+me,X=z+M+T,ne=K-X;if(X<=te){const q=U.length>0&&v===U[U.length-1].ref.current;a.style.bottom="0px";const J=u.clientHeight-p.offsetTop-p.offsetHeight,he=Math.max(be,me+(q?ee:0)+J+F),_e=X+he;a.style.height=_e+"px"}else{const q=U.length>0&&v===U[0].ref.current;a.style.top="0px";const he=Math.max(te,z+p.offsetTop+(q?xe:0)+me)+ne;a.style.height=he+"px",p.scrollTop=X-te+p.offsetTop}a.style.margin=`${Ce}px 0`,a.style.minHeight=se+"px",a.style.maxHeight=$+"px",r?.(),requestAnimationFrame(()=>g.current=!0)}},[h,i.trigger,i.valueNode,a,u,p,v,y,i.dir,r]);de(()=>S(),[S]);const[C,A]=l.useState();de(()=>{u&&A(window.getComputedStyle(u).zIndex)},[u]);const _=l.useCallback(P=>{P&&w.current===!0&&(S(),b?.(),w.current=!1)},[S,b]);return x.jsx(Eu,{scope:n,contentWrapper:a,shouldExpandOnScrollRef:g,onScrollButtonChange:_,children:x.jsx("div",{ref:c,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:C},children:x.jsx(re.div,{...o,ref:m,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});ii.displayName=Su;var Cu="SelectPopperPosition",yn=l.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:o=Ce,...i}=e,s=Kt(n);return x.jsx(hl,{...s,...i,ref:t,align:r,collisionPadding:o,style:{boxSizing:"border-box",...i.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)"}})});yn.displayName=Cu;var[Eu,Dn]=ut(Xe,{}),wn="SelectViewport",si=l.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...o}=e,i=ze(wn,n),s=Dn(wn,n),a=ce(t,i.onViewportChange),c=l.useRef(0);return x.jsxs(x.Fragment,{children:[x.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}),x.jsx(Yt.Slot,{scope:n,children:x.jsx(re.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:a,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:oe(o.onScroll,u=>{const d=u.currentTarget,{contentWrapper:m,shouldExpandOnScrollRef:h}=s;if(h?.current&&m){const g=Math.abs(c.current-d.scrollTop);if(g>0){const w=window.innerHeight-Ce*2,p=parseFloat(m.style.minHeight),v=parseFloat(m.style.height),y=Math.max(p,v);if(y<w){const b=y+g,S=Math.min(w,b),C=b-S;m.style.height=S+"px",m.style.bottom==="0px"&&(d.scrollTop=C>0?C:0,m.style.justifyContent="flex-end")}}}c.current=d.scrollTop})})})]})});si.displayName=wn;var ai="SelectGroup",[Ru,ku]=ut(ai),Pu=l.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=Pn();return x.jsx(Ru,{scope:n,id:o,children:x.jsx(re.div,{role:"group","aria-labelledby":o,...r,ref:t})})});Pu.displayName=ai;var ci="SelectLabel",Au=l.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=ku(ci,n);return x.jsx(re.div,{id:o.id,...r,ref:t})});Au.displayName=ci;var Lt="SelectItem",[Tu,li]=ut(Lt),ui=l.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:o=!1,textValue:i,...s}=e,a=$e(Lt,n),c=ze(Lt,n),u=a.value===r,[d,m]=l.useState(i??""),[h,g]=l.useState(!1),w=ce(t,b=>c.itemRefCallback?.(b,r,o)),p=Pn(),v=l.useRef("touch"),y=()=>{o||(a.onValueChange(r),a.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 x.jsx(Tu,{scope:n,value:r,disabled:o,textId:p,isSelected:u,onItemTextChange:l.useCallback(b=>{m(S=>S||(b?.textContent??"").trim())},[]),children:x.jsx(Yt.ItemSlot,{scope:n,value:r,disabled:o,textValue:d,children:x.jsx(re.div,{role:"option","aria-labelledby":p,"data-highlighted":h?"":void 0,"aria-selected":u&&h,"data-state":u?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...s,ref:w,onFocus:oe(s.onFocus,()=>g(!0)),onBlur:oe(s.onBlur,()=>g(!1)),onClick:oe(s.onClick,()=>{v.current!=="mouse"&&y()}),onPointerUp:oe(s.onPointerUp,()=>{v.current==="mouse"&&y()}),onPointerDown:oe(s.onPointerDown,b=>{v.current=b.pointerType}),onPointerMove:oe(s.onPointerMove,b=>{v.current=b.pointerType,o?c.onItemLeave?.():v.current==="mouse"&&b.currentTarget.focus({preventScroll:!0})}),onPointerLeave:oe(s.onPointerLeave,b=>{b.currentTarget===document.activeElement&&c.onItemLeave?.()}),onKeyDown:oe(s.onKeyDown,b=>{c.searchRef?.current!==""&&b.key===" "||(pu.includes(b.key)&&y(),b.key===" "&&b.preventDefault())})})})})});ui.displayName=Lt;var mt="SelectItemText",di=l.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,...i}=e,s=$e(mt,n),a=ze(mt,n),c=li(mt,n),u=vu(mt,n),[d,m]=l.useState(null),h=ce(t,y=>m(y),c.onItemTextChange,y=>a.itemTextRefCallback?.(y,c.value,c.disabled)),g=d?.textContent,w=l.useMemo(()=>x.jsx("option",{value:c.value,disabled:c.disabled,children:g},c.value),[c.disabled,c.value,g]),{onNativeOptionAdd:p,onNativeOptionRemove:v}=u;return de(()=>(p(w),()=>v(w)),[p,v,w]),x.jsxs(x.Fragment,{children:[x.jsx(re.span,{id:c.textId,...i,ref:h}),c.isSelected&&s.valueNode&&!s.valueNodeHasChildren?Ft.createPortal(i.children,s.valueNode):null]})});di.displayName=mt;var fi="SelectItemIndicator",pi=l.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return li(fi,n).isSelected?x.jsx(re.span,{"aria-hidden":!0,...r,ref:t}):null});pi.displayName=fi;var xn="SelectScrollUpButton",mi=l.forwardRef((e,t)=>{const n=ze(xn,e.__scopeSelect),r=Dn(xn,e.__scopeSelect),[o,i]=l.useState(!1),s=ce(t,r.onScrollButtonChange);return de(()=>{if(n.viewport&&n.isPositioned){let a=function(){const u=c.scrollTop>0;i(u)};const c=n.viewport;return a(),c.addEventListener("scroll",a),()=>c.removeEventListener("scroll",a)}},[n.viewport,n.isPositioned]),o?x.jsx(gi,{...e,ref:s,onAutoScroll:()=>{const{viewport:a,selectedItem:c}=n;a&&c&&(a.scrollTop=a.scrollTop-c.offsetHeight)}}):null});mi.displayName=xn;var Sn="SelectScrollDownButton",hi=l.forwardRef((e,t)=>{const n=ze(Sn,e.__scopeSelect),r=Dn(Sn,e.__scopeSelect),[o,i]=l.useState(!1),s=ce(t,r.onScrollButtonChange);return de(()=>{if(n.viewport&&n.isPositioned){let a=function(){const u=c.scrollHeight-c.clientHeight,d=Math.ceil(c.scrollTop)<u;i(d)};const c=n.viewport;return a(),c.addEventListener("scroll",a),()=>c.removeEventListener("scroll",a)}},[n.viewport,n.isPositioned]),o?x.jsx(gi,{...e,ref:s,onAutoScroll:()=>{const{viewport:a,selectedItem:c}=n;a&&c&&(a.scrollTop=a.scrollTop+c.offsetHeight)}}):null});hi.displayName=Sn;var gi=l.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...o}=e,i=ze("SelectScrollButton",n),s=l.useRef(null),a=Gt(n),c=l.useCallback(()=>{s.current!==null&&(window.clearInterval(s.current),s.current=null)},[]);return l.useEffect(()=>()=>c(),[c]),de(()=>{a().find(d=>d.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:"nearest"})},[a]),x.jsx(re.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:oe(o.onPointerDown,()=>{s.current===null&&(s.current=window.setInterval(r,50))}),onPointerMove:oe(o.onPointerMove,()=>{i.onItemLeave?.(),s.current===null&&(s.current=window.setInterval(r,50))}),onPointerLeave:oe(o.onPointerLeave,()=>{c()})})}),Ou="SelectSeparator",_u=l.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return x.jsx(re.div,{"aria-hidden":!0,...r,ref:t})});_u.displayName=Ou;var Cn="SelectArrow",Nu=l.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=Kt(n),i=$e(Cn,n),s=ze(Cn,n);return i.open&&s.position==="popper"?x.jsx(gl,{...o,...r,ref:t}):null});Nu.displayName=Cn;var Iu="SelectBubbleInput",vi=l.forwardRef(({__scopeSelect:e,value:t,...n},r)=>{const o=l.useRef(null),i=ce(r,o),s=qr(t);return l.useEffect(()=>{const a=o.current;if(!a)return;const c=window.HTMLSelectElement.prototype,d=Object.getOwnPropertyDescriptor(c,"value").set;if(s!==t&&d){const m=new Event("change",{bubbles:!0});d.call(a,t),a.dispatchEvent(m)}},[s,t]),x.jsx(re.select,{...n,style:{...Wo,...n.style},ref:i,defaultValue:t})});vi.displayName=Iu;function bi(e){return e===""||e===void 0}function yi(e){const t=Ye(e),n=l.useRef(""),r=l.useRef(0),o=l.useCallback(s=>{const a=n.current+s;t(a),(function c(u){n.current=u,window.clearTimeout(r.current),u!==""&&(r.current=window.setTimeout(()=>c(""),1e3))})(a)},[t]),i=l.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return l.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,o,i]}function wi(e,t,n){const o=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,i=n?e.indexOf(n):-1;let s=Mu(e,Math.max(i,0));o.length===1&&(s=s.filter(u=>u!==n));const c=s.find(u=>u.textValue.toLowerCase().startsWith(o.toLowerCase()));return c!==n?c:void 0}function Mu(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var ju=Xo,Du=Zo,Lu=Qo,Fu=ei,Wu=ti,Bu=ni,Vu=si,$u=ui,zu=di,Hu=pi,Uu=mi,Yu=hi;function Gu({...e}){return x.jsx(ju,{"data-slot":"select",...e})}function Ku({...e}){return x.jsx(Lu,{"data-slot":"select-value",...e})}function Xu({className:e,size:t="default",children:n,...r}){return x.jsxs(Du,{"data-slot":"select-trigger","data-size":t,className:pe("border-input data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground focus-visible:border-ring focus-visible:ring-[#1447e6] 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-full items-center justify-between gap-2 rounded-md border bg-input-background px-3 py-2 text-sm whitespace-nowrap transition-[color,box-shadow] outline-none focus-visible:ring-[1px] 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,x.jsx(Fu,{asChild:!0,children:x.jsx(lo,{className:"size-4 opacity-50"})})]})}function qu({className:e,children:t,position:n="popper",...r}){return x.jsx(Wu,{children:x.jsxs(Bu,{"data-slot":"select-content",className:pe("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:[x.jsx(Ju,{}),x.jsx(Vu,{className:pe("p-1",n==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"),children:t}),x.jsx(Qu,{})]})})}function Zu({className:e,children:t,...n}){return x.jsxs($u,{"data-slot":"select-item",className:pe("focus:bg-[#1447e6]/10 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:[x.jsx("span",{className:"absolute right-2 flex size-3.5 items-center justify-center",children:x.jsx(Hu,{children:x.jsx(co,{className:"size-4"})})}),x.jsx(zu,{children:t})]})}function Ju({className:e,...t}){return x.jsx(Uu,{"data-slot":"select-scroll-up-button",className:pe("flex cursor-default items-center justify-center py-1",e),...t,children:x.jsx(wa,{className:"size-4"})})}function Qu({className:e,...t}){return x.jsx(Yu,{"data-slot":"select-scroll-down-button",className:pe("flex cursor-default items-center justify-center py-1",e),...t,children:x.jsx(lo,{className:"size-4"})})}function ed({className:e,...t}){return x.jsx("div",{"data-slot":"table-container",className:"relative w-full overflow-x-auto",children:x.jsx("table",{"data-slot":"table",className:pe("w-full caption-bottom text-sm",e),...t})})}function td({className:e,...t}){return x.jsx("thead",{"data-slot":"table-header",className:pe("[&_tr]:border-b",e),...t})}function nd({className:e,...t}){return x.jsx("tbody",{"data-slot":"table-body",className:pe("[&_tr:last-child]:border-0",e),...t})}function rd({className:e,...t}){return x.jsx("tr",{"data-slot":"table-row",className:pe("hover:bg-muted/50 data-[state=selected]:bg-muted border-b transition-colors",e),...t})}function od({className:e,...t}){return x.jsx("th",{"data-slot":"table-head",className:pe("text-foreground h-10 px-2 text-left align-middle font-medium whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",e),...t})}function id({className:e,...t}){return x.jsx("td",{"data-slot":"table-cell",className:pe("p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",e),...t})}exports.Button=Us;exports.Checkbox=xa;exports.Input=Ys;exports.Select=Gu;exports.SelectContent=qu;exports.SelectItem=Zu;exports.SelectTrigger=Xu;exports.SelectValue=Ku;exports.Table=ed;exports.TableBody=nd;exports.TableCell=id;exports.TableHead=od;exports.TableHeader=td;exports.TableRow=rd;
package/package.json CHANGED
@@ -1,11 +1,15 @@
1
1
  {
2
2
  "name": "@uinetworks/design-system",
3
3
  "private": false,
4
- "version": "1.0.2",
4
+ "version": "1.0.4",
5
5
  "type": "module",
6
- "main": "./dist/design-system.cjs",
7
- "module": "./dist/design-system.js",
6
+ "main": "./dist/design-system.cjs.js",
7
+ "module": "./dist/design-system.es.js",
8
8
  "types": "./dist/index.d.ts",
9
+ "exports": {
10
+ "import": "./dist/design-system.es.js",
11
+ "require": "./dist/design-system.cjs.js"
12
+ },
9
13
  "files": [
10
14
  "dist"
11
15
  ],
File without changes