@qodo/design-system 0.8.0 → 0.9.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -0
- package/dist/design-system.css +1 -1
- package/dist/index.cjs.js +49 -34
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +41 -1
- package/dist/index.esm.js +4020 -3658
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const S=require("react"),rr=require("react-dom");function
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const S=require("react"),rr=require("react-dom");function la(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const d=la(S),$r=la(rr),Ku={primary:{50:"#eff6ff",100:"#dbeafe",500:"#3b82f6",600:"#2563eb",900:"#1e3a8a"},secondary:{50:"#f8fafc",100:"#f1f5f9",500:"#64748b",600:"#475569",900:"#0f172a"},success:{50:"#f0fdf4",500:"#22c55e",600:"#16a34a"},error:{50:"#fef2f2",500:"#ef4444",600:"#dc2626"}},Yu={xs:"0.25rem",sm:"0.5rem",md:"1rem",lg:"1.5rem",xl:"2rem","2xl":"3rem"},qu={sm:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem"},Xu={fontFamily:{sans:["Inter","system-ui","sans-serif"],mono:["JetBrains Mono","monospace"]},fontSize:{xs:"0.75rem",sm:"0.875rem",base:"1rem",lg:"1.125rem",xl:"1.25rem","2xl":"1.5rem"}};var pr={exports:{}},Ht={};/**
|
|
2
2
|
* @license React
|
|
3
3
|
* react-jsx-runtime.production.min.js
|
|
4
4
|
*
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*
|
|
7
7
|
* This source code is licensed under the MIT license found in the
|
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var
|
|
9
|
+
*/var is;function Zu(){if(is)return Ht;is=1;var e=S,t=Symbol.for("react.element"),r=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function a(i,c,u){var f,p={},h=null,m=null;u!==void 0&&(h=""+u),c.key!==void 0&&(h=""+c.key),c.ref!==void 0&&(m=c.ref);for(f in c)n.call(c,f)&&!s.hasOwnProperty(f)&&(p[f]=c[f]);if(i&&i.defaultProps)for(f in c=i.defaultProps,c)p[f]===void 0&&(p[f]=c[f]);return{$$typeof:t,type:i,key:h,ref:m,props:p,_owner:o.current}}return Ht.Fragment=r,Ht.jsx=a,Ht.jsxs=a,Ht}var Gt={};/**
|
|
10
10
|
* @license React
|
|
11
11
|
* react-jsx-runtime.development.js
|
|
12
12
|
*
|
|
@@ -14,21 +14,21 @@
|
|
|
14
14
|
*
|
|
15
15
|
* This source code is licensed under the MIT license found in the
|
|
16
16
|
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var
|
|
18
|
-
`+
|
|
19
|
-
`),be=
|
|
20
|
-
`),pe=
|
|
21
|
-
`+
|
|
17
|
+
*/var ls;function Ju(){return ls||(ls=1,process.env.NODE_ENV!=="production"&&(function(){var e=S,t=Symbol.for("react.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),i=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen"),w=Symbol.iterator,g="@@iterator";function v(y){if(y===null||typeof y!="object")return null;var _=w&&y[w]||y[g];return typeof _=="function"?_:null}var b=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function x(y){{for(var _=arguments.length,L=new Array(_>1?_-1:0),Z=1;Z<_;Z++)L[Z-1]=arguments[Z];C("error",y,L)}}function C(y,_,L){{var Z=b.ReactDebugCurrentFrame,ue=Z.getStackAddendum();ue!==""&&(_+="%s",L=L.concat([ue]));var fe=L.map(function(ce){return String(ce)});fe.unshift("Warning: "+_),Function.prototype.apply.call(console[y],console,fe)}}var E=!1,R=!1,j=!1,A=!1,N=!1,G;G=Symbol.for("react.module.reference");function Y(y){return!!(typeof y=="string"||typeof y=="function"||y===n||y===s||N||y===o||y===u||y===f||A||y===m||E||R||j||typeof y=="object"&&y!==null&&(y.$$typeof===h||y.$$typeof===p||y.$$typeof===a||y.$$typeof===i||y.$$typeof===c||y.$$typeof===G||y.getModuleId!==void 0))}function ee(y,_,L){var Z=y.displayName;if(Z)return Z;var ue=_.displayName||_.name||"";return ue!==""?L+"("+ue+")":L}function Q(y){return y.displayName||"Context"}function q(y){if(y==null)return null;if(typeof y.tag=="number"&&x("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof y=="function")return y.displayName||y.name||null;if(typeof y=="string")return y;switch(y){case n:return"Fragment";case r:return"Portal";case s:return"Profiler";case o:return"StrictMode";case u:return"Suspense";case f:return"SuspenseList"}if(typeof y=="object")switch(y.$$typeof){case i:var _=y;return Q(_)+".Consumer";case a:var L=y;return Q(L._context)+".Provider";case c:return ee(y,y.render,"ForwardRef");case p:var Z=y.displayName||null;return Z!==null?Z:q(y.type)||"Memo";case h:{var ue=y,fe=ue._payload,ce=ue._init;try{return q(ce(fe))}catch{return null}}}return null}var W=Object.assign,M=0,T,D,k,H,U,re,P;function $(){}$.__reactDisabledLog=!0;function z(){{if(M===0){T=console.log,D=console.info,k=console.warn,H=console.error,U=console.group,re=console.groupCollapsed,P=console.groupEnd;var y={configurable:!0,enumerable:!0,value:$,writable:!0};Object.defineProperties(console,{info:y,log:y,warn:y,error:y,group:y,groupCollapsed:y,groupEnd:y})}M++}}function F(){{if(M--,M===0){var y={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:W({},y,{value:T}),info:W({},y,{value:D}),warn:W({},y,{value:k}),error:W({},y,{value:H}),group:W({},y,{value:U}),groupCollapsed:W({},y,{value:re}),groupEnd:W({},y,{value:P})})}M<0&&x("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var te=b.ReactCurrentDispatcher,O;function X(y,_,L){{if(O===void 0)try{throw Error()}catch(ue){var Z=ue.stack.trim().match(/\n( *(at )?)/);O=Z&&Z[1]||""}return`
|
|
18
|
+
`+O+y}}var ne=!1,oe;{var le=typeof WeakMap=="function"?WeakMap:Map;oe=new le}function ae(y,_){if(!y||ne)return"";{var L=oe.get(y);if(L!==void 0)return L}var Z;ne=!0;var ue=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var fe;fe=te.current,te.current=null,z();try{if(_){var ce=function(){throw Error()};if(Object.defineProperty(ce.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ce,[])}catch(we){Z=we}Reflect.construct(y,[],ce)}else{try{ce.call()}catch(we){Z=we}y.call(ce.prototype)}}else{try{throw Error()}catch(we){Z=we}y()}}catch(we){if(we&&Z&&typeof we.stack=="string"){for(var ie=we.stack.split(`
|
|
19
|
+
`),be=Z.stack.split(`
|
|
20
|
+
`),pe=ie.length-1,me=be.length-1;pe>=1&&me>=0&&ie[pe]!==be[me];)me--;for(;pe>=1&&me>=0;pe--,me--)if(ie[pe]!==be[me]){if(pe!==1||me!==1)do if(pe--,me--,me<0||ie[pe]!==be[me]){var Re=`
|
|
21
|
+
`+ie[pe].replace(" at new "," at ");return y.displayName&&Re.includes("<anonymous>")&&(Re=Re.replace("<anonymous>",y.displayName)),typeof y=="function"&&oe.set(y,Re),Re}while(pe>=1&&me>=0);break}}}finally{ne=!1,te.current=fe,F(),Error.prepareStackTrace=ue}var wt=y?y.displayName||y.name:"",lt=wt?X(wt):"";return typeof y=="function"&&oe.set(y,lt),lt}function xe(y,_,L){return ae(y,!1)}function Pe(y){var _=y.prototype;return!!(_&&_.isReactComponent)}function De(y,_,L){if(y==null)return"";if(typeof y=="function")return ae(y,Pe(y));if(typeof y=="string")return X(y);switch(y){case u:return X("Suspense");case f:return X("SuspenseList")}if(typeof y=="object")switch(y.$$typeof){case c:return xe(y.render);case p:return De(y.type,_,L);case h:{var Z=y,ue=Z._payload,fe=Z._init;try{return De(fe(ue),_,L)}catch{}}}return""}var Te=Object.prototype.hasOwnProperty,Ze={},fr=b.ReactDebugCurrentFrame;function Ge(y){if(y){var _=y._owner,L=De(y.type,y._source,_?_.type:null);fr.setExtraStackFrame(L)}else fr.setExtraStackFrame(null)}function ku(y,_,L,Z,ue){{var fe=Function.call.bind(Te);for(var ce in y)if(fe(y,ce)){var ie=void 0;try{if(typeof y[ce]!="function"){var be=Error((Z||"React class")+": "+L+" type `"+ce+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof y[ce]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw be.name="Invariant Violation",be}ie=y[ce](_,ce,Z,L,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(pe){ie=pe}ie&&!(ie instanceof Error)&&(Ge(ue),x("%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).",Z||"React class",L,ce,typeof ie),Ge(null)),ie instanceof Error&&!(ie.message in Ze)&&(Ze[ie.message]=!0,Ge(ue),x("Failed %s type: %s",L,ie.message),Ge(null))}}}var Pu=Array.isArray;function un(y){return Pu(y)}function Ru(y){{var _=typeof Symbol=="function"&&Symbol.toStringTag,L=_&&y[Symbol.toStringTag]||y.constructor.name||"Object";return L}}function Nu(y){try{return qo(y),!1}catch{return!0}}function qo(y){return""+y}function Xo(y){if(Nu(y))return x("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Ru(y)),qo(y)}var Zo=b.ReactCurrentOwner,Tu={key:!0,ref:!0,__self:!0,__source:!0},Jo,Qo;function ju(y){if(Te.call(y,"ref")){var _=Object.getOwnPropertyDescriptor(y,"ref").get;if(_&&_.isReactWarning)return!1}return y.ref!==void 0}function Au(y){if(Te.call(y,"key")){var _=Object.getOwnPropertyDescriptor(y,"key").get;if(_&&_.isReactWarning)return!1}return y.key!==void 0}function _u(y,_){typeof y.ref=="string"&&Zo.current}function Iu(y,_){{var L=function(){Jo||(Jo=!0,x("%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)",_))};L.isReactWarning=!0,Object.defineProperty(y,"key",{get:L,configurable:!0})}}function Ou(y,_){{var L=function(){Qo||(Qo=!0,x("%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)",_))};L.isReactWarning=!0,Object.defineProperty(y,"ref",{get:L,configurable:!0})}}var Mu=function(y,_,L,Z,ue,fe,ce){var ie={$$typeof:t,type:y,key:_,ref:L,props:ce,_owner:fe};return ie._store={},Object.defineProperty(ie._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(ie,"_self",{configurable:!1,enumerable:!1,writable:!1,value:Z}),Object.defineProperty(ie,"_source",{configurable:!1,enumerable:!1,writable:!1,value:ue}),Object.freeze&&(Object.freeze(ie.props),Object.freeze(ie)),ie};function Du(y,_,L,Z,ue){{var fe,ce={},ie=null,be=null;L!==void 0&&(Xo(L),ie=""+L),Au(_)&&(Xo(_.key),ie=""+_.key),ju(_)&&(be=_.ref,_u(_,ue));for(fe in _)Te.call(_,fe)&&!Tu.hasOwnProperty(fe)&&(ce[fe]=_[fe]);if(y&&y.defaultProps){var pe=y.defaultProps;for(fe in pe)ce[fe]===void 0&&(ce[fe]=pe[fe])}if(ie||be){var me=typeof y=="function"?y.displayName||y.name||"Unknown":y;ie&&Iu(ce,me),be&&Ou(ce,me)}return Mu(y,ie,be,ue,Z,Zo.current,ce)}}var dn=b.ReactCurrentOwner,es=b.ReactDebugCurrentFrame;function yt(y){if(y){var _=y._owner,L=De(y.type,y._source,_?_.type:null);es.setExtraStackFrame(L)}else es.setExtraStackFrame(null)}var fn;fn=!1;function pn(y){return typeof y=="object"&&y!==null&&y.$$typeof===t}function ts(){{if(dn.current){var y=q(dn.current.type);if(y)return`
|
|
22
22
|
|
|
23
|
-
Check the render method of \``+
|
|
23
|
+
Check the render method of \``+y+"`."}return""}}function Lu(y){return""}var rs={};function $u(y){{var _=ts();if(!_){var L=typeof y=="string"?y:y.displayName||y.name;L&&(_=`
|
|
24
24
|
|
|
25
|
-
Check the top-level render call using <`+L+">.")}return _}}function
|
|
25
|
+
Check the top-level render call using <`+L+">.")}return _}}function ns(y,_){{if(!y._store||y._store.validated||y.key!=null)return;y._store.validated=!0;var L=$u(_);if(rs[L])return;rs[L]=!0;var Z="";y&&y._owner&&y._owner!==dn.current&&(Z=" It was passed a child from "+q(y._owner.type)+"."),yt(y),x('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',L,Z),yt(null)}}function os(y,_){{if(typeof y!="object")return;if(un(y))for(var L=0;L<y.length;L++){var Z=y[L];pn(Z)&&ns(Z,_)}else if(pn(y))y._store&&(y._store.validated=!0);else if(y){var ue=v(y);if(typeof ue=="function"&&ue!==y.entries)for(var fe=ue.call(y),ce;!(ce=fe.next()).done;)pn(ce.value)&&ns(ce.value,_)}}}function Fu(y){{var _=y.type;if(_==null||typeof _=="string")return;var L;if(typeof _=="function")L=_.propTypes;else if(typeof _=="object"&&(_.$$typeof===c||_.$$typeof===p))L=_.propTypes;else return;if(L){var Z=q(_);ku(L,y.props,"prop",Z,y)}else if(_.PropTypes!==void 0&&!fn){fn=!0;var ue=q(_);x("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",ue||"Unknown")}typeof _.getDefaultProps=="function"&&!_.getDefaultProps.isReactClassApproved&&x("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Vu(y){{for(var _=Object.keys(y.props),L=0;L<_.length;L++){var Z=_[L];if(Z!=="children"&&Z!=="key"){yt(y),x("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",Z),yt(null);break}}y.ref!==null&&(yt(y),x("Invalid attribute `ref` supplied to `React.Fragment`."),yt(null))}}var ss={};function as(y,_,L,Z,ue,fe){{var ce=Y(y);if(!ce){var ie="";(y===void 0||typeof y=="object"&&y!==null&&Object.keys(y).length===0)&&(ie+=" 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 be=Lu();be?ie+=be:ie+=ts();var pe;y===null?pe="null":un(y)?pe="array":y!==void 0&&y.$$typeof===t?(pe="<"+(q(y.type)||"Unknown")+" />",ie=" Did you accidentally export a JSX literal instead of a component?"):pe=typeof y,x("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",pe,ie)}var me=Du(y,_,L,ue,fe);if(me==null)return me;if(ce){var Re=_.children;if(Re!==void 0)if(Z)if(un(Re)){for(var wt=0;wt<Re.length;wt++)os(Re[wt],y);Object.freeze&&Object.freeze(Re)}else x("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 os(Re,y)}if(Te.call(_,"key")){var lt=q(y),we=Object.keys(_).filter(function(Uu){return Uu!=="key"}),mn=we.length>0?"{key: someKey, "+we.join(": ..., ")+": ...}":"{key: someKey}";if(!ss[lt+mn]){var Gu=we.length>0?"{"+we.join(": ..., ")+": ...}":"{}";x(`A props object containing a "key" prop is being spread into JSX:
|
|
26
26
|
let props = %s;
|
|
27
27
|
<%s {...props} />
|
|
28
28
|
React keys must be passed directly to JSX without using spread:
|
|
29
29
|
let props = %s;
|
|
30
|
-
<%s key={someKey} {...props} />`,pn,ct,Hu,ct),ns[ct+pn]=!0}}return b===n?Fu(me):$u(me),me}}function Vu(b,_,L){return os(b,_,L,!0)}function Wu(b,_,L){return os(b,_,L,!1)}var Bu=Wu,zu=Vu;Gt.Fragment=n,Gt.jsx=Bu,Gt.jsxs=zu})()),Gt}var is;function Ju(){return is||(is=1,process.env.NODE_ENV==="production"?pr.exports=Xu():pr.exports=Zu()),pr.exports}var c=Ju();function ia(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=ia(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function ca(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=ia(e))&&(n&&(n+=" "),n+=t);return n}const cs=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,ls=ca,Fr=(e,t)=>r=>{var n;if((t==null?void 0:t.variants)==null)return ls(e,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:o,defaultVariants:s}=t,a=Object.keys(o).map(d=>{const f=r==null?void 0:r[d],p=s==null?void 0:s[d];if(f===null)return null;const h=cs(f)||cs(p);return o[d][h]}),i=r&&Object.entries(r).reduce((d,f)=>{let[p,h]=f;return h===void 0||(d[p]=h),d},{}),l=t==null||(n=t.compoundVariants)===null||n===void 0?void 0:n.reduce((d,f)=>{let{class:p,className:h,...g}=f;return Object.entries(g).every(w=>{let[m,v]=w;return Array.isArray(v)?v.includes({...s,...i}[m]):{...s,...i}[m]===v})?[...d,p,h]:d},[]);return ls(e,a,l,r==null?void 0:r.class,r==null?void 0:r.className)},Qn="-",Qu=e=>{const t=td(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:a=>{const i=a.split(Qn);return i[0]===""&&i.length!==1&&i.shift(),la(i,t)||ed(a)},getConflictingClassGroupIds:(a,i)=>{const l=r[a]||[];return i&&n[a]?[...l,...n[a]]:l}}},la=(e,t)=>{var a;if(e.length===0)return t.classGroupId;const r=e[0],n=t.nextPart.get(r),o=n?la(e.slice(1),n):void 0;if(o)return o;if(t.validators.length===0)return;const s=e.join(Qn);return(a=t.validators.find(({validator:i})=>i(s)))==null?void 0:a.classGroupId},us=/^\[(.+)\]$/,ed=e=>{if(us.test(e)){const t=us.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},td=e=>{const{theme:t,classGroups:r}=e,n={nextPart:new Map,validators:[]};for(const o in r)_n(r[o],n,o,t);return n},_n=(e,t,r,n)=>{e.forEach(o=>{if(typeof o=="string"){const s=o===""?t:ds(t,o);s.classGroupId=r;return}if(typeof o=="function"){if(rd(o)){_n(o(n),t,r,n);return}t.validators.push({validator:o,classGroupId:r});return}Object.entries(o).forEach(([s,a])=>{_n(a,ds(t,s),r,n)})})},ds=(e,t)=>{let r=e;return t.split(Qn).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r},rd=e=>e.isThemeGetter,nd=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,n=new Map;const o=(s,a)=>{r.set(s,a),t++,t>e&&(t=0,n=r,r=new Map)};return{get(s){let a=r.get(s);if(a!==void 0)return a;if((a=n.get(s))!==void 0)return o(s,a),a},set(s,a){r.has(s)?r.set(s,a):o(s,a)}}},In="!",On=":",od=On.length,sd=e=>{const{prefix:t,experimentalParseClassName:r}=e;let n=o=>{const s=[];let a=0,i=0,l=0,d;for(let w=0;w<o.length;w++){let m=o[w];if(a===0&&i===0){if(m===On){s.push(o.slice(l,w)),l=w+od;continue}if(m==="/"){d=w;continue}}m==="["?a++:m==="]"?a--:m==="("?i++:m===")"&&i--}const f=s.length===0?o:o.substring(l),p=ad(f),h=p!==f,g=d&&d>l?d-l:void 0;return{modifiers:s,hasImportantModifier:h,baseClassName:p,maybePostfixModifierPosition:g}};if(t){const o=t+On,s=n;n=a=>a.startsWith(o)?s(a.substring(o.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:a,maybePostfixModifierPosition:void 0}}if(r){const o=n;n=s=>r({className:s,parseClassName:o})}return n},ad=e=>e.endsWith(In)?e.substring(0,e.length-1):e.startsWith(In)?e.substring(1):e,id=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(n=>[n,!0]));return n=>{if(n.length<=1)return n;const o=[];let s=[];return n.forEach(a=>{a[0]==="["||t[a]?(o.push(...s.sort(),a),s=[]):s.push(a)}),o.push(...s.sort()),o}},cd=e=>({cache:nd(e.cacheSize),parseClassName:sd(e),sortModifiers:id(e),...Qu(e)}),ld=/\s+/,ud=(e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:o,sortModifiers:s}=t,a=[],i=e.trim().split(ld);let l="";for(let d=i.length-1;d>=0;d-=1){const f=i[d],{isExternal:p,modifiers:h,hasImportantModifier:g,baseClassName:w,maybePostfixModifierPosition:m}=r(f);if(p){l=f+(l.length>0?" "+l:l);continue}let v=!!m,y=n(v?w.substring(0,m):w);if(!y){if(!v){l=f+(l.length>0?" "+l:l);continue}if(y=n(w),!y){l=f+(l.length>0?" "+l:l);continue}v=!1}const x=s(h).join(":"),C=g?x+In:x,E=C+y;if(a.includes(E))continue;a.push(E);const k=o(y,v);for(let j=0;j<k.length;++j){const A=k[j];a.push(C+A)}l=f+(l.length>0?" "+l:l)}return l};function dd(){let e=0,t,r,n="";for(;e<arguments.length;)(t=arguments[e++])&&(r=ua(t))&&(n&&(n+=" "),n+=r);return n}const ua=e=>{if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=ua(e[n]))&&(r&&(r+=" "),r+=t);return r};function fd(e,...t){let r,n,o,s=a;function a(l){const d=t.reduce((f,p)=>p(f),e());return r=cd(d),n=r.cache.get,o=r.cache.set,s=i,i(l)}function i(l){const d=n(l);if(d)return d;const f=ud(l,r);return o(l,f),f}return function(){return s(dd.apply(null,arguments))}}const ge=e=>{const t=r=>r[e]||[];return t.isThemeGetter=!0,t},da=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,fa=/^\((?:(\w[\w-]*):)?(.+)\)$/i,pd=/^\d+\/\d+$/,md=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,gd=/\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$/,hd=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,vd=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,xd=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ct=e=>pd.test(e),ne=e=>!!e&&!Number.isNaN(Number(e)),Je=e=>!!e&&Number.isInteger(Number(e)),mn=e=>e.endsWith("%")&&ne(e.slice(0,-1)),Ue=e=>md.test(e),bd=()=>!0,yd=e=>gd.test(e)&&!hd.test(e),pa=()=>!1,wd=e=>vd.test(e),Cd=e=>xd.test(e),Sd=e=>!V(e)&&!W(e),Ed=e=>Lt(e,ha,pa),V=e=>da.test(e),lt=e=>Lt(e,va,yd),gn=e=>Lt(e,Td,ne),fs=e=>Lt(e,ma,pa),Pd=e=>Lt(e,ga,Cd),mr=e=>Lt(e,xa,wd),W=e=>fa.test(e),Ut=e=>$t(e,va),Rd=e=>$t(e,jd),ps=e=>$t(e,ma),kd=e=>$t(e,ha),Nd=e=>$t(e,ga),gr=e=>$t(e,xa,!0),Lt=(e,t,r)=>{const n=da.exec(e);return n?n[1]?t(n[1]):r(n[2]):!1},$t=(e,t,r=!1)=>{const n=fa.exec(e);return n?n[1]?t(n[1]):r:!1},ma=e=>e==="position"||e==="percentage",ga=e=>e==="image"||e==="url",ha=e=>e==="length"||e==="size"||e==="bg-size",va=e=>e==="length",Td=e=>e==="number",jd=e=>e==="family-name",xa=e=>e==="shadow",Ad=()=>{const e=ge("color"),t=ge("font"),r=ge("text"),n=ge("font-weight"),o=ge("tracking"),s=ge("leading"),a=ge("breakpoint"),i=ge("container"),l=ge("spacing"),d=ge("radius"),f=ge("shadow"),p=ge("inset-shadow"),h=ge("text-shadow"),g=ge("drop-shadow"),w=ge("blur"),m=ge("perspective"),v=ge("aspect"),y=ge("ease"),x=ge("animate"),C=()=>["auto","avoid","all","avoid-page","page","left","right","column"],E=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],k=()=>[...E(),W,V],j=()=>["auto","hidden","clip","visible","scroll"],A=()=>["auto","contain","none"],N=()=>[W,V,l],G=()=>[Ct,"full","auto",...N()],K=()=>[Je,"none","subgrid",W,V],ee=()=>["auto",{span:["full",Je,W,V]},Je,W,V],J=()=>[Je,"auto",W,V],Y=()=>["auto","min","max","fr",W,V],z=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],O=()=>["start","end","center","stretch","center-safe","end-safe"],T=()=>["auto",...N()],D=()=>[Ct,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...N()],P=()=>[e,W,V],H=()=>[...E(),ps,fs,{position:[W,V]}],oe=()=>["no-repeat",{repeat:["","x","y","space","round"]}],le=()=>["auto","cover","contain",kd,Ed,{size:[W,V]}],R=()=>[mn,Ut,lt],$=()=>["","none","full",d,W,V],B=()=>["",ne,Ut,lt],F=()=>["solid","dashed","dotted","double"],Q=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],I=()=>[ne,mn,ps,fs],q=()=>["","none",w,W,V],te=()=>["none",ne,W,V],re=()=>["none",ne,W,V],ie=()=>[ne,W,V],se=()=>[Ct,"full",...N()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Ue],breakpoint:[Ue],color:[bd],container:[Ue],"drop-shadow":[Ue],ease:["in","out","in-out"],font:[Sd],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Ue],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Ue],shadow:[Ue],spacing:["px",ne],text:[Ue],"text-shadow":[Ue],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Ct,V,W,v]}],container:["container"],columns:[{columns:[ne,V,W,i]}],"break-after":[{"break-after":C()}],"break-before":[{"break-before":C()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:k()}],overflow:[{overflow:j()}],"overflow-x":[{"overflow-x":j()}],"overflow-y":[{"overflow-y":j()}],overscroll:[{overscroll:A()}],"overscroll-x":[{"overscroll-x":A()}],"overscroll-y":[{"overscroll-y":A()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:G()}],"inset-x":[{"inset-x":G()}],"inset-y":[{"inset-y":G()}],start:[{start:G()}],end:[{end:G()}],top:[{top:G()}],right:[{right:G()}],bottom:[{bottom:G()}],left:[{left:G()}],visibility:["visible","invisible","collapse"],z:[{z:[Je,"auto",W,V]}],basis:[{basis:[Ct,"full","auto",i,...N()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[ne,Ct,"auto","initial","none",V]}],grow:[{grow:["",ne,W,V]}],shrink:[{shrink:["",ne,W,V]}],order:[{order:[Je,"first","last","none",W,V]}],"grid-cols":[{"grid-cols":K()}],"col-start-end":[{col:ee()}],"col-start":[{"col-start":J()}],"col-end":[{"col-end":J()}],"grid-rows":[{"grid-rows":K()}],"row-start-end":[{row:ee()}],"row-start":[{"row-start":J()}],"row-end":[{"row-end":J()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":Y()}],"auto-rows":[{"auto-rows":Y()}],gap:[{gap:N()}],"gap-x":[{"gap-x":N()}],"gap-y":[{"gap-y":N()}],"justify-content":[{justify:[...z(),"normal"]}],"justify-items":[{"justify-items":[...O(),"normal"]}],"justify-self":[{"justify-self":["auto",...O()]}],"align-content":[{content:["normal",...z()]}],"align-items":[{items:[...O(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...O(),{baseline:["","last"]}]}],"place-content":[{"place-content":z()}],"place-items":[{"place-items":[...O(),"baseline"]}],"place-self":[{"place-self":["auto",...O()]}],p:[{p:N()}],px:[{px:N()}],py:[{py:N()}],ps:[{ps:N()}],pe:[{pe:N()}],pt:[{pt:N()}],pr:[{pr:N()}],pb:[{pb:N()}],pl:[{pl:N()}],m:[{m:T()}],mx:[{mx:T()}],my:[{my:T()}],ms:[{ms:T()}],me:[{me:T()}],mt:[{mt:T()}],mr:[{mr:T()}],mb:[{mb:T()}],ml:[{ml:T()}],"space-x":[{"space-x":N()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":N()}],"space-y-reverse":["space-y-reverse"],size:[{size:D()}],w:[{w:[i,"screen",...D()]}],"min-w":[{"min-w":[i,"screen","none",...D()]}],"max-w":[{"max-w":[i,"screen","none","prose",{screen:[a]},...D()]}],h:[{h:["screen","lh",...D()]}],"min-h":[{"min-h":["screen","lh","none",...D()]}],"max-h":[{"max-h":["screen","lh",...D()]}],"font-size":[{text:["base",r,Ut,lt]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,W,gn]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",mn,V]}],"font-family":[{font:[Rd,V,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,W,V]}],"line-clamp":[{"line-clamp":[ne,"none",W,gn]}],leading:[{leading:[s,...N()]}],"list-image":[{"list-image":["none",W,V]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",W,V]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:P()}],"text-color":[{text:P()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...F(),"wavy"]}],"text-decoration-thickness":[{decoration:[ne,"from-font","auto",W,lt]}],"text-decoration-color":[{decoration:P()}],"underline-offset":[{"underline-offset":[ne,"auto",W,V]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:N()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",W,V]}],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",W,V]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:H()}],"bg-repeat":[{bg:oe()}],"bg-size":[{bg:le()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Je,W,V],radial:["",W,V],conic:[Je,W,V]},Nd,Pd]}],"bg-color":[{bg:P()}],"gradient-from-pos":[{from:R()}],"gradient-via-pos":[{via:R()}],"gradient-to-pos":[{to:R()}],"gradient-from":[{from:P()}],"gradient-via":[{via:P()}],"gradient-to":[{to:P()}],rounded:[{rounded:$()}],"rounded-s":[{"rounded-s":$()}],"rounded-e":[{"rounded-e":$()}],"rounded-t":[{"rounded-t":$()}],"rounded-r":[{"rounded-r":$()}],"rounded-b":[{"rounded-b":$()}],"rounded-l":[{"rounded-l":$()}],"rounded-ss":[{"rounded-ss":$()}],"rounded-se":[{"rounded-se":$()}],"rounded-ee":[{"rounded-ee":$()}],"rounded-es":[{"rounded-es":$()}],"rounded-tl":[{"rounded-tl":$()}],"rounded-tr":[{"rounded-tr":$()}],"rounded-br":[{"rounded-br":$()}],"rounded-bl":[{"rounded-bl":$()}],"border-w":[{border:B()}],"border-w-x":[{"border-x":B()}],"border-w-y":[{"border-y":B()}],"border-w-s":[{"border-s":B()}],"border-w-e":[{"border-e":B()}],"border-w-t":[{"border-t":B()}],"border-w-r":[{"border-r":B()}],"border-w-b":[{"border-b":B()}],"border-w-l":[{"border-l":B()}],"divide-x":[{"divide-x":B()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":B()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...F(),"hidden","none"]}],"divide-style":[{divide:[...F(),"hidden","none"]}],"border-color":[{border:P()}],"border-color-x":[{"border-x":P()}],"border-color-y":[{"border-y":P()}],"border-color-s":[{"border-s":P()}],"border-color-e":[{"border-e":P()}],"border-color-t":[{"border-t":P()}],"border-color-r":[{"border-r":P()}],"border-color-b":[{"border-b":P()}],"border-color-l":[{"border-l":P()}],"divide-color":[{divide:P()}],"outline-style":[{outline:[...F(),"none","hidden"]}],"outline-offset":[{"outline-offset":[ne,W,V]}],"outline-w":[{outline:["",ne,Ut,lt]}],"outline-color":[{outline:P()}],shadow:[{shadow:["","none",f,gr,mr]}],"shadow-color":[{shadow:P()}],"inset-shadow":[{"inset-shadow":["none",p,gr,mr]}],"inset-shadow-color":[{"inset-shadow":P()}],"ring-w":[{ring:B()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:P()}],"ring-offset-w":[{"ring-offset":[ne,lt]}],"ring-offset-color":[{"ring-offset":P()}],"inset-ring-w":[{"inset-ring":B()}],"inset-ring-color":[{"inset-ring":P()}],"text-shadow":[{"text-shadow":["none",h,gr,mr]}],"text-shadow-color":[{"text-shadow":P()}],opacity:[{opacity:[ne,W,V]}],"mix-blend":[{"mix-blend":[...Q(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Q()}],"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":[ne]}],"mask-image-linear-from-pos":[{"mask-linear-from":I()}],"mask-image-linear-to-pos":[{"mask-linear-to":I()}],"mask-image-linear-from-color":[{"mask-linear-from":P()}],"mask-image-linear-to-color":[{"mask-linear-to":P()}],"mask-image-t-from-pos":[{"mask-t-from":I()}],"mask-image-t-to-pos":[{"mask-t-to":I()}],"mask-image-t-from-color":[{"mask-t-from":P()}],"mask-image-t-to-color":[{"mask-t-to":P()}],"mask-image-r-from-pos":[{"mask-r-from":I()}],"mask-image-r-to-pos":[{"mask-r-to":I()}],"mask-image-r-from-color":[{"mask-r-from":P()}],"mask-image-r-to-color":[{"mask-r-to":P()}],"mask-image-b-from-pos":[{"mask-b-from":I()}],"mask-image-b-to-pos":[{"mask-b-to":I()}],"mask-image-b-from-color":[{"mask-b-from":P()}],"mask-image-b-to-color":[{"mask-b-to":P()}],"mask-image-l-from-pos":[{"mask-l-from":I()}],"mask-image-l-to-pos":[{"mask-l-to":I()}],"mask-image-l-from-color":[{"mask-l-from":P()}],"mask-image-l-to-color":[{"mask-l-to":P()}],"mask-image-x-from-pos":[{"mask-x-from":I()}],"mask-image-x-to-pos":[{"mask-x-to":I()}],"mask-image-x-from-color":[{"mask-x-from":P()}],"mask-image-x-to-color":[{"mask-x-to":P()}],"mask-image-y-from-pos":[{"mask-y-from":I()}],"mask-image-y-to-pos":[{"mask-y-to":I()}],"mask-image-y-from-color":[{"mask-y-from":P()}],"mask-image-y-to-color":[{"mask-y-to":P()}],"mask-image-radial":[{"mask-radial":[W,V]}],"mask-image-radial-from-pos":[{"mask-radial-from":I()}],"mask-image-radial-to-pos":[{"mask-radial-to":I()}],"mask-image-radial-from-color":[{"mask-radial-from":P()}],"mask-image-radial-to-color":[{"mask-radial-to":P()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":E()}],"mask-image-conic-pos":[{"mask-conic":[ne]}],"mask-image-conic-from-pos":[{"mask-conic-from":I()}],"mask-image-conic-to-pos":[{"mask-conic-to":I()}],"mask-image-conic-from-color":[{"mask-conic-from":P()}],"mask-image-conic-to-color":[{"mask-conic-to":P()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:H()}],"mask-repeat":[{mask:oe()}],"mask-size":[{mask:le()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",W,V]}],filter:[{filter:["","none",W,V]}],blur:[{blur:q()}],brightness:[{brightness:[ne,W,V]}],contrast:[{contrast:[ne,W,V]}],"drop-shadow":[{"drop-shadow":["","none",g,gr,mr]}],"drop-shadow-color":[{"drop-shadow":P()}],grayscale:[{grayscale:["",ne,W,V]}],"hue-rotate":[{"hue-rotate":[ne,W,V]}],invert:[{invert:["",ne,W,V]}],saturate:[{saturate:[ne,W,V]}],sepia:[{sepia:["",ne,W,V]}],"backdrop-filter":[{"backdrop-filter":["","none",W,V]}],"backdrop-blur":[{"backdrop-blur":q()}],"backdrop-brightness":[{"backdrop-brightness":[ne,W,V]}],"backdrop-contrast":[{"backdrop-contrast":[ne,W,V]}],"backdrop-grayscale":[{"backdrop-grayscale":["",ne,W,V]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[ne,W,V]}],"backdrop-invert":[{"backdrop-invert":["",ne,W,V]}],"backdrop-opacity":[{"backdrop-opacity":[ne,W,V]}],"backdrop-saturate":[{"backdrop-saturate":[ne,W,V]}],"backdrop-sepia":[{"backdrop-sepia":["",ne,W,V]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":N()}],"border-spacing-x":[{"border-spacing-x":N()}],"border-spacing-y":[{"border-spacing-y":N()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",W,V]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[ne,"initial",W,V]}],ease:[{ease:["linear","initial",y,W,V]}],delay:[{delay:[ne,W,V]}],animate:[{animate:["none",x,W,V]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[m,W,V]}],"perspective-origin":[{"perspective-origin":k()}],rotate:[{rotate:te()}],"rotate-x":[{"rotate-x":te()}],"rotate-y":[{"rotate-y":te()}],"rotate-z":[{"rotate-z":te()}],scale:[{scale:re()}],"scale-x":[{"scale-x":re()}],"scale-y":[{"scale-y":re()}],"scale-z":[{"scale-z":re()}],"scale-3d":["scale-3d"],skew:[{skew:ie()}],"skew-x":[{"skew-x":ie()}],"skew-y":[{"skew-y":ie()}],transform:[{transform:[W,V,"","none","gpu","cpu"]}],"transform-origin":[{origin:k()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:se()}],"translate-x":[{"translate-x":se()}],"translate-y":[{"translate-y":se()}],"translate-z":[{"translate-z":se()}],"translate-none":["translate-none"],accent:[{accent:P()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:P()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",W,V]}],"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":N()}],"scroll-mx":[{"scroll-mx":N()}],"scroll-my":[{"scroll-my":N()}],"scroll-ms":[{"scroll-ms":N()}],"scroll-me":[{"scroll-me":N()}],"scroll-mt":[{"scroll-mt":N()}],"scroll-mr":[{"scroll-mr":N()}],"scroll-mb":[{"scroll-mb":N()}],"scroll-ml":[{"scroll-ml":N()}],"scroll-p":[{"scroll-p":N()}],"scroll-px":[{"scroll-px":N()}],"scroll-py":[{"scroll-py":N()}],"scroll-ps":[{"scroll-ps":N()}],"scroll-pe":[{"scroll-pe":N()}],"scroll-pt":[{"scroll-pt":N()}],"scroll-pr":[{"scroll-pr":N()}],"scroll-pb":[{"scroll-pb":N()}],"scroll-pl":[{"scroll-pl":N()}],"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",W,V]}],fill:[{fill:["none",...P()]}],"stroke-w":[{stroke:[ne,Ut,lt,gn]}],stroke:[{stroke:["none",...P()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},_d=fd(Ad);function M(...e){return _d(ca(e))}const ba=Fr("inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none cursor-pointer",{variants:{variant:{default:"bg-fill-action-emphasis-idle text-action-on-emphasis-idle hover:bg-fill-action-emphasis-hover active:bg-fill-action-emphasis-active disabled:bg-fill-action-emphasis-disabled",secondary:"bg-fill-action-neutral-idle text-text-action-neutral-idle hover:bg-fill-action-neutral-hover active:bg-fill-action-neutral-active disabled:bg-fill-action-neutral-disabled disabled:text-text-action-neutral-disabled",outline:"border border-border-action-neutral-idle text-text-action-neutral-idle hover:bg-fill-action-neutral-hover active:bg-fill-action-neutral-active disabled:bg-none disabled:text-text-action-neutral-disabled",ghost:"text-text-action-neutral-idle hover:text-text-action-neutral-hover active:bg-fill-action-neutral-active disabled:bg-none disabled:text-text-action-neutral-disabled",link:"text-text-action-emphasis-idle hover:text-text-action-emphasis-hover active:bg-fill-action-emphasis-active disabled:bg-none disabled:text-text-action-emphasis-disabled",danger:"border border-border-action-negative-idle text-icon-action-negative-idle hover:bg-fill-action-negative-hover active:bg-fill-action-negative-active disabled-border-action-negative-disabled"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),It=u.forwardRef(({className:e,variant:t,size:r,...n},o)=>c.jsx("button",{className:M(ba({variant:t,size:r,className:e})),ref:o,...n}));It.displayName="Button";const Id=Fr("file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground border-input flex h-9 w-full min-w-0 rounded-md border bg-background px-3 py-1 text-base shadow-xs 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:dark:border-transparent disabled:opacity-50 md:text-sm dark:border-input dark:bg-background dark:text-foreground dark:placeholder:text-muted-foreground",{variants:{variant:{default:"bg-purple-mutted-700 border-purple-mutted-500 text-purple-mutted-300 text-sm",secondary:"bg-secondary border-secondary text-secondary-foreground placeholder:text-muted-foreground dark:bg-secondary dark:border-secondary dark:text-secondary-foreground dark:placeholder:text-muted-foreground",accent:"bg-accent border-accent text-accent-foreground placeholder:text-muted-foreground dark:bg-accent dark:border-accent dark:text-accent-foreground dark:placeholder:text-muted-foreground",success:"bg-success border-success text-success-foreground placeholder:text-success-foreground/70 dark:bg-success dark:border-success dark:text-success-foreground dark:placeholder:text-success-foreground/70",warning:"bg-warning border-warning text-warning-foreground placeholder:text-warning-foreground/70 dark:bg-warning dark:border-warning dark:text-warning-foreground dark:placeholder:text-warning-foreground/70",destructive:"border-destructive text-purple-mutted-200 placeholder:text-destructive-foreground/70 dark:border-destructive dark:placeholder:text-destructive-foreground/70"}},defaultVariants:{variant:"default"}});function eo({className:e,variant:t,type:r,error:n,...o}){const s=n?"destructive":t;return c.jsx("input",{type:r,"data-slot":"input",className:M(Id({variant:s,className:e})),...o})}function ms(e,[t,r]){return Math.min(r,Math.max(t,e))}function Z(e,t,{checkForDefaultPrevented:r=!0}={}){return function(o){if(e==null||e(o),r===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function Od(e,t){const r=u.createContext(t),n=s=>{const{children:a,...i}=s,l=u.useMemo(()=>i,Object.values(i));return c.jsx(r.Provider,{value:l,children:a})};n.displayName=e+"Provider";function o(s){const a=u.useContext(r);if(a)return a;if(t!==void 0)return t;throw new Error(`\`${s}\` must be used within \`${e}\``)}return[n,o]}function ke(e,t=[]){let r=[];function n(s,a){const i=u.createContext(a),l=r.length;r=[...r,a];const d=p=>{var y;const{scope:h,children:g,...w}=p,m=((y=h==null?void 0:h[e])==null?void 0:y[l])||i,v=u.useMemo(()=>w,Object.values(w));return c.jsx(m.Provider,{value:v,children:g})};d.displayName=s+"Provider";function f(p,h){var m;const g=((m=h==null?void 0:h[e])==null?void 0:m[l])||i,w=u.useContext(g);if(w)return w;if(a!==void 0)return a;throw new Error(`\`${p}\` must be used within \`${s}\``)}return[d,f]}const o=()=>{const s=r.map(a=>u.createContext(a));return function(i){const l=(i==null?void 0:i[e])||s;return u.useMemo(()=>({[`__scope${e}`]:{...i,[e]:l}}),[i,l])}};return o.scopeName=e,[n,Md(o,...t)]}function Md(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(s){const a=n.reduce((i,{useScope:l,scopeName:d})=>{const p=l(s)[`__scope${d}`];return{...i,...p}},{});return u.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return r.scopeName=t.scopeName,r}function gs(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function dt(...e){return t=>{let r=!1;const n=e.map(o=>{const s=gs(o,t);return!r&&typeof s=="function"&&(r=!0),s});if(r)return()=>{for(let o=0;o<n.length;o++){const s=n[o];typeof s=="function"?s():gs(e[o],null)}}}}function de(...e){return u.useCallback(dt(...e),e)}function ft(e){const t=Ld(e),r=u.forwardRef((n,o)=>{const{children:s,...a}=n,i=u.Children.toArray(s),l=i.find(Fd);if(l){const d=l.props.children,f=i.map(p=>p===l?u.Children.count(d)>1?u.Children.only(null):u.isValidElement(d)?d.props.children:null:p);return c.jsx(t,{...a,ref:o,children:u.isValidElement(d)?u.cloneElement(d,void 0,f):null})}return c.jsx(t,{...a,ref:o,children:s})});return r.displayName=`${e}.Slot`,r}var Dd=ft("Slot");function Ld(e){const t=u.forwardRef((r,n)=>{const{children:o,...s}=r;if(u.isValidElement(o)){const a=Wd(o),i=Vd(s,o.props);return o.type!==u.Fragment&&(i.ref=n?dt(n,a):a),u.cloneElement(o,i)}return u.Children.count(o)>1?u.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var ya=Symbol("radix.slottable");function $d(e){const t=({children:r})=>c.jsx(c.Fragment,{children:r});return t.displayName=`${e}.Slottable`,t.__radixId=ya,t}function Fd(e){return u.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===ya}function Vd(e,t){const r={...t};for(const n in t){const o=e[n],s=t[n];/^on[A-Z]/.test(n)?o&&s?r[n]=(...i)=>{const l=s(...i);return o(...i),l}:o&&(r[n]=o):n==="style"?r[n]={...o,...s}:n==="className"&&(r[n]=[o,s].filter(Boolean).join(" "))}return{...e,...r}}function Wd(e){var n,o;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}function to(e){const t=e+"CollectionProvider",[r,n]=ke(t),[o,s]=r(t,{collectionRef:{current:null},itemMap:new Map}),a=m=>{const{scope:v,children:y}=m,x=S.useRef(null),C=S.useRef(new Map).current;return c.jsx(o,{scope:v,itemMap:C,collectionRef:x,children:y})};a.displayName=t;const i=e+"CollectionSlot",l=ft(i),d=S.forwardRef((m,v)=>{const{scope:y,children:x}=m,C=s(i,y),E=de(v,C.collectionRef);return c.jsx(l,{ref:E,children:x})});d.displayName=i;const f=e+"CollectionItemSlot",p="data-radix-collection-item",h=ft(f),g=S.forwardRef((m,v)=>{const{scope:y,children:x,...C}=m,E=S.useRef(null),k=de(v,E),j=s(f,y);return S.useEffect(()=>(j.itemMap.set(E,{ref:E,...C}),()=>void j.itemMap.delete(E))),c.jsx(h,{[p]:"",ref:k,children:x})});g.displayName=f;function w(m){const v=s(e+"CollectionConsumer",m);return S.useCallback(()=>{const x=v.collectionRef.current;if(!x)return[];const C=Array.from(x.querySelectorAll(`[${p}]`));return Array.from(v.itemMap.values()).sort((j,A)=>C.indexOf(j.ref.current)-C.indexOf(A.ref.current))},[v.collectionRef,v.itemMap])}return[{Provider:a,Slot:d,ItemSlot:g},w,n]}var Bd=u.createContext(void 0);function Vr(e){const t=u.useContext(Bd);return e||t||"ltr"}var zd=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],U=zd.reduce((e,t)=>{const r=ft(`Primitive.${t}`),n=u.forwardRef((o,s)=>{const{asChild:a,...i}=o,l=a?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),c.jsx(l,{...i,ref:s})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function Hd(e,t){e&&$r.flushSync(()=>e.dispatchEvent(t))}function et(e){const t=u.useRef(e);return u.useEffect(()=>{t.current=e}),u.useMemo(()=>(...r)=>{var n;return(n=t.current)==null?void 0:n.call(t,...r)},[])}function Gd(e,t=globalThis==null?void 0:globalThis.document){const r=et(e);u.useEffect(()=>{const n=o=>{o.key==="Escape"&&r(o)};return t.addEventListener("keydown",n,{capture:!0}),()=>t.removeEventListener("keydown",n,{capture:!0})},[r,t])}var Ud="DismissableLayer",Mn="dismissableLayer.update",Kd="dismissableLayer.pointerDownOutside",Yd="dismissableLayer.focusOutside",hs,wa=u.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),nr=u.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:a,onDismiss:i,...l}=e,d=u.useContext(wa),[f,p]=u.useState(null),h=(f==null?void 0:f.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,g]=u.useState({}),w=de(t,A=>p(A)),m=Array.from(d.layers),[v]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),y=m.indexOf(v),x=f?m.indexOf(f):-1,C=d.layersWithOutsidePointerEventsDisabled.size>0,E=x>=y,k=Zd(A=>{const N=A.target,G=[...d.branches].some(K=>K.contains(N));!E||G||(o==null||o(A),a==null||a(A),A.defaultPrevented||i==null||i())},h),j=Jd(A=>{const N=A.target;[...d.branches].some(K=>K.contains(N))||(s==null||s(A),a==null||a(A),A.defaultPrevented||i==null||i())},h);return Gd(A=>{x===d.layers.size-1&&(n==null||n(A),!A.defaultPrevented&&i&&(A.preventDefault(),i()))},h),u.useEffect(()=>{if(f)return r&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(hs=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(f)),d.layers.add(f),vs(),()=>{r&&d.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=hs)}},[f,h,r,d]),u.useEffect(()=>()=>{f&&(d.layers.delete(f),d.layersWithOutsidePointerEventsDisabled.delete(f),vs())},[f,d]),u.useEffect(()=>{const A=()=>g({});return document.addEventListener(Mn,A),()=>document.removeEventListener(Mn,A)},[]),c.jsx(U.div,{...l,ref:w,style:{pointerEvents:C?E?"auto":"none":void 0,...e.style},onFocusCapture:Z(e.onFocusCapture,j.onFocusCapture),onBlurCapture:Z(e.onBlurCapture,j.onBlurCapture),onPointerDownCapture:Z(e.onPointerDownCapture,k.onPointerDownCapture)})});nr.displayName=Ud;var qd="DismissableLayerBranch",Xd=u.forwardRef((e,t)=>{const r=u.useContext(wa),n=u.useRef(null),o=de(t,n);return u.useEffect(()=>{const s=n.current;if(s)return r.branches.add(s),()=>{r.branches.delete(s)}},[r.branches]),c.jsx(U.div,{...e,ref:o})});Xd.displayName=qd;function Zd(e,t=globalThis==null?void 0:globalThis.document){const r=et(e),n=u.useRef(!1),o=u.useRef(()=>{});return u.useEffect(()=>{const s=i=>{if(i.target&&!n.current){let l=function(){Ca(Kd,r,d,{discrete:!0})};const d={originalEvent:i};i.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=l,t.addEventListener("click",o.current,{once:!0})):l()}else t.removeEventListener("click",o.current);n.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",s),t.removeEventListener("click",o.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function Jd(e,t=globalThis==null?void 0:globalThis.document){const r=et(e),n=u.useRef(!1);return u.useEffect(()=>{const o=s=>{s.target&&!n.current&&Ca(Yd,r,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function vs(){const e=new CustomEvent(Mn);document.dispatchEvent(e)}function Ca(e,t,r,{discrete:n}){const o=r.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&o.addEventListener(e,t,{once:!0}),n?Hd(o,s):o.dispatchEvent(s)}var hn=0;function ro(){u.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??xs()),document.body.insertAdjacentElement("beforeend",e[1]??xs()),hn++,()=>{hn===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),hn--}},[])}function xs(){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 vn="focusScope.autoFocusOnMount",xn="focusScope.autoFocusOnUnmount",bs={bubbles:!1,cancelable:!0},Qd="FocusScope",Wr=u.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:o,onUnmountAutoFocus:s,...a}=e,[i,l]=u.useState(null),d=et(o),f=et(s),p=u.useRef(null),h=de(t,m=>l(m)),g=u.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;u.useEffect(()=>{if(n){let m=function(C){if(g.paused||!i)return;const E=C.target;i.contains(E)?p.current=E:Qe(p.current,{select:!0})},v=function(C){if(g.paused||!i)return;const E=C.relatedTarget;E!==null&&(i.contains(E)||Qe(p.current,{select:!0}))},y=function(C){if(document.activeElement===document.body)for(const k of C)k.removedNodes.length>0&&Qe(i)};document.addEventListener("focusin",m),document.addEventListener("focusout",v);const x=new MutationObserver(y);return i&&x.observe(i,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",m),document.removeEventListener("focusout",v),x.disconnect()}}},[n,i,g.paused]),u.useEffect(()=>{if(i){ws.add(g);const m=document.activeElement;if(!i.contains(m)){const y=new CustomEvent(vn,bs);i.addEventListener(vn,d),i.dispatchEvent(y),y.defaultPrevented||(ef(sf(Sa(i)),{select:!0}),document.activeElement===m&&Qe(i))}return()=>{i.removeEventListener(vn,d),setTimeout(()=>{const y=new CustomEvent(xn,bs);i.addEventListener(xn,f),i.dispatchEvent(y),y.defaultPrevented||Qe(m??document.body,{select:!0}),i.removeEventListener(xn,f),ws.remove(g)},0)}}},[i,d,f,g]);const w=u.useCallback(m=>{if(!r&&!n||g.paused)return;const v=m.key==="Tab"&&!m.altKey&&!m.ctrlKey&&!m.metaKey,y=document.activeElement;if(v&&y){const x=m.currentTarget,[C,E]=tf(x);C&&E?!m.shiftKey&&y===E?(m.preventDefault(),r&&Qe(C,{select:!0})):m.shiftKey&&y===C&&(m.preventDefault(),r&&Qe(E,{select:!0})):y===x&&m.preventDefault()}},[r,n,g.paused]);return c.jsx(U.div,{tabIndex:-1,...a,ref:h,onKeyDown:w})});Wr.displayName=Qd;function ef(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(Qe(n,{select:t}),document.activeElement!==r)return}function tf(e){const t=Sa(e),r=ys(t,e),n=ys(t.reverse(),e);return[r,n]}function Sa(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const o=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||o?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function ys(e,t){for(const r of e)if(!rf(r,{upTo:t}))return r}function rf(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 nf(e){return e instanceof HTMLInputElement&&"select"in e}function Qe(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&nf(e)&&t&&e.select()}}var ws=of();function of(){let e=[];return{add(t){const r=e[0];t!==r&&(r==null||r.pause()),e=Cs(e,t),e.unshift(t)},remove(t){var r;e=Cs(e,t),(r=e[0])==null||r.resume()}}}function Cs(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function sf(e){return e.filter(t=>t.tagName!=="A")}var ve=globalThis!=null&&globalThis.document?u.useLayoutEffect:()=>{},af=u[" useId ".trim().toString()]||(()=>{}),cf=0;function he(e){const[t,r]=u.useState(af());return ve(()=>{r(n=>n??String(cf++))},[e]),t?`radix-${t}`:""}const lf=["top","right","bottom","left"],tt=Math.min,Ce=Math.max,Rr=Math.round,hr=Math.floor,We=e=>({x:e,y:e}),uf={left:"right",right:"left",bottom:"top",top:"bottom"},df={start:"end",end:"start"};function Dn(e,t,r){return Ce(e,tt(t,r))}function Ke(e,t){return typeof e=="function"?e(t):e}function Ye(e){return e.split("-")[0]}function Ft(e){return e.split("-")[1]}function no(e){return e==="x"?"y":"x"}function oo(e){return e==="y"?"height":"width"}const ff=new Set(["top","bottom"]);function Ve(e){return ff.has(Ye(e))?"y":"x"}function so(e){return no(Ve(e))}function pf(e,t,r){r===void 0&&(r=!1);const n=Ft(e),o=so(e),s=oo(o);let a=o==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(a=kr(a)),[a,kr(a)]}function mf(e){const t=kr(e);return[Ln(e),t,Ln(t)]}function Ln(e){return e.replace(/start|end/g,t=>df[t])}const Ss=["left","right"],Es=["right","left"],gf=["top","bottom"],hf=["bottom","top"];function vf(e,t,r){switch(e){case"top":case"bottom":return r?t?Es:Ss:t?Ss:Es;case"left":case"right":return t?gf:hf;default:return[]}}function xf(e,t,r,n){const o=Ft(e);let s=vf(Ye(e),r==="start",n);return o&&(s=s.map(a=>a+"-"+o),t&&(s=s.concat(s.map(Ln)))),s}function kr(e){return e.replace(/left|right|bottom|top/g,t=>uf[t])}function bf(e){return{top:0,right:0,bottom:0,left:0,...e}}function Ea(e){return typeof e!="number"?bf(e):{top:e,right:e,bottom:e,left:e}}function Nr(e){const{x:t,y:r,width:n,height:o}=e;return{width:n,height:o,top:r,left:t,right:t+n,bottom:r+o,x:t,y:r}}function Ps(e,t,r){let{reference:n,floating:o}=e;const s=Ve(t),a=so(t),i=oo(a),l=Ye(t),d=s==="y",f=n.x+n.width/2-o.width/2,p=n.y+n.height/2-o.height/2,h=n[i]/2-o[i]/2;let g;switch(l){case"top":g={x:f,y:n.y-o.height};break;case"bottom":g={x:f,y:n.y+n.height};break;case"right":g={x:n.x+n.width,y:p};break;case"left":g={x:n.x-o.width,y:p};break;default:g={x:n.x,y:n.y}}switch(Ft(t)){case"start":g[a]-=h*(r&&d?-1:1);break;case"end":g[a]+=h*(r&&d?-1:1);break}return g}const yf=async(e,t,r)=>{const{placement:n="bottom",strategy:o="absolute",middleware:s=[],platform:a}=r,i=s.filter(Boolean),l=await(a.isRTL==null?void 0:a.isRTL(t));let d=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:f,y:p}=Ps(d,n,l),h=n,g={},w=0;for(let m=0;m<i.length;m++){const{name:v,fn:y}=i[m],{x,y:C,data:E,reset:k}=await y({x:f,y:p,initialPlacement:n,placement:h,strategy:o,middlewareData:g,rects:d,platform:a,elements:{reference:e,floating:t}});f=x??f,p=C??p,g={...g,[v]:{...g[v],...E}},k&&w<=50&&(w++,typeof k=="object"&&(k.placement&&(h=k.placement),k.rects&&(d=k.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:o}):k.rects),{x:f,y:p}=Ps(d,h,l)),m=-1)}return{x:f,y:p,placement:h,strategy:o,middlewareData:g}};async function Qt(e,t){var r;t===void 0&&(t={});const{x:n,y:o,platform:s,rects:a,elements:i,strategy:l}=e,{boundary:d="clippingAncestors",rootBoundary:f="viewport",elementContext:p="floating",altBoundary:h=!1,padding:g=0}=Ke(t,e),w=Ea(g),v=i[h?p==="floating"?"reference":"floating":p],y=Nr(await s.getClippingRect({element:(r=await(s.isElement==null?void 0:s.isElement(v)))==null||r?v:v.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(i.floating)),boundary:d,rootBoundary:f,strategy:l})),x=p==="floating"?{x:n,y:o,width:a.floating.width,height:a.floating.height}:a.reference,C=await(s.getOffsetParent==null?void 0:s.getOffsetParent(i.floating)),E=await(s.isElement==null?void 0:s.isElement(C))?await(s.getScale==null?void 0:s.getScale(C))||{x:1,y:1}:{x:1,y:1},k=Nr(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:i,rect:x,offsetParent:C,strategy:l}):x);return{top:(y.top-k.top+w.top)/E.y,bottom:(k.bottom-y.bottom+w.bottom)/E.y,left:(y.left-k.left+w.left)/E.x,right:(k.right-y.right+w.right)/E.x}}const wf=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:n,placement:o,rects:s,platform:a,elements:i,middlewareData:l}=t,{element:d,padding:f=0}=Ke(e,t)||{};if(d==null)return{};const p=Ea(f),h={x:r,y:n},g=so(o),w=oo(g),m=await a.getDimensions(d),v=g==="y",y=v?"top":"left",x=v?"bottom":"right",C=v?"clientHeight":"clientWidth",E=s.reference[w]+s.reference[g]-h[g]-s.floating[w],k=h[g]-s.reference[g],j=await(a.getOffsetParent==null?void 0:a.getOffsetParent(d));let A=j?j[C]:0;(!A||!await(a.isElement==null?void 0:a.isElement(j)))&&(A=i.floating[C]||s.floating[w]);const N=E/2-k/2,G=A/2-m[w]/2-1,K=tt(p[y],G),ee=tt(p[x],G),J=K,Y=A-m[w]-ee,z=A/2-m[w]/2+N,O=Dn(J,z,Y),T=!l.arrow&&Ft(o)!=null&&z!==O&&s.reference[w]/2-(z<J?K:ee)-m[w]/2<0,D=T?z<J?z-J:z-Y:0;return{[g]:h[g]+D,data:{[g]:O,centerOffset:z-O-D,...T&&{alignmentOffset:D}},reset:T}}}),Cf=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,n;const{placement:o,middlewareData:s,rects:a,initialPlacement:i,platform:l,elements:d}=t,{mainAxis:f=!0,crossAxis:p=!0,fallbackPlacements:h,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:w="none",flipAlignment:m=!0,...v}=Ke(e,t);if((r=s.arrow)!=null&&r.alignmentOffset)return{};const y=Ye(o),x=Ve(i),C=Ye(i)===i,E=await(l.isRTL==null?void 0:l.isRTL(d.floating)),k=h||(C||!m?[kr(i)]:mf(i)),j=w!=="none";!h&&j&&k.push(...xf(i,m,w,E));const A=[i,...k],N=await Qt(t,v),G=[];let K=((n=s.flip)==null?void 0:n.overflows)||[];if(f&&G.push(N[y]),p){const z=pf(o,a,E);G.push(N[z[0]],N[z[1]])}if(K=[...K,{placement:o,overflows:G}],!G.every(z=>z<=0)){var ee,J;const z=(((ee=s.flip)==null?void 0:ee.index)||0)+1,O=A[z];if(O&&(!(p==="alignment"?x!==Ve(O):!1)||K.every(P=>Ve(P.placement)===x?P.overflows[0]>0:!0)))return{data:{index:z,overflows:K},reset:{placement:O}};let T=(J=K.filter(D=>D.overflows[0]<=0).sort((D,P)=>D.overflows[1]-P.overflows[1])[0])==null?void 0:J.placement;if(!T)switch(g){case"bestFit":{var Y;const D=(Y=K.filter(P=>{if(j){const H=Ve(P.placement);return H===x||H==="y"}return!0}).map(P=>[P.placement,P.overflows.filter(H=>H>0).reduce((H,oe)=>H+oe,0)]).sort((P,H)=>P[1]-H[1])[0])==null?void 0:Y[0];D&&(T=D);break}case"initialPlacement":T=i;break}if(o!==T)return{reset:{placement:T}}}return{}}}};function Rs(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function ks(e){return lf.some(t=>e[t]>=0)}const Sf=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r}=t,{strategy:n="referenceHidden",...o}=Ke(e,t);switch(n){case"referenceHidden":{const s=await Qt(t,{...o,elementContext:"reference"}),a=Rs(s,r.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:ks(a)}}}case"escaped":{const s=await Qt(t,{...o,altBoundary:!0}),a=Rs(s,r.floating);return{data:{escapedOffsets:a,escaped:ks(a)}}}default:return{}}}}},Pa=new Set(["left","top"]);async function Ef(e,t){const{placement:r,platform:n,elements:o}=e,s=await(n.isRTL==null?void 0:n.isRTL(o.floating)),a=Ye(r),i=Ft(r),l=Ve(r)==="y",d=Pa.has(a)?-1:1,f=s&&l?-1:1,p=Ke(t,e);let{mainAxis:h,crossAxis:g,alignmentAxis:w}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return i&&typeof w=="number"&&(g=i==="end"?w*-1:w),l?{x:g*f,y:h*d}:{x:h*d,y:g*f}}const Pf=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,n;const{x:o,y:s,placement:a,middlewareData:i}=t,l=await Ef(t,e);return a===((r=i.offset)==null?void 0:r.placement)&&(n=i.arrow)!=null&&n.alignmentOffset?{}:{x:o+l.x,y:s+l.y,data:{...l,placement:a}}}}},Rf=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:o}=t,{mainAxis:s=!0,crossAxis:a=!1,limiter:i={fn:v=>{let{x:y,y:x}=v;return{x:y,y:x}}},...l}=Ke(e,t),d={x:r,y:n},f=await Qt(t,l),p=Ve(Ye(o)),h=no(p);let g=d[h],w=d[p];if(s){const v=h==="y"?"top":"left",y=h==="y"?"bottom":"right",x=g+f[v],C=g-f[y];g=Dn(x,g,C)}if(a){const v=p==="y"?"top":"left",y=p==="y"?"bottom":"right",x=w+f[v],C=w-f[y];w=Dn(x,w,C)}const m=i.fn({...t,[h]:g,[p]:w});return{...m,data:{x:m.x-r,y:m.y-n,enabled:{[h]:s,[p]:a}}}}}},kf=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:r,y:n,placement:o,rects:s,middlewareData:a}=t,{offset:i=0,mainAxis:l=!0,crossAxis:d=!0}=Ke(e,t),f={x:r,y:n},p=Ve(o),h=no(p);let g=f[h],w=f[p];const m=Ke(i,t),v=typeof m=="number"?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(l){const C=h==="y"?"height":"width",E=s.reference[h]-s.floating[C]+v.mainAxis,k=s.reference[h]+s.reference[C]-v.mainAxis;g<E?g=E:g>k&&(g=k)}if(d){var y,x;const C=h==="y"?"width":"height",E=Pa.has(Ye(o)),k=s.reference[p]-s.floating[C]+(E&&((y=a.offset)==null?void 0:y[p])||0)+(E?0:v.crossAxis),j=s.reference[p]+s.reference[C]+(E?0:((x=a.offset)==null?void 0:x[p])||0)-(E?v.crossAxis:0);w<k?w=k:w>j&&(w=j)}return{[h]:g,[p]:w}}}},Nf=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var r,n;const{placement:o,rects:s,platform:a,elements:i}=t,{apply:l=()=>{},...d}=Ke(e,t),f=await Qt(t,d),p=Ye(o),h=Ft(o),g=Ve(o)==="y",{width:w,height:m}=s.floating;let v,y;p==="top"||p==="bottom"?(v=p,y=h===(await(a.isRTL==null?void 0:a.isRTL(i.floating))?"start":"end")?"left":"right"):(y=p,v=h==="end"?"top":"bottom");const x=m-f.top-f.bottom,C=w-f.left-f.right,E=tt(m-f[v],x),k=tt(w-f[y],C),j=!t.middlewareData.shift;let A=E,N=k;if((r=t.middlewareData.shift)!=null&&r.enabled.x&&(N=C),(n=t.middlewareData.shift)!=null&&n.enabled.y&&(A=x),j&&!h){const K=Ce(f.left,0),ee=Ce(f.right,0),J=Ce(f.top,0),Y=Ce(f.bottom,0);g?N=w-2*(K!==0||ee!==0?K+ee:Ce(f.left,f.right)):A=m-2*(J!==0||Y!==0?J+Y:Ce(f.top,f.bottom))}await l({...t,availableWidth:N,availableHeight:A});const G=await a.getDimensions(i.floating);return w!==G.width||m!==G.height?{reset:{rects:!0}}:{}}}};function Br(){return typeof window<"u"}function Vt(e){return Ra(e)?(e.nodeName||"").toLowerCase():"#document"}function Se(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ze(e){var t;return(t=(Ra(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Ra(e){return Br()?e instanceof Node||e instanceof Se(e).Node:!1}function Ae(e){return Br()?e instanceof Element||e instanceof Se(e).Element:!1}function Be(e){return Br()?e instanceof HTMLElement||e instanceof Se(e).HTMLElement:!1}function Ns(e){return!Br()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Se(e).ShadowRoot}const Tf=new Set(["inline","contents"]);function or(e){const{overflow:t,overflowX:r,overflowY:n,display:o}=_e(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!Tf.has(o)}const jf=new Set(["table","td","th"]);function Af(e){return jf.has(Vt(e))}const _f=[":popover-open",":modal"];function zr(e){return _f.some(t=>{try{return e.matches(t)}catch{return!1}})}const If=["transform","translate","scale","rotate","perspective"],Of=["transform","translate","scale","rotate","perspective","filter"],Mf=["paint","layout","strict","content"];function ao(e){const t=io(),r=Ae(e)?_e(e):e;return If.some(n=>r[n]?r[n]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(r.filter?r.filter!=="none":!1)||Of.some(n=>(r.willChange||"").includes(n))||Mf.some(n=>(r.contain||"").includes(n))}function Df(e){let t=rt(e);for(;Be(t)&&!Ot(t);){if(ao(t))return t;if(zr(t))return null;t=rt(t)}return null}function io(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const Lf=new Set(["html","body","#document"]);function Ot(e){return Lf.has(Vt(e))}function _e(e){return Se(e).getComputedStyle(e)}function Hr(e){return Ae(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function rt(e){if(Vt(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Ns(e)&&e.host||ze(e);return Ns(t)?t.host:t}function ka(e){const t=rt(e);return Ot(t)?e.ownerDocument?e.ownerDocument.body:e.body:Be(t)&&or(t)?t:ka(t)}function er(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);const o=ka(e),s=o===((n=e.ownerDocument)==null?void 0:n.body),a=Se(o);if(s){const i=$n(a);return t.concat(a,a.visualViewport||[],or(o)?o:[],i&&r?er(i):[])}return t.concat(o,er(o,[],r))}function $n(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Na(e){const t=_e(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const o=Be(e),s=o?e.offsetWidth:r,a=o?e.offsetHeight:n,i=Rr(r)!==s||Rr(n)!==a;return i&&(r=s,n=a),{width:r,height:n,$:i}}function co(e){return Ae(e)?e:e.contextElement}function At(e){const t=co(e);if(!Be(t))return We(1);const r=t.getBoundingClientRect(),{width:n,height:o,$:s}=Na(t);let a=(s?Rr(r.width):r.width)/n,i=(s?Rr(r.height):r.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!i||!Number.isFinite(i))&&(i=1),{x:a,y:i}}const $f=We(0);function Ta(e){const t=Se(e);return!io()||!t.visualViewport?$f:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Ff(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==Se(e)?!1:t}function pt(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);const o=e.getBoundingClientRect(),s=co(e);let a=We(1);t&&(n?Ae(n)&&(a=At(n)):a=At(e));const i=Ff(s,r,n)?Ta(s):We(0);let l=(o.left+i.x)/a.x,d=(o.top+i.y)/a.y,f=o.width/a.x,p=o.height/a.y;if(s){const h=Se(s),g=n&&Ae(n)?Se(n):n;let w=h,m=$n(w);for(;m&&n&&g!==w;){const v=At(m),y=m.getBoundingClientRect(),x=_e(m),C=y.left+(m.clientLeft+parseFloat(x.paddingLeft))*v.x,E=y.top+(m.clientTop+parseFloat(x.paddingTop))*v.y;l*=v.x,d*=v.y,f*=v.x,p*=v.y,l+=C,d+=E,w=Se(m),m=$n(w)}}return Nr({width:f,height:p,x:l,y:d})}function Gr(e,t){const r=Hr(e).scrollLeft;return t?t.left+r:pt(ze(e)).left+r}function ja(e,t){const r=e.getBoundingClientRect(),n=r.left+t.scrollLeft-Gr(e,r),o=r.top+t.scrollTop;return{x:n,y:o}}function Vf(e){let{elements:t,rect:r,offsetParent:n,strategy:o}=e;const s=o==="fixed",a=ze(n),i=t?zr(t.floating):!1;if(n===a||i&&s)return r;let l={scrollLeft:0,scrollTop:0},d=We(1);const f=We(0),p=Be(n);if((p||!p&&!s)&&((Vt(n)!=="body"||or(a))&&(l=Hr(n)),Be(n))){const g=pt(n);d=At(n),f.x=g.x+n.clientLeft,f.y=g.y+n.clientTop}const h=a&&!p&&!s?ja(a,l):We(0);return{width:r.width*d.x,height:r.height*d.y,x:r.x*d.x-l.scrollLeft*d.x+f.x+h.x,y:r.y*d.y-l.scrollTop*d.y+f.y+h.y}}function Wf(e){return Array.from(e.getClientRects())}function Bf(e){const t=ze(e),r=Hr(e),n=e.ownerDocument.body,o=Ce(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),s=Ce(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let a=-r.scrollLeft+Gr(e);const i=-r.scrollTop;return _e(n).direction==="rtl"&&(a+=Ce(t.clientWidth,n.clientWidth)-o),{width:o,height:s,x:a,y:i}}const Ts=25;function zf(e,t){const r=Se(e),n=ze(e),o=r.visualViewport;let s=n.clientWidth,a=n.clientHeight,i=0,l=0;if(o){s=o.width,a=o.height;const f=io();(!f||f&&t==="fixed")&&(i=o.offsetLeft,l=o.offsetTop)}const d=Gr(n);if(d<=0){const f=n.ownerDocument,p=f.body,h=getComputedStyle(p),g=f.compatMode==="CSS1Compat"&&parseFloat(h.marginLeft)+parseFloat(h.marginRight)||0,w=Math.abs(n.clientWidth-p.clientWidth-g);w<=Ts&&(s-=w)}else d<=Ts&&(s+=d);return{width:s,height:a,x:i,y:l}}const Hf=new Set(["absolute","fixed"]);function Gf(e,t){const r=pt(e,!0,t==="fixed"),n=r.top+e.clientTop,o=r.left+e.clientLeft,s=Be(e)?At(e):We(1),a=e.clientWidth*s.x,i=e.clientHeight*s.y,l=o*s.x,d=n*s.y;return{width:a,height:i,x:l,y:d}}function js(e,t,r){let n;if(t==="viewport")n=zf(e,r);else if(t==="document")n=Bf(ze(e));else if(Ae(t))n=Gf(t,r);else{const o=Ta(e);n={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Nr(n)}function Aa(e,t){const r=rt(e);return r===t||!Ae(r)||Ot(r)?!1:_e(r).position==="fixed"||Aa(r,t)}function Uf(e,t){const r=t.get(e);if(r)return r;let n=er(e,[],!1).filter(i=>Ae(i)&&Vt(i)!=="body"),o=null;const s=_e(e).position==="fixed";let a=s?rt(e):e;for(;Ae(a)&&!Ot(a);){const i=_e(a),l=ao(a);!l&&i.position==="fixed"&&(o=null),(s?!l&&!o:!l&&i.position==="static"&&!!o&&Hf.has(o.position)||or(a)&&!l&&Aa(e,a))?n=n.filter(f=>f!==a):o=i,a=rt(a)}return t.set(e,n),n}function Kf(e){let{element:t,boundary:r,rootBoundary:n,strategy:o}=e;const a=[...r==="clippingAncestors"?zr(t)?[]:Uf(t,this._c):[].concat(r),n],i=a[0],l=a.reduce((d,f)=>{const p=js(t,f,o);return d.top=Ce(p.top,d.top),d.right=tt(p.right,d.right),d.bottom=tt(p.bottom,d.bottom),d.left=Ce(p.left,d.left),d},js(t,i,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function Yf(e){const{width:t,height:r}=Na(e);return{width:t,height:r}}function qf(e,t,r){const n=Be(t),o=ze(t),s=r==="fixed",a=pt(e,!0,s,t);let i={scrollLeft:0,scrollTop:0};const l=We(0);function d(){l.x=Gr(o)}if(n||!n&&!s)if((Vt(t)!=="body"||or(o))&&(i=Hr(t)),n){const g=pt(t,!0,s,t);l.x=g.x+t.clientLeft,l.y=g.y+t.clientTop}else o&&d();s&&!n&&o&&d();const f=o&&!n&&!s?ja(o,i):We(0),p=a.left+i.scrollLeft-l.x-f.x,h=a.top+i.scrollTop-l.y-f.y;return{x:p,y:h,width:a.width,height:a.height}}function bn(e){return _e(e).position==="static"}function As(e,t){if(!Be(e)||_e(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return ze(e)===r&&(r=r.ownerDocument.body),r}function _a(e,t){const r=Se(e);if(zr(e))return r;if(!Be(e)){let o=rt(e);for(;o&&!Ot(o);){if(Ae(o)&&!bn(o))return o;o=rt(o)}return r}let n=As(e,t);for(;n&&Af(n)&&bn(n);)n=As(n,t);return n&&Ot(n)&&bn(n)&&!ao(n)?r:n||Df(e)||r}const Xf=async function(e){const t=this.getOffsetParent||_a,r=this.getDimensions,n=await r(e.floating);return{reference:qf(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function Zf(e){return _e(e).direction==="rtl"}const Jf={convertOffsetParentRelativeRectToViewportRelativeRect:Vf,getDocumentElement:ze,getClippingRect:Kf,getOffsetParent:_a,getElementRects:Xf,getClientRects:Wf,getDimensions:Yf,getScale:At,isElement:Ae,isRTL:Zf};function Ia(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Qf(e,t){let r=null,n;const o=ze(e);function s(){var i;clearTimeout(n),(i=r)==null||i.disconnect(),r=null}function a(i,l){i===void 0&&(i=!1),l===void 0&&(l=1),s();const d=e.getBoundingClientRect(),{left:f,top:p,width:h,height:g}=d;if(i||t(),!h||!g)return;const w=hr(p),m=hr(o.clientWidth-(f+h)),v=hr(o.clientHeight-(p+g)),y=hr(f),C={rootMargin:-w+"px "+-m+"px "+-v+"px "+-y+"px",threshold:Ce(0,tt(1,l))||1};let E=!0;function k(j){const A=j[0].intersectionRatio;if(A!==l){if(!E)return a();A?a(!1,A):n=setTimeout(()=>{a(!1,1e-7)},1e3)}A===1&&!Ia(d,e.getBoundingClientRect())&&a(),E=!1}try{r=new IntersectionObserver(k,{...C,root:o.ownerDocument})}catch{r=new IntersectionObserver(k,C)}r.observe(e)}return a(!0),s}function ep(e,t,r,n){n===void 0&&(n={});const{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:i=typeof IntersectionObserver=="function",animationFrame:l=!1}=n,d=co(e),f=o||s?[...d?er(d):[],...er(t)]:[];f.forEach(y=>{o&&y.addEventListener("scroll",r,{passive:!0}),s&&y.addEventListener("resize",r)});const p=d&&i?Qf(d,r):null;let h=-1,g=null;a&&(g=new ResizeObserver(y=>{let[x]=y;x&&x.target===d&&g&&(g.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var C;(C=g)==null||C.observe(t)})),r()}),d&&!l&&g.observe(d),g.observe(t));let w,m=l?pt(e):null;l&&v();function v(){const y=pt(e);m&&!Ia(m,y)&&r(),m=y,w=requestAnimationFrame(v)}return r(),()=>{var y;f.forEach(x=>{o&&x.removeEventListener("scroll",r),s&&x.removeEventListener("resize",r)}),p==null||p(),(y=g)==null||y.disconnect(),g=null,l&&cancelAnimationFrame(w)}}const tp=Pf,rp=Rf,np=Cf,op=Nf,sp=Sf,_s=wf,ap=kf,ip=(e,t,r)=>{const n=new Map,o={platform:Jf,...r},s={...o.platform,_c:n};return yf(e,t,{...o,platform:s})};var cp=typeof document<"u",lp=function(){},Cr=cp?S.useLayoutEffect:lp;function Tr(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let r,n,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(r=e.length,r!==t.length)return!1;for(n=r;n--!==0;)if(!Tr(e[n],t[n]))return!1;return!0}if(o=Object.keys(e),r=o.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!{}.hasOwnProperty.call(t,o[n]))return!1;for(n=r;n--!==0;){const s=o[n];if(!(s==="_owner"&&e.$$typeof)&&!Tr(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function Oa(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Is(e,t){const r=Oa(e);return Math.round(t*r)/r}function yn(e){const t=u.useRef(e);return Cr(()=>{t.current=e}),t}function up(e){e===void 0&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:n=[],platform:o,elements:{reference:s,floating:a}={},transform:i=!0,whileElementsMounted:l,open:d}=e,[f,p]=u.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[h,g]=u.useState(n);Tr(h,n)||g(n);const[w,m]=u.useState(null),[v,y]=u.useState(null),x=u.useCallback(P=>{P!==j.current&&(j.current=P,m(P))},[]),C=u.useCallback(P=>{P!==A.current&&(A.current=P,y(P))},[]),E=s||w,k=a||v,j=u.useRef(null),A=u.useRef(null),N=u.useRef(f),G=l!=null,K=yn(l),ee=yn(o),J=yn(d),Y=u.useCallback(()=>{if(!j.current||!A.current)return;const P={placement:t,strategy:r,middleware:h};ee.current&&(P.platform=ee.current),ip(j.current,A.current,P).then(H=>{const oe={...H,isPositioned:J.current!==!1};z.current&&!Tr(N.current,oe)&&(N.current=oe,$r.flushSync(()=>{p(oe)}))})},[h,t,r,ee,J]);Cr(()=>{d===!1&&N.current.isPositioned&&(N.current.isPositioned=!1,p(P=>({...P,isPositioned:!1})))},[d]);const z=u.useRef(!1);Cr(()=>(z.current=!0,()=>{z.current=!1}),[]),Cr(()=>{if(E&&(j.current=E),k&&(A.current=k),E&&k){if(K.current)return K.current(E,k,Y);Y()}},[E,k,Y,K,G]);const O=u.useMemo(()=>({reference:j,floating:A,setReference:x,setFloating:C}),[x,C]),T=u.useMemo(()=>({reference:E,floating:k}),[E,k]),D=u.useMemo(()=>{const P={position:r,left:0,top:0};if(!T.floating)return P;const H=Is(T.floating,f.x),oe=Is(T.floating,f.y);return i?{...P,transform:"translate("+H+"px, "+oe+"px)",...Oa(T.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:H,top:oe}},[r,i,T.floating,f.x,f.y]);return u.useMemo(()=>({...f,update:Y,refs:O,elements:T,floatingStyles:D}),[f,Y,O,T,D])}const dp=e=>{function t(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:e,fn(r){const{element:n,padding:o}=typeof e=="function"?e(r):e;return n&&t(n)?n.current!=null?_s({element:n.current,padding:o}).fn(r):{}:n?_s({element:n,padding:o}).fn(r):{}}}},fp=(e,t)=>({...tp(e),options:[e,t]}),pp=(e,t)=>({...rp(e),options:[e,t]}),mp=(e,t)=>({...ap(e),options:[e,t]}),gp=(e,t)=>({...np(e),options:[e,t]}),hp=(e,t)=>({...op(e),options:[e,t]}),vp=(e,t)=>({...sp(e),options:[e,t]}),xp=(e,t)=>({...dp(e),options:[e,t]});var bp="Arrow",Ma=u.forwardRef((e,t)=>{const{children:r,width:n=10,height:o=5,...s}=e;return c.jsx(U.svg,{...s,ref:t,width:n,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:c.jsx("polygon",{points:"0,0 30,0 15,10"})})});Ma.displayName=bp;var yp=Ma;function Da(e){const[t,r]=u.useState(void 0);return ve(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const n=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const s=o[0];let a,i;if("borderBoxSize"in s){const l=s.borderBoxSize,d=Array.isArray(l)?l[0]:l;a=d.inlineSize,i=d.blockSize}else a=e.offsetWidth,i=e.offsetHeight;r({width:a,height:i})});return n.observe(e,{box:"border-box"}),()=>n.unobserve(e)}else r(void 0)},[e]),t}var lo="Popper",[La,Wt]=ke(lo),[wp,$a]=La(lo),Fa=e=>{const{__scopePopper:t,children:r}=e,[n,o]=u.useState(null);return c.jsx(wp,{scope:t,anchor:n,onAnchorChange:o,children:r})};Fa.displayName=lo;var Va="PopperAnchor",Wa=u.forwardRef((e,t)=>{const{__scopePopper:r,virtualRef:n,...o}=e,s=$a(Va,r),a=u.useRef(null),i=de(t,a),l=u.useRef(null);return u.useEffect(()=>{const d=l.current;l.current=(n==null?void 0:n.current)||a.current,d!==l.current&&s.onAnchorChange(l.current)}),n?null:c.jsx(U.div,{...o,ref:i})});Wa.displayName=Va;var uo="PopperContent",[Cp,Sp]=La(uo),Ba=u.forwardRef((e,t)=>{var I,q,te,re,ie,se;const{__scopePopper:r,side:n="bottom",sideOffset:o=0,align:s="center",alignOffset:a=0,arrowPadding:i=0,avoidCollisions:l=!0,collisionBoundary:d=[],collisionPadding:f=0,sticky:p="partial",hideWhenDetached:h=!1,updatePositionStrategy:g="optimized",onPlaced:w,...m}=e,v=$a(uo,r),[y,x]=u.useState(null),C=de(t,xe=>x(xe)),[E,k]=u.useState(null),j=Da(E),A=(j==null?void 0:j.width)??0,N=(j==null?void 0:j.height)??0,G=n+(s!=="center"?"-"+s:""),K=typeof f=="number"?f:{top:0,right:0,bottom:0,left:0,...f},ee=Array.isArray(d)?d:[d],J=ee.length>0,Y={padding:K,boundary:ee.filter(Pp),altBoundary:J},{refs:z,floatingStyles:O,placement:T,isPositioned:D,middlewareData:P}=up({strategy:"fixed",placement:G,whileElementsMounted:(...xe)=>ep(...xe,{animationFrame:g==="always"}),elements:{reference:v.anchor},middleware:[fp({mainAxis:o+N,alignmentAxis:a}),l&&pp({mainAxis:!0,crossAxis:!1,limiter:p==="partial"?mp():void 0,...Y}),l&&gp({...Y}),hp({...Y,apply:({elements:xe,rects:Pe,availableWidth:De,availableHeight:Te})=>{const{width:Ze,height:fr}=Pe.reference,Ge=xe.floating.style;Ge.setProperty("--radix-popper-available-width",`${De}px`),Ge.setProperty("--radix-popper-available-height",`${Te}px`),Ge.setProperty("--radix-popper-anchor-width",`${Ze}px`),Ge.setProperty("--radix-popper-anchor-height",`${fr}px`)}}),E&&xp({element:E,padding:i}),Rp({arrowWidth:A,arrowHeight:N}),h&&vp({strategy:"referenceHidden",...Y})]}),[H,oe]=Ga(T),le=et(w);ve(()=>{D&&(le==null||le())},[D,le]);const R=(I=P.arrow)==null?void 0:I.x,$=(q=P.arrow)==null?void 0:q.y,B=((te=P.arrow)==null?void 0:te.centerOffset)!==0,[F,Q]=u.useState();return ve(()=>{y&&Q(window.getComputedStyle(y).zIndex)},[y]),c.jsx("div",{ref:z.setFloating,"data-radix-popper-content-wrapper":"",style:{...O,transform:D?O.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:F,"--radix-popper-transform-origin":[(re=P.transformOrigin)==null?void 0:re.x,(ie=P.transformOrigin)==null?void 0:ie.y].join(" "),...((se=P.hide)==null?void 0:se.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:c.jsx(Cp,{scope:r,placedSide:H,onArrowChange:k,arrowX:R,arrowY:$,shouldHideArrow:B,children:c.jsx(U.div,{"data-side":H,"data-align":oe,...m,ref:C,style:{...m.style,animation:D?void 0:"none"}})})})});Ba.displayName=uo;var za="PopperArrow",Ep={top:"bottom",right:"left",bottom:"top",left:"right"},Ha=u.forwardRef(function(t,r){const{__scopePopper:n,...o}=t,s=Sp(za,n),a=Ep[s.placedSide];return c.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:c.jsx(yp,{...o,ref:r,style:{...o.style,display:"block"}})})});Ha.displayName=za;function Pp(e){return e!==null}var Rp=e=>({name:"transformOrigin",options:e,fn(t){var v,y,x;const{placement:r,rects:n,middlewareData:o}=t,a=((v=o.arrow)==null?void 0:v.centerOffset)!==0,i=a?0:e.arrowWidth,l=a?0:e.arrowHeight,[d,f]=Ga(r),p={start:"0%",center:"50%",end:"100%"}[f],h=(((y=o.arrow)==null?void 0:y.x)??0)+i/2,g=(((x=o.arrow)==null?void 0:x.y)??0)+l/2;let w="",m="";return d==="bottom"?(w=a?p:`${h}px`,m=`${-l}px`):d==="top"?(w=a?p:`${h}px`,m=`${n.floating.height+l}px`):d==="right"?(w=`${-l}px`,m=a?p:`${g}px`):d==="left"&&(w=`${n.floating.width+l}px`,m=a?p:`${g}px`),{data:{x:w,y:m}}}});function Ga(e){const[t,r="center"]=e.split("-");return[t,r]}var fo=Fa,Ur=Wa,po=Ba,mo=Ha,kp="Portal",sr=u.forwardRef((e,t)=>{var i;const{container:r,...n}=e,[o,s]=u.useState(!1);ve(()=>s(!0),[]);const a=r||o&&((i=globalThis==null?void 0:globalThis.document)==null?void 0:i.body);return a?rr.createPortal(c.jsx(U.div,{...n,ref:t}),a):null});sr.displayName=kp;var Np=u[" useInsertionEffect ".trim().toString()]||ve;function Ee({prop:e,defaultProp:t,onChange:r=()=>{},caller:n}){const[o,s,a]=Tp({defaultProp:t,onChange:r}),i=e!==void 0,l=i?e:o;{const f=u.useRef(e!==void 0);u.useEffect(()=>{const p=f.current;p!==i&&console.warn(`${n} is changing from ${p?"controlled":"uncontrolled"} to ${i?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),f.current=i},[i,n])}const d=u.useCallback(f=>{var p;if(i){const h=jp(f)?f(e):f;h!==e&&((p=a.current)==null||p.call(a,h))}else s(f)},[i,e,s,a]);return[l,d]}function Tp({defaultProp:e,onChange:t}){const[r,n]=u.useState(e),o=u.useRef(r),s=u.useRef(t);return Np(()=>{s.current=t},[t]),u.useEffect(()=>{var a;o.current!==r&&((a=s.current)==null||a.call(s,r),o.current=r)},[r,o]),[r,n,s]}function jp(e){return typeof e=="function"}function Ua(e){const t=u.useRef({value:e,previous:e});return u.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var Ka=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"}),Ap="VisuallyHidden",Ya=u.forwardRef((e,t)=>c.jsx(U.span,{...e,ref:t,style:{...Ka,...e.style}}));Ya.displayName=Ap;var _p=Ya,Ip=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},St=new WeakMap,vr=new WeakMap,xr={},wn=0,qa=function(e){return e&&(e.host||qa(e.parentNode))},Op=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=qa(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},Mp=function(e,t,r,n){var o=Op(t,Array.isArray(e)?e:[e]);xr[r]||(xr[r]=new WeakMap);var s=xr[r],a=[],i=new Set,l=new Set(o),d=function(p){!p||i.has(p)||(i.add(p),d(p.parentNode))};o.forEach(d);var f=function(p){!p||l.has(p)||Array.prototype.forEach.call(p.children,function(h){if(i.has(h))f(h);else try{var g=h.getAttribute(n),w=g!==null&&g!=="false",m=(St.get(h)||0)+1,v=(s.get(h)||0)+1;St.set(h,m),s.set(h,v),a.push(h),m===1&&w&&vr.set(h,!0),v===1&&h.setAttribute(r,"true"),w||h.setAttribute(n,"true")}catch(y){console.error("aria-hidden: cannot operate on ",h,y)}})};return f(t),i.clear(),wn++,function(){a.forEach(function(p){var h=St.get(p)-1,g=s.get(p)-1;St.set(p,h),s.set(p,g),h||(vr.has(p)||p.removeAttribute(n),vr.delete(p)),g||p.removeAttribute(r)}),wn--,wn||(St=new WeakMap,St=new WeakMap,vr=new WeakMap,xr={})}},go=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=Ip(e);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live], script"))),Mp(n,o,r,"aria-hidden")):function(){return null}},Fe=function(){return Fe=Object.assign||function(t){for(var r,n=1,o=arguments.length;n<o;n++){r=arguments[n];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(t[s]=r[s])}return t},Fe.apply(this,arguments)};function Xa(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}function Dp(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,s;n<o;n++)(s||!(n in t))&&(s||(s=Array.prototype.slice.call(t,0,n)),s[n]=t[n]);return e.concat(s||Array.prototype.slice.call(t))}var Sr="right-scroll-bar-position",Er="width-before-scroll-bar",Lp="with-scroll-bars-hidden",$p="--removed-body-scroll-bar-size";function Cn(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Fp(e,t){var r=S.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(n){var o=r.value;o!==n&&(r.value=n,r.callback(n,o))}}}})[0];return r.callback=t,r.facade}var Vp=typeof window<"u"?u.useLayoutEffect:u.useEffect,Os=new WeakMap;function Wp(e,t){var r=Fp(null,function(n){return e.forEach(function(o){return Cn(o,n)})});return Vp(function(){var n=Os.get(r);if(n){var o=new Set(n),s=new Set(e),a=r.current;o.forEach(function(i){s.has(i)||Cn(i,null)}),s.forEach(function(i){o.has(i)||Cn(i,a)})}Os.set(r,e)},[e]),r}function Bp(e){return e}function zp(e,t){t===void 0&&(t=Bp);var r=[],n=!1,o={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(s){var a=t(s,n);return r.push(a),function(){r=r.filter(function(i){return i!==a})}},assignSyncMedium:function(s){for(n=!0;r.length;){var a=r;r=[],a.forEach(s)}r={push:function(i){return s(i)},filter:function(){return r}}},assignMedium:function(s){n=!0;var a=[];if(r.length){var i=r;r=[],i.forEach(s),a=r}var l=function(){var f=a;a=[],f.forEach(s)},d=function(){return Promise.resolve().then(l)};d(),r={push:function(f){a.push(f),d()},filter:function(f){return a=a.filter(f),r}}}};return o}function Hp(e){e===void 0&&(e={});var t=zp(null);return t.options=Fe({async:!0,ssr:!1},e),t}var Za=function(e){var t=e.sideCar,r=Xa(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return u.createElement(n,Fe({},r))};Za.isSideCarExport=!0;function Gp(e,t){return e.useMedium(t),Za}var Ja=Hp(),Sn=function(){},Kr=u.forwardRef(function(e,t){var r=u.useRef(null),n=u.useState({onScrollCapture:Sn,onWheelCapture:Sn,onTouchMoveCapture:Sn}),o=n[0],s=n[1],a=e.forwardProps,i=e.children,l=e.className,d=e.removeScrollBar,f=e.enabled,p=e.shards,h=e.sideCar,g=e.noRelative,w=e.noIsolation,m=e.inert,v=e.allowPinchZoom,y=e.as,x=y===void 0?"div":y,C=e.gapMode,E=Xa(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),k=h,j=Wp([r,t]),A=Fe(Fe({},E),o);return u.createElement(u.Fragment,null,f&&u.createElement(k,{sideCar:Ja,removeScrollBar:d,shards:p,noRelative:g,noIsolation:w,inert:m,setCallbacks:s,allowPinchZoom:!!v,lockRef:r,gapMode:C}),a?u.cloneElement(u.Children.only(i),Fe(Fe({},A),{ref:j})):u.createElement(x,Fe({},A,{className:l,ref:j}),i))});Kr.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Kr.classNames={fullWidth:Er,zeroRight:Sr};var Up=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Kp(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Up();return t&&e.setAttribute("nonce",t),e}function Yp(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function qp(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Xp=function(){var e=0,t=null;return{add:function(r){e==0&&(t=Kp())&&(Yp(t,r),qp(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Zp=function(){var e=Xp();return function(t,r){u.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},Qa=function(){var e=Zp(),t=function(r){var n=r.styles,o=r.dynamic;return e(n,o),null};return t},Jp={left:0,top:0,right:0,gap:0},En=function(e){return parseInt(e||"",10)||0},Qp=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[En(r),En(n),En(o)]},em=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Jp;var t=Qp(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},tm=Qa(),_t="data-scroll-locked",rm=function(e,t,r,n){var o=e.left,s=e.top,a=e.right,i=e.gap;return r===void 0&&(r="margin"),`
|
|
31
|
-
.`.concat(
|
|
30
|
+
<%s key={someKey} {...props} />`,mn,lt,Gu,lt),ss[lt+mn]=!0}}return y===n?Vu(me):Fu(me),me}}function Bu(y,_,L){return as(y,_,L,!0)}function Wu(y,_,L){return as(y,_,L,!1)}var zu=Wu,Hu=Bu;Gt.Fragment=n,Gt.jsx=zu,Gt.jsxs=Hu})()),Gt}var cs;function Qu(){return cs||(cs=1,process.env.NODE_ENV==="production"?pr.exports=Zu():pr.exports=Ju()),pr.exports}var l=Qu();function ca(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=ca(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function ua(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=ca(e))&&(n&&(n+=" "),n+=t);return n}const us=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,ds=ua,Fr=(e,t)=>r=>{var n;if((t==null?void 0:t.variants)==null)return ds(e,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:o,defaultVariants:s}=t,a=Object.keys(o).map(u=>{const f=r==null?void 0:r[u],p=s==null?void 0:s[u];if(f===null)return null;const h=us(f)||us(p);return o[u][h]}),i=r&&Object.entries(r).reduce((u,f)=>{let[p,h]=f;return h===void 0||(u[p]=h),u},{}),c=t==null||(n=t.compoundVariants)===null||n===void 0?void 0:n.reduce((u,f)=>{let{class:p,className:h,...m}=f;return Object.entries(m).every(w=>{let[g,v]=w;return Array.isArray(v)?v.includes({...s,...i}[g]):{...s,...i}[g]===v})?[...u,p,h]:u},[]);return ds(e,a,c,r==null?void 0:r.class,r==null?void 0:r.className)},eo="-",ed=e=>{const t=rd(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:a=>{const i=a.split(eo);return i[0]===""&&i.length!==1&&i.shift(),da(i,t)||td(a)},getConflictingClassGroupIds:(a,i)=>{const c=r[a]||[];return i&&n[a]?[...c,...n[a]]:c}}},da=(e,t)=>{var a;if(e.length===0)return t.classGroupId;const r=e[0],n=t.nextPart.get(r),o=n?da(e.slice(1),n):void 0;if(o)return o;if(t.validators.length===0)return;const s=e.join(eo);return(a=t.validators.find(({validator:i})=>i(s)))==null?void 0:a.classGroupId},fs=/^\[(.+)\]$/,td=e=>{if(fs.test(e)){const t=fs.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},rd=e=>{const{theme:t,classGroups:r}=e,n={nextPart:new Map,validators:[]};for(const o in r)In(r[o],n,o,t);return n},In=(e,t,r,n)=>{e.forEach(o=>{if(typeof o=="string"){const s=o===""?t:ps(t,o);s.classGroupId=r;return}if(typeof o=="function"){if(nd(o)){In(o(n),t,r,n);return}t.validators.push({validator:o,classGroupId:r});return}Object.entries(o).forEach(([s,a])=>{In(a,ps(t,s),r,n)})})},ps=(e,t)=>{let r=e;return t.split(eo).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r},nd=e=>e.isThemeGetter,od=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,n=new Map;const o=(s,a)=>{r.set(s,a),t++,t>e&&(t=0,n=r,r=new Map)};return{get(s){let a=r.get(s);if(a!==void 0)return a;if((a=n.get(s))!==void 0)return o(s,a),a},set(s,a){r.has(s)?r.set(s,a):o(s,a)}}},On="!",Mn=":",sd=Mn.length,ad=e=>{const{prefix:t,experimentalParseClassName:r}=e;let n=o=>{const s=[];let a=0,i=0,c=0,u;for(let w=0;w<o.length;w++){let g=o[w];if(a===0&&i===0){if(g===Mn){s.push(o.slice(c,w)),c=w+sd;continue}if(g==="/"){u=w;continue}}g==="["?a++:g==="]"?a--:g==="("?i++:g===")"&&i--}const f=s.length===0?o:o.substring(c),p=id(f),h=p!==f,m=u&&u>c?u-c:void 0;return{modifiers:s,hasImportantModifier:h,baseClassName:p,maybePostfixModifierPosition:m}};if(t){const o=t+Mn,s=n;n=a=>a.startsWith(o)?s(a.substring(o.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:a,maybePostfixModifierPosition:void 0}}if(r){const o=n;n=s=>r({className:s,parseClassName:o})}return n},id=e=>e.endsWith(On)?e.substring(0,e.length-1):e.startsWith(On)?e.substring(1):e,ld=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(n=>[n,!0]));return n=>{if(n.length<=1)return n;const o=[];let s=[];return n.forEach(a=>{a[0]==="["||t[a]?(o.push(...s.sort(),a),s=[]):s.push(a)}),o.push(...s.sort()),o}},cd=e=>({cache:od(e.cacheSize),parseClassName:ad(e),sortModifiers:ld(e),...ed(e)}),ud=/\s+/,dd=(e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:o,sortModifiers:s}=t,a=[],i=e.trim().split(ud);let c="";for(let u=i.length-1;u>=0;u-=1){const f=i[u],{isExternal:p,modifiers:h,hasImportantModifier:m,baseClassName:w,maybePostfixModifierPosition:g}=r(f);if(p){c=f+(c.length>0?" "+c:c);continue}let v=!!g,b=n(v?w.substring(0,g):w);if(!b){if(!v){c=f+(c.length>0?" "+c:c);continue}if(b=n(w),!b){c=f+(c.length>0?" "+c:c);continue}v=!1}const x=s(h).join(":"),C=m?x+On:x,E=C+b;if(a.includes(E))continue;a.push(E);const R=o(b,v);for(let j=0;j<R.length;++j){const A=R[j];a.push(C+A)}c=f+(c.length>0?" "+c:c)}return c};function fd(){let e=0,t,r,n="";for(;e<arguments.length;)(t=arguments[e++])&&(r=fa(t))&&(n&&(n+=" "),n+=r);return n}const fa=e=>{if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=fa(e[n]))&&(r&&(r+=" "),r+=t);return r};function pd(e,...t){let r,n,o,s=a;function a(c){const u=t.reduce((f,p)=>p(f),e());return r=cd(u),n=r.cache.get,o=r.cache.set,s=i,i(c)}function i(c){const u=n(c);if(u)return u;const f=dd(c,r);return o(c,f),f}return function(){return s(fd.apply(null,arguments))}}const ge=e=>{const t=r=>r[e]||[];return t.isThemeGetter=!0,t},pa=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,ma=/^\((?:(\w[\w-]*):)?(.+)\)$/i,md=/^\d+\/\d+$/,gd=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,hd=/\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$/,vd=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,xd=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,bd=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ct=e=>md.test(e),se=e=>!!e&&!Number.isNaN(Number(e)),Je=e=>!!e&&Number.isInteger(Number(e)),gn=e=>e.endsWith("%")&&se(e.slice(0,-1)),Ue=e=>gd.test(e),yd=()=>!0,wd=e=>hd.test(e)&&!vd.test(e),ga=()=>!1,Cd=e=>xd.test(e),Sd=e=>bd.test(e),Ed=e=>!V(e)&&!B(e),kd=e=>Lt(e,xa,ga),V=e=>pa.test(e),ct=e=>Lt(e,ba,wd),hn=e=>Lt(e,jd,se),ms=e=>Lt(e,ha,ga),Pd=e=>Lt(e,va,Sd),mr=e=>Lt(e,ya,Cd),B=e=>ma.test(e),Ut=e=>$t(e,ba),Rd=e=>$t(e,Ad),gs=e=>$t(e,ha),Nd=e=>$t(e,xa),Td=e=>$t(e,va),gr=e=>$t(e,ya,!0),Lt=(e,t,r)=>{const n=pa.exec(e);return n?n[1]?t(n[1]):r(n[2]):!1},$t=(e,t,r=!1)=>{const n=ma.exec(e);return n?n[1]?t(n[1]):r:!1},ha=e=>e==="position"||e==="percentage",va=e=>e==="image"||e==="url",xa=e=>e==="length"||e==="size"||e==="bg-size",ba=e=>e==="length",jd=e=>e==="number",Ad=e=>e==="family-name",ya=e=>e==="shadow",_d=()=>{const e=ge("color"),t=ge("font"),r=ge("text"),n=ge("font-weight"),o=ge("tracking"),s=ge("leading"),a=ge("breakpoint"),i=ge("container"),c=ge("spacing"),u=ge("radius"),f=ge("shadow"),p=ge("inset-shadow"),h=ge("text-shadow"),m=ge("drop-shadow"),w=ge("blur"),g=ge("perspective"),v=ge("aspect"),b=ge("ease"),x=ge("animate"),C=()=>["auto","avoid","all","avoid-page","page","left","right","column"],E=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],R=()=>[...E(),B,V],j=()=>["auto","hidden","clip","visible","scroll"],A=()=>["auto","contain","none"],N=()=>[B,V,c],G=()=>[Ct,"full","auto",...N()],Y=()=>[Je,"none","subgrid",B,V],ee=()=>["auto",{span:["full",Je,B,V]},Je,B,V],Q=()=>[Je,"auto",B,V],q=()=>["auto","min","max","fr",B,V],W=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],M=()=>["start","end","center","stretch","center-safe","end-safe"],T=()=>["auto",...N()],D=()=>[Ct,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...N()],k=()=>[e,B,V],H=()=>[...E(),gs,ms,{position:[B,V]}],U=()=>["no-repeat",{repeat:["","x","y","space","round"]}],re=()=>["auto","cover","contain",Nd,kd,{size:[B,V]}],P=()=>[gn,Ut,ct],$=()=>["","none","full",u,B,V],z=()=>["",se,Ut,ct],F=()=>["solid","dashed","dotted","double"],te=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],O=()=>[se,gn,gs,ms],X=()=>["","none",w,B,V],ne=()=>["none",se,B,V],oe=()=>["none",se,B,V],le=()=>[se,B,V],ae=()=>[Ct,"full",...N()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Ue],breakpoint:[Ue],color:[yd],container:[Ue],"drop-shadow":[Ue],ease:["in","out","in-out"],font:[Ed],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Ue],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Ue],shadow:[Ue],spacing:["px",se],text:[Ue],"text-shadow":[Ue],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Ct,V,B,v]}],container:["container"],columns:[{columns:[se,V,B,i]}],"break-after":[{"break-after":C()}],"break-before":[{"break-before":C()}],"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:R()}],overflow:[{overflow:j()}],"overflow-x":[{"overflow-x":j()}],"overflow-y":[{"overflow-y":j()}],overscroll:[{overscroll:A()}],"overscroll-x":[{"overscroll-x":A()}],"overscroll-y":[{"overscroll-y":A()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:G()}],"inset-x":[{"inset-x":G()}],"inset-y":[{"inset-y":G()}],start:[{start:G()}],end:[{end:G()}],top:[{top:G()}],right:[{right:G()}],bottom:[{bottom:G()}],left:[{left:G()}],visibility:["visible","invisible","collapse"],z:[{z:[Je,"auto",B,V]}],basis:[{basis:[Ct,"full","auto",i,...N()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[se,Ct,"auto","initial","none",V]}],grow:[{grow:["",se,B,V]}],shrink:[{shrink:["",se,B,V]}],order:[{order:[Je,"first","last","none",B,V]}],"grid-cols":[{"grid-cols":Y()}],"col-start-end":[{col:ee()}],"col-start":[{"col-start":Q()}],"col-end":[{"col-end":Q()}],"grid-rows":[{"grid-rows":Y()}],"row-start-end":[{row:ee()}],"row-start":[{"row-start":Q()}],"row-end":[{"row-end":Q()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":q()}],"auto-rows":[{"auto-rows":q()}],gap:[{gap:N()}],"gap-x":[{"gap-x":N()}],"gap-y":[{"gap-y":N()}],"justify-content":[{justify:[...W(),"normal"]}],"justify-items":[{"justify-items":[...M(),"normal"]}],"justify-self":[{"justify-self":["auto",...M()]}],"align-content":[{content:["normal",...W()]}],"align-items":[{items:[...M(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...M(),{baseline:["","last"]}]}],"place-content":[{"place-content":W()}],"place-items":[{"place-items":[...M(),"baseline"]}],"place-self":[{"place-self":["auto",...M()]}],p:[{p:N()}],px:[{px:N()}],py:[{py:N()}],ps:[{ps:N()}],pe:[{pe:N()}],pt:[{pt:N()}],pr:[{pr:N()}],pb:[{pb:N()}],pl:[{pl:N()}],m:[{m:T()}],mx:[{mx:T()}],my:[{my:T()}],ms:[{ms:T()}],me:[{me:T()}],mt:[{mt:T()}],mr:[{mr:T()}],mb:[{mb:T()}],ml:[{ml:T()}],"space-x":[{"space-x":N()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":N()}],"space-y-reverse":["space-y-reverse"],size:[{size:D()}],w:[{w:[i,"screen",...D()]}],"min-w":[{"min-w":[i,"screen","none",...D()]}],"max-w":[{"max-w":[i,"screen","none","prose",{screen:[a]},...D()]}],h:[{h:["screen","lh",...D()]}],"min-h":[{"min-h":["screen","lh","none",...D()]}],"max-h":[{"max-h":["screen","lh",...D()]}],"font-size":[{text:["base",r,Ut,ct]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,B,hn]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",gn,V]}],"font-family":[{font:[Rd,V,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,B,V]}],"line-clamp":[{"line-clamp":[se,"none",B,hn]}],leading:[{leading:[s,...N()]}],"list-image":[{"list-image":["none",B,V]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",B,V]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:k()}],"text-color":[{text:k()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...F(),"wavy"]}],"text-decoration-thickness":[{decoration:[se,"from-font","auto",B,ct]}],"text-decoration-color":[{decoration:k()}],"underline-offset":[{"underline-offset":[se,"auto",B,V]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:N()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",B,V]}],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",B,V]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:H()}],"bg-repeat":[{bg:U()}],"bg-size":[{bg:re()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Je,B,V],radial:["",B,V],conic:[Je,B,V]},Td,Pd]}],"bg-color":[{bg:k()}],"gradient-from-pos":[{from:P()}],"gradient-via-pos":[{via:P()}],"gradient-to-pos":[{to:P()}],"gradient-from":[{from:k()}],"gradient-via":[{via:k()}],"gradient-to":[{to:k()}],rounded:[{rounded:$()}],"rounded-s":[{"rounded-s":$()}],"rounded-e":[{"rounded-e":$()}],"rounded-t":[{"rounded-t":$()}],"rounded-r":[{"rounded-r":$()}],"rounded-b":[{"rounded-b":$()}],"rounded-l":[{"rounded-l":$()}],"rounded-ss":[{"rounded-ss":$()}],"rounded-se":[{"rounded-se":$()}],"rounded-ee":[{"rounded-ee":$()}],"rounded-es":[{"rounded-es":$()}],"rounded-tl":[{"rounded-tl":$()}],"rounded-tr":[{"rounded-tr":$()}],"rounded-br":[{"rounded-br":$()}],"rounded-bl":[{"rounded-bl":$()}],"border-w":[{border:z()}],"border-w-x":[{"border-x":z()}],"border-w-y":[{"border-y":z()}],"border-w-s":[{"border-s":z()}],"border-w-e":[{"border-e":z()}],"border-w-t":[{"border-t":z()}],"border-w-r":[{"border-r":z()}],"border-w-b":[{"border-b":z()}],"border-w-l":[{"border-l":z()}],"divide-x":[{"divide-x":z()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":z()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...F(),"hidden","none"]}],"divide-style":[{divide:[...F(),"hidden","none"]}],"border-color":[{border:k()}],"border-color-x":[{"border-x":k()}],"border-color-y":[{"border-y":k()}],"border-color-s":[{"border-s":k()}],"border-color-e":[{"border-e":k()}],"border-color-t":[{"border-t":k()}],"border-color-r":[{"border-r":k()}],"border-color-b":[{"border-b":k()}],"border-color-l":[{"border-l":k()}],"divide-color":[{divide:k()}],"outline-style":[{outline:[...F(),"none","hidden"]}],"outline-offset":[{"outline-offset":[se,B,V]}],"outline-w":[{outline:["",se,Ut,ct]}],"outline-color":[{outline:k()}],shadow:[{shadow:["","none",f,gr,mr]}],"shadow-color":[{shadow:k()}],"inset-shadow":[{"inset-shadow":["none",p,gr,mr]}],"inset-shadow-color":[{"inset-shadow":k()}],"ring-w":[{ring:z()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:k()}],"ring-offset-w":[{"ring-offset":[se,ct]}],"ring-offset-color":[{"ring-offset":k()}],"inset-ring-w":[{"inset-ring":z()}],"inset-ring-color":[{"inset-ring":k()}],"text-shadow":[{"text-shadow":["none",h,gr,mr]}],"text-shadow-color":[{"text-shadow":k()}],opacity:[{opacity:[se,B,V]}],"mix-blend":[{"mix-blend":[...te(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":te()}],"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":[se]}],"mask-image-linear-from-pos":[{"mask-linear-from":O()}],"mask-image-linear-to-pos":[{"mask-linear-to":O()}],"mask-image-linear-from-color":[{"mask-linear-from":k()}],"mask-image-linear-to-color":[{"mask-linear-to":k()}],"mask-image-t-from-pos":[{"mask-t-from":O()}],"mask-image-t-to-pos":[{"mask-t-to":O()}],"mask-image-t-from-color":[{"mask-t-from":k()}],"mask-image-t-to-color":[{"mask-t-to":k()}],"mask-image-r-from-pos":[{"mask-r-from":O()}],"mask-image-r-to-pos":[{"mask-r-to":O()}],"mask-image-r-from-color":[{"mask-r-from":k()}],"mask-image-r-to-color":[{"mask-r-to":k()}],"mask-image-b-from-pos":[{"mask-b-from":O()}],"mask-image-b-to-pos":[{"mask-b-to":O()}],"mask-image-b-from-color":[{"mask-b-from":k()}],"mask-image-b-to-color":[{"mask-b-to":k()}],"mask-image-l-from-pos":[{"mask-l-from":O()}],"mask-image-l-to-pos":[{"mask-l-to":O()}],"mask-image-l-from-color":[{"mask-l-from":k()}],"mask-image-l-to-color":[{"mask-l-to":k()}],"mask-image-x-from-pos":[{"mask-x-from":O()}],"mask-image-x-to-pos":[{"mask-x-to":O()}],"mask-image-x-from-color":[{"mask-x-from":k()}],"mask-image-x-to-color":[{"mask-x-to":k()}],"mask-image-y-from-pos":[{"mask-y-from":O()}],"mask-image-y-to-pos":[{"mask-y-to":O()}],"mask-image-y-from-color":[{"mask-y-from":k()}],"mask-image-y-to-color":[{"mask-y-to":k()}],"mask-image-radial":[{"mask-radial":[B,V]}],"mask-image-radial-from-pos":[{"mask-radial-from":O()}],"mask-image-radial-to-pos":[{"mask-radial-to":O()}],"mask-image-radial-from-color":[{"mask-radial-from":k()}],"mask-image-radial-to-color":[{"mask-radial-to":k()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":E()}],"mask-image-conic-pos":[{"mask-conic":[se]}],"mask-image-conic-from-pos":[{"mask-conic-from":O()}],"mask-image-conic-to-pos":[{"mask-conic-to":O()}],"mask-image-conic-from-color":[{"mask-conic-from":k()}],"mask-image-conic-to-color":[{"mask-conic-to":k()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:H()}],"mask-repeat":[{mask:U()}],"mask-size":[{mask:re()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",B,V]}],filter:[{filter:["","none",B,V]}],blur:[{blur:X()}],brightness:[{brightness:[se,B,V]}],contrast:[{contrast:[se,B,V]}],"drop-shadow":[{"drop-shadow":["","none",m,gr,mr]}],"drop-shadow-color":[{"drop-shadow":k()}],grayscale:[{grayscale:["",se,B,V]}],"hue-rotate":[{"hue-rotate":[se,B,V]}],invert:[{invert:["",se,B,V]}],saturate:[{saturate:[se,B,V]}],sepia:[{sepia:["",se,B,V]}],"backdrop-filter":[{"backdrop-filter":["","none",B,V]}],"backdrop-blur":[{"backdrop-blur":X()}],"backdrop-brightness":[{"backdrop-brightness":[se,B,V]}],"backdrop-contrast":[{"backdrop-contrast":[se,B,V]}],"backdrop-grayscale":[{"backdrop-grayscale":["",se,B,V]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[se,B,V]}],"backdrop-invert":[{"backdrop-invert":["",se,B,V]}],"backdrop-opacity":[{"backdrop-opacity":[se,B,V]}],"backdrop-saturate":[{"backdrop-saturate":[se,B,V]}],"backdrop-sepia":[{"backdrop-sepia":["",se,B,V]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":N()}],"border-spacing-x":[{"border-spacing-x":N()}],"border-spacing-y":[{"border-spacing-y":N()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",B,V]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[se,"initial",B,V]}],ease:[{ease:["linear","initial",b,B,V]}],delay:[{delay:[se,B,V]}],animate:[{animate:["none",x,B,V]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[g,B,V]}],"perspective-origin":[{"perspective-origin":R()}],rotate:[{rotate:ne()}],"rotate-x":[{"rotate-x":ne()}],"rotate-y":[{"rotate-y":ne()}],"rotate-z":[{"rotate-z":ne()}],scale:[{scale:oe()}],"scale-x":[{"scale-x":oe()}],"scale-y":[{"scale-y":oe()}],"scale-z":[{"scale-z":oe()}],"scale-3d":["scale-3d"],skew:[{skew:le()}],"skew-x":[{"skew-x":le()}],"skew-y":[{"skew-y":le()}],transform:[{transform:[B,V,"","none","gpu","cpu"]}],"transform-origin":[{origin:R()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ae()}],"translate-x":[{"translate-x":ae()}],"translate-y":[{"translate-y":ae()}],"translate-z":[{"translate-z":ae()}],"translate-none":["translate-none"],accent:[{accent:k()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:k()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",B,V]}],"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":N()}],"scroll-mx":[{"scroll-mx":N()}],"scroll-my":[{"scroll-my":N()}],"scroll-ms":[{"scroll-ms":N()}],"scroll-me":[{"scroll-me":N()}],"scroll-mt":[{"scroll-mt":N()}],"scroll-mr":[{"scroll-mr":N()}],"scroll-mb":[{"scroll-mb":N()}],"scroll-ml":[{"scroll-ml":N()}],"scroll-p":[{"scroll-p":N()}],"scroll-px":[{"scroll-px":N()}],"scroll-py":[{"scroll-py":N()}],"scroll-ps":[{"scroll-ps":N()}],"scroll-pe":[{"scroll-pe":N()}],"scroll-pt":[{"scroll-pt":N()}],"scroll-pr":[{"scroll-pr":N()}],"scroll-pb":[{"scroll-pb":N()}],"scroll-pl":[{"scroll-pl":N()}],"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",B,V]}],fill:[{fill:["none",...k()]}],"stroke-w":[{stroke:[se,Ut,ct,hn]}],stroke:[{stroke:["none",...k()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},Id=pd(_d);function I(...e){return Id(ua(e))}const wa=Fr("inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none cursor-pointer",{variants:{variant:{default:"bg-fill-action-emphasis-idle text-action-on-emphasis-idle hover:bg-fill-action-emphasis-hover active:bg-fill-action-emphasis-active disabled:bg-fill-action-emphasis-disabled",secondary:"bg-fill-action-neutral-idle text-text-action-neutral-idle hover:bg-fill-action-neutral-hover active:bg-fill-action-neutral-active disabled:bg-fill-action-neutral-disabled disabled:text-text-action-neutral-disabled",outline:"border border-border-action-neutral-idle text-text-action-neutral-idle hover:bg-fill-action-neutral-hover active:bg-fill-action-neutral-active disabled:bg-none disabled:text-text-action-neutral-disabled",ghost:"text-text-action-neutral-idle hover:text-text-action-neutral-hover active:bg-fill-action-neutral-active disabled:bg-none disabled:text-text-action-neutral-disabled",link:"text-text-action-emphasis-idle hover:text-text-action-emphasis-hover active:bg-fill-action-emphasis-active disabled:bg-none disabled:text-text-action-emphasis-disabled",danger:"border border-border-action-negative-idle text-icon-action-negative-idle hover:bg-fill-action-negative-hover active:bg-fill-action-negative-active disabled-border-action-negative-disabled"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),It=d.forwardRef(({className:e,variant:t,size:r,...n},o)=>l.jsx("button",{className:I(wa({variant:t,size:r,className:e})),ref:o,...n}));It.displayName="Button";const Od=Fr("file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground border-input flex h-9 w-full min-w-0 rounded-md border bg-background px-3 py-1 text-base shadow-xs 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:dark:border-transparent disabled:opacity-50 md:text-sm dark:border-input dark:bg-background dark:text-foreground dark:placeholder:text-muted-foreground",{variants:{variant:{default:"bg-purple-mutted-700 border-purple-mutted-500 text-purple-mutted-300 text-sm",secondary:"bg-secondary border-secondary text-secondary-foreground placeholder:text-muted-foreground dark:bg-secondary dark:border-secondary dark:text-secondary-foreground dark:placeholder:text-muted-foreground",accent:"bg-accent border-accent text-accent-foreground placeholder:text-muted-foreground dark:bg-accent dark:border-accent dark:text-accent-foreground dark:placeholder:text-muted-foreground",success:"bg-success border-success text-success-foreground placeholder:text-success-foreground/70 dark:bg-success dark:border-success dark:text-success-foreground dark:placeholder:text-success-foreground/70",warning:"bg-warning border-warning text-warning-foreground placeholder:text-warning-foreground/70 dark:bg-warning dark:border-warning dark:text-warning-foreground dark:placeholder:text-warning-foreground/70",destructive:"border-destructive text-purple-mutted-200 placeholder:text-destructive-foreground/70 dark:border-destructive dark:placeholder:text-destructive-foreground/70"}},defaultVariants:{variant:"default"}});function to({className:e,variant:t,type:r,error:n,...o}){const s=n?"destructive":t;return l.jsx("input",{type:r,"data-slot":"input",className:I(Od({variant:s,className:e})),...o})}function hs(e,[t,r]){return Math.min(r,Math.max(t,e))}function J(e,t,{checkForDefaultPrevented:r=!0}={}){return function(o){if(e==null||e(o),r===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function Md(e,t){const r=d.createContext(t),n=s=>{const{children:a,...i}=s,c=d.useMemo(()=>i,Object.values(i));return l.jsx(r.Provider,{value:c,children:a})};n.displayName=e+"Provider";function o(s){const a=d.useContext(r);if(a)return a;if(t!==void 0)return t;throw new Error(`\`${s}\` must be used within \`${e}\``)}return[n,o]}function Ne(e,t=[]){let r=[];function n(s,a){const i=d.createContext(a),c=r.length;r=[...r,a];const u=p=>{var b;const{scope:h,children:m,...w}=p,g=((b=h==null?void 0:h[e])==null?void 0:b[c])||i,v=d.useMemo(()=>w,Object.values(w));return l.jsx(g.Provider,{value:v,children:m})};u.displayName=s+"Provider";function f(p,h){var g;const m=((g=h==null?void 0:h[e])==null?void 0:g[c])||i,w=d.useContext(m);if(w)return w;if(a!==void 0)return a;throw new Error(`\`${p}\` must be used within \`${s}\``)}return[u,f]}const o=()=>{const s=r.map(a=>d.createContext(a));return function(i){const c=(i==null?void 0:i[e])||s;return d.useMemo(()=>({[`__scope${e}`]:{...i,[e]:c}}),[i,c])}};return o.scopeName=e,[n,Dd(o,...t)]}function Dd(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(s){const a=n.reduce((i,{useScope:c,scopeName:u})=>{const p=c(s)[`__scope${u}`];return{...i,...p}},{});return d.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return r.scopeName=t.scopeName,r}function vs(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function dt(...e){return t=>{let r=!1;const n=e.map(o=>{const s=vs(o,t);return!r&&typeof s=="function"&&(r=!0),s});if(r)return()=>{for(let o=0;o<n.length;o++){const s=n[o];typeof s=="function"?s():vs(e[o],null)}}}}function de(...e){return d.useCallback(dt(...e),e)}function ft(e){const t=$d(e),r=d.forwardRef((n,o)=>{const{children:s,...a}=n,i=d.Children.toArray(s),c=i.find(Vd);if(c){const u=c.props.children,f=i.map(p=>p===c?d.Children.count(u)>1?d.Children.only(null):d.isValidElement(u)?u.props.children:null:p);return l.jsx(t,{...a,ref:o,children:d.isValidElement(u)?d.cloneElement(u,void 0,f):null})}return l.jsx(t,{...a,ref:o,children:s})});return r.displayName=`${e}.Slot`,r}var Ld=ft("Slot");function $d(e){const t=d.forwardRef((r,n)=>{const{children:o,...s}=r;if(d.isValidElement(o)){const a=Wd(o),i=Bd(s,o.props);return o.type!==d.Fragment&&(i.ref=n?dt(n,a):a),d.cloneElement(o,i)}return d.Children.count(o)>1?d.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Ca=Symbol("radix.slottable");function Fd(e){const t=({children:r})=>l.jsx(l.Fragment,{children:r});return t.displayName=`${e}.Slottable`,t.__radixId=Ca,t}function Vd(e){return d.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Ca}function Bd(e,t){const r={...t};for(const n in t){const o=e[n],s=t[n];/^on[A-Z]/.test(n)?o&&s?r[n]=(...i)=>{const c=s(...i);return o(...i),c}:o&&(r[n]=o):n==="style"?r[n]={...o,...s}:n==="className"&&(r[n]=[o,s].filter(Boolean).join(" "))}return{...e,...r}}function Wd(e){var n,o;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}function ro(e){const t=e+"CollectionProvider",[r,n]=Ne(t),[o,s]=r(t,{collectionRef:{current:null},itemMap:new Map}),a=g=>{const{scope:v,children:b}=g,x=S.useRef(null),C=S.useRef(new Map).current;return l.jsx(o,{scope:v,itemMap:C,collectionRef:x,children:b})};a.displayName=t;const i=e+"CollectionSlot",c=ft(i),u=S.forwardRef((g,v)=>{const{scope:b,children:x}=g,C=s(i,b),E=de(v,C.collectionRef);return l.jsx(c,{ref:E,children:x})});u.displayName=i;const f=e+"CollectionItemSlot",p="data-radix-collection-item",h=ft(f),m=S.forwardRef((g,v)=>{const{scope:b,children:x,...C}=g,E=S.useRef(null),R=de(v,E),j=s(f,b);return S.useEffect(()=>(j.itemMap.set(E,{ref:E,...C}),()=>void j.itemMap.delete(E))),l.jsx(h,{[p]:"",ref:R,children:x})});m.displayName=f;function w(g){const v=s(e+"CollectionConsumer",g);return S.useCallback(()=>{const x=v.collectionRef.current;if(!x)return[];const C=Array.from(x.querySelectorAll(`[${p}]`));return Array.from(v.itemMap.values()).sort((j,A)=>C.indexOf(j.ref.current)-C.indexOf(A.ref.current))},[v.collectionRef,v.itemMap])}return[{Provider:a,Slot:u,ItemSlot:m},w,n]}var zd=d.createContext(void 0);function Vr(e){const t=d.useContext(zd);return e||t||"ltr"}var Hd=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],K=Hd.reduce((e,t)=>{const r=ft(`Primitive.${t}`),n=d.forwardRef((o,s)=>{const{asChild:a,...i}=o,c=a?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),l.jsx(c,{...i,ref:s})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function Gd(e,t){e&&$r.flushSync(()=>e.dispatchEvent(t))}function et(e){const t=d.useRef(e);return d.useEffect(()=>{t.current=e}),d.useMemo(()=>(...r)=>{var n;return(n=t.current)==null?void 0:n.call(t,...r)},[])}function Ud(e,t=globalThis==null?void 0:globalThis.document){const r=et(e);d.useEffect(()=>{const n=o=>{o.key==="Escape"&&r(o)};return t.addEventListener("keydown",n,{capture:!0}),()=>t.removeEventListener("keydown",n,{capture:!0})},[r,t])}var Kd="DismissableLayer",Dn="dismissableLayer.update",Yd="dismissableLayer.pointerDownOutside",qd="dismissableLayer.focusOutside",xs,Sa=d.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),nr=d.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:a,onDismiss:i,...c}=e,u=d.useContext(Sa),[f,p]=d.useState(null),h=(f==null?void 0:f.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,m]=d.useState({}),w=de(t,A=>p(A)),g=Array.from(u.layers),[v]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),b=g.indexOf(v),x=f?g.indexOf(f):-1,C=u.layersWithOutsidePointerEventsDisabled.size>0,E=x>=b,R=Jd(A=>{const N=A.target,G=[...u.branches].some(Y=>Y.contains(N));!E||G||(o==null||o(A),a==null||a(A),A.defaultPrevented||i==null||i())},h),j=Qd(A=>{const N=A.target;[...u.branches].some(Y=>Y.contains(N))||(s==null||s(A),a==null||a(A),A.defaultPrevented||i==null||i())},h);return Ud(A=>{x===u.layers.size-1&&(n==null||n(A),!A.defaultPrevented&&i&&(A.preventDefault(),i()))},h),d.useEffect(()=>{if(f)return r&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(xs=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(f)),u.layers.add(f),bs(),()=>{r&&u.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=xs)}},[f,h,r,u]),d.useEffect(()=>()=>{f&&(u.layers.delete(f),u.layersWithOutsidePointerEventsDisabled.delete(f),bs())},[f,u]),d.useEffect(()=>{const A=()=>m({});return document.addEventListener(Dn,A),()=>document.removeEventListener(Dn,A)},[]),l.jsx(K.div,{...c,ref:w,style:{pointerEvents:C?E?"auto":"none":void 0,...e.style},onFocusCapture:J(e.onFocusCapture,j.onFocusCapture),onBlurCapture:J(e.onBlurCapture,j.onBlurCapture),onPointerDownCapture:J(e.onPointerDownCapture,R.onPointerDownCapture)})});nr.displayName=Kd;var Xd="DismissableLayerBranch",Zd=d.forwardRef((e,t)=>{const r=d.useContext(Sa),n=d.useRef(null),o=de(t,n);return d.useEffect(()=>{const s=n.current;if(s)return r.branches.add(s),()=>{r.branches.delete(s)}},[r.branches]),l.jsx(K.div,{...e,ref:o})});Zd.displayName=Xd;function Jd(e,t=globalThis==null?void 0:globalThis.document){const r=et(e),n=d.useRef(!1),o=d.useRef(()=>{});return d.useEffect(()=>{const s=i=>{if(i.target&&!n.current){let c=function(){Ea(Yd,r,u,{discrete:!0})};const u={originalEvent:i};i.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=c,t.addEventListener("click",o.current,{once:!0})):c()}else t.removeEventListener("click",o.current);n.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",s),t.removeEventListener("click",o.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function Qd(e,t=globalThis==null?void 0:globalThis.document){const r=et(e),n=d.useRef(!1);return d.useEffect(()=>{const o=s=>{s.target&&!n.current&&Ea(qd,r,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function bs(){const e=new CustomEvent(Dn);document.dispatchEvent(e)}function Ea(e,t,r,{discrete:n}){const o=r.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&o.addEventListener(e,t,{once:!0}),n?Gd(o,s):o.dispatchEvent(s)}var vn=0;function no(){d.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??ys()),document.body.insertAdjacentElement("beforeend",e[1]??ys()),vn++,()=>{vn===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),vn--}},[])}function ys(){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 xn="focusScope.autoFocusOnMount",bn="focusScope.autoFocusOnUnmount",ws={bubbles:!1,cancelable:!0},ef="FocusScope",Br=d.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:o,onUnmountAutoFocus:s,...a}=e,[i,c]=d.useState(null),u=et(o),f=et(s),p=d.useRef(null),h=de(t,g=>c(g)),m=d.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;d.useEffect(()=>{if(n){let g=function(C){if(m.paused||!i)return;const E=C.target;i.contains(E)?p.current=E:Qe(p.current,{select:!0})},v=function(C){if(m.paused||!i)return;const E=C.relatedTarget;E!==null&&(i.contains(E)||Qe(p.current,{select:!0}))},b=function(C){if(document.activeElement===document.body)for(const R of C)R.removedNodes.length>0&&Qe(i)};document.addEventListener("focusin",g),document.addEventListener("focusout",v);const x=new MutationObserver(b);return i&&x.observe(i,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",g),document.removeEventListener("focusout",v),x.disconnect()}}},[n,i,m.paused]),d.useEffect(()=>{if(i){Ss.add(m);const g=document.activeElement;if(!i.contains(g)){const b=new CustomEvent(xn,ws);i.addEventListener(xn,u),i.dispatchEvent(b),b.defaultPrevented||(tf(af(ka(i)),{select:!0}),document.activeElement===g&&Qe(i))}return()=>{i.removeEventListener(xn,u),setTimeout(()=>{const b=new CustomEvent(bn,ws);i.addEventListener(bn,f),i.dispatchEvent(b),b.defaultPrevented||Qe(g??document.body,{select:!0}),i.removeEventListener(bn,f),Ss.remove(m)},0)}}},[i,u,f,m]);const w=d.useCallback(g=>{if(!r&&!n||m.paused)return;const v=g.key==="Tab"&&!g.altKey&&!g.ctrlKey&&!g.metaKey,b=document.activeElement;if(v&&b){const x=g.currentTarget,[C,E]=rf(x);C&&E?!g.shiftKey&&b===E?(g.preventDefault(),r&&Qe(C,{select:!0})):g.shiftKey&&b===C&&(g.preventDefault(),r&&Qe(E,{select:!0})):b===x&&g.preventDefault()}},[r,n,m.paused]);return l.jsx(K.div,{tabIndex:-1,...a,ref:h,onKeyDown:w})});Br.displayName=ef;function tf(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(Qe(n,{select:t}),document.activeElement!==r)return}function rf(e){const t=ka(e),r=Cs(t,e),n=Cs(t.reverse(),e);return[r,n]}function ka(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const o=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||o?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function Cs(e,t){for(const r of e)if(!nf(r,{upTo:t}))return r}function nf(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 of(e){return e instanceof HTMLInputElement&&"select"in e}function Qe(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&of(e)&&t&&e.select()}}var Ss=sf();function sf(){let e=[];return{add(t){const r=e[0];t!==r&&(r==null||r.pause()),e=Es(e,t),e.unshift(t)},remove(t){var r;e=Es(e,t),(r=e[0])==null||r.resume()}}}function Es(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function af(e){return e.filter(t=>t.tagName!=="A")}var ve=globalThis!=null&&globalThis.document?d.useLayoutEffect:()=>{},lf=d[" useId ".trim().toString()]||(()=>{}),cf=0;function he(e){const[t,r]=d.useState(lf());return ve(()=>{r(n=>n??String(cf++))},[e]),t?`radix-${t}`:""}const uf=["top","right","bottom","left"],tt=Math.min,Se=Math.max,Pr=Math.round,hr=Math.floor,Be=e=>({x:e,y:e}),df={left:"right",right:"left",bottom:"top",top:"bottom"},ff={start:"end",end:"start"};function Ln(e,t,r){return Se(e,tt(t,r))}function Ke(e,t){return typeof e=="function"?e(t):e}function Ye(e){return e.split("-")[0]}function Ft(e){return e.split("-")[1]}function oo(e){return e==="x"?"y":"x"}function so(e){return e==="y"?"height":"width"}const pf=new Set(["top","bottom"]);function Ve(e){return pf.has(Ye(e))?"y":"x"}function ao(e){return oo(Ve(e))}function mf(e,t,r){r===void 0&&(r=!1);const n=Ft(e),o=ao(e),s=so(o);let a=o==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(a=Rr(a)),[a,Rr(a)]}function gf(e){const t=Rr(e);return[$n(e),t,$n(t)]}function $n(e){return e.replace(/start|end/g,t=>ff[t])}const ks=["left","right"],Ps=["right","left"],hf=["top","bottom"],vf=["bottom","top"];function xf(e,t,r){switch(e){case"top":case"bottom":return r?t?Ps:ks:t?ks:Ps;case"left":case"right":return t?hf:vf;default:return[]}}function bf(e,t,r,n){const o=Ft(e);let s=xf(Ye(e),r==="start",n);return o&&(s=s.map(a=>a+"-"+o),t&&(s=s.concat(s.map($n)))),s}function Rr(e){return e.replace(/left|right|bottom|top/g,t=>df[t])}function yf(e){return{top:0,right:0,bottom:0,left:0,...e}}function Pa(e){return typeof e!="number"?yf(e):{top:e,right:e,bottom:e,left:e}}function Nr(e){const{x:t,y:r,width:n,height:o}=e;return{width:n,height:o,top:r,left:t,right:t+n,bottom:r+o,x:t,y:r}}function Rs(e,t,r){let{reference:n,floating:o}=e;const s=Ve(t),a=ao(t),i=so(a),c=Ye(t),u=s==="y",f=n.x+n.width/2-o.width/2,p=n.y+n.height/2-o.height/2,h=n[i]/2-o[i]/2;let m;switch(c){case"top":m={x:f,y:n.y-o.height};break;case"bottom":m={x:f,y:n.y+n.height};break;case"right":m={x:n.x+n.width,y:p};break;case"left":m={x:n.x-o.width,y:p};break;default:m={x:n.x,y:n.y}}switch(Ft(t)){case"start":m[a]-=h*(r&&u?-1:1);break;case"end":m[a]+=h*(r&&u?-1:1);break}return m}const wf=async(e,t,r)=>{const{placement:n="bottom",strategy:o="absolute",middleware:s=[],platform:a}=r,i=s.filter(Boolean),c=await(a.isRTL==null?void 0:a.isRTL(t));let u=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:f,y:p}=Rs(u,n,c),h=n,m={},w=0;for(let g=0;g<i.length;g++){const{name:v,fn:b}=i[g],{x,y:C,data:E,reset:R}=await b({x:f,y:p,initialPlacement:n,placement:h,strategy:o,middlewareData:m,rects:u,platform:a,elements:{reference:e,floating:t}});f=x??f,p=C??p,m={...m,[v]:{...m[v],...E}},R&&w<=50&&(w++,typeof R=="object"&&(R.placement&&(h=R.placement),R.rects&&(u=R.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:o}):R.rects),{x:f,y:p}=Rs(u,h,c)),g=-1)}return{x:f,y:p,placement:h,strategy:o,middlewareData:m}};async function Qt(e,t){var r;t===void 0&&(t={});const{x:n,y:o,platform:s,rects:a,elements:i,strategy:c}=e,{boundary:u="clippingAncestors",rootBoundary:f="viewport",elementContext:p="floating",altBoundary:h=!1,padding:m=0}=Ke(t,e),w=Pa(m),v=i[h?p==="floating"?"reference":"floating":p],b=Nr(await s.getClippingRect({element:(r=await(s.isElement==null?void 0:s.isElement(v)))==null||r?v:v.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(i.floating)),boundary:u,rootBoundary:f,strategy:c})),x=p==="floating"?{x:n,y:o,width:a.floating.width,height:a.floating.height}:a.reference,C=await(s.getOffsetParent==null?void 0:s.getOffsetParent(i.floating)),E=await(s.isElement==null?void 0:s.isElement(C))?await(s.getScale==null?void 0:s.getScale(C))||{x:1,y:1}:{x:1,y:1},R=Nr(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:i,rect:x,offsetParent:C,strategy:c}):x);return{top:(b.top-R.top+w.top)/E.y,bottom:(R.bottom-b.bottom+w.bottom)/E.y,left:(b.left-R.left+w.left)/E.x,right:(R.right-b.right+w.right)/E.x}}const Cf=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:n,placement:o,rects:s,platform:a,elements:i,middlewareData:c}=t,{element:u,padding:f=0}=Ke(e,t)||{};if(u==null)return{};const p=Pa(f),h={x:r,y:n},m=ao(o),w=so(m),g=await a.getDimensions(u),v=m==="y",b=v?"top":"left",x=v?"bottom":"right",C=v?"clientHeight":"clientWidth",E=s.reference[w]+s.reference[m]-h[m]-s.floating[w],R=h[m]-s.reference[m],j=await(a.getOffsetParent==null?void 0:a.getOffsetParent(u));let A=j?j[C]:0;(!A||!await(a.isElement==null?void 0:a.isElement(j)))&&(A=i.floating[C]||s.floating[w]);const N=E/2-R/2,G=A/2-g[w]/2-1,Y=tt(p[b],G),ee=tt(p[x],G),Q=Y,q=A-g[w]-ee,W=A/2-g[w]/2+N,M=Ln(Q,W,q),T=!c.arrow&&Ft(o)!=null&&W!==M&&s.reference[w]/2-(W<Q?Y:ee)-g[w]/2<0,D=T?W<Q?W-Q:W-q:0;return{[m]:h[m]+D,data:{[m]:M,centerOffset:W-M-D,...T&&{alignmentOffset:D}},reset:T}}}),Sf=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,n;const{placement:o,middlewareData:s,rects:a,initialPlacement:i,platform:c,elements:u}=t,{mainAxis:f=!0,crossAxis:p=!0,fallbackPlacements:h,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:w="none",flipAlignment:g=!0,...v}=Ke(e,t);if((r=s.arrow)!=null&&r.alignmentOffset)return{};const b=Ye(o),x=Ve(i),C=Ye(i)===i,E=await(c.isRTL==null?void 0:c.isRTL(u.floating)),R=h||(C||!g?[Rr(i)]:gf(i)),j=w!=="none";!h&&j&&R.push(...bf(i,g,w,E));const A=[i,...R],N=await Qt(t,v),G=[];let Y=((n=s.flip)==null?void 0:n.overflows)||[];if(f&&G.push(N[b]),p){const W=mf(o,a,E);G.push(N[W[0]],N[W[1]])}if(Y=[...Y,{placement:o,overflows:G}],!G.every(W=>W<=0)){var ee,Q;const W=(((ee=s.flip)==null?void 0:ee.index)||0)+1,M=A[W];if(M&&(!(p==="alignment"?x!==Ve(M):!1)||Y.every(k=>Ve(k.placement)===x?k.overflows[0]>0:!0)))return{data:{index:W,overflows:Y},reset:{placement:M}};let T=(Q=Y.filter(D=>D.overflows[0]<=0).sort((D,k)=>D.overflows[1]-k.overflows[1])[0])==null?void 0:Q.placement;if(!T)switch(m){case"bestFit":{var q;const D=(q=Y.filter(k=>{if(j){const H=Ve(k.placement);return H===x||H==="y"}return!0}).map(k=>[k.placement,k.overflows.filter(H=>H>0).reduce((H,U)=>H+U,0)]).sort((k,H)=>k[1]-H[1])[0])==null?void 0:q[0];D&&(T=D);break}case"initialPlacement":T=i;break}if(o!==T)return{reset:{placement:T}}}return{}}}};function Ns(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Ts(e){return uf.some(t=>e[t]>=0)}const Ef=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r}=t,{strategy:n="referenceHidden",...o}=Ke(e,t);switch(n){case"referenceHidden":{const s=await Qt(t,{...o,elementContext:"reference"}),a=Ns(s,r.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:Ts(a)}}}case"escaped":{const s=await Qt(t,{...o,altBoundary:!0}),a=Ns(s,r.floating);return{data:{escapedOffsets:a,escaped:Ts(a)}}}default:return{}}}}},Ra=new Set(["left","top"]);async function kf(e,t){const{placement:r,platform:n,elements:o}=e,s=await(n.isRTL==null?void 0:n.isRTL(o.floating)),a=Ye(r),i=Ft(r),c=Ve(r)==="y",u=Ra.has(a)?-1:1,f=s&&c?-1:1,p=Ke(t,e);let{mainAxis:h,crossAxis:m,alignmentAxis:w}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return i&&typeof w=="number"&&(m=i==="end"?w*-1:w),c?{x:m*f,y:h*u}:{x:h*u,y:m*f}}const Pf=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,n;const{x:o,y:s,placement:a,middlewareData:i}=t,c=await kf(t,e);return a===((r=i.offset)==null?void 0:r.placement)&&(n=i.arrow)!=null&&n.alignmentOffset?{}:{x:o+c.x,y:s+c.y,data:{...c,placement:a}}}}},Rf=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:o}=t,{mainAxis:s=!0,crossAxis:a=!1,limiter:i={fn:v=>{let{x:b,y:x}=v;return{x:b,y:x}}},...c}=Ke(e,t),u={x:r,y:n},f=await Qt(t,c),p=Ve(Ye(o)),h=oo(p);let m=u[h],w=u[p];if(s){const v=h==="y"?"top":"left",b=h==="y"?"bottom":"right",x=m+f[v],C=m-f[b];m=Ln(x,m,C)}if(a){const v=p==="y"?"top":"left",b=p==="y"?"bottom":"right",x=w+f[v],C=w-f[b];w=Ln(x,w,C)}const g=i.fn({...t,[h]:m,[p]:w});return{...g,data:{x:g.x-r,y:g.y-n,enabled:{[h]:s,[p]:a}}}}}},Nf=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:r,y:n,placement:o,rects:s,middlewareData:a}=t,{offset:i=0,mainAxis:c=!0,crossAxis:u=!0}=Ke(e,t),f={x:r,y:n},p=Ve(o),h=oo(p);let m=f[h],w=f[p];const g=Ke(i,t),v=typeof g=="number"?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(c){const C=h==="y"?"height":"width",E=s.reference[h]-s.floating[C]+v.mainAxis,R=s.reference[h]+s.reference[C]-v.mainAxis;m<E?m=E:m>R&&(m=R)}if(u){var b,x;const C=h==="y"?"width":"height",E=Ra.has(Ye(o)),R=s.reference[p]-s.floating[C]+(E&&((b=a.offset)==null?void 0:b[p])||0)+(E?0:v.crossAxis),j=s.reference[p]+s.reference[C]+(E?0:((x=a.offset)==null?void 0:x[p])||0)-(E?v.crossAxis:0);w<R?w=R:w>j&&(w=j)}return{[h]:m,[p]:w}}}},Tf=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var r,n;const{placement:o,rects:s,platform:a,elements:i}=t,{apply:c=()=>{},...u}=Ke(e,t),f=await Qt(t,u),p=Ye(o),h=Ft(o),m=Ve(o)==="y",{width:w,height:g}=s.floating;let v,b;p==="top"||p==="bottom"?(v=p,b=h===(await(a.isRTL==null?void 0:a.isRTL(i.floating))?"start":"end")?"left":"right"):(b=p,v=h==="end"?"top":"bottom");const x=g-f.top-f.bottom,C=w-f.left-f.right,E=tt(g-f[v],x),R=tt(w-f[b],C),j=!t.middlewareData.shift;let A=E,N=R;if((r=t.middlewareData.shift)!=null&&r.enabled.x&&(N=C),(n=t.middlewareData.shift)!=null&&n.enabled.y&&(A=x),j&&!h){const Y=Se(f.left,0),ee=Se(f.right,0),Q=Se(f.top,0),q=Se(f.bottom,0);m?N=w-2*(Y!==0||ee!==0?Y+ee:Se(f.left,f.right)):A=g-2*(Q!==0||q!==0?Q+q:Se(f.top,f.bottom))}await c({...t,availableWidth:N,availableHeight:A});const G=await a.getDimensions(i.floating);return w!==G.width||g!==G.height?{reset:{rects:!0}}:{}}}};function Wr(){return typeof window<"u"}function Vt(e){return Na(e)?(e.nodeName||"").toLowerCase():"#document"}function Ee(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ze(e){var t;return(t=(Na(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Na(e){return Wr()?e instanceof Node||e instanceof Ee(e).Node:!1}function Ae(e){return Wr()?e instanceof Element||e instanceof Ee(e).Element:!1}function We(e){return Wr()?e instanceof HTMLElement||e instanceof Ee(e).HTMLElement:!1}function js(e){return!Wr()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Ee(e).ShadowRoot}const jf=new Set(["inline","contents"]);function or(e){const{overflow:t,overflowX:r,overflowY:n,display:o}=_e(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!jf.has(o)}const Af=new Set(["table","td","th"]);function _f(e){return Af.has(Vt(e))}const If=[":popover-open",":modal"];function zr(e){return If.some(t=>{try{return e.matches(t)}catch{return!1}})}const Of=["transform","translate","scale","rotate","perspective"],Mf=["transform","translate","scale","rotate","perspective","filter"],Df=["paint","layout","strict","content"];function io(e){const t=lo(),r=Ae(e)?_e(e):e;return Of.some(n=>r[n]?r[n]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(r.filter?r.filter!=="none":!1)||Mf.some(n=>(r.willChange||"").includes(n))||Df.some(n=>(r.contain||"").includes(n))}function Lf(e){let t=rt(e);for(;We(t)&&!Ot(t);){if(io(t))return t;if(zr(t))return null;t=rt(t)}return null}function lo(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const $f=new Set(["html","body","#document"]);function Ot(e){return $f.has(Vt(e))}function _e(e){return Ee(e).getComputedStyle(e)}function Hr(e){return Ae(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function rt(e){if(Vt(e)==="html")return e;const t=e.assignedSlot||e.parentNode||js(e)&&e.host||ze(e);return js(t)?t.host:t}function Ta(e){const t=rt(e);return Ot(t)?e.ownerDocument?e.ownerDocument.body:e.body:We(t)&&or(t)?t:Ta(t)}function er(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);const o=Ta(e),s=o===((n=e.ownerDocument)==null?void 0:n.body),a=Ee(o);if(s){const i=Fn(a);return t.concat(a,a.visualViewport||[],or(o)?o:[],i&&r?er(i):[])}return t.concat(o,er(o,[],r))}function Fn(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function ja(e){const t=_e(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const o=We(e),s=o?e.offsetWidth:r,a=o?e.offsetHeight:n,i=Pr(r)!==s||Pr(n)!==a;return i&&(r=s,n=a),{width:r,height:n,$:i}}function co(e){return Ae(e)?e:e.contextElement}function At(e){const t=co(e);if(!We(t))return Be(1);const r=t.getBoundingClientRect(),{width:n,height:o,$:s}=ja(t);let a=(s?Pr(r.width):r.width)/n,i=(s?Pr(r.height):r.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!i||!Number.isFinite(i))&&(i=1),{x:a,y:i}}const Ff=Be(0);function Aa(e){const t=Ee(e);return!lo()||!t.visualViewport?Ff:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Vf(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==Ee(e)?!1:t}function pt(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);const o=e.getBoundingClientRect(),s=co(e);let a=Be(1);t&&(n?Ae(n)&&(a=At(n)):a=At(e));const i=Vf(s,r,n)?Aa(s):Be(0);let c=(o.left+i.x)/a.x,u=(o.top+i.y)/a.y,f=o.width/a.x,p=o.height/a.y;if(s){const h=Ee(s),m=n&&Ae(n)?Ee(n):n;let w=h,g=Fn(w);for(;g&&n&&m!==w;){const v=At(g),b=g.getBoundingClientRect(),x=_e(g),C=b.left+(g.clientLeft+parseFloat(x.paddingLeft))*v.x,E=b.top+(g.clientTop+parseFloat(x.paddingTop))*v.y;c*=v.x,u*=v.y,f*=v.x,p*=v.y,c+=C,u+=E,w=Ee(g),g=Fn(w)}}return Nr({width:f,height:p,x:c,y:u})}function Gr(e,t){const r=Hr(e).scrollLeft;return t?t.left+r:pt(ze(e)).left+r}function _a(e,t){const r=e.getBoundingClientRect(),n=r.left+t.scrollLeft-Gr(e,r),o=r.top+t.scrollTop;return{x:n,y:o}}function Bf(e){let{elements:t,rect:r,offsetParent:n,strategy:o}=e;const s=o==="fixed",a=ze(n),i=t?zr(t.floating):!1;if(n===a||i&&s)return r;let c={scrollLeft:0,scrollTop:0},u=Be(1);const f=Be(0),p=We(n);if((p||!p&&!s)&&((Vt(n)!=="body"||or(a))&&(c=Hr(n)),We(n))){const m=pt(n);u=At(n),f.x=m.x+n.clientLeft,f.y=m.y+n.clientTop}const h=a&&!p&&!s?_a(a,c):Be(0);return{width:r.width*u.x,height:r.height*u.y,x:r.x*u.x-c.scrollLeft*u.x+f.x+h.x,y:r.y*u.y-c.scrollTop*u.y+f.y+h.y}}function Wf(e){return Array.from(e.getClientRects())}function zf(e){const t=ze(e),r=Hr(e),n=e.ownerDocument.body,o=Se(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),s=Se(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let a=-r.scrollLeft+Gr(e);const i=-r.scrollTop;return _e(n).direction==="rtl"&&(a+=Se(t.clientWidth,n.clientWidth)-o),{width:o,height:s,x:a,y:i}}const As=25;function Hf(e,t){const r=Ee(e),n=ze(e),o=r.visualViewport;let s=n.clientWidth,a=n.clientHeight,i=0,c=0;if(o){s=o.width,a=o.height;const f=lo();(!f||f&&t==="fixed")&&(i=o.offsetLeft,c=o.offsetTop)}const u=Gr(n);if(u<=0){const f=n.ownerDocument,p=f.body,h=getComputedStyle(p),m=f.compatMode==="CSS1Compat"&&parseFloat(h.marginLeft)+parseFloat(h.marginRight)||0,w=Math.abs(n.clientWidth-p.clientWidth-m);w<=As&&(s-=w)}else u<=As&&(s+=u);return{width:s,height:a,x:i,y:c}}const Gf=new Set(["absolute","fixed"]);function Uf(e,t){const r=pt(e,!0,t==="fixed"),n=r.top+e.clientTop,o=r.left+e.clientLeft,s=We(e)?At(e):Be(1),a=e.clientWidth*s.x,i=e.clientHeight*s.y,c=o*s.x,u=n*s.y;return{width:a,height:i,x:c,y:u}}function _s(e,t,r){let n;if(t==="viewport")n=Hf(e,r);else if(t==="document")n=zf(ze(e));else if(Ae(t))n=Uf(t,r);else{const o=Aa(e);n={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Nr(n)}function Ia(e,t){const r=rt(e);return r===t||!Ae(r)||Ot(r)?!1:_e(r).position==="fixed"||Ia(r,t)}function Kf(e,t){const r=t.get(e);if(r)return r;let n=er(e,[],!1).filter(i=>Ae(i)&&Vt(i)!=="body"),o=null;const s=_e(e).position==="fixed";let a=s?rt(e):e;for(;Ae(a)&&!Ot(a);){const i=_e(a),c=io(a);!c&&i.position==="fixed"&&(o=null),(s?!c&&!o:!c&&i.position==="static"&&!!o&&Gf.has(o.position)||or(a)&&!c&&Ia(e,a))?n=n.filter(f=>f!==a):o=i,a=rt(a)}return t.set(e,n),n}function Yf(e){let{element:t,boundary:r,rootBoundary:n,strategy:o}=e;const a=[...r==="clippingAncestors"?zr(t)?[]:Kf(t,this._c):[].concat(r),n],i=a[0],c=a.reduce((u,f)=>{const p=_s(t,f,o);return u.top=Se(p.top,u.top),u.right=tt(p.right,u.right),u.bottom=tt(p.bottom,u.bottom),u.left=Se(p.left,u.left),u},_s(t,i,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function qf(e){const{width:t,height:r}=ja(e);return{width:t,height:r}}function Xf(e,t,r){const n=We(t),o=ze(t),s=r==="fixed",a=pt(e,!0,s,t);let i={scrollLeft:0,scrollTop:0};const c=Be(0);function u(){c.x=Gr(o)}if(n||!n&&!s)if((Vt(t)!=="body"||or(o))&&(i=Hr(t)),n){const m=pt(t,!0,s,t);c.x=m.x+t.clientLeft,c.y=m.y+t.clientTop}else o&&u();s&&!n&&o&&u();const f=o&&!n&&!s?_a(o,i):Be(0),p=a.left+i.scrollLeft-c.x-f.x,h=a.top+i.scrollTop-c.y-f.y;return{x:p,y:h,width:a.width,height:a.height}}function yn(e){return _e(e).position==="static"}function Is(e,t){if(!We(e)||_e(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return ze(e)===r&&(r=r.ownerDocument.body),r}function Oa(e,t){const r=Ee(e);if(zr(e))return r;if(!We(e)){let o=rt(e);for(;o&&!Ot(o);){if(Ae(o)&&!yn(o))return o;o=rt(o)}return r}let n=Is(e,t);for(;n&&_f(n)&&yn(n);)n=Is(n,t);return n&&Ot(n)&&yn(n)&&!io(n)?r:n||Lf(e)||r}const Zf=async function(e){const t=this.getOffsetParent||Oa,r=this.getDimensions,n=await r(e.floating);return{reference:Xf(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function Jf(e){return _e(e).direction==="rtl"}const Qf={convertOffsetParentRelativeRectToViewportRelativeRect:Bf,getDocumentElement:ze,getClippingRect:Yf,getOffsetParent:Oa,getElementRects:Zf,getClientRects:Wf,getDimensions:qf,getScale:At,isElement:Ae,isRTL:Jf};function Ma(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function ep(e,t){let r=null,n;const o=ze(e);function s(){var i;clearTimeout(n),(i=r)==null||i.disconnect(),r=null}function a(i,c){i===void 0&&(i=!1),c===void 0&&(c=1),s();const u=e.getBoundingClientRect(),{left:f,top:p,width:h,height:m}=u;if(i||t(),!h||!m)return;const w=hr(p),g=hr(o.clientWidth-(f+h)),v=hr(o.clientHeight-(p+m)),b=hr(f),C={rootMargin:-w+"px "+-g+"px "+-v+"px "+-b+"px",threshold:Se(0,tt(1,c))||1};let E=!0;function R(j){const A=j[0].intersectionRatio;if(A!==c){if(!E)return a();A?a(!1,A):n=setTimeout(()=>{a(!1,1e-7)},1e3)}A===1&&!Ma(u,e.getBoundingClientRect())&&a(),E=!1}try{r=new IntersectionObserver(R,{...C,root:o.ownerDocument})}catch{r=new IntersectionObserver(R,C)}r.observe(e)}return a(!0),s}function tp(e,t,r,n){n===void 0&&(n={});const{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:i=typeof IntersectionObserver=="function",animationFrame:c=!1}=n,u=co(e),f=o||s?[...u?er(u):[],...er(t)]:[];f.forEach(b=>{o&&b.addEventListener("scroll",r,{passive:!0}),s&&b.addEventListener("resize",r)});const p=u&&i?ep(u,r):null;let h=-1,m=null;a&&(m=new ResizeObserver(b=>{let[x]=b;x&&x.target===u&&m&&(m.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var C;(C=m)==null||C.observe(t)})),r()}),u&&!c&&m.observe(u),m.observe(t));let w,g=c?pt(e):null;c&&v();function v(){const b=pt(e);g&&!Ma(g,b)&&r(),g=b,w=requestAnimationFrame(v)}return r(),()=>{var b;f.forEach(x=>{o&&x.removeEventListener("scroll",r),s&&x.removeEventListener("resize",r)}),p==null||p(),(b=m)==null||b.disconnect(),m=null,c&&cancelAnimationFrame(w)}}const rp=Pf,np=Rf,op=Sf,sp=Tf,ap=Ef,Os=Cf,ip=Nf,lp=(e,t,r)=>{const n=new Map,o={platform:Qf,...r},s={...o.platform,_c:n};return wf(e,t,{...o,platform:s})};var cp=typeof document<"u",up=function(){},Cr=cp?S.useLayoutEffect:up;function Tr(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let r,n,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(r=e.length,r!==t.length)return!1;for(n=r;n--!==0;)if(!Tr(e[n],t[n]))return!1;return!0}if(o=Object.keys(e),r=o.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!{}.hasOwnProperty.call(t,o[n]))return!1;for(n=r;n--!==0;){const s=o[n];if(!(s==="_owner"&&e.$$typeof)&&!Tr(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function Da(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Ms(e,t){const r=Da(e);return Math.round(t*r)/r}function wn(e){const t=d.useRef(e);return Cr(()=>{t.current=e}),t}function dp(e){e===void 0&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:n=[],platform:o,elements:{reference:s,floating:a}={},transform:i=!0,whileElementsMounted:c,open:u}=e,[f,p]=d.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[h,m]=d.useState(n);Tr(h,n)||m(n);const[w,g]=d.useState(null),[v,b]=d.useState(null),x=d.useCallback(k=>{k!==j.current&&(j.current=k,g(k))},[]),C=d.useCallback(k=>{k!==A.current&&(A.current=k,b(k))},[]),E=s||w,R=a||v,j=d.useRef(null),A=d.useRef(null),N=d.useRef(f),G=c!=null,Y=wn(c),ee=wn(o),Q=wn(u),q=d.useCallback(()=>{if(!j.current||!A.current)return;const k={placement:t,strategy:r,middleware:h};ee.current&&(k.platform=ee.current),lp(j.current,A.current,k).then(H=>{const U={...H,isPositioned:Q.current!==!1};W.current&&!Tr(N.current,U)&&(N.current=U,$r.flushSync(()=>{p(U)}))})},[h,t,r,ee,Q]);Cr(()=>{u===!1&&N.current.isPositioned&&(N.current.isPositioned=!1,p(k=>({...k,isPositioned:!1})))},[u]);const W=d.useRef(!1);Cr(()=>(W.current=!0,()=>{W.current=!1}),[]),Cr(()=>{if(E&&(j.current=E),R&&(A.current=R),E&&R){if(Y.current)return Y.current(E,R,q);q()}},[E,R,q,Y,G]);const M=d.useMemo(()=>({reference:j,floating:A,setReference:x,setFloating:C}),[x,C]),T=d.useMemo(()=>({reference:E,floating:R}),[E,R]),D=d.useMemo(()=>{const k={position:r,left:0,top:0};if(!T.floating)return k;const H=Ms(T.floating,f.x),U=Ms(T.floating,f.y);return i?{...k,transform:"translate("+H+"px, "+U+"px)",...Da(T.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:H,top:U}},[r,i,T.floating,f.x,f.y]);return d.useMemo(()=>({...f,update:q,refs:M,elements:T,floatingStyles:D}),[f,q,M,T,D])}const fp=e=>{function t(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:e,fn(r){const{element:n,padding:o}=typeof e=="function"?e(r):e;return n&&t(n)?n.current!=null?Os({element:n.current,padding:o}).fn(r):{}:n?Os({element:n,padding:o}).fn(r):{}}}},pp=(e,t)=>({...rp(e),options:[e,t]}),mp=(e,t)=>({...np(e),options:[e,t]}),gp=(e,t)=>({...ip(e),options:[e,t]}),hp=(e,t)=>({...op(e),options:[e,t]}),vp=(e,t)=>({...sp(e),options:[e,t]}),xp=(e,t)=>({...ap(e),options:[e,t]}),bp=(e,t)=>({...fp(e),options:[e,t]});var yp="Arrow",La=d.forwardRef((e,t)=>{const{children:r,width:n=10,height:o=5,...s}=e;return l.jsx(K.svg,{...s,ref:t,width:n,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:l.jsx("polygon",{points:"0,0 30,0 15,10"})})});La.displayName=yp;var wp=La;function $a(e){const[t,r]=d.useState(void 0);return ve(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const n=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const s=o[0];let a,i;if("borderBoxSize"in s){const c=s.borderBoxSize,u=Array.isArray(c)?c[0]:c;a=u.inlineSize,i=u.blockSize}else a=e.offsetWidth,i=e.offsetHeight;r({width:a,height:i})});return n.observe(e,{box:"border-box"}),()=>n.unobserve(e)}else r(void 0)},[e]),t}var uo="Popper",[Fa,Bt]=Ne(uo),[Cp,Va]=Fa(uo),Ba=e=>{const{__scopePopper:t,children:r}=e,[n,o]=d.useState(null);return l.jsx(Cp,{scope:t,anchor:n,onAnchorChange:o,children:r})};Ba.displayName=uo;var Wa="PopperAnchor",za=d.forwardRef((e,t)=>{const{__scopePopper:r,virtualRef:n,...o}=e,s=Va(Wa,r),a=d.useRef(null),i=de(t,a),c=d.useRef(null);return d.useEffect(()=>{const u=c.current;c.current=(n==null?void 0:n.current)||a.current,u!==c.current&&s.onAnchorChange(c.current)}),n?null:l.jsx(K.div,{...o,ref:i})});za.displayName=Wa;var fo="PopperContent",[Sp,Ep]=Fa(fo),Ha=d.forwardRef((e,t)=>{var O,X,ne,oe,le,ae;const{__scopePopper:r,side:n="bottom",sideOffset:o=0,align:s="center",alignOffset:a=0,arrowPadding:i=0,avoidCollisions:c=!0,collisionBoundary:u=[],collisionPadding:f=0,sticky:p="partial",hideWhenDetached:h=!1,updatePositionStrategy:m="optimized",onPlaced:w,...g}=e,v=Va(fo,r),[b,x]=d.useState(null),C=de(t,xe=>x(xe)),[E,R]=d.useState(null),j=$a(E),A=(j==null?void 0:j.width)??0,N=(j==null?void 0:j.height)??0,G=n+(s!=="center"?"-"+s:""),Y=typeof f=="number"?f:{top:0,right:0,bottom:0,left:0,...f},ee=Array.isArray(u)?u:[u],Q=ee.length>0,q={padding:Y,boundary:ee.filter(Pp),altBoundary:Q},{refs:W,floatingStyles:M,placement:T,isPositioned:D,middlewareData:k}=dp({strategy:"fixed",placement:G,whileElementsMounted:(...xe)=>tp(...xe,{animationFrame:m==="always"}),elements:{reference:v.anchor},middleware:[pp({mainAxis:o+N,alignmentAxis:a}),c&&mp({mainAxis:!0,crossAxis:!1,limiter:p==="partial"?gp():void 0,...q}),c&&hp({...q}),vp({...q,apply:({elements:xe,rects:Pe,availableWidth:De,availableHeight:Te})=>{const{width:Ze,height:fr}=Pe.reference,Ge=xe.floating.style;Ge.setProperty("--radix-popper-available-width",`${De}px`),Ge.setProperty("--radix-popper-available-height",`${Te}px`),Ge.setProperty("--radix-popper-anchor-width",`${Ze}px`),Ge.setProperty("--radix-popper-anchor-height",`${fr}px`)}}),E&&bp({element:E,padding:i}),Rp({arrowWidth:A,arrowHeight:N}),h&&xp({strategy:"referenceHidden",...q})]}),[H,U]=Ka(T),re=et(w);ve(()=>{D&&(re==null||re())},[D,re]);const P=(O=k.arrow)==null?void 0:O.x,$=(X=k.arrow)==null?void 0:X.y,z=((ne=k.arrow)==null?void 0:ne.centerOffset)!==0,[F,te]=d.useState();return ve(()=>{b&&te(window.getComputedStyle(b).zIndex)},[b]),l.jsx("div",{ref:W.setFloating,"data-radix-popper-content-wrapper":"",style:{...M,transform:D?M.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:F,"--radix-popper-transform-origin":[(oe=k.transformOrigin)==null?void 0:oe.x,(le=k.transformOrigin)==null?void 0:le.y].join(" "),...((ae=k.hide)==null?void 0:ae.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:l.jsx(Sp,{scope:r,placedSide:H,onArrowChange:R,arrowX:P,arrowY:$,shouldHideArrow:z,children:l.jsx(K.div,{"data-side":H,"data-align":U,...g,ref:C,style:{...g.style,animation:D?void 0:"none"}})})})});Ha.displayName=fo;var Ga="PopperArrow",kp={top:"bottom",right:"left",bottom:"top",left:"right"},Ua=d.forwardRef(function(t,r){const{__scopePopper:n,...o}=t,s=Ep(Ga,n),a=kp[s.placedSide];return l.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:l.jsx(wp,{...o,ref:r,style:{...o.style,display:"block"}})})});Ua.displayName=Ga;function Pp(e){return e!==null}var Rp=e=>({name:"transformOrigin",options:e,fn(t){var v,b,x;const{placement:r,rects:n,middlewareData:o}=t,a=((v=o.arrow)==null?void 0:v.centerOffset)!==0,i=a?0:e.arrowWidth,c=a?0:e.arrowHeight,[u,f]=Ka(r),p={start:"0%",center:"50%",end:"100%"}[f],h=(((b=o.arrow)==null?void 0:b.x)??0)+i/2,m=(((x=o.arrow)==null?void 0:x.y)??0)+c/2;let w="",g="";return u==="bottom"?(w=a?p:`${h}px`,g=`${-c}px`):u==="top"?(w=a?p:`${h}px`,g=`${n.floating.height+c}px`):u==="right"?(w=`${-c}px`,g=a?p:`${m}px`):u==="left"&&(w=`${n.floating.width+c}px`,g=a?p:`${m}px`),{data:{x:w,y:g}}}});function Ka(e){const[t,r="center"]=e.split("-");return[t,r]}var po=Ba,Ur=za,mo=Ha,go=Ua,Np="Portal",sr=d.forwardRef((e,t)=>{var i;const{container:r,...n}=e,[o,s]=d.useState(!1);ve(()=>s(!0),[]);const a=r||o&&((i=globalThis==null?void 0:globalThis.document)==null?void 0:i.body);return a?rr.createPortal(l.jsx(K.div,{...n,ref:t}),a):null});sr.displayName=Np;var Tp=d[" useInsertionEffect ".trim().toString()]||ve;function ke({prop:e,defaultProp:t,onChange:r=()=>{},caller:n}){const[o,s,a]=jp({defaultProp:t,onChange:r}),i=e!==void 0,c=i?e:o;{const f=d.useRef(e!==void 0);d.useEffect(()=>{const p=f.current;p!==i&&console.warn(`${n} is changing from ${p?"controlled":"uncontrolled"} to ${i?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),f.current=i},[i,n])}const u=d.useCallback(f=>{var p;if(i){const h=Ap(f)?f(e):f;h!==e&&((p=a.current)==null||p.call(a,h))}else s(f)},[i,e,s,a]);return[c,u]}function jp({defaultProp:e,onChange:t}){const[r,n]=d.useState(e),o=d.useRef(r),s=d.useRef(t);return Tp(()=>{s.current=t},[t]),d.useEffect(()=>{var a;o.current!==r&&((a=s.current)==null||a.call(s,r),o.current=r)},[r,o]),[r,n,s]}function Ap(e){return typeof e=="function"}function Ya(e){const t=d.useRef({value:e,previous:e});return d.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var qa=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"}),_p="VisuallyHidden",Xa=d.forwardRef((e,t)=>l.jsx(K.span,{...e,ref:t,style:{...qa,...e.style}}));Xa.displayName=_p;var Ip=Xa,Op=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},St=new WeakMap,vr=new WeakMap,xr={},Cn=0,Za=function(e){return e&&(e.host||Za(e.parentNode))},Mp=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=Za(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},Dp=function(e,t,r,n){var o=Mp(t,Array.isArray(e)?e:[e]);xr[r]||(xr[r]=new WeakMap);var s=xr[r],a=[],i=new Set,c=new Set(o),u=function(p){!p||i.has(p)||(i.add(p),u(p.parentNode))};o.forEach(u);var f=function(p){!p||c.has(p)||Array.prototype.forEach.call(p.children,function(h){if(i.has(h))f(h);else try{var m=h.getAttribute(n),w=m!==null&&m!=="false",g=(St.get(h)||0)+1,v=(s.get(h)||0)+1;St.set(h,g),s.set(h,v),a.push(h),g===1&&w&&vr.set(h,!0),v===1&&h.setAttribute(r,"true"),w||h.setAttribute(n,"true")}catch(b){console.error("aria-hidden: cannot operate on ",h,b)}})};return f(t),i.clear(),Cn++,function(){a.forEach(function(p){var h=St.get(p)-1,m=s.get(p)-1;St.set(p,h),s.set(p,m),h||(vr.has(p)||p.removeAttribute(n),vr.delete(p)),m||p.removeAttribute(r)}),Cn--,Cn||(St=new WeakMap,St=new WeakMap,vr=new WeakMap,xr={})}},ho=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=Op(e);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live], script"))),Dp(n,o,r,"aria-hidden")):function(){return null}},Fe=function(){return Fe=Object.assign||function(t){for(var r,n=1,o=arguments.length;n<o;n++){r=arguments[n];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(t[s]=r[s])}return t},Fe.apply(this,arguments)};function Ja(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}function Lp(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,s;n<o;n++)(s||!(n in t))&&(s||(s=Array.prototype.slice.call(t,0,n)),s[n]=t[n]);return e.concat(s||Array.prototype.slice.call(t))}var Sr="right-scroll-bar-position",Er="width-before-scroll-bar",$p="with-scroll-bars-hidden",Fp="--removed-body-scroll-bar-size";function Sn(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Vp(e,t){var r=S.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(n){var o=r.value;o!==n&&(r.value=n,r.callback(n,o))}}}})[0];return r.callback=t,r.facade}var Bp=typeof window<"u"?d.useLayoutEffect:d.useEffect,Ds=new WeakMap;function Wp(e,t){var r=Vp(null,function(n){return e.forEach(function(o){return Sn(o,n)})});return Bp(function(){var n=Ds.get(r);if(n){var o=new Set(n),s=new Set(e),a=r.current;o.forEach(function(i){s.has(i)||Sn(i,null)}),s.forEach(function(i){o.has(i)||Sn(i,a)})}Ds.set(r,e)},[e]),r}function zp(e){return e}function Hp(e,t){t===void 0&&(t=zp);var r=[],n=!1,o={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(s){var a=t(s,n);return r.push(a),function(){r=r.filter(function(i){return i!==a})}},assignSyncMedium:function(s){for(n=!0;r.length;){var a=r;r=[],a.forEach(s)}r={push:function(i){return s(i)},filter:function(){return r}}},assignMedium:function(s){n=!0;var a=[];if(r.length){var i=r;r=[],i.forEach(s),a=r}var c=function(){var f=a;a=[],f.forEach(s)},u=function(){return Promise.resolve().then(c)};u(),r={push:function(f){a.push(f),u()},filter:function(f){return a=a.filter(f),r}}}};return o}function Gp(e){e===void 0&&(e={});var t=Hp(null);return t.options=Fe({async:!0,ssr:!1},e),t}var Qa=function(e){var t=e.sideCar,r=Ja(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return d.createElement(n,Fe({},r))};Qa.isSideCarExport=!0;function Up(e,t){return e.useMedium(t),Qa}var ei=Gp(),En=function(){},Kr=d.forwardRef(function(e,t){var r=d.useRef(null),n=d.useState({onScrollCapture:En,onWheelCapture:En,onTouchMoveCapture:En}),o=n[0],s=n[1],a=e.forwardProps,i=e.children,c=e.className,u=e.removeScrollBar,f=e.enabled,p=e.shards,h=e.sideCar,m=e.noRelative,w=e.noIsolation,g=e.inert,v=e.allowPinchZoom,b=e.as,x=b===void 0?"div":b,C=e.gapMode,E=Ja(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),R=h,j=Wp([r,t]),A=Fe(Fe({},E),o);return d.createElement(d.Fragment,null,f&&d.createElement(R,{sideCar:ei,removeScrollBar:u,shards:p,noRelative:m,noIsolation:w,inert:g,setCallbacks:s,allowPinchZoom:!!v,lockRef:r,gapMode:C}),a?d.cloneElement(d.Children.only(i),Fe(Fe({},A),{ref:j})):d.createElement(x,Fe({},A,{className:c,ref:j}),i))});Kr.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Kr.classNames={fullWidth:Er,zeroRight:Sr};var Kp=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Yp(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Kp();return t&&e.setAttribute("nonce",t),e}function qp(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Xp(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Zp=function(){var e=0,t=null;return{add:function(r){e==0&&(t=Yp())&&(qp(t,r),Xp(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Jp=function(){var e=Zp();return function(t,r){d.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},ti=function(){var e=Jp(),t=function(r){var n=r.styles,o=r.dynamic;return e(n,o),null};return t},Qp={left:0,top:0,right:0,gap:0},kn=function(e){return parseInt(e||"",10)||0},em=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[kn(r),kn(n),kn(o)]},tm=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Qp;var t=em(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},rm=ti(),_t="data-scroll-locked",nm=function(e,t,r,n){var o=e.left,s=e.top,a=e.right,i=e.gap;return r===void 0&&(r="margin"),`
|
|
31
|
+
.`.concat($p,` {
|
|
32
32
|
overflow: hidden `).concat(n,`;
|
|
33
33
|
padding-right: `).concat(i,"px ").concat(n,`;
|
|
34
34
|
}
|
|
@@ -62,101 +62,116 @@ React keys must be passed directly to JSX without using spread:
|
|
|
62
62
|
}
|
|
63
63
|
|
|
64
64
|
body[`).concat(_t,`] {
|
|
65
|
-
`).concat(
|
|
65
|
+
`).concat(Fp,": ").concat(i,`px;
|
|
66
66
|
}
|
|
67
|
-
`)},
|
|
67
|
+
`)},Ls=function(){var e=parseInt(document.body.getAttribute(_t)||"0",10);return isFinite(e)?e:0},om=function(){d.useEffect(function(){return document.body.setAttribute(_t,(Ls()+1).toString()),function(){var e=Ls()-1;e<=0?document.body.removeAttribute(_t):document.body.setAttribute(_t,e.toString())}},[])},sm=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,o=n===void 0?"margin":n;om();var s=d.useMemo(function(){return tm(o)},[o]);return d.createElement(rm,{styles:nm(s,!t,o,r?"":"!important")})},Vn=!1;if(typeof window<"u")try{var br=Object.defineProperty({},"passive",{get:function(){return Vn=!0,!0}});window.addEventListener("test",br,br),window.removeEventListener("test",br,br)}catch{Vn=!1}var Et=Vn?{passive:!1}:!1,am=function(e){return e.tagName==="TEXTAREA"},ri=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!am(e)&&r[t]==="visible")},im=function(e){return ri(e,"overflowY")},lm=function(e){return ri(e,"overflowX")},$s=function(e,t){var r=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var o=ni(e,n);if(o){var s=oi(e,n),a=s[1],i=s[2];if(a>i)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},cm=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},um=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},ni=function(e,t){return e==="v"?im(t):lm(t)},oi=function(e,t){return e==="v"?cm(t):um(t)},dm=function(e,t){return e==="h"&&t==="rtl"?-1:1},fm=function(e,t,r,n,o){var s=dm(e,window.getComputedStyle(t).direction),a=s*n,i=r.target,c=t.contains(i),u=!1,f=a>0,p=0,h=0;do{if(!i)break;var m=oi(e,i),w=m[0],g=m[1],v=m[2],b=g-v-s*w;(w||b)&&ni(e,i)&&(p+=b,h+=w);var x=i.parentNode;i=x&&x.nodeType===Node.DOCUMENT_FRAGMENT_NODE?x.host:x}while(!c&&i!==document.body||c&&(t.contains(i)||t===i));return(f&&Math.abs(p)<1||!f&&Math.abs(h)<1)&&(u=!0),u},yr=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Fs=function(e){return[e.deltaX,e.deltaY]},Vs=function(e){return e&&"current"in e?e.current:e},pm=function(e,t){return e[0]===t[0]&&e[1]===t[1]},mm=function(e){return`
|
|
68
68
|
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
69
69
|
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
70
|
-
`)},mm=0,Pt=[];function gm(e){var t=u.useRef([]),r=u.useRef([0,0]),n=u.useRef(),o=u.useState(mm++)[0],s=u.useState(Qa)[0],a=u.useRef(e);u.useEffect(function(){a.current=e},[e]),u.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var m=Dp([e.lockRef.current],(e.shards||[]).map($s),!0).filter(Boolean);return m.forEach(function(v){return v.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),m.forEach(function(v){return v.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var i=u.useCallback(function(m,v){if("touches"in m&&m.touches.length===2||m.type==="wheel"&&m.ctrlKey)return!a.current.allowPinchZoom;var y=yr(m),x=r.current,C="deltaX"in m?m.deltaX:x[0]-y[0],E="deltaY"in m?m.deltaY:x[1]-y[1],k,j=m.target,A=Math.abs(C)>Math.abs(E)?"h":"v";if("touches"in m&&A==="h"&&j.type==="range")return!1;var N=Ds(A,j);if(!N)return!0;if(N?k=A:(k=A==="v"?"h":"v",N=Ds(A,j)),!N)return!1;if(!n.current&&"changedTouches"in m&&(C||E)&&(n.current=k),!k)return!0;var G=n.current||k;return dm(G,v,m,G==="h"?C:E)},[]),l=u.useCallback(function(m){var v=m;if(!(!Pt.length||Pt[Pt.length-1]!==s)){var y="deltaY"in v?Ls(v):yr(v),x=t.current.filter(function(k){return k.name===v.type&&(k.target===v.target||v.target===k.shadowParent)&&fm(k.delta,y)})[0];if(x&&x.should){v.cancelable&&v.preventDefault();return}if(!x){var C=(a.current.shards||[]).map($s).filter(Boolean).filter(function(k){return k.contains(v.target)}),E=C.length>0?i(v,C[0]):!a.current.noIsolation;E&&v.cancelable&&v.preventDefault()}}},[]),d=u.useCallback(function(m,v,y,x){var C={name:m,delta:v,target:y,should:x,shadowParent:hm(y)};t.current.push(C),setTimeout(function(){t.current=t.current.filter(function(E){return E!==C})},1)},[]),f=u.useCallback(function(m){r.current=yr(m),n.current=void 0},[]),p=u.useCallback(function(m){d(m.type,Ls(m),m.target,i(m,e.lockRef.current))},[]),h=u.useCallback(function(m){d(m.type,yr(m),m.target,i(m,e.lockRef.current))},[]);u.useEffect(function(){return Pt.push(s),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:h}),document.addEventListener("wheel",l,Et),document.addEventListener("touchmove",l,Et),document.addEventListener("touchstart",f,Et),function(){Pt=Pt.filter(function(m){return m!==s}),document.removeEventListener("wheel",l,Et),document.removeEventListener("touchmove",l,Et),document.removeEventListener("touchstart",f,Et)}},[]);var g=e.removeScrollBar,w=e.inert;return u.createElement(u.Fragment,null,w?u.createElement(s,{styles:pm(o)}):null,g?u.createElement(om,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function hm(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const vm=Gp(Ja,gm);var Yr=u.forwardRef(function(e,t){return u.createElement(Kr,Fe({},e,{ref:t,sideCar:vm}))});Yr.classNames=Kr.classNames;var xm=[" ","Enter","ArrowUp","ArrowDown"],bm=[" ","Enter"],mt="Select",[qr,Xr,ym]=to(mt),[Bt,Ny]=ke(mt,[ym,Wt]),Zr=Wt(),[wm,ot]=Bt(mt),[Cm,Sm]=Bt(mt),ni=e=>{const{__scopeSelect:t,children:r,open:n,defaultOpen:o,onOpenChange:s,value:a,defaultValue:i,onValueChange:l,dir:d,name:f,autoComplete:p,disabled:h,required:g,form:w}=e,m=Zr(t),[v,y]=u.useState(null),[x,C]=u.useState(null),[E,k]=u.useState(!1),j=Vr(d),[A,N]=Ee({prop:n,defaultProp:o??!1,onChange:s,caller:mt}),[G,K]=Ee({prop:a,defaultProp:i,onChange:l,caller:mt}),ee=u.useRef(null),J=v?w||!!v.closest("form"):!0,[Y,z]=u.useState(new Set),O=Array.from(Y).map(T=>T.props.value).join(";");return c.jsx(fo,{...m,children:c.jsxs(wm,{required:g,scope:t,trigger:v,onTriggerChange:y,valueNode:x,onValueNodeChange:C,valueNodeHasChildren:E,onValueNodeHasChildrenChange:k,contentId:he(),value:G,onValueChange:K,open:A,onOpenChange:N,dir:j,triggerPointerDownPosRef:ee,disabled:h,children:[c.jsx(qr.Provider,{scope:t,children:c.jsx(Cm,{scope:e.__scopeSelect,onNativeOptionAdd:u.useCallback(T=>{z(D=>new Set(D).add(T))},[]),onNativeOptionRemove:u.useCallback(T=>{z(D=>{const P=new Set(D);return P.delete(T),P})},[]),children:r})}),J?c.jsxs(Ni,{"aria-hidden":!0,required:g,tabIndex:-1,name:f,autoComplete:p,value:G,onChange:T=>K(T.target.value),disabled:h,form:w,children:[G===void 0?c.jsx("option",{value:""}):null,Array.from(Y)]},O):null]})})};ni.displayName=mt;var oi="SelectTrigger",si=u.forwardRef((e,t)=>{const{__scopeSelect:r,disabled:n=!1,...o}=e,s=Zr(r),a=ot(oi,r),i=a.disabled||n,l=de(t,a.onTriggerChange),d=Xr(r),f=u.useRef("touch"),[p,h,g]=ji(m=>{const v=d().filter(C=>!C.disabled),y=v.find(C=>C.value===a.value),x=Ai(v,m,y);x!==void 0&&a.onValueChange(x.value)}),w=m=>{i||(a.onOpenChange(!0),g()),m&&(a.triggerPointerDownPosRef.current={x:Math.round(m.pageX),y:Math.round(m.pageY)})};return c.jsx(Ur,{asChild:!0,...s,children:c.jsx(U.button,{type:"button",role:"combobox","aria-controls":a.contentId,"aria-expanded":a.open,"aria-required":a.required,"aria-autocomplete":"none",dir:a.dir,"data-state":a.open?"open":"closed",disabled:i,"data-disabled":i?"":void 0,"data-placeholder":Ti(a.value)?"":void 0,...o,ref:l,onClick:Z(o.onClick,m=>{m.currentTarget.focus(),f.current!=="mouse"&&w(m)}),onPointerDown:Z(o.onPointerDown,m=>{f.current=m.pointerType;const v=m.target;v.hasPointerCapture(m.pointerId)&&v.releasePointerCapture(m.pointerId),m.button===0&&m.ctrlKey===!1&&m.pointerType==="mouse"&&(w(m),m.preventDefault())}),onKeyDown:Z(o.onKeyDown,m=>{const v=p.current!=="";!(m.ctrlKey||m.altKey||m.metaKey)&&m.key.length===1&&h(m.key),!(v&&m.key===" ")&&xm.includes(m.key)&&(w(),m.preventDefault())})})})});si.displayName=oi;var ai="SelectValue",ii=u.forwardRef((e,t)=>{const{__scopeSelect:r,className:n,style:o,children:s,placeholder:a="",...i}=e,l=ot(ai,r),{onValueNodeHasChildrenChange:d}=l,f=s!==void 0,p=de(t,l.onValueNodeChange);return ve(()=>{d(f)},[d,f]),c.jsx(U.span,{...i,ref:p,style:{pointerEvents:"none"},children:Ti(l.value)?c.jsx(c.Fragment,{children:a}):s})});ii.displayName=ai;var Em="SelectIcon",ci=u.forwardRef((e,t)=>{const{__scopeSelect:r,children:n,...o}=e;return c.jsx(U.span,{"aria-hidden":!0,...o,ref:t,children:n||"▼"})});ci.displayName=Em;var Pm="SelectPortal",li=e=>c.jsx(sr,{asChild:!0,...e});li.displayName=Pm;var gt="SelectContent",ui=u.forwardRef((e,t)=>{const r=ot(gt,e.__scopeSelect),[n,o]=u.useState();if(ve(()=>{o(new DocumentFragment)},[]),!r.open){const s=n;return s?$r.createPortal(c.jsx(di,{scope:e.__scopeSelect,children:c.jsx(qr.Slot,{scope:e.__scopeSelect,children:c.jsx("div",{children:e.children})})}),s):null}return c.jsx(fi,{...e,ref:t})});ui.displayName=gt;var je=10,[di,st]=Bt(gt),Rm="SelectContentImpl",km=ft("SelectContent.RemoveScroll"),fi=u.forwardRef((e,t)=>{const{__scopeSelect:r,position:n="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:s,onPointerDownOutside:a,side:i,sideOffset:l,align:d,alignOffset:f,arrowPadding:p,collisionBoundary:h,collisionPadding:g,sticky:w,hideWhenDetached:m,avoidCollisions:v,...y}=e,x=ot(gt,r),[C,E]=u.useState(null),[k,j]=u.useState(null),A=de(t,I=>E(I)),[N,G]=u.useState(null),[K,ee]=u.useState(null),J=Xr(r),[Y,z]=u.useState(!1),O=u.useRef(!1);u.useEffect(()=>{if(C)return go(C)},[C]),ro();const T=u.useCallback(I=>{const[q,...te]=J().map(se=>se.ref.current),[re]=te.slice(-1),ie=document.activeElement;for(const se of I)if(se===ie||(se==null||se.scrollIntoView({block:"nearest"}),se===q&&k&&(k.scrollTop=0),se===re&&k&&(k.scrollTop=k.scrollHeight),se==null||se.focus(),document.activeElement!==ie))return},[J,k]),D=u.useCallback(()=>T([N,C]),[T,N,C]);u.useEffect(()=>{Y&&D()},[Y,D]);const{onOpenChange:P,triggerPointerDownPosRef:H}=x;u.useEffect(()=>{if(C){let I={x:0,y:0};const q=re=>{var ie,se;I={x:Math.abs(Math.round(re.pageX)-(((ie=H.current)==null?void 0:ie.x)??0)),y:Math.abs(Math.round(re.pageY)-(((se=H.current)==null?void 0:se.y)??0))}},te=re=>{I.x<=10&&I.y<=10?re.preventDefault():C.contains(re.target)||P(!1),document.removeEventListener("pointermove",q),H.current=null};return H.current!==null&&(document.addEventListener("pointermove",q),document.addEventListener("pointerup",te,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",q),document.removeEventListener("pointerup",te,{capture:!0})}}},[C,P,H]),u.useEffect(()=>{const I=()=>P(!1);return window.addEventListener("blur",I),window.addEventListener("resize",I),()=>{window.removeEventListener("blur",I),window.removeEventListener("resize",I)}},[P]);const[oe,le]=ji(I=>{const q=J().filter(ie=>!ie.disabled),te=q.find(ie=>ie.ref.current===document.activeElement),re=Ai(q,I,te);re&&setTimeout(()=>re.ref.current.focus())}),R=u.useCallback((I,q,te)=>{const re=!O.current&&!te;(x.value!==void 0&&x.value===q||re)&&(G(I),re&&(O.current=!0))},[x.value]),$=u.useCallback(()=>C==null?void 0:C.focus(),[C]),B=u.useCallback((I,q,te)=>{const re=!O.current&&!te;(x.value!==void 0&&x.value===q||re)&&ee(I)},[x.value]),F=n==="popper"?Vn:pi,Q=F===Vn?{side:i,sideOffset:l,align:d,alignOffset:f,arrowPadding:p,collisionBoundary:h,collisionPadding:g,sticky:w,hideWhenDetached:m,avoidCollisions:v}:{};return c.jsx(di,{scope:r,content:C,viewport:k,onViewportChange:j,itemRefCallback:R,selectedItem:N,onItemLeave:$,itemTextRefCallback:B,focusSelectedItem:D,selectedItemText:K,position:n,isPositioned:Y,searchRef:oe,children:c.jsx(Yr,{as:km,allowPinchZoom:!0,children:c.jsx(Wr,{asChild:!0,trapped:x.open,onMountAutoFocus:I=>{I.preventDefault()},onUnmountAutoFocus:Z(o,I=>{var q;(q=x.trigger)==null||q.focus({preventScroll:!0}),I.preventDefault()}),children:c.jsx(nr,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:s,onPointerDownOutside:a,onFocusOutside:I=>I.preventDefault(),onDismiss:()=>x.onOpenChange(!1),children:c.jsx(F,{role:"listbox",id:x.contentId,"data-state":x.open?"open":"closed",dir:x.dir,onContextMenu:I=>I.preventDefault(),...y,...Q,onPlaced:()=>z(!0),ref:A,style:{display:"flex",flexDirection:"column",outline:"none",...y.style},onKeyDown:Z(y.onKeyDown,I=>{const q=I.ctrlKey||I.altKey||I.metaKey;if(I.key==="Tab"&&I.preventDefault(),!q&&I.key.length===1&&le(I.key),["ArrowUp","ArrowDown","Home","End"].includes(I.key)){let re=J().filter(ie=>!ie.disabled).map(ie=>ie.ref.current);if(["ArrowUp","End"].includes(I.key)&&(re=re.slice().reverse()),["ArrowUp","ArrowDown"].includes(I.key)){const ie=I.target,se=re.indexOf(ie);re=re.slice(se+1)}setTimeout(()=>T(re)),I.preventDefault()}})})})})})})});fi.displayName=Rm;var Nm="SelectItemAlignedPosition",pi=u.forwardRef((e,t)=>{const{__scopeSelect:r,onPlaced:n,...o}=e,s=ot(gt,r),a=st(gt,r),[i,l]=u.useState(null),[d,f]=u.useState(null),p=de(t,A=>f(A)),h=Xr(r),g=u.useRef(!1),w=u.useRef(!0),{viewport:m,selectedItem:v,selectedItemText:y,focusSelectedItem:x}=a,C=u.useCallback(()=>{if(s.trigger&&s.valueNode&&i&&d&&m&&v&&y){const A=s.trigger.getBoundingClientRect(),N=d.getBoundingClientRect(),G=s.valueNode.getBoundingClientRect(),K=y.getBoundingClientRect();if(s.dir!=="rtl"){const ie=K.left-N.left,se=G.left-ie,xe=A.left-se,Pe=A.width+xe,De=Math.max(Pe,N.width),Te=window.innerWidth-je,Ze=ms(se,[je,Math.max(je,Te-De)]);i.style.minWidth=Pe+"px",i.style.left=Ze+"px"}else{const ie=N.right-K.right,se=window.innerWidth-G.right-ie,xe=window.innerWidth-A.right-se,Pe=A.width+xe,De=Math.max(Pe,N.width),Te=window.innerWidth-je,Ze=ms(se,[je,Math.max(je,Te-De)]);i.style.minWidth=Pe+"px",i.style.right=Ze+"px"}const ee=h(),J=window.innerHeight-je*2,Y=m.scrollHeight,z=window.getComputedStyle(d),O=parseInt(z.borderTopWidth,10),T=parseInt(z.paddingTop,10),D=parseInt(z.borderBottomWidth,10),P=parseInt(z.paddingBottom,10),H=O+T+Y+P+D,oe=Math.min(v.offsetHeight*5,H),le=window.getComputedStyle(m),R=parseInt(le.paddingTop,10),$=parseInt(le.paddingBottom,10),B=A.top+A.height/2-je,F=J-B,Q=v.offsetHeight/2,I=v.offsetTop+Q,q=O+T+I,te=H-q;if(q<=B){const ie=ee.length>0&&v===ee[ee.length-1].ref.current;i.style.bottom="0px";const se=d.clientHeight-m.offsetTop-m.offsetHeight,xe=Math.max(F,Q+(ie?$:0)+se+D),Pe=q+xe;i.style.height=Pe+"px"}else{const ie=ee.length>0&&v===ee[0].ref.current;i.style.top="0px";const xe=Math.max(B,O+m.offsetTop+(ie?R:0)+Q)+te;i.style.height=xe+"px",m.scrollTop=q-B+m.offsetTop}i.style.margin=`${je}px 0`,i.style.minHeight=oe+"px",i.style.maxHeight=J+"px",n==null||n(),requestAnimationFrame(()=>g.current=!0)}},[h,s.trigger,s.valueNode,i,d,m,v,y,s.dir,n]);ve(()=>C(),[C]);const[E,k]=u.useState();ve(()=>{d&&k(window.getComputedStyle(d).zIndex)},[d]);const j=u.useCallback(A=>{A&&w.current===!0&&(C(),x==null||x(),w.current=!1)},[C,x]);return c.jsx(jm,{scope:r,contentWrapper:i,shouldExpandOnScrollRef:g,onScrollButtonChange:j,children:c.jsx("div",{ref:l,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:E},children:c.jsx(U.div,{...o,ref:p,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});pi.displayName=Nm;var Tm="SelectPopperPosition",Vn=u.forwardRef((e,t)=>{const{__scopeSelect:r,align:n="start",collisionPadding:o=je,...s}=e,a=Zr(r);return c.jsx(po,{...a,...s,ref:t,align:n,collisionPadding:o,style:{boxSizing:"border-box",...s.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});Vn.displayName=Tm;var[jm,ho]=Bt(gt,{}),Wn="SelectViewport",mi=u.forwardRef((e,t)=>{const{__scopeSelect:r,nonce:n,...o}=e,s=st(Wn,r),a=ho(Wn,r),i=de(t,s.onViewportChange),l=u.useRef(0);return c.jsxs(c.Fragment,{children:[c.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:n}),c.jsx(qr.Slot,{scope:r,children:c.jsx(U.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:i,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:Z(o.onScroll,d=>{const f=d.currentTarget,{contentWrapper:p,shouldExpandOnScrollRef:h}=a;if(h!=null&&h.current&&p){const g=Math.abs(l.current-f.scrollTop);if(g>0){const w=window.innerHeight-je*2,m=parseFloat(p.style.minHeight),v=parseFloat(p.style.height),y=Math.max(m,v);if(y<w){const x=y+g,C=Math.min(w,x),E=x-C;p.style.height=C+"px",p.style.bottom==="0px"&&(f.scrollTop=E>0?E:0,p.style.justifyContent="flex-end")}}}l.current=f.scrollTop})})})]})});mi.displayName=Wn;var gi="SelectGroup",[Am,_m]=Bt(gi),hi=u.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,o=he();return c.jsx(Am,{scope:r,id:o,children:c.jsx(U.div,{role:"group","aria-labelledby":o,...n,ref:t})})});hi.displayName=gi;var vi="SelectLabel",xi=u.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,o=_m(vi,r);return c.jsx(U.div,{id:o.id,...n,ref:t})});xi.displayName=vi;var jr="SelectItem",[Im,bi]=Bt(jr),yi=u.forwardRef((e,t)=>{const{__scopeSelect:r,value:n,disabled:o=!1,textValue:s,...a}=e,i=ot(jr,r),l=st(jr,r),d=i.value===n,[f,p]=u.useState(s??""),[h,g]=u.useState(!1),w=de(t,x=>{var C;return(C=l.itemRefCallback)==null?void 0:C.call(l,x,n,o)}),m=he(),v=u.useRef("touch"),y=()=>{o||(i.onValueChange(n),i.onOpenChange(!1))};if(n==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return c.jsx(Im,{scope:r,value:n,disabled:o,textId:m,isSelected:d,onItemTextChange:u.useCallback(x=>{p(C=>C||((x==null?void 0:x.textContent)??"").trim())},[]),children:c.jsx(qr.ItemSlot,{scope:r,value:n,disabled:o,textValue:f,children:c.jsx(U.div,{role:"option","aria-labelledby":m,"data-highlighted":h?"":void 0,"aria-selected":d&&h,"data-state":d?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...a,ref:w,onFocus:Z(a.onFocus,()=>g(!0)),onBlur:Z(a.onBlur,()=>g(!1)),onClick:Z(a.onClick,()=>{v.current!=="mouse"&&y()}),onPointerUp:Z(a.onPointerUp,()=>{v.current==="mouse"&&y()}),onPointerDown:Z(a.onPointerDown,x=>{v.current=x.pointerType}),onPointerMove:Z(a.onPointerMove,x=>{var C;v.current=x.pointerType,o?(C=l.onItemLeave)==null||C.call(l):v.current==="mouse"&&x.currentTarget.focus({preventScroll:!0})}),onPointerLeave:Z(a.onPointerLeave,x=>{var C;x.currentTarget===document.activeElement&&((C=l.onItemLeave)==null||C.call(l))}),onKeyDown:Z(a.onKeyDown,x=>{var E;((E=l.searchRef)==null?void 0:E.current)!==""&&x.key===" "||(bm.includes(x.key)&&y(),x.key===" "&&x.preventDefault())})})})})});yi.displayName=jr;var Yt="SelectItemText",wi=u.forwardRef((e,t)=>{const{__scopeSelect:r,className:n,style:o,...s}=e,a=ot(Yt,r),i=st(Yt,r),l=bi(Yt,r),d=Sm(Yt,r),[f,p]=u.useState(null),h=de(t,y=>p(y),l.onItemTextChange,y=>{var x;return(x=i.itemTextRefCallback)==null?void 0:x.call(i,y,l.value,l.disabled)}),g=f==null?void 0:f.textContent,w=u.useMemo(()=>c.jsx("option",{value:l.value,disabled:l.disabled,children:g},l.value),[l.disabled,l.value,g]),{onNativeOptionAdd:m,onNativeOptionRemove:v}=d;return ve(()=>(m(w),()=>v(w)),[m,v,w]),c.jsxs(c.Fragment,{children:[c.jsx(U.span,{id:l.textId,...s,ref:h}),l.isSelected&&a.valueNode&&!a.valueNodeHasChildren?$r.createPortal(s.children,a.valueNode):null]})});wi.displayName=Yt;var Ci="SelectItemIndicator",Si=u.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e;return bi(Ci,r).isSelected?c.jsx(U.span,{"aria-hidden":!0,...n,ref:t}):null});Si.displayName=Ci;var Bn="SelectScrollUpButton",Ei=u.forwardRef((e,t)=>{const r=st(Bn,e.__scopeSelect),n=ho(Bn,e.__scopeSelect),[o,s]=u.useState(!1),a=de(t,n.onScrollButtonChange);return ve(()=>{if(r.viewport&&r.isPositioned){let i=function(){const d=l.scrollTop>0;s(d)};const l=r.viewport;return i(),l.addEventListener("scroll",i),()=>l.removeEventListener("scroll",i)}},[r.viewport,r.isPositioned]),o?c.jsx(Ri,{...e,ref:a,onAutoScroll:()=>{const{viewport:i,selectedItem:l}=r;i&&l&&(i.scrollTop=i.scrollTop-l.offsetHeight)}}):null});Ei.displayName=Bn;var zn="SelectScrollDownButton",Pi=u.forwardRef((e,t)=>{const r=st(zn,e.__scopeSelect),n=ho(zn,e.__scopeSelect),[o,s]=u.useState(!1),a=de(t,n.onScrollButtonChange);return ve(()=>{if(r.viewport&&r.isPositioned){let i=function(){const d=l.scrollHeight-l.clientHeight,f=Math.ceil(l.scrollTop)<d;s(f)};const l=r.viewport;return i(),l.addEventListener("scroll",i),()=>l.removeEventListener("scroll",i)}},[r.viewport,r.isPositioned]),o?c.jsx(Ri,{...e,ref:a,onAutoScroll:()=>{const{viewport:i,selectedItem:l}=r;i&&l&&(i.scrollTop=i.scrollTop+l.offsetHeight)}}):null});Pi.displayName=zn;var Ri=u.forwardRef((e,t)=>{const{__scopeSelect:r,onAutoScroll:n,...o}=e,s=st("SelectScrollButton",r),a=u.useRef(null),i=Xr(r),l=u.useCallback(()=>{a.current!==null&&(window.clearInterval(a.current),a.current=null)},[]);return u.useEffect(()=>()=>l(),[l]),ve(()=>{var f;const d=i().find(p=>p.ref.current===document.activeElement);(f=d==null?void 0:d.ref.current)==null||f.scrollIntoView({block:"nearest"})},[i]),c.jsx(U.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:Z(o.onPointerDown,()=>{a.current===null&&(a.current=window.setInterval(n,50))}),onPointerMove:Z(o.onPointerMove,()=>{var d;(d=s.onItemLeave)==null||d.call(s),a.current===null&&(a.current=window.setInterval(n,50))}),onPointerLeave:Z(o.onPointerLeave,()=>{l()})})}),Om="SelectSeparator",ki=u.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e;return c.jsx(U.div,{"aria-hidden":!0,...n,ref:t})});ki.displayName=Om;var Hn="SelectArrow",Mm=u.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,o=Zr(r),s=ot(Hn,r),a=st(Hn,r);return s.open&&a.position==="popper"?c.jsx(mo,{...o,...n,ref:t}):null});Mm.displayName=Hn;var Dm="SelectBubbleInput",Ni=u.forwardRef(({__scopeSelect:e,value:t,...r},n)=>{const o=u.useRef(null),s=de(n,o),a=Ua(t);return u.useEffect(()=>{const i=o.current;if(!i)return;const l=window.HTMLSelectElement.prototype,f=Object.getOwnPropertyDescriptor(l,"value").set;if(a!==t&&f){const p=new Event("change",{bubbles:!0});f.call(i,t),i.dispatchEvent(p)}},[a,t]),c.jsx(U.select,{...r,style:{...Ka,...r.style},ref:s,defaultValue:t})});Ni.displayName=Dm;function Ti(e){return e===""||e===void 0}function ji(e){const t=et(e),r=u.useRef(""),n=u.useRef(0),o=u.useCallback(a=>{const i=r.current+a;t(i),(function l(d){r.current=d,window.clearTimeout(n.current),d!==""&&(n.current=window.setTimeout(()=>l(""),1e3))})(i)},[t]),s=u.useCallback(()=>{r.current="",window.clearTimeout(n.current)},[]);return u.useEffect(()=>()=>window.clearTimeout(n.current),[]),[r,o,s]}function Ai(e,t,r){const o=t.length>1&&Array.from(t).every(d=>d===t[0])?t[0]:t,s=r?e.indexOf(r):-1;let a=Lm(e,Math.max(s,0));o.length===1&&(a=a.filter(d=>d!==r));const l=a.find(d=>d.textValue.toLowerCase().startsWith(o.toLowerCase()));return l!==r?l:void 0}function Lm(e,t){return e.map((r,n)=>e[(t+n)%e.length])}var $m=ni,_i=si,Fm=ii,Vm=ci,Wm=li,Ii=ui,Bm=mi,zm=hi,Oi=xi,Mi=yi,Hm=wi,Gm=Si,Di=Ei,Li=Pi,$i=ki;/**
|
|
70
|
+
`)},gm=0,kt=[];function hm(e){var t=d.useRef([]),r=d.useRef([0,0]),n=d.useRef(),o=d.useState(gm++)[0],s=d.useState(ti)[0],a=d.useRef(e);d.useEffect(function(){a.current=e},[e]),d.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var g=Lp([e.lockRef.current],(e.shards||[]).map(Vs),!0).filter(Boolean);return g.forEach(function(v){return v.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),g.forEach(function(v){return v.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var i=d.useCallback(function(g,v){if("touches"in g&&g.touches.length===2||g.type==="wheel"&&g.ctrlKey)return!a.current.allowPinchZoom;var b=yr(g),x=r.current,C="deltaX"in g?g.deltaX:x[0]-b[0],E="deltaY"in g?g.deltaY:x[1]-b[1],R,j=g.target,A=Math.abs(C)>Math.abs(E)?"h":"v";if("touches"in g&&A==="h"&&j.type==="range")return!1;var N=$s(A,j);if(!N)return!0;if(N?R=A:(R=A==="v"?"h":"v",N=$s(A,j)),!N)return!1;if(!n.current&&"changedTouches"in g&&(C||E)&&(n.current=R),!R)return!0;var G=n.current||R;return fm(G,v,g,G==="h"?C:E)},[]),c=d.useCallback(function(g){var v=g;if(!(!kt.length||kt[kt.length-1]!==s)){var b="deltaY"in v?Fs(v):yr(v),x=t.current.filter(function(R){return R.name===v.type&&(R.target===v.target||v.target===R.shadowParent)&&pm(R.delta,b)})[0];if(x&&x.should){v.cancelable&&v.preventDefault();return}if(!x){var C=(a.current.shards||[]).map(Vs).filter(Boolean).filter(function(R){return R.contains(v.target)}),E=C.length>0?i(v,C[0]):!a.current.noIsolation;E&&v.cancelable&&v.preventDefault()}}},[]),u=d.useCallback(function(g,v,b,x){var C={name:g,delta:v,target:b,should:x,shadowParent:vm(b)};t.current.push(C),setTimeout(function(){t.current=t.current.filter(function(E){return E!==C})},1)},[]),f=d.useCallback(function(g){r.current=yr(g),n.current=void 0},[]),p=d.useCallback(function(g){u(g.type,Fs(g),g.target,i(g,e.lockRef.current))},[]),h=d.useCallback(function(g){u(g.type,yr(g),g.target,i(g,e.lockRef.current))},[]);d.useEffect(function(){return kt.push(s),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:h}),document.addEventListener("wheel",c,Et),document.addEventListener("touchmove",c,Et),document.addEventListener("touchstart",f,Et),function(){kt=kt.filter(function(g){return g!==s}),document.removeEventListener("wheel",c,Et),document.removeEventListener("touchmove",c,Et),document.removeEventListener("touchstart",f,Et)}},[]);var m=e.removeScrollBar,w=e.inert;return d.createElement(d.Fragment,null,w?d.createElement(s,{styles:mm(o)}):null,m?d.createElement(sm,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function vm(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const xm=Up(ei,hm);var Yr=d.forwardRef(function(e,t){return d.createElement(Kr,Fe({},e,{ref:t,sideCar:xm}))});Yr.classNames=Kr.classNames;var bm=[" ","Enter","ArrowUp","ArrowDown"],ym=[" ","Enter"],mt="Select",[qr,Xr,wm]=ro(mt),[Wt,Hy]=Ne(mt,[wm,Bt]),Zr=Bt(),[Cm,ot]=Wt(mt),[Sm,Em]=Wt(mt),si=e=>{const{__scopeSelect:t,children:r,open:n,defaultOpen:o,onOpenChange:s,value:a,defaultValue:i,onValueChange:c,dir:u,name:f,autoComplete:p,disabled:h,required:m,form:w}=e,g=Zr(t),[v,b]=d.useState(null),[x,C]=d.useState(null),[E,R]=d.useState(!1),j=Vr(u),[A,N]=ke({prop:n,defaultProp:o??!1,onChange:s,caller:mt}),[G,Y]=ke({prop:a,defaultProp:i,onChange:c,caller:mt}),ee=d.useRef(null),Q=v?w||!!v.closest("form"):!0,[q,W]=d.useState(new Set),M=Array.from(q).map(T=>T.props.value).join(";");return l.jsx(po,{...g,children:l.jsxs(Cm,{required:m,scope:t,trigger:v,onTriggerChange:b,valueNode:x,onValueNodeChange:C,valueNodeHasChildren:E,onValueNodeHasChildrenChange:R,contentId:he(),value:G,onValueChange:Y,open:A,onOpenChange:N,dir:j,triggerPointerDownPosRef:ee,disabled:h,children:[l.jsx(qr.Provider,{scope:t,children:l.jsx(Sm,{scope:e.__scopeSelect,onNativeOptionAdd:d.useCallback(T=>{W(D=>new Set(D).add(T))},[]),onNativeOptionRemove:d.useCallback(T=>{W(D=>{const k=new Set(D);return k.delete(T),k})},[]),children:r})}),Q?l.jsxs(ji,{"aria-hidden":!0,required:m,tabIndex:-1,name:f,autoComplete:p,value:G,onChange:T=>Y(T.target.value),disabled:h,form:w,children:[G===void 0?l.jsx("option",{value:""}):null,Array.from(q)]},M):null]})})};si.displayName=mt;var ai="SelectTrigger",ii=d.forwardRef((e,t)=>{const{__scopeSelect:r,disabled:n=!1,...o}=e,s=Zr(r),a=ot(ai,r),i=a.disabled||n,c=de(t,a.onTriggerChange),u=Xr(r),f=d.useRef("touch"),[p,h,m]=_i(g=>{const v=u().filter(C=>!C.disabled),b=v.find(C=>C.value===a.value),x=Ii(v,g,b);x!==void 0&&a.onValueChange(x.value)}),w=g=>{i||(a.onOpenChange(!0),m()),g&&(a.triggerPointerDownPosRef.current={x:Math.round(g.pageX),y:Math.round(g.pageY)})};return l.jsx(Ur,{asChild:!0,...s,children:l.jsx(K.button,{type:"button",role:"combobox","aria-controls":a.contentId,"aria-expanded":a.open,"aria-required":a.required,"aria-autocomplete":"none",dir:a.dir,"data-state":a.open?"open":"closed",disabled:i,"data-disabled":i?"":void 0,"data-placeholder":Ai(a.value)?"":void 0,...o,ref:c,onClick:J(o.onClick,g=>{g.currentTarget.focus(),f.current!=="mouse"&&w(g)}),onPointerDown:J(o.onPointerDown,g=>{f.current=g.pointerType;const v=g.target;v.hasPointerCapture(g.pointerId)&&v.releasePointerCapture(g.pointerId),g.button===0&&g.ctrlKey===!1&&g.pointerType==="mouse"&&(w(g),g.preventDefault())}),onKeyDown:J(o.onKeyDown,g=>{const v=p.current!=="";!(g.ctrlKey||g.altKey||g.metaKey)&&g.key.length===1&&h(g.key),!(v&&g.key===" ")&&bm.includes(g.key)&&(w(),g.preventDefault())})})})});ii.displayName=ai;var li="SelectValue",ci=d.forwardRef((e,t)=>{const{__scopeSelect:r,className:n,style:o,children:s,placeholder:a="",...i}=e,c=ot(li,r),{onValueNodeHasChildrenChange:u}=c,f=s!==void 0,p=de(t,c.onValueNodeChange);return ve(()=>{u(f)},[u,f]),l.jsx(K.span,{...i,ref:p,style:{pointerEvents:"none"},children:Ai(c.value)?l.jsx(l.Fragment,{children:a}):s})});ci.displayName=li;var km="SelectIcon",ui=d.forwardRef((e,t)=>{const{__scopeSelect:r,children:n,...o}=e;return l.jsx(K.span,{"aria-hidden":!0,...o,ref:t,children:n||"▼"})});ui.displayName=km;var Pm="SelectPortal",di=e=>l.jsx(sr,{asChild:!0,...e});di.displayName=Pm;var gt="SelectContent",fi=d.forwardRef((e,t)=>{const r=ot(gt,e.__scopeSelect),[n,o]=d.useState();if(ve(()=>{o(new DocumentFragment)},[]),!r.open){const s=n;return s?$r.createPortal(l.jsx(pi,{scope:e.__scopeSelect,children:l.jsx(qr.Slot,{scope:e.__scopeSelect,children:l.jsx("div",{children:e.children})})}),s):null}return l.jsx(mi,{...e,ref:t})});fi.displayName=gt;var je=10,[pi,st]=Wt(gt),Rm="SelectContentImpl",Nm=ft("SelectContent.RemoveScroll"),mi=d.forwardRef((e,t)=>{const{__scopeSelect:r,position:n="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:s,onPointerDownOutside:a,side:i,sideOffset:c,align:u,alignOffset:f,arrowPadding:p,collisionBoundary:h,collisionPadding:m,sticky:w,hideWhenDetached:g,avoidCollisions:v,...b}=e,x=ot(gt,r),[C,E]=d.useState(null),[R,j]=d.useState(null),A=de(t,O=>E(O)),[N,G]=d.useState(null),[Y,ee]=d.useState(null),Q=Xr(r),[q,W]=d.useState(!1),M=d.useRef(!1);d.useEffect(()=>{if(C)return ho(C)},[C]),no();const T=d.useCallback(O=>{const[X,...ne]=Q().map(ae=>ae.ref.current),[oe]=ne.slice(-1),le=document.activeElement;for(const ae of O)if(ae===le||(ae==null||ae.scrollIntoView({block:"nearest"}),ae===X&&R&&(R.scrollTop=0),ae===oe&&R&&(R.scrollTop=R.scrollHeight),ae==null||ae.focus(),document.activeElement!==le))return},[Q,R]),D=d.useCallback(()=>T([N,C]),[T,N,C]);d.useEffect(()=>{q&&D()},[q,D]);const{onOpenChange:k,triggerPointerDownPosRef:H}=x;d.useEffect(()=>{if(C){let O={x:0,y:0};const X=oe=>{var le,ae;O={x:Math.abs(Math.round(oe.pageX)-(((le=H.current)==null?void 0:le.x)??0)),y:Math.abs(Math.round(oe.pageY)-(((ae=H.current)==null?void 0:ae.y)??0))}},ne=oe=>{O.x<=10&&O.y<=10?oe.preventDefault():C.contains(oe.target)||k(!1),document.removeEventListener("pointermove",X),H.current=null};return H.current!==null&&(document.addEventListener("pointermove",X),document.addEventListener("pointerup",ne,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",X),document.removeEventListener("pointerup",ne,{capture:!0})}}},[C,k,H]),d.useEffect(()=>{const O=()=>k(!1);return window.addEventListener("blur",O),window.addEventListener("resize",O),()=>{window.removeEventListener("blur",O),window.removeEventListener("resize",O)}},[k]);const[U,re]=_i(O=>{const X=Q().filter(le=>!le.disabled),ne=X.find(le=>le.ref.current===document.activeElement),oe=Ii(X,O,ne);oe&&setTimeout(()=>oe.ref.current.focus())}),P=d.useCallback((O,X,ne)=>{const oe=!M.current&&!ne;(x.value!==void 0&&x.value===X||oe)&&(G(O),oe&&(M.current=!0))},[x.value]),$=d.useCallback(()=>C==null?void 0:C.focus(),[C]),z=d.useCallback((O,X,ne)=>{const oe=!M.current&&!ne;(x.value!==void 0&&x.value===X||oe)&&ee(O)},[x.value]),F=n==="popper"?Bn:gi,te=F===Bn?{side:i,sideOffset:c,align:u,alignOffset:f,arrowPadding:p,collisionBoundary:h,collisionPadding:m,sticky:w,hideWhenDetached:g,avoidCollisions:v}:{};return l.jsx(pi,{scope:r,content:C,viewport:R,onViewportChange:j,itemRefCallback:P,selectedItem:N,onItemLeave:$,itemTextRefCallback:z,focusSelectedItem:D,selectedItemText:Y,position:n,isPositioned:q,searchRef:U,children:l.jsx(Yr,{as:Nm,allowPinchZoom:!0,children:l.jsx(Br,{asChild:!0,trapped:x.open,onMountAutoFocus:O=>{O.preventDefault()},onUnmountAutoFocus:J(o,O=>{var X;(X=x.trigger)==null||X.focus({preventScroll:!0}),O.preventDefault()}),children:l.jsx(nr,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:s,onPointerDownOutside:a,onFocusOutside:O=>O.preventDefault(),onDismiss:()=>x.onOpenChange(!1),children:l.jsx(F,{role:"listbox",id:x.contentId,"data-state":x.open?"open":"closed",dir:x.dir,onContextMenu:O=>O.preventDefault(),...b,...te,onPlaced:()=>W(!0),ref:A,style:{display:"flex",flexDirection:"column",outline:"none",...b.style},onKeyDown:J(b.onKeyDown,O=>{const X=O.ctrlKey||O.altKey||O.metaKey;if(O.key==="Tab"&&O.preventDefault(),!X&&O.key.length===1&&re(O.key),["ArrowUp","ArrowDown","Home","End"].includes(O.key)){let oe=Q().filter(le=>!le.disabled).map(le=>le.ref.current);if(["ArrowUp","End"].includes(O.key)&&(oe=oe.slice().reverse()),["ArrowUp","ArrowDown"].includes(O.key)){const le=O.target,ae=oe.indexOf(le);oe=oe.slice(ae+1)}setTimeout(()=>T(oe)),O.preventDefault()}})})})})})})});mi.displayName=Rm;var Tm="SelectItemAlignedPosition",gi=d.forwardRef((e,t)=>{const{__scopeSelect:r,onPlaced:n,...o}=e,s=ot(gt,r),a=st(gt,r),[i,c]=d.useState(null),[u,f]=d.useState(null),p=de(t,A=>f(A)),h=Xr(r),m=d.useRef(!1),w=d.useRef(!0),{viewport:g,selectedItem:v,selectedItemText:b,focusSelectedItem:x}=a,C=d.useCallback(()=>{if(s.trigger&&s.valueNode&&i&&u&&g&&v&&b){const A=s.trigger.getBoundingClientRect(),N=u.getBoundingClientRect(),G=s.valueNode.getBoundingClientRect(),Y=b.getBoundingClientRect();if(s.dir!=="rtl"){const le=Y.left-N.left,ae=G.left-le,xe=A.left-ae,Pe=A.width+xe,De=Math.max(Pe,N.width),Te=window.innerWidth-je,Ze=hs(ae,[je,Math.max(je,Te-De)]);i.style.minWidth=Pe+"px",i.style.left=Ze+"px"}else{const le=N.right-Y.right,ae=window.innerWidth-G.right-le,xe=window.innerWidth-A.right-ae,Pe=A.width+xe,De=Math.max(Pe,N.width),Te=window.innerWidth-je,Ze=hs(ae,[je,Math.max(je,Te-De)]);i.style.minWidth=Pe+"px",i.style.right=Ze+"px"}const ee=h(),Q=window.innerHeight-je*2,q=g.scrollHeight,W=window.getComputedStyle(u),M=parseInt(W.borderTopWidth,10),T=parseInt(W.paddingTop,10),D=parseInt(W.borderBottomWidth,10),k=parseInt(W.paddingBottom,10),H=M+T+q+k+D,U=Math.min(v.offsetHeight*5,H),re=window.getComputedStyle(g),P=parseInt(re.paddingTop,10),$=parseInt(re.paddingBottom,10),z=A.top+A.height/2-je,F=Q-z,te=v.offsetHeight/2,O=v.offsetTop+te,X=M+T+O,ne=H-X;if(X<=z){const le=ee.length>0&&v===ee[ee.length-1].ref.current;i.style.bottom="0px";const ae=u.clientHeight-g.offsetTop-g.offsetHeight,xe=Math.max(F,te+(le?$:0)+ae+D),Pe=X+xe;i.style.height=Pe+"px"}else{const le=ee.length>0&&v===ee[0].ref.current;i.style.top="0px";const xe=Math.max(z,M+g.offsetTop+(le?P:0)+te)+ne;i.style.height=xe+"px",g.scrollTop=X-z+g.offsetTop}i.style.margin=`${je}px 0`,i.style.minHeight=U+"px",i.style.maxHeight=Q+"px",n==null||n(),requestAnimationFrame(()=>m.current=!0)}},[h,s.trigger,s.valueNode,i,u,g,v,b,s.dir,n]);ve(()=>C(),[C]);const[E,R]=d.useState();ve(()=>{u&&R(window.getComputedStyle(u).zIndex)},[u]);const j=d.useCallback(A=>{A&&w.current===!0&&(C(),x==null||x(),w.current=!1)},[C,x]);return l.jsx(Am,{scope:r,contentWrapper:i,shouldExpandOnScrollRef:m,onScrollButtonChange:j,children:l.jsx("div",{ref:c,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:E},children:l.jsx(K.div,{...o,ref:p,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});gi.displayName=Tm;var jm="SelectPopperPosition",Bn=d.forwardRef((e,t)=>{const{__scopeSelect:r,align:n="start",collisionPadding:o=je,...s}=e,a=Zr(r);return l.jsx(mo,{...a,...s,ref:t,align:n,collisionPadding:o,style:{boxSizing:"border-box",...s.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});Bn.displayName=jm;var[Am,vo]=Wt(gt,{}),Wn="SelectViewport",hi=d.forwardRef((e,t)=>{const{__scopeSelect:r,nonce:n,...o}=e,s=st(Wn,r),a=vo(Wn,r),i=de(t,s.onViewportChange),c=d.useRef(0);return l.jsxs(l.Fragment,{children:[l.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:n}),l.jsx(qr.Slot,{scope:r,children:l.jsx(K.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:i,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:J(o.onScroll,u=>{const f=u.currentTarget,{contentWrapper:p,shouldExpandOnScrollRef:h}=a;if(h!=null&&h.current&&p){const m=Math.abs(c.current-f.scrollTop);if(m>0){const w=window.innerHeight-je*2,g=parseFloat(p.style.minHeight),v=parseFloat(p.style.height),b=Math.max(g,v);if(b<w){const x=b+m,C=Math.min(w,x),E=x-C;p.style.height=C+"px",p.style.bottom==="0px"&&(f.scrollTop=E>0?E:0,p.style.justifyContent="flex-end")}}}c.current=f.scrollTop})})})]})});hi.displayName=Wn;var vi="SelectGroup",[_m,Im]=Wt(vi),xi=d.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,o=he();return l.jsx(_m,{scope:r,id:o,children:l.jsx(K.div,{role:"group","aria-labelledby":o,...n,ref:t})})});xi.displayName=vi;var bi="SelectLabel",yi=d.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,o=Im(bi,r);return l.jsx(K.div,{id:o.id,...n,ref:t})});yi.displayName=bi;var jr="SelectItem",[Om,wi]=Wt(jr),Ci=d.forwardRef((e,t)=>{const{__scopeSelect:r,value:n,disabled:o=!1,textValue:s,...a}=e,i=ot(jr,r),c=st(jr,r),u=i.value===n,[f,p]=d.useState(s??""),[h,m]=d.useState(!1),w=de(t,x=>{var C;return(C=c.itemRefCallback)==null?void 0:C.call(c,x,n,o)}),g=he(),v=d.useRef("touch"),b=()=>{o||(i.onValueChange(n),i.onOpenChange(!1))};if(n==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return l.jsx(Om,{scope:r,value:n,disabled:o,textId:g,isSelected:u,onItemTextChange:d.useCallback(x=>{p(C=>C||((x==null?void 0:x.textContent)??"").trim())},[]),children:l.jsx(qr.ItemSlot,{scope:r,value:n,disabled:o,textValue:f,children:l.jsx(K.div,{role:"option","aria-labelledby":g,"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,...a,ref:w,onFocus:J(a.onFocus,()=>m(!0)),onBlur:J(a.onBlur,()=>m(!1)),onClick:J(a.onClick,()=>{v.current!=="mouse"&&b()}),onPointerUp:J(a.onPointerUp,()=>{v.current==="mouse"&&b()}),onPointerDown:J(a.onPointerDown,x=>{v.current=x.pointerType}),onPointerMove:J(a.onPointerMove,x=>{var C;v.current=x.pointerType,o?(C=c.onItemLeave)==null||C.call(c):v.current==="mouse"&&x.currentTarget.focus({preventScroll:!0})}),onPointerLeave:J(a.onPointerLeave,x=>{var C;x.currentTarget===document.activeElement&&((C=c.onItemLeave)==null||C.call(c))}),onKeyDown:J(a.onKeyDown,x=>{var E;((E=c.searchRef)==null?void 0:E.current)!==""&&x.key===" "||(ym.includes(x.key)&&b(),x.key===" "&&x.preventDefault())})})})})});Ci.displayName=jr;var Yt="SelectItemText",Si=d.forwardRef((e,t)=>{const{__scopeSelect:r,className:n,style:o,...s}=e,a=ot(Yt,r),i=st(Yt,r),c=wi(Yt,r),u=Em(Yt,r),[f,p]=d.useState(null),h=de(t,b=>p(b),c.onItemTextChange,b=>{var x;return(x=i.itemTextRefCallback)==null?void 0:x.call(i,b,c.value,c.disabled)}),m=f==null?void 0:f.textContent,w=d.useMemo(()=>l.jsx("option",{value:c.value,disabled:c.disabled,children:m},c.value),[c.disabled,c.value,m]),{onNativeOptionAdd:g,onNativeOptionRemove:v}=u;return ve(()=>(g(w),()=>v(w)),[g,v,w]),l.jsxs(l.Fragment,{children:[l.jsx(K.span,{id:c.textId,...s,ref:h}),c.isSelected&&a.valueNode&&!a.valueNodeHasChildren?$r.createPortal(s.children,a.valueNode):null]})});Si.displayName=Yt;var Ei="SelectItemIndicator",ki=d.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e;return wi(Ei,r).isSelected?l.jsx(K.span,{"aria-hidden":!0,...n,ref:t}):null});ki.displayName=Ei;var zn="SelectScrollUpButton",Pi=d.forwardRef((e,t)=>{const r=st(zn,e.__scopeSelect),n=vo(zn,e.__scopeSelect),[o,s]=d.useState(!1),a=de(t,n.onScrollButtonChange);return ve(()=>{if(r.viewport&&r.isPositioned){let i=function(){const u=c.scrollTop>0;s(u)};const c=r.viewport;return i(),c.addEventListener("scroll",i),()=>c.removeEventListener("scroll",i)}},[r.viewport,r.isPositioned]),o?l.jsx(Ni,{...e,ref:a,onAutoScroll:()=>{const{viewport:i,selectedItem:c}=r;i&&c&&(i.scrollTop=i.scrollTop-c.offsetHeight)}}):null});Pi.displayName=zn;var Hn="SelectScrollDownButton",Ri=d.forwardRef((e,t)=>{const r=st(Hn,e.__scopeSelect),n=vo(Hn,e.__scopeSelect),[o,s]=d.useState(!1),a=de(t,n.onScrollButtonChange);return ve(()=>{if(r.viewport&&r.isPositioned){let i=function(){const u=c.scrollHeight-c.clientHeight,f=Math.ceil(c.scrollTop)<u;s(f)};const c=r.viewport;return i(),c.addEventListener("scroll",i),()=>c.removeEventListener("scroll",i)}},[r.viewport,r.isPositioned]),o?l.jsx(Ni,{...e,ref:a,onAutoScroll:()=>{const{viewport:i,selectedItem:c}=r;i&&c&&(i.scrollTop=i.scrollTop+c.offsetHeight)}}):null});Ri.displayName=Hn;var Ni=d.forwardRef((e,t)=>{const{__scopeSelect:r,onAutoScroll:n,...o}=e,s=st("SelectScrollButton",r),a=d.useRef(null),i=Xr(r),c=d.useCallback(()=>{a.current!==null&&(window.clearInterval(a.current),a.current=null)},[]);return d.useEffect(()=>()=>c(),[c]),ve(()=>{var f;const u=i().find(p=>p.ref.current===document.activeElement);(f=u==null?void 0:u.ref.current)==null||f.scrollIntoView({block:"nearest"})},[i]),l.jsx(K.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:J(o.onPointerDown,()=>{a.current===null&&(a.current=window.setInterval(n,50))}),onPointerMove:J(o.onPointerMove,()=>{var u;(u=s.onItemLeave)==null||u.call(s),a.current===null&&(a.current=window.setInterval(n,50))}),onPointerLeave:J(o.onPointerLeave,()=>{c()})})}),Mm="SelectSeparator",Ti=d.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e;return l.jsx(K.div,{"aria-hidden":!0,...n,ref:t})});Ti.displayName=Mm;var Gn="SelectArrow",Dm=d.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,o=Zr(r),s=ot(Gn,r),a=st(Gn,r);return s.open&&a.position==="popper"?l.jsx(go,{...o,...n,ref:t}):null});Dm.displayName=Gn;var Lm="SelectBubbleInput",ji=d.forwardRef(({__scopeSelect:e,value:t,...r},n)=>{const o=d.useRef(null),s=de(n,o),a=Ya(t);return d.useEffect(()=>{const i=o.current;if(!i)return;const c=window.HTMLSelectElement.prototype,f=Object.getOwnPropertyDescriptor(c,"value").set;if(a!==t&&f){const p=new Event("change",{bubbles:!0});f.call(i,t),i.dispatchEvent(p)}},[a,t]),l.jsx(K.select,{...r,style:{...qa,...r.style},ref:s,defaultValue:t})});ji.displayName=Lm;function Ai(e){return e===""||e===void 0}function _i(e){const t=et(e),r=d.useRef(""),n=d.useRef(0),o=d.useCallback(a=>{const i=r.current+a;t(i),(function c(u){r.current=u,window.clearTimeout(n.current),u!==""&&(n.current=window.setTimeout(()=>c(""),1e3))})(i)},[t]),s=d.useCallback(()=>{r.current="",window.clearTimeout(n.current)},[]);return d.useEffect(()=>()=>window.clearTimeout(n.current),[]),[r,o,s]}function Ii(e,t,r){const o=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,s=r?e.indexOf(r):-1;let a=$m(e,Math.max(s,0));o.length===1&&(a=a.filter(u=>u!==r));const c=a.find(u=>u.textValue.toLowerCase().startsWith(o.toLowerCase()));return c!==r?c:void 0}function $m(e,t){return e.map((r,n)=>e[(t+n)%e.length])}var Fm=si,Oi=ii,Vm=ci,Bm=ui,Wm=di,Mi=fi,zm=hi,Hm=xi,Di=yi,Li=Ci,Gm=Si,Um=ki,$i=Pi,Fi=Ri,Vi=Ti;/**
|
|
71
71
|
* @license lucide-react v0.525.0 - ISC
|
|
72
72
|
*
|
|
73
73
|
* This source code is licensed under the ISC license.
|
|
74
74
|
* See the LICENSE file in the root directory of this source tree.
|
|
75
|
-
*/const
|
|
75
|
+
*/const Km=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Ym=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,r,n)=>n?n.toUpperCase():r.toLowerCase()),Bs=e=>{const t=Ym(e);return t.charAt(0).toUpperCase()+t.slice(1)},Bi=(...e)=>e.filter((t,r,n)=>!!t&&t.trim()!==""&&n.indexOf(t)===r).join(" ").trim(),qm=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};/**
|
|
76
76
|
* @license lucide-react v0.525.0 - ISC
|
|
77
77
|
*
|
|
78
78
|
* This source code is licensed under the ISC license.
|
|
79
79
|
* See the LICENSE file in the root directory of this source tree.
|
|
80
|
-
*/var
|
|
80
|
+
*/var Xm={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"};/**
|
|
81
81
|
* @license lucide-react v0.525.0 - ISC
|
|
82
82
|
*
|
|
83
83
|
* This source code is licensed under the ISC license.
|
|
84
84
|
* See the LICENSE file in the root directory of this source tree.
|
|
85
|
-
*/const
|
|
85
|
+
*/const Zm=S.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:n,className:o="",children:s,iconNode:a,...i},c)=>S.createElement("svg",{ref:c,...Xm,width:t,height:t,stroke:e,strokeWidth:n?Number(r)*24/Number(t):r,className:Bi("lucide",o),...!s&&!qm(i)&&{"aria-hidden":"true"},...i},[...a.map(([u,f])=>S.createElement(u,f)),...Array.isArray(s)?s:[s]]));/**
|
|
86
86
|
* @license lucide-react v0.525.0 - ISC
|
|
87
87
|
*
|
|
88
88
|
* This source code is licensed under the ISC license.
|
|
89
89
|
* See the LICENSE file in the root directory of this source tree.
|
|
90
|
-
*/const
|
|
90
|
+
*/const ye=(e,t)=>{const r=S.forwardRef(({className:n,...o},s)=>S.createElement(Zm,{ref:s,iconNode:t,className:Bi(`lucide-${Km(Bs(e))}`,`lucide-${e}`,n),...o}));return r.displayName=Bs(e),r};/**
|
|
91
91
|
* @license lucide-react v0.525.0 - ISC
|
|
92
92
|
*
|
|
93
93
|
* This source code is licensed under the ISC license.
|
|
94
94
|
* See the LICENSE file in the root directory of this source tree.
|
|
95
|
-
*/const
|
|
95
|
+
*/const Jm=[["path",{d:"m21 16-4 4-4-4",key:"f6ql7i"}],["path",{d:"M17 20V4",key:"1ejh1v"}],["path",{d:"m3 8 4-4 4 4",key:"11wl7u"}],["path",{d:"M7 4v16",key:"1glfcx"}]],Qm=ye("arrow-up-down",Jm);/**
|
|
96
96
|
* @license lucide-react v0.525.0 - ISC
|
|
97
97
|
*
|
|
98
98
|
* This source code is licensed under the ISC license.
|
|
99
99
|
* See the LICENSE file in the root directory of this source tree.
|
|
100
|
-
*/const
|
|
100
|
+
*/const eg=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Wi=ye("check",eg);/**
|
|
101
101
|
* @license lucide-react v0.525.0 - ISC
|
|
102
102
|
*
|
|
103
103
|
* This source code is licensed under the ISC license.
|
|
104
104
|
* See the LICENSE file in the root directory of this source tree.
|
|
105
|
-
*/const
|
|
105
|
+
*/const tg=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],xo=ye("chevron-down",tg);/**
|
|
106
106
|
* @license lucide-react v0.525.0 - ISC
|
|
107
107
|
*
|
|
108
108
|
* This source code is licensed under the ISC license.
|
|
109
109
|
* See the LICENSE file in the root directory of this source tree.
|
|
110
|
-
*/const
|
|
110
|
+
*/const rg=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],ng=ye("chevron-left",rg);/**
|
|
111
111
|
* @license lucide-react v0.525.0 - ISC
|
|
112
112
|
*
|
|
113
113
|
* This source code is licensed under the ISC license.
|
|
114
114
|
* See the LICENSE file in the root directory of this source tree.
|
|
115
|
-
*/const
|
|
115
|
+
*/const og=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],sg=ye("chevron-right",og);/**
|
|
116
116
|
* @license lucide-react v0.525.0 - ISC
|
|
117
117
|
*
|
|
118
118
|
* This source code is licensed under the ISC license.
|
|
119
119
|
* See the LICENSE file in the root directory of this source tree.
|
|
120
|
-
*/const
|
|
120
|
+
*/const ag=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],ig=ye("chevron-up",ag);/**
|
|
121
121
|
* @license lucide-react v0.525.0 - ISC
|
|
122
122
|
*
|
|
123
123
|
* This source code is licensed under the ISC license.
|
|
124
124
|
* See the LICENSE file in the root directory of this source tree.
|
|
125
|
-
*/const
|
|
125
|
+
*/const lg=[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]],cg=ye("chevrons-up-down",lg);/**
|
|
126
126
|
* @license lucide-react v0.525.0 - ISC
|
|
127
127
|
*
|
|
128
128
|
* This source code is licensed under the ISC license.
|
|
129
129
|
* See the LICENSE file in the root directory of this source tree.
|
|
130
|
-
*/const
|
|
130
|
+
*/const ug=[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]],dg=ye("ellipsis",ug);/**
|
|
131
131
|
* @license lucide-react v0.525.0 - ISC
|
|
132
132
|
*
|
|
133
133
|
* This source code is licensed under the ISC license.
|
|
134
134
|
* See the LICENSE file in the root directory of this source tree.
|
|
135
|
-
*/const
|
|
135
|
+
*/const fg=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],pg=ye("info",fg);/**
|
|
136
136
|
* @license lucide-react v0.525.0 - ISC
|
|
137
137
|
*
|
|
138
138
|
* This source code is licensed under the ISC license.
|
|
139
139
|
* See the LICENSE file in the root directory of this source tree.
|
|
140
|
-
*/const
|
|
140
|
+
*/const mg=[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M7 12h10",key:"b7w52i"}],["path",{d:"M10 18h4",key:"1ulq68"}]],gg=ye("list-filter",mg);/**
|
|
141
141
|
* @license lucide-react v0.525.0 - ISC
|
|
142
142
|
*
|
|
143
143
|
* This source code is licensed under the ISC license.
|
|
144
144
|
* See the LICENSE file in the root directory of this source tree.
|
|
145
|
-
*/const
|
|
145
|
+
*/const hg=[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]],vg=ye("mail",hg);/**
|
|
146
146
|
* @license lucide-react v0.525.0 - ISC
|
|
147
147
|
*
|
|
148
148
|
* This source code is licensed under the ISC license.
|
|
149
149
|
* See the LICENSE file in the root directory of this source tree.
|
|
150
|
-
*/const hg=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],vg=Ne("x",hg),Bi=$m,xg=zm,zi=Fm,xo=u.forwardRef(({className:e,children:t,...r},n)=>c.jsxs(_i,{ref:n,className:M(M("flex h-9 w-full min-w-0 items-center justify-between","rounded-md border bg-purple-mutted-700 border-purple-mutted-500","text-sm data-[placeholder]:text-muted-foreground [&:not([data-placeholder])]:text-purple-mutted-300 md:text-sm ","px-3 py-1","shadow-xs transition-[color,box-shadow] outline-none","disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50",e)),...r,children:[t,c.jsx(Vm,{asChild:!0,children:c.jsx(vo,{className:"h-4 w-4 text-purple-mutted-300"})})]}));xo.displayName=_i.displayName;const bo=u.forwardRef(({className:e,...t},r)=>c.jsx(Di,{ref:r,className:M("flex cursor-default items-center justify-center py-1",e),...t,children:c.jsx(ag,{className:"h-4 w-4"})}));bo.displayName=Di.displayName;const yo=u.forwardRef(({className:e,...t},r)=>c.jsx(Li,{ref:r,className:M("flex cursor-default items-center justify-center py-1",e),...t,children:c.jsx(vo,{className:"h-4 w-4"})}));yo.displayName=Li.displayName;const wo=u.forwardRef(({className:e,children:t,position:r="popper",container:n=null,...o},s)=>c.jsx(Wm,{container:n,children:c.jsxs(Ii,{ref:s,className:M("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-purple-mutted-600 border-purple-mutted-500 text-purple-mutted-300 shadow-md 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",r==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:r,...o,children:[c.jsx(bo,{}),c.jsx(Bm,{className:M("p-1",r==="popper"&&"h-[var(--radix-select-trigger-height)] w-[var(--radix-select-trigger-width)]"),children:t}),c.jsx(yo,{})]})}));wo.displayName=Ii.displayName;const Hi=u.forwardRef(({className:e,...t},r)=>c.jsx(Oi,{ref:r,className:M("py-1.5 pl-8 pr-2 text-sm font-semibold",e),...t}));Hi.displayName=Oi.displayName;const Co=u.forwardRef(({className:e,children:t,...r},n)=>c.jsxs(Mi,{ref:n,className:M(M("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none","focus:bg-purple-mutted-500 focus:text-purple-100 text-purple-100","data-[disabled]:pointer-events-none data-[disabled]:opacity-50"),e),...r,children:[c.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:c.jsx(Gm,{children:c.jsx(Vi,{className:"h-4 w-4"})})}),c.jsx(Hm,{children:t})]}));Co.displayName=Mi.displayName;const Gi=u.forwardRef(({className:e,...t},r)=>c.jsx($i,{ref:r,className:M("-mx-1 my-1 h-px bg-muted",e),...t}));Gi.displayName=$i.displayName;var Vs=1,bg=.9,yg=.8,wg=.17,Pn=.1,Rn=.999,Cg=.9999,Sg=.99,Eg=/[\\\/_+.#"@\[\(\{&]/,Pg=/[\\\/_+.#"@\[\(\{&]/g,Rg=/[\s-]/,Ui=/[\s-]/g;function Gn(e,t,r,n,o,s,a){if(s===t.length)return o===e.length?Vs:Sg;var i=`${o},${s}`;if(a[i]!==void 0)return a[i];for(var l=n.charAt(s),d=r.indexOf(l,o),f=0,p,h,g,w;d>=0;)p=Gn(e,t,r,n,d+1,s+1,a),p>f&&(d===o?p*=Vs:Eg.test(e.charAt(d-1))?(p*=yg,g=e.slice(o,d-1).match(Pg),g&&o>0&&(p*=Math.pow(Rn,g.length))):Rg.test(e.charAt(d-1))?(p*=bg,w=e.slice(o,d-1).match(Ui),w&&o>0&&(p*=Math.pow(Rn,w.length))):(p*=wg,o>0&&(p*=Math.pow(Rn,d-o))),e.charAt(d)!==t.charAt(s)&&(p*=Cg)),(p<Pn&&r.charAt(d-1)===n.charAt(s+1)||n.charAt(s+1)===n.charAt(s)&&r.charAt(d-1)!==n.charAt(s))&&(h=Gn(e,t,r,n,d+1,s+2,a),h*Pn>p&&(p=h*Pn)),p>f&&(f=p),d=r.indexOf(l,d+1);return a[i]=f,f}function Ws(e){return e.toLowerCase().replace(Ui," ")}function kg(e,t,r){return e=r&&r.length>0?`${e+" "+r.join(" ")}`:e,Gn(e,t,Ws(e),Ws(t),0,0,{})}function Ng(e,t){return u.useReducer((r,n)=>t[r][n]??r,e)}var qe=e=>{const{present:t,children:r}=e,n=Tg(t),o=typeof r=="function"?r({present:n.isPresent}):u.Children.only(r),s=de(n.ref,jg(o));return typeof r=="function"||n.isPresent?u.cloneElement(o,{ref:s}):null};qe.displayName="Presence";function Tg(e){const[t,r]=u.useState(),n=u.useRef(null),o=u.useRef(e),s=u.useRef("none"),a=e?"mounted":"unmounted",[i,l]=Ng(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return u.useEffect(()=>{const d=wr(n.current);s.current=i==="mounted"?d:"none"},[i]),ve(()=>{const d=n.current,f=o.current;if(f!==e){const h=s.current,g=wr(d);e?l("MOUNT"):g==="none"||(d==null?void 0:d.display)==="none"?l("UNMOUNT"):l(f&&h!==g?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,l]),ve(()=>{if(t){let d;const f=t.ownerDocument.defaultView??window,p=g=>{const m=wr(n.current).includes(CSS.escape(g.animationName));if(g.target===t&&m&&(l("ANIMATION_END"),!o.current)){const v=t.style.animationFillMode;t.style.animationFillMode="forwards",d=f.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=v)})}},h=g=>{g.target===t&&(s.current=wr(n.current))};return t.addEventListener("animationstart",h),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{f.clearTimeout(d),t.removeEventListener("animationstart",h),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(i),ref:u.useCallback(d=>{n.current=d?getComputedStyle(d):null,r(d)},[])}}function wr(e){return(e==null?void 0:e.animationName)||"none"}function jg(e){var n,o;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var Jr="Dialog",[Ki,Ty]=ke(Jr),[Ag,Ie]=Ki(Jr),Yi=e=>{const{__scopeDialog:t,children:r,open:n,defaultOpen:o,onOpenChange:s,modal:a=!0}=e,i=u.useRef(null),l=u.useRef(null),[d,f]=Ee({prop:n,defaultProp:o??!1,onChange:s,caller:Jr});return c.jsx(Ag,{scope:t,triggerRef:i,contentRef:l,contentId:he(),titleId:he(),descriptionId:he(),open:d,onOpenChange:f,onOpenToggle:u.useCallback(()=>f(p=>!p),[f]),modal:a,children:r})};Yi.displayName=Jr;var qi="DialogTrigger",Xi=u.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Ie(qi,r),s=de(t,o.triggerRef);return c.jsx(U.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Po(o.open),...n,ref:s,onClick:Z(e.onClick,o.onOpenToggle)})});Xi.displayName=qi;var So="DialogPortal",[_g,Zi]=Ki(So,{forceMount:void 0}),Ji=e=>{const{__scopeDialog:t,forceMount:r,children:n,container:o}=e,s=Ie(So,t);return c.jsx(_g,{scope:t,forceMount:r,children:u.Children.map(n,a=>c.jsx(qe,{present:r||s.open,children:c.jsx(sr,{asChild:!0,container:o,children:a})}))})};Ji.displayName=So;var Ar="DialogOverlay",Qi=u.forwardRef((e,t)=>{const r=Zi(Ar,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,s=Ie(Ar,e.__scopeDialog);return s.modal?c.jsx(qe,{present:n||s.open,children:c.jsx(Og,{...o,ref:t})}):null});Qi.displayName=Ar;var Ig=ft("DialogOverlay.RemoveScroll"),Og=u.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Ie(Ar,r);return c.jsx(Yr,{as:Ig,allowPinchZoom:!0,shards:[o.contentRef],children:c.jsx(U.div,{"data-state":Po(o.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),ht="DialogContent",ec=u.forwardRef((e,t)=>{const r=Zi(ht,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,s=Ie(ht,e.__scopeDialog);return c.jsx(qe,{present:n||s.open,children:s.modal?c.jsx(Mg,{...o,ref:t}):c.jsx(Dg,{...o,ref:t})})});ec.displayName=ht;var Mg=u.forwardRef((e,t)=>{const r=Ie(ht,e.__scopeDialog),n=u.useRef(null),o=de(t,r.contentRef,n);return u.useEffect(()=>{const s=n.current;if(s)return go(s)},[]),c.jsx(tc,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Z(e.onCloseAutoFocus,s=>{var a;s.preventDefault(),(a=r.triggerRef.current)==null||a.focus()}),onPointerDownOutside:Z(e.onPointerDownOutside,s=>{const a=s.detail.originalEvent,i=a.button===0&&a.ctrlKey===!0;(a.button===2||i)&&s.preventDefault()}),onFocusOutside:Z(e.onFocusOutside,s=>s.preventDefault())})}),Dg=u.forwardRef((e,t)=>{const r=Ie(ht,e.__scopeDialog),n=u.useRef(!1),o=u.useRef(!1);return c.jsx(tc,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{var a,i;(a=e.onCloseAutoFocus)==null||a.call(e,s),s.defaultPrevented||(n.current||(i=r.triggerRef.current)==null||i.focus(),s.preventDefault()),n.current=!1,o.current=!1},onInteractOutside:s=>{var l,d;(l=e.onInteractOutside)==null||l.call(e,s),s.defaultPrevented||(n.current=!0,s.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const a=s.target;((d=r.triggerRef.current)==null?void 0:d.contains(a))&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&o.current&&s.preventDefault()}})}),tc=u.forwardRef((e,t)=>{const{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:s,...a}=e,i=Ie(ht,r),l=u.useRef(null),d=de(t,l);return ro(),c.jsxs(c.Fragment,{children:[c.jsx(Wr,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:s,children:c.jsx(nr,{role:"dialog",id:i.contentId,"aria-describedby":i.descriptionId,"aria-labelledby":i.titleId,"data-state":Po(i.open),...a,ref:d,onDismiss:()=>i.onOpenChange(!1)})}),c.jsxs(c.Fragment,{children:[c.jsx(Lg,{titleId:i.titleId}),c.jsx(Fg,{contentRef:l,descriptionId:i.descriptionId})]})]})}),Eo="DialogTitle",rc=u.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Ie(Eo,r);return c.jsx(U.h2,{id:o.titleId,...n,ref:t})});rc.displayName=Eo;var nc="DialogDescription",oc=u.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Ie(nc,r);return c.jsx(U.p,{id:o.descriptionId,...n,ref:t})});oc.displayName=nc;var sc="DialogClose",ac=u.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Ie(sc,r);return c.jsx(U.button,{type:"button",...n,ref:t,onClick:Z(e.onClick,()=>o.onOpenChange(!1))})});ac.displayName=sc;function Po(e){return e?"open":"closed"}var ic="DialogTitleWarning",[jy,cc]=Od(ic,{contentName:ht,titleName:Eo,docsSlug:"dialog"}),Lg=({titleId:e})=>{const t=cc(ic),r=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
|
150
|
+
*/const xg=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],zi=ye("search",xg);/**
|
|
151
|
+
* @license lucide-react v0.525.0 - ISC
|
|
152
|
+
*
|
|
153
|
+
* This source code is licensed under the ISC license.
|
|
154
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
155
|
+
*/const bg=[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}]],yg=ye("trash",bg);/**
|
|
156
|
+
* @license lucide-react v0.525.0 - ISC
|
|
157
|
+
*
|
|
158
|
+
* This source code is licensed under the ISC license.
|
|
159
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
160
|
+
*/const wg=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],Cg=ye("triangle-alert",wg);/**
|
|
161
|
+
* @license lucide-react v0.525.0 - ISC
|
|
162
|
+
*
|
|
163
|
+
* This source code is licensed under the ISC license.
|
|
164
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
165
|
+
*/const Sg=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Hi=ye("x",Sg),Gi=Fm,Eg=Hm,Ui=Vm,bo=d.forwardRef(({className:e,children:t,...r},n)=>l.jsxs(Oi,{ref:n,className:I(I("flex h-9 w-full min-w-0 items-center justify-between","rounded-md border bg-purple-mutted-700 border-purple-mutted-500","text-sm data-[placeholder]:text-muted-foreground [&:not([data-placeholder])]:text-purple-mutted-300 md:text-sm ","px-3 py-1","shadow-xs transition-[color,box-shadow] outline-none","disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50",e)),...r,children:[t,l.jsx(Bm,{asChild:!0,children:l.jsx(xo,{className:"h-4 w-4 text-purple-mutted-300"})})]}));bo.displayName=Oi.displayName;const yo=d.forwardRef(({className:e,...t},r)=>l.jsx($i,{ref:r,className:I("flex cursor-default items-center justify-center py-1",e),...t,children:l.jsx(ig,{className:"h-4 w-4"})}));yo.displayName=$i.displayName;const wo=d.forwardRef(({className:e,...t},r)=>l.jsx(Fi,{ref:r,className:I("flex cursor-default items-center justify-center py-1",e),...t,children:l.jsx(xo,{className:"h-4 w-4"})}));wo.displayName=Fi.displayName;const Co=d.forwardRef(({className:e,children:t,position:r="popper",container:n=null,...o},s)=>l.jsx(Wm,{container:n,children:l.jsxs(Mi,{ref:s,className:I("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-purple-mutted-600 border-purple-mutted-500 text-purple-mutted-300 shadow-md 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",r==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:r,...o,children:[l.jsx(yo,{}),l.jsx(zm,{className:I("p-1",r==="popper"&&"h-[var(--radix-select-trigger-height)] w-[var(--radix-select-trigger-width)]"),children:t}),l.jsx(wo,{})]})}));Co.displayName=Mi.displayName;const Ki=d.forwardRef(({className:e,...t},r)=>l.jsx(Di,{ref:r,className:I("py-1.5 pl-8 pr-2 text-sm font-semibold",e),...t}));Ki.displayName=Di.displayName;const So=d.forwardRef(({className:e,children:t,...r},n)=>l.jsxs(Li,{ref:n,className:I(I("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none","focus:bg-purple-mutted-500 focus:text-purple-100 text-purple-100","data-[disabled]:pointer-events-none data-[disabled]:opacity-50"),e),...r,children:[l.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:l.jsx(Um,{children:l.jsx(Wi,{className:"h-4 w-4"})})}),l.jsx(Gm,{children:t})]}));So.displayName=Li.displayName;const Yi=d.forwardRef(({className:e,...t},r)=>l.jsx(Vi,{ref:r,className:I("-mx-1 my-1 h-px bg-muted",e),...t}));Yi.displayName=Vi.displayName;var Ws=1,kg=.9,Pg=.8,Rg=.17,Pn=.1,Rn=.999,Ng=.9999,Tg=.99,jg=/[\\\/_+.#"@\[\(\{&]/,Ag=/[\\\/_+.#"@\[\(\{&]/g,_g=/[\s-]/,qi=/[\s-]/g;function Un(e,t,r,n,o,s,a){if(s===t.length)return o===e.length?Ws:Tg;var i=`${o},${s}`;if(a[i]!==void 0)return a[i];for(var c=n.charAt(s),u=r.indexOf(c,o),f=0,p,h,m,w;u>=0;)p=Un(e,t,r,n,u+1,s+1,a),p>f&&(u===o?p*=Ws:jg.test(e.charAt(u-1))?(p*=Pg,m=e.slice(o,u-1).match(Ag),m&&o>0&&(p*=Math.pow(Rn,m.length))):_g.test(e.charAt(u-1))?(p*=kg,w=e.slice(o,u-1).match(qi),w&&o>0&&(p*=Math.pow(Rn,w.length))):(p*=Rg,o>0&&(p*=Math.pow(Rn,u-o))),e.charAt(u)!==t.charAt(s)&&(p*=Ng)),(p<Pn&&r.charAt(u-1)===n.charAt(s+1)||n.charAt(s+1)===n.charAt(s)&&r.charAt(u-1)!==n.charAt(s))&&(h=Un(e,t,r,n,u+1,s+2,a),h*Pn>p&&(p=h*Pn)),p>f&&(f=p),u=r.indexOf(c,u+1);return a[i]=f,f}function zs(e){return e.toLowerCase().replace(qi," ")}function Ig(e,t,r){return e=r&&r.length>0?`${e+" "+r.join(" ")}`:e,Un(e,t,zs(e),zs(t),0,0,{})}function Og(e,t){return d.useReducer((r,n)=>t[r][n]??r,e)}var qe=e=>{const{present:t,children:r}=e,n=Mg(t),o=typeof r=="function"?r({present:n.isPresent}):d.Children.only(r),s=de(n.ref,Dg(o));return typeof r=="function"||n.isPresent?d.cloneElement(o,{ref:s}):null};qe.displayName="Presence";function Mg(e){const[t,r]=d.useState(),n=d.useRef(null),o=d.useRef(e),s=d.useRef("none"),a=e?"mounted":"unmounted",[i,c]=Og(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return d.useEffect(()=>{const u=wr(n.current);s.current=i==="mounted"?u:"none"},[i]),ve(()=>{const u=n.current,f=o.current;if(f!==e){const h=s.current,m=wr(u);e?c("MOUNT"):m==="none"||(u==null?void 0:u.display)==="none"?c("UNMOUNT"):c(f&&h!==m?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,c]),ve(()=>{if(t){let u;const f=t.ownerDocument.defaultView??window,p=m=>{const g=wr(n.current).includes(CSS.escape(m.animationName));if(m.target===t&&g&&(c("ANIMATION_END"),!o.current)){const v=t.style.animationFillMode;t.style.animationFillMode="forwards",u=f.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=v)})}},h=m=>{m.target===t&&(s.current=wr(n.current))};return t.addEventListener("animationstart",h),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{f.clearTimeout(u),t.removeEventListener("animationstart",h),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(i),ref:d.useCallback(u=>{n.current=u?getComputedStyle(u):null,r(u)},[])}}function wr(e){return(e==null?void 0:e.animationName)||"none"}function Dg(e){var n,o;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var Jr="Dialog",[Xi,Gy]=Ne(Jr),[Lg,Ie]=Xi(Jr),Zi=e=>{const{__scopeDialog:t,children:r,open:n,defaultOpen:o,onOpenChange:s,modal:a=!0}=e,i=d.useRef(null),c=d.useRef(null),[u,f]=ke({prop:n,defaultProp:o??!1,onChange:s,caller:Jr});return l.jsx(Lg,{scope:t,triggerRef:i,contentRef:c,contentId:he(),titleId:he(),descriptionId:he(),open:u,onOpenChange:f,onOpenToggle:d.useCallback(()=>f(p=>!p),[f]),modal:a,children:r})};Zi.displayName=Jr;var Ji="DialogTrigger",Qi=d.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Ie(Ji,r),s=de(t,o.triggerRef);return l.jsx(K.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Po(o.open),...n,ref:s,onClick:J(e.onClick,o.onOpenToggle)})});Qi.displayName=Ji;var Eo="DialogPortal",[$g,el]=Xi(Eo,{forceMount:void 0}),tl=e=>{const{__scopeDialog:t,forceMount:r,children:n,container:o}=e,s=Ie(Eo,t);return l.jsx($g,{scope:t,forceMount:r,children:d.Children.map(n,a=>l.jsx(qe,{present:r||s.open,children:l.jsx(sr,{asChild:!0,container:o,children:a})}))})};tl.displayName=Eo;var Ar="DialogOverlay",rl=d.forwardRef((e,t)=>{const r=el(Ar,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,s=Ie(Ar,e.__scopeDialog);return s.modal?l.jsx(qe,{present:n||s.open,children:l.jsx(Vg,{...o,ref:t})}):null});rl.displayName=Ar;var Fg=ft("DialogOverlay.RemoveScroll"),Vg=d.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Ie(Ar,r);return l.jsx(Yr,{as:Fg,allowPinchZoom:!0,shards:[o.contentRef],children:l.jsx(K.div,{"data-state":Po(o.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),ht="DialogContent",nl=d.forwardRef((e,t)=>{const r=el(ht,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,s=Ie(ht,e.__scopeDialog);return l.jsx(qe,{present:n||s.open,children:s.modal?l.jsx(Bg,{...o,ref:t}):l.jsx(Wg,{...o,ref:t})})});nl.displayName=ht;var Bg=d.forwardRef((e,t)=>{const r=Ie(ht,e.__scopeDialog),n=d.useRef(null),o=de(t,r.contentRef,n);return d.useEffect(()=>{const s=n.current;if(s)return ho(s)},[]),l.jsx(ol,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:J(e.onCloseAutoFocus,s=>{var a;s.preventDefault(),(a=r.triggerRef.current)==null||a.focus()}),onPointerDownOutside:J(e.onPointerDownOutside,s=>{const a=s.detail.originalEvent,i=a.button===0&&a.ctrlKey===!0;(a.button===2||i)&&s.preventDefault()}),onFocusOutside:J(e.onFocusOutside,s=>s.preventDefault())})}),Wg=d.forwardRef((e,t)=>{const r=Ie(ht,e.__scopeDialog),n=d.useRef(!1),o=d.useRef(!1);return l.jsx(ol,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{var a,i;(a=e.onCloseAutoFocus)==null||a.call(e,s),s.defaultPrevented||(n.current||(i=r.triggerRef.current)==null||i.focus(),s.preventDefault()),n.current=!1,o.current=!1},onInteractOutside:s=>{var c,u;(c=e.onInteractOutside)==null||c.call(e,s),s.defaultPrevented||(n.current=!0,s.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const a=s.target;((u=r.triggerRef.current)==null?void 0:u.contains(a))&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&o.current&&s.preventDefault()}})}),ol=d.forwardRef((e,t)=>{const{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:s,...a}=e,i=Ie(ht,r),c=d.useRef(null),u=de(t,c);return no(),l.jsxs(l.Fragment,{children:[l.jsx(Br,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:s,children:l.jsx(nr,{role:"dialog",id:i.contentId,"aria-describedby":i.descriptionId,"aria-labelledby":i.titleId,"data-state":Po(i.open),...a,ref:u,onDismiss:()=>i.onOpenChange(!1)})}),l.jsxs(l.Fragment,{children:[l.jsx(zg,{titleId:i.titleId}),l.jsx(Gg,{contentRef:c,descriptionId:i.descriptionId})]})]})}),ko="DialogTitle",sl=d.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Ie(ko,r);return l.jsx(K.h2,{id:o.titleId,...n,ref:t})});sl.displayName=ko;var al="DialogDescription",il=d.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Ie(al,r);return l.jsx(K.p,{id:o.descriptionId,...n,ref:t})});il.displayName=al;var ll="DialogClose",cl=d.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Ie(ll,r);return l.jsx(K.button,{type:"button",...n,ref:t,onClick:J(e.onClick,()=>o.onOpenChange(!1))})});cl.displayName=ll;function Po(e){return e?"open":"closed"}var ul="DialogTitleWarning",[Uy,dl]=Md(ul,{contentName:ht,titleName:ko,docsSlug:"dialog"}),zg=({titleId:e})=>{const t=dl(ul),r=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
|
151
166
|
|
|
152
167
|
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
153
168
|
|
|
154
|
-
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return u.useEffect(()=>{e&&(document.getElementById(e)||console.error(r))},[r,e]),null},$g="DialogDescriptionWarning",Fg=({contentRef:e,descriptionId:t})=>{const n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${cc($g).contentName}}.`;return u.useEffect(()=>{var s;const o=(s=e.current)==null?void 0:s.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(n))},[n,e,t]),null},lc=Yi,Vg=Xi,uc=Ji,dc=Qi,fc=ec,Wg=rc,Bg=oc,pc=ac,Kt='[cmdk-group=""]',kn='[cmdk-group-items=""]',zg='[cmdk-group-heading=""]',mc='[cmdk-item=""]',Bs=`${mc}:not([aria-disabled="true"])`,Un="cmdk-item-select",kt="data-value",Hg=(e,t,r)=>kg(e,t,r),gc=u.createContext(void 0),ar=()=>u.useContext(gc),hc=u.createContext(void 0),Ro=()=>u.useContext(hc),vc=u.createContext(void 0),xc=u.forwardRef((e,t)=>{let r=Nt(()=>{var R,$;return{search:"",value:($=(R=e.value)!=null?R:e.defaultValue)!=null?$:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),n=Nt(()=>new Set),o=Nt(()=>new Map),s=Nt(()=>new Map),a=Nt(()=>new Set),i=bc(e),{label:l,children:d,value:f,onValueChange:p,filter:h,shouldFilter:g,loop:w,disablePointerSelection:m=!1,vimBindings:v=!0,...y}=e,x=he(),C=he(),E=he(),k=u.useRef(null),j=th();vt(()=>{if(f!==void 0){let R=f.trim();r.current.value=R,A.emit()}},[f]),vt(()=>{j(6,Y)},[]);let A=u.useMemo(()=>({subscribe:R=>(a.current.add(R),()=>a.current.delete(R)),snapshot:()=>r.current,setState:(R,$,B)=>{var F,Q,I,q;if(!Object.is(r.current[R],$)){if(r.current[R]=$,R==="search")J(),K(),j(1,ee);else if(R==="value"){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let te=document.getElementById(E);te?te.focus():(F=document.getElementById(x))==null||F.focus()}if(j(7,()=>{var te;r.current.selectedItemId=(te=z())==null?void 0:te.id,A.emit()}),B||j(5,Y),((Q=i.current)==null?void 0:Q.value)!==void 0){let te=$??"";(q=(I=i.current).onValueChange)==null||q.call(I,te);return}}A.emit()}},emit:()=>{a.current.forEach(R=>R())}}),[]),N=u.useMemo(()=>({value:(R,$,B)=>{var F;$!==((F=s.current.get(R))==null?void 0:F.value)&&(s.current.set(R,{value:$,keywords:B}),r.current.filtered.items.set(R,G($,B)),j(2,()=>{K(),A.emit()}))},item:(R,$)=>(n.current.add(R),$&&(o.current.has($)?o.current.get($).add(R):o.current.set($,new Set([R]))),j(3,()=>{J(),K(),r.current.value||ee(),A.emit()}),()=>{s.current.delete(R),n.current.delete(R),r.current.filtered.items.delete(R);let B=z();j(4,()=>{J(),(B==null?void 0:B.getAttribute("id"))===R&&ee(),A.emit()})}),group:R=>(o.current.has(R)||o.current.set(R,new Set),()=>{s.current.delete(R),o.current.delete(R)}),filter:()=>i.current.shouldFilter,label:l||e["aria-label"],getDisablePointerSelection:()=>i.current.disablePointerSelection,listId:x,inputId:E,labelId:C,listInnerRef:k}),[]);function G(R,$){var B,F;let Q=(F=(B=i.current)==null?void 0:B.filter)!=null?F:Hg;return R?Q(R,r.current.search,$):0}function K(){if(!r.current.search||i.current.shouldFilter===!1)return;let R=r.current.filtered.items,$=[];r.current.filtered.groups.forEach(F=>{let Q=o.current.get(F),I=0;Q.forEach(q=>{let te=R.get(q);I=Math.max(te,I)}),$.push([F,I])});let B=k.current;O().sort((F,Q)=>{var I,q;let te=F.getAttribute("id"),re=Q.getAttribute("id");return((I=R.get(re))!=null?I:0)-((q=R.get(te))!=null?q:0)}).forEach(F=>{let Q=F.closest(kn);Q?Q.appendChild(F.parentElement===Q?F:F.closest(`${kn} > *`)):B.appendChild(F.parentElement===B?F:F.closest(`${kn} > *`))}),$.sort((F,Q)=>Q[1]-F[1]).forEach(F=>{var Q;let I=(Q=k.current)==null?void 0:Q.querySelector(`${Kt}[${kt}="${encodeURIComponent(F[0])}"]`);I==null||I.parentElement.appendChild(I)})}function ee(){let R=O().find(B=>B.getAttribute("aria-disabled")!=="true"),$=R==null?void 0:R.getAttribute(kt);A.setState("value",$||void 0)}function J(){var R,$,B,F;if(!r.current.search||i.current.shouldFilter===!1){r.current.filtered.count=n.current.size;return}r.current.filtered.groups=new Set;let Q=0;for(let I of n.current){let q=($=(R=s.current.get(I))==null?void 0:R.value)!=null?$:"",te=(F=(B=s.current.get(I))==null?void 0:B.keywords)!=null?F:[],re=G(q,te);r.current.filtered.items.set(I,re),re>0&&Q++}for(let[I,q]of o.current)for(let te of q)if(r.current.filtered.items.get(te)>0){r.current.filtered.groups.add(I);break}r.current.filtered.count=Q}function Y(){var R,$,B;let F=z();F&&(((R=F.parentElement)==null?void 0:R.firstChild)===F&&((B=($=F.closest(Kt))==null?void 0:$.querySelector(zg))==null||B.scrollIntoView({block:"nearest"})),F.scrollIntoView({block:"nearest"}))}function z(){var R;return(R=k.current)==null?void 0:R.querySelector(`${mc}[aria-selected="true"]`)}function O(){var R;return Array.from(((R=k.current)==null?void 0:R.querySelectorAll(Bs))||[])}function T(R){let $=O()[R];$&&A.setState("value",$.getAttribute(kt))}function D(R){var $;let B=z(),F=O(),Q=F.findIndex(q=>q===B),I=F[Q+R];($=i.current)!=null&&$.loop&&(I=Q+R<0?F[F.length-1]:Q+R===F.length?F[0]:F[Q+R]),I&&A.setState("value",I.getAttribute(kt))}function P(R){let $=z(),B=$==null?void 0:$.closest(Kt),F;for(;B&&!F;)B=R>0?Qg(B,Kt):eh(B,Kt),F=B==null?void 0:B.querySelector(Bs);F?A.setState("value",F.getAttribute(kt)):D(R)}let H=()=>T(O().length-1),oe=R=>{R.preventDefault(),R.metaKey?H():R.altKey?P(1):D(1)},le=R=>{R.preventDefault(),R.metaKey?T(0):R.altKey?P(-1):D(-1)};return u.createElement(U.div,{ref:t,tabIndex:-1,...y,"cmdk-root":"",onKeyDown:R=>{var $;($=y.onKeyDown)==null||$.call(y,R);let B=R.nativeEvent.isComposing||R.keyCode===229;if(!(R.defaultPrevented||B))switch(R.key){case"n":case"j":{v&&R.ctrlKey&&oe(R);break}case"ArrowDown":{oe(R);break}case"p":case"k":{v&&R.ctrlKey&&le(R);break}case"ArrowUp":{le(R);break}case"Home":{R.preventDefault(),T(0);break}case"End":{R.preventDefault(),H();break}case"Enter":{R.preventDefault();let F=z();if(F){let Q=new Event(Un);F.dispatchEvent(Q)}}}}},u.createElement("label",{"cmdk-label":"",htmlFor:N.inputId,id:N.labelId,style:nh},l),Qr(e,R=>u.createElement(hc.Provider,{value:A},u.createElement(gc.Provider,{value:N},R))))}),Gg=u.forwardRef((e,t)=>{var r,n;let o=he(),s=u.useRef(null),a=u.useContext(vc),i=ar(),l=bc(e),d=(n=(r=l.current)==null?void 0:r.forceMount)!=null?n:a==null?void 0:a.forceMount;vt(()=>{if(!d)return i.item(o,a==null?void 0:a.id)},[d]);let f=yc(o,s,[e.value,e.children,s],e.keywords),p=Ro(),h=nt(j=>j.value&&j.value===f.current),g=nt(j=>d||i.filter()===!1?!0:j.search?j.filtered.items.get(o)>0:!0);u.useEffect(()=>{let j=s.current;if(!(!j||e.disabled))return j.addEventListener(Un,w),()=>j.removeEventListener(Un,w)},[g,e.onSelect,e.disabled]);function w(){var j,A;m(),(A=(j=l.current).onSelect)==null||A.call(j,f.current)}function m(){p.setState("value",f.current,!0)}if(!g)return null;let{disabled:v,value:y,onSelect:x,forceMount:C,keywords:E,...k}=e;return u.createElement(U.div,{ref:dt(s,t),...k,id:o,"cmdk-item":"",role:"option","aria-disabled":!!v,"aria-selected":!!h,"data-disabled":!!v,"data-selected":!!h,onPointerMove:v||i.getDisablePointerSelection()?void 0:m,onClick:v?void 0:w},e.children)}),Ug=u.forwardRef((e,t)=>{let{heading:r,children:n,forceMount:o,...s}=e,a=he(),i=u.useRef(null),l=u.useRef(null),d=he(),f=ar(),p=nt(g=>o||f.filter()===!1?!0:g.search?g.filtered.groups.has(a):!0);vt(()=>f.group(a),[]),yc(a,i,[e.value,e.heading,l]);let h=u.useMemo(()=>({id:a,forceMount:o}),[o]);return u.createElement(U.div,{ref:dt(i,t),...s,"cmdk-group":"",role:"presentation",hidden:p?void 0:!0},r&&u.createElement("div",{ref:l,"cmdk-group-heading":"","aria-hidden":!0,id:d},r),Qr(e,g=>u.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":r?d:void 0},u.createElement(vc.Provider,{value:h},g))))}),Kg=u.forwardRef((e,t)=>{let{alwaysRender:r,...n}=e,o=u.useRef(null),s=nt(a=>!a.search);return!r&&!s?null:u.createElement(U.div,{ref:dt(o,t),...n,"cmdk-separator":"",role:"separator"})}),Yg=u.forwardRef((e,t)=>{let{onValueChange:r,...n}=e,o=e.value!=null,s=Ro(),a=nt(d=>d.search),i=nt(d=>d.selectedItemId),l=ar();return u.useEffect(()=>{e.value!=null&&s.setState("search",e.value)},[e.value]),u.createElement(U.input,{ref:t,...n,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":l.listId,"aria-labelledby":l.labelId,"aria-activedescendant":i,id:l.inputId,type:"text",value:o?e.value:a,onChange:d=>{o||s.setState("search",d.target.value),r==null||r(d.target.value)}})}),qg=u.forwardRef((e,t)=>{let{children:r,label:n="Suggestions",...o}=e,s=u.useRef(null),a=u.useRef(null),i=nt(d=>d.selectedItemId),l=ar();return u.useEffect(()=>{if(a.current&&s.current){let d=a.current,f=s.current,p,h=new ResizeObserver(()=>{p=requestAnimationFrame(()=>{let g=d.offsetHeight;f.style.setProperty("--cmdk-list-height",g.toFixed(1)+"px")})});return h.observe(d),()=>{cancelAnimationFrame(p),h.unobserve(d)}}},[]),u.createElement(U.div,{ref:dt(s,t),...o,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":i,"aria-label":n,id:l.listId},Qr(e,d=>u.createElement("div",{ref:dt(a,l.listInnerRef),"cmdk-list-sizer":""},d)))}),Xg=u.forwardRef((e,t)=>{let{open:r,onOpenChange:n,overlayClassName:o,contentClassName:s,container:a,...i}=e;return u.createElement(lc,{open:r,onOpenChange:n},u.createElement(uc,{container:a},u.createElement(dc,{"cmdk-overlay":"",className:o}),u.createElement(fc,{"aria-label":e.label,"cmdk-dialog":"",className:s},u.createElement(xc,{ref:t,...i}))))}),Zg=u.forwardRef((e,t)=>nt(r=>r.filtered.count===0)?u.createElement(U.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null),Jg=u.forwardRef((e,t)=>{let{progress:r,children:n,label:o="Loading...",...s}=e;return u.createElement(U.div,{ref:t,...s,"cmdk-loading":"",role:"progressbar","aria-valuenow":r,"aria-valuemin":0,"aria-valuemax":100,"aria-label":o},Qr(e,a=>u.createElement("div",{"aria-hidden":!0},a)))}),zt=Object.assign(xc,{List:qg,Item:Gg,Input:Yg,Group:Ug,Separator:Kg,Dialog:Xg,Empty:Zg,Loading:Jg});function Qg(e,t){let r=e.nextElementSibling;for(;r;){if(r.matches(t))return r;r=r.nextElementSibling}}function eh(e,t){let r=e.previousElementSibling;for(;r;){if(r.matches(t))return r;r=r.previousElementSibling}}function bc(e){let t=u.useRef(e);return vt(()=>{t.current=e}),t}var vt=typeof window>"u"?u.useEffect:u.useLayoutEffect;function Nt(e){let t=u.useRef();return t.current===void 0&&(t.current=e()),t}function nt(e){let t=Ro(),r=()=>e(t.snapshot());return u.useSyncExternalStore(t.subscribe,r,r)}function yc(e,t,r,n=[]){let o=u.useRef(),s=ar();return vt(()=>{var a;let i=(()=>{var d;for(let f of r){if(typeof f=="string")return f.trim();if(typeof f=="object"&&"current"in f)return f.current?(d=f.current.textContent)==null?void 0:d.trim():o.current}})(),l=n.map(d=>d.trim());s.value(e,i,l),(a=t.current)==null||a.setAttribute(kt,i),o.current=i}),o}var th=()=>{let[e,t]=u.useState(),r=Nt(()=>new Map);return vt(()=>{r.current.forEach(n=>n()),r.current=new Map},[e]),(n,o)=>{r.current.set(n,o),t({})}};function rh(e){let t=e.type;return typeof t=="function"?t(e.props):"render"in t?t.render(e.props):e}function Qr({asChild:e,children:t},r){return e&&u.isValidElement(t)?u.cloneElement(rh(t),{ref:t.ref},r(t.props.children)):r(t)}var nh={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};function oh({...e}){return c.jsx(lc,{"data-slot":"dialog",...e})}function sh({...e}){return c.jsx(Vg,{"data-slot":"dialog-trigger",...e})}function wc({...e}){return c.jsx(uc,{"data-slot":"dialog-portal",...e})}function ah({...e}){return c.jsx(pc,{"data-slot":"dialog-close",...e})}function Cc({className:e,...t}){return c.jsx(dc,{"data-slot":"dialog-overlay",className:M("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-foreground/50 dark:bg-foreground/50",e),...t})}function ih({className:e,children:t,showCloseButton:r=!0,...n}){return c.jsxs(wc,{"data-slot":"dialog-portal",children:[c.jsx(Cc,{}),c.jsxs(fc,{"data-slot":"dialog-content",className:M("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg dark:bg-background dark:border-border",e),...n,children:[t,r&&c.jsxs(pc,{"data-slot":"dialog-close",className:"ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",children:[c.jsx(vg,{}),c.jsx("span",{className:"sr-only",children:"Close"})]})]})]})}function ch({className:e,...t}){return c.jsx("div",{"data-slot":"dialog-header",className:M("flex flex-col gap-2 text-center sm:text-left",e),...t})}function lh({className:e,...t}){return c.jsx("div",{"data-slot":"dialog-footer",className:M("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",e),...t})}function uh({className:e,...t}){return c.jsx(Wg,{"data-slot":"dialog-title",className:M("text-lg leading-none font-semibold",e),...t})}function dh({className:e,...t}){return c.jsx(Bg,{"data-slot":"dialog-description",className:M("text-muted-foreground text-sm dark:text-muted-foreground",e),...t})}function fh({className:e,...t}){return c.jsx(zt,{"data-slot":"command",className:M("bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",e),...t})}function ph({className:e,...t}){return c.jsxs("div",{"data-slot":"command-input-wrapper",className:"flex h-9 items-center gap-2 border-b border-purple-mutted-400 px-3 text-purple-mutted-300",children:[c.jsx(Wi,{className:"size-4 shrink-0 opacity-50"}),c.jsx(zt.Input,{"data-slot":"command-input",className:M("placeholder:text-muted-foreground flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50",e),...t})]})}function mh({className:e,...t}){return c.jsx(zt.List,{"data-slot":"command-list",className:M("max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto",e),...t})}function gh({...e}){return c.jsx(zt.Empty,{"data-slot":"command-empty",className:"py-6 text-center text-sm text-purple-mutted-300",...e})}function hh({className:e,...t}){return c.jsx(zt.Group,{"data-slot":"command-group",className:M("text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium",e),...t})}function vh({className:e,...t}){return c.jsx(zt.Item,{"data-slot":"command-item",className:M("data-[selected=true]:bg-purple-mutted-500 data-[selected=true]:text-purple-100 [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...t})}var en="Popover",[Sc,Ay]=ke(en,[Wt]),ir=Wt(),[xh,at]=Sc(en),Ec=e=>{const{__scopePopover:t,children:r,open:n,defaultOpen:o,onOpenChange:s,modal:a=!1}=e,i=ir(t),l=u.useRef(null),[d,f]=u.useState(!1),[p,h]=Ee({prop:n,defaultProp:o??!1,onChange:s,caller:en});return c.jsx(fo,{...i,children:c.jsx(xh,{scope:t,contentId:he(),triggerRef:l,open:p,onOpenChange:h,onOpenToggle:u.useCallback(()=>h(g=>!g),[h]),hasCustomAnchor:d,onCustomAnchorAdd:u.useCallback(()=>f(!0),[]),onCustomAnchorRemove:u.useCallback(()=>f(!1),[]),modal:a,children:r})})};Ec.displayName=en;var Pc="PopoverAnchor",bh=u.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=at(Pc,r),s=ir(r),{onCustomAnchorAdd:a,onCustomAnchorRemove:i}=o;return u.useEffect(()=>(a(),()=>i()),[a,i]),c.jsx(Ur,{...s,...n,ref:t})});bh.displayName=Pc;var Rc="PopoverTrigger",kc=u.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=at(Rc,r),s=ir(r),a=de(t,o.triggerRef),i=c.jsx(U.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":_c(o.open),...n,ref:a,onClick:Z(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?i:c.jsx(Ur,{asChild:!0,...s,children:i})});kc.displayName=Rc;var ko="PopoverPortal",[yh,wh]=Sc(ko,{forceMount:void 0}),Nc=e=>{const{__scopePopover:t,forceMount:r,children:n,container:o}=e,s=at(ko,t);return c.jsx(yh,{scope:t,forceMount:r,children:c.jsx(qe,{present:r||s.open,children:c.jsx(sr,{asChild:!0,container:o,children:n})})})};Nc.displayName=ko;var Mt="PopoverContent",Tc=u.forwardRef((e,t)=>{const r=wh(Mt,e.__scopePopover),{forceMount:n=r.forceMount,...o}=e,s=at(Mt,e.__scopePopover);return c.jsx(qe,{present:n||s.open,children:s.modal?c.jsx(Sh,{...o,ref:t}):c.jsx(Eh,{...o,ref:t})})});Tc.displayName=Mt;var Ch=ft("PopoverContent.RemoveScroll"),Sh=u.forwardRef((e,t)=>{const r=at(Mt,e.__scopePopover),n=u.useRef(null),o=de(t,n),s=u.useRef(!1);return u.useEffect(()=>{const a=n.current;if(a)return go(a)},[]),c.jsx(Yr,{as:Ch,allowPinchZoom:!0,children:c.jsx(jc,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Z(e.onCloseAutoFocus,a=>{var i;a.preventDefault(),s.current||(i=r.triggerRef.current)==null||i.focus()}),onPointerDownOutside:Z(e.onPointerDownOutside,a=>{const i=a.detail.originalEvent,l=i.button===0&&i.ctrlKey===!0,d=i.button===2||l;s.current=d},{checkForDefaultPrevented:!1}),onFocusOutside:Z(e.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1})})})}),Eh=u.forwardRef((e,t)=>{const r=at(Mt,e.__scopePopover),n=u.useRef(!1),o=u.useRef(!1);return c.jsx(jc,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{var a,i;(a=e.onCloseAutoFocus)==null||a.call(e,s),s.defaultPrevented||(n.current||(i=r.triggerRef.current)==null||i.focus(),s.preventDefault()),n.current=!1,o.current=!1},onInteractOutside:s=>{var l,d;(l=e.onInteractOutside)==null||l.call(e,s),s.defaultPrevented||(n.current=!0,s.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const a=s.target;((d=r.triggerRef.current)==null?void 0:d.contains(a))&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&o.current&&s.preventDefault()}})}),jc=u.forwardRef((e,t)=>{const{__scopePopover:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:s,disableOutsidePointerEvents:a,onEscapeKeyDown:i,onPointerDownOutside:l,onFocusOutside:d,onInteractOutside:f,...p}=e,h=at(Mt,r),g=ir(r);return ro(),c.jsx(Wr,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:s,children:c.jsx(nr,{asChild:!0,disableOutsidePointerEvents:a,onInteractOutside:f,onEscapeKeyDown:i,onPointerDownOutside:l,onFocusOutside:d,onDismiss:()=>h.onOpenChange(!1),children:c.jsx(po,{"data-state":_c(h.open),role:"dialog",id:h.contentId,...g,...p,ref:t,style:{...p.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),Ac="PopoverClose",Ph=u.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=at(Ac,r);return c.jsx(U.button,{type:"button",...n,ref:t,onClick:Z(e.onClick,()=>o.onOpenChange(!1))})});Ph.displayName=Ac;var Rh="PopoverArrow",kh=u.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=ir(r);return c.jsx(mo,{...o,...n,ref:t})});kh.displayName=Rh;function _c(e){return e?"open":"closed"}var Nh=Ec,Th=kc,jh=Nc,Ah=Tc;function _h({...e}){return c.jsx(Nh,{"data-slot":"popover",...e})}function Ih({...e}){return c.jsx(Th,{"data-slot":"popover-trigger",...e})}function Oh({className:e,align:t="center",sideOffset:r=4,...n}){return c.jsx(jh,{children:c.jsx(Ah,{"data-slot":"popover-content",align:t,sideOffset:r,className:M("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden",e),...n})})}const No=u.forwardRef(({options:e,value:t,onValueChange:r,placeholder:n="Select option...",searchPlaceholder:o="Search...",emptyText:s="No option found.",disabled:a=!1,className:i,...l},d)=>{const[f,p]=u.useState(!1),[h,g]=u.useState(0),w=u.useRef(null),m=e.find(v=>v.value===t);return u.useEffect(()=>{w.current&&g(w.current.offsetWidth)},[]),c.jsxs(_h,{open:f,onOpenChange:p,children:[c.jsx(Ih,{asChild:!0,children:c.jsxs(It,{ref:v=>{typeof d=="function"?d(v):d&&(d.current=v),w.current=v},variant:"outline",role:"combobox","aria-expanded":f,className:M("w-full h-9 px-3 py-1 justify-between rounded-md","border border-purple-mutted-500 bg-purple-mutted-700 hover:bg-purple-mutted-700","text-sm md:text-sm text-purple-mutted-300 hover:text-purple-mutted-300 focus:text-purple-mutted-300 active:text-purple-mutted-300","shadow-xs transition-[color,box-shadow] outline-none",{"text-muted-foreground":!m},i),disabled:a,...l,children:[m?m.label:n,c.jsx(cg,{className:"ml-2 h-4 w-4 shrink-0 opacity-50"})]})}),c.jsx(Oh,{className:"p-0 border bg-purple-mutted-600 border-purple-mutted-500 text-purple-mutted-300",style:{width:h>0?`${h}px`:"auto"},children:c.jsxs(fh,{className:"w-full bg-purple-mutted-600",children:[c.jsx(ph,{placeholder:o}),c.jsxs(mh,{children:[c.jsx(gh,{children:s}),c.jsx(hh,{children:e.map(v=>c.jsxs(vh,{value:v.value,disabled:v.disabled,className:M("text-purple-100 hover:bg-purple-mutted-500","focus:bg-purple-mutted-500 focus:text-purple-100",{"bg-purple-mutted-500":t===v.value}),onSelect:y=>{y!==t&&(r==null||r(y===t?"":y)),p(!1)},children:[c.jsx(Vi,{className:M("mr-2 h-4 w-4",t===v.value?"opacity-100":"opacity-0")}),v.label]},v.value))})]})]})})]})});No.displayName="Combobox";const Mh=Fr("inline-flex items-center dark:font-normal rounded-full border px-2.5 py-0.5 text-xs transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 font-light gap-1",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground hover:bg-primary/80",primary:"border-purple-700 bg-purple-800 text-purple-300",secondary:"border-purple-mutted-600 text-purple-300",destructive:"border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",outline:"bg-purple-mutted-700 border border-purple-mutted-600 text-purple-mutted-300",success:"text-green-300 bg-green-800 border-green-700",error:"text-red-300 bg-red-900 border-red-800",pending:"bg-purple-800 border-purple-700 text-purple-300",text:"bg-primary border-transparent text-primary-foreground p-0"},size:{xs:"text-[10px]",sm:"text-xs",md:"text-sm",lg:"py-2"}},defaultVariants:{variant:"default",size:"sm"}});function Ic({className:e,variant:t,size:r,...n}){return c.jsx("div",{className:M(Mh({variant:t,size:r}),e),...n})}function Dh({className:e,...t}){return c.jsx("div",{"data-slot":"card",className:M("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm dark:bg-card dark:text-card-foreground dark:border-border",e),...t})}function Lh({className:e,...t}){return c.jsx("div",{"data-slot":"card-header",className:M("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",e),...t})}function $h({className:e,...t}){return c.jsx("div",{"data-slot":"card-title",className:M("leading-none font-semibold",e),...t})}function Fh({className:e,...t}){return c.jsx("div",{"data-slot":"card-description",className:M("text-muted-foreground text-sm dark:text-muted-foreground",e),...t})}function Vh({className:e,...t}){return c.jsx("div",{"data-slot":"card-action",className:M("col-start-2 row-span-2 row-start-1 self-start justify-self-end",e),...t})}function Wh({className:e,...t}){return c.jsx("div",{"data-slot":"card-content",className:M("px-6",e),...t})}function Bh({className:e,...t}){return c.jsx("div",{"data-slot":"card-footer",className:M("flex items-center px-6 [.border-t]:pt-6",e),...t})}var To="Progress",jo=100,[zh,_y]=ke(To),[Hh,Gh]=zh(To),Oc=u.forwardRef((e,t)=>{const{__scopeProgress:r,value:n=null,max:o,getValueLabel:s=Uh,...a}=e;(o||o===0)&&!zs(o)&&console.error(Kh(`${o}`,"Progress"));const i=zs(o)?o:jo;n!==null&&!Hs(n,i)&&console.error(Yh(`${n}`,"Progress"));const l=Hs(n,i)?n:null,d=_r(l)?s(l,i):void 0;return c.jsx(Hh,{scope:r,value:l,max:i,children:c.jsx(U.div,{"aria-valuemax":i,"aria-valuemin":0,"aria-valuenow":_r(l)?l:void 0,"aria-valuetext":d,role:"progressbar","data-state":Lc(l,i),"data-value":l??void 0,"data-max":i,...a,ref:t})})});Oc.displayName=To;var Mc="ProgressIndicator",Dc=u.forwardRef((e,t)=>{const{__scopeProgress:r,...n}=e,o=Gh(Mc,r);return c.jsx(U.div,{"data-state":Lc(o.value,o.max),"data-value":o.value??void 0,"data-max":o.max,...n,ref:t})});Dc.displayName=Mc;function Uh(e,t){return`${Math.round(e/t*100)}%`}function Lc(e,t){return e==null?"indeterminate":e===t?"complete":"loading"}function _r(e){return typeof e=="number"}function zs(e){return _r(e)&&!isNaN(e)&&e>0}function Hs(e,t){return _r(e)&&!isNaN(e)&&e<=t&&e>=0}function Kh(e,t){return`Invalid prop \`max\` of value \`${e}\` supplied to \`${t}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${jo}\`.`}function Yh(e,t){return`Invalid prop \`value\` of value \`${e}\` supplied to \`${t}\`. The \`value\` prop must be:
|
|
169
|
+
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return d.useEffect(()=>{e&&(document.getElementById(e)||console.error(r))},[r,e]),null},Hg="DialogDescriptionWarning",Gg=({contentRef:e,descriptionId:t})=>{const n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${dl(Hg).contentName}}.`;return d.useEffect(()=>{var s;const o=(s=e.current)==null?void 0:s.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(n))},[n,e,t]),null},fl=Zi,Ug=Qi,pl=tl,ml=rl,gl=nl,Kg=sl,Yg=il,hl=cl,Kt='[cmdk-group=""]',Nn='[cmdk-group-items=""]',qg='[cmdk-group-heading=""]',vl='[cmdk-item=""]',Hs=`${vl}:not([aria-disabled="true"])`,Kn="cmdk-item-select",Rt="data-value",Xg=(e,t,r)=>Ig(e,t,r),xl=d.createContext(void 0),ar=()=>d.useContext(xl),bl=d.createContext(void 0),Ro=()=>d.useContext(bl),yl=d.createContext(void 0),wl=d.forwardRef((e,t)=>{let r=Nt(()=>{var P,$;return{search:"",value:($=(P=e.value)!=null?P:e.defaultValue)!=null?$:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),n=Nt(()=>new Set),o=Nt(()=>new Map),s=Nt(()=>new Map),a=Nt(()=>new Set),i=Cl(e),{label:c,children:u,value:f,onValueChange:p,filter:h,shouldFilter:m,loop:w,disablePointerSelection:g=!1,vimBindings:v=!0,...b}=e,x=he(),C=he(),E=he(),R=d.useRef(null),j=ih();vt(()=>{if(f!==void 0){let P=f.trim();r.current.value=P,A.emit()}},[f]),vt(()=>{j(6,q)},[]);let A=d.useMemo(()=>({subscribe:P=>(a.current.add(P),()=>a.current.delete(P)),snapshot:()=>r.current,setState:(P,$,z)=>{var F,te,O,X;if(!Object.is(r.current[P],$)){if(r.current[P]=$,P==="search")Q(),Y(),j(1,ee);else if(P==="value"){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let ne=document.getElementById(E);ne?ne.focus():(F=document.getElementById(x))==null||F.focus()}if(j(7,()=>{var ne;r.current.selectedItemId=(ne=W())==null?void 0:ne.id,A.emit()}),z||j(5,q),((te=i.current)==null?void 0:te.value)!==void 0){let ne=$??"";(X=(O=i.current).onValueChange)==null||X.call(O,ne);return}}A.emit()}},emit:()=>{a.current.forEach(P=>P())}}),[]),N=d.useMemo(()=>({value:(P,$,z)=>{var F;$!==((F=s.current.get(P))==null?void 0:F.value)&&(s.current.set(P,{value:$,keywords:z}),r.current.filtered.items.set(P,G($,z)),j(2,()=>{Y(),A.emit()}))},item:(P,$)=>(n.current.add(P),$&&(o.current.has($)?o.current.get($).add(P):o.current.set($,new Set([P]))),j(3,()=>{Q(),Y(),r.current.value||ee(),A.emit()}),()=>{s.current.delete(P),n.current.delete(P),r.current.filtered.items.delete(P);let z=W();j(4,()=>{Q(),(z==null?void 0:z.getAttribute("id"))===P&&ee(),A.emit()})}),group:P=>(o.current.has(P)||o.current.set(P,new Set),()=>{s.current.delete(P),o.current.delete(P)}),filter:()=>i.current.shouldFilter,label:c||e["aria-label"],getDisablePointerSelection:()=>i.current.disablePointerSelection,listId:x,inputId:E,labelId:C,listInnerRef:R}),[]);function G(P,$){var z,F;let te=(F=(z=i.current)==null?void 0:z.filter)!=null?F:Xg;return P?te(P,r.current.search,$):0}function Y(){if(!r.current.search||i.current.shouldFilter===!1)return;let P=r.current.filtered.items,$=[];r.current.filtered.groups.forEach(F=>{let te=o.current.get(F),O=0;te.forEach(X=>{let ne=P.get(X);O=Math.max(ne,O)}),$.push([F,O])});let z=R.current;M().sort((F,te)=>{var O,X;let ne=F.getAttribute("id"),oe=te.getAttribute("id");return((O=P.get(oe))!=null?O:0)-((X=P.get(ne))!=null?X:0)}).forEach(F=>{let te=F.closest(Nn);te?te.appendChild(F.parentElement===te?F:F.closest(`${Nn} > *`)):z.appendChild(F.parentElement===z?F:F.closest(`${Nn} > *`))}),$.sort((F,te)=>te[1]-F[1]).forEach(F=>{var te;let O=(te=R.current)==null?void 0:te.querySelector(`${Kt}[${Rt}="${encodeURIComponent(F[0])}"]`);O==null||O.parentElement.appendChild(O)})}function ee(){let P=M().find(z=>z.getAttribute("aria-disabled")!=="true"),$=P==null?void 0:P.getAttribute(Rt);A.setState("value",$||void 0)}function Q(){var P,$,z,F;if(!r.current.search||i.current.shouldFilter===!1){r.current.filtered.count=n.current.size;return}r.current.filtered.groups=new Set;let te=0;for(let O of n.current){let X=($=(P=s.current.get(O))==null?void 0:P.value)!=null?$:"",ne=(F=(z=s.current.get(O))==null?void 0:z.keywords)!=null?F:[],oe=G(X,ne);r.current.filtered.items.set(O,oe),oe>0&&te++}for(let[O,X]of o.current)for(let ne of X)if(r.current.filtered.items.get(ne)>0){r.current.filtered.groups.add(O);break}r.current.filtered.count=te}function q(){var P,$,z;let F=W();F&&(((P=F.parentElement)==null?void 0:P.firstChild)===F&&((z=($=F.closest(Kt))==null?void 0:$.querySelector(qg))==null||z.scrollIntoView({block:"nearest"})),F.scrollIntoView({block:"nearest"}))}function W(){var P;return(P=R.current)==null?void 0:P.querySelector(`${vl}[aria-selected="true"]`)}function M(){var P;return Array.from(((P=R.current)==null?void 0:P.querySelectorAll(Hs))||[])}function T(P){let $=M()[P];$&&A.setState("value",$.getAttribute(Rt))}function D(P){var $;let z=W(),F=M(),te=F.findIndex(X=>X===z),O=F[te+P];($=i.current)!=null&&$.loop&&(O=te+P<0?F[F.length-1]:te+P===F.length?F[0]:F[te+P]),O&&A.setState("value",O.getAttribute(Rt))}function k(P){let $=W(),z=$==null?void 0:$.closest(Kt),F;for(;z&&!F;)z=P>0?sh(z,Kt):ah(z,Kt),F=z==null?void 0:z.querySelector(Hs);F?A.setState("value",F.getAttribute(Rt)):D(P)}let H=()=>T(M().length-1),U=P=>{P.preventDefault(),P.metaKey?H():P.altKey?k(1):D(1)},re=P=>{P.preventDefault(),P.metaKey?T(0):P.altKey?k(-1):D(-1)};return d.createElement(K.div,{ref:t,tabIndex:-1,...b,"cmdk-root":"",onKeyDown:P=>{var $;($=b.onKeyDown)==null||$.call(b,P);let z=P.nativeEvent.isComposing||P.keyCode===229;if(!(P.defaultPrevented||z))switch(P.key){case"n":case"j":{v&&P.ctrlKey&&U(P);break}case"ArrowDown":{U(P);break}case"p":case"k":{v&&P.ctrlKey&&re(P);break}case"ArrowUp":{re(P);break}case"Home":{P.preventDefault(),T(0);break}case"End":{P.preventDefault(),H();break}case"Enter":{P.preventDefault();let F=W();if(F){let te=new Event(Kn);F.dispatchEvent(te)}}}}},d.createElement("label",{"cmdk-label":"",htmlFor:N.inputId,id:N.labelId,style:ch},c),Qr(e,P=>d.createElement(bl.Provider,{value:A},d.createElement(xl.Provider,{value:N},P))))}),Zg=d.forwardRef((e,t)=>{var r,n;let o=he(),s=d.useRef(null),a=d.useContext(yl),i=ar(),c=Cl(e),u=(n=(r=c.current)==null?void 0:r.forceMount)!=null?n:a==null?void 0:a.forceMount;vt(()=>{if(!u)return i.item(o,a==null?void 0:a.id)},[u]);let f=Sl(o,s,[e.value,e.children,s],e.keywords),p=Ro(),h=nt(j=>j.value&&j.value===f.current),m=nt(j=>u||i.filter()===!1?!0:j.search?j.filtered.items.get(o)>0:!0);d.useEffect(()=>{let j=s.current;if(!(!j||e.disabled))return j.addEventListener(Kn,w),()=>j.removeEventListener(Kn,w)},[m,e.onSelect,e.disabled]);function w(){var j,A;g(),(A=(j=c.current).onSelect)==null||A.call(j,f.current)}function g(){p.setState("value",f.current,!0)}if(!m)return null;let{disabled:v,value:b,onSelect:x,forceMount:C,keywords:E,...R}=e;return d.createElement(K.div,{ref:dt(s,t),...R,id:o,"cmdk-item":"",role:"option","aria-disabled":!!v,"aria-selected":!!h,"data-disabled":!!v,"data-selected":!!h,onPointerMove:v||i.getDisablePointerSelection()?void 0:g,onClick:v?void 0:w},e.children)}),Jg=d.forwardRef((e,t)=>{let{heading:r,children:n,forceMount:o,...s}=e,a=he(),i=d.useRef(null),c=d.useRef(null),u=he(),f=ar(),p=nt(m=>o||f.filter()===!1?!0:m.search?m.filtered.groups.has(a):!0);vt(()=>f.group(a),[]),Sl(a,i,[e.value,e.heading,c]);let h=d.useMemo(()=>({id:a,forceMount:o}),[o]);return d.createElement(K.div,{ref:dt(i,t),...s,"cmdk-group":"",role:"presentation",hidden:p?void 0:!0},r&&d.createElement("div",{ref:c,"cmdk-group-heading":"","aria-hidden":!0,id:u},r),Qr(e,m=>d.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":r?u:void 0},d.createElement(yl.Provider,{value:h},m))))}),Qg=d.forwardRef((e,t)=>{let{alwaysRender:r,...n}=e,o=d.useRef(null),s=nt(a=>!a.search);return!r&&!s?null:d.createElement(K.div,{ref:dt(o,t),...n,"cmdk-separator":"",role:"separator"})}),eh=d.forwardRef((e,t)=>{let{onValueChange:r,...n}=e,o=e.value!=null,s=Ro(),a=nt(u=>u.search),i=nt(u=>u.selectedItemId),c=ar();return d.useEffect(()=>{e.value!=null&&s.setState("search",e.value)},[e.value]),d.createElement(K.input,{ref:t,...n,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":c.listId,"aria-labelledby":c.labelId,"aria-activedescendant":i,id:c.inputId,type:"text",value:o?e.value:a,onChange:u=>{o||s.setState("search",u.target.value),r==null||r(u.target.value)}})}),th=d.forwardRef((e,t)=>{let{children:r,label:n="Suggestions",...o}=e,s=d.useRef(null),a=d.useRef(null),i=nt(u=>u.selectedItemId),c=ar();return d.useEffect(()=>{if(a.current&&s.current){let u=a.current,f=s.current,p,h=new ResizeObserver(()=>{p=requestAnimationFrame(()=>{let m=u.offsetHeight;f.style.setProperty("--cmdk-list-height",m.toFixed(1)+"px")})});return h.observe(u),()=>{cancelAnimationFrame(p),h.unobserve(u)}}},[]),d.createElement(K.div,{ref:dt(s,t),...o,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":i,"aria-label":n,id:c.listId},Qr(e,u=>d.createElement("div",{ref:dt(a,c.listInnerRef),"cmdk-list-sizer":""},u)))}),rh=d.forwardRef((e,t)=>{let{open:r,onOpenChange:n,overlayClassName:o,contentClassName:s,container:a,...i}=e;return d.createElement(fl,{open:r,onOpenChange:n},d.createElement(pl,{container:a},d.createElement(ml,{"cmdk-overlay":"",className:o}),d.createElement(gl,{"aria-label":e.label,"cmdk-dialog":"",className:s},d.createElement(wl,{ref:t,...i}))))}),nh=d.forwardRef((e,t)=>nt(r=>r.filtered.count===0)?d.createElement(K.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null),oh=d.forwardRef((e,t)=>{let{progress:r,children:n,label:o="Loading...",...s}=e;return d.createElement(K.div,{ref:t,...s,"cmdk-loading":"",role:"progressbar","aria-valuenow":r,"aria-valuemin":0,"aria-valuemax":100,"aria-label":o},Qr(e,a=>d.createElement("div",{"aria-hidden":!0},a)))}),zt=Object.assign(wl,{List:th,Item:Zg,Input:eh,Group:Jg,Separator:Qg,Dialog:rh,Empty:nh,Loading:oh});function sh(e,t){let r=e.nextElementSibling;for(;r;){if(r.matches(t))return r;r=r.nextElementSibling}}function ah(e,t){let r=e.previousElementSibling;for(;r;){if(r.matches(t))return r;r=r.previousElementSibling}}function Cl(e){let t=d.useRef(e);return vt(()=>{t.current=e}),t}var vt=typeof window>"u"?d.useEffect:d.useLayoutEffect;function Nt(e){let t=d.useRef();return t.current===void 0&&(t.current=e()),t}function nt(e){let t=Ro(),r=()=>e(t.snapshot());return d.useSyncExternalStore(t.subscribe,r,r)}function Sl(e,t,r,n=[]){let o=d.useRef(),s=ar();return vt(()=>{var a;let i=(()=>{var u;for(let f of r){if(typeof f=="string")return f.trim();if(typeof f=="object"&&"current"in f)return f.current?(u=f.current.textContent)==null?void 0:u.trim():o.current}})(),c=n.map(u=>u.trim());s.value(e,i,c),(a=t.current)==null||a.setAttribute(Rt,i),o.current=i}),o}var ih=()=>{let[e,t]=d.useState(),r=Nt(()=>new Map);return vt(()=>{r.current.forEach(n=>n()),r.current=new Map},[e]),(n,o)=>{r.current.set(n,o),t({})}};function lh(e){let t=e.type;return typeof t=="function"?t(e.props):"render"in t?t.render(e.props):e}function Qr({asChild:e,children:t},r){return e&&d.isValidElement(t)?d.cloneElement(lh(t),{ref:t.ref},r(t.props.children)):r(t)}var ch={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};function uh({...e}){return l.jsx(fl,{"data-slot":"dialog",...e})}function dh({...e}){return l.jsx(Ug,{"data-slot":"dialog-trigger",...e})}function El({...e}){return l.jsx(pl,{"data-slot":"dialog-portal",...e})}function fh({...e}){return l.jsx(hl,{"data-slot":"dialog-close",...e})}function kl({className:e,...t}){return l.jsx(ml,{"data-slot":"dialog-overlay",className:I("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-foreground/50 dark:bg-foreground/50",e),...t})}function ph({className:e,children:t,showCloseButton:r=!0,...n}){return l.jsxs(El,{"data-slot":"dialog-portal",children:[l.jsx(kl,{}),l.jsxs(gl,{"data-slot":"dialog-content",className:I("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg dark:bg-background dark:border-border",e),...n,children:[t,r&&l.jsxs(hl,{"data-slot":"dialog-close",className:"ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",children:[l.jsx(Hi,{}),l.jsx("span",{className:"sr-only",children:"Close"})]})]})]})}function mh({className:e,...t}){return l.jsx("div",{"data-slot":"dialog-header",className:I("flex flex-col gap-2 text-center sm:text-left",e),...t})}function gh({className:e,...t}){return l.jsx("div",{"data-slot":"dialog-footer",className:I("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",e),...t})}function hh({className:e,...t}){return l.jsx(Kg,{"data-slot":"dialog-title",className:I("text-lg leading-none font-semibold",e),...t})}function vh({className:e,...t}){return l.jsx(Yg,{"data-slot":"dialog-description",className:I("text-muted-foreground text-sm dark:text-muted-foreground",e),...t})}function xh({className:e,...t}){return l.jsx(zt,{"data-slot":"command",className:I("bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",e),...t})}function bh({className:e,...t}){return l.jsxs("div",{"data-slot":"command-input-wrapper",className:"flex h-9 items-center gap-2 border-b border-purple-mutted-400 px-3 text-purple-mutted-300",children:[l.jsx(zi,{className:"size-4 shrink-0 opacity-50"}),l.jsx(zt.Input,{"data-slot":"command-input",className:I("placeholder:text-muted-foreground flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50",e),...t})]})}function yh({className:e,...t}){return l.jsx(zt.List,{"data-slot":"command-list",className:I("max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto",e),...t})}function wh({...e}){return l.jsx(zt.Empty,{"data-slot":"command-empty",className:"py-6 text-center text-sm text-purple-mutted-300",...e})}function Ch({className:e,...t}){return l.jsx(zt.Group,{"data-slot":"command-group",className:I("text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium",e),...t})}function Sh({className:e,...t}){return l.jsx(zt.Item,{"data-slot":"command-item",className:I("data-[selected=true]:bg-purple-mutted-500 data-[selected=true]:text-purple-100 [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...t})}var en="Popover",[Pl,Ky]=Ne(en,[Bt]),ir=Bt(),[Eh,at]=Pl(en),Rl=e=>{const{__scopePopover:t,children:r,open:n,defaultOpen:o,onOpenChange:s,modal:a=!1}=e,i=ir(t),c=d.useRef(null),[u,f]=d.useState(!1),[p,h]=ke({prop:n,defaultProp:o??!1,onChange:s,caller:en});return l.jsx(po,{...i,children:l.jsx(Eh,{scope:t,contentId:he(),triggerRef:c,open:p,onOpenChange:h,onOpenToggle:d.useCallback(()=>h(m=>!m),[h]),hasCustomAnchor:u,onCustomAnchorAdd:d.useCallback(()=>f(!0),[]),onCustomAnchorRemove:d.useCallback(()=>f(!1),[]),modal:a,children:r})})};Rl.displayName=en;var Nl="PopoverAnchor",kh=d.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=at(Nl,r),s=ir(r),{onCustomAnchorAdd:a,onCustomAnchorRemove:i}=o;return d.useEffect(()=>(a(),()=>i()),[a,i]),l.jsx(Ur,{...s,...n,ref:t})});kh.displayName=Nl;var Tl="PopoverTrigger",jl=d.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=at(Tl,r),s=ir(r),a=de(t,o.triggerRef),i=l.jsx(K.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Ml(o.open),...n,ref:a,onClick:J(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?i:l.jsx(Ur,{asChild:!0,...s,children:i})});jl.displayName=Tl;var No="PopoverPortal",[Ph,Rh]=Pl(No,{forceMount:void 0}),Al=e=>{const{__scopePopover:t,forceMount:r,children:n,container:o}=e,s=at(No,t);return l.jsx(Ph,{scope:t,forceMount:r,children:l.jsx(qe,{present:r||s.open,children:l.jsx(sr,{asChild:!0,container:o,children:n})})})};Al.displayName=No;var Mt="PopoverContent",_l=d.forwardRef((e,t)=>{const r=Rh(Mt,e.__scopePopover),{forceMount:n=r.forceMount,...o}=e,s=at(Mt,e.__scopePopover);return l.jsx(qe,{present:n||s.open,children:s.modal?l.jsx(Th,{...o,ref:t}):l.jsx(jh,{...o,ref:t})})});_l.displayName=Mt;var Nh=ft("PopoverContent.RemoveScroll"),Th=d.forwardRef((e,t)=>{const r=at(Mt,e.__scopePopover),n=d.useRef(null),o=de(t,n),s=d.useRef(!1);return d.useEffect(()=>{const a=n.current;if(a)return ho(a)},[]),l.jsx(Yr,{as:Nh,allowPinchZoom:!0,children:l.jsx(Il,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:J(e.onCloseAutoFocus,a=>{var i;a.preventDefault(),s.current||(i=r.triggerRef.current)==null||i.focus()}),onPointerDownOutside:J(e.onPointerDownOutside,a=>{const i=a.detail.originalEvent,c=i.button===0&&i.ctrlKey===!0,u=i.button===2||c;s.current=u},{checkForDefaultPrevented:!1}),onFocusOutside:J(e.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1})})})}),jh=d.forwardRef((e,t)=>{const r=at(Mt,e.__scopePopover),n=d.useRef(!1),o=d.useRef(!1);return l.jsx(Il,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{var a,i;(a=e.onCloseAutoFocus)==null||a.call(e,s),s.defaultPrevented||(n.current||(i=r.triggerRef.current)==null||i.focus(),s.preventDefault()),n.current=!1,o.current=!1},onInteractOutside:s=>{var c,u;(c=e.onInteractOutside)==null||c.call(e,s),s.defaultPrevented||(n.current=!0,s.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const a=s.target;((u=r.triggerRef.current)==null?void 0:u.contains(a))&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&o.current&&s.preventDefault()}})}),Il=d.forwardRef((e,t)=>{const{__scopePopover:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:s,disableOutsidePointerEvents:a,onEscapeKeyDown:i,onPointerDownOutside:c,onFocusOutside:u,onInteractOutside:f,...p}=e,h=at(Mt,r),m=ir(r);return no(),l.jsx(Br,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:s,children:l.jsx(nr,{asChild:!0,disableOutsidePointerEvents:a,onInteractOutside:f,onEscapeKeyDown:i,onPointerDownOutside:c,onFocusOutside:u,onDismiss:()=>h.onOpenChange(!1),children:l.jsx(mo,{"data-state":Ml(h.open),role:"dialog",id:h.contentId,...m,...p,ref:t,style:{...p.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),Ol="PopoverClose",Ah=d.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=at(Ol,r);return l.jsx(K.button,{type:"button",...n,ref:t,onClick:J(e.onClick,()=>o.onOpenChange(!1))})});Ah.displayName=Ol;var _h="PopoverArrow",Ih=d.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=ir(r);return l.jsx(go,{...o,...n,ref:t})});Ih.displayName=_h;function Ml(e){return e?"open":"closed"}var Oh=Rl,Mh=jl,Dh=Al,Lh=_l;function $h({...e}){return l.jsx(Oh,{"data-slot":"popover",...e})}function Fh({...e}){return l.jsx(Mh,{"data-slot":"popover-trigger",...e})}function Vh({className:e,align:t="center",sideOffset:r=4,...n}){return l.jsx(Dh,{children:l.jsx(Lh,{"data-slot":"popover-content",align:t,sideOffset:r,className:I("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden",e),...n})})}const To=d.forwardRef(({options:e,value:t,onValueChange:r,placeholder:n="Select option...",searchPlaceholder:o="Search...",emptyText:s="No option found.",disabled:a=!1,className:i,...c},u)=>{const[f,p]=d.useState(!1),[h,m]=d.useState(0),w=d.useRef(null),g=e.find(v=>v.value===t);return d.useEffect(()=>{w.current&&m(w.current.offsetWidth)},[]),l.jsxs($h,{open:f,onOpenChange:p,children:[l.jsx(Fh,{asChild:!0,children:l.jsxs(It,{ref:v=>{typeof u=="function"?u(v):u&&(u.current=v),w.current=v},variant:"outline",role:"combobox","aria-expanded":f,className:I("w-full h-9 px-3 py-1 justify-between rounded-md","border border-purple-mutted-500 bg-purple-mutted-700 hover:bg-purple-mutted-700","text-sm md:text-sm text-purple-mutted-300 hover:text-purple-mutted-300 focus:text-purple-mutted-300 active:text-purple-mutted-300","shadow-xs transition-[color,box-shadow] outline-none",{"text-muted-foreground":!g},i),disabled:a,...c,children:[g?g.label:n,l.jsx(cg,{className:"ml-2 h-4 w-4 shrink-0 opacity-50"})]})}),l.jsx(Vh,{className:"p-0 border bg-purple-mutted-600 border-purple-mutted-500 text-purple-mutted-300",style:{width:h>0?`${h}px`:"auto"},children:l.jsxs(xh,{className:"w-full bg-purple-mutted-600",children:[l.jsx(bh,{placeholder:o}),l.jsxs(yh,{children:[l.jsx(wh,{children:s}),l.jsx(Ch,{children:e.map(v=>l.jsxs(Sh,{value:v.value,disabled:v.disabled,className:I("text-purple-100 hover:bg-purple-mutted-500","focus:bg-purple-mutted-500 focus:text-purple-100",{"bg-purple-mutted-500":t===v.value}),onSelect:b=>{b!==t&&(r==null||r(b===t?"":b)),p(!1)},children:[l.jsx(Wi,{className:I("mr-2 h-4 w-4",t===v.value?"opacity-100":"opacity-0")}),v.label]},v.value))})]})]})})]})});To.displayName="Combobox";const Bh=Fr("inline-flex items-center dark:font-normal rounded-full border px-2.5 py-0.5 text-xs transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 font-light gap-1",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground hover:bg-primary/80",primary:"border-purple-700 bg-purple-800 text-purple-300",secondary:"border-purple-mutted-600 text-purple-300",destructive:"border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",outline:"bg-purple-mutted-700 border border-purple-mutted-600 text-purple-mutted-300",success:"text-green-300 bg-green-800 border-green-700",error:"text-red-300 bg-red-900 border-red-800",pending:"bg-purple-800 border-purple-700 text-purple-300",text:"bg-primary border-transparent text-primary-foreground p-0"},size:{xs:"text-[10px]",sm:"text-xs",md:"text-sm",lg:"py-2"}},defaultVariants:{variant:"default",size:"sm"}});function jo({className:e,variant:t,size:r,...n}){return l.jsx("div",{className:I(Bh({variant:t,size:r}),e),...n})}function Wh({className:e,...t}){return l.jsx("div",{"data-slot":"card",className:I("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm dark:bg-card dark:text-card-foreground dark:border-border",e),...t})}function zh({className:e,...t}){return l.jsx("div",{"data-slot":"card-header",className:I("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",e),...t})}function Hh({className:e,...t}){return l.jsx("div",{"data-slot":"card-title",className:I("leading-none font-semibold",e),...t})}function Gh({className:e,...t}){return l.jsx("div",{"data-slot":"card-description",className:I("text-muted-foreground text-sm dark:text-muted-foreground",e),...t})}function Uh({className:e,...t}){return l.jsx("div",{"data-slot":"card-action",className:I("col-start-2 row-span-2 row-start-1 self-start justify-self-end",e),...t})}function Kh({className:e,...t}){return l.jsx("div",{"data-slot":"card-content",className:I("px-6",e),...t})}function Yh({className:e,...t}){return l.jsx("div",{"data-slot":"card-footer",className:I("flex items-center px-6 [.border-t]:pt-6",e),...t})}var Ao="Progress",_o=100,[qh,Yy]=Ne(Ao),[Xh,Zh]=qh(Ao),Dl=d.forwardRef((e,t)=>{const{__scopeProgress:r,value:n=null,max:o,getValueLabel:s=Jh,...a}=e;(o||o===0)&&!Gs(o)&&console.error(Qh(`${o}`,"Progress"));const i=Gs(o)?o:_o;n!==null&&!Us(n,i)&&console.error(ev(`${n}`,"Progress"));const c=Us(n,i)?n:null,u=_r(c)?s(c,i):void 0;return l.jsx(Xh,{scope:r,value:c,max:i,children:l.jsx(K.div,{"aria-valuemax":i,"aria-valuemin":0,"aria-valuenow":_r(c)?c:void 0,"aria-valuetext":u,role:"progressbar","data-state":Fl(c,i),"data-value":c??void 0,"data-max":i,...a,ref:t})})});Dl.displayName=Ao;var Ll="ProgressIndicator",$l=d.forwardRef((e,t)=>{const{__scopeProgress:r,...n}=e,o=Zh(Ll,r);return l.jsx(K.div,{"data-state":Fl(o.value,o.max),"data-value":o.value??void 0,"data-max":o.max,...n,ref:t})});$l.displayName=Ll;function Jh(e,t){return`${Math.round(e/t*100)}%`}function Fl(e,t){return e==null?"indeterminate":e===t?"complete":"loading"}function _r(e){return typeof e=="number"}function Gs(e){return _r(e)&&!isNaN(e)&&e>0}function Us(e,t){return _r(e)&&!isNaN(e)&&e<=t&&e>=0}function Qh(e,t){return`Invalid prop \`max\` of value \`${e}\` supplied to \`${t}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${_o}\`.`}function ev(e,t){return`Invalid prop \`value\` of value \`${e}\` supplied to \`${t}\`. The \`value\` prop must be:
|
|
155
170
|
- a positive number
|
|
156
|
-
- less than the value passed to \`max\` (or ${
|
|
171
|
+
- less than the value passed to \`max\` (or ${_o} if no \`max\` prop is set)
|
|
157
172
|
- \`null\` or \`undefined\` if the progress is indeterminate.
|
|
158
173
|
|
|
159
|
-
Defaulting to \`null\`.`}var qh=Oc,Xh=Dc;function Zh({className:e,value:t,...r}){return c.jsx(qh,{"data-slot":"progress",className:M("bg-primary/20 relative h-2 w-full overflow-hidden rounded-full dark:bg-primary/20",e),...r,children:c.jsx(Xh,{"data-slot":"progress-indicator",className:"bg-primary h-full w-full flex-1 transition-all dark:bg-primary",style:{transform:`translateX(-${100-(t||0)}%)`}})})}function $c({className:e,...t}){return c.jsx("div",{className:M("animate-pulse rounded-md bg-neutral-900/10 dark:bg-neutral-50/10",e),...t})}var tn="Switch",[Jh,Iy]=ke(tn),[Qh,ev]=Jh(tn),Fc=u.forwardRef((e,t)=>{const{__scopeSwitch:r,name:n,checked:o,defaultChecked:s,required:a,disabled:i,value:l="on",onCheckedChange:d,form:f,...p}=e,[h,g]=u.useState(null),w=de(t,C=>g(C)),m=u.useRef(!1),v=h?f||!!h.closest("form"):!0,[y,x]=Ee({prop:o,defaultProp:s??!1,onChange:d,caller:tn});return c.jsxs(Qh,{scope:r,checked:y,disabled:i,children:[c.jsx(U.button,{type:"button",role:"switch","aria-checked":y,"aria-required":a,"data-state":zc(y),"data-disabled":i?"":void 0,disabled:i,value:l,...p,ref:w,onClick:Z(e.onClick,C=>{x(E=>!E),v&&(m.current=C.isPropagationStopped(),m.current||C.stopPropagation())})}),v&&c.jsx(Bc,{control:h,bubbles:!m.current,name:n,value:l,checked:y,required:a,disabled:i,form:f,style:{transform:"translateX(-100%)"}})]})});Fc.displayName=tn;var Vc="SwitchThumb",Wc=u.forwardRef((e,t)=>{const{__scopeSwitch:r,...n}=e,o=ev(Vc,r);return c.jsx(U.span,{"data-state":zc(o.checked),"data-disabled":o.disabled?"":void 0,...n,ref:t})});Wc.displayName=Vc;var tv="SwitchBubbleInput",Bc=u.forwardRef(({__scopeSwitch:e,control:t,checked:r,bubbles:n=!0,...o},s)=>{const a=u.useRef(null),i=de(a,s),l=Ua(r),d=Da(t);return u.useEffect(()=>{const f=a.current;if(!f)return;const p=window.HTMLInputElement.prototype,g=Object.getOwnPropertyDescriptor(p,"checked").set;if(l!==r&&g){const w=new Event("click",{bubbles:n});g.call(f,r),f.dispatchEvent(w)}},[l,r,n]),c.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:r,...o,tabIndex:-1,ref:i,style:{...o.style,...d,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});Bc.displayName=tv;function zc(e){return e?"checked":"unchecked"}var rv=Fc,nv=Wc;function ov({className:e,...t}){return c.jsx(rv,{"data-slot":"switch",className:M("peer data-[state=checked]:bg-primary data-[state=unchecked]:bg-input focus-visible:border-ring focus-visible:ring-ring/50 inline-flex h-[1.15rem] w-8 shrink-0 items-center rounded-full border border-transparent shadow-xs transition-all outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 dark:data-[state=checked]:bg-primary dark:data-[state=unchecked]:bg-input",e),...t,children:c.jsx(nv,{"data-slot":"switch-thumb",className:M("bg-background pointer-events-none block size-4 rounded-full ring-0 transition-transform data-[state=checked]:translate-x-[calc(100%-2px)] data-[state=unchecked]:translate-x-0 dark:bg-background dark:data-[state=unchecked]:bg-foreground dark:data-[state=checked]:bg-primary-foreground")})})}var Hc="Toggle",Ao=u.forwardRef((e,t)=>{const{pressed:r,defaultPressed:n,onPressedChange:o,...s}=e,[a,i]=Ee({prop:r,onChange:o,defaultProp:n??!1,caller:Hc});return c.jsx(U.button,{type:"button","aria-pressed":a,"data-state":a?"on":"off","data-disabled":e.disabled?"":void 0,...s,ref:t,onClick:Z(e.onClick,()=>{e.disabled||i(!a)})})});Ao.displayName=Hc;var sv=Ao;const Gc=Fr("inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium text-foreground hover:bg-muted hover:text-muted-foreground disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 [&_svg]:shrink-0 focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] outline-none transition-[color,box-shadow] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive whitespace-nowrap dark:text-foreground dark:hover:bg-muted dark:hover:text-muted-foreground dark:data-[state=on]:bg-accent dark:data-[state=on]:text-accent-foreground",{variants:{variant:{default:"bg-transparent text-foreground dark:bg-transparent dark:text-foreground",outline:"border border-input bg-transparent text-foreground shadow-xs hover:bg-accent hover:text-accent-foreground dark:border-input dark:bg-transparent dark:text-foreground dark:hover:bg-accent dark:hover:text-accent-foreground"},size:{default:"h-9 px-2 min-w-9",sm:"h-8 px-1.5 min-w-8",lg:"h-10 px-2.5 min-w-10"}},defaultVariants:{variant:"default",size:"default"}});function av({className:e,variant:t,size:r,...n}){return c.jsx(sv,{"data-slot":"toggle",className:M(Gc({variant:t,size:r,className:e})),...n})}var Nn="rovingFocusGroup.onEntryFocus",iv={bubbles:!1,cancelable:!0},cr="RovingFocusGroup",[Kn,Uc,cv]=to(cr),[lv,Kc]=ke(cr,[cv]),[uv,dv]=lv(cr),Yc=u.forwardRef((e,t)=>c.jsx(Kn.Provider,{scope:e.__scopeRovingFocusGroup,children:c.jsx(Kn.Slot,{scope:e.__scopeRovingFocusGroup,children:c.jsx(fv,{...e,ref:t})})}));Yc.displayName=cr;var fv=u.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,orientation:n,loop:o=!1,dir:s,currentTabStopId:a,defaultCurrentTabStopId:i,onCurrentTabStopIdChange:l,onEntryFocus:d,preventScrollOnEntryFocus:f=!1,...p}=e,h=u.useRef(null),g=de(t,h),w=Vr(s),[m,v]=Ee({prop:a,defaultProp:i??null,onChange:l,caller:cr}),[y,x]=u.useState(!1),C=et(d),E=Uc(r),k=u.useRef(!1),[j,A]=u.useState(0);return u.useEffect(()=>{const N=h.current;if(N)return N.addEventListener(Nn,C),()=>N.removeEventListener(Nn,C)},[C]),c.jsx(uv,{scope:r,orientation:n,dir:w,loop:o,currentTabStopId:m,onItemFocus:u.useCallback(N=>v(N),[v]),onItemShiftTab:u.useCallback(()=>x(!0),[]),onFocusableItemAdd:u.useCallback(()=>A(N=>N+1),[]),onFocusableItemRemove:u.useCallback(()=>A(N=>N-1),[]),children:c.jsx(U.div,{tabIndex:y||j===0?-1:0,"data-orientation":n,...p,ref:g,style:{outline:"none",...e.style},onMouseDown:Z(e.onMouseDown,()=>{k.current=!0}),onFocus:Z(e.onFocus,N=>{const G=!k.current;if(N.target===N.currentTarget&&G&&!y){const K=new CustomEvent(Nn,iv);if(N.currentTarget.dispatchEvent(K),!K.defaultPrevented){const ee=E().filter(T=>T.focusable),J=ee.find(T=>T.active),Y=ee.find(T=>T.id===m),O=[J,Y,...ee].filter(Boolean).map(T=>T.ref.current);Zc(O,f)}}k.current=!1}),onBlur:Z(e.onBlur,()=>x(!1))})})}),qc="RovingFocusGroupItem",Xc=u.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,focusable:n=!0,active:o=!1,tabStopId:s,children:a,...i}=e,l=he(),d=s||l,f=dv(qc,r),p=f.currentTabStopId===d,h=Uc(r),{onFocusableItemAdd:g,onFocusableItemRemove:w,currentTabStopId:m}=f;return u.useEffect(()=>{if(n)return g(),()=>w()},[n,g,w]),c.jsx(Kn.ItemSlot,{scope:r,id:d,focusable:n,active:o,children:c.jsx(U.span,{tabIndex:p?0:-1,"data-orientation":f.orientation,...i,ref:t,onMouseDown:Z(e.onMouseDown,v=>{n?f.onItemFocus(d):v.preventDefault()}),onFocus:Z(e.onFocus,()=>f.onItemFocus(d)),onKeyDown:Z(e.onKeyDown,v=>{if(v.key==="Tab"&&v.shiftKey){f.onItemShiftTab();return}if(v.target!==v.currentTarget)return;const y=gv(v,f.orientation,f.dir);if(y!==void 0){if(v.metaKey||v.ctrlKey||v.altKey||v.shiftKey)return;v.preventDefault();let C=h().filter(E=>E.focusable).map(E=>E.ref.current);if(y==="last")C.reverse();else if(y==="prev"||y==="next"){y==="prev"&&C.reverse();const E=C.indexOf(v.currentTarget);C=f.loop?hv(C,E+1):C.slice(E+1)}setTimeout(()=>Zc(C))}}),children:typeof a=="function"?a({isCurrentTabStop:p,hasTabStop:m!=null}):a})})});Xc.displayName=qc;var pv={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function mv(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function gv(e,t,r){const n=mv(e.key,r);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(n))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(n)))return pv[n]}function Zc(e,t=!1){const r=document.activeElement;for(const n of e)if(n===r||(n.focus({preventScroll:t}),document.activeElement!==r))return}function hv(e,t){return e.map((r,n)=>e[(t+n)%e.length])}var vv=Yc,xv=Xc,it="ToggleGroup",[Jc,Oy]=ke(it,[Kc]),Qc=Kc(),_o=S.forwardRef((e,t)=>{const{type:r,...n}=e;if(r==="single"){const o=n;return c.jsx(bv,{...o,ref:t})}if(r==="multiple"){const o=n;return c.jsx(yv,{...o,ref:t})}throw new Error(`Missing prop \`type\` expected on \`${it}\``)});_o.displayName=it;var[el,tl]=Jc(it),bv=S.forwardRef((e,t)=>{const{value:r,defaultValue:n,onValueChange:o=()=>{},...s}=e,[a,i]=Ee({prop:r,defaultProp:n??"",onChange:o,caller:it});return c.jsx(el,{scope:e.__scopeToggleGroup,type:"single",value:S.useMemo(()=>a?[a]:[],[a]),onItemActivate:i,onItemDeactivate:S.useCallback(()=>i(""),[i]),children:c.jsx(rl,{...s,ref:t})})}),yv=S.forwardRef((e,t)=>{const{value:r,defaultValue:n,onValueChange:o=()=>{},...s}=e,[a,i]=Ee({prop:r,defaultProp:n??[],onChange:o,caller:it}),l=S.useCallback(f=>i((p=[])=>[...p,f]),[i]),d=S.useCallback(f=>i((p=[])=>p.filter(h=>h!==f)),[i]);return c.jsx(el,{scope:e.__scopeToggleGroup,type:"multiple",value:a,onItemActivate:l,onItemDeactivate:d,children:c.jsx(rl,{...s,ref:t})})});_o.displayName=it;var[wv,Cv]=Jc(it),rl=S.forwardRef((e,t)=>{const{__scopeToggleGroup:r,disabled:n=!1,rovingFocus:o=!0,orientation:s,dir:a,loop:i=!0,...l}=e,d=Qc(r),f=Vr(a),p={role:"group",dir:f,...l};return c.jsx(wv,{scope:r,rovingFocus:o,disabled:n,children:o?c.jsx(vv,{asChild:!0,...d,orientation:s,dir:f,loop:i,children:c.jsx(U.div,{...p,ref:t})}):c.jsx(U.div,{...p,ref:t})})}),Ir="ToggleGroupItem",nl=S.forwardRef((e,t)=>{const r=tl(Ir,e.__scopeToggleGroup),n=Cv(Ir,e.__scopeToggleGroup),o=Qc(e.__scopeToggleGroup),s=r.value.includes(e.value),a=n.disabled||e.disabled,i={...e,pressed:s,disabled:a},l=S.useRef(null);return n.rovingFocus?c.jsx(xv,{asChild:!0,...o,focusable:!a,active:s,ref:l,children:c.jsx(Gs,{...i,ref:t})}):c.jsx(Gs,{...i,ref:t})});nl.displayName=Ir;var Gs=S.forwardRef((e,t)=>{const{__scopeToggleGroup:r,value:n,...o}=e,s=tl(Ir,r),a={role:"radio","aria-checked":e.pressed,"aria-pressed":void 0},i=s.type==="single"?a:void 0;return c.jsx(Ao,{...i,...o,ref:t,onPressedChange:l=>{l?s.onItemActivate(n):s.onItemDeactivate(n)}})}),Sv=_o,Ev=nl;const ol=u.createContext({size:"default",variant:"default"});function Pv({className:e,variant:t,size:r,children:n,...o}){return c.jsx(Sv,{"data-slot":"toggle-group","data-variant":t,"data-size":r,className:M("group/toggle-group flex w-fit items-center rounded-md data-[variant=outline]:shadow-xs dark:data-[variant=outline]:shadow-xs",e),...o,children:c.jsx(ol.Provider,{value:{variant:t,size:r},children:n})})}function Rv({className:e,children:t,variant:r,size:n,...o}){const s=u.useContext(ol);return c.jsx(Ev,{"data-slot":"toggle-group-item","data-variant":s.variant||r,"data-size":s.size||n,className:M(Gc({variant:s.variant||r,size:s.size||n}),"min-w-0 flex-1 shrink-0 rounded-none shadow-none first:rounded-l-md last:rounded-r-md focus:z-10 focus-visible:z-10 data-[variant=outline]:border-l-0 data-[variant=outline]:first:border-l",e),...o,children:t})}var rn="Collapsible",[kv,sl]=ke(rn),[Nv,Io]=kv(rn),al=u.forwardRef((e,t)=>{const{__scopeCollapsible:r,open:n,defaultOpen:o,disabled:s,onOpenChange:a,...i}=e,[l,d]=Ee({prop:n,defaultProp:o??!1,onChange:a,caller:rn});return c.jsx(Nv,{scope:r,disabled:s,contentId:he(),open:l,onOpenToggle:u.useCallback(()=>d(f=>!f),[d]),children:c.jsx(U.div,{"data-state":Mo(l),"data-disabled":s?"":void 0,...i,ref:t})})});al.displayName=rn;var il="CollapsibleTrigger",cl=u.forwardRef((e,t)=>{const{__scopeCollapsible:r,...n}=e,o=Io(il,r);return c.jsx(U.button,{type:"button","aria-controls":o.contentId,"aria-expanded":o.open||!1,"data-state":Mo(o.open),"data-disabled":o.disabled?"":void 0,disabled:o.disabled,...n,ref:t,onClick:Z(e.onClick,o.onOpenToggle)})});cl.displayName=il;var Oo="CollapsibleContent",ll=u.forwardRef((e,t)=>{const{forceMount:r,...n}=e,o=Io(Oo,e.__scopeCollapsible);return c.jsx(qe,{present:r||o.open,children:({present:s})=>c.jsx(Tv,{...n,ref:t,present:s})})});ll.displayName=Oo;var Tv=u.forwardRef((e,t)=>{const{__scopeCollapsible:r,present:n,children:o,...s}=e,a=Io(Oo,r),[i,l]=u.useState(n),d=u.useRef(null),f=de(t,d),p=u.useRef(0),h=p.current,g=u.useRef(0),w=g.current,m=a.open||i,v=u.useRef(m),y=u.useRef(void 0);return u.useEffect(()=>{const x=requestAnimationFrame(()=>v.current=!1);return()=>cancelAnimationFrame(x)},[]),ve(()=>{const x=d.current;if(x){y.current=y.current||{transitionDuration:x.style.transitionDuration,animationName:x.style.animationName},x.style.transitionDuration="0s",x.style.animationName="none";const C=x.getBoundingClientRect();p.current=C.height,g.current=C.width,v.current||(x.style.transitionDuration=y.current.transitionDuration,x.style.animationName=y.current.animationName),l(n)}},[a.open,n]),c.jsx(U.div,{"data-state":Mo(a.open),"data-disabled":a.disabled?"":void 0,id:a.contentId,hidden:!m,...s,ref:f,style:{"--radix-collapsible-content-height":h?`${h}px`:void 0,"--radix-collapsible-content-width":w?`${w}px`:void 0,...e.style},children:m&&o})});function Mo(e){return e?"open":"closed"}var jv=al,Av=cl,_v=ll,Oe="Accordion",Iv=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[Do,Ov,Mv]=to(Oe),[nn,My]=ke(Oe,[Mv,sl]),Lo=sl(),ul=S.forwardRef((e,t)=>{const{type:r,...n}=e,o=n,s=n;return c.jsx(Do.Provider,{scope:e.__scopeAccordion,children:r==="multiple"?c.jsx(Fv,{...s,ref:t}):c.jsx($v,{...o,ref:t})})});ul.displayName=Oe;var[dl,Dv]=nn(Oe),[fl,Lv]=nn(Oe,{collapsible:!1}),$v=S.forwardRef((e,t)=>{const{value:r,defaultValue:n,onValueChange:o=()=>{},collapsible:s=!1,...a}=e,[i,l]=Ee({prop:r,defaultProp:n??"",onChange:o,caller:Oe});return c.jsx(dl,{scope:e.__scopeAccordion,value:S.useMemo(()=>i?[i]:[],[i]),onItemOpen:l,onItemClose:S.useCallback(()=>s&&l(""),[s,l]),children:c.jsx(fl,{scope:e.__scopeAccordion,collapsible:s,children:c.jsx(pl,{...a,ref:t})})})}),Fv=S.forwardRef((e,t)=>{const{value:r,defaultValue:n,onValueChange:o=()=>{},...s}=e,[a,i]=Ee({prop:r,defaultProp:n??[],onChange:o,caller:Oe}),l=S.useCallback(f=>i((p=[])=>[...p,f]),[i]),d=S.useCallback(f=>i((p=[])=>p.filter(h=>h!==f)),[i]);return c.jsx(dl,{scope:e.__scopeAccordion,value:a,onItemOpen:l,onItemClose:d,children:c.jsx(fl,{scope:e.__scopeAccordion,collapsible:!0,children:c.jsx(pl,{...s,ref:t})})})}),[Vv,on]=nn(Oe),pl=S.forwardRef((e,t)=>{const{__scopeAccordion:r,disabled:n,dir:o,orientation:s="vertical",...a}=e,i=S.useRef(null),l=de(i,t),d=Ov(r),p=Vr(o)==="ltr",h=Z(e.onKeyDown,g=>{var N;if(!Iv.includes(g.key))return;const w=g.target,m=d().filter(G=>{var K;return!((K=G.ref.current)!=null&&K.disabled)}),v=m.findIndex(G=>G.ref.current===w),y=m.length;if(v===-1)return;g.preventDefault();let x=v;const C=0,E=y-1,k=()=>{x=v+1,x>E&&(x=C)},j=()=>{x=v-1,x<C&&(x=E)};switch(g.key){case"Home":x=C;break;case"End":x=E;break;case"ArrowRight":s==="horizontal"&&(p?k():j());break;case"ArrowDown":s==="vertical"&&k();break;case"ArrowLeft":s==="horizontal"&&(p?j():k());break;case"ArrowUp":s==="vertical"&&j();break}const A=x%y;(N=m[A].ref.current)==null||N.focus()});return c.jsx(Vv,{scope:r,disabled:n,direction:o,orientation:s,children:c.jsx(Do.Slot,{scope:r,children:c.jsx(U.div,{...a,"data-orientation":s,ref:l,onKeyDown:n?void 0:h})})})}),Or="AccordionItem",[Wv,$o]=nn(Or),ml=S.forwardRef((e,t)=>{const{__scopeAccordion:r,value:n,...o}=e,s=on(Or,r),a=Dv(Or,r),i=Lo(r),l=he(),d=n&&a.value.includes(n)||!1,f=s.disabled||e.disabled;return c.jsx(Wv,{scope:r,open:d,disabled:f,triggerId:l,children:c.jsx(jv,{"data-orientation":s.orientation,"data-state":yl(d),...i,...o,ref:t,disabled:f,open:d,onOpenChange:p=>{p?a.onItemOpen(n):a.onItemClose(n)}})})});ml.displayName=Or;var gl="AccordionHeader",hl=S.forwardRef((e,t)=>{const{__scopeAccordion:r,...n}=e,o=on(Oe,r),s=$o(gl,r);return c.jsx(U.h3,{"data-orientation":o.orientation,"data-state":yl(s.open),"data-disabled":s.disabled?"":void 0,...n,ref:t})});hl.displayName=gl;var Yn="AccordionTrigger",vl=S.forwardRef((e,t)=>{const{__scopeAccordion:r,...n}=e,o=on(Oe,r),s=$o(Yn,r),a=Lv(Yn,r),i=Lo(r);return c.jsx(Do.ItemSlot,{scope:r,children:c.jsx(Av,{"aria-disabled":s.open&&!a.collapsible||void 0,"data-orientation":o.orientation,id:s.triggerId,...i,...n,ref:t})})});vl.displayName=Yn;var xl="AccordionContent",bl=S.forwardRef((e,t)=>{const{__scopeAccordion:r,...n}=e,o=on(Oe,r),s=$o(xl,r),a=Lo(r);return c.jsx(_v,{role:"region","aria-labelledby":s.triggerId,"data-orientation":o.orientation,...a,...n,ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});bl.displayName=xl;function yl(e){return e?"open":"closed"}var Bv=ul,zv=ml,Hv=hl,Gv=vl,Uv=bl;function Kv({...e}){return c.jsx(Bv,{"data-slot":"accordion",...e})}function Yv({className:e,...t}){return c.jsx(zv,{"data-slot":"accordion-item",className:M("border-b last:border-b-0 dark:border-border",e),...t})}function qv({className:e,children:t,...r}){return c.jsx(Hv,{className:"flex",children:c.jsxs(Gv,{"data-slot":"accordion-trigger",className:M("focus-visible:border-ring focus-visible:ring-ring/50 flex flex-1 items-start justify-between gap-4 rounded-md py-4 text-left text-sm font-medium text-foreground transition-all outline-none hover:underline focus-visible:ring-[3px] disabled:pointer-events-none disabled:opacity-50 [&[data-state=open]>svg]:rotate-180 dark:text-foreground dark:focus-visible:border-ring dark:focus-visible:ring-ring/50",e),...r,children:[t,c.jsx(vo,{className:"text-muted-foreground pointer-events-none size-4 shrink-0 translate-y-0.5 transition-transform duration-200 dark:text-muted-foreground"})]})})}function Xv({className:e,children:t,...r}){return c.jsx(Uv,{"data-slot":"accordion-content",className:"data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden text-sm text-foreground dark:text-foreground",...r,children:c.jsx("div",{className:M("pt-0 pb-4",e),children:t})})}var Zv=e=>e.type==="checkbox",qt=e=>e instanceof Date,Fo=e=>e==null;const wl=e=>typeof e=="object";var xt=e=>!Fo(e)&&!Array.isArray(e)&&wl(e)&&!qt(e),Jv=e=>xt(e)&&e.target?Zv(e.target)?e.target.checked:e.target.value:e,Qv=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,ex=(e,t)=>e.has(Qv(t)),tx=e=>{const t=e.constructor&&e.constructor.prototype;return xt(t)&&t.hasOwnProperty("isPrototypeOf")},rx=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function Cl(e){let t;const r=Array.isArray(e),n=typeof FileList<"u"?e instanceof FileList:!1;if(e instanceof Date)t=new Date(e);else if(!(rx&&(e instanceof Blob||n))&&(r||xt(e)))if(t=r?[]:Object.create(Object.getPrototypeOf(e)),!r&&!tx(e))t=e;else for(const o in e)e.hasOwnProperty(o)&&(t[o]=Cl(e[o]));else return e;return t}var Sl=e=>/^\w*$/.test(e),qn=e=>e===void 0,nx=e=>Array.isArray(e)?e.filter(Boolean):[],El=e=>nx(e.replace(/["|']|\]/g,"").split(/\.|\[/)),we=(e,t,r)=>{if(!t||!xt(e))return r;const n=(Sl(t)?[t]:El(t)).reduce((o,s)=>Fo(o)?o:o[s],e);return qn(n)||n===e?qn(e[t])?r:e[t]:n},Tn=e=>typeof e=="boolean",Us=(e,t,r)=>{let n=-1;const o=Sl(t)?[t]:El(t),s=o.length,a=s-1;for(;++n<s;){const i=o[n];let l=r;if(n!==a){const d=e[i];l=xt(d)||Array.isArray(d)?d:isNaN(+o[n+1])?{}:[]}if(i==="__proto__"||i==="constructor"||i==="prototype")return;e[i]=l,e=e[i]}};const Ks={BLUR:"blur",CHANGE:"change"},Ys={all:"all"},Vo=S.createContext(null);Vo.displayName="HookFormContext";const lr=()=>S.useContext(Vo),ox=e=>{const{children:t,...r}=e;return S.createElement(Vo.Provider,{value:r},t)};var sx=(e,t,r,n=!0)=>{const o={defaultValues:t._defaultValues};for(const s in e)Object.defineProperty(o,s,{get:()=>{const a=s;return t._proxyFormState[a]!==Ys.all&&(t._proxyFormState[a]=!n||Ys.all),r&&(r[a]=!0),e[a]}});return o};const Pl=typeof window<"u"?S.useLayoutEffect:S.useEffect;function Rl(e){const t=lr(),{control:r=t.control,disabled:n,name:o,exact:s}=e||{},[a,i]=S.useState(r._formState),l=S.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return Pl(()=>r._subscribe({name:o,formState:l.current,exact:s,callback:d=>{!n&&i({...r._formState,...d})}}),[o,n,s]),S.useEffect(()=>{l.current.isValid&&r._setValid(!0)},[r]),S.useMemo(()=>sx(a,r,l.current,!1),[a,r])}var ax=e=>typeof e=="string",ix=(e,t,r,n,o)=>ax(e)?we(r,e,o):Array.isArray(e)?e.map(s=>we(r,s)):r,qs=e=>Fo(e)||!wl(e);function kl(e,t,r=new WeakSet){if(qs(e)||qs(t))return e===t;if(qt(e)&&qt(t))return e.getTime()===t.getTime();const n=Object.keys(e),o=Object.keys(t);if(n.length!==o.length)return!1;if(r.has(e)||r.has(t))return!0;r.add(e),r.add(t);for(const s of n){const a=e[s];if(!o.includes(s))return!1;if(s!=="ref"){const i=t[s];if(qt(a)&&qt(i)||xt(a)&&xt(i)||Array.isArray(a)&&Array.isArray(i)?!kl(a,i,r):a!==i)return!1}}return!0}function cx(e){const t=lr(),{control:r=t.control,name:n,defaultValue:o,disabled:s,exact:a,compute:i}=e||{},l=S.useRef(o),d=S.useRef(i),f=S.useRef(void 0);d.current=i;const p=S.useMemo(()=>r._getWatch(n,l.current),[r,n]),[h,g]=S.useState(d.current?d.current(p):p);return Pl(()=>r._subscribe({name:n,formState:{values:!0},exact:a,callback:w=>{if(!s){const m=ix(n,r._names,w.values||r._formValues,!1,l.current);if(d.current){const v=d.current(m);kl(v,f.current)||(g(v),f.current=v)}else g(m)}}}),[r,s,n,a]),S.useEffect(()=>r._removeUnmounted()),h}function lx(e){const t=lr(),{name:r,disabled:n,control:o=t.control,shouldUnregister:s,defaultValue:a}=e,i=ex(o._names.array,r),l=S.useMemo(()=>we(o._formValues,r,we(o._defaultValues,r,a)),[o,r,a]),d=cx({control:o,name:r,defaultValue:l,exact:!0}),f=Rl({control:o,name:r,exact:!0}),p=S.useRef(e),h=S.useRef(o.register(r,{...e.rules,value:d,...Tn(e.disabled)?{disabled:e.disabled}:{}}));p.current=e;const g=S.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!we(f.errors,r)},isDirty:{enumerable:!0,get:()=>!!we(f.dirtyFields,r)},isTouched:{enumerable:!0,get:()=>!!we(f.touchedFields,r)},isValidating:{enumerable:!0,get:()=>!!we(f.validatingFields,r)},error:{enumerable:!0,get:()=>we(f.errors,r)}}),[f,r]),w=S.useCallback(x=>h.current.onChange({target:{value:Jv(x),name:r},type:Ks.CHANGE}),[r]),m=S.useCallback(()=>h.current.onBlur({target:{value:we(o._formValues,r),name:r},type:Ks.BLUR}),[r,o._formValues]),v=S.useCallback(x=>{const C=we(o._fields,r);C&&x&&(C._f.ref={focus:()=>x.focus&&x.focus(),select:()=>x.select&&x.select(),setCustomValidity:E=>x.setCustomValidity(E),reportValidity:()=>x.reportValidity()})},[o._fields,r]),y=S.useMemo(()=>({name:r,value:d,...Tn(n)||f.disabled?{disabled:f.disabled||n}:{},onChange:w,onBlur:m,ref:v}),[r,n,f.disabled,w,m,v,d]);return S.useEffect(()=>{const x=o._options.shouldUnregister||s;o.register(r,{...p.current.rules,...Tn(p.current.disabled)?{disabled:p.current.disabled}:{}});const C=(E,k)=>{const j=we(o._fields,E);j&&j._f&&(j._f.mount=k)};if(C(r,!0),x){const E=Cl(we(o._options.defaultValues,r));Us(o._defaultValues,r,E),qn(we(o._formValues,r))&&Us(o._formValues,r,E)}return!i&&o.register(r),()=>{(i?x&&!o._state.action:x)?o.unregister(r):C(r,!1)}},[r,o,i,s]),S.useEffect(()=>{o._setDisabledField({disabled:n,name:r})},[n,r,o]),S.useMemo(()=>({field:y,formState:f,fieldState:g}),[y,f,g])}const ux=e=>e.render(lx(e)),Nl=S.createContext(void 0),Tl=e=>{const{methods:t,disabled:r,children:n}=e;return c.jsx(Nl.Provider,{value:{disabled:r},children:c.jsx(ox,{...t,children:n})})},jl=()=>{const e=S.useContext(Nl),t=lr();if(!e||!t)throw new Error("formContext must be used within a FormProvider");return{...e,...t}},dx=({type:e="button",...t})=>{const r=()=>e==="submit"||e==="reset"?"default":"outline";return c.jsx(It,{type:e,variant:r(),...t})};var Al={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},Xs=S.createContext&&S.createContext(Al),fx=["attr","size","title"];function px(e,t){if(e==null)return{};var r=mx(e,t),n,o;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(o=0;o<s.length;o++)n=s[o],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function mx(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Mr(){return Mr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Mr.apply(this,arguments)}function Zs(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Dr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Zs(Object(r),!0).forEach(function(n){gx(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Zs(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function gx(e,t,r){return t=hx(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function hx(e){var t=vx(e,"string");return typeof t=="symbol"?t:t+""}function vx(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function _l(e){return e&&e.map((t,r)=>S.createElement(t.tag,Dr({key:r},t.attr),_l(t.child)))}function Il(e){return t=>S.createElement(xx,Mr({attr:Dr({},e.attr)},t),_l(e.child))}function xx(e){var t=r=>{var{attr:n,size:o,title:s}=e,a=px(e,fx),i=o||r.size||"1em",l;return r.className&&(l=r.className),e.className&&(l=(l?l+" ":"")+e.className),S.createElement("svg",Mr({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},r.attr,n,a,{className:l,style:Dr(Dr({color:e.color||r.color},r.style),e.style),height:i,width:i,xmlns:"http://www.w3.org/2000/svg"}),s&&S.createElement("title",null,s),e.children)};return Xs!==void 0?S.createElement(Xs.Consumer,null,r=>t(r)):t(Al)}function bx(e){return Il({attr:{viewBox:"0 0 24 24"},child:[{tag:"g",attr:{id:"Circle_Info"},child:[{tag:"g",attr:{},child:[{tag:"g",attr:{},child:[{tag:"path",attr:{d:"M11.5,15a.5.5,0,0,0,1,0h0V10.981a.5.5,0,0,0-1,0Z"},child:[]},{tag:"circle",attr:{cx:"12",cy:"8.999",r:"0.5"},child:[]}]},{tag:"path",attr:{d:"M12,2.065A9.934,9.934,0,1,1,2.066,12,9.945,9.945,0,0,1,12,2.065Zm0,18.867A8.934,8.934,0,1,0,3.066,12,8.944,8.944,0,0,0,12,20.932Z"},child:[]}]}]}]})(e)}var yx="Label",Ol=u.forwardRef((e,t)=>c.jsx(U.label,{...e,ref:t,onMouseDown:r=>{var o;r.target.closest("button, input, select, textarea")||((o=e.onMouseDown)==null||o.call(e,r),!r.defaultPrevented&&r.detail>1&&r.preventDefault())}}));Ol.displayName=yx;var wx=Ol;function Cx({className:e,...t}){return c.jsx(wx,{"data-slot":"label",className:M("flex items-center text-purple-mutted-300 gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",e),...t})}const Ml=u.createContext({}),Sx=({...e})=>c.jsx(Ml.Provider,{value:{name:e.name},children:c.jsx(ux,{...e})}),sn=()=>{const e=u.useContext(Ml),t=u.useContext(Dl),{getFieldState:r}=lr(),n=Rl({name:e.name}),o=r(e.name,n);if(!e)throw new Error("useFormField should be used within <FormField>");const{id:s}=t;return{id:s,name:e.name,formItemId:`${s}-form-item`,formDescriptionId:`${s}-form-item-description`,formMessageId:`${s}-form-item-message`,...o}},Dl=u.createContext({});function Ex({className:e,...t}){const r=u.useId();return c.jsx(Dl.Provider,{value:{id:r},children:c.jsx("div",{"data-slot":"form-item",className:M("grid gap-2",e),...t})})}function Px({className:e,...t}){const{formItemId:r}=sn();return c.jsx(Cx,{"data-slot":"form-label",className:M("data-[error=true]:text-destructive font-normal text-sm",e),htmlFor:r,...t})}function Rx({...e}){const{error:t,formItemId:r,formDescriptionId:n,formMessageId:o}=sn();return c.jsx(Dd,{"data-slot":"form-control",id:r,"aria-describedby":t?`${n} ${o}`:`${n}`,"aria-invalid":!!t,...e})}function kx({className:e,...t}){const{formDescriptionId:r}=sn();return c.jsx("p",{"data-slot":"form-description",id:r,className:M("text-purple-mutted-300 text-sm",e),...t})}function Nx({className:e,...t}){const{error:r,formMessageId:n}=sn(),o=r?String((r==null?void 0:r.message)??""):t.children;return o?c.jsx("p",{"data-slot":"form-message",id:n,className:M("text-destructive text-sm",e),...t,children:o}):null}var[an,Dy]=ke("Tooltip",[Wt]),cn=Wt(),Ll="TooltipProvider",Tx=700,Xn="tooltip.open",[jx,Wo]=an(Ll),$l=e=>{const{__scopeTooltip:t,delayDuration:r=Tx,skipDelayDuration:n=300,disableHoverableContent:o=!1,children:s}=e,a=u.useRef(!0),i=u.useRef(!1),l=u.useRef(0);return u.useEffect(()=>{const d=l.current;return()=>window.clearTimeout(d)},[]),c.jsx(jx,{scope:t,isOpenDelayedRef:a,delayDuration:r,onOpen:u.useCallback(()=>{window.clearTimeout(l.current),a.current=!1},[]),onClose:u.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>a.current=!0,n)},[n]),isPointerInTransitRef:i,onPointerInTransitChange:u.useCallback(d=>{i.current=d},[]),disableHoverableContent:o,children:s})};$l.displayName=Ll;var tr="Tooltip",[Ax,ur]=an(tr),Fl=e=>{const{__scopeTooltip:t,children:r,open:n,defaultOpen:o,onOpenChange:s,disableHoverableContent:a,delayDuration:i}=e,l=Wo(tr,e.__scopeTooltip),d=cn(t),[f,p]=u.useState(null),h=he(),g=u.useRef(0),w=a??l.disableHoverableContent,m=i??l.delayDuration,v=u.useRef(!1),[y,x]=Ee({prop:n,defaultProp:o??!1,onChange:A=>{A?(l.onOpen(),document.dispatchEvent(new CustomEvent(Xn))):l.onClose(),s==null||s(A)},caller:tr}),C=u.useMemo(()=>y?v.current?"delayed-open":"instant-open":"closed",[y]),E=u.useCallback(()=>{window.clearTimeout(g.current),g.current=0,v.current=!1,x(!0)},[x]),k=u.useCallback(()=>{window.clearTimeout(g.current),g.current=0,x(!1)},[x]),j=u.useCallback(()=>{window.clearTimeout(g.current),g.current=window.setTimeout(()=>{v.current=!0,x(!0),g.current=0},m)},[m,x]);return u.useEffect(()=>()=>{g.current&&(window.clearTimeout(g.current),g.current=0)},[]),c.jsx(fo,{...d,children:c.jsx(Ax,{scope:t,contentId:h,open:y,stateAttribute:C,trigger:f,onTriggerChange:p,onTriggerEnter:u.useCallback(()=>{l.isOpenDelayedRef.current?j():E()},[l.isOpenDelayedRef,j,E]),onTriggerLeave:u.useCallback(()=>{w?k():(window.clearTimeout(g.current),g.current=0)},[k,w]),onOpen:E,onClose:k,disableHoverableContent:w,children:r})})};Fl.displayName=tr;var Zn="TooltipTrigger",Vl=u.forwardRef((e,t)=>{const{__scopeTooltip:r,...n}=e,o=ur(Zn,r),s=Wo(Zn,r),a=cn(r),i=u.useRef(null),l=de(t,i,o.onTriggerChange),d=u.useRef(!1),f=u.useRef(!1),p=u.useCallback(()=>d.current=!1,[]);return u.useEffect(()=>()=>document.removeEventListener("pointerup",p),[p]),c.jsx(Ur,{asChild:!0,...a,children:c.jsx(U.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...n,ref:l,onPointerMove:Z(e.onPointerMove,h=>{h.pointerType!=="touch"&&!f.current&&!s.isPointerInTransitRef.current&&(o.onTriggerEnter(),f.current=!0)}),onPointerLeave:Z(e.onPointerLeave,()=>{o.onTriggerLeave(),f.current=!1}),onPointerDown:Z(e.onPointerDown,()=>{o.open&&o.onClose(),d.current=!0,document.addEventListener("pointerup",p,{once:!0})}),onFocus:Z(e.onFocus,()=>{d.current||o.onOpen()}),onBlur:Z(e.onBlur,o.onClose),onClick:Z(e.onClick,o.onClose)})})});Vl.displayName=Zn;var Bo="TooltipPortal",[_x,Ix]=an(Bo,{forceMount:void 0}),Wl=e=>{const{__scopeTooltip:t,forceMount:r,children:n,container:o}=e,s=ur(Bo,t);return c.jsx(_x,{scope:t,forceMount:r,children:c.jsx(qe,{present:r||s.open,children:c.jsx(sr,{asChild:!0,container:o,children:n})})})};Wl.displayName=Bo;var Dt="TooltipContent",Bl=u.forwardRef((e,t)=>{const r=Ix(Dt,e.__scopeTooltip),{forceMount:n=r.forceMount,side:o="top",...s}=e,a=ur(Dt,e.__scopeTooltip);return c.jsx(qe,{present:n||a.open,children:a.disableHoverableContent?c.jsx(zl,{side:o,...s,ref:t}):c.jsx(Ox,{side:o,...s,ref:t})})}),Ox=u.forwardRef((e,t)=>{const r=ur(Dt,e.__scopeTooltip),n=Wo(Dt,e.__scopeTooltip),o=u.useRef(null),s=de(t,o),[a,i]=u.useState(null),{trigger:l,onClose:d}=r,f=o.current,{onPointerInTransitChange:p}=n,h=u.useCallback(()=>{i(null),p(!1)},[p]),g=u.useCallback((w,m)=>{const v=w.currentTarget,y={x:w.clientX,y:w.clientY},x=$x(y,v.getBoundingClientRect()),C=Fx(y,x),E=Vx(m.getBoundingClientRect()),k=Bx([...C,...E]);i(k),p(!0)},[p]);return u.useEffect(()=>()=>h(),[h]),u.useEffect(()=>{if(l&&f){const w=v=>g(v,f),m=v=>g(v,l);return l.addEventListener("pointerleave",w),f.addEventListener("pointerleave",m),()=>{l.removeEventListener("pointerleave",w),f.removeEventListener("pointerleave",m)}}},[l,f,g,h]),u.useEffect(()=>{if(a){const w=m=>{const v=m.target,y={x:m.clientX,y:m.clientY},x=(l==null?void 0:l.contains(v))||(f==null?void 0:f.contains(v)),C=!Wx(y,a);x?h():C&&(h(),d())};return document.addEventListener("pointermove",w),()=>document.removeEventListener("pointermove",w)}},[l,f,a,d,h]),c.jsx(zl,{...e,ref:s})}),[Mx,Dx]=an(tr,{isInside:!1}),Lx=$d("TooltipContent"),zl=u.forwardRef((e,t)=>{const{__scopeTooltip:r,children:n,"aria-label":o,onEscapeKeyDown:s,onPointerDownOutside:a,...i}=e,l=ur(Dt,r),d=cn(r),{onClose:f}=l;return u.useEffect(()=>(document.addEventListener(Xn,f),()=>document.removeEventListener(Xn,f)),[f]),u.useEffect(()=>{if(l.trigger){const p=h=>{const g=h.target;g!=null&&g.contains(l.trigger)&&f()};return window.addEventListener("scroll",p,{capture:!0}),()=>window.removeEventListener("scroll",p,{capture:!0})}},[l.trigger,f]),c.jsx(nr,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:a,onFocusOutside:p=>p.preventDefault(),onDismiss:f,children:c.jsxs(po,{"data-state":l.stateAttribute,...d,...i,ref:t,style:{...i.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[c.jsx(Lx,{children:n}),c.jsx(Mx,{scope:r,isInside:!0,children:c.jsx(_p,{id:l.contentId,role:"tooltip",children:o||n})})]})})});Bl.displayName=Dt;var Hl="TooltipArrow",Gl=u.forwardRef((e,t)=>{const{__scopeTooltip:r,...n}=e,o=cn(r);return Dx(Hl,r).isInside?null:c.jsx(mo,{...o,...n,ref:t})});Gl.displayName=Hl;function $x(e,t){const r=Math.abs(t.top-e.y),n=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),s=Math.abs(t.left-e.x);switch(Math.min(r,n,o,s)){case s:return"left";case o:return"right";case r:return"top";case n:return"bottom";default:throw new Error("unreachable")}}function Fx(e,t,r=5){const n=[];switch(t){case"top":n.push({x:e.x-r,y:e.y+r},{x:e.x+r,y:e.y+r});break;case"bottom":n.push({x:e.x-r,y:e.y-r},{x:e.x+r,y:e.y-r});break;case"left":n.push({x:e.x+r,y:e.y-r},{x:e.x+r,y:e.y+r});break;case"right":n.push({x:e.x-r,y:e.y-r},{x:e.x-r,y:e.y+r});break}return n}function Vx(e){const{top:t,right:r,bottom:n,left:o}=e;return[{x:o,y:t},{x:r,y:t},{x:r,y:n},{x:o,y:n}]}function Wx(e,t){const{x:r,y:n}=e;let o=!1;for(let s=0,a=t.length-1;s<t.length;a=s++){const i=t[s],l=t[a],d=i.x,f=i.y,p=l.x,h=l.y;f>n!=h>n&&r<(p-d)*(n-f)/(h-f)+d&&(o=!o)}return o}function Bx(e){const t=e.slice();return t.sort((r,n)=>r.x<n.x?-1:r.x>n.x?1:r.y<n.y?-1:r.y>n.y?1:0),zx(t)}function zx(e){if(e.length<=1)return e.slice();const t=[];for(let n=0;n<e.length;n++){const o=e[n];for(;t.length>=2;){const s=t[t.length-1],a=t[t.length-2];if((s.x-a.x)*(o.y-a.y)>=(s.y-a.y)*(o.x-a.x))t.pop();else break}t.push(o)}t.pop();const r=[];for(let n=e.length-1;n>=0;n--){const o=e[n];for(;r.length>=2;){const s=r[r.length-1],a=r[r.length-2];if((s.x-a.x)*(o.y-a.y)>=(s.y-a.y)*(o.x-a.x))r.pop();else break}r.push(o)}return r.pop(),t.length===1&&r.length===1&&t[0].x===r[0].x&&t[0].y===r[0].y?t:t.concat(r)}var Hx=$l,Gx=Fl,Ux=Vl,Kx=Wl,Yx=Bl,qx=Gl;function Ul({delayDuration:e=0,...t}){return c.jsx(Hx,{"data-slot":"tooltip-provider",delayDuration:e,...t})}function Kl({...e}){return c.jsx(Ul,{children:c.jsx(Gx,{"data-slot":"tooltip",...e})})}function Yl({...e}){return c.jsx(Ux,{"data-slot":"tooltip-trigger",...e})}function ql({className:e,sideOffset:t=0,children:r,disableArrow:n=!1,...o}){return c.jsx(Kx,{children:c.jsxs(Yx,{"data-slot":"tooltip-content",sideOffset:t,className:M("bg-purple-mutted-700 border border-purple-mutted-600 text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs text-balance",e,{"py-2.5":n}),...o,children:[r,!n&&c.jsx(qx,{className:"bg-purple-mutted-700 fill-purple-mutted-700 z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]"})]})})}const zo=e=>t=>{const{name:r,label:n,description:o,tooltip:s,...a}=t,{control:i,disabled:l}=jl(),d=()=>s?c.jsxs(Kl,{children:[c.jsx(Yl,{asChild:!0,children:c.jsx(bx,{size:16})}),c.jsx(ql,{children:c.jsx("p",{children:s})})]}):c.jsx(c.Fragment,{}),f=()=>o?c.jsx(kx,{children:o}):c.jsx(c.Fragment,{});return c.jsx(Sx,{control:i,name:r,render:({field:p,fieldState:h})=>c.jsxs(Ex,{className:"flex flex-col gap-1.5",children:[n&&c.jsx(Px,{children:c.jsxs("span",{className:"flex items-center gap-1",children:[n,!!s&&d()]})}),c.jsx(Rx,{children:c.jsx(e,{...p,...a,disabled:l,error:!!h.error})}),!!o&&f(),c.jsx(Nx,{})]})})},Xx=zo(eo),Xl=S.forwardRef(({options:e,placeholder:t,value:r,onChange:n,disabled:o},s)=>{var l;const a=d=>{n&&n({target:{value:d}})},i=d=>c.jsx(Co,{value:d.value,disabled:d.disabled,children:c.jsxs("div",{className:"flex flex-col",children:[d.label,d.subLabel&&c.jsx("span",{className:"text-xs text-muted-foreground",style:{overflowWrap:"anywhere"},children:d.subLabel})]})},d.value);return c.jsxs(Bi,{value:r,onValueChange:a,disabled:o,children:[c.jsx(xo,{ref:s,children:c.jsx(zi,{placeholder:t,children:r&&((l=e.find(d=>d.value===r))==null?void 0:l.label)})}),c.jsx(wo,{children:e.map(i)})]})});Xl.displayName="BaseSelectComponent";const Zx=zo(Xl),Jx=S.forwardRef((e,t)=>{const{options:r=[],placeholder:n,value:o,onChange:s=()=>{},disabled:a,searchPlaceholder:i,emptyText:l}=e,d=f=>{s({target:{value:f}})};return c.jsx(No,{ref:t,options:r,value:o,onValueChange:d,placeholder:n,searchPlaceholder:i,emptyText:l,disabled:a})}),Qx=zo(Jx),eb=e=>c.jsx("hr",{className:"w-full h-px border-purple-mutted-500",...e}),tb=({children:e,description:t,className:r})=>c.jsxs("div",{className:M("space-y-1",r),children:[c.jsx("h2",{className:"flex items-center gap-2.5 text-2xl text-white",children:e}),t&&c.jsx("span",{className:"text-sm text-purple-mutted-300",children:t})]}),bt=e=>{const{className:t,disabled:r=!1,methods:n,onSubmit:o=()=>{},...s}=e,{handleSubmit:a}=n,i=M("flex flex-col gap-6",{},t);return c.jsx(Tl,{methods:n,disabled:r,children:c.jsx("form",{className:i,onSubmit:a(o),...s})})};bt.Button=dx;bt.Input=Xx;bt.Select=Zx;bt.Combobox=Qx;bt.Divider=eb;bt.Title=tb;function rb(e){return e==null?[]:Array.isArray(e)?e:[e]}var nb=e=>Array.from(Array(e).keys()),Js=e=>(e==null?void 0:e.constructor.name)==="Array",ob=(e,t)=>{if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(!Ho(e[r],t[r]))return!1;return!0},Ho=(e,t)=>{if(Object.is(e,t))return!0;if(e==null&&t!=null||e!=null&&t==null)return!1;if(typeof(e==null?void 0:e.isEqual)=="function"&&typeof(t==null?void 0:t.isEqual)=="function")return e.isEqual(t);if(typeof e=="function"&&typeof t=="function")return e.toString()===t.toString();if(Js(e)&&Js(t))return ob(Array.from(e),Array.from(t));if(typeof e!="object"||typeof t!="object")return!1;const r=Object.keys(t??Object.create(null)),n=r.length;for(let o=0;o<n;o++)if(!Reflect.has(e,r[o]))return!1;for(let o=0;o<n;o++){const s=r[o];if(!Ho(e[s],t[s]))return!1}return!0},sb=e=>e!=null&&typeof e=="object",Pr=e=>typeof e=="string",Xt=e=>typeof e=="function",ab=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),ib=e=>Object.prototype.toString.call(e),Zl=Function.prototype.toString,cb=Zl.call(Object),lb=e=>{if(!sb(e)||ib(e)!="[object Object]"||fb(e))return!1;const t=Object.getPrototypeOf(e);if(t===null)return!0;const r=ab(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&Zl.call(r)==cb},ub=e=>typeof e=="object"&&e!==null&&"$$typeof"in e&&"props"in e,db=e=>typeof e=="object"&&e!==null&&"__v_isVNode"in e,fb=e=>ub(e)||db(e),pb=e=>e(),mb=(...e)=>(...t)=>{e.forEach(function(r){r==null||r(...t)})},gb=e=>Number.isNaN(e),hb=e=>gb(e)?0:e,vb=(e,t,r)=>{const n=hb(e),o=n>=t,s=r==null||n<=r;return o&&s};function Jl(e){if(!lb(e)||e===void 0)return e;const t=Reflect.ownKeys(e).filter(n=>typeof n=="string"),r={};for(const n of t){const o=e[n];o!==void 0&&(r[n]=Jl(o))}return r}function Qs(...e){const t=e.length===1?e[0]:e[1];(e.length===2?e[0]:!0)&&process.env.NODE_ENV!=="production"&&console.warn(t)}function xb(e,t){if(e==null)throw new Error(t())}var Ql=e=>typeof e=="object"&&e!==null,Le=e=>e?"":void 0,bb=9,yb=e=>Ql(e)&&e.nodeType===bb,wb=e=>Ql(e)&&e===e.window;function Cb(e){if(!e)return!1;const t=e.getRootNode();return eu(t)===e}function Sb(e){return yb(e)?e:wb(e)?e.document:(e==null?void 0:e.ownerDocument)??document}function eu(e){let t=e.activeElement;for(;t!=null&&t.shadowRoot;){const r=t.shadowRoot.activeElement;if(!r||r===t)break;t=r}return t}var Eb=(...e)=>e.map(t=>{var r;return(r=t==null?void 0:t.trim)==null?void 0:r.call(t)}).filter(Boolean).join(" "),Pb=/((?:--)?(?:\w+-?)+)\s*:\s*([^;]*)/g,ea=e=>{const t={};let r;for(;r=Pb.exec(e);)t[r[1]]=r[2];return t},Rb=(e,t)=>{if(Pr(e)){if(Pr(t))return`${e};${t}`;e=ea(e)}else Pr(t)&&(t=ea(t));return Object.assign({},e??{},t??{})};function Me(...e){let t={};for(let r of e){if(!r)continue;for(let o in t){if(o.startsWith("on")&&typeof t[o]=="function"&&typeof r[o]=="function"){t[o]=mb(r[o],t[o]);continue}if(o==="className"||o==="class"){t[o]=Eb(t[o],r[o]);continue}if(o==="style"){t[o]=Rb(t[o],r[o]);continue}t[o]=r[o]!==void 0?r[o]:t[o]}for(let o in r)t[o]===void 0&&(t[o]=r[o]);const n=Object.getOwnPropertySymbols(r);for(let o of n)t[o]=r[o]}return t}function kb(e,t,r){let n=[],o;return s=>{const a=e(s);return(a.length!==n.length||a.some((l,d)=>!Ho(n[d],l)))&&(n=a,o=t(a,s)),o}}var Tt=(e=>(e.NotStarted="Not Started",e.Started="Started",e.Stopped="Stopped",e))(Tt||{}),jn="__init__";function Nb(e){const t=()=>{var a;return((a=e.getRootNode)==null?void 0:a.call(e))??document},r=()=>Sb(t());return{...e,getRootNode:t,getDoc:r,getWin:()=>r().defaultView??window,getActiveElement:()=>eu(t()),isActiveElement:Cb,getById:a=>t().getElementById(a)}}function Tb(e){return new Proxy({},{get(t,r){return r==="style"?n=>e({style:n}).style:e}})}var jb=()=>e=>Array.from(new Set(e)),tu=typeof globalThis.document<"u"?S.useLayoutEffect:S.useEffect;function Lr(e){const t=e().value??e().defaultValue,r=e().isEqual??Object.is,[n]=S.useState(t),[o,s]=S.useState(n),a=e().value!==void 0,i=S.useRef(o);i.current=a?e().value:o;const l=S.useRef(i.current);tu(()=>{l.current=i.current},[o,e().value]);const d=p=>{var w,m;const h=l.current,g=Xt(p)?p(h):p;e().debug&&console.log(`[bindable > ${e().debug}] setValue`,{next:g,prev:h}),a||s(g),r(g,h)||(m=(w=e()).onChange)==null||m.call(w,g,h)};function f(){return a?e().value:o}return{initial:n,ref:i,get:f,set(p){(e().sync?rr.flushSync:pb)(()=>d(p))},invoke(p,h){var g,w;(w=(g=e()).onChange)==null||w.call(g,p,h)},hash(p){var h,g;return((g=(h=e()).hash)==null?void 0:g.call(h,p))??String(p)}}}Lr.cleanup=e=>{S.useEffect(()=>e,[])};Lr.ref=e=>{const t=S.useRef(e);return{get:()=>t.current,set:r=>{t.current=r}}};function Ab(e){const t=S.useRef(e);return{get(r){return t.current[r]},set(r,n){t.current[r]=n}}}var _b=(e,t)=>{const r=S.useRef(!1),n=S.useRef(!1);S.useEffect(()=>{if(r.current&&n.current)return t();n.current=!0},[...(e??[]).map(o=>typeof o=="function"?o():o)]),S.useEffect(()=>(r.current=!0,()=>{r.current=!1}),[])};function Ib(e,t={}){var ee,J,Y,z;const r=S.useMemo(()=>{const{id:O,ids:T,getRootNode:D}=t;return Nb({id:O,ids:T,getRootNode:D})},[t]),n=(...O)=>{e.debug&&console.log(...O)},o=((ee=e.props)==null?void 0:ee.call(e,{props:Jl(t),scope:r}))??t,s=Ob(o),a=(J=e.context)==null?void 0:J.call(e,{prop:s,bindable:Lr,scope:r,flush:ta,getContext(){return l},getComputed(){return k},getRefs(){return m},getEvent(){return g()}}),i=ru(a),l={get(O){var T;return(T=i.current)==null?void 0:T[O].ref.current},set(O,T){var D;(D=i.current)==null||D[O].set(T)},initial(O){var T;return(T=i.current)==null?void 0:T[O].initial},hash(O){var D,P;const T=(D=i.current)==null?void 0:D[O].get();return(P=i.current)==null?void 0:P[O].hash(T)}},d=S.useRef(new Map),f=S.useRef(null),p=S.useRef(null),h=S.useRef({type:""}),g=()=>({...h.current,current(){return h.current},previous(){return p.current}}),w=()=>({...j,matches(...O){return O.includes(j.ref.current)},hasTag(O){var T,D;return!!((D=(T=e.states[j.ref.current])==null?void 0:T.tags)!=null&&D.includes(O))}}),m=Ab(((Y=e.refs)==null?void 0:Y.call(e,{prop:s,context:l}))??{}),v=()=>({state:w(),context:l,event:g(),prop:s,send:K,action:y,guard:x,track:_b,refs:m,computed:k,flush:ta,scope:r,choose:E}),y=O=>{const T=Xt(O)?O(v()):O;if(!T)return;const D=T.map(P=>{var oe,le;const H=(le=(oe=e.implementations)==null?void 0:oe.actions)==null?void 0:le[P];return H||Qs(`[zag-js] No implementation found for action "${JSON.stringify(P)}"`),H});for(const P of D)P==null||P(v())},x=O=>{var T,D;return Xt(O)?O(v()):(D=(T=e.implementations)==null?void 0:T.guards)==null?void 0:D[O](v())},C=O=>{const T=Xt(O)?O(v()):O;if(!T)return;const D=T.map(H=>{var le,R;const oe=(R=(le=e.implementations)==null?void 0:le.effects)==null?void 0:R[H];return oe||Qs(`[zag-js] No implementation found for effect "${JSON.stringify(H)}"`),oe}),P=[];for(const H of D){const oe=H==null?void 0:H(v());oe&&P.push(oe)}return()=>P.forEach(H=>H==null?void 0:H())},E=O=>rb(O).find(T=>{let D=!T.guard;return Pr(T.guard)?D=!!x(T.guard):Xt(T.guard)&&(D=T.guard(v())),D}),k=O=>{xb(e.computed,()=>"[zag-js] No computed object found on machine");const T=e.computed[O];return T({context:l,event:g(),prop:s,refs:m,scope:r,computed:k})},j=Lr(()=>({defaultValue:e.initialState({prop:s}),onChange(O,T){var P,H,oe,le;if(T){const R=d.current.get(T);R==null||R(),d.current.delete(T)}T&&y((P=e.states[T])==null?void 0:P.exit),y((H=f.current)==null?void 0:H.actions);const D=C((oe=e.states[O])==null?void 0:oe.effects);if(D&&d.current.set(O,D),T===jn){y(e.entry);const R=C(e.effects);R&&d.current.set(jn,R)}y((le=e.states[O])==null?void 0:le.entry)}})),A=S.useRef(void 0),N=S.useRef(Tt.NotStarted);tu(()=>{queueMicrotask(()=>{const D=N.current===Tt.Started;N.current=Tt.Started,n(D?"rehydrating...":"initializing...");const P=A.current??j.initial;j.invoke(P,D?j.get():jn)});const O=d.current,T=j.ref.current;return()=>{n("unmounting..."),A.current=T,N.current=Tt.Stopped,O.forEach(D=>D==null?void 0:D()),d.current=new Map,f.current=null,queueMicrotask(()=>{y(e.exit)})}},[]);const G=()=>"ref"in j?j.ref.current:j.get(),K=O=>{queueMicrotask(()=>{var le,R;if(N.current!==Tt.Started)return;p.current=h.current,h.current=O;let T=G();const D=((le=e.states[T].on)==null?void 0:le[O.type])??((R=e.on)==null?void 0:R[O.type]),P=E(D);if(!P)return;f.current=P;const H=P.target??T;n("transition",O.type,P.target||T,`(${P.actions})`);const oe=H!==T;oe?rr.flushSync(()=>j.set(H)):P.reenter&&!oe?j.invoke(T,T):y(P.actions??[])})};return(z=e.watch)==null||z.call(e,v()),{state:w(),send:K,context:l,prop:s,scope:r,refs:m,computed:k,event:g(),getStatus:()=>N.current}}function ru(e){const t=S.useRef(e);return t.current=e,t}function Ob(e){const t=ru(e);return function(n){return t.current[n]}}function ta(e){queueMicrotask(()=>{rr.flushSync(()=>e())})}var Mb=Tb(e=>e);function Db(...e){return t=>{const r=[];for(const n of e)if(typeof n=="function"){const o=n(t);typeof o=="function"&&r.push(o)}else n&&(n.current=t);if(r.length)return()=>{for(const n of r)n()}}}function Lb(e){var n,o;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}const An=e=>{const t=S.memo(S.forwardRef((r,n)=>{const{asChild:o,children:s,...a}=r;if(!o)return S.createElement(e,{...a,ref:n},s);if(!S.isValidElement(s))return null;const i=S.Children.only(s),l=Lb(i);return S.cloneElement(i,{...Me(a,i.props),ref:n?Db(n,l):l})}));return t.displayName=e.displayName||e.name,t},$b=()=>{const e=new Map;return new Proxy(An,{apply(t,r,n){return An(n[0])},get(t,r){const n=r;return e.has(n)||e.set(n,An(n)),e.get(n)}})},He=$b();function Fb(e,t){return`${e} returned \`undefined\`. Seems you forgot to wrap component within ${t}`}function dr(e={}){const{name:t,strict:r=!0,hookName:n="useContext",providerName:o="Provider",errorMessage:s,defaultValue:a}=e,i=S.createContext(a);i.displayName=t;function l(){var f;const d=S.useContext(i);if(!d&&r){const p=new Error(s??Fb(n,o));throw p.name="ContextError",(f=Error.captureStackTrace)==null||f.call(Error,p,l),p}return d}return[i.Provider,l,i]}const[Vb,Xe]=dr({name:"StepsContext",hookName:"useStepsContext",providerName:"<StepsProvider />"}),nu=S.forwardRef((e,t)=>{const r=Xe(),n=Me(r.getContentProps({index:r.count}),e);return c.jsx(He.div,{...n,ref:t})});nu.displayName="StepsCompletedContent";const Go=()=>(e,t)=>t.reduce((r,n)=>{const[o,s]=r,a=n;return s[a]!==void 0&&(o[a]=s[a]),delete s[a],[o,s]},[{},{...e}]),ou=S.forwardRef((e,t)=>{const[r,n]=Go()(e,["index"]),o=Xe(),s=Me(o.getContentProps(r),n);return c.jsx(He.div,{...s,ref:t})});ou.displayName="StepsContent";const[Wb,Uo]=dr({name:"StepsItemPropsContext",hookName:"useStepsItemPropsContext",providerName:"<StepsItemPropsProvider />"}),su=S.forwardRef((e,t)=>{const r=Xe(),n=Uo(),o=Me(r.getIndicatorProps(n),e);return c.jsx(He.div,{...o,ref:t})});su.displayName="StepsIndicator";const[Bb,Ly]=dr({name:"StepsItemContext",hookName:"useStepsItemContext",providerName:"<StepsItem />"}),au=S.forwardRef((e,t)=>{const[r,n]=Go()(e,["index"]),o=Xe(),s=Me(o.getItemProps(r),n),a=o.getItemState(r);return c.jsx(Wb,{value:r,children:c.jsx(Bb,{value:a,children:c.jsx(He.div,{...s,ref:t})})})});au.displayName="StepsItem";const iu=S.forwardRef((e,t)=>{const r=Xe(),n=Me(r.getListProps(),e);return c.jsx(He.div,{...n,ref:t})});iu.displayName="StepsList";const cu=S.forwardRef((e,t)=>{const r=Xe(),n=Me(r.getNextTriggerProps(),e);return c.jsx(He.button,{...n,ref:t})});cu.displayName="StepsNextTrigger";const lu=S.forwardRef((e,t)=>{const r=Xe(),n=Me(r.getPrevTriggerProps(),e);return c.jsx(He.button,{...n,ref:t})});lu.displayName="StepsPrevTrigger";var Zt=(e,t=[])=>({parts:(...r)=>{if(zb(t))return Zt(e,r);throw new Error("createAnatomy().parts(...) should only be called once. Did you mean to use .extendWith(...) ?")},extendWith:(...r)=>Zt(e,[...t,...r]),omit:(...r)=>Zt(e,t.filter(n=>!r.includes(n))),rename:r=>Zt(r,t),keys:()=>t,build:()=>[...new Set(t)].reduce((r,n)=>Object.assign(r,{[n]:{selector:[`&[data-scope="${Rt(e)}"][data-part="${Rt(n)}"]`,`& [data-scope="${Rt(e)}"][data-part="${Rt(n)}"]`].join(", "),attrs:{"data-scope":Rt(e),"data-part":Rt(n)}}}),{})}),Rt=e=>e.replace(/([A-Z])([A-Z])/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase(),zb=e=>e.length===0,Hb=Zt("steps").parts("root","list","item","trigger","indicator","separator","content","nextTrigger","prevTrigger","progress"),$e=Hb.build(),Gb=e=>{var t;return((t=e.ids)==null?void 0:t.root)??`steps:${e.id}`},Ub=e=>{var t;return((t=e.ids)==null?void 0:t.list)??`steps:${e.id}:list`},ra=(e,t)=>{var r,n;return((n=(r=e.ids)==null?void 0:r.triggerId)==null?void 0:n.call(r,t))??`steps:${e.id}:trigger:${t}`},Kb=(e,t)=>{var r,n;return((n=(r=e.ids)==null?void 0:r.contentId)==null?void 0:n.call(r,t))??`steps:${e.id}:content:${t}`};function Yb(e,t){const{context:r,send:n,computed:o,prop:s,scope:a}=e,i=r.get("step"),l=s("count"),d=o("percent"),f=o("hasNextStep"),p=o("hasPrevStep"),h=y=>({triggerId:ra(a,y.index),contentId:Kb(a,y.index),current:y.index===i,completed:y.index<i,incomplete:y.index>i,index:y.index,first:y.index===0,last:y.index===l-1}),g=()=>{n({type:"STEP.NEXT",src:"next.trigger.click"})},w=()=>{n({type:"STEP.PREV",src:"prev.trigger.click"})},m=()=>{n({type:"STEP.RESET",src:"reset.trigger.click"})},v=y=>{n({type:"STEP.SET",value:y,src:"api.setValue"})};return{value:i,count:l,percent:d,hasNextStep:f,hasPrevStep:p,isCompleted:o("completed"),goToNextStep:g,goToPrevStep:w,resetStep:m,getItemState:h,setStep:v,getRootProps(){return t.element({...$e.root.attrs,id:Gb(a),dir:s("dir"),"data-orientation":s("orientation"),style:{"--percent":`${d}%`}})},getListProps(){const x=nb(l).map((C,E)=>ra(a,E));return t.element({...$e.list.attrs,dir:s("dir"),id:Ub(a),role:"tablist","aria-owns":x.join(" "),"aria-orientation":s("orientation"),"data-orientation":s("orientation")})},getItemProps(y){const x=h(y);return t.element({...$e.item.attrs,dir:s("dir"),"aria-current":x.current?"step":void 0,"data-orientation":s("orientation")})},getTriggerProps(y){const x=h(y);return t.button({...$e.trigger.attrs,id:x.triggerId,role:"tab",dir:s("dir"),tabIndex:!s("linear")||x.current?0:-1,"aria-selected":x.current,"aria-controls":x.contentId,"data-state":x.current?"open":"closed","data-orientation":s("orientation"),"data-complete":Le(x.completed),"data-current":Le(x.current),"data-incomplete":Le(x.incomplete),onClick(C){C.defaultPrevented||s("linear")||n({type:"STEP.SET",value:y.index,src:"trigger.click"})}})},getContentProps(y){const x=h(y);return t.element({...$e.content.attrs,dir:s("dir"),id:x.contentId,role:"tabpanel",tabIndex:0,hidden:!x.current,"data-state":x.current?"open":"closed","data-orientation":s("orientation"),"aria-labelledby":x.triggerId})},getIndicatorProps(y){const x=h(y);return t.element({...$e.indicator.attrs,dir:s("dir"),"aria-hidden":!0,"data-complete":Le(x.completed),"data-current":Le(x.current),"data-incomplete":Le(x.incomplete)})},getSeparatorProps(y){const x=h(y);return t.element({...$e.separator.attrs,dir:s("dir"),"data-orientation":s("orientation"),"data-complete":Le(x.completed),"data-current":Le(x.current),"data-incomplete":Le(x.incomplete)})},getNextTriggerProps(){return t.button({...$e.nextTrigger.attrs,dir:s("dir"),type:"button",disabled:!f,onClick(y){y.defaultPrevented||g()}})},getPrevTriggerProps(){return t.button({dir:s("dir"),...$e.prevTrigger.attrs,type:"button",disabled:!p,onClick(y){y.defaultPrevented||w()}})},getProgressProps(){return t.element({dir:s("dir"),...$e.progress.attrs,role:"progressbar","aria-valuenow":d,"aria-valuemin":0,"aria-valuemax":100,"aria-valuetext":`${d}% complete`,"data-complete":Le(d===100)})}}}var qb={props({props:e}){return{defaultStep:0,count:1,linear:!1,orientation:"horizontal",...e}},context({prop:e,bindable:t}){return{step:t(()=>({defaultValue:e("defaultStep"),value:e("step"),onChange(r){var o,s;(o=e("onStepChange"))==null||o({step:r}),r==e("count")&&((s=e("onStepComplete"))==null||s())}}))}},computed:{percent:kb(({context:e,prop:t})=>[e.get("step"),t("count")],([e,t])=>e/t*100),hasNextStep:({context:e,prop:t})=>e.get("step")<t("count"),hasPrevStep:({context:e})=>e.get("step")>0,completed:({context:e,prop:t})=>e.get("step")===t("count")},initialState(){return"idle"},entry:["validateStep"],states:{idle:{on:{"STEP.SET":{actions:["setStep"]},"STEP.NEXT":{actions:["goToNextStep"]},"STEP.PREV":{actions:["goToPrevStep"]},"STEP.RESET":{actions:["resetStep"]}}}},implementations:{actions:{goToNextStep({context:e,prop:t}){const r=Math.min(e.get("step")+1,t("count"));e.set("step",r)},goToPrevStep({context:e}){const t=Math.max(e.get("step")-1,0);e.set("step",t)},resetStep({context:e}){e.set("step",0)},setStep({context:e,event:t}){e.set("step",t.value)},validateStep({context:e,prop:t}){Xb(t("count"),e.get("step"))}}}},Xb=(e,t)=>{if(!vb(t,0,e))throw new RangeError(`[zag-js/steps] step index ${t} is out of bounds`)};jb()(["count","dir","getRootNode","id","ids","linear","onStepChange","onStepComplete","orientation","step","defaultStep"]);const[$y,Zb]=dr({name:"EnvironmentContext",hookName:"useEnvironmentContext",providerName:"<EnvironmentProvider />",strict:!1,defaultValue:{getRootNode:()=>document,getDocument:()=>document,getWindow:()=>window}}),[Fy,Jb]=dr({name:"LocaleContext",hookName:"useLocaleContext",providerName:"<LocaleProvider />",strict:!1,defaultValue:{dir:"ltr",locale:"en-US"}});function Qb(e){const t=S.useId(),{getRootNode:r}=Zb(),{dir:n}=Jb(),o={id:t,dir:n,getRootNode:r,...e},s=Ib(qb,o);return Yb(s,Mb)}const uu=S.forwardRef((e,t)=>{const[r,n]=Go()(e,["defaultStep","id","ids","count","linear","onStepChange","onStepComplete","orientation","step"]),o=Qb(r),s=Me(o.getRootProps(),n);return c.jsx(Vb,{value:o,children:c.jsx(He.div,{...s,ref:t})})});uu.displayName="StepsRoot";const du=S.forwardRef((e,t)=>{const r=Xe(),n=Uo(),o=Me(r.getSeparatorProps(n),e);return c.jsx(He.div,{...o,ref:t})});du.displayName="StepsSeparator";const fu=S.forwardRef((e,t)=>{const r=Xe(),n=Uo(),o=Me(r.getTriggerProps(n),e);return c.jsx(He.button,{...o,ref:t})});fu.displayName="StepsTrigger";function ey(e){return Il({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M20 6 9 17l-5-5"},child:[]}]})(e)}const pu=S.createContext(void 0),ty=({children:e,step:t})=>c.jsx(pu.Provider,{value:{step:t},children:e}),mu=()=>{const e=S.useContext(pu);if(!e)throw new Error("useSteps must be used within a StepsProvider");return e},ry=({className:e,step:t,...r})=>{const n=M("flex flex-col gap-4",e);return c.jsx(ty,{step:t??0,children:c.jsx(uu,{className:n,step:t,...r})})},ny=({className:e,...t})=>{const r=M("flex flex-row gap-4",e);return c.jsx(iu,{className:r,...t})},oy=({className:e,...t})=>{const r=M("flex flex-row items-center gap-4",e);return c.jsx(au,{className:r,...t})},sy=({className:e,...t})=>{const r=M("flex flex-row items-center gap-4 text-purple-mutted-100 text-sm",e);return c.jsx(fu,{className:r,...t})},ay=({index:e,className:t,...r})=>{const{step:n}=mu(),o=e===n,s=e<n,a=M("flex items-center justify-center w-8 h-8 rounded-full text-white",s&&"bg-green-700",o&&"bg-green-600",!s&&!o&&"bg-purple-mutted-500",t),i=M({"text-white":o,"text-purple-mutted-300":!s&&e!==n});return c.jsx(su,{className:a,...r,children:s?c.jsx(ey,{className:"text-green-400"}):c.jsx("span",{className:i,children:e+1})})},iy=({index:e,className:t,...r})=>{const{step:n}=mu(),o=e<n,s=M("min-w-12 h-px",o?"bg-green-400":"bg-gray-400",t);return c.jsx(du,{className:s,...r})},cy=({className:e,...t})=>{const r=M(e);return c.jsx(ou,{className:r,...t})},ly=({className:e,...t})=>{const r=M(e);return c.jsx(nu,{className:r,...t})},uy=({className:e,...t})=>{const r=M("bg-primary text-white px-4 py-2 rounded-md",e);return c.jsx(lu,{className:r,...t})},dy=({className:e,...t})=>{const r=M("bg-primary text-white px-4 py-2 rounded-md",e);return c.jsx(cu,{className:r,...t})},fy={Root:ry,List:ny,Item:oy,Trigger:sy,Indicator:ay,Separator:iy,Content:cy,CompletedContent:ly,PrevTrigger:uy,NextTrigger:dy},gu=({children:e,content:t,providerProps:r={},triggerProps:n={},contentProps:o={}})=>c.jsx(Ul,{...r,children:c.jsxs(Kl,{children:[c.jsx(Yl,{...n,children:e}),t&&c.jsx(ql,{...o,children:t})]})});/**
|
|
174
|
+
Defaulting to \`null\`.`}var tv=Dl,rv=$l;function nv({className:e,value:t,...r}){return l.jsx(tv,{"data-slot":"progress",className:I("bg-primary/20 relative h-2 w-full overflow-hidden rounded-full dark:bg-primary/20",e),...r,children:l.jsx(rv,{"data-slot":"progress-indicator",className:"bg-primary h-full w-full flex-1 transition-all dark:bg-primary",style:{transform:`translateX(-${100-(t||0)}%)`}})})}function Vl({className:e,...t}){return l.jsx("div",{className:I("animate-pulse rounded-md bg-neutral-900/10 dark:bg-neutral-50/10",e),...t})}var tn="Switch",[ov,qy]=Ne(tn),[sv,av]=ov(tn),Bl=d.forwardRef((e,t)=>{const{__scopeSwitch:r,name:n,checked:o,defaultChecked:s,required:a,disabled:i,value:c="on",onCheckedChange:u,form:f,...p}=e,[h,m]=d.useState(null),w=de(t,C=>m(C)),g=d.useRef(!1),v=h?f||!!h.closest("form"):!0,[b,x]=ke({prop:o,defaultProp:s??!1,onChange:u,caller:tn});return l.jsxs(sv,{scope:r,checked:b,disabled:i,children:[l.jsx(K.button,{type:"button",role:"switch","aria-checked":b,"aria-required":a,"data-state":Gl(b),"data-disabled":i?"":void 0,disabled:i,value:c,...p,ref:w,onClick:J(e.onClick,C=>{x(E=>!E),v&&(g.current=C.isPropagationStopped(),g.current||C.stopPropagation())})}),v&&l.jsx(Hl,{control:h,bubbles:!g.current,name:n,value:c,checked:b,required:a,disabled:i,form:f,style:{transform:"translateX(-100%)"}})]})});Bl.displayName=tn;var Wl="SwitchThumb",zl=d.forwardRef((e,t)=>{const{__scopeSwitch:r,...n}=e,o=av(Wl,r);return l.jsx(K.span,{"data-state":Gl(o.checked),"data-disabled":o.disabled?"":void 0,...n,ref:t})});zl.displayName=Wl;var iv="SwitchBubbleInput",Hl=d.forwardRef(({__scopeSwitch:e,control:t,checked:r,bubbles:n=!0,...o},s)=>{const a=d.useRef(null),i=de(a,s),c=Ya(r),u=$a(t);return d.useEffect(()=>{const f=a.current;if(!f)return;const p=window.HTMLInputElement.prototype,m=Object.getOwnPropertyDescriptor(p,"checked").set;if(c!==r&&m){const w=new Event("click",{bubbles:n});m.call(f,r),f.dispatchEvent(w)}},[c,r,n]),l.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:r,...o,tabIndex:-1,ref:i,style:{...o.style,...u,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});Hl.displayName=iv;function Gl(e){return e?"checked":"unchecked"}var lv=Bl,cv=zl;function uv({className:e,...t}){return l.jsx(lv,{"data-slot":"switch",className:I("peer data-[state=checked]:bg-primary data-[state=unchecked]:bg-input focus-visible:border-ring focus-visible:ring-ring/50 inline-flex h-[1.15rem] w-8 shrink-0 items-center rounded-full border border-transparent shadow-xs transition-all outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 dark:data-[state=checked]:bg-primary dark:data-[state=unchecked]:bg-input",e),...t,children:l.jsx(cv,{"data-slot":"switch-thumb",className:I("bg-background pointer-events-none block size-4 rounded-full ring-0 transition-transform data-[state=checked]:translate-x-[calc(100%-2px)] data-[state=unchecked]:translate-x-0 dark:bg-background dark:data-[state=unchecked]:bg-foreground dark:data-[state=checked]:bg-primary-foreground")})})}var Ul="Toggle",Io=d.forwardRef((e,t)=>{const{pressed:r,defaultPressed:n,onPressedChange:o,...s}=e,[a,i]=ke({prop:r,onChange:o,defaultProp:n??!1,caller:Ul});return l.jsx(K.button,{type:"button","aria-pressed":a,"data-state":a?"on":"off","data-disabled":e.disabled?"":void 0,...s,ref:t,onClick:J(e.onClick,()=>{e.disabled||i(!a)})})});Io.displayName=Ul;var dv=Io;const Kl=Fr("inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium text-foreground hover:bg-muted hover:text-muted-foreground disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 [&_svg]:shrink-0 focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] outline-none transition-[color,box-shadow] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive whitespace-nowrap dark:text-foreground dark:hover:bg-muted dark:hover:text-muted-foreground dark:data-[state=on]:bg-accent dark:data-[state=on]:text-accent-foreground",{variants:{variant:{default:"bg-transparent text-foreground dark:bg-transparent dark:text-foreground",outline:"border border-input bg-transparent text-foreground shadow-xs hover:bg-accent hover:text-accent-foreground dark:border-input dark:bg-transparent dark:text-foreground dark:hover:bg-accent dark:hover:text-accent-foreground"},size:{default:"h-9 px-2 min-w-9",sm:"h-8 px-1.5 min-w-8",lg:"h-10 px-2.5 min-w-10"}},defaultVariants:{variant:"default",size:"default"}});function fv({className:e,variant:t,size:r,...n}){return l.jsx(dv,{"data-slot":"toggle",className:I(Kl({variant:t,size:r,className:e})),...n})}var Tn="rovingFocusGroup.onEntryFocus",pv={bubbles:!1,cancelable:!0},lr="RovingFocusGroup",[Yn,Yl,mv]=ro(lr),[gv,ql]=Ne(lr,[mv]),[hv,vv]=gv(lr),Xl=d.forwardRef((e,t)=>l.jsx(Yn.Provider,{scope:e.__scopeRovingFocusGroup,children:l.jsx(Yn.Slot,{scope:e.__scopeRovingFocusGroup,children:l.jsx(xv,{...e,ref:t})})}));Xl.displayName=lr;var xv=d.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,orientation:n,loop:o=!1,dir:s,currentTabStopId:a,defaultCurrentTabStopId:i,onCurrentTabStopIdChange:c,onEntryFocus:u,preventScrollOnEntryFocus:f=!1,...p}=e,h=d.useRef(null),m=de(t,h),w=Vr(s),[g,v]=ke({prop:a,defaultProp:i??null,onChange:c,caller:lr}),[b,x]=d.useState(!1),C=et(u),E=Yl(r),R=d.useRef(!1),[j,A]=d.useState(0);return d.useEffect(()=>{const N=h.current;if(N)return N.addEventListener(Tn,C),()=>N.removeEventListener(Tn,C)},[C]),l.jsx(hv,{scope:r,orientation:n,dir:w,loop:o,currentTabStopId:g,onItemFocus:d.useCallback(N=>v(N),[v]),onItemShiftTab:d.useCallback(()=>x(!0),[]),onFocusableItemAdd:d.useCallback(()=>A(N=>N+1),[]),onFocusableItemRemove:d.useCallback(()=>A(N=>N-1),[]),children:l.jsx(K.div,{tabIndex:b||j===0?-1:0,"data-orientation":n,...p,ref:m,style:{outline:"none",...e.style},onMouseDown:J(e.onMouseDown,()=>{R.current=!0}),onFocus:J(e.onFocus,N=>{const G=!R.current;if(N.target===N.currentTarget&&G&&!b){const Y=new CustomEvent(Tn,pv);if(N.currentTarget.dispatchEvent(Y),!Y.defaultPrevented){const ee=E().filter(T=>T.focusable),Q=ee.find(T=>T.active),q=ee.find(T=>T.id===g),M=[Q,q,...ee].filter(Boolean).map(T=>T.ref.current);Ql(M,f)}}R.current=!1}),onBlur:J(e.onBlur,()=>x(!1))})})}),Zl="RovingFocusGroupItem",Jl=d.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,focusable:n=!0,active:o=!1,tabStopId:s,children:a,...i}=e,c=he(),u=s||c,f=vv(Zl,r),p=f.currentTabStopId===u,h=Yl(r),{onFocusableItemAdd:m,onFocusableItemRemove:w,currentTabStopId:g}=f;return d.useEffect(()=>{if(n)return m(),()=>w()},[n,m,w]),l.jsx(Yn.ItemSlot,{scope:r,id:u,focusable:n,active:o,children:l.jsx(K.span,{tabIndex:p?0:-1,"data-orientation":f.orientation,...i,ref:t,onMouseDown:J(e.onMouseDown,v=>{n?f.onItemFocus(u):v.preventDefault()}),onFocus:J(e.onFocus,()=>f.onItemFocus(u)),onKeyDown:J(e.onKeyDown,v=>{if(v.key==="Tab"&&v.shiftKey){f.onItemShiftTab();return}if(v.target!==v.currentTarget)return;const b=wv(v,f.orientation,f.dir);if(b!==void 0){if(v.metaKey||v.ctrlKey||v.altKey||v.shiftKey)return;v.preventDefault();let C=h().filter(E=>E.focusable).map(E=>E.ref.current);if(b==="last")C.reverse();else if(b==="prev"||b==="next"){b==="prev"&&C.reverse();const E=C.indexOf(v.currentTarget);C=f.loop?Cv(C,E+1):C.slice(E+1)}setTimeout(()=>Ql(C))}}),children:typeof a=="function"?a({isCurrentTabStop:p,hasTabStop:g!=null}):a})})});Jl.displayName=Zl;var bv={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function yv(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function wv(e,t,r){const n=yv(e.key,r);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(n))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(n)))return bv[n]}function Ql(e,t=!1){const r=document.activeElement;for(const n of e)if(n===r||(n.focus({preventScroll:t}),document.activeElement!==r))return}function Cv(e,t){return e.map((r,n)=>e[(t+n)%e.length])}var Sv=Xl,Ev=Jl,it="ToggleGroup",[ec,Xy]=Ne(it,[ql]),tc=ql(),Oo=S.forwardRef((e,t)=>{const{type:r,...n}=e;if(r==="single"){const o=n;return l.jsx(kv,{...o,ref:t})}if(r==="multiple"){const o=n;return l.jsx(Pv,{...o,ref:t})}throw new Error(`Missing prop \`type\` expected on \`${it}\``)});Oo.displayName=it;var[rc,nc]=ec(it),kv=S.forwardRef((e,t)=>{const{value:r,defaultValue:n,onValueChange:o=()=>{},...s}=e,[a,i]=ke({prop:r,defaultProp:n??"",onChange:o,caller:it});return l.jsx(rc,{scope:e.__scopeToggleGroup,type:"single",value:S.useMemo(()=>a?[a]:[],[a]),onItemActivate:i,onItemDeactivate:S.useCallback(()=>i(""),[i]),children:l.jsx(oc,{...s,ref:t})})}),Pv=S.forwardRef((e,t)=>{const{value:r,defaultValue:n,onValueChange:o=()=>{},...s}=e,[a,i]=ke({prop:r,defaultProp:n??[],onChange:o,caller:it}),c=S.useCallback(f=>i((p=[])=>[...p,f]),[i]),u=S.useCallback(f=>i((p=[])=>p.filter(h=>h!==f)),[i]);return l.jsx(rc,{scope:e.__scopeToggleGroup,type:"multiple",value:a,onItemActivate:c,onItemDeactivate:u,children:l.jsx(oc,{...s,ref:t})})});Oo.displayName=it;var[Rv,Nv]=ec(it),oc=S.forwardRef((e,t)=>{const{__scopeToggleGroup:r,disabled:n=!1,rovingFocus:o=!0,orientation:s,dir:a,loop:i=!0,...c}=e,u=tc(r),f=Vr(a),p={role:"group",dir:f,...c};return l.jsx(Rv,{scope:r,rovingFocus:o,disabled:n,children:o?l.jsx(Sv,{asChild:!0,...u,orientation:s,dir:f,loop:i,children:l.jsx(K.div,{...p,ref:t})}):l.jsx(K.div,{...p,ref:t})})}),Ir="ToggleGroupItem",sc=S.forwardRef((e,t)=>{const r=nc(Ir,e.__scopeToggleGroup),n=Nv(Ir,e.__scopeToggleGroup),o=tc(e.__scopeToggleGroup),s=r.value.includes(e.value),a=n.disabled||e.disabled,i={...e,pressed:s,disabled:a},c=S.useRef(null);return n.rovingFocus?l.jsx(Ev,{asChild:!0,...o,focusable:!a,active:s,ref:c,children:l.jsx(Ks,{...i,ref:t})}):l.jsx(Ks,{...i,ref:t})});sc.displayName=Ir;var Ks=S.forwardRef((e,t)=>{const{__scopeToggleGroup:r,value:n,...o}=e,s=nc(Ir,r),a={role:"radio","aria-checked":e.pressed,"aria-pressed":void 0},i=s.type==="single"?a:void 0;return l.jsx(Io,{...i,...o,ref:t,onPressedChange:c=>{c?s.onItemActivate(n):s.onItemDeactivate(n)}})}),Tv=Oo,jv=sc;const ac=d.createContext({size:"default",variant:"default"});function Av({className:e,variant:t,size:r,children:n,...o}){return l.jsx(Tv,{"data-slot":"toggle-group","data-variant":t,"data-size":r,className:I("group/toggle-group flex w-fit items-center rounded-md data-[variant=outline]:shadow-xs dark:data-[variant=outline]:shadow-xs",e),...o,children:l.jsx(ac.Provider,{value:{variant:t,size:r},children:n})})}function _v({className:e,children:t,variant:r,size:n,...o}){const s=d.useContext(ac);return l.jsx(jv,{"data-slot":"toggle-group-item","data-variant":s.variant||r,"data-size":s.size||n,className:I(Kl({variant:s.variant||r,size:s.size||n}),"min-w-0 flex-1 shrink-0 rounded-none shadow-none first:rounded-l-md last:rounded-r-md focus:z-10 focus-visible:z-10 data-[variant=outline]:border-l-0 data-[variant=outline]:first:border-l",e),...o,children:t})}var rn="Collapsible",[Iv,ic]=Ne(rn),[Ov,Mo]=Iv(rn),lc=d.forwardRef((e,t)=>{const{__scopeCollapsible:r,open:n,defaultOpen:o,disabled:s,onOpenChange:a,...i}=e,[c,u]=ke({prop:n,defaultProp:o??!1,onChange:a,caller:rn});return l.jsx(Ov,{scope:r,disabled:s,contentId:he(),open:c,onOpenToggle:d.useCallback(()=>u(f=>!f),[u]),children:l.jsx(K.div,{"data-state":Lo(c),"data-disabled":s?"":void 0,...i,ref:t})})});lc.displayName=rn;var cc="CollapsibleTrigger",uc=d.forwardRef((e,t)=>{const{__scopeCollapsible:r,...n}=e,o=Mo(cc,r);return l.jsx(K.button,{type:"button","aria-controls":o.contentId,"aria-expanded":o.open||!1,"data-state":Lo(o.open),"data-disabled":o.disabled?"":void 0,disabled:o.disabled,...n,ref:t,onClick:J(e.onClick,o.onOpenToggle)})});uc.displayName=cc;var Do="CollapsibleContent",dc=d.forwardRef((e,t)=>{const{forceMount:r,...n}=e,o=Mo(Do,e.__scopeCollapsible);return l.jsx(qe,{present:r||o.open,children:({present:s})=>l.jsx(Mv,{...n,ref:t,present:s})})});dc.displayName=Do;var Mv=d.forwardRef((e,t)=>{const{__scopeCollapsible:r,present:n,children:o,...s}=e,a=Mo(Do,r),[i,c]=d.useState(n),u=d.useRef(null),f=de(t,u),p=d.useRef(0),h=p.current,m=d.useRef(0),w=m.current,g=a.open||i,v=d.useRef(g),b=d.useRef(void 0);return d.useEffect(()=>{const x=requestAnimationFrame(()=>v.current=!1);return()=>cancelAnimationFrame(x)},[]),ve(()=>{const x=u.current;if(x){b.current=b.current||{transitionDuration:x.style.transitionDuration,animationName:x.style.animationName},x.style.transitionDuration="0s",x.style.animationName="none";const C=x.getBoundingClientRect();p.current=C.height,m.current=C.width,v.current||(x.style.transitionDuration=b.current.transitionDuration,x.style.animationName=b.current.animationName),c(n)}},[a.open,n]),l.jsx(K.div,{"data-state":Lo(a.open),"data-disabled":a.disabled?"":void 0,id:a.contentId,hidden:!g,...s,ref:f,style:{"--radix-collapsible-content-height":h?`${h}px`:void 0,"--radix-collapsible-content-width":w?`${w}px`:void 0,...e.style},children:g&&o})});function Lo(e){return e?"open":"closed"}var Dv=lc,Lv=uc,$v=dc,Oe="Accordion",Fv=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[$o,Vv,Bv]=ro(Oe),[nn,Zy]=Ne(Oe,[Bv,ic]),Fo=ic(),fc=S.forwardRef((e,t)=>{const{type:r,...n}=e,o=n,s=n;return l.jsx($o.Provider,{scope:e.__scopeAccordion,children:r==="multiple"?l.jsx(Gv,{...s,ref:t}):l.jsx(Hv,{...o,ref:t})})});fc.displayName=Oe;var[pc,Wv]=nn(Oe),[mc,zv]=nn(Oe,{collapsible:!1}),Hv=S.forwardRef((e,t)=>{const{value:r,defaultValue:n,onValueChange:o=()=>{},collapsible:s=!1,...a}=e,[i,c]=ke({prop:r,defaultProp:n??"",onChange:o,caller:Oe});return l.jsx(pc,{scope:e.__scopeAccordion,value:S.useMemo(()=>i?[i]:[],[i]),onItemOpen:c,onItemClose:S.useCallback(()=>s&&c(""),[s,c]),children:l.jsx(mc,{scope:e.__scopeAccordion,collapsible:s,children:l.jsx(gc,{...a,ref:t})})})}),Gv=S.forwardRef((e,t)=>{const{value:r,defaultValue:n,onValueChange:o=()=>{},...s}=e,[a,i]=ke({prop:r,defaultProp:n??[],onChange:o,caller:Oe}),c=S.useCallback(f=>i((p=[])=>[...p,f]),[i]),u=S.useCallback(f=>i((p=[])=>p.filter(h=>h!==f)),[i]);return l.jsx(pc,{scope:e.__scopeAccordion,value:a,onItemOpen:c,onItemClose:u,children:l.jsx(mc,{scope:e.__scopeAccordion,collapsible:!0,children:l.jsx(gc,{...s,ref:t})})})}),[Uv,on]=nn(Oe),gc=S.forwardRef((e,t)=>{const{__scopeAccordion:r,disabled:n,dir:o,orientation:s="vertical",...a}=e,i=S.useRef(null),c=de(i,t),u=Vv(r),p=Vr(o)==="ltr",h=J(e.onKeyDown,m=>{var N;if(!Fv.includes(m.key))return;const w=m.target,g=u().filter(G=>{var Y;return!((Y=G.ref.current)!=null&&Y.disabled)}),v=g.findIndex(G=>G.ref.current===w),b=g.length;if(v===-1)return;m.preventDefault();let x=v;const C=0,E=b-1,R=()=>{x=v+1,x>E&&(x=C)},j=()=>{x=v-1,x<C&&(x=E)};switch(m.key){case"Home":x=C;break;case"End":x=E;break;case"ArrowRight":s==="horizontal"&&(p?R():j());break;case"ArrowDown":s==="vertical"&&R();break;case"ArrowLeft":s==="horizontal"&&(p?j():R());break;case"ArrowUp":s==="vertical"&&j();break}const A=x%b;(N=g[A].ref.current)==null||N.focus()});return l.jsx(Uv,{scope:r,disabled:n,direction:o,orientation:s,children:l.jsx($o.Slot,{scope:r,children:l.jsx(K.div,{...a,"data-orientation":s,ref:c,onKeyDown:n?void 0:h})})})}),Or="AccordionItem",[Kv,Vo]=nn(Or),hc=S.forwardRef((e,t)=>{const{__scopeAccordion:r,value:n,...o}=e,s=on(Or,r),a=Wv(Or,r),i=Fo(r),c=he(),u=n&&a.value.includes(n)||!1,f=s.disabled||e.disabled;return l.jsx(Kv,{scope:r,open:u,disabled:f,triggerId:c,children:l.jsx(Dv,{"data-orientation":s.orientation,"data-state":Cc(u),...i,...o,ref:t,disabled:f,open:u,onOpenChange:p=>{p?a.onItemOpen(n):a.onItemClose(n)}})})});hc.displayName=Or;var vc="AccordionHeader",xc=S.forwardRef((e,t)=>{const{__scopeAccordion:r,...n}=e,o=on(Oe,r),s=Vo(vc,r);return l.jsx(K.h3,{"data-orientation":o.orientation,"data-state":Cc(s.open),"data-disabled":s.disabled?"":void 0,...n,ref:t})});xc.displayName=vc;var qn="AccordionTrigger",bc=S.forwardRef((e,t)=>{const{__scopeAccordion:r,...n}=e,o=on(Oe,r),s=Vo(qn,r),a=zv(qn,r),i=Fo(r);return l.jsx($o.ItemSlot,{scope:r,children:l.jsx(Lv,{"aria-disabled":s.open&&!a.collapsible||void 0,"data-orientation":o.orientation,id:s.triggerId,...i,...n,ref:t})})});bc.displayName=qn;var yc="AccordionContent",wc=S.forwardRef((e,t)=>{const{__scopeAccordion:r,...n}=e,o=on(Oe,r),s=Vo(yc,r),a=Fo(r);return l.jsx($v,{role:"region","aria-labelledby":s.triggerId,"data-orientation":o.orientation,...a,...n,ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});wc.displayName=yc;function Cc(e){return e?"open":"closed"}var Yv=fc,qv=hc,Xv=xc,Zv=bc,Jv=wc;function Qv({...e}){return l.jsx(Yv,{"data-slot":"accordion",...e})}function ex({className:e,...t}){return l.jsx(qv,{"data-slot":"accordion-item",className:I("border-b last:border-b-0 dark:border-border",e),...t})}function tx({className:e,children:t,...r}){return l.jsx(Xv,{className:"flex",children:l.jsxs(Zv,{"data-slot":"accordion-trigger",className:I("focus-visible:border-ring focus-visible:ring-ring/50 flex flex-1 items-start justify-between gap-4 rounded-md py-4 text-left text-sm font-medium text-foreground transition-all outline-none hover:underline focus-visible:ring-[3px] disabled:pointer-events-none disabled:opacity-50 [&[data-state=open]>svg]:rotate-180 dark:text-foreground dark:focus-visible:border-ring dark:focus-visible:ring-ring/50",e),...r,children:[t,l.jsx(xo,{className:"text-muted-foreground pointer-events-none size-4 shrink-0 translate-y-0.5 transition-transform duration-200 dark:text-muted-foreground"})]})})}function rx({className:e,children:t,...r}){return l.jsx(Jv,{"data-slot":"accordion-content",className:"data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden text-sm text-foreground dark:text-foreground",...r,children:l.jsx("div",{className:I("pt-0 pb-4",e),children:t})})}var nx=e=>e.type==="checkbox",qt=e=>e instanceof Date,Bo=e=>e==null;const Sc=e=>typeof e=="object";var xt=e=>!Bo(e)&&!Array.isArray(e)&&Sc(e)&&!qt(e),ox=e=>xt(e)&&e.target?nx(e.target)?e.target.checked:e.target.value:e,sx=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,ax=(e,t)=>e.has(sx(t)),ix=e=>{const t=e.constructor&&e.constructor.prototype;return xt(t)&&t.hasOwnProperty("isPrototypeOf")},lx=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function Ec(e){let t;const r=Array.isArray(e),n=typeof FileList<"u"?e instanceof FileList:!1;if(e instanceof Date)t=new Date(e);else if(!(lx&&(e instanceof Blob||n))&&(r||xt(e)))if(t=r?[]:Object.create(Object.getPrototypeOf(e)),!r&&!ix(e))t=e;else for(const o in e)e.hasOwnProperty(o)&&(t[o]=Ec(e[o]));else return e;return t}var kc=e=>/^\w*$/.test(e),Xn=e=>e===void 0,cx=e=>Array.isArray(e)?e.filter(Boolean):[],Pc=e=>cx(e.replace(/["|']|\]/g,"").split(/\.|\[/)),Ce=(e,t,r)=>{if(!t||!xt(e))return r;const n=(kc(t)?[t]:Pc(t)).reduce((o,s)=>Bo(o)?o:o[s],e);return Xn(n)||n===e?Xn(e[t])?r:e[t]:n},jn=e=>typeof e=="boolean",Ys=(e,t,r)=>{let n=-1;const o=kc(t)?[t]:Pc(t),s=o.length,a=s-1;for(;++n<s;){const i=o[n];let c=r;if(n!==a){const u=e[i];c=xt(u)||Array.isArray(u)?u:isNaN(+o[n+1])?{}:[]}if(i==="__proto__"||i==="constructor"||i==="prototype")return;e[i]=c,e=e[i]}};const qs={BLUR:"blur",CHANGE:"change"},Xs={all:"all"},Wo=S.createContext(null);Wo.displayName="HookFormContext";const cr=()=>S.useContext(Wo),ux=e=>{const{children:t,...r}=e;return S.createElement(Wo.Provider,{value:r},t)};var dx=(e,t,r,n=!0)=>{const o={defaultValues:t._defaultValues};for(const s in e)Object.defineProperty(o,s,{get:()=>{const a=s;return t._proxyFormState[a]!==Xs.all&&(t._proxyFormState[a]=!n||Xs.all),r&&(r[a]=!0),e[a]}});return o};const Rc=typeof window<"u"?S.useLayoutEffect:S.useEffect;function Nc(e){const t=cr(),{control:r=t.control,disabled:n,name:o,exact:s}=e||{},[a,i]=S.useState(r._formState),c=S.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return Rc(()=>r._subscribe({name:o,formState:c.current,exact:s,callback:u=>{!n&&i({...r._formState,...u})}}),[o,n,s]),S.useEffect(()=>{c.current.isValid&&r._setValid(!0)},[r]),S.useMemo(()=>dx(a,r,c.current,!1),[a,r])}var fx=e=>typeof e=="string",px=(e,t,r,n,o)=>fx(e)?Ce(r,e,o):Array.isArray(e)?e.map(s=>Ce(r,s)):r,Zs=e=>Bo(e)||!Sc(e);function Tc(e,t,r=new WeakSet){if(Zs(e)||Zs(t))return e===t;if(qt(e)&&qt(t))return e.getTime()===t.getTime();const n=Object.keys(e),o=Object.keys(t);if(n.length!==o.length)return!1;if(r.has(e)||r.has(t))return!0;r.add(e),r.add(t);for(const s of n){const a=e[s];if(!o.includes(s))return!1;if(s!=="ref"){const i=t[s];if(qt(a)&&qt(i)||xt(a)&&xt(i)||Array.isArray(a)&&Array.isArray(i)?!Tc(a,i,r):a!==i)return!1}}return!0}function mx(e){const t=cr(),{control:r=t.control,name:n,defaultValue:o,disabled:s,exact:a,compute:i}=e||{},c=S.useRef(o),u=S.useRef(i),f=S.useRef(void 0);u.current=i;const p=S.useMemo(()=>r._getWatch(n,c.current),[r,n]),[h,m]=S.useState(u.current?u.current(p):p);return Rc(()=>r._subscribe({name:n,formState:{values:!0},exact:a,callback:w=>{if(!s){const g=px(n,r._names,w.values||r._formValues,!1,c.current);if(u.current){const v=u.current(g);Tc(v,f.current)||(m(v),f.current=v)}else m(g)}}}),[r,s,n,a]),S.useEffect(()=>r._removeUnmounted()),h}function gx(e){const t=cr(),{name:r,disabled:n,control:o=t.control,shouldUnregister:s,defaultValue:a}=e,i=ax(o._names.array,r),c=S.useMemo(()=>Ce(o._formValues,r,Ce(o._defaultValues,r,a)),[o,r,a]),u=mx({control:o,name:r,defaultValue:c,exact:!0}),f=Nc({control:o,name:r,exact:!0}),p=S.useRef(e),h=S.useRef(o.register(r,{...e.rules,value:u,...jn(e.disabled)?{disabled:e.disabled}:{}}));p.current=e;const m=S.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!Ce(f.errors,r)},isDirty:{enumerable:!0,get:()=>!!Ce(f.dirtyFields,r)},isTouched:{enumerable:!0,get:()=>!!Ce(f.touchedFields,r)},isValidating:{enumerable:!0,get:()=>!!Ce(f.validatingFields,r)},error:{enumerable:!0,get:()=>Ce(f.errors,r)}}),[f,r]),w=S.useCallback(x=>h.current.onChange({target:{value:ox(x),name:r},type:qs.CHANGE}),[r]),g=S.useCallback(()=>h.current.onBlur({target:{value:Ce(o._formValues,r),name:r},type:qs.BLUR}),[r,o._formValues]),v=S.useCallback(x=>{const C=Ce(o._fields,r);C&&x&&(C._f.ref={focus:()=>x.focus&&x.focus(),select:()=>x.select&&x.select(),setCustomValidity:E=>x.setCustomValidity(E),reportValidity:()=>x.reportValidity()})},[o._fields,r]),b=S.useMemo(()=>({name:r,value:u,...jn(n)||f.disabled?{disabled:f.disabled||n}:{},onChange:w,onBlur:g,ref:v}),[r,n,f.disabled,w,g,v,u]);return S.useEffect(()=>{const x=o._options.shouldUnregister||s;o.register(r,{...p.current.rules,...jn(p.current.disabled)?{disabled:p.current.disabled}:{}});const C=(E,R)=>{const j=Ce(o._fields,E);j&&j._f&&(j._f.mount=R)};if(C(r,!0),x){const E=Ec(Ce(o._options.defaultValues,r));Ys(o._defaultValues,r,E),Xn(Ce(o._formValues,r))&&Ys(o._formValues,r,E)}return!i&&o.register(r),()=>{(i?x&&!o._state.action:x)?o.unregister(r):C(r,!1)}},[r,o,i,s]),S.useEffect(()=>{o._setDisabledField({disabled:n,name:r})},[n,r,o]),S.useMemo(()=>({field:b,formState:f,fieldState:m}),[b,f,m])}const hx=e=>e.render(gx(e)),jc=S.createContext(void 0),Ac=e=>{const{methods:t,disabled:r,children:n}=e;return l.jsx(jc.Provider,{value:{disabled:r},children:l.jsx(ux,{...t,children:n})})},_c=()=>{const e=S.useContext(jc),t=cr();if(!e||!t)throw new Error("formContext must be used within a FormProvider");return{...e,...t}},vx=({type:e="button",...t})=>{const r=()=>e==="submit"||e==="reset"?"default":"outline";return l.jsx(It,{type:e,variant:r(),...t})};var Ic={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},Js=S.createContext&&S.createContext(Ic),xx=["attr","size","title"];function bx(e,t){if(e==null)return{};var r=yx(e,t),n,o;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(o=0;o<s.length;o++)n=s[o],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function yx(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Mr(){return Mr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Mr.apply(this,arguments)}function Qs(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Dr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Qs(Object(r),!0).forEach(function(n){wx(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Qs(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function wx(e,t,r){return t=Cx(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Cx(e){var t=Sx(e,"string");return typeof t=="symbol"?t:t+""}function Sx(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Oc(e){return e&&e.map((t,r)=>S.createElement(t.tag,Dr({key:r},t.attr),Oc(t.child)))}function Mc(e){return t=>S.createElement(Ex,Mr({attr:Dr({},e.attr)},t),Oc(e.child))}function Ex(e){var t=r=>{var{attr:n,size:o,title:s}=e,a=bx(e,xx),i=o||r.size||"1em",c;return r.className&&(c=r.className),e.className&&(c=(c?c+" ":"")+e.className),S.createElement("svg",Mr({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},r.attr,n,a,{className:c,style:Dr(Dr({color:e.color||r.color},r.style),e.style),height:i,width:i,xmlns:"http://www.w3.org/2000/svg"}),s&&S.createElement("title",null,s),e.children)};return Js!==void 0?S.createElement(Js.Consumer,null,r=>t(r)):t(Ic)}function kx(e){return Mc({attr:{viewBox:"0 0 24 24"},child:[{tag:"g",attr:{id:"Circle_Info"},child:[{tag:"g",attr:{},child:[{tag:"g",attr:{},child:[{tag:"path",attr:{d:"M11.5,15a.5.5,0,0,0,1,0h0V10.981a.5.5,0,0,0-1,0Z"},child:[]},{tag:"circle",attr:{cx:"12",cy:"8.999",r:"0.5"},child:[]}]},{tag:"path",attr:{d:"M12,2.065A9.934,9.934,0,1,1,2.066,12,9.945,9.945,0,0,1,12,2.065Zm0,18.867A8.934,8.934,0,1,0,3.066,12,8.944,8.944,0,0,0,12,20.932Z"},child:[]}]}]}]})(e)}var Px="Label",Dc=d.forwardRef((e,t)=>l.jsx(K.label,{...e,ref:t,onMouseDown:r=>{var o;r.target.closest("button, input, select, textarea")||((o=e.onMouseDown)==null||o.call(e,r),!r.defaultPrevented&&r.detail>1&&r.preventDefault())}}));Dc.displayName=Px;var Rx=Dc;function Nx({className:e,...t}){return l.jsx(Rx,{"data-slot":"label",className:I("flex items-center text-purple-mutted-300 gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",e),...t})}const Lc=d.createContext({}),Tx=({...e})=>l.jsx(Lc.Provider,{value:{name:e.name},children:l.jsx(hx,{...e})}),sn=()=>{const e=d.useContext(Lc),t=d.useContext($c),{getFieldState:r}=cr(),n=Nc({name:e.name}),o=r(e.name,n);if(!e)throw new Error("useFormField should be used within <FormField>");const{id:s}=t;return{id:s,name:e.name,formItemId:`${s}-form-item`,formDescriptionId:`${s}-form-item-description`,formMessageId:`${s}-form-item-message`,...o}},$c=d.createContext({});function jx({className:e,...t}){const r=d.useId();return l.jsx($c.Provider,{value:{id:r},children:l.jsx("div",{"data-slot":"form-item",className:I("grid gap-2",e),...t})})}function Ax({className:e,...t}){const{formItemId:r}=sn();return l.jsx(Nx,{"data-slot":"form-label",className:I("data-[error=true]:text-destructive font-normal text-sm",e),htmlFor:r,...t})}function _x({...e}){const{error:t,formItemId:r,formDescriptionId:n,formMessageId:o}=sn();return l.jsx(Ld,{"data-slot":"form-control",id:r,"aria-describedby":t?`${n} ${o}`:`${n}`,"aria-invalid":!!t,...e})}function Ix({className:e,...t}){const{formDescriptionId:r}=sn();return l.jsx("p",{"data-slot":"form-description",id:r,className:I("text-purple-mutted-300 text-sm",e),...t})}function Ox({className:e,...t}){const{error:r,formMessageId:n}=sn(),o=r?String((r==null?void 0:r.message)??""):t.children;return o?l.jsx("p",{"data-slot":"form-message",id:n,className:I("text-destructive text-sm",e),...t,children:o}):null}var[an,Jy]=Ne("Tooltip",[Bt]),ln=Bt(),Fc="TooltipProvider",Mx=700,Zn="tooltip.open",[Dx,zo]=an(Fc),Vc=e=>{const{__scopeTooltip:t,delayDuration:r=Mx,skipDelayDuration:n=300,disableHoverableContent:o=!1,children:s}=e,a=d.useRef(!0),i=d.useRef(!1),c=d.useRef(0);return d.useEffect(()=>{const u=c.current;return()=>window.clearTimeout(u)},[]),l.jsx(Dx,{scope:t,isOpenDelayedRef:a,delayDuration:r,onOpen:d.useCallback(()=>{window.clearTimeout(c.current),a.current=!1},[]),onClose:d.useCallback(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>a.current=!0,n)},[n]),isPointerInTransitRef:i,onPointerInTransitChange:d.useCallback(u=>{i.current=u},[]),disableHoverableContent:o,children:s})};Vc.displayName=Fc;var tr="Tooltip",[Lx,ur]=an(tr),Bc=e=>{const{__scopeTooltip:t,children:r,open:n,defaultOpen:o,onOpenChange:s,disableHoverableContent:a,delayDuration:i}=e,c=zo(tr,e.__scopeTooltip),u=ln(t),[f,p]=d.useState(null),h=he(),m=d.useRef(0),w=a??c.disableHoverableContent,g=i??c.delayDuration,v=d.useRef(!1),[b,x]=ke({prop:n,defaultProp:o??!1,onChange:A=>{A?(c.onOpen(),document.dispatchEvent(new CustomEvent(Zn))):c.onClose(),s==null||s(A)},caller:tr}),C=d.useMemo(()=>b?v.current?"delayed-open":"instant-open":"closed",[b]),E=d.useCallback(()=>{window.clearTimeout(m.current),m.current=0,v.current=!1,x(!0)},[x]),R=d.useCallback(()=>{window.clearTimeout(m.current),m.current=0,x(!1)},[x]),j=d.useCallback(()=>{window.clearTimeout(m.current),m.current=window.setTimeout(()=>{v.current=!0,x(!0),m.current=0},g)},[g,x]);return d.useEffect(()=>()=>{m.current&&(window.clearTimeout(m.current),m.current=0)},[]),l.jsx(po,{...u,children:l.jsx(Lx,{scope:t,contentId:h,open:b,stateAttribute:C,trigger:f,onTriggerChange:p,onTriggerEnter:d.useCallback(()=>{c.isOpenDelayedRef.current?j():E()},[c.isOpenDelayedRef,j,E]),onTriggerLeave:d.useCallback(()=>{w?R():(window.clearTimeout(m.current),m.current=0)},[R,w]),onOpen:E,onClose:R,disableHoverableContent:w,children:r})})};Bc.displayName=tr;var Jn="TooltipTrigger",Wc=d.forwardRef((e,t)=>{const{__scopeTooltip:r,...n}=e,o=ur(Jn,r),s=zo(Jn,r),a=ln(r),i=d.useRef(null),c=de(t,i,o.onTriggerChange),u=d.useRef(!1),f=d.useRef(!1),p=d.useCallback(()=>u.current=!1,[]);return d.useEffect(()=>()=>document.removeEventListener("pointerup",p),[p]),l.jsx(Ur,{asChild:!0,...a,children:l.jsx(K.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...n,ref:c,onPointerMove:J(e.onPointerMove,h=>{h.pointerType!=="touch"&&!f.current&&!s.isPointerInTransitRef.current&&(o.onTriggerEnter(),f.current=!0)}),onPointerLeave:J(e.onPointerLeave,()=>{o.onTriggerLeave(),f.current=!1}),onPointerDown:J(e.onPointerDown,()=>{o.open&&o.onClose(),u.current=!0,document.addEventListener("pointerup",p,{once:!0})}),onFocus:J(e.onFocus,()=>{u.current||o.onOpen()}),onBlur:J(e.onBlur,o.onClose),onClick:J(e.onClick,o.onClose)})})});Wc.displayName=Jn;var Ho="TooltipPortal",[$x,Fx]=an(Ho,{forceMount:void 0}),zc=e=>{const{__scopeTooltip:t,forceMount:r,children:n,container:o}=e,s=ur(Ho,t);return l.jsx($x,{scope:t,forceMount:r,children:l.jsx(qe,{present:r||s.open,children:l.jsx(sr,{asChild:!0,container:o,children:n})})})};zc.displayName=Ho;var Dt="TooltipContent",Hc=d.forwardRef((e,t)=>{const r=Fx(Dt,e.__scopeTooltip),{forceMount:n=r.forceMount,side:o="top",...s}=e,a=ur(Dt,e.__scopeTooltip);return l.jsx(qe,{present:n||a.open,children:a.disableHoverableContent?l.jsx(Gc,{side:o,...s,ref:t}):l.jsx(Vx,{side:o,...s,ref:t})})}),Vx=d.forwardRef((e,t)=>{const r=ur(Dt,e.__scopeTooltip),n=zo(Dt,e.__scopeTooltip),o=d.useRef(null),s=de(t,o),[a,i]=d.useState(null),{trigger:c,onClose:u}=r,f=o.current,{onPointerInTransitChange:p}=n,h=d.useCallback(()=>{i(null),p(!1)},[p]),m=d.useCallback((w,g)=>{const v=w.currentTarget,b={x:w.clientX,y:w.clientY},x=Hx(b,v.getBoundingClientRect()),C=Gx(b,x),E=Ux(g.getBoundingClientRect()),R=Yx([...C,...E]);i(R),p(!0)},[p]);return d.useEffect(()=>()=>h(),[h]),d.useEffect(()=>{if(c&&f){const w=v=>m(v,f),g=v=>m(v,c);return c.addEventListener("pointerleave",w),f.addEventListener("pointerleave",g),()=>{c.removeEventListener("pointerleave",w),f.removeEventListener("pointerleave",g)}}},[c,f,m,h]),d.useEffect(()=>{if(a){const w=g=>{const v=g.target,b={x:g.clientX,y:g.clientY},x=(c==null?void 0:c.contains(v))||(f==null?void 0:f.contains(v)),C=!Kx(b,a);x?h():C&&(h(),u())};return document.addEventListener("pointermove",w),()=>document.removeEventListener("pointermove",w)}},[c,f,a,u,h]),l.jsx(Gc,{...e,ref:s})}),[Bx,Wx]=an(tr,{isInside:!1}),zx=Fd("TooltipContent"),Gc=d.forwardRef((e,t)=>{const{__scopeTooltip:r,children:n,"aria-label":o,onEscapeKeyDown:s,onPointerDownOutside:a,...i}=e,c=ur(Dt,r),u=ln(r),{onClose:f}=c;return d.useEffect(()=>(document.addEventListener(Zn,f),()=>document.removeEventListener(Zn,f)),[f]),d.useEffect(()=>{if(c.trigger){const p=h=>{const m=h.target;m!=null&&m.contains(c.trigger)&&f()};return window.addEventListener("scroll",p,{capture:!0}),()=>window.removeEventListener("scroll",p,{capture:!0})}},[c.trigger,f]),l.jsx(nr,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:a,onFocusOutside:p=>p.preventDefault(),onDismiss:f,children:l.jsxs(mo,{"data-state":c.stateAttribute,...u,...i,ref:t,style:{...i.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[l.jsx(zx,{children:n}),l.jsx(Bx,{scope:r,isInside:!0,children:l.jsx(Ip,{id:c.contentId,role:"tooltip",children:o||n})})]})})});Hc.displayName=Dt;var Uc="TooltipArrow",Kc=d.forwardRef((e,t)=>{const{__scopeTooltip:r,...n}=e,o=ln(r);return Wx(Uc,r).isInside?null:l.jsx(go,{...o,...n,ref:t})});Kc.displayName=Uc;function Hx(e,t){const r=Math.abs(t.top-e.y),n=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),s=Math.abs(t.left-e.x);switch(Math.min(r,n,o,s)){case s:return"left";case o:return"right";case r:return"top";case n:return"bottom";default:throw new Error("unreachable")}}function Gx(e,t,r=5){const n=[];switch(t){case"top":n.push({x:e.x-r,y:e.y+r},{x:e.x+r,y:e.y+r});break;case"bottom":n.push({x:e.x-r,y:e.y-r},{x:e.x+r,y:e.y-r});break;case"left":n.push({x:e.x+r,y:e.y-r},{x:e.x+r,y:e.y+r});break;case"right":n.push({x:e.x-r,y:e.y-r},{x:e.x-r,y:e.y+r});break}return n}function Ux(e){const{top:t,right:r,bottom:n,left:o}=e;return[{x:o,y:t},{x:r,y:t},{x:r,y:n},{x:o,y:n}]}function Kx(e,t){const{x:r,y:n}=e;let o=!1;for(let s=0,a=t.length-1;s<t.length;a=s++){const i=t[s],c=t[a],u=i.x,f=i.y,p=c.x,h=c.y;f>n!=h>n&&r<(p-u)*(n-f)/(h-f)+u&&(o=!o)}return o}function Yx(e){const t=e.slice();return t.sort((r,n)=>r.x<n.x?-1:r.x>n.x?1:r.y<n.y?-1:r.y>n.y?1:0),qx(t)}function qx(e){if(e.length<=1)return e.slice();const t=[];for(let n=0;n<e.length;n++){const o=e[n];for(;t.length>=2;){const s=t[t.length-1],a=t[t.length-2];if((s.x-a.x)*(o.y-a.y)>=(s.y-a.y)*(o.x-a.x))t.pop();else break}t.push(o)}t.pop();const r=[];for(let n=e.length-1;n>=0;n--){const o=e[n];for(;r.length>=2;){const s=r[r.length-1],a=r[r.length-2];if((s.x-a.x)*(o.y-a.y)>=(s.y-a.y)*(o.x-a.x))r.pop();else break}r.push(o)}return r.pop(),t.length===1&&r.length===1&&t[0].x===r[0].x&&t[0].y===r[0].y?t:t.concat(r)}var Xx=Vc,Zx=Bc,Jx=Wc,Qx=zc,eb=Hc,tb=Kc;function Yc({delayDuration:e=0,...t}){return l.jsx(Xx,{"data-slot":"tooltip-provider",delayDuration:e,...t})}function qc({...e}){return l.jsx(Yc,{children:l.jsx(Zx,{"data-slot":"tooltip",...e})})}function Xc({...e}){return l.jsx(Jx,{"data-slot":"tooltip-trigger",...e})}function Zc({className:e,sideOffset:t=0,children:r,disableArrow:n=!1,...o}){return l.jsx(Qx,{children:l.jsxs(eb,{"data-slot":"tooltip-content",sideOffset:t,className:I("bg-purple-mutted-700 border border-purple-mutted-600 text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs text-balance",e,{"py-2.5":n}),...o,children:[r,!n&&l.jsx(tb,{className:"bg-purple-mutted-700 fill-purple-mutted-700 z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]"})]})})}const Go=e=>t=>{const{name:r,label:n,description:o,tooltip:s,...a}=t,{control:i,disabled:c}=_c(),u=()=>s?l.jsxs(qc,{children:[l.jsx(Xc,{asChild:!0,children:l.jsx(kx,{size:16})}),l.jsx(Zc,{children:l.jsx("p",{children:s})})]}):l.jsx(l.Fragment,{}),f=()=>o?l.jsx(Ix,{children:o}):l.jsx(l.Fragment,{});return l.jsx(Tx,{control:i,name:r,render:({field:p,fieldState:h})=>l.jsxs(jx,{className:"flex flex-col gap-1.5",children:[n&&l.jsx(Ax,{children:l.jsxs("span",{className:"flex items-center gap-1",children:[n,!!s&&u()]})}),l.jsx(_x,{children:l.jsx(e,{...p,...a,disabled:c,error:!!h.error})}),!!o&&f(),l.jsx(Ox,{})]})})},rb=Go(to),Jc=S.forwardRef(({options:e,placeholder:t,value:r,onChange:n,disabled:o},s)=>{var c;const a=u=>{n&&n({target:{value:u}})},i=u=>l.jsx(So,{value:u.value,disabled:u.disabled,children:l.jsxs("div",{className:"flex flex-col",children:[u.label,u.subLabel&&l.jsx("span",{className:"text-xs text-muted-foreground",style:{overflowWrap:"anywhere"},children:u.subLabel})]})},u.value);return l.jsxs(Gi,{value:r,onValueChange:a,disabled:o,children:[l.jsx(bo,{ref:s,children:l.jsx(Ui,{placeholder:t,children:r&&((c=e.find(u=>u.value===r))==null?void 0:c.label)})}),l.jsx(Co,{children:e.map(i)})]})});Jc.displayName="BaseSelectComponent";const nb=Go(Jc),ob=S.forwardRef((e,t)=>{const{options:r=[],placeholder:n,value:o,onChange:s=()=>{},disabled:a,searchPlaceholder:i,emptyText:c}=e,u=f=>{s({target:{value:f}})};return l.jsx(To,{ref:t,options:r,value:o,onValueChange:u,placeholder:n,searchPlaceholder:i,emptyText:c,disabled:a})}),sb=Go(ob),ab=e=>l.jsx("hr",{className:"w-full h-px border-purple-mutted-500",...e}),ib=({children:e,description:t,className:r})=>l.jsxs("div",{className:I("space-y-1",r),children:[l.jsx("h2",{className:"flex items-center gap-2.5 text-2xl text-white",children:e}),t&&l.jsx("span",{className:"text-sm text-purple-mutted-300",children:t})]}),bt=e=>{const{className:t,disabled:r=!1,methods:n,onSubmit:o=()=>{},...s}=e,{handleSubmit:a}=n,i=I("flex flex-col gap-6",{},t);return l.jsx(Ac,{methods:n,disabled:r,children:l.jsx("form",{className:i,onSubmit:a(o),...s})})};bt.Button=vx;bt.Input=rb;bt.Select=nb;bt.Combobox=sb;bt.Divider=ab;bt.Title=ib;function lb(e){return e==null?[]:Array.isArray(e)?e:[e]}var cb=e=>Array.from(Array(e).keys()),ea=e=>(e==null?void 0:e.constructor.name)==="Array",ub=(e,t)=>{if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(!Uo(e[r],t[r]))return!1;return!0},Uo=(e,t)=>{if(Object.is(e,t))return!0;if(e==null&&t!=null||e!=null&&t==null)return!1;if(typeof(e==null?void 0:e.isEqual)=="function"&&typeof(t==null?void 0:t.isEqual)=="function")return e.isEqual(t);if(typeof e=="function"&&typeof t=="function")return e.toString()===t.toString();if(ea(e)&&ea(t))return ub(Array.from(e),Array.from(t));if(typeof e!="object"||typeof t!="object")return!1;const r=Object.keys(t??Object.create(null)),n=r.length;for(let o=0;o<n;o++)if(!Reflect.has(e,r[o]))return!1;for(let o=0;o<n;o++){const s=r[o];if(!Uo(e[s],t[s]))return!1}return!0},db=e=>e!=null&&typeof e=="object",kr=e=>typeof e=="string",Xt=e=>typeof e=="function",fb=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),pb=e=>Object.prototype.toString.call(e),Qc=Function.prototype.toString,mb=Qc.call(Object),gb=e=>{if(!db(e)||pb(e)!="[object Object]"||xb(e))return!1;const t=Object.getPrototypeOf(e);if(t===null)return!0;const r=fb(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&Qc.call(r)==mb},hb=e=>typeof e=="object"&&e!==null&&"$$typeof"in e&&"props"in e,vb=e=>typeof e=="object"&&e!==null&&"__v_isVNode"in e,xb=e=>hb(e)||vb(e),bb=e=>e(),yb=(...e)=>(...t)=>{e.forEach(function(r){r==null||r(...t)})},wb=e=>Number.isNaN(e),Cb=e=>wb(e)?0:e,Sb=(e,t,r)=>{const n=Cb(e),o=n>=t,s=r==null||n<=r;return o&&s};function eu(e){if(!gb(e)||e===void 0)return e;const t=Reflect.ownKeys(e).filter(n=>typeof n=="string"),r={};for(const n of t){const o=e[n];o!==void 0&&(r[n]=eu(o))}return r}function ta(...e){const t=e.length===1?e[0]:e[1];(e.length===2?e[0]:!0)&&process.env.NODE_ENV!=="production"&&console.warn(t)}function Eb(e,t){if(e==null)throw new Error(t())}var tu=e=>typeof e=="object"&&e!==null,Le=e=>e?"":void 0,kb=9,Pb=e=>tu(e)&&e.nodeType===kb,Rb=e=>tu(e)&&e===e.window;function Nb(e){if(!e)return!1;const t=e.getRootNode();return ru(t)===e}function Tb(e){return Pb(e)?e:Rb(e)?e.document:(e==null?void 0:e.ownerDocument)??document}function ru(e){let t=e.activeElement;for(;t!=null&&t.shadowRoot;){const r=t.shadowRoot.activeElement;if(!r||r===t)break;t=r}return t}var jb=(...e)=>e.map(t=>{var r;return(r=t==null?void 0:t.trim)==null?void 0:r.call(t)}).filter(Boolean).join(" "),Ab=/((?:--)?(?:\w+-?)+)\s*:\s*([^;]*)/g,ra=e=>{const t={};let r;for(;r=Ab.exec(e);)t[r[1]]=r[2];return t},_b=(e,t)=>{if(kr(e)){if(kr(t))return`${e};${t}`;e=ra(e)}else kr(t)&&(t=ra(t));return Object.assign({},e??{},t??{})};function Me(...e){let t={};for(let r of e){if(!r)continue;for(let o in t){if(o.startsWith("on")&&typeof t[o]=="function"&&typeof r[o]=="function"){t[o]=yb(r[o],t[o]);continue}if(o==="className"||o==="class"){t[o]=jb(t[o],r[o]);continue}if(o==="style"){t[o]=_b(t[o],r[o]);continue}t[o]=r[o]!==void 0?r[o]:t[o]}for(let o in r)t[o]===void 0&&(t[o]=r[o]);const n=Object.getOwnPropertySymbols(r);for(let o of n)t[o]=r[o]}return t}function Ib(e,t,r){let n=[],o;return s=>{const a=e(s);return(a.length!==n.length||a.some((c,u)=>!Uo(n[u],c)))&&(n=a,o=t(a,s)),o}}var Tt=(e=>(e.NotStarted="Not Started",e.Started="Started",e.Stopped="Stopped",e))(Tt||{}),An="__init__";function Ob(e){const t=()=>{var a;return((a=e.getRootNode)==null?void 0:a.call(e))??document},r=()=>Tb(t());return{...e,getRootNode:t,getDoc:r,getWin:()=>r().defaultView??window,getActiveElement:()=>ru(t()),isActiveElement:Nb,getById:a=>t().getElementById(a)}}function Mb(e){return new Proxy({},{get(t,r){return r==="style"?n=>e({style:n}).style:e}})}var Db=()=>e=>Array.from(new Set(e)),nu=typeof globalThis.document<"u"?S.useLayoutEffect:S.useEffect;function Lr(e){const t=e().value??e().defaultValue,r=e().isEqual??Object.is,[n]=S.useState(t),[o,s]=S.useState(n),a=e().value!==void 0,i=S.useRef(o);i.current=a?e().value:o;const c=S.useRef(i.current);nu(()=>{c.current=i.current},[o,e().value]);const u=p=>{var w,g;const h=c.current,m=Xt(p)?p(h):p;e().debug&&console.log(`[bindable > ${e().debug}] setValue`,{next:m,prev:h}),a||s(m),r(m,h)||(g=(w=e()).onChange)==null||g.call(w,m,h)};function f(){return a?e().value:o}return{initial:n,ref:i,get:f,set(p){(e().sync?rr.flushSync:bb)(()=>u(p))},invoke(p,h){var m,w;(w=(m=e()).onChange)==null||w.call(m,p,h)},hash(p){var h,m;return((m=(h=e()).hash)==null?void 0:m.call(h,p))??String(p)}}}Lr.cleanup=e=>{S.useEffect(()=>e,[])};Lr.ref=e=>{const t=S.useRef(e);return{get:()=>t.current,set:r=>{t.current=r}}};function Lb(e){const t=S.useRef(e);return{get(r){return t.current[r]},set(r,n){t.current[r]=n}}}var $b=(e,t)=>{const r=S.useRef(!1),n=S.useRef(!1);S.useEffect(()=>{if(r.current&&n.current)return t();n.current=!0},[...(e??[]).map(o=>typeof o=="function"?o():o)]),S.useEffect(()=>(r.current=!0,()=>{r.current=!1}),[])};function Fb(e,t={}){var ee,Q,q,W;const r=S.useMemo(()=>{const{id:M,ids:T,getRootNode:D}=t;return Ob({id:M,ids:T,getRootNode:D})},[t]),n=(...M)=>{e.debug&&console.log(...M)},o=((ee=e.props)==null?void 0:ee.call(e,{props:eu(t),scope:r}))??t,s=Vb(o),a=(Q=e.context)==null?void 0:Q.call(e,{prop:s,bindable:Lr,scope:r,flush:na,getContext(){return c},getComputed(){return R},getRefs(){return g},getEvent(){return m()}}),i=ou(a),c={get(M){var T;return(T=i.current)==null?void 0:T[M].ref.current},set(M,T){var D;(D=i.current)==null||D[M].set(T)},initial(M){var T;return(T=i.current)==null?void 0:T[M].initial},hash(M){var D,k;const T=(D=i.current)==null?void 0:D[M].get();return(k=i.current)==null?void 0:k[M].hash(T)}},u=S.useRef(new Map),f=S.useRef(null),p=S.useRef(null),h=S.useRef({type:""}),m=()=>({...h.current,current(){return h.current},previous(){return p.current}}),w=()=>({...j,matches(...M){return M.includes(j.ref.current)},hasTag(M){var T,D;return!!((D=(T=e.states[j.ref.current])==null?void 0:T.tags)!=null&&D.includes(M))}}),g=Lb(((q=e.refs)==null?void 0:q.call(e,{prop:s,context:c}))??{}),v=()=>({state:w(),context:c,event:m(),prop:s,send:Y,action:b,guard:x,track:$b,refs:g,computed:R,flush:na,scope:r,choose:E}),b=M=>{const T=Xt(M)?M(v()):M;if(!T)return;const D=T.map(k=>{var U,re;const H=(re=(U=e.implementations)==null?void 0:U.actions)==null?void 0:re[k];return H||ta(`[zag-js] No implementation found for action "${JSON.stringify(k)}"`),H});for(const k of D)k==null||k(v())},x=M=>{var T,D;return Xt(M)?M(v()):(D=(T=e.implementations)==null?void 0:T.guards)==null?void 0:D[M](v())},C=M=>{const T=Xt(M)?M(v()):M;if(!T)return;const D=T.map(H=>{var re,P;const U=(P=(re=e.implementations)==null?void 0:re.effects)==null?void 0:P[H];return U||ta(`[zag-js] No implementation found for effect "${JSON.stringify(H)}"`),U}),k=[];for(const H of D){const U=H==null?void 0:H(v());U&&k.push(U)}return()=>k.forEach(H=>H==null?void 0:H())},E=M=>lb(M).find(T=>{let D=!T.guard;return kr(T.guard)?D=!!x(T.guard):Xt(T.guard)&&(D=T.guard(v())),D}),R=M=>{Eb(e.computed,()=>"[zag-js] No computed object found on machine");const T=e.computed[M];return T({context:c,event:m(),prop:s,refs:g,scope:r,computed:R})},j=Lr(()=>({defaultValue:e.initialState({prop:s}),onChange(M,T){var k,H,U,re;if(T){const P=u.current.get(T);P==null||P(),u.current.delete(T)}T&&b((k=e.states[T])==null?void 0:k.exit),b((H=f.current)==null?void 0:H.actions);const D=C((U=e.states[M])==null?void 0:U.effects);if(D&&u.current.set(M,D),T===An){b(e.entry);const P=C(e.effects);P&&u.current.set(An,P)}b((re=e.states[M])==null?void 0:re.entry)}})),A=S.useRef(void 0),N=S.useRef(Tt.NotStarted);nu(()=>{queueMicrotask(()=>{const D=N.current===Tt.Started;N.current=Tt.Started,n(D?"rehydrating...":"initializing...");const k=A.current??j.initial;j.invoke(k,D?j.get():An)});const M=u.current,T=j.ref.current;return()=>{n("unmounting..."),A.current=T,N.current=Tt.Stopped,M.forEach(D=>D==null?void 0:D()),u.current=new Map,f.current=null,queueMicrotask(()=>{b(e.exit)})}},[]);const G=()=>"ref"in j?j.ref.current:j.get(),Y=M=>{queueMicrotask(()=>{var re,P;if(N.current!==Tt.Started)return;p.current=h.current,h.current=M;let T=G();const D=((re=e.states[T].on)==null?void 0:re[M.type])??((P=e.on)==null?void 0:P[M.type]),k=E(D);if(!k)return;f.current=k;const H=k.target??T;n("transition",M.type,k.target||T,`(${k.actions})`);const U=H!==T;U?rr.flushSync(()=>j.set(H)):k.reenter&&!U?j.invoke(T,T):b(k.actions??[])})};return(W=e.watch)==null||W.call(e,v()),{state:w(),send:Y,context:c,prop:s,scope:r,refs:g,computed:R,event:m(),getStatus:()=>N.current}}function ou(e){const t=S.useRef(e);return t.current=e,t}function Vb(e){const t=ou(e);return function(n){return t.current[n]}}function na(e){queueMicrotask(()=>{rr.flushSync(()=>e())})}var Bb=Mb(e=>e);function Wb(...e){return t=>{const r=[];for(const n of e)if(typeof n=="function"){const o=n(t);typeof o=="function"&&r.push(o)}else n&&(n.current=t);if(r.length)return()=>{for(const n of r)n()}}}function zb(e){var n,o;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}const _n=e=>{const t=S.memo(S.forwardRef((r,n)=>{const{asChild:o,children:s,...a}=r;if(!o)return S.createElement(e,{...a,ref:n},s);if(!S.isValidElement(s))return null;const i=S.Children.only(s),c=zb(i);return S.cloneElement(i,{...Me(a,i.props),ref:n?Wb(n,c):c})}));return t.displayName=e.displayName||e.name,t},Hb=()=>{const e=new Map;return new Proxy(_n,{apply(t,r,n){return _n(n[0])},get(t,r){const n=r;return e.has(n)||e.set(n,_n(n)),e.get(n)}})},He=Hb();function Gb(e,t){return`${e} returned \`undefined\`. Seems you forgot to wrap component within ${t}`}function dr(e={}){const{name:t,strict:r=!0,hookName:n="useContext",providerName:o="Provider",errorMessage:s,defaultValue:a}=e,i=S.createContext(a);i.displayName=t;function c(){var f;const u=S.useContext(i);if(!u&&r){const p=new Error(s??Gb(n,o));throw p.name="ContextError",(f=Error.captureStackTrace)==null||f.call(Error,p,c),p}return u}return[i.Provider,c,i]}const[Ub,Xe]=dr({name:"StepsContext",hookName:"useStepsContext",providerName:"<StepsProvider />"}),su=S.forwardRef((e,t)=>{const r=Xe(),n=Me(r.getContentProps({index:r.count}),e);return l.jsx(He.div,{...n,ref:t})});su.displayName="StepsCompletedContent";const Ko=()=>(e,t)=>t.reduce((r,n)=>{const[o,s]=r,a=n;return s[a]!==void 0&&(o[a]=s[a]),delete s[a],[o,s]},[{},{...e}]),au=S.forwardRef((e,t)=>{const[r,n]=Ko()(e,["index"]),o=Xe(),s=Me(o.getContentProps(r),n);return l.jsx(He.div,{...s,ref:t})});au.displayName="StepsContent";const[Kb,Yo]=dr({name:"StepsItemPropsContext",hookName:"useStepsItemPropsContext",providerName:"<StepsItemPropsProvider />"}),iu=S.forwardRef((e,t)=>{const r=Xe(),n=Yo(),o=Me(r.getIndicatorProps(n),e);return l.jsx(He.div,{...o,ref:t})});iu.displayName="StepsIndicator";const[Yb,Qy]=dr({name:"StepsItemContext",hookName:"useStepsItemContext",providerName:"<StepsItem />"}),lu=S.forwardRef((e,t)=>{const[r,n]=Ko()(e,["index"]),o=Xe(),s=Me(o.getItemProps(r),n),a=o.getItemState(r);return l.jsx(Kb,{value:r,children:l.jsx(Yb,{value:a,children:l.jsx(He.div,{...s,ref:t})})})});lu.displayName="StepsItem";const cu=S.forwardRef((e,t)=>{const r=Xe(),n=Me(r.getListProps(),e);return l.jsx(He.div,{...n,ref:t})});cu.displayName="StepsList";const uu=S.forwardRef((e,t)=>{const r=Xe(),n=Me(r.getNextTriggerProps(),e);return l.jsx(He.button,{...n,ref:t})});uu.displayName="StepsNextTrigger";const du=S.forwardRef((e,t)=>{const r=Xe(),n=Me(r.getPrevTriggerProps(),e);return l.jsx(He.button,{...n,ref:t})});du.displayName="StepsPrevTrigger";var Zt=(e,t=[])=>({parts:(...r)=>{if(qb(t))return Zt(e,r);throw new Error("createAnatomy().parts(...) should only be called once. Did you mean to use .extendWith(...) ?")},extendWith:(...r)=>Zt(e,[...t,...r]),omit:(...r)=>Zt(e,t.filter(n=>!r.includes(n))),rename:r=>Zt(r,t),keys:()=>t,build:()=>[...new Set(t)].reduce((r,n)=>Object.assign(r,{[n]:{selector:[`&[data-scope="${Pt(e)}"][data-part="${Pt(n)}"]`,`& [data-scope="${Pt(e)}"][data-part="${Pt(n)}"]`].join(", "),attrs:{"data-scope":Pt(e),"data-part":Pt(n)}}}),{})}),Pt=e=>e.replace(/([A-Z])([A-Z])/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase(),qb=e=>e.length===0,Xb=Zt("steps").parts("root","list","item","trigger","indicator","separator","content","nextTrigger","prevTrigger","progress"),$e=Xb.build(),Zb=e=>{var t;return((t=e.ids)==null?void 0:t.root)??`steps:${e.id}`},Jb=e=>{var t;return((t=e.ids)==null?void 0:t.list)??`steps:${e.id}:list`},oa=(e,t)=>{var r,n;return((n=(r=e.ids)==null?void 0:r.triggerId)==null?void 0:n.call(r,t))??`steps:${e.id}:trigger:${t}`},Qb=(e,t)=>{var r,n;return((n=(r=e.ids)==null?void 0:r.contentId)==null?void 0:n.call(r,t))??`steps:${e.id}:content:${t}`};function ey(e,t){const{context:r,send:n,computed:o,prop:s,scope:a}=e,i=r.get("step"),c=s("count"),u=o("percent"),f=o("hasNextStep"),p=o("hasPrevStep"),h=b=>({triggerId:oa(a,b.index),contentId:Qb(a,b.index),current:b.index===i,completed:b.index<i,incomplete:b.index>i,index:b.index,first:b.index===0,last:b.index===c-1}),m=()=>{n({type:"STEP.NEXT",src:"next.trigger.click"})},w=()=>{n({type:"STEP.PREV",src:"prev.trigger.click"})},g=()=>{n({type:"STEP.RESET",src:"reset.trigger.click"})},v=b=>{n({type:"STEP.SET",value:b,src:"api.setValue"})};return{value:i,count:c,percent:u,hasNextStep:f,hasPrevStep:p,isCompleted:o("completed"),goToNextStep:m,goToPrevStep:w,resetStep:g,getItemState:h,setStep:v,getRootProps(){return t.element({...$e.root.attrs,id:Zb(a),dir:s("dir"),"data-orientation":s("orientation"),style:{"--percent":`${u}%`}})},getListProps(){const x=cb(c).map((C,E)=>oa(a,E));return t.element({...$e.list.attrs,dir:s("dir"),id:Jb(a),role:"tablist","aria-owns":x.join(" "),"aria-orientation":s("orientation"),"data-orientation":s("orientation")})},getItemProps(b){const x=h(b);return t.element({...$e.item.attrs,dir:s("dir"),"aria-current":x.current?"step":void 0,"data-orientation":s("orientation")})},getTriggerProps(b){const x=h(b);return t.button({...$e.trigger.attrs,id:x.triggerId,role:"tab",dir:s("dir"),tabIndex:!s("linear")||x.current?0:-1,"aria-selected":x.current,"aria-controls":x.contentId,"data-state":x.current?"open":"closed","data-orientation":s("orientation"),"data-complete":Le(x.completed),"data-current":Le(x.current),"data-incomplete":Le(x.incomplete),onClick(C){C.defaultPrevented||s("linear")||n({type:"STEP.SET",value:b.index,src:"trigger.click"})}})},getContentProps(b){const x=h(b);return t.element({...$e.content.attrs,dir:s("dir"),id:x.contentId,role:"tabpanel",tabIndex:0,hidden:!x.current,"data-state":x.current?"open":"closed","data-orientation":s("orientation"),"aria-labelledby":x.triggerId})},getIndicatorProps(b){const x=h(b);return t.element({...$e.indicator.attrs,dir:s("dir"),"aria-hidden":!0,"data-complete":Le(x.completed),"data-current":Le(x.current),"data-incomplete":Le(x.incomplete)})},getSeparatorProps(b){const x=h(b);return t.element({...$e.separator.attrs,dir:s("dir"),"data-orientation":s("orientation"),"data-complete":Le(x.completed),"data-current":Le(x.current),"data-incomplete":Le(x.incomplete)})},getNextTriggerProps(){return t.button({...$e.nextTrigger.attrs,dir:s("dir"),type:"button",disabled:!f,onClick(b){b.defaultPrevented||m()}})},getPrevTriggerProps(){return t.button({dir:s("dir"),...$e.prevTrigger.attrs,type:"button",disabled:!p,onClick(b){b.defaultPrevented||w()}})},getProgressProps(){return t.element({dir:s("dir"),...$e.progress.attrs,role:"progressbar","aria-valuenow":u,"aria-valuemin":0,"aria-valuemax":100,"aria-valuetext":`${u}% complete`,"data-complete":Le(u===100)})}}}var ty={props({props:e}){return{defaultStep:0,count:1,linear:!1,orientation:"horizontal",...e}},context({prop:e,bindable:t}){return{step:t(()=>({defaultValue:e("defaultStep"),value:e("step"),onChange(r){var o,s;(o=e("onStepChange"))==null||o({step:r}),r==e("count")&&((s=e("onStepComplete"))==null||s())}}))}},computed:{percent:Ib(({context:e,prop:t})=>[e.get("step"),t("count")],([e,t])=>e/t*100),hasNextStep:({context:e,prop:t})=>e.get("step")<t("count"),hasPrevStep:({context:e})=>e.get("step")>0,completed:({context:e,prop:t})=>e.get("step")===t("count")},initialState(){return"idle"},entry:["validateStep"],states:{idle:{on:{"STEP.SET":{actions:["setStep"]},"STEP.NEXT":{actions:["goToNextStep"]},"STEP.PREV":{actions:["goToPrevStep"]},"STEP.RESET":{actions:["resetStep"]}}}},implementations:{actions:{goToNextStep({context:e,prop:t}){const r=Math.min(e.get("step")+1,t("count"));e.set("step",r)},goToPrevStep({context:e}){const t=Math.max(e.get("step")-1,0);e.set("step",t)},resetStep({context:e}){e.set("step",0)},setStep({context:e,event:t}){e.set("step",t.value)},validateStep({context:e,prop:t}){ry(t("count"),e.get("step"))}}}},ry=(e,t)=>{if(!Sb(t,0,e))throw new RangeError(`[zag-js/steps] step index ${t} is out of bounds`)};Db()(["count","dir","getRootNode","id","ids","linear","onStepChange","onStepComplete","orientation","step","defaultStep"]);const[ew,ny]=dr({name:"EnvironmentContext",hookName:"useEnvironmentContext",providerName:"<EnvironmentProvider />",strict:!1,defaultValue:{getRootNode:()=>document,getDocument:()=>document,getWindow:()=>window}}),[tw,oy]=dr({name:"LocaleContext",hookName:"useLocaleContext",providerName:"<LocaleProvider />",strict:!1,defaultValue:{dir:"ltr",locale:"en-US"}});function sy(e){const t=S.useId(),{getRootNode:r}=ny(),{dir:n}=oy(),o={id:t,dir:n,getRootNode:r,...e},s=Fb(ty,o);return ey(s,Bb)}const fu=S.forwardRef((e,t)=>{const[r,n]=Ko()(e,["defaultStep","id","ids","count","linear","onStepChange","onStepComplete","orientation","step"]),o=sy(r),s=Me(o.getRootProps(),n);return l.jsx(Ub,{value:o,children:l.jsx(He.div,{...s,ref:t})})});fu.displayName="StepsRoot";const pu=S.forwardRef((e,t)=>{const r=Xe(),n=Yo(),o=Me(r.getSeparatorProps(n),e);return l.jsx(He.div,{...o,ref:t})});pu.displayName="StepsSeparator";const mu=S.forwardRef((e,t)=>{const r=Xe(),n=Yo(),o=Me(r.getTriggerProps(n),e);return l.jsx(He.button,{...o,ref:t})});mu.displayName="StepsTrigger";function ay(e){return Mc({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M20 6 9 17l-5-5"},child:[]}]})(e)}const gu=S.createContext(void 0),iy=({children:e,step:t})=>l.jsx(gu.Provider,{value:{step:t},children:e}),hu=()=>{const e=S.useContext(gu);if(!e)throw new Error("useSteps must be used within a StepsProvider");return e},ly=({className:e,step:t,...r})=>{const n=I("flex flex-col gap-4",e);return l.jsx(iy,{step:t??0,children:l.jsx(fu,{className:n,step:t,...r})})},cy=({className:e,...t})=>{const r=I("flex flex-row gap-4",e);return l.jsx(cu,{className:r,...t})},uy=({className:e,...t})=>{const r=I("flex flex-row items-center gap-4",e);return l.jsx(lu,{className:r,...t})},dy=({className:e,...t})=>{const r=I("flex flex-row items-center gap-4 text-purple-mutted-100 text-sm",e);return l.jsx(mu,{className:r,...t})},fy=({index:e,className:t,...r})=>{const{step:n}=hu(),o=e===n,s=e<n,a=I("flex items-center justify-center w-8 h-8 rounded-full text-white",s&&"bg-green-700",o&&"bg-green-600",!s&&!o&&"bg-purple-mutted-500",t),i=I({"text-white":o,"text-purple-mutted-300":!s&&e!==n});return l.jsx(iu,{className:a,...r,children:s?l.jsx(ay,{className:"text-green-400"}):l.jsx("span",{className:i,children:e+1})})},py=({index:e,className:t,...r})=>{const{step:n}=hu(),o=e<n,s=I("min-w-12 h-px",o?"bg-green-400":"bg-gray-400",t);return l.jsx(pu,{className:s,...r})},my=({className:e,...t})=>{const r=I(e);return l.jsx(au,{className:r,...t})},gy=({className:e,...t})=>{const r=I(e);return l.jsx(su,{className:r,...t})},hy=({className:e,...t})=>{const r=I("bg-primary text-white px-4 py-2 rounded-md",e);return l.jsx(du,{className:r,...t})},vy=({className:e,...t})=>{const r=I("bg-primary text-white px-4 py-2 rounded-md",e);return l.jsx(uu,{className:r,...t})},xy={Root:ly,List:cy,Item:uy,Trigger:dy,Indicator:fy,Separator:py,Content:my,CompletedContent:gy,PrevTrigger:hy,NextTrigger:vy},cn=({children:e,content:t,providerProps:r={},triggerProps:n={},contentProps:o={}})=>l.jsx(Yc,{...r,children:l.jsxs(qc,{children:[l.jsx(Xc,{...n,children:e}),t&&l.jsx(Zc,{...o,children:t})]})});/**
|
|
160
175
|
* react-table
|
|
161
176
|
*
|
|
162
177
|
* Copyright (c) TanStack
|
|
@@ -165,5 +180,5 @@ Defaulting to \`null\`.`}var qh=Oc,Xh=Dc;function Zh({className:e,value:t,...r})
|
|
|
165
180
|
* LICENSE.md file in the root directory of this source tree.
|
|
166
181
|
*
|
|
167
182
|
* @license MIT
|
|
168
|
-
*/function na(e,t){return e?py(e)?u.createElement(e,t):e:null}function py(e){return my(e)||typeof e=="function"||gy(e)}function my(e){return typeof e=="function"&&(()=>{const t=Object.getPrototypeOf(e);return t.prototype&&t.prototype.isReactComponent})()}function gy(e){return typeof e=="object"&&typeof e.$$typeof=="symbol"&&["react.memo","react.forward_ref"].includes(e.$$typeof.description)}const hu=u.forwardRef(({className:e,...t},r)=>c.jsx("div",{className:"relative w-full overflow-auto",children:c.jsx("table",{ref:r,className:M("w-full caption-bottom text-sm",e),...t})}));hu.displayName="Table";const vu=u.forwardRef(({className:e,...t},r)=>c.jsx("thead",{ref:r,className:M("[&_tr]:border-b ",e),...t}));vu.displayName="TableHeader";const xu=u.forwardRef(({className:e,...t},r)=>c.jsx("tbody",{ref:r,className:M("[&_tr:last-child]:border-0",e),...t}));xu.displayName="TableBody";const hy=u.forwardRef(({className:e,...t},r)=>c.jsx("tfoot",{ref:r,className:M("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",e),...t}));hy.displayName="TableFooter";const ut=u.forwardRef(({className:e,...t},r)=>c.jsx("tr",{ref:r,className:M("border-b border-purple-mutted-600 transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",e,{"cursor-pointer hover:bg-purple-mutted-600/20":!!t.onClick}),...t}));ut.displayName="TableRow";const bu=u.forwardRef(({className:e,...t},r)=>c.jsx("th",{ref:r,className:M("h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0",e),...t}));bu.displayName="TableHead";const jt=u.forwardRef(({className:e,...t},r)=>c.jsx("td",{ref:r,className:M("p-4 align-middle [&:has([role=checkbox])]:pr-0",e),...t}));jt.displayName="TableCell";const vy=u.forwardRef(({className:e,...t},r)=>c.jsx("caption",{ref:r,className:M("mt-4 text-sm text-muted-foreground",e),...t}));vy.displayName="TableCaption";const xy=({title:e="No results"})=>c.jsx("div",{className:"text-foreground",children:e}),by=({columnCount:e,rowCount:t=8})=>c.jsx(c.Fragment,{children:Array.from({length:t}).map((r,n)=>c.jsx(ut,{children:Array.from({length:e}).map((o,s)=>c.jsx(jt,{children:c.jsx($c,{className:"h-8 w-full"})},`loading-cell-${s}`))},`loading-row-${n}`))}),yy=e=>c.jsxs("svg",{width:"280",height:"195",viewBox:"0 0 280 195",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[c.jsxs("g",{clipPath:"url(#clip0_65_2990)",children:[c.jsx("path",{d:"M228.918 10.4603L230.958 3.72536C230.958 3.72536 232.388 0.863297 235.828 2.69334C238.748 4.24674 237.388 7.1514 237.388 7.1514L233.008 13.2586",fill:"white"}),c.jsx("path",{d:"M228.918 10.4603L230.958 3.72536C230.958 3.72536 232.388 0.863297 235.828 2.69334C238.748 4.24674 237.388 7.1514 237.388 7.1514L233.008 13.2586",stroke:"black",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),c.jsx("path",{d:"M101.487 163.737L94.1771 171.823L88.0371 163.237L78.7071 173.664L73.6671 165.003L63.3071 174.856L60.1271 165.886L48.9371 176.473L45.0671 167.067L33.8771 177.952L30.2871 168.983L19.0971 179.718L14.7971 170.217L3.80712 180.654C-12.9029 120.029 66.1271 113.464 81.2071 111.017C96.2871 108.57 99.7371 98.9092 99.7371 98.9092",fill:"black"}),c.jsx("path",{d:"M101.487 163.737L94.1771 171.823L88.0371 163.237L78.7071 173.664L73.6671 165.003L63.3071 174.856L60.1271 165.886L48.9371 176.473L45.0671 167.067L33.8771 177.952L30.2871 168.983L19.0971 179.718L14.7971 170.217L3.80712 180.654C-12.9029 120.029 66.1271 113.464 81.2071 111.017C96.2871 108.57 99.7371 98.9092 99.7371 98.9092",stroke:"white",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),c.jsx("path",{d:"M184.735 116.039L184.055 126.562L179.015 117.805L177.675 127.434L172.555 118.933",fill:"white"}),c.jsx("path",{d:"M184.735 116.039L184.055 126.562L179.015 117.805L177.675 127.434L172.555 118.933",stroke:"black",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),c.jsx("path",{d:"M201.748 52.7432C212.638 77.3529 211.728 113.549 173.418 118.763L201.748 52.7432Z",fill:"white"}),c.jsx("path",{d:"M201.748 52.7432C212.638 77.3529 211.728 113.549 173.418 118.763",stroke:"black",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),c.jsx("path",{d:"M169.278 124.402C172.948 139.926 177.038 167.153 156.118 183.549C156.118 183.549 179.558 182.261 179.558 193.316H139.768C139.768 193.316 139.898 186.251 144.708 183.666C144.708 183.666 130.798 176.484 130.168 154.715L130.468 141.394",fill:"white"}),c.jsx("path",{d:"M169.278 124.402C172.948 139.926 177.038 167.153 156.118 183.549C156.118 183.549 179.558 182.261 179.558 193.316H139.768C139.768 193.316 139.898 186.251 144.708 183.666C144.708 183.666 130.798 176.484 130.168 154.715L130.468 141.394",stroke:"black",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),c.jsx("path",{d:"M89.0353 182.686C75.1053 138.51 106.825 68.8089 143.315 34.4425C185.995 -5.7651 243.385 -13.4257 278.755 68.5323L270.145 71.5115C270.365 71.6285 238.435 46.4974 222.705 46.4974C217.675 46.4974 214.215 50.2532 210.675 54.6687C192.345 77.5336 173.815 147.99 131.485 147.905C131.485 147.905 132.205 179.43 99.6853 183.92C99.6853 183.92 124.525 182.282 124.525 193.315H83.9453C84.2153 192.709 83.5353 185.016 89.0453 182.686H89.0353Z",fill:"white",stroke:"black",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),c.jsx("path",{d:"M130.318 157.438C130.318 157.438 133.678 142.638 127.758 131.765",stroke:"black",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),c.jsx("path",{d:"M216.647 40.9229L202.547 62.1066",stroke:"black",strokeWidth:"3",strokeLinejoin:"round"}),c.jsx("path",{d:"M206.769 13.823L204.079 6.74764C204.079 6.74764 201.969 2.55554 206.769 1.45965C211.259 0.427586 211.509 4.64092 211.509 4.64092L211.529 12.8974",fill:"white"}),c.jsx("path",{d:"M206.769 13.823L204.079 6.74764C204.079 6.74764 201.969 2.55554 206.769 1.45965C211.259 0.427586 211.509 4.64092 211.509 4.64092L211.529 12.8974",stroke:"black",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),c.jsx("path",{d:"M200.648 56.6694L209.918 53.4668L205.068 60.2018L211.528 59.0633L206.258 64.6492L211.688 64.6917L204.468 70.6181",fill:"white"}),c.jsx("path",{d:"M200.648 56.6694L209.918 53.4668L205.068 60.2018L211.528 59.0633L206.258 64.6492L211.688 64.6917L204.468 70.6181",stroke:"black",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),c.jsx("path",{d:"M152.234 77.7571C159.214 84.7474 169.364 89.9397 178.244 89.9397C193.344 89.9397 208.224 73.6821 204.564 59.1163C204.074 57.1692 202.094 56.1158 200.334 56.8393L182.354 64.1808C181.694 64.4468 180.974 64.4894 180.304 64.2659C177.674 63.4147 170.604 60.5952 163.084 53.1367",fill:"white"}),c.jsx("path",{d:"M152.234 77.7571C159.214 84.7474 169.364 89.9397 178.244 89.9397C193.344 89.9397 208.224 73.6821 204.564 59.1163C204.074 57.1692 202.094 56.1158 200.334 56.8393L182.354 64.1808C181.694 64.4468 180.974 64.4894 180.304 64.2659C177.674 63.4147 170.604 60.5952 163.084 53.1367",stroke:"black",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),c.jsx("path",{d:"M275.767 61.9785L263.938 66.8728L270.147 71.5118L278.568 68.3517L275.767 61.9785Z",fill:"#7A68FA",stroke:"black",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),c.jsx("path",{d:"M225.147 40.4968C231.289 40.4968 236.267 35.1997 236.267 28.6654C236.267 22.1311 231.289 16.834 225.147 16.834C219.006 16.834 214.027 22.1311 214.027 28.6654C214.027 35.1997 219.006 40.4968 225.147 40.4968Z",fill:"white",stroke:"black",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round"}),c.jsx("path",{d:"M225.147 32.9536C227.373 32.9536 229.177 31.0338 229.177 28.6657C229.177 26.2976 227.373 24.3779 225.147 24.3779C222.921 24.3779 221.117 26.2976 221.117 28.6657C221.117 31.0338 222.921 32.9536 225.147 32.9536Z",fill:"black"}),c.jsx("path",{d:"M244.89 26.0693L240.93 29.623L245.78 32.6128",stroke:"black",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),c.jsx("path",{d:"M220.18 55.8399C220.18 55.8399 223.26 53.4567 227.08 54.9675",stroke:"white",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),c.jsx("path",{d:"M223.938 59.5836C223.938 59.5836 227.918 58.2004 230.658 60.4986",stroke:"white",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),c.jsx("defs",{children:c.jsx("clipPath",{id:"clip0_65_2990",children:c.jsx("rect",{width:"279",height:"195",fill:"white",transform:"translate(0.5)"})})})]}),oa=({title:e="There's nothing to show",description:t="No items to display"})=>c.jsxs("div",{className:"flex flex-col items-center justify-center h-full p-14",children:[c.jsx(yy,{className:"mb-6"}),c.jsx("h4",{className:"mb-1 text-foreground",children:e}),c.jsx("p",{className:"text-purple-mutted-300",children:t})]}),yu=({className:e,...t})=>c.jsx("nav",{role:"navigation","aria-label":"pagination",className:M("mx-auto flex w-full justify-center",e),...t});yu.displayName="Pagination";const wu=u.forwardRef(({className:e,...t},r)=>c.jsx("ul",{ref:r,className:M("flex flex-row items-center gap-1",e),...t}));wu.displayName="PaginationContent";const Jt=u.forwardRef(({className:e,...t},r)=>c.jsx("li",{ref:r,className:M("",e),...t}));Jt.displayName="PaginationItem";const Cu=({className:e,isActive:t,size:r="icon",...n})=>c.jsx("a",{"aria-current":t?"page":void 0,className:M(ba({variant:t?"outline":"ghost",size:r}),e),...n});Cu.displayName="PaginationLink";const Su=({className:e,...t})=>c.jsxs("span",{"aria-hidden":!0,className:M("flex h-9 w-9 items-center justify-center",e),...t,children:[c.jsx(ug,{className:"h-4 w-4"}),c.jsx("span",{className:"sr-only",children:"More pages"})]});Su.displayName="PaginationEllipsis";const wy=({table:e,isLoading:t=!1})=>{const r=e.getPageCount(),n=e.getState().pagination.pageIndex+1,[o,s]=S.useState(r);S.useEffect(()=>{r>=1&&s(r)},[r]);const a=S.useMemo(()=>{const g="text-purple-mutted-300 dark:text-purple-mutted-300",w="hover:bg-purple-mutted-600 hover:text-purple-mutted-300 dark:hover:bg-purple-mutted-600 dark:hover:text-purple-mutted-300",m="bg-purple-mutted-600 text-purple-mutted-300 dark:bg-purple-mutted-600 dark:text-purple-mutted-300",v="border-none flex items-center justify-center w-8 h-8",y="pointer-events-none opacity-50 cursor-not-allowed";return{previous:M(n===1||t?"pointer-events-none opacity-50":"cursor-pointer",v,g,t&&y),next:M(n===r||t?"pointer-events-none opacity-50":"cursor-pointer",v,g,t&&y),link:x=>M(v,t?"cursor-not-allowed":"cursor-pointer",g,!t&&w,x&&m,t&&y)}},[n,r,t]),i=S.useCallback(g=>{if(t)return;const w=g-1;e.setPagination(m=>({...m,pageIndex:w}))},[e,t]),l=S.useCallback(()=>{t||n<=1||i(n-1)},[n,i,t]),d=S.useCallback(()=>{t||r<=1||n>=r||i(n+1)},[r,n,i,t]),f=S.useCallback(g=>{if(g<=1)return[];if(g<=7)return Array.from({length:g},(m,v)=>v+1);const w=[];return n<=4?w.push(1,2,3,4,5,"ellipsis",g):n>=g-3?w.push(1,"ellipsis",g-4,g-3,g-2,g-1,g):w.push(1,"ellipsis",n-1,n,n+1,"ellipsis",g),w},[n]),p=S.useMemo(()=>{if(r<=1){const g=Math.max(r,o);return f(g)}return f(r)},[r,o,f]),h=S.useCallback((g,w)=>g==="ellipsis"?c.jsx(Jt,{children:c.jsx(Su,{})},`ellipsis-${w}`):c.jsx(Jt,{className:"flex items-center justify-center",children:c.jsx(Cu,{onClick:()=>i(g),isActive:g===n,className:a.link(g===n),children:g})},`${g}-${w}-pagination-item`),[i,n,a]);return r<2&&o<2?c.jsx(c.Fragment,{}):c.jsx(yu,{className:"dark:bg-transparent",children:c.jsxs(wu,{children:[c.jsx(Jt,{children:c.jsx(It,{variant:"ghost",size:"icon",className:a.previous,onClick:l,children:c.jsx(rg,{})})}),p.map(h),c.jsx(Jt,{children:c.jsx(It,{variant:"ghost",size:"icon",className:a.next,onClick:d,children:c.jsx(og,{onClick:d})})})]})})},Cy=({table:e,emptyStateComponent:t,noResultsComponent:r,errorComponent:n,isLoading:o=!1,isError:s=!1,onRowClick:a,emptyStateTitle:i="There's nothing to show",emptyStateDescription:l="No items to display",noResultsTitle:d="No results"})=>{const f=e.getVisibleFlatColumns().length,p=e.options.manualPagination&&e.options.onPaginationChange,h=()=>e.getHeaderGroups().map(w=>c.jsx(ut,{children:w.headers.map(m=>c.jsx(bu,{className:"text-[#A1A1AA]",children:m.isPlaceholder?void 0:na(m.column.columnDef.header,m.getContext())},m.id))},w.id)),g=()=>{const w=e.getRowModel().rows.length===0,m=e.getCoreRowModel().rows.length===0&&!o;return o?c.jsx(by,{columnCount:f}):s?c.jsx(ut,{children:c.jsx(jt,{className:"h-24 text-center",colSpan:f,children:(n==null?void 0:n())||c.jsx(oa,{title:i,description:l})})}):m?c.jsx(ut,{children:c.jsx(jt,{className:"h-24 text-center",colSpan:f,children:(t==null?void 0:t())||c.jsx(oa,{title:i,description:l})})}):w?c.jsx(ut,{children:c.jsx(jt,{className:"h-24 text-center",colSpan:f,children:(r==null?void 0:r())||c.jsx(xy,{title:d})})}):e.getRowModel().rows.map(v=>c.jsx(ut,{"data-state":v.getIsSelected()&&"selected",onClick:()=>a==null?void 0:a(v.original),children:v.getVisibleCells().map(y=>c.jsx(jt,{className:"text-[#FAFAFA]",children:na(y.column.columnDef.cell,y.getContext())},y.id))},v.id))};return c.jsxs("div",{className:"flex flex-col h-full w-full",children:[c.jsx("div",{className:"flex-1 overflow-auto min-h-0",children:c.jsx("div",{className:"rounded-lg border border-purple-mutted-600 w-full",children:c.jsxs(hu,{children:[c.jsx(vu,{children:h()}),c.jsx(xu,{children:g()})]})})}),p&&c.jsx("footer",{className:"py-4 bg-background border-t border-purple-mutted-600/20 flex-shrink-0",children:c.jsx(wy,{table:e,isLoading:o})})]})},Jn=e=>{const{children:t,...r}=e,n=t&&t!==0?t:"-";return c.jsx("div",{...r,children:n})},Sy=e=>{const{variant:t,children:r}=e,n=r||t;return c.jsx(Ic,{...e,children:n})},Ey=e=>{const{children:t,...r}=e;if(typeof t!="number")return console.error("NumberCell must be a number"),c.jsx(Jn,{...r,children:"-"});const n=t>1e5?"compact":"standard",o=new Intl.NumberFormat("en-US",{notation:n}).format(t);return c.jsx(Jn,{...r,children:o})},Py=({column:e,children:t,tooltipContent:r})=>{const[n,o]=S.useState(!1),s=e.getCanSort();let a=t;return r&&(a=c.jsxs("div",{className:"flex items-center gap-1",children:[c.jsx("span",{children:t}),c.jsx(gu,{contentProps:{className:"max-w-[200px]"},content:r,children:c.jsx(fg,{className:"h-4 w-4"})})]})),s?c.jsxs("span",{className:"flex gap-1 items-center cursor-pointer",onClick:()=>e.toggleSorting(e.getIsSorted()==="asc"),onMouseEnter:()=>o(!0),onMouseLeave:()=>o(!1),role:"button",children:[a,c.jsx(Jm,{className:M("ml-2 h-4 w-4",{invisible:!n})})]}):c.jsx("span",{children:a})},Ry={"data-lpignore":"true","data-1p-ignore":"true","data-bitwarden-watching":"false","data-form-type":"other","data-gramm":"false","data-gramm_editor":"false","data-enable-grammarly":"false",spellCheck:!1,autoComplete:"off"},sa={SMALL:"small",LARGE:"large"},ky=({containerClassName:e,className:t,searchSize:r=sa.SMALL,disabled:n=!1,disableFilterIcon:o=!0,...s})=>{const a=r===sa.LARGE?"pl-12 py-3 pr-4 h-[45px]":"pl-9 py-1.5 pr-2 h-[33px]",i=M("absolute top-1/2 h-4 w-4 -translate-y-1/2",n?"text-purple-mutted-600":"text-purple-mutted-400"),l=M("text-purple-mutted-200 dark:border-purple-mutted-600 dark:text-purple-mutted-200 dark:bg-[#1C1C1C] dark:placeholder:text-purple-mutted-400 pl-9",{" pr-9":!o});return c.jsxs("div",{className:M("relative",e),children:[c.jsx(Wi,{className:M(i,"left-3")}),c.jsx(eo,{className:M(a,l,t),disabled:n,...s,...Ry}),!o&&c.jsx(mg,{className:M(i,"right-3")})]})};exports.Accordion=Kv;exports.AccordionContent=Xv;exports.AccordionItem=Yv;exports.AccordionTrigger=qv;exports.Badge=Ic;exports.BadgeCell=Sy;exports.BaseCell=Jn;exports.Button=It;exports.Card=Dh;exports.CardAction=Vh;exports.CardContent=Wh;exports.CardDescription=Fh;exports.CardFooter=Bh;exports.CardHeader=Lh;exports.CardTitle=$h;exports.Combobox=No;exports.Dialog=oh;exports.DialogClose=ah;exports.DialogContent=ih;exports.DialogDescription=dh;exports.DialogFooter=lh;exports.DialogHeader=ch;exports.DialogOverlay=Cc;exports.DialogPortal=wc;exports.DialogTitle=uh;exports.DialogTrigger=sh;exports.Form=bt;exports.FormProvider=Tl;exports.Input=eo;exports.NumberCell=Ey;exports.Progress=Zh;exports.SearchInput=ky;exports.Select=Bi;exports.SelectContent=wo;exports.SelectGroup=xg;exports.SelectItem=Co;exports.SelectLabel=Hi;exports.SelectScrollDownButton=yo;exports.SelectScrollUpButton=bo;exports.SelectSeparator=Gi;exports.SelectTrigger=xo;exports.SelectValue=zi;exports.Skeleton=$c;exports.SortableHeaderCell=Py;exports.Steps=fy;exports.Switch=ov;exports.Table=Cy;exports.Toggle=av;exports.ToggleGroup=Pv;exports.ToggleGroupItem=Rv;exports.Tooltip=gu;exports.borderRadius=Yu;exports.cn=M;exports.colors=Uu;exports.spacing=Ku;exports.typography=qu;exports.useFormContext=jl;
|
|
183
|
+
*/function sa(e,t){return e?by(e)?d.createElement(e,t):e:null}function by(e){return yy(e)||typeof e=="function"||wy(e)}function yy(e){return typeof e=="function"&&(()=>{const t=Object.getPrototypeOf(e);return t.prototype&&t.prototype.isReactComponent})()}function wy(e){return typeof e=="object"&&typeof e.$$typeof=="symbol"&&["react.memo","react.forward_ref"].includes(e.$$typeof.description)}const vu=d.forwardRef(({className:e,wrapperClassName:t,...r},n)=>l.jsx("div",{className:I("relative w-full overflow-auto",t),children:l.jsx("table",{ref:n,className:I("w-full caption-bottom text-sm",e),...r})}));vu.displayName="Table";const xu=d.forwardRef(({className:e,...t},r)=>l.jsx("thead",{ref:r,className:I("sticky top-0 z-10 b-0 [&>tr]:border-0",e),...t}));xu.displayName="TableHeader";const bu=d.forwardRef(({className:e,...t},r)=>l.jsx("tbody",{ref:r,className:I("[&_tr:last-child]:border-0 [&_tr:first-child]:border-top-0",e),...t}));bu.displayName="TableBody";const Cy=d.forwardRef(({className:e,...t},r)=>l.jsx("tfoot",{ref:r,className:I("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",e),...t}));Cy.displayName="TableFooter";const ut=d.forwardRef(({className:e,...t},r)=>l.jsx("tr",{ref:r,className:I("border-b border-purple-mutted-600 transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",e,{"cursor-pointer hover:bg-purple-mutted-600/20":!!t.onClick}),...t}));ut.displayName="TableRow";const yu=d.forwardRef(({className:e,...t},r)=>l.jsx("th",{ref:r,className:I("h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0",e),...t}));yu.displayName="TableHead";const jt=d.forwardRef(({className:e,...t},r)=>l.jsx("td",{ref:r,className:I("p-4 align-middle [&:has([role=checkbox])]:pr-0",e),...t}));jt.displayName="TableCell";const Sy=d.forwardRef(({className:e,...t},r)=>l.jsx("caption",{ref:r,className:I("mt-4 text-sm text-muted-foreground",e),...t}));Sy.displayName="TableCaption";const Ey=({title:e="No results"})=>l.jsx("div",{className:"text-foreground",children:e}),ky=({columnCount:e,rowCount:t=8})=>l.jsx(l.Fragment,{children:Array.from({length:t}).map((r,n)=>l.jsx(ut,{children:Array.from({length:e}).map((o,s)=>l.jsx(jt,{children:l.jsx(Vl,{className:"h-8 w-full"})},`loading-cell-${s}`))},`loading-row-${n}`))}),Py=e=>l.jsxs("svg",{width:"280",height:"195",viewBox:"0 0 280 195",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[l.jsxs("g",{clipPath:"url(#clip0_65_2990)",children:[l.jsx("path",{d:"M228.918 10.4603L230.958 3.72536C230.958 3.72536 232.388 0.863297 235.828 2.69334C238.748 4.24674 237.388 7.1514 237.388 7.1514L233.008 13.2586",fill:"white"}),l.jsx("path",{d:"M228.918 10.4603L230.958 3.72536C230.958 3.72536 232.388 0.863297 235.828 2.69334C238.748 4.24674 237.388 7.1514 237.388 7.1514L233.008 13.2586",stroke:"black",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),l.jsx("path",{d:"M101.487 163.737L94.1771 171.823L88.0371 163.237L78.7071 173.664L73.6671 165.003L63.3071 174.856L60.1271 165.886L48.9371 176.473L45.0671 167.067L33.8771 177.952L30.2871 168.983L19.0971 179.718L14.7971 170.217L3.80712 180.654C-12.9029 120.029 66.1271 113.464 81.2071 111.017C96.2871 108.57 99.7371 98.9092 99.7371 98.9092",fill:"black"}),l.jsx("path",{d:"M101.487 163.737L94.1771 171.823L88.0371 163.237L78.7071 173.664L73.6671 165.003L63.3071 174.856L60.1271 165.886L48.9371 176.473L45.0671 167.067L33.8771 177.952L30.2871 168.983L19.0971 179.718L14.7971 170.217L3.80712 180.654C-12.9029 120.029 66.1271 113.464 81.2071 111.017C96.2871 108.57 99.7371 98.9092 99.7371 98.9092",stroke:"white",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),l.jsx("path",{d:"M184.735 116.039L184.055 126.562L179.015 117.805L177.675 127.434L172.555 118.933",fill:"white"}),l.jsx("path",{d:"M184.735 116.039L184.055 126.562L179.015 117.805L177.675 127.434L172.555 118.933",stroke:"black",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),l.jsx("path",{d:"M201.748 52.7432C212.638 77.3529 211.728 113.549 173.418 118.763L201.748 52.7432Z",fill:"white"}),l.jsx("path",{d:"M201.748 52.7432C212.638 77.3529 211.728 113.549 173.418 118.763",stroke:"black",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),l.jsx("path",{d:"M169.278 124.402C172.948 139.926 177.038 167.153 156.118 183.549C156.118 183.549 179.558 182.261 179.558 193.316H139.768C139.768 193.316 139.898 186.251 144.708 183.666C144.708 183.666 130.798 176.484 130.168 154.715L130.468 141.394",fill:"white"}),l.jsx("path",{d:"M169.278 124.402C172.948 139.926 177.038 167.153 156.118 183.549C156.118 183.549 179.558 182.261 179.558 193.316H139.768C139.768 193.316 139.898 186.251 144.708 183.666C144.708 183.666 130.798 176.484 130.168 154.715L130.468 141.394",stroke:"black",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),l.jsx("path",{d:"M89.0353 182.686C75.1053 138.51 106.825 68.8089 143.315 34.4425C185.995 -5.7651 243.385 -13.4257 278.755 68.5323L270.145 71.5115C270.365 71.6285 238.435 46.4974 222.705 46.4974C217.675 46.4974 214.215 50.2532 210.675 54.6687C192.345 77.5336 173.815 147.99 131.485 147.905C131.485 147.905 132.205 179.43 99.6853 183.92C99.6853 183.92 124.525 182.282 124.525 193.315H83.9453C84.2153 192.709 83.5353 185.016 89.0453 182.686H89.0353Z",fill:"white",stroke:"black",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),l.jsx("path",{d:"M130.318 157.438C130.318 157.438 133.678 142.638 127.758 131.765",stroke:"black",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),l.jsx("path",{d:"M216.647 40.9229L202.547 62.1066",stroke:"black",strokeWidth:"3",strokeLinejoin:"round"}),l.jsx("path",{d:"M206.769 13.823L204.079 6.74764C204.079 6.74764 201.969 2.55554 206.769 1.45965C211.259 0.427586 211.509 4.64092 211.509 4.64092L211.529 12.8974",fill:"white"}),l.jsx("path",{d:"M206.769 13.823L204.079 6.74764C204.079 6.74764 201.969 2.55554 206.769 1.45965C211.259 0.427586 211.509 4.64092 211.509 4.64092L211.529 12.8974",stroke:"black",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),l.jsx("path",{d:"M200.648 56.6694L209.918 53.4668L205.068 60.2018L211.528 59.0633L206.258 64.6492L211.688 64.6917L204.468 70.6181",fill:"white"}),l.jsx("path",{d:"M200.648 56.6694L209.918 53.4668L205.068 60.2018L211.528 59.0633L206.258 64.6492L211.688 64.6917L204.468 70.6181",stroke:"black",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),l.jsx("path",{d:"M152.234 77.7571C159.214 84.7474 169.364 89.9397 178.244 89.9397C193.344 89.9397 208.224 73.6821 204.564 59.1163C204.074 57.1692 202.094 56.1158 200.334 56.8393L182.354 64.1808C181.694 64.4468 180.974 64.4894 180.304 64.2659C177.674 63.4147 170.604 60.5952 163.084 53.1367",fill:"white"}),l.jsx("path",{d:"M152.234 77.7571C159.214 84.7474 169.364 89.9397 178.244 89.9397C193.344 89.9397 208.224 73.6821 204.564 59.1163C204.074 57.1692 202.094 56.1158 200.334 56.8393L182.354 64.1808C181.694 64.4468 180.974 64.4894 180.304 64.2659C177.674 63.4147 170.604 60.5952 163.084 53.1367",stroke:"black",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),l.jsx("path",{d:"M275.767 61.9785L263.938 66.8728L270.147 71.5118L278.568 68.3517L275.767 61.9785Z",fill:"#7A68FA",stroke:"black",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),l.jsx("path",{d:"M225.147 40.4968C231.289 40.4968 236.267 35.1997 236.267 28.6654C236.267 22.1311 231.289 16.834 225.147 16.834C219.006 16.834 214.027 22.1311 214.027 28.6654C214.027 35.1997 219.006 40.4968 225.147 40.4968Z",fill:"white",stroke:"black",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round"}),l.jsx("path",{d:"M225.147 32.9536C227.373 32.9536 229.177 31.0338 229.177 28.6657C229.177 26.2976 227.373 24.3779 225.147 24.3779C222.921 24.3779 221.117 26.2976 221.117 28.6657C221.117 31.0338 222.921 32.9536 225.147 32.9536Z",fill:"black"}),l.jsx("path",{d:"M244.89 26.0693L240.93 29.623L245.78 32.6128",stroke:"black",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),l.jsx("path",{d:"M220.18 55.8399C220.18 55.8399 223.26 53.4567 227.08 54.9675",stroke:"white",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),l.jsx("path",{d:"M223.938 59.5836C223.938 59.5836 227.918 58.2004 230.658 60.4986",stroke:"white",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),l.jsx("defs",{children:l.jsx("clipPath",{id:"clip0_65_2990",children:l.jsx("rect",{width:"279",height:"195",fill:"white",transform:"translate(0.5)"})})})]}),aa=({title:e="There's nothing to show",description:t="No items to display"})=>l.jsxs("div",{className:"flex flex-col items-center justify-center h-full p-14",children:[l.jsx(Py,{className:"mb-6"}),l.jsx("h4",{className:"mb-1 text-foreground",children:e}),l.jsx("p",{className:"text-purple-mutted-300",children:t})]}),wu=({className:e,...t})=>l.jsx("nav",{role:"navigation","aria-label":"pagination",className:I("mx-auto flex w-full justify-center",e),...t});wu.displayName="Pagination";const Cu=d.forwardRef(({className:e,...t},r)=>l.jsx("ul",{ref:r,className:I("flex flex-row items-center gap-1",e),...t}));Cu.displayName="PaginationContent";const Jt=d.forwardRef(({className:e,...t},r)=>l.jsx("li",{ref:r,className:I("",e),...t}));Jt.displayName="PaginationItem";const Su=({className:e,isActive:t,size:r="icon",...n})=>l.jsx("a",{"aria-current":t?"page":void 0,className:I(wa({variant:t?"outline":"ghost",size:r}),e),...n});Su.displayName="PaginationLink";const Eu=({className:e,...t})=>l.jsxs("span",{"aria-hidden":!0,className:I("flex h-9 w-9 items-center justify-center",e),...t,children:[l.jsx(dg,{className:"h-4 w-4"}),l.jsx("span",{className:"sr-only",children:"More pages"})]});Eu.displayName="PaginationEllipsis";const Ry=({table:e,isLoading:t=!1})=>{const r=e.getPageCount(),n=e.getState().pagination.pageIndex+1,[o,s]=S.useState(r);S.useEffect(()=>{r>=1&&s(r)},[r]);const a=S.useMemo(()=>{const m="text-purple-mutted-300 dark:text-purple-mutted-300",w="hover:bg-purple-mutted-600 hover:text-purple-mutted-300 dark:hover:bg-purple-mutted-600 dark:hover:text-purple-mutted-300",g="bg-purple-mutted-600 text-purple-mutted-300 dark:bg-purple-mutted-600 dark:text-purple-mutted-300",v="border-none flex items-center justify-center w-8 h-8",b="pointer-events-none opacity-50 cursor-not-allowed";return{previous:I(n===1||t?"pointer-events-none opacity-50":"cursor-pointer",v,m,t&&b),next:I(n===r||t?"pointer-events-none opacity-50":"cursor-pointer",v,m,t&&b),link:x=>I(v,t?"cursor-not-allowed":"cursor-pointer",m,!t&&w,x&&g,t&&b)}},[n,r,t]),i=S.useCallback(m=>{if(t)return;const w=m-1;e.setPagination(g=>({...g,pageIndex:w}))},[e,t]),c=S.useCallback(()=>{t||n<=1||i(n-1)},[n,i,t]),u=S.useCallback(()=>{t||r<=1||n>=r||i(n+1)},[r,n,i,t]),f=S.useCallback(m=>{if(m<=1)return[];if(m<=7)return Array.from({length:m},(g,v)=>v+1);const w=[];return n<=4?w.push(1,2,3,4,5,"ellipsis",m):n>=m-3?w.push(1,"ellipsis",m-4,m-3,m-2,m-1,m):w.push(1,"ellipsis",n-1,n,n+1,"ellipsis",m),w},[n]),p=S.useMemo(()=>{if(r<=1){const m=Math.max(r,o);return f(m)}return f(r)},[r,o,f]),h=S.useCallback((m,w)=>m==="ellipsis"?l.jsx(Jt,{children:l.jsx(Eu,{})},`ellipsis-${w}`):l.jsx(Jt,{className:"flex items-center justify-center",children:l.jsx(Su,{onClick:()=>i(m),isActive:m===n,className:a.link(m===n),children:m})},`${m}-${w}-pagination-item`),[i,n,a]);return r<2&&o<2?l.jsx(l.Fragment,{}):l.jsx(wu,{className:"dark:bg-transparent",children:l.jsxs(Cu,{children:[l.jsx(Jt,{children:l.jsx(It,{variant:"ghost",size:"icon",className:a.previous,onClick:c,children:l.jsx(ng,{})})}),p.map(h),l.jsx(Jt,{children:l.jsx(It,{variant:"ghost",size:"icon",className:a.next,onClick:u,children:l.jsx(sg,{onClick:u})})})]})})},Ny=({table:e,emptyStateComponent:t,noResultsComponent:r,errorComponent:n,isLoading:o=!1,isError:s=!1,onRowClick:a,emptyStateTitle:i="There's nothing to show",emptyStateDescription:c="No items to display",noResultsTitle:u="No results",wrapperClassName:f})=>{const p=e.getVisibleFlatColumns().length,h=e.options.manualPagination&&e.options.onPaginationChange,m=()=>e.getHeaderGroups().map(g=>l.jsx(ut,{children:g.headers.map(v=>l.jsx(yu,{className:"text-[#A1A1AA]",children:v.isPlaceholder?void 0:sa(v.column.columnDef.header,v.getContext())},v.id))},g.id)),w=()=>{const g=e.getRowModel().rows.length===0,v=e.getCoreRowModel().rows.length===0&&!o;return o?l.jsx(ky,{columnCount:p}):s?l.jsx(ut,{children:l.jsx(jt,{className:"h-24 text-center",colSpan:p,children:(n==null?void 0:n())||l.jsx(aa,{title:i,description:c})})}):v?l.jsx(ut,{children:l.jsx(jt,{className:"h-24 text-center",colSpan:p,children:(t==null?void 0:t())||l.jsx(aa,{title:i,description:c})})}):g?l.jsx(ut,{children:l.jsx(jt,{className:"h-24 text-center",colSpan:p,children:(r==null?void 0:r())||l.jsx(Ey,{title:u})})}):e.getRowModel().rows.map(b=>l.jsx(ut,{"data-state":b.getIsSelected()&&"selected",onClick:()=>a==null?void 0:a(b.original),children:b.getVisibleCells().map(x=>l.jsx(jt,{className:"text-[#FAFAFA]",children:sa(x.column.columnDef.cell,x.getContext())},x.id))},b.id))};return l.jsxs("div",{className:"flex flex-col h-full w-full",children:[l.jsx("div",{className:"flex-1 min-h-0",children:l.jsx("div",{className:"h-fit max-h-full overflow-auto min-h-0 rounded-lg border border-purple-mutted-600",children:l.jsxs(vu,{wrapperClassName:f,children:[l.jsx(xu,{children:m()}),l.jsx(bu,{children:w()})]})})}),h&&l.jsx("footer",{className:"pt-4 pb-2 bg-background border-t border-purple-mutted-600/20 flex-shrink-0",children:l.jsx(Ry,{table:e,isLoading:o})})]})},Qn=e=>{const{children:t,...r}=e,n=t&&t!==0?t:"-";return l.jsx("div",{...r,children:n})},Ty=e=>{const{variant:t,children:r}=e,n=r||t;return l.jsx(jo,{...e,children:n})},jy=e=>{const{children:t,...r}=e;if(typeof t!="number")return console.error("NumberCell must be a number"),l.jsx(Qn,{...r,children:"-"});const n=t>1e5?"compact":"standard",o=new Intl.NumberFormat("en-US",{notation:n}).format(t);return l.jsx(Qn,{...r,children:o})},Ay=({column:e,children:t,tooltipContent:r})=>{const[n,o]=S.useState(!1),s=e.getCanSort();let a=t;return r&&(a=l.jsxs("div",{className:"flex items-center gap-1",children:[l.jsx("span",{children:t}),l.jsx(cn,{contentProps:{className:"max-w-[200px]"},content:r,children:l.jsx(pg,{className:"h-4 w-4"})})]})),s?l.jsxs("span",{className:"flex gap-1 items-center cursor-pointer",onClick:()=>e.toggleSorting(e.getIsSorted()==="asc"),onMouseEnter:()=>o(!0),onMouseLeave:()=>o(!1),role:"button",children:[a,l.jsx(Qm,{className:I("ml-2 h-4 w-4",{invisible:!n})})]}):l.jsx("span",{children:a})},_y={"data-lpignore":"true","data-1p-ignore":"true","data-bitwarden-watching":"false","data-form-type":"other","data-gramm":"false","data-gramm_editor":"false","data-enable-grammarly":"false",spellCheck:!1,autoComplete:"off"},ia={SMALL:"small",LARGE:"large"},Iy=({containerClassName:e,className:t,searchSize:r=ia.SMALL,disabled:n=!1,disableFilterIcon:o=!0,...s})=>{const a=r===ia.LARGE?"pl-12 py-3 pr-4 h-[45px]":"pl-9 py-1.5 pr-2 h-[33px]",i=I("absolute top-1/2 h-4 w-4 -translate-y-1/2",n?"text-purple-mutted-600":"text-purple-mutted-400"),c=I("text-purple-mutted-200 dark:border-purple-mutted-600 dark:text-purple-mutted-200 dark:bg-[#1C1C1C] dark:placeholder:text-purple-mutted-400 pl-9",{" pr-9":!o});return l.jsxs("div",{className:I("relative",e),children:[l.jsx(zi,{className:I(i,"left-3")}),l.jsx(to,{className:I(a,c,t),disabled:n,...s,..._y}),!o&&l.jsx(gg,{className:I(i,"right-3")})]})},Oy=/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,My=e=>e.split(/[,\s]+/).map(t=>t.trim()).filter(Boolean),Dy=(e,t)=>{var n;if(!(t!=null&&t.length))return!0;const r=(n=e.split("@")[1])==null?void 0:n.toLowerCase();return t.some(o=>r===o.toLowerCase())},Ly=(e,t)=>e.map(r=>{const n=Oy.test(r),o=n?Dy(r,t==null?void 0:t.domains):void 0;return{email:r,isValid:n&&o!==!1,isDomainValid:o}}),$y=(e,t,r)=>{const n=Ly(e,r),o=[...t];for(const s of n)o.some(i=>i.email===s.email)||o.push(s);return o},Fy=({onChange:e=()=>{},organization:t})=>{const[r,n]=S.useState([]),o=S.useCallback(u=>{e(u)},[e]),s=S.useCallback(u=>{n(u),o(u)},[o]),a=S.useCallback(u=>{const f=My(u);if(f.length===0)return;const p=$y(f,r,t);s(p)},[r,s,t]),i=S.useCallback(()=>{s([])},[s]),c=S.useCallback(u=>{const f=r.filter(p=>p.email!==u);s(f)},[r,s]);return{emails:r,setEmails:s,addTokens:a,removeToken:c,clearAll:i,notify:o}},Vy=e=>{const{draft:t,setDraft:r,addTokens:n,allSelected:o,setAllSelected:s,clearAll:a,emails:i,setEmails:c,notify:u}=e;return f=>{if((f.key==="a"||f.key==="A")&&(f.metaKey||f.ctrlKey)){f.preventDefault(),s(!0);return}if(o&&(f.key==="Backspace"||f.key==="Delete")){f.preventDefault(),s(!1),a(),r("");return}if(o&&f.key==="Escape"){f.preventDefault(),s(!1);return}if(o&&f.key.length===1&&!f.metaKey&&!f.ctrlKey&&!f.altKey&&(s(!1),a()),f.key==="Backspace"&&t.length===0&&i.length>0){f.preventDefault();const p=i[i.length-1],h=i.slice(0,-1);c(h),r(p.email),u(h);return}if(f.key==="Enter"){f.preventDefault(),t.trim()&&(n(t),r(""));return}[",",";"," "].includes(f.key)&&(f.preventDefault(),t.trim()&&(n(t),r("")))}},By=({email:e,isValid:t,onRemove:r})=>{const n=o=>{o.stopPropagation(),r(e)};return l.jsxs(jo,{className:"px-2 group whitespace-nowrap flex-shrink-0",variant:t?"success":"error",size:"sm",children:[l.jsx("span",{className:"max-w-[200px] truncate",children:e}),l.jsx("button",{onClick:n,className:"ml-1 opacity-70 hover:opacity-100 transition-opacity flex-shrink-0",type:"button",children:l.jsx(Hi,{size:12})})]})},Wy=({hasContent:e,onClearAll:t,emails:r,invalidEmailError:n,invalidDomainError:o})=>{const{formatErrors:s,domainErrors:a,totalInvalidCount:i}=S.useMemo(()=>{const m=r.filter(v=>!v.isValid),w=m.filter(v=>!v.email.includes("@")||v.isDomainValid===void 0),g=m.filter(v=>v.isDomainValid===!1);return{formatErrors:w,domainErrors:g,totalInvalidCount:m.length}},[r]),c=m=>{m.preventDefault(),m.stopPropagation()},u=m=>{c(m),t()},f=m=>{c(m)},p=m=>{m.stopPropagation()},h=(m,w)=>w.length===0?l.jsx(l.Fragment,{}):l.jsxs("div",{className:"space-y-1 text-purple-mutted-200",children:[l.jsxs("span",{className:"font-medium border-b border-purple-mutted-200",children:[m,":"]}),w.map((g,v)=>l.jsx("p",{className:"break-all",children:g.email},`${m}-${v}-${g.email}`))]});return l.jsxs(l.Fragment,{children:[e&&l.jsx("button",{type:"button",onClick:u,className:"absolute right-3 top-1/2 -translate-y-1/2 hover:text-purple-muted-100",children:l.jsx(yg,{className:"h-4 w-4"})}),i>0&&l.jsx("div",{className:"absolute flex center align-center right-[34px] top-1/2 -translate-y-1/2 [&>button]:h-4",children:l.jsx(cn,{content:l.jsx("div",{onClick:f,onWheel:p,className:"max-w-[min(90vw,32rem)] max-h-[min(60vh,20rem)] p-3 rounded-md border dark:border-red-800 shadow-lg dark:bg-purple-mutted-800 dark:text-purple-mutted-100",children:l.jsxs("div",{className:"flex flex-col gap-1 text-xs max-h-64 overflow-y-auto pr-1 no-scrollbar",children:[h(n,s),h(o,a)]})}),providerProps:{delayDuration:200},contentProps:{side:"bottom",align:"end",className:"border-0 bg-transparent p-0 m-0",disableArrow:!0},children:l.jsx("button",{type:"button","aria-label":`${i} invalid emails`,className:"text-red-400 hover:text-red-300",children:l.jsx(Cg,{className:"size-[18px]"})})})})]})},zy=({onChange:e,disabled:t=!1,inviteMembersPlaceholder:r=({domain:f})=>`Enter email addresses (e.g., user@${f})`,inviteMembersDisabledTooltip:n="You don't have permission to modify email addresses",organization:o,inputClassName:s,chipClassName:a,wrapperClassName:i,invalidEmailError:c="Invalid email",invalidDomainError:u="Email domain is not allowed"})=>{const f=S.useRef(null),p=S.useRef(null),[h,m]=S.useState(""),[w,g]=S.useState(!1),{emails:v,setEmails:b,addTokens:x,removeToken:C,clearAll:E,notify:R}=Fy({onChange:e}),j=Vy({draft:h,setDraft:m,addTokens:x,allSelected:w,setAllSelected:g,clearAll:E,emails:v,setEmails:b,notify:R}),A=()=>{var re;const U=((re=o==null?void 0:o.domains)==null?void 0:re[0])||"example.com";return r({domain:U})},N=S.useCallback(U=>{m(U.target.value)},[]),G=S.useCallback(()=>{h.trim()&&(x(h),m("")),g(!1)},[h,x]),Y=S.useCallback(U=>{const re=U.clipboardData.getData("text");re&&(U.preventDefault(),x(re),m(""))},[x]),ee=S.useCallback(()=>{var U;(U=p.current)==null||U.focus()},[p]),Q=S.useCallback(()=>{g(!1)},[]),q=S.useCallback(U=>{var P;const re=U.relatedTarget;re&&((P=f.current)!=null&&P.contains(re))||h.trim()&&(x(h),m(""))},[h,x]),W=v.length>0,M=!W&&h.length===0,T=W||h.length>0,D=I("bg-transparent text-sm outline-none border-0 p-0 h-6 shadow-none focus-visible:ring-0 whitespace-nowrap text-purple-mutted-200 placeholder:text-purple-mutted-400",W?"flex-none shrink-0 overflow-x-auto overflow-y-hidden no-scrollbar":"flex-1 !min-w-full overflow-hidden",{"opacity-50 cursor-not-allowed":t},s),k=I("inline-flex items-center gap-1 no-scrollbar",W?"w-max":"w-full",a),H=I("relative w-full max-w-full min-w-0 overflow-hidden rounded-md border pl-9 pr-14 py-2 pl-9 pr-14 py-2 focus-within:ring-1 border-purple-mutted-500 dark:bg-purple-mutted-800 focus-within:ring-purple-mutted-400",i);return l.jsx(cn,{content:t?n:"",children:l.jsxs("div",{ref:f,className:H,onClick:ee,onFocus:Q,onBlur:q,children:[l.jsx("div",{className:"absolute left-3 top-1/2 -translate-y-1/2 text-purple-mutted-400",children:l.jsx(vg,{className:"w-4 h-4"})}),l.jsx("div",{className:"w-full text-start max-w-full min-w-0 overflow-x-auto overflow-y-hidden no-scrollbar",children:l.jsxs("div",{className:k,children:[v.map((U,re)=>l.jsx(By,{email:U.email,isValid:U.isValid,onRemove:C},`email-${re}-${U.email}`)),l.jsx("input",{ref:p,value:h,onChange:N,onKeyDown:j,onBlur:G,onPaste:Y,className:D,placeholder:M?A():"",disabled:t})]})}),l.jsx(Wy,{hasContent:T,onClearAll:E,emails:v,invalidEmailError:c,invalidDomainError:u})]})})};exports.Accordion=Qv;exports.AccordionContent=rx;exports.AccordionItem=ex;exports.AccordionTrigger=tx;exports.Badge=jo;exports.BadgeCell=Ty;exports.BaseCell=Qn;exports.Button=It;exports.Card=Wh;exports.CardAction=Uh;exports.CardContent=Kh;exports.CardDescription=Gh;exports.CardFooter=Yh;exports.CardHeader=zh;exports.CardTitle=Hh;exports.Combobox=To;exports.Dialog=uh;exports.DialogClose=fh;exports.DialogContent=ph;exports.DialogDescription=vh;exports.DialogFooter=gh;exports.DialogHeader=mh;exports.DialogOverlay=kl;exports.DialogPortal=El;exports.DialogTitle=hh;exports.DialogTrigger=dh;exports.EmailChipsInput=zy;exports.Form=bt;exports.FormProvider=Ac;exports.Input=to;exports.NumberCell=jy;exports.Progress=nv;exports.SearchInput=Iy;exports.Select=Gi;exports.SelectContent=Co;exports.SelectGroup=Eg;exports.SelectItem=So;exports.SelectLabel=Ki;exports.SelectScrollDownButton=wo;exports.SelectScrollUpButton=yo;exports.SelectSeparator=Yi;exports.SelectTrigger=bo;exports.SelectValue=Ui;exports.Skeleton=Vl;exports.SortableHeaderCell=Ay;exports.Steps=xy;exports.Switch=uv;exports.Table=Ny;exports.Toggle=fv;exports.ToggleGroup=Av;exports.ToggleGroupItem=_v;exports.Tooltip=cn;exports.borderRadius=qu;exports.cn=I;exports.colors=Ku;exports.spacing=Yu;exports.typography=Xu;exports.useFormContext=_c;
|
|
169
184
|
//# sourceMappingURL=index.cjs.js.map
|