nayan
Version:
<div align="center"> <img width="200" src="https://github.com/ursnj/nayan/blob/main/public/nayan.png?raw=true"> </div> <h1 align="center">Nayan UI</h1>
97 lines (94 loc) • 370 kB
JavaScript
(function(B,l){typeof exports=="object"&&typeof module<"u"?l(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],l):(B=typeof globalThis<"u"?globalThis:B||self,l(B.Nayan={},B.React,B.ReactDOM))})(this,function(B,l,Be){"use strict";var fA=Object.defineProperty;var pA=(B,l,Be)=>l in B?fA(B,l,{enumerable:!0,configurable:!0,writable:!0,value:Be}):B[l]=Be;var Ae=(B,l,Be)=>(pA(B,typeof l!="symbol"?l+"":l,Be),Be);function ui(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const _=ui(l),Rf=ui(Be);var Xr={exports:{}},nn={};/**
* @license React
* react-jsx-runtime.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var di;function Wf(){if(di)return nn;di=1;var e=l,t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function i(c,s,u){var d,f={},p=null,m=null;u!==void 0&&(p=""+u),s.key!==void 0&&(p=""+s.key),s.ref!==void 0&&(m=s.ref);for(d in s)r.call(s,d)&&!a.hasOwnProperty(d)&&(f[d]=s[d]);if(c&&c.defaultProps)for(d in s=c.defaultProps,s)f[d]===void 0&&(f[d]=s[d]);return{$$typeof:t,type:c,key:p,ref:m,props:f,_owner:o.current}}return nn.Fragment=n,nn.jsx=i,nn.jsxs=i,nn}var rn={};/**
* @license React
* react-jsx-runtime.development.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var fi;function jf(){return fi||(fi=1,process.env.NODE_ENV!=="production"&&function(){var e=l,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),c=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen"),h=Symbol.iterator,b="@@iterator";function g(C){if(C===null||typeof C!="object")return null;var $=h&&C[h]||C[b];return typeof $=="function"?$:null}var v=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function y(C){{for(var $=arguments.length,G=new Array($>1?$-1:0),U=1;U<$;U++)G[U-1]=arguments[U];I("error",C,G)}}function I(C,$,G){{var U=v.ReactDebugCurrentFrame,ie=U.getStackAddendum();ie!==""&&($+="%s",G=G.concat([ie]));var de=G.map(function(re){return String(re)});de.unshift("Warning: "+$),Function.prototype.apply.call(console[C],console,de)}}var E=!1,w=!1,T=!1,N=!1,D=!1,O;O=Symbol.for("react.module.reference");function W(C){return!!(typeof C=="string"||typeof C=="function"||C===r||C===a||D||C===o||C===u||C===d||N||C===m||E||w||T||typeof C=="object"&&C!==null&&(C.$$typeof===p||C.$$typeof===f||C.$$typeof===i||C.$$typeof===c||C.$$typeof===s||C.$$typeof===O||C.getModuleId!==void 0))}function H(C,$,G){var U=C.displayName;if(U)return U;var ie=$.displayName||$.name||"";return ie!==""?G+"("+ie+")":G}function F(C){return C.displayName||"Context"}function z(C){if(C==null)return null;if(typeof C.tag=="number"&&y("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof C=="function")return C.displayName||C.name||null;if(typeof C=="string")return C;switch(C){case r:return"Fragment";case n:return"Portal";case a:return"Profiler";case o:return"StrictMode";case u:return"Suspense";case d:return"SuspenseList"}if(typeof C=="object")switch(C.$$typeof){case c:var $=C;return F($)+".Consumer";case i:var G=C;return F(G._context)+".Provider";case s:return H(C,C.render,"ForwardRef");case f:var U=C.displayName||null;return U!==null?U:z(C.type)||"Memo";case p:{var ie=C,de=ie._payload,re=ie._init;try{return z(re(de))}catch{return null}}}return null}var P=Object.assign,k=0,R,X,Q,M,q,ne,K;function J(){}J.__reactDisabledLog=!0;function ge(){{if(k===0){R=console.log,X=console.info,Q=console.warn,M=console.error,q=console.group,ne=console.groupCollapsed,K=console.groupEnd;var C={configurable:!0,enumerable:!0,value:J,writable:!0};Object.defineProperties(console,{info:C,log:C,warn:C,error:C,group:C,groupCollapsed:C,groupEnd:C})}k++}}function xe(){{if(k--,k===0){var C={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:P({},C,{value:R}),info:P({},C,{value:X}),warn:P({},C,{value:Q}),error:P({},C,{value:M}),group:P({},C,{value:q}),groupCollapsed:P({},C,{value:ne}),groupEnd:P({},C,{value:K})})}k<0&&y("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ue=v.ReactCurrentDispatcher,me;function he(C,$,G){{if(me===void 0)try{throw Error()}catch(ie){var U=ie.stack.trim().match(/\n( *(at )?)/);me=U&&U[1]||""}return`
`+me+C}}var pe=!1,Ve;{var vt=typeof WeakMap=="function"?WeakMap:Map;Ve=new vt}function V(C,$){if(!C||pe)return"";{var G=Ve.get(C);if(G!==void 0)return G}var U;pe=!0;var ie=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var de;de=ue.current,ue.current=null,ge();try{if($){var re=function(){throw Error()};if(Object.defineProperty(re.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(re,[])}catch(st){U=st}Reflect.construct(C,[],re)}else{try{re.call()}catch(st){U=st}C.call(re.prototype)}}else{try{throw Error()}catch(st){U=st}C()}}catch(st){if(st&&U&&typeof st.stack=="string"){for(var te=st.stack.split(`
`),Pe=U.stack.split(`
`),ve=te.length-1,Ce=Pe.length-1;ve>=1&&Ce>=0&&te[ve]!==Pe[Ce];)Ce--;for(;ve>=1&&Ce>=0;ve--,Ce--)if(te[ve]!==Pe[Ce]){if(ve!==1||Ce!==1)do if(ve--,Ce--,Ce<0||te[ve]!==Pe[Ce]){var je=`
`+te[ve].replace(" at new "," at ");return C.displayName&&je.includes("<anonymous>")&&(je=je.replace("<anonymous>",C.displayName)),typeof C=="function"&&Ve.set(C,je),je}while(ve>=1&&Ce>=0);break}}}finally{pe=!1,ue.current=de,xe(),Error.prepareStackTrace=ie}var tn=C?C.displayName||C.name:"",Bf=tn?he(tn):"";return typeof C=="function"&&Ve.set(C,Bf),Bf}function it(C,$,G){return V(C,!1)}function ze(C){var $=C.prototype;return!!($&&$.isReactComponent)}function De(C,$,G){if(C==null)return"";if(typeof C=="function")return V(C,ze(C));if(typeof C=="string")return he(C);switch(C){case u:return he("Suspense");case d:return he("SuspenseList")}if(typeof C=="object")switch(C.$$typeof){case s:return it(C.render);case f:return De(C.type,$,G);case p:{var U=C,ie=U._payload,de=U._init;try{return De(de(ie),$,G)}catch{}}}return""}var Ft=Object.prototype.hasOwnProperty,Wr={},jr=v.ReactDebugCurrentFrame;function Kt(C){if(C){var $=C._owner,G=De(C.type,C._source,$?$.type:null);jr.setExtraStackFrame(G)}else jr.setExtraStackFrame(null)}function oi(C,$,G,U,ie){{var de=Function.call.bind(Ft);for(var re in C)if(de(C,re)){var te=void 0;try{if(typeof C[re]!="function"){var Pe=Error((U||"React class")+": "+G+" type `"+re+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof C[re]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw Pe.name="Invariant Violation",Pe}te=C[re]($,re,U,G,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(ve){te=ve}te&&!(te instanceof Error)&&(Kt(ie),y("%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).",U||"React class",G,re,typeof te),Kt(null)),te instanceof Error&&!(te.message in Wr)&&(Wr[te.message]=!0,Kt(ie),y("Failed %s type: %s",G,te.message),Kt(null))}}}var qt=Array.isArray;function ai(C){return qt(C)}function YE(C){{var $=typeof Symbol=="function"&&Symbol.toStringTag,G=$&&C[Symbol.toStringTag]||C.constructor.name||"Object";return G}}function JE(C){try{return Df(C),!1}catch{return!0}}function Df(C){return""+C}function Pf(C){if(JE(C))return y("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",YE(C)),Df(C)}var Fn=v.ReactCurrentOwner,UE={key:!0,ref:!0,__self:!0,__source:!0},$f,Ff,ii;ii={};function QE(C){if(Ft.call(C,"ref")){var $=Object.getOwnPropertyDescriptor(C,"ref").get;if($&&$.isReactWarning)return!1}return C.ref!==void 0}function KE(C){if(Ft.call(C,"key")){var $=Object.getOwnPropertyDescriptor(C,"key").get;if($&&$.isReactWarning)return!1}return C.key!==void 0}function qE(C,$){if(typeof C.ref=="string"&&Fn.current&&$&&Fn.current.stateNode!==$){var G=z(Fn.current.type);ii[G]||(y('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',z(Fn.current.type),C.ref),ii[G]=!0)}}function eA(C,$){{var G=function(){$f||($f=!0,y("%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)",$))};G.isReactWarning=!0,Object.defineProperty(C,"key",{get:G,configurable:!0})}}function tA(C,$){{var G=function(){Ff||(Ff=!0,y("%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)",$))};G.isReactWarning=!0,Object.defineProperty(C,"ref",{get:G,configurable:!0})}}var nA=function(C,$,G,U,ie,de,re){var te={$$typeof:t,type:C,key:$,ref:G,props:re,_owner:de};return te._store={},Object.defineProperty(te._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(te,"_self",{configurable:!1,enumerable:!1,writable:!1,value:U}),Object.defineProperty(te,"_source",{configurable:!1,enumerable:!1,writable:!1,value:ie}),Object.freeze&&(Object.freeze(te.props),Object.freeze(te)),te};function rA(C,$,G,U,ie){{var de,re={},te=null,Pe=null;G!==void 0&&(Pf(G),te=""+G),KE($)&&(Pf($.key),te=""+$.key),QE($)&&(Pe=$.ref,qE($,ie));for(de in $)Ft.call($,de)&&!UE.hasOwnProperty(de)&&(re[de]=$[de]);if(C&&C.defaultProps){var ve=C.defaultProps;for(de in ve)re[de]===void 0&&(re[de]=ve[de])}if(te||Pe){var Ce=typeof C=="function"?C.displayName||C.name||"Unknown":C;te&&eA(re,Ce),Pe&&tA(re,Ce)}return nA(C,te,Pe,ie,U,Fn.current,re)}}var si=v.ReactCurrentOwner,Of=v.ReactDebugCurrentFrame;function en(C){if(C){var $=C._owner,G=De(C.type,C._source,$?$.type:null);Of.setExtraStackFrame(G)}else Of.setExtraStackFrame(null)}var ci;ci=!1;function li(C){return typeof C=="object"&&C!==null&&C.$$typeof===t}function kf(){{if(si.current){var C=z(si.current.type);if(C)return`
Check the render method of \``+C+"`."}return""}}function oA(C){{if(C!==void 0){var $=C.fileName.replace(/^.*[\\\/]/,""),G=C.lineNumber;return`
Check your code at `+$+":"+G+"."}return""}}var Mf={};function aA(C){{var $=kf();if(!$){var G=typeof C=="string"?C:C.displayName||C.name;G&&($=`
Check the top-level render call using <`+G+">.")}return $}}function Gf(C,$){{if(!C._store||C._store.validated||C.key!=null)return;C._store.validated=!0;var G=aA($);if(Mf[G])return;Mf[G]=!0;var U="";C&&C._owner&&C._owner!==si.current&&(U=" It was passed a child from "+z(C._owner.type)+"."),en(C),y('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',G,U),en(null)}}function Lf(C,$){{if(typeof C!="object")return;if(ai(C))for(var G=0;G<C.length;G++){var U=C[G];li(U)&&Gf(U,$)}else if(li(C))C._store&&(C._store.validated=!0);else if(C){var ie=g(C);if(typeof ie=="function"&&ie!==C.entries)for(var de=ie.call(C),re;!(re=de.next()).done;)li(re.value)&&Gf(re.value,$)}}}function iA(C){{var $=C.type;if($==null||typeof $=="string")return;var G;if(typeof $=="function")G=$.propTypes;else if(typeof $=="object"&&($.$$typeof===s||$.$$typeof===f))G=$.propTypes;else return;if(G){var U=z($);oi(G,C.props,"prop",U,C)}else if($.PropTypes!==void 0&&!ci){ci=!0;var ie=z($);y("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",ie||"Unknown")}typeof $.getDefaultProps=="function"&&!$.getDefaultProps.isReactClassApproved&&y("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function sA(C){{for(var $=Object.keys(C.props),G=0;G<$.length;G++){var U=$[G];if(U!=="children"&&U!=="key"){en(C),y("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",U),en(null);break}}C.ref!==null&&(en(C),y("Invalid attribute `ref` supplied to `React.Fragment`."),en(null))}}function Vf(C,$,G,U,ie,de){{var re=W(C);if(!re){var te="";(C===void 0||typeof C=="object"&&C!==null&&Object.keys(C).length===0)&&(te+=" 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 Pe=oA(ie);Pe?te+=Pe:te+=kf();var ve;C===null?ve="null":ai(C)?ve="array":C!==void 0&&C.$$typeof===t?(ve="<"+(z(C.type)||"Unknown")+" />",te=" Did you accidentally export a JSX literal instead of a component?"):ve=typeof C,y("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",ve,te)}var Ce=rA(C,$,G,ie,de);if(Ce==null)return Ce;if(re){var je=$.children;if(je!==void 0)if(U)if(ai(je)){for(var tn=0;tn<je.length;tn++)Lf(je[tn],C);Object.freeze&&Object.freeze(je)}else y("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 Lf(je,C)}return C===r?sA(Ce):iA(Ce),Ce}}function cA(C,$,G){return Vf(C,$,G,!0)}function lA(C,$,G){return Vf(C,$,G,!1)}var uA=lA,dA=cA;rn.Fragment=r,rn.jsx=uA,rn.jsxs=dA}()),rn}process.env.NODE_ENV==="production"?Xr.exports=Wf():Xr.exports=jf();var x=Xr.exports;function A(){return A=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},A.apply(this,arguments)}function Xf(e,t){const n=l.createContext(t);function r(a){const{children:i,...c}=a,s=l.useMemo(()=>c,Object.values(c));return l.createElement(n.Provider,{value:s},i)}function o(a){const i=l.useContext(n);if(i)return i;if(t!==void 0)return t;throw new Error(`\`${a}\` must be used within \`${e}\``)}return r.displayName=e+"Provider",[r,o]}function we(e,t=[]){let n=[];function r(a,i){const c=l.createContext(i),s=n.length;n=[...n,i];function u(f){const{scope:p,children:m,...h}=f,b=(p==null?void 0:p[e][s])||c,g=l.useMemo(()=>h,Object.values(h));return l.createElement(b.Provider,{value:g},m)}function d(f,p){const m=(p==null?void 0:p[e][s])||c,h=l.useContext(m);if(h)return h;if(i!==void 0)return i;throw new Error(`\`${f}\` must be used within \`${a}\``)}return u.displayName=a+"Provider",[u,d]}const o=()=>{const a=n.map(i=>l.createContext(i));return function(c){const s=(c==null?void 0:c[e])||a;return l.useMemo(()=>({[`__scope${e}`]:{...c,[e]:s}}),[c,s])}};return o.scopeName=e,[r,Zf(o,...t)]}function Zf(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(a){const i=r.reduce((c,{useScope:s,scopeName:u})=>{const f=s(a)[`__scope${u}`];return{...c,...f}},{});return l.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}function Hf(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function On(...e){return t=>e.forEach(n=>Hf(n,t))}function se(...e){return l.useCallback(On(...e),e)}const ct=l.forwardRef((e,t)=>{const{children:n,...r}=e,o=l.Children.toArray(n),a=o.find(zf);if(a){const i=a.props.children,c=o.map(s=>s===a?l.Children.count(i)>1?l.Children.only(null):l.isValidElement(i)?i.props.children:null:s);return l.createElement(Zr,A({},r,{ref:t}),l.isValidElement(i)?l.cloneElement(i,void 0,c):null)}return l.createElement(Zr,A({},r,{ref:t}),n)});ct.displayName="Slot";const Zr=l.forwardRef((e,t)=>{const{children:n,...r}=e;return l.isValidElement(n)?l.cloneElement(n,{...Yf(r,n.props),ref:t?On(t,n.ref):n.ref}):l.Children.count(n)>1?l.Children.only(null):null});Zr.displayName="SlotClone";const Hr=({children:e})=>l.createElement(l.Fragment,null,e);function zf(e){return l.isValidElement(e)&&e.type===Hr}function Yf(e,t){const n={...t};for(const r in t){const o=e[r],a=t[r];/^on[A-Z]/.test(r)?o&&a?n[r]=(...c)=>{a(...c),o(...c)}:o&&(n[r]=o):r==="style"?n[r]={...o,...a}:r==="className"&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}function kn(e){const t=e+"CollectionProvider",[n,r]=we(t),[o,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),i=m=>{const{scope:h,children:b}=m,g=l.useRef(null),v=l.useRef(new Map).current;return l.createElement(o,{scope:h,itemMap:v,collectionRef:g},b)},c=e+"CollectionSlot",s=l.forwardRef((m,h)=>{const{scope:b,children:g}=m,v=a(c,b),y=se(h,v.collectionRef);return l.createElement(ct,{ref:y},g)}),u=e+"CollectionItemSlot",d="data-radix-collection-item",f=l.forwardRef((m,h)=>{const{scope:b,children:g,...v}=m,y=l.useRef(null),I=se(h,y),E=a(u,b);return l.useEffect(()=>(E.itemMap.set(y,{ref:y,...v}),()=>void E.itemMap.delete(y))),l.createElement(ct,{[d]:"",ref:I},g)});function p(m){const h=a(e+"CollectionConsumer",m);return l.useCallback(()=>{const g=h.collectionRef.current;if(!g)return[];const v=Array.from(g.querySelectorAll(`[${d}]`));return Array.from(h.itemMap.values()).sort((E,w)=>v.indexOf(E.ref.current)-v.indexOf(w.ref.current))},[h.collectionRef,h.itemMap])}return[{Provider:i,Slot:s,ItemSlot:f},p,r]}function L(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function Te(e){const t=l.useRef(e);return l.useEffect(()=>{t.current=e}),l.useMemo(()=>(...n)=>{var r;return(r=t.current)===null||r===void 0?void 0:r.call(t,...n)},[])}function $e({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=Jf({defaultProp:t,onChange:n}),a=e!==void 0,i=a?e:r,c=Te(n),s=l.useCallback(u=>{if(a){const f=typeof u=="function"?u(e):u;f!==e&&c(f)}else o(u)},[a,e,o,c]);return[i,s]}function Jf({defaultProp:e,onChange:t}){const n=l.useState(e),[r]=n,o=l.useRef(r),a=Te(t);return l.useEffect(()=>{o.current!==r&&(a(r),o.current=r)},[r,o,a]),n}const Y=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{const n=l.forwardRef((r,o)=>{const{asChild:a,...i}=r,c=a?ct:t;return l.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),l.createElement(c,A({},i,{ref:o}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function zr(e,t){e&&Be.flushSync(()=>e.dispatchEvent(t))}const lt=globalThis!=null&&globalThis.document?l.useLayoutEffect:()=>{};function Uf(e,t){return l.useReducer((n,r)=>{const o=t[n][r];return o??n},e)}const _e=e=>{const{present:t,children:n}=e,r=Qf(t),o=typeof n=="function"?n({present:r.isPresent}):l.Children.only(n),a=se(r.ref,o.ref);return typeof n=="function"||r.isPresent?l.cloneElement(o,{ref:a}):null};_e.displayName="Presence";function Qf(e){const[t,n]=l.useState(),r=l.useRef({}),o=l.useRef(e),a=l.useRef("none"),i=e?"mounted":"unmounted",[c,s]=Uf(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return l.useEffect(()=>{const u=Mn(r.current);a.current=c==="mounted"?u:"none"},[c]),lt(()=>{const u=r.current,d=o.current;if(d!==e){const p=a.current,m=Mn(u);e?s("MOUNT"):m==="none"||(u==null?void 0:u.display)==="none"?s("UNMOUNT"):s(d&&p!==m?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,s]),lt(()=>{if(t){const u=f=>{const m=Mn(r.current).includes(f.animationName);f.target===t&&m&&Be.flushSync(()=>s("ANIMATION_END"))},d=f=>{f.target===t&&(a.current=Mn(r.current))};return t.addEventListener("animationstart",d),t.addEventListener("animationcancel",u),t.addEventListener("animationend",u),()=>{t.removeEventListener("animationstart",d),t.removeEventListener("animationcancel",u),t.removeEventListener("animationend",u)}}else s("ANIMATION_END")},[t,s]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:l.useCallback(u=>{u&&(r.current=getComputedStyle(u)),n(u)},[])}}function Mn(e){return(e==null?void 0:e.animationName)||"none"}const Kf=_.useId||(()=>{});let qf=0;function ke(e){const[t,n]=_.useState(Kf());return lt(()=>{e||n(r=>r??String(qf++))},[e]),e||(t?`radix-${t}`:"")}const pi="Collapsible",[ep,mi]=we(pi),[tp,Yr]=ep(pi),np=l.forwardRef((e,t)=>{const{__scopeCollapsible:n,open:r,defaultOpen:o,disabled:a,onOpenChange:i,...c}=e,[s=!1,u]=$e({prop:r,defaultProp:o,onChange:i});return l.createElement(tp,{scope:n,disabled:a,contentId:ke(),open:s,onOpenToggle:l.useCallback(()=>u(d=>!d),[u])},l.createElement(Y.div,A({"data-state":Jr(s),"data-disabled":a?"":void 0},c,{ref:t})))}),rp="CollapsibleTrigger",op=l.forwardRef((e,t)=>{const{__scopeCollapsible:n,...r}=e,o=Yr(rp,n);return l.createElement(Y.button,A({type:"button","aria-controls":o.contentId,"aria-expanded":o.open||!1,"data-state":Jr(o.open),"data-disabled":o.disabled?"":void 0,disabled:o.disabled},r,{ref:t,onClick:L(e.onClick,o.onOpenToggle)}))}),bi="CollapsibleContent",ap=l.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=Yr(bi,e.__scopeCollapsible);return l.createElement(_e,{present:n||o.open},({present:a})=>l.createElement(ip,A({},r,{ref:t,present:a})))}),ip=l.forwardRef((e,t)=>{const{__scopeCollapsible:n,present:r,children:o,...a}=e,i=Yr(bi,n),[c,s]=l.useState(r),u=l.useRef(null),d=se(t,u),f=l.useRef(0),p=f.current,m=l.useRef(0),h=m.current,b=i.open||c,g=l.useRef(b),v=l.useRef();return l.useEffect(()=>{const y=requestAnimationFrame(()=>g.current=!1);return()=>cancelAnimationFrame(y)},[]),lt(()=>{const y=u.current;if(y){v.current=v.current||{transitionDuration:y.style.transitionDuration,animationName:y.style.animationName},y.style.transitionDuration="0s",y.style.animationName="none";const I=y.getBoundingClientRect();f.current=I.height,m.current=I.width,g.current||(y.style.transitionDuration=v.current.transitionDuration,y.style.animationName=v.current.animationName),s(r)}},[i.open,r]),l.createElement(Y.div,A({"data-state":Jr(i.open),"data-disabled":i.disabled?"":void 0,id:i.contentId,hidden:!b},a,{ref:d,style:{"--radix-collapsible-content-height":p?`${p}px`:void 0,"--radix-collapsible-content-width":h?`${h}px`:void 0,...e.style}}),b&&o)});function Jr(e){return e?"open":"closed"}const sp=np,cp=op,lp=ap,up=l.createContext(void 0);function on(e){const t=l.useContext(up);return e||t||"ltr"}const ut="Accordion",dp=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[Ur,fp,pp]=kn(ut),[Gn,bA]=we(ut,[pp,mi]),Qr=mi(),gi=l.forwardRef((e,t)=>{const{type:n,...r}=e,o=r,a=r;return l.createElement(Ur.Provider,{scope:e.__scopeAccordion},n==="multiple"?l.createElement(hp,A({},a,{ref:t})):l.createElement(gp,A({},o,{ref:t})))});gi.propTypes={type(e){const t=e.value||e.defaultValue;return e.type&&!["single","multiple"].includes(e.type)?new Error("Invalid prop `type` supplied to `Accordion`. Expected one of `single | multiple`."):e.type==="multiple"&&typeof t=="string"?new Error("Invalid prop `type` supplied to `Accordion`. Expected `single` when `defaultValue` or `value` is type `string`."):e.type==="single"&&Array.isArray(t)?new Error("Invalid prop `type` supplied to `Accordion`. Expected `multiple` when `defaultValue` or `value` is type `string[]`."):null}};const[hi,mp]=Gn(ut),[yi,bp]=Gn(ut,{collapsible:!1}),gp=l.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},collapsible:a=!1,...i}=e,[c,s]=$e({prop:n,defaultProp:r,onChange:o});return l.createElement(hi,{scope:e.__scopeAccordion,value:c?[c]:[],onItemOpen:s,onItemClose:l.useCallback(()=>a&&s(""),[a,s])},l.createElement(yi,{scope:e.__scopeAccordion,collapsible:a},l.createElement(xi,A({},i,{ref:t}))))}),hp=l.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},...a}=e,[i=[],c]=$e({prop:n,defaultProp:r,onChange:o}),s=l.useCallback(d=>c((f=[])=>[...f,d]),[c]),u=l.useCallback(d=>c((f=[])=>f.filter(p=>p!==d)),[c]);return l.createElement(hi,{scope:e.__scopeAccordion,value:i,onItemOpen:s,onItemClose:u},l.createElement(yi,{scope:e.__scopeAccordion,collapsible:!0},l.createElement(xi,A({},a,{ref:t}))))}),[vp,Ln]=Gn(ut),xi=l.forwardRef((e,t)=>{const{__scopeAccordion:n,disabled:r,dir:o,orientation:a="vertical",...i}=e,c=l.useRef(null),s=se(c,t),u=fp(n),f=on(o)==="ltr",p=L(e.onKeyDown,m=>{var h;if(!dp.includes(m.key))return;const b=m.target,g=u().filter(O=>{var W;return!((W=O.ref.current)!==null&&W!==void 0&&W.disabled)}),v=g.findIndex(O=>O.ref.current===b),y=g.length;if(v===-1)return;m.preventDefault();let I=v;const E=0,w=y-1,T=()=>{I=v+1,I>w&&(I=E)},N=()=>{I=v-1,I<E&&(I=w)};switch(m.key){case"Home":I=E;break;case"End":I=w;break;case"ArrowRight":a==="horizontal"&&(f?T():N());break;case"ArrowDown":a==="vertical"&&T();break;case"ArrowLeft":a==="horizontal"&&(f?N():T());break;case"ArrowUp":a==="vertical"&&N();break}const D=I%y;(h=g[D].ref.current)===null||h===void 0||h.focus()});return l.createElement(vp,{scope:n,disabled:r,direction:o,orientation:a},l.createElement(Ur.Slot,{scope:n},l.createElement(Y.div,A({},i,{"data-orientation":a,ref:s,onKeyDown:r?void 0:p}))))}),Kr="AccordionItem",[yp,qr]=Gn(Kr),xp=l.forwardRef((e,t)=>{const{__scopeAccordion:n,value:r,...o}=e,a=Ln(Kr,n),i=mp(Kr,n),c=Qr(n),s=ke(),u=r&&i.value.includes(r)||!1,d=a.disabled||e.disabled;return l.createElement(yp,{scope:n,open:u,disabled:d,triggerId:s},l.createElement(sp,A({"data-orientation":a.orientation,"data-state":wi(u)},c,o,{ref:t,disabled:d,open:u,onOpenChange:f=>{f?i.onItemOpen(r):i.onItemClose(r)}})))}),Cp="AccordionHeader",wp=l.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=Ln(ut,n),a=qr(Cp,n);return l.createElement(Y.h3,A({"data-orientation":o.orientation,"data-state":wi(a.open),"data-disabled":a.disabled?"":void 0},r,{ref:t}))}),Ci="AccordionTrigger",Ip=l.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=Ln(ut,n),a=qr(Ci,n),i=bp(Ci,n),c=Qr(n);return l.createElement(Ur.ItemSlot,{scope:n},l.createElement(cp,A({"aria-disabled":a.open&&!i.collapsible||void 0,"data-orientation":o.orientation,id:a.triggerId},c,r,{ref:t})))}),Ep="AccordionContent",Ap=l.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=Ln(ut,n),a=qr(Ep,n),i=Qr(n);return l.createElement(lp,A({role:"region","aria-labelledby":a.triggerId,"data-orientation":o.orientation},i,r,{ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}}))});function wi(e){return e?"open":"closed"}const _p=gi,Sp=xp,Np=wp,Ii=Ip,Ei=Ap;/**
* @license lucide-react v0.394.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Tp=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Ai=(...e)=>e.filter((t,n,r)=>!!t&&r.indexOf(t)===n).join(" ");/**
* @license lucide-react v0.394.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/var Dp={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"};/**
* @license lucide-react v0.394.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Pp=l.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:a,iconNode:i,...c},s)=>l.createElement("svg",{ref:s,...Dp,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:Ai("lucide",o),...c},[...i.map(([u,d])=>l.createElement(u,d)),...Array.isArray(a)?a:[a]]));/**
* @license lucide-react v0.394.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Ye=(e,t)=>{const n=l.forwardRef(({className:r,...o},a)=>l.createElement(Pp,{ref:a,iconNode:t,className:Ai(`lucide-${Tp(e)}`,r),...o}));return n.displayName=`${e}`,n};/**
* @license lucide-react v0.394.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const $p=Ye("BadgeAlert",[["path",{d:"M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z",key:"3c2336"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);/**
* @license lucide-react v0.394.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const _i=Ye("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
* @license lucide-react v0.394.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Fp=Ye("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
* @license lucide-react v0.394.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Op=Ye("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
* @license lucide-react v0.394.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const kp=Ye("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
* @license lucide-react v0.394.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Mp=Ye("CircleX",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]);/**
* @license lucide-react v0.394.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Si=Ye("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);/**
* @license lucide-react v0.394.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Gp=Ye("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);/**
* @license lucide-react v0.394.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Lp=Ye("TriangleAlert",[["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"}]]);/**
* @license lucide-react v0.394.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Vn=Ye("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);function Ni(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=Ni(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Vp(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Ni(e))&&(r&&(r+=" "),r+=t);return r}function Bp(){for(var e=0,t,n,r="";e<arguments.length;)(t=arguments[e++])&&(n=Ti(t))&&(r&&(r+=" "),r+=n);return r}function Ti(e){if(typeof e=="string")return e;for(var t,n="",r=0;r<e.length;r++)e[r]&&(t=Ti(e[r]))&&(n&&(n+=" "),n+=t);return n}var eo="-";function Rp(e){var t=jp(e),n=e.conflictingClassGroups,r=e.conflictingClassGroupModifiers,o=r===void 0?{}:r;function a(c){var s=c.split(eo);return s[0]===""&&s.length!==1&&s.shift(),Di(s,t)||Wp(c)}function i(c,s){var u=n[c]||[];return s&&o[c]?[].concat(u,o[c]):u}return{getClassGroupId:a,getConflictingClassGroupIds:i}}function Di(e,t){var i;if(e.length===0)return t.classGroupId;var n=e[0],r=t.nextPart.get(n),o=r?Di(e.slice(1),r):void 0;if(o)return o;if(t.validators.length!==0){var a=e.join(eo);return(i=t.validators.find(function(c){var s=c.validator;return s(a)}))==null?void 0:i.classGroupId}}var Pi=/^\[(.+)\]$/;function Wp(e){if(Pi.test(e)){var t=Pi.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}}function jp(e){var t=e.theme,n=e.prefix,r={nextPart:new Map,validators:[]},o=Zp(Object.entries(e.classGroups),n);return o.forEach(function(a){var i=a[0],c=a[1];to(c,r,i,t)}),r}function to(e,t,n,r){e.forEach(function(o){if(typeof o=="string"){var a=o===""?t:$i(t,o);a.classGroupId=n;return}if(typeof o=="function"){if(Xp(o)){to(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(function(i){var c=i[0],s=i[1];to(s,$i(t,c),n,r)})})}function $i(e,t){var n=e;return t.split(eo).forEach(function(r){n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n}function Xp(e){return e.isThemeGetter}function Zp(e,t){return t?e.map(function(n){var r=n[0],o=n[1],a=o.map(function(i){return typeof i=="string"?t+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(function(c){var s=c[0],u=c[1];return[t+s,u]})):i});return[r,a]}):e}function Hp(e){if(e<1)return{get:function(){},set:function(){}};var t=0,n=new Map,r=new Map;function o(a,i){n.set(a,i),t++,t>e&&(t=0,r=n,n=new Map)}return{get:function(i){var c=n.get(i);if(c!==void 0)return c;if((c=r.get(i))!==void 0)return o(i,c),c},set:function(i,c){n.has(i)?n.set(i,c):o(i,c)}}}var Fi="!";function zp(e){var t=e.separator||":",n=t.length===1,r=t[0],o=t.length;return function(i){for(var c=[],s=0,u=0,d,f=0;f<i.length;f++){var p=i[f];if(s===0){if(p===r&&(n||i.slice(f,f+o)===t)){c.push(i.slice(u,f)),u=f+o;continue}if(p==="/"){d=f;continue}}p==="["?s++:p==="]"&&s--}var m=c.length===0?i:i.substring(u),h=m.startsWith(Fi),b=h?m.substring(1):m,g=d&&d>u?d-u:void 0;return{modifiers:c,hasImportantModifier:h,baseClassName:b,maybePostfixModifierPosition:g}}}function Yp(e){if(e.length<=1)return e;var t=[],n=[];return e.forEach(function(r){var o=r[0]==="[";o?(t.push.apply(t,n.sort().concat([r])),n=[]):n.push(r)}),t.push.apply(t,n.sort()),t}function Jp(e){return{cache:Hp(e.cacheSize),splitModifiers:zp(e),...Rp(e)}}var Up=/\s+/;function Qp(e,t){var n=t.splitModifiers,r=t.getClassGroupId,o=t.getConflictingClassGroupIds,a=new Set;return e.trim().split(Up).map(function(i){var c=n(i),s=c.modifiers,u=c.hasImportantModifier,d=c.baseClassName,f=c.maybePostfixModifierPosition,p=r(f?d.substring(0,f):d),m=!!f;if(!p){if(!f)return{isTailwindClass:!1,originalClassName:i};if(p=r(d),!p)return{isTailwindClass:!1,originalClassName:i};m=!1}var h=Yp(s).join(":"),b=u?h+Fi:h;return{isTailwindClass:!0,modifierId:b,classGroupId:p,originalClassName:i,hasPostfixModifier:m}}).reverse().filter(function(i){if(!i.isTailwindClass)return!0;var c=i.modifierId,s=i.classGroupId,u=i.hasPostfixModifier,d=c+s;return a.has(d)?!1:(a.add(d),o(s,u).forEach(function(f){return a.add(c+f)}),!0)}).reverse().map(function(i){return i.originalClassName}).join(" ")}function Kp(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r,o,a,i=c;function c(u){var d=t[0],f=t.slice(1),p=f.reduce(function(m,h){return h(m)},d());return r=Jp(p),o=r.cache.get,a=r.cache.set,i=s,s(u)}function s(u){var d=o(u);if(d)return d;var f=Qp(u,r);return a(u,f),f}return function(){return i(Bp.apply(null,arguments))}}function fe(e){var t=function(r){return r[e]||[]};return t.isThemeGetter=!0,t}var Oi=/^\[(?:([a-z-]+):)?(.+)\]$/i,qp=/^\d+\/\d+$/,em=new Set(["px","full","screen"]),tm=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,nm=/\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$/,rm=/^-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/;function Xe(e){return yt(e)||em.has(e)||qp.test(e)||no(e)}function no(e){return xt(e,"length",lm)}function om(e){return xt(e,"size",ki)}function am(e){return xt(e,"position",ki)}function im(e){return xt(e,"url",um)}function Bn(e){return xt(e,"number",yt)}function yt(e){return!Number.isNaN(Number(e))}function sm(e){return e.endsWith("%")&&yt(e.slice(0,-1))}function an(e){return Mi(e)||xt(e,"number",Mi)}function ee(e){return Oi.test(e)}function sn(){return!0}function dt(e){return tm.test(e)}function cm(e){return xt(e,"",dm)}function xt(e,t,n){var r=Oi.exec(e);return r?r[1]?r[1]===t:n(r[2]):!1}function lm(e){return nm.test(e)}function ki(){return!1}function um(e){return e.startsWith("url(")}function Mi(e){return Number.isInteger(Number(e))}function dm(e){return rm.test(e)}function fm(){var e=fe("colors"),t=fe("spacing"),n=fe("blur"),r=fe("brightness"),o=fe("borderColor"),a=fe("borderRadius"),i=fe("borderSpacing"),c=fe("borderWidth"),s=fe("contrast"),u=fe("grayscale"),d=fe("hueRotate"),f=fe("invert"),p=fe("gap"),m=fe("gradientColorStops"),h=fe("gradientColorStopPositions"),b=fe("inset"),g=fe("margin"),v=fe("opacity"),y=fe("padding"),I=fe("saturate"),E=fe("scale"),w=fe("sepia"),T=fe("skew"),N=fe("space"),D=fe("translate"),O=function(){return["auto","contain","none"]},W=function(){return["auto","hidden","clip","visible","scroll"]},H=function(){return["auto",ee,t]},F=function(){return[ee,t]},z=function(){return["",Xe]},P=function(){return["auto",yt,ee]},k=function(){return["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"]},R=function(){return["solid","dashed","dotted","double","none"]},X=function(){return["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"]},Q=function(){return["start","end","center","between","around","evenly","stretch"]},M=function(){return["","0",ee]},q=function(){return["auto","avoid","all","avoid-page","page","left","right","column"]},ne=function(){return[yt,Bn]},K=function(){return[yt,ee]};return{cacheSize:500,theme:{colors:[sn],spacing:[Xe],blur:["none","",dt,ee],brightness:ne(),borderColor:[e],borderRadius:["none","","full",dt,ee],borderSpacing:F(),borderWidth:z(),contrast:ne(),grayscale:M(),hueRotate:K(),invert:M(),gap:F(),gradientColorStops:[e],gradientColorStopPositions:[sm,no],inset:H(),margin:H(),opacity:ne(),padding:F(),saturate:ne(),scale:ne(),sepia:M(),skew:K(),space:F(),translate:F()},classGroups:{aspect:[{aspect:["auto","square","video",ee]}],container:["container"],columns:[{columns:[dt]}],"break-after":[{"break-after":q()}],"break-before":[{"break-before":q()}],"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"],float:[{float:["right","left","none"]}],clear:[{clear:["left","right","both","none"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[].concat(k(),[ee])}],overflow:[{overflow:W()}],"overflow-x":[{"overflow-x":W()}],"overflow-y":[{"overflow-y":W()}],overscroll:[{overscroll:O()}],"overscroll-x":[{"overscroll-x":O()}],"overscroll-y":[{"overscroll-y":O()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[b]}],"inset-x":[{"inset-x":[b]}],"inset-y":[{"inset-y":[b]}],start:[{start:[b]}],end:[{end:[b]}],top:[{top:[b]}],right:[{right:[b]}],bottom:[{bottom:[b]}],left:[{left:[b]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",an]}],basis:[{basis:H()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",ee]}],grow:[{grow:M()}],shrink:[{shrink:M()}],order:[{order:["first","last","none",an]}],"grid-cols":[{"grid-cols":[sn]}],"col-start-end":[{col:["auto",{span:["full",an]},ee]}],"col-start":[{"col-start":P()}],"col-end":[{"col-end":P()}],"grid-rows":[{"grid-rows":[sn]}],"row-start-end":[{row:["auto",{span:[an]},ee]}],"row-start":[{"row-start":P()}],"row-end":[{"row-end":P()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",ee]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",ee]}],gap:[{gap:[p]}],"gap-x":[{"gap-x":[p]}],"gap-y":[{"gap-y":[p]}],"justify-content":[{justify:["normal"].concat(Q())}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal"].concat(Q(),["baseline"])}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[].concat(Q(),["baseline"])}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[y]}],px:[{px:[y]}],py:[{py:[y]}],ps:[{ps:[y]}],pe:[{pe:[y]}],pt:[{pt:[y]}],pr:[{pr:[y]}],pb:[{pb:[y]}],pl:[{pl:[y]}],m:[{m:[g]}],mx:[{mx:[g]}],my:[{my:[g]}],ms:[{ms:[g]}],me:[{me:[g]}],mt:[{mt:[g]}],mr:[{mr:[g]}],mb:[{mb:[g]}],ml:[{ml:[g]}],"space-x":[{"space-x":[N]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[N]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit",ee,t]}],"min-w":[{"min-w":["min","max","fit",ee,Xe]}],"max-w":[{"max-w":["0","none","full","min","max","fit","prose",{screen:[dt]},dt,ee]}],h:[{h:[ee,t,"auto","min","max","fit"]}],"min-h":[{"min-h":["min","max","fit",ee,Xe]}],"max-h":[{"max-h":[ee,t,"min","max","fit"]}],"font-size":[{text:["base",dt,no]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Bn]}],"font-family":[{font:[sn]}],"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-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",ee]}],"line-clamp":[{"line-clamp":["none",yt,Bn]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",ee,Xe]}],"list-image":[{"list-image":["none",ee]}],"list-style-type":[{list:["none","disc","decimal",ee]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[v]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[v]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[].concat(R(),["wavy"])}],"text-decoration-thickness":[{decoration:["auto","from-font",Xe]}],"underline-offset":[{"underline-offset":["auto",ee,Xe]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],indent:[{indent:F()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ee]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",ee]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[v]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[].concat(k(),[am])}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",om]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},im]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[h]}],"gradient-via-pos":[{via:[h]}],"gradient-to-pos":[{to:[h]}],"gradient-from":[{from:[m]}],"gradient-via":[{via:[m]}],"gradient-to":[{to:[m]}],rounded:[{rounded:[a]}],"rounded-s":[{"rounded-s":[a]}],"rounded-e":[{"rounded-e":[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-b":[{"rounded-b":[a]}],"rounded-l":[{"rounded-l":[a]}],"rounded-ss":[{"rounded-ss":[a]}],"rounded-se":[{"rounded-se":[a]}],"rounded-ee":[{"rounded-ee":[a]}],"rounded-es":[{"rounded-es":[a]}],"rounded-tl":[{"rounded-tl":[a]}],"rounded-tr":[{"rounded-tr":[a]}],"rounded-br":[{"rounded-br":[a]}],"rounded-bl":[{"rounded-bl":[a]}],"border-w":[{border:[c]}],"border-w-x":[{"border-x":[c]}],"border-w-y":[{"border-y":[c]}],"border-w-s":[{"border-s":[c]}],"border-w-e":[{"border-e":[c]}],"border-w-t":[{"border-t":[c]}],"border-w-r":[{"border-r":[c]}],"border-w-b":[{"border-b":[c]}],"border-w-l":[{"border-l":[c]}],"border-opacity":[{"border-opacity":[v]}],"border-style":[{border:[].concat(R(),["hidden"])}],"divide-x":[{"divide-x":[c]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[c]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[v]}],"divide-style":[{divide:R()}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:[""].concat(R())}],"outline-offset":[{"outline-offset":[ee,Xe]}],"outline-w":[{outline:[Xe]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:z()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[v]}],"ring-offset-w":[{"ring-offset":[Xe]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",dt,cm]}],"shadow-color":[{shadow:[sn]}],opacity:[{opacity:[v]}],"mix-blend":[{"mix-blend":X()}],"bg-blend":[{"bg-blend":X()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[s]}],"drop-shadow":[{"drop-shadow":["","none",dt,ee]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[f]}],saturate:[{saturate:[I]}],sepia:[{sepia:[w]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[s]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[f]}],"backdrop-opacity":[{"backdrop-opacity":[v]}],"backdrop-saturate":[{"backdrop-saturate":[I]}],"backdrop-sepia":[{"backdrop-sepia":[w]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",ee]}],duration:[{duration:K()}],ease:[{ease:["linear","in","out","in-out",ee]}],delay:[{delay:K()}],animate:[{animate:["none","spin","ping","pulse","bounce",ee]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[E]}],"scale-x":[{"scale-x":[E]}],"scale-y":[{"scale-y":[E]}],rotate:[{rotate:[an,ee]}],"translate-x":[{"translate-x":[D]}],"translate-y":[{"translate-y":[D]}],"skew-x":[{"skew-x":[T]}],"skew-y":[{"skew-y":[T]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",ee]}],accent:[{accent:["auto",e]}],appearance:["appearance-none"],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",ee]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":F()}],"scroll-mx":[{"scroll-mx":F()}],"scroll-my":[{"scroll-my":F()}],"scroll-ms":[{"scroll-ms":F()}],"scroll-me":[{"scroll-me":F()}],"scroll-mt":[{"scroll-mt":F()}],"scroll-mr":[{"scroll-mr":F()}],"scroll-mb":[{"scroll-mb":F()}],"scroll-ml":[{"scroll-ml":F()}],"scroll-p":[{"scroll-p":F()}],"scroll-px":[{"scroll-px":F()}],"scroll-py":[{"scroll-py":F()}],"scroll-ps":[{"scroll-ps":F()}],"scroll-pe":[{"scroll-pe":F()}],"scroll-pt":[{"scroll-pt":F()}],"scroll-pr":[{"scroll-pr":F()