nextjs-tailwind-sidebar
Version:
Build beautiful and responsive sidebars in seconds! **Nextjs Tailwind Sidebar** is a lightweight and fully customizable sidebar component for React and Next.js projects. It comes with built-in support for **light/dark mode**, **RTL layouts**, and **easy s
72 lines • 124 kB
JavaScript
(function(re,q){typeof exports=="object"&&typeof module<"u"?q(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],q):(re=typeof globalThis<"u"?globalThis:re||self,q(re.ReactTailwindSidebar={},re.React,re.ReactDOM))})(this,(function(re,q,wn){"use strict";function Cn(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 c=Cn(q),En=Cn(wn);var et={exports:{}},Ge={};/**
* @license React
* react-jsx-runtime.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var Sn;function Io(){if(Sn)return Ge;Sn=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,o,s){var i=null;if(s!==void 0&&(i=""+s),o.key!==void 0&&(i=""+o.key),"key"in o){s={};for(var a in o)a!=="key"&&(s[a]=o[a])}else s=o;return o=s.ref,{$$typeof:e,type:r,key:i,ref:o!==void 0?o:null,props:s}}return Ge.Fragment=t,Ge.jsx=n,Ge.jsxs=n,Ge}var Ue={};/**
* @license React
* react-jsx-runtime.development.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var kn;function Fo(){return kn||(kn=1,process.env.NODE_ENV!=="production"&&(function(){function e(w){if(w==null)return null;if(typeof w=="function")return w.$$typeof===z?null:w.displayName||w.name||null;if(typeof w=="string")return w;switch(w){case m:return"Fragment";case x:return"Profiler";case b:return"StrictMode";case k:return"Suspense";case T:return"SuspenseList";case M:return"Activity"}if(typeof w=="object")switch(typeof w.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),w.$$typeof){case v:return"Portal";case E:return(w.displayName||"Context")+".Provider";case y:return(w._context.displayName||"Context")+".Consumer";case S:var _=w.render;return w=w.displayName,w||(w=_.displayName||_.name||"",w=w!==""?"ForwardRef("+w+")":"ForwardRef"),w;case O:return _=w.displayName||null,_!==null?_:e(w.type)||"Memo";case R:_=w._payload,w=w._init;try{return e(w(_))}catch{}}return null}function t(w){return""+w}function n(w){try{t(w);var _=!1}catch{_=!0}if(_){_=console;var F=_.error,j=typeof Symbol=="function"&&Symbol.toStringTag&&w[Symbol.toStringTag]||w.constructor.name||"Object";return F.call(_,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",j),t(w)}}function r(w){if(w===m)return"<>";if(typeof w=="object"&&w!==null&&w.$$typeof===R)return"<...>";try{var _=e(w);return _?"<"+_+">":"<...>"}catch{return"<...>"}}function o(){var w=U.A;return w===null?null:w.getOwner()}function s(){return Error("react-stack-top-frame")}function i(w){if(H.call(w,"key")){var _=Object.getOwnPropertyDescriptor(w,"key").get;if(_&&_.isReactWarning)return!1}return w.key!==void 0}function a(w,_){function F(){G||(G=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",_))}F.isReactWarning=!0,Object.defineProperty(w,"key",{get:F,configurable:!0})}function l(){var w=e(this.type);return D[w]||(D[w]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),w=this.props.ref,w!==void 0?w:null}function u(w,_,F,j,V,J,Ee,$){return F=J.ref,w={$$typeof:h,type:w,key:_,props:J,_owner:V},(F!==void 0?F:null)!==null?Object.defineProperty(w,"ref",{enumerable:!1,get:l}):Object.defineProperty(w,"ref",{enumerable:!1,value:null}),w._store={},Object.defineProperty(w._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(w,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(w,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:Ee}),Object.defineProperty(w,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:$}),Object.freeze&&(Object.freeze(w.props),Object.freeze(w)),w}function d(w,_,F,j,V,J,Ee,$){var X=_.children;if(X!==void 0)if(j)if(B(X)){for(j=0;j<X.length;j++)f(X[j]);Object.freeze&&Object.freeze(X)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else f(X);if(H.call(_,"key")){X=e(w);var ne=Object.keys(_).filter(function(Oe){return Oe!=="key"});j=0<ne.length?"{key: someKey, "+ne.join(": ..., ")+": ...}":"{key: someKey}",Y[X+j]||(ne=0<ne.length?"{"+ne.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
let props = %s;
<%s {...props} />
React keys must be passed directly to JSX without using spread:
let props = %s;
<%s key={someKey} {...props} />`,j,X,ne,X),Y[X+j]=!0)}if(X=null,F!==void 0&&(n(F),X=""+F),i(_)&&(n(_.key),X=""+_.key),"key"in _){F={};for(var pe in _)pe!=="key"&&(F[pe]=_[pe])}else F=_;return X&&a(F,typeof w=="function"?w.displayName||w.name||"Unknown":w),u(w,X,J,V,o(),F,Ee,$)}function f(w){typeof w=="object"&&w!==null&&w.$$typeof===h&&w._store&&(w._store.validated=1)}var g=q,h=Symbol.for("react.transitional.element"),v=Symbol.for("react.portal"),m=Symbol.for("react.fragment"),b=Symbol.for("react.strict_mode"),x=Symbol.for("react.profiler"),y=Symbol.for("react.consumer"),E=Symbol.for("react.context"),S=Symbol.for("react.forward_ref"),k=Symbol.for("react.suspense"),T=Symbol.for("react.suspense_list"),O=Symbol.for("react.memo"),R=Symbol.for("react.lazy"),M=Symbol.for("react.activity"),z=Symbol.for("react.client.reference"),U=g.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,H=Object.prototype.hasOwnProperty,B=Array.isArray,I=console.createTask?console.createTask:function(){return null};g={react_stack_bottom_frame:function(w){return w()}};var G,D={},L=g.react_stack_bottom_frame.bind(g,s)(),C=I(r(s)),Y={};Ue.Fragment=m,Ue.jsx=function(w,_,F,j,V){var J=1e4>U.recentlyCreatedOwnerStacks++;return d(w,_,F,!1,j,V,J?Error("react-stack-top-frame"):L,J?I(r(w)):C)},Ue.jsxs=function(w,_,F,j,V){var J=1e4>U.recentlyCreatedOwnerStacks++;return d(w,_,F,!0,j,V,J?Error("react-stack-top-frame"):L,J?I(r(w)):C)}})()),Ue}var Rn;function $o(){return Rn||(Rn=1,process.env.NODE_ENV==="production"?et.exports=Io():et.exports=Fo()),et.exports}var p=$o();function An(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Pn(...e){return t=>{let n=!1;const r=e.map(o=>{const s=An(o,t);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let o=0;o<r.length;o++){const s=r[o];typeof s=="function"?s():An(e[o],null)}}}}function oe(...e){return c.useCallback(Pn(...e),e)}function Ot(e){const t=zo(e),n=c.forwardRef((r,o)=>{const{children:s,...i}=r,a=c.Children.toArray(s),l=a.find(Bo);if(l){const u=l.props.children,d=a.map(f=>f===l?c.Children.count(u)>1?c.Children.only(null):c.isValidElement(u)?u.props.children:null:f);return p.jsx(t,{...i,ref:o,children:c.isValidElement(u)?c.cloneElement(u,void 0,d):null})}return p.jsx(t,{...i,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}var tt=Ot("Slot");function zo(e){const t=c.forwardRef((n,r)=>{const{children:o,...s}=n;if(c.isValidElement(o)){const i=Ho(o),a=Vo(s,o.props);return o.type!==c.Fragment&&(a.ref=r?Pn(r,i):i),c.cloneElement(o,a)}return c.Children.count(o)>1?c.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var On=Symbol("radix.slottable");function Wo(e){const t=({children:n})=>p.jsx(p.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=On,t}function Bo(e){return c.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===On}function Vo(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...a)=>{const l=s(...a);return o(...a),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function Ho(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function Tn(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=Tn(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function be(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Tn(e))&&(r&&(r+=" "),r+=t);return r}const _n=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Nn=be,Tt=(e,t)=>n=>{var r;if(t?.variants==null)return Nn(e,n?.class,n?.className);const{variants:o,defaultVariants:s}=t,i=Object.keys(o).map(u=>{const d=n?.[u],f=s?.[u];if(d===null)return null;const g=_n(d)||_n(f);return o[u][g]}),a=n&&Object.entries(n).reduce((u,d)=>{let[f,g]=d;return g===void 0||(u[f]=g),u},{}),l=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,d)=>{let{class:f,className:g,...h}=d;return Object.entries(h).every(v=>{let[m,b]=v;return Array.isArray(b)?b.includes({...s,...a}[m]):{...s,...a}[m]===b})?[...u,f,g]:u},[]);return Nn(e,i,l,n?.class,n?.className)};/**
* @license lucide-react v0.542.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Go=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Uo=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,r)=>r?r.toUpperCase():n.toLowerCase()),jn=e=>{const t=Uo(e);return t.charAt(0).toUpperCase()+t.slice(1)},Mn=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim(),Yo=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};/**
* @license lucide-react v0.542.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/var Xo={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.542.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const qo=q.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:s,iconNode:i,...a},l)=>q.createElement("svg",{ref:l,...Xo,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:Mn("lucide",o),...!s&&!Yo(a)&&{"aria-hidden":"true"},...a},[...i.map(([u,d])=>q.createElement(u,d)),...Array.isArray(s)?s:[s]]));/**
* @license lucide-react v0.542.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Te=(e,t)=>{const n=q.forwardRef(({className:r,...o},s)=>q.createElement(qo,{ref:s,iconNode:t,className:Mn(`lucide-${Go(jn(e))}`,`lucide-${e}`,r),...o}));return n.displayName=jn(e),n};/**
* @license lucide-react v0.542.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Ko=Te("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
* @license lucide-react v0.542.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Zo=Te("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
* @license lucide-react v0.542.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Dn=Te("circle-dot",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}]]);/**
* @license lucide-react v0.542.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Jo=Te("log-out",[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]]);/**
* @license lucide-react v0.542.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Qo=Te("panel-left",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]]);/**
* @license lucide-react v0.542.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const es=Te("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),_t=768;function ts(){const[e,t]=c.useState(void 0);return c.useEffect(()=>{const n=window.matchMedia(`(max-width: ${_t-1}px)`),r=()=>{t(window.innerWidth<_t)};return n.addEventListener("change",r),t(window.innerWidth<_t),()=>n.removeEventListener("change",r)},[]),!!e}const Nt="-",ns=e=>{const t=os(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:i=>{const a=i.split(Nt);return a[0]===""&&a.length!==1&&a.shift(),Ln(a,t)||rs(i)},getConflictingClassGroupIds:(i,a)=>{const l=n[i]||[];return a&&r[i]?[...l,...r[i]]:l}}},Ln=(e,t)=>{if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?Ln(e.slice(1),r):void 0;if(o)return o;if(t.validators.length===0)return;const s=e.join(Nt);return t.validators.find(({validator:i})=>i(s))?.classGroupId},In=/^\[(.+)\]$/,rs=e=>{if(In.test(e)){const t=In.exec(e)[1],n=t?.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},os=e=>{const{theme:t,classGroups:n}=e,r={nextPart:new Map,validators:[]};for(const o in n)jt(n[o],r,o,t);return r},jt=(e,t,n,r)=>{e.forEach(o=>{if(typeof o=="string"){const s=o===""?t:Fn(t,o);s.classGroupId=n;return}if(typeof o=="function"){if(ss(o)){jt(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([s,i])=>{jt(i,Fn(t,s),n,r)})})},Fn=(e,t)=>{let n=e;return t.split(Nt).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},ss=e=>e.isThemeGetter,is=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(s,i)=>{n.set(s,i),t++,t>e&&(t=0,r=n,n=new Map)};return{get(s){let i=n.get(s);if(i!==void 0)return i;if((i=r.get(s))!==void 0)return o(s,i),i},set(s,i){n.has(s)?n.set(s,i):o(s,i)}}},Mt="!",Dt=":",as=Dt.length,ls=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=o=>{const s=[];let i=0,a=0,l=0,u;for(let v=0;v<o.length;v++){let m=o[v];if(i===0&&a===0){if(m===Dt){s.push(o.slice(l,v)),l=v+as;continue}if(m==="/"){u=v;continue}}m==="["?i++:m==="]"?i--:m==="("?a++:m===")"&&a--}const d=s.length===0?o:o.substring(l),f=cs(d),g=f!==d,h=u&&u>l?u-l:void 0;return{modifiers:s,hasImportantModifier:g,baseClassName:f,maybePostfixModifierPosition:h}};if(t){const o=t+Dt,s=r;r=i=>i.startsWith(o)?s(i.substring(o.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:i,maybePostfixModifierPosition:void 0}}if(n){const o=r;r=s=>n({className:s,parseClassName:o})}return r},cs=e=>e.endsWith(Mt)?e.substring(0,e.length-1):e.startsWith(Mt)?e.substring(1):e,us=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(r=>[r,!0]));return r=>{if(r.length<=1)return r;const o=[];let s=[];return r.forEach(i=>{i[0]==="["||t[i]?(o.push(...s.sort(),i),s=[]):s.push(i)}),o.push(...s.sort()),o}},ds=e=>({cache:is(e.cacheSize),parseClassName:ls(e),sortModifiers:us(e),...ns(e)}),fs=/\s+/,ps=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o,sortModifiers:s}=t,i=[],a=e.trim().split(fs);let l="";for(let u=a.length-1;u>=0;u-=1){const d=a[u],{isExternal:f,modifiers:g,hasImportantModifier:h,baseClassName:v,maybePostfixModifierPosition:m}=n(d);if(f){l=d+(l.length>0?" "+l:l);continue}let b=!!m,x=r(b?v.substring(0,m):v);if(!x){if(!b){l=d+(l.length>0?" "+l:l);continue}if(x=r(v),!x){l=d+(l.length>0?" "+l:l);continue}b=!1}const y=s(g).join(":"),E=h?y+Mt:y,S=E+x;if(i.includes(S))continue;i.push(S);const k=o(x,b);for(let T=0;T<k.length;++T){const O=k[T];i.push(E+O)}l=d+(l.length>0?" "+l:l)}return l};function ms(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=$n(t))&&(r&&(r+=" "),r+=n);return r}const $n=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=$n(e[r]))&&(n&&(n+=" "),n+=t);return n};function hs(e,...t){let n,r,o,s=i;function i(l){const u=t.reduce((d,f)=>f(d),e());return n=ds(u),r=n.cache.get,o=n.cache.set,s=a,a(l)}function a(l){const u=r(l);if(u)return u;const d=ps(l,n);return o(l,d),d}return function(){return s(ms.apply(null,arguments))}}const K=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},zn=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Wn=/^\((?:(\w[\w-]*):)?(.+)\)$/i,gs=/^\d+\/\d+$/,vs=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,bs=/\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$/,xs=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,ys=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,ws=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,_e=e=>gs.test(e),N=e=>!!e&&!Number.isNaN(Number(e)),xe=e=>!!e&&Number.isInteger(Number(e)),Lt=e=>e.endsWith("%")&&N(e.slice(0,-1)),me=e=>vs.test(e),Cs=()=>!0,Es=e=>bs.test(e)&&!xs.test(e),Bn=()=>!1,Ss=e=>ys.test(e),ks=e=>ws.test(e),Rs=e=>!A(e)&&!P(e),As=e=>Ne(e,Yn,Bn),A=e=>zn.test(e),Se=e=>Ne(e,Xn,Es),It=e=>Ne(e,Ns,N),Vn=e=>Ne(e,Gn,Bn),Ps=e=>Ne(e,Un,ks),nt=e=>Ne(e,qn,Ss),P=e=>Wn.test(e),Ye=e=>je(e,Xn),Os=e=>je(e,js),Hn=e=>je(e,Gn),Ts=e=>je(e,Yn),_s=e=>je(e,Un),rt=e=>je(e,qn,!0),Ne=(e,t,n)=>{const r=zn.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},je=(e,t,n=!1)=>{const r=Wn.exec(e);return r?r[1]?t(r[1]):n:!1},Gn=e=>e==="position"||e==="percentage",Un=e=>e==="image"||e==="url",Yn=e=>e==="length"||e==="size"||e==="bg-size",Xn=e=>e==="length",Ns=e=>e==="number",js=e=>e==="family-name",qn=e=>e==="shadow",Ms=hs(()=>{const e=K("color"),t=K("font"),n=K("text"),r=K("font-weight"),o=K("tracking"),s=K("leading"),i=K("breakpoint"),a=K("container"),l=K("spacing"),u=K("radius"),d=K("shadow"),f=K("inset-shadow"),g=K("text-shadow"),h=K("drop-shadow"),v=K("blur"),m=K("perspective"),b=K("aspect"),x=K("ease"),y=K("animate"),E=()=>["auto","avoid","all","avoid-page","page","left","right","column"],S=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],k=()=>[...S(),P,A],T=()=>["auto","hidden","clip","visible","scroll"],O=()=>["auto","contain","none"],R=()=>[P,A,l],M=()=>[_e,"full","auto",...R()],z=()=>[xe,"none","subgrid",P,A],U=()=>["auto",{span:["full",xe,P,A]},xe,P,A],H=()=>[xe,"auto",P,A],B=()=>["auto","min","max","fr",P,A],I=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],G=()=>["start","end","center","stretch","center-safe","end-safe"],D=()=>["auto",...R()],L=()=>[_e,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...R()],C=()=>[e,P,A],Y=()=>[...S(),Hn,Vn,{position:[P,A]}],w=()=>["no-repeat",{repeat:["","x","y","space","round"]}],_=()=>["auto","cover","contain",Ts,As,{size:[P,A]}],F=()=>[Lt,Ye,Se],j=()=>["","none","full",u,P,A],V=()=>["",N,Ye,Se],J=()=>["solid","dashed","dotted","double"],Ee=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],$=()=>[N,Lt,Hn,Vn],X=()=>["","none",v,P,A],ne=()=>["none",N,P,A],pe=()=>["none",N,P,A],Oe=()=>[N,P,A],He=()=>[_e,"full",...R()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[me],breakpoint:[me],color:[Cs],container:[me],"drop-shadow":[me],ease:["in","out","in-out"],font:[Rs],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[me],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[me],shadow:[me],spacing:["px",N],text:[me],"text-shadow":[me],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",_e,A,P,b]}],container:["container"],columns:[{columns:[N,A,P,a]}],"break-after":[{"break-after":E()}],"break-before":[{"break-before":E()}],"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:T()}],"overflow-x":[{"overflow-x":T()}],"overflow-y":[{"overflow-y":T()}],overscroll:[{overscroll:O()}],"overscroll-x":[{"overscroll-x":O()}],"overscroll-y":[{"overscroll-y":O()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:M()}],"inset-x":[{"inset-x":M()}],"inset-y":[{"inset-y":M()}],start:[{start:M()}],end:[{end:M()}],top:[{top:M()}],right:[{right:M()}],bottom:[{bottom:M()}],left:[{left:M()}],visibility:["visible","invisible","collapse"],z:[{z:[xe,"auto",P,A]}],basis:[{basis:[_e,"full","auto",a,...R()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[N,_e,"auto","initial","none",A]}],grow:[{grow:["",N,P,A]}],shrink:[{shrink:["",N,P,A]}],order:[{order:[xe,"first","last","none",P,A]}],"grid-cols":[{"grid-cols":z()}],"col-start-end":[{col:U()}],"col-start":[{"col-start":H()}],"col-end":[{"col-end":H()}],"grid-rows":[{"grid-rows":z()}],"row-start-end":[{row:U()}],"row-start":[{"row-start":H()}],"row-end":[{"row-end":H()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":B()}],"auto-rows":[{"auto-rows":B()}],gap:[{gap:R()}],"gap-x":[{"gap-x":R()}],"gap-y":[{"gap-y":R()}],"justify-content":[{justify:[...I(),"normal"]}],"justify-items":[{"justify-items":[...G(),"normal"]}],"justify-self":[{"justify-self":["auto",...G()]}],"align-content":[{content:["normal",...I()]}],"align-items":[{items:[...G(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...G(),{baseline:["","last"]}]}],"place-content":[{"place-content":I()}],"place-items":[{"place-items":[...G(),"baseline"]}],"place-self":[{"place-self":["auto",...G()]}],p:[{p:R()}],px:[{px:R()}],py:[{py:R()}],ps:[{ps:R()}],pe:[{pe:R()}],pt:[{pt:R()}],pr:[{pr:R()}],pb:[{pb:R()}],pl:[{pl:R()}],m:[{m:D()}],mx:[{mx:D()}],my:[{my:D()}],ms:[{ms:D()}],me:[{me:D()}],mt:[{mt:D()}],mr:[{mr:D()}],mb:[{mb:D()}],ml:[{ml:D()}],"space-x":[{"space-x":R()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":R()}],"space-y-reverse":["space-y-reverse"],size:[{size:L()}],w:[{w:[a,"screen",...L()]}],"min-w":[{"min-w":[a,"screen","none",...L()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[i]},...L()]}],h:[{h:["screen","lh",...L()]}],"min-h":[{"min-h":["screen","lh","none",...L()]}],"max-h":[{"max-h":["screen","lh",...L()]}],"font-size":[{text:["base",n,Ye,Se]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,P,It]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Lt,A]}],"font-family":[{font:[Os,A,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,P,A]}],"line-clamp":[{"line-clamp":[N,"none",P,It]}],leading:[{leading:[s,...R()]}],"list-image":[{"list-image":["none",P,A]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",P,A]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:C()}],"text-color":[{text:C()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...J(),"wavy"]}],"text-decoration-thickness":[{decoration:[N,"from-font","auto",P,Se]}],"text-decoration-color":[{decoration:C()}],"underline-offset":[{"underline-offset":[N,"auto",P,A]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:R()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",P,A]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",P,A]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:Y()}],"bg-repeat":[{bg:w()}],"bg-size":[{bg:_()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},xe,P,A],radial:["",P,A],conic:[xe,P,A]},_s,Ps]}],"bg-color":[{bg:C()}],"gradient-from-pos":[{from:F()}],"gradient-via-pos":[{via:F()}],"gradient-to-pos":[{to:F()}],"gradient-from":[{from:C()}],"gradient-via":[{via:C()}],"gradient-to":[{to:C()}],rounded:[{rounded:j()}],"rounded-s":[{"rounded-s":j()}],"rounded-e":[{"rounded-e":j()}],"rounded-t":[{"rounded-t":j()}],"rounded-r":[{"rounded-r":j()}],"rounded-b":[{"rounded-b":j()}],"rounded-l":[{"rounded-l":j()}],"rounded-ss":[{"rounded-ss":j()}],"rounded-se":[{"rounded-se":j()}],"rounded-ee":[{"rounded-ee":j()}],"rounded-es":[{"rounded-es":j()}],"rounded-tl":[{"rounded-tl":j()}],"rounded-tr":[{"rounded-tr":j()}],"rounded-br":[{"rounded-br":j()}],"rounded-bl":[{"rounded-bl":j()}],"border-w":[{border:V()}],"border-w-x":[{"border-x":V()}],"border-w-y":[{"border-y":V()}],"border-w-s":[{"border-s":V()}],"border-w-e":[{"border-e":V()}],"border-w-t":[{"border-t":V()}],"border-w-r":[{"border-r":V()}],"border-w-b":[{"border-b":V()}],"border-w-l":[{"border-l":V()}],"divide-x":[{"divide-x":V()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":V()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...J(),"hidden","none"]}],"divide-style":[{divide:[...J(),"hidden","none"]}],"border-color":[{border:C()}],"border-color-x":[{"border-x":C()}],"border-color-y":[{"border-y":C()}],"border-color-s":[{"border-s":C()}],"border-color-e":[{"border-e":C()}],"border-color-t":[{"border-t":C()}],"border-color-r":[{"border-r":C()}],"border-color-b":[{"border-b":C()}],"border-color-l":[{"border-l":C()}],"divide-color":[{divide:C()}],"outline-style":[{outline:[...J(),"none","hidden"]}],"outline-offset":[{"outline-offset":[N,P,A]}],"outline-w":[{outline:["",N,Ye,Se]}],"outline-color":[{outline:C()}],shadow:[{shadow:["","none",d,rt,nt]}],"shadow-color":[{shadow:C()}],"inset-shadow":[{"inset-shadow":["none",f,rt,nt]}],"inset-shadow-color":[{"inset-shadow":C()}],"ring-w":[{ring:V()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:C()}],"ring-offset-w":[{"ring-offset":[N,Se]}],"ring-offset-color":[{"ring-offset":C()}],"inset-ring-w":[{"inset-ring":V()}],"inset-ring-color":[{"inset-ring":C()}],"text-shadow":[{"text-shadow":["none",g,rt,nt]}],"text-shadow-color":[{"text-shadow":C()}],opacity:[{opacity:[N,P,A]}],"mix-blend":[{"mix-blend":[...Ee(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Ee()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[N]}],"mask-image-linear-from-pos":[{"mask-linear-from":$()}],"mask-image-linear-to-pos":[{"mask-linear-to":$()}],"mask-image-linear-from-color":[{"mask-linear-from":C()}],"mask-image-linear-to-color":[{"mask-linear-to":C()}],"mask-image-t-from-pos":[{"mask-t-from":$()}],"mask-image-t-to-pos":[{"mask-t-to":$()}],"mask-image-t-from-color":[{"mask-t-from":C()}],"mask-image-t-to-color":[{"mask-t-to":C()}],"mask-image-r-from-pos":[{"mask-r-from":$()}],"mask-image-r-to-pos":[{"mask-r-to":$()}],"mask-image-r-from-color":[{"mask-r-from":C()}],"mask-image-r-to-color":[{"mask-r-to":C()}],"mask-image-b-from-pos":[{"mask-b-from":$()}],"mask-image-b-to-pos":[{"mask-b-to":$()}],"mask-image-b-from-color":[{"mask-b-from":C()}],"mask-image-b-to-color":[{"mask-b-to":C()}],"mask-image-l-from-pos":[{"mask-l-from":$()}],"mask-image-l-to-pos":[{"mask-l-to":$()}],"mask-image-l-from-color":[{"mask-l-from":C()}],"mask-image-l-to-color":[{"mask-l-to":C()}],"mask-image-x-from-pos":[{"mask-x-from":$()}],"mask-image-x-to-pos":[{"mask-x-to":$()}],"mask-image-x-from-color":[{"mask-x-from":C()}],"mask-image-x-to-color":[{"mask-x-to":C()}],"mask-image-y-from-pos":[{"mask-y-from":$()}],"mask-image-y-to-pos":[{"mask-y-to":$()}],"mask-image-y-from-color":[{"mask-y-from":C()}],"mask-image-y-to-color":[{"mask-y-to":C()}],"mask-image-radial":[{"mask-radial":[P,A]}],"mask-image-radial-from-pos":[{"mask-radial-from":$()}],"mask-image-radial-to-pos":[{"mask-radial-to":$()}],"mask-image-radial-from-color":[{"mask-radial-from":C()}],"mask-image-radial-to-color":[{"mask-radial-to":C()}],"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":S()}],"mask-image-conic-pos":[{"mask-conic":[N]}],"mask-image-conic-from-pos":[{"mask-conic-from":$()}],"mask-image-conic-to-pos":[{"mask-conic-to":$()}],"mask-image-conic-from-color":[{"mask-conic-from":C()}],"mask-image-conic-to-color":[{"mask-conic-to":C()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:Y()}],"mask-repeat":[{mask:w()}],"mask-size":[{mask:_()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",P,A]}],filter:[{filter:["","none",P,A]}],blur:[{blur:X()}],brightness:[{brightness:[N,P,A]}],contrast:[{contrast:[N,P,A]}],"drop-shadow":[{"drop-shadow":["","none",h,rt,nt]}],"drop-shadow-color":[{"drop-shadow":C()}],grayscale:[{grayscale:["",N,P,A]}],"hue-rotate":[{"hue-rotate":[N,P,A]}],invert:[{invert:["",N,P,A]}],saturate:[{saturate:[N,P,A]}],sepia:[{sepia:["",N,P,A]}],"backdrop-filter":[{"backdrop-filter":["","none",P,A]}],"backdrop-blur":[{"backdrop-blur":X()}],"backdrop-brightness":[{"backdrop-brightness":[N,P,A]}],"backdrop-contrast":[{"backdrop-contrast":[N,P,A]}],"backdrop-grayscale":[{"backdrop-grayscale":["",N,P,A]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[N,P,A]}],"backdrop-invert":[{"backdrop-invert":["",N,P,A]}],"backdrop-opacity":[{"backdrop-opacity":[N,P,A]}],"backdrop-saturate":[{"backdrop-saturate":[N,P,A]}],"backdrop-sepia":[{"backdrop-sepia":["",N,P,A]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":R()}],"border-spacing-x":[{"border-spacing-x":R()}],"border-spacing-y":[{"border-spacing-y":R()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",P,A]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[N,"initial",P,A]}],ease:[{ease:["linear","initial",x,P,A]}],delay:[{delay:[N,P,A]}],animate:[{animate:["none",y,P,A]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[m,P,A]}],"perspective-origin":[{"perspective-origin":k()}],rotate:[{rotate:ne()}],"rotate-x":[{"rotate-x":ne()}],"rotate-y":[{"rotate-y":ne()}],"rotate-z":[{"rotate-z":ne()}],scale:[{scale:pe()}],"scale-x":[{"scale-x":pe()}],"scale-y":[{"scale-y":pe()}],"scale-z":[{"scale-z":pe()}],"scale-3d":["scale-3d"],skew:[{skew:Oe()}],"skew-x":[{"skew-x":Oe()}],"skew-y":[{"skew-y":Oe()}],transform:[{transform:[P,A,"","none","gpu","cpu"]}],"transform-origin":[{origin:k()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:He()}],"translate-x":[{"translate-x":He()}],"translate-y":[{"translate-y":He()}],"translate-z":[{"translate-z":He()}],"translate-none":["translate-none"],accent:[{accent:C()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:C()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",P,A]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":R()}],"scroll-mx":[{"scroll-mx":R()}],"scroll-my":[{"scroll-my":R()}],"scroll-ms":[{"scroll-ms":R()}],"scroll-me":[{"scroll-me":R()}],"scroll-mt":[{"scroll-mt":R()}],"scroll-mr":[{"scroll-mr":R()}],"scroll-mb":[{"scroll-mb":R()}],"scroll-ml":[{"scroll-ml":R()}],"scroll-p":[{"scroll-p":R()}],"scroll-px":[{"scroll-px":R()}],"scroll-py":[{"scroll-py":R()}],"scroll-ps":[{"scroll-ps":R()}],"scroll-pe":[{"scroll-pe":R()}],"scroll-pt":[{"scroll-pt":R()}],"scroll-pr":[{"scroll-pr":R()}],"scroll-pb":[{"scroll-pb":R()}],"scroll-pl":[{"scroll-pl":R()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",P,A]}],fill:[{fill:["none",...C()]}],"stroke-w":[{stroke:[N,Ye,Se,It]}],stroke:[{stroke:["none",...C()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}});function W(...e){return Ms(be(e))}const Ds=Tt("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",destructive:"bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}});function Ls({className:e,variant:t,size:n,asChild:r=!1,...o}){const s=r?tt:"button";return p.jsx(s,{"data-slot":"button",className:W(Ds({variant:t,size:n,className:e})),...o})}var Is=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Z=Is.reduce((e,t)=>{const n=Ot(`Primitive.${t}`),r=c.forwardRef((o,s)=>{const{asChild:i,...a}=o,l=i?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),p.jsx(l,{...a,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Fs(e,t){e&&En.flushSync(()=>e.dispatchEvent(t))}function Q(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e?.(o),n===!1||!o.defaultPrevented)return t?.(o)}}function $s(e,t){const n=c.createContext(t),r=s=>{const{children:i,...a}=s,l=c.useMemo(()=>a,Object.values(a));return p.jsx(n.Provider,{value:l,children:i})};r.displayName=e+"Provider";function o(s){const i=c.useContext(n);if(i)return i;if(t!==void 0)return t;throw new Error(`\`${s}\` must be used within \`${e}\``)}return[r,o]}function ot(e,t=[]){let n=[];function r(s,i){const a=c.createContext(i),l=n.length;n=[...n,i];const u=f=>{const{scope:g,children:h,...v}=f,m=g?.[e]?.[l]||a,b=c.useMemo(()=>v,Object.values(v));return p.jsx(m.Provider,{value:b,children:h})};u.displayName=s+"Provider";function d(f,g){const h=g?.[e]?.[l]||a,v=c.useContext(h);if(v)return v;if(i!==void 0)return i;throw new Error(`\`${f}\` must be used within \`${s}\``)}return[u,d]}const o=()=>{const s=n.map(i=>c.createContext(i));return function(a){const l=a?.[e]||s;return c.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return o.scopeName=e,[r,zs(o,...t)]}function zs(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(s){const i=r.reduce((a,{useScope:l,scopeName:u})=>{const f=l(s)[`__scope${u}`];return{...a,...f}},{});return c.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}var he=globalThis?.document?c.useLayoutEffect:()=>{},Ws=c[" useId ".trim().toString()]||(()=>{}),Bs=0;function Xe(e){const[t,n]=c.useState(Ws());return he(()=>{n(r=>r??String(Bs++))},[e]),e||(t?`radix-${t}`:"")}var Vs=c[" useInsertionEffect ".trim().toString()]||he;function Ft({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,s,i]=Hs({defaultProp:t,onChange:n}),a=e!==void 0,l=a?e:o;{const d=c.useRef(e!==void 0);c.useEffect(()=>{const f=d.current;f!==a&&console.warn(`${r} is changing from ${f?"controlled":"uncontrolled"} to ${a?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),d.current=a},[a,r])}const u=c.useCallback(d=>{if(a){const f=Gs(d)?d(e):d;f!==e&&i.current?.(f)}else s(d)},[a,e,s,i]);return[l,u]}function Hs({defaultProp:e,onChange:t}){const[n,r]=c.useState(e),o=c.useRef(n),s=c.useRef(t);return Vs(()=>{s.current=t},[t]),c.useEffect(()=>{o.current!==n&&(s.current?.(n),o.current=n)},[n,o]),[n,r,s]}function Gs(e){return typeof e=="function"}function Me(e){const t=c.useRef(e);return c.useEffect(()=>{t.current=e}),c.useMemo(()=>(...n)=>t.current?.(...n),[])}function Us(e,t=globalThis?.document){const n=Me(e);c.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var Ys="DismissableLayer",$t="dismissableLayer.update",Xs="dismissableLayer.pointerDownOutside",qs="dismissableLayer.focusOutside",Kn,Zn=c.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),zt=c.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:i,onDismiss:a,...l}=e,u=c.useContext(Zn),[d,f]=c.useState(null),g=d?.ownerDocument??globalThis?.document,[,h]=c.useState({}),v=oe(t,O=>f(O)),m=Array.from(u.layers),[b]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),x=m.indexOf(b),y=d?m.indexOf(d):-1,E=u.layersWithOutsidePointerEventsDisabled.size>0,S=y>=x,k=Js(O=>{const R=O.target,M=[...u.branches].some(z=>z.contains(R));!S||M||(o?.(O),i?.(O),O.defaultPrevented||a?.())},g),T=Qs(O=>{const R=O.target;[...u.branches].some(z=>z.contains(R))||(s?.(O),i?.(O),O.defaultPrevented||a?.())},g);return Us(O=>{y===u.layers.size-1&&(r?.(O),!O.defaultPrevented&&a&&(O.preventDefault(),a()))},g),c.useEffect(()=>{if(d)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(Kn=g.body.style.pointerEvents,g.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),Jn(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(g.body.style.pointerEvents=Kn)}},[d,g,n,u]),c.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),Jn())},[d,u]),c.useEffect(()=>{const O=()=>h({});return document.addEventListener($t,O),()=>document.removeEventListener($t,O)},[]),p.jsx(Z.div,{...l,ref:v,style:{pointerEvents:E?S?"auto":"none":void 0,...e.style},onFocusCapture:Q(e.onFocusCapture,T.onFocusCapture),onBlurCapture:Q(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:Q(e.onPointerDownCapture,k.onPointerDownCapture)})});zt.displayName=Ys;var Ks="DismissableLayerBranch",Zs=c.forwardRef((e,t)=>{const n=c.useContext(Zn),r=c.useRef(null),o=oe(t,r);return c.useEffect(()=>{const s=r.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),p.jsx(Z.div,{...e,ref:o})});Zs.displayName=Ks;function Js(e,t=globalThis?.document){const n=Me(e),r=c.useRef(!1),o=c.useRef(()=>{});return c.useEffect(()=>{const s=a=>{if(a.target&&!r.current){let l=function(){Qn(Xs,n,u,{discrete:!0})};const u={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=l,t.addEventListener("click",o.current,{once:!0})):l()}else t.removeEventListener("click",o.current);r.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",s),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function Qs(e,t=globalThis?.document){const n=Me(e),r=c.useRef(!1);return c.useEffect(()=>{const o=s=>{s.target&&!r.current&&Qn(qs,n,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Jn(){const e=new CustomEvent($t);document.dispatchEvent(e)}function Qn(e,t,n,{discrete:r}){const o=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Fs(o,s):o.dispatchEvent(s)}var Wt="focusScope.autoFocusOnMount",Bt="focusScope.autoFocusOnUnmount",er={bubbles:!1,cancelable:!0},ei="FocusScope",tr=c.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:s,...i}=e,[a,l]=c.useState(null),u=Me(o),d=Me(s),f=c.useRef(null),g=oe(t,m=>l(m)),h=c.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;c.useEffect(()=>{if(r){let m=function(E){if(h.paused||!a)return;const S=E.target;a.contains(S)?f.current=S:ye(f.current,{select:!0})},b=function(E){if(h.paused||!a)return;const S=E.relatedTarget;S!==null&&(a.contains(S)||ye(f.current,{select:!0}))},x=function(E){if(document.activeElement===document.body)for(const k of E)k.removedNodes.length>0&&ye(a)};document.addEventListener("focusin",m),document.addEventListener("focusout",b);const y=new MutationObserver(x);return a&&y.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",m),document.removeEventListener("focusout",b),y.disconnect()}}},[r,a,h.paused]),c.useEffect(()=>{if(a){or.add(h);const m=document.activeElement;if(!a.contains(m)){const x=new CustomEvent(Wt,er);a.addEventListener(Wt,u),a.dispatchEvent(x),x.defaultPrevented||(ti(ii(nr(a)),{select:!0}),document.activeElement===m&&ye(a))}return()=>{a.removeEventListener(Wt,u),setTimeout(()=>{const x=new CustomEvent(Bt,er);a.addEventListener(Bt,d),a.dispatchEvent(x),x.defaultPrevented||ye(m??document.body,{select:!0}),a.removeEventListener(Bt,d),or.remove(h)},0)}}},[a,u,d,h]);const v=c.useCallback(m=>{if(!n&&!r||h.paused)return;const b=m.key==="Tab"&&!m.altKey&&!m.ctrlKey&&!m.metaKey,x=document.activeElement;if(b&&x){const y=m.currentTarget,[E,S]=ni(y);E&&S?!m.shiftKey&&x===S?(m.preventDefault(),n&&ye(E,{select:!0})):m.shiftKey&&x===E&&(m.preventDefault(),n&&ye(S,{select:!0})):x===y&&m.preventDefault()}},[n,r,h.paused]);return p.jsx(Z.div,{tabIndex:-1,...i,ref:g,onKeyDown:v})});tr.displayName=ei;function ti(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(ye(r,{select:t}),document.activeElement!==n)return}function ni(e){const t=nr(e),n=rr(t,e),r=rr(t.reverse(),e);return[n,r]}function nr(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function rr(e,t){for(const n of e)if(!ri(n,{upTo:t}))return n}function ri(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 oi(e){return e instanceof HTMLInputElement&&"select"in e}function ye(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&oi(e)&&t&&e.select()}}var or=si();function si(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=sr(e,t),e.unshift(t)},remove(t){e=sr(e,t),e[0]?.resume()}}}function sr(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function ii(e){return e.filter(t=>t.tagName!=="A")}var ai="Portal",Vt=c.forwardRef((e,t)=>{const{container:n,...r}=e,[o,s]=c.useState(!1);he(()=>s(!0),[]);const i=n||o&&globalThis?.document?.body;return i?wn.createPortal(p.jsx(Z.div,{...r,ref:t}),i):null});Vt.displayName=ai;function li(e,t){return c.useReducer((n,r)=>t[n][r]??n,e)}var ke=e=>{const{present:t,children:n}=e,r=ci(t),o=typeof n=="function"?n({present:r.isPresent}):c.Children.only(n),s=oe(r.ref,ui(o));return typeof n=="function"||r.isPresent?c.cloneElement(o,{ref:s}):null};ke.displayName="Presence";function ci(e){const[t,n]=c.useState(),r=c.useRef(null),o=c.useRef(e),s=c.useRef("none"),i=e?"mounted":"unmounted",[a,l]=li(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT: