@nayan-ui/react
Version:
Reusable Component Library for ReactJS.
80 lines • 374 kB
JavaScript
(function(q,A){typeof exports=="object"&&typeof module<"u"?A(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],A):(q=typeof globalThis<"u"?globalThis:q||self,A(q.Nayan={},q.React,q.ReactDOM))})(this,(function(q,A,Qr){"use strict";function vi(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 f=vi(A),Kr=vi(Qr);function ug(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var En={exports:{}},zt={};/**
* @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 hi;function dg(){if(hi)return zt;hi=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,o,a){var i=null;if(a!==void 0&&(i=""+a),o.key!==void 0&&(i=""+o.key),"key"in o){a={};for(var s in o)s!=="key"&&(a[s]=o[s])}else a=o;return o=a.ref,{$$typeof:e,type:r,key:i,ref:o!==void 0?o:null,props:a}}return zt.Fragment=t,zt.jsx=n,zt.jsxs=n,zt}var Ht={};/**
* @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 xi;function fg(){return xi||(xi=1,process.env.NODE_ENV!=="production"&&(function(){function e(P){if(P==null)return null;if(typeof P=="function")return P.$$typeof===M?null:P.displayName||P.name||null;if(typeof P=="string")return P;switch(P){case g:return"Fragment";case C:return"Profiler";case b:return"StrictMode";case I:return"Suspense";case E:return"SuspenseList";case D:return"Activity"}if(typeof P=="object")switch(typeof P.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),P.$$typeof){case h:return"Portal";case x:return(P.displayName||"Context")+".Provider";case w:return(P._context.displayName||"Context")+".Consumer";case y:var W=P.render;return P=P.displayName,P||(P=W.displayName||W.name||"",P=P!==""?"ForwardRef("+P+")":"ForwardRef"),P;case S:return W=P.displayName||null,W!==null?W:e(P.type)||"Memo";case N:W=P._payload,P=P._init;try{return e(P(W))}catch{}}return null}function t(P){return""+P}function n(P){try{t(P);var W=!1}catch{W=!0}if(W){W=console;var X=W.error,z=typeof Symbol=="function"&&Symbol.toStringTag&&P[Symbol.toStringTag]||P.constructor.name||"Object";return X.call(W,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",z),t(P)}}function r(P){if(P===g)return"<>";if(typeof P=="object"&&P!==null&&P.$$typeof===N)return"<...>";try{var W=e(P);return W?"<"+W+">":"<...>"}catch{return"<...>"}}function o(){var P=T.A;return P===null?null:P.getOwner()}function a(){return Error("react-stack-top-frame")}function i(P){if(F.call(P,"key")){var W=Object.getOwnPropertyDescriptor(P,"key").get;if(W&&W.isReactWarning)return!1}return P.key!==void 0}function s(P,W){function X(){B||(B=!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)",W))}X.isReactWarning=!0,Object.defineProperty(P,"key",{get:X,configurable:!0})}function c(){var P=e(this.type);return k[P]||(k[P]=!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.")),P=this.props.ref,P!==void 0?P:null}function l(P,W,X,z,te,ae,ce,U){return X=ae.ref,P={$$typeof:v,type:P,key:W,props:ae,_owner:te},(X!==void 0?X:null)!==null?Object.defineProperty(P,"ref",{enumerable:!1,get:c}):Object.defineProperty(P,"ref",{enumerable:!1,value:null}),P._store={},Object.defineProperty(P._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(P,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(P,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:ce}),Object.defineProperty(P,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:U}),Object.freeze&&(Object.freeze(P.props),Object.freeze(P)),P}function u(P,W,X,z,te,ae,ce,U){var oe=W.children;if(oe!==void 0)if(z)if(Y(oe)){for(z=0;z<oe.length;z++)d(oe[z]);Object.freeze&&Object.freeze(oe)}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 d(oe);if(F.call(W,"key")){oe=e(P);var fe=Object.keys(W).filter(function($){return $!=="key"});z=0<fe.length?"{key: someKey, "+fe.join(": ..., ")+": ...}":"{key: someKey}",G[oe+z]||(fe=0<fe.length?"{"+fe.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} />`,z,oe,fe,oe),G[oe+z]=!0)}if(oe=null,X!==void 0&&(n(X),oe=""+X),i(W)&&(n(W.key),oe=""+W.key),"key"in W){X={};for(var Ie in W)Ie!=="key"&&(X[Ie]=W[Ie])}else X=W;return oe&&s(X,typeof P=="function"?P.displayName||P.name||"Unknown":P),l(P,oe,ae,te,o(),X,ce,U)}function d(P){typeof P=="object"&&P!==null&&P.$$typeof===v&&P._store&&(P._store.validated=1)}var m=A,v=Symbol.for("react.transitional.element"),h=Symbol.for("react.portal"),g=Symbol.for("react.fragment"),b=Symbol.for("react.strict_mode"),C=Symbol.for("react.profiler"),w=Symbol.for("react.consumer"),x=Symbol.for("react.context"),y=Symbol.for("react.forward_ref"),I=Symbol.for("react.suspense"),E=Symbol.for("react.suspense_list"),S=Symbol.for("react.memo"),N=Symbol.for("react.lazy"),D=Symbol.for("react.activity"),M=Symbol.for("react.client.reference"),T=m.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,F=Object.prototype.hasOwnProperty,Y=Array.isArray,O=console.createTask?console.createTask:function(){return null};m={react_stack_bottom_frame:function(P){return P()}};var B,k={},L=m.react_stack_bottom_frame.bind(m,a)(),_=O(r(a)),G={};Ht.Fragment=g,Ht.jsx=function(P,W,X,z,te){var ae=1e4>T.recentlyCreatedOwnerStacks++;return u(P,W,X,!1,z,te,ae?Error("react-stack-top-frame"):L,ae?O(r(P)):_)},Ht.jsxs=function(P,W,X,z,te){var ae=1e4>T.recentlyCreatedOwnerStacks++;return u(P,W,X,!0,z,te,ae?Error("react-stack-top-frame"):L,ae?O(r(P)):_)}})()),Ht}var yi;function pg(){return yi||(yi=1,process.env.NODE_ENV==="production"?En.exports=dg():En.exports=fg()),En.exports}var p=pg();function Ci(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=Ci(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Ii(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Ci(e))&&(r&&(r+=" "),r+=t);return r}const qr="-",mg=e=>{const t=bg(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:i=>{const s=i.split(qr);return s[0]===""&&s.length!==1&&s.shift(),wi(s,t)||gg(i)},getConflictingClassGroupIds:(i,s)=>{const c=n[i]||[];return s&&r[i]?[...c,...r[i]]:c}}},wi=(e,t)=>{if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?wi(e.slice(1),r):void 0;if(o)return o;if(t.validators.length===0)return;const a=e.join(qr);return t.validators.find(({validator:i})=>i(a))?.classGroupId},Ai=/^\[(.+)\]$/,gg=e=>{if(Ai.test(e)){const t=Ai.exec(e)[1],n=t?.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},bg=e=>{const{theme:t,classGroups:n}=e,r={nextPart:new Map,validators:[]};for(const o in n)eo(n[o],r,o,t);return r},eo=(e,t,n,r)=>{e.forEach(o=>{if(typeof o=="string"){const a=o===""?t:Ei(t,o);a.classGroupId=n;return}if(typeof o=="function"){if(vg(o)){eo(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([a,i])=>{eo(i,Ei(t,a),n,r)})})},Ei=(e,t)=>{let n=e;return t.split(qr).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},vg=e=>e.isThemeGetter,hg=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(a,i)=>{n.set(a,i),t++,t>e&&(t=0,r=n,n=new Map)};return{get(a){let i=n.get(a);if(i!==void 0)return i;if((i=r.get(a))!==void 0)return o(a,i),i},set(a,i){n.has(a)?n.set(a,i):o(a,i)}}},to="!",no=":",xg=no.length,yg=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=o=>{const a=[];let i=0,s=0,c=0,l;for(let h=0;h<o.length;h++){let g=o[h];if(i===0&&s===0){if(g===no){a.push(o.slice(c,h)),c=h+xg;continue}if(g==="/"){l=h;continue}}g==="["?i++:g==="]"?i--:g==="("?s++:g===")"&&s--}const u=a.length===0?o:o.substring(c),d=Cg(u),m=d!==u,v=l&&l>c?l-c:void 0;return{modifiers:a,hasImportantModifier:m,baseClassName:d,maybePostfixModifierPosition:v}};if(t){const o=t+no,a=r;r=i=>i.startsWith(o)?a(i.substring(o.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:i,maybePostfixModifierPosition:void 0}}if(n){const o=r;r=a=>n({className:a,parseClassName:o})}return r},Cg=e=>e.endsWith(to)?e.substring(0,e.length-1):e.startsWith(to)?e.substring(1):e,Ig=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(r=>[r,!0]));return r=>{if(r.length<=1)return r;const o=[];let a=[];return r.forEach(i=>{i[0]==="["||t[i]?(o.push(...a.sort(),i),a=[]):a.push(i)}),o.push(...a.sort()),o}},wg=e=>({cache:hg(e.cacheSize),parseClassName:yg(e),sortModifiers:Ig(e),...mg(e)}),Ag=/\s+/,Eg=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o,sortModifiers:a}=t,i=[],s=e.trim().split(Ag);let c="";for(let l=s.length-1;l>=0;l-=1){const u=s[l],{isExternal:d,modifiers:m,hasImportantModifier:v,baseClassName:h,maybePostfixModifierPosition:g}=n(u);if(d){c=u+(c.length>0?" "+c:c);continue}let b=!!g,C=r(b?h.substring(0,g):h);if(!C){if(!b){c=u+(c.length>0?" "+c:c);continue}if(C=r(h),!C){c=u+(c.length>0?" "+c:c);continue}b=!1}const w=a(m).join(":"),x=v?w+to:w,y=x+C;if(i.includes(y))continue;i.push(y);const I=o(C,b);for(let E=0;E<I.length;++E){const S=I[E];i.push(x+S)}c=u+(c.length>0?" "+c:c)}return c};function Sg(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=Si(t))&&(r&&(r+=" "),r+=n);return r}const Si=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=Si(e[r]))&&(n&&(n+=" "),n+=t);return n};function Ng(e,...t){let n,r,o,a=i;function i(c){const l=t.reduce((u,d)=>d(u),e());return n=wg(l),r=n.cache.get,o=n.cache.set,a=s,s(c)}function s(c){const l=r(c);if(l)return l;const u=Eg(c,n);return o(c,u),u}return function(){return a(Sg.apply(null,arguments))}}const me=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},Ni=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Ri=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Rg=/^\d+\/\d+$/,Pg=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,_g=/\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$/,Tg=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Dg=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Mg=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ht=e=>Rg.test(e),re=e=>!!e&&!Number.isNaN(Number(e)),et=e=>!!e&&Number.isInteger(Number(e)),ro=e=>e.endsWith("%")&&re(e.slice(0,-1)),$e=e=>Pg.test(e),kg=()=>!0,Fg=e=>_g.test(e)&&!Tg.test(e),Pi=()=>!1,Og=e=>Dg.test(e),Gg=e=>Mg.test(e),jg=e=>!H(e)&&!Z(e),Vg=e=>xt(e,ki,Pi),H=e=>Ni.test(e),st=e=>xt(e,Fi,Fg),oo=e=>xt(e,zg,re),_i=e=>xt(e,Di,Pi),Bg=e=>xt(e,Mi,Gg),Sn=e=>xt(e,Oi,Og),Z=e=>Ri.test(e),Zt=e=>yt(e,Fi),Lg=e=>yt(e,Hg),Ti=e=>yt(e,Di),Wg=e=>yt(e,ki),Xg=e=>yt(e,Mi),Nn=e=>yt(e,Oi,!0),xt=(e,t,n)=>{const r=Ni.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},yt=(e,t,n=!1)=>{const r=Ri.exec(e);return r?r[1]?t(r[1]):n:!1},Di=e=>e==="position"||e==="percentage",Mi=e=>e==="image"||e==="url",ki=e=>e==="length"||e==="size"||e==="bg-size",Fi=e=>e==="length",zg=e=>e==="number",Hg=e=>e==="family-name",Oi=e=>e==="shadow",Zg=Ng(()=>{const e=me("color"),t=me("font"),n=me("text"),r=me("font-weight"),o=me("tracking"),a=me("leading"),i=me("breakpoint"),s=me("container"),c=me("spacing"),l=me("radius"),u=me("shadow"),d=me("inset-shadow"),m=me("text-shadow"),v=me("drop-shadow"),h=me("blur"),g=me("perspective"),b=me("aspect"),C=me("ease"),w=me("animate"),x=()=>["auto","avoid","all","avoid-page","page","left","right","column"],y=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],I=()=>[...y(),Z,H],E=()=>["auto","hidden","clip","visible","scroll"],S=()=>["auto","contain","none"],N=()=>[Z,H,c],D=()=>[ht,"full","auto",...N()],M=()=>[et,"none","subgrid",Z,H],T=()=>["auto",{span:["full",et,Z,H]},et,Z,H],F=()=>[et,"auto",Z,H],Y=()=>["auto","min","max","fr",Z,H],O=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],B=()=>["start","end","center","stretch","center-safe","end-safe"],k=()=>["auto",...N()],L=()=>[ht,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...N()],_=()=>[e,Z,H],G=()=>[...y(),Ti,_i,{position:[Z,H]}],P=()=>["no-repeat",{repeat:["","x","y","space","round"]}],W=()=>["auto","cover","contain",Wg,Vg,{size:[Z,H]}],X=()=>[ro,Zt,st],z=()=>["","none","full",l,Z,H],te=()=>["",re,Zt,st],ae=()=>["solid","dashed","dotted","double"],ce=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],U=()=>[re,ro,Ti,_i],oe=()=>["","none",h,Z,H],fe=()=>["none",re,Z,H],Ie=()=>["none",re,Z,H],$=()=>[re,Z,H],V=()=>[ht,"full",...N()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[$e],breakpoint:[$e],color:[kg],container:[$e],"drop-shadow":[$e],ease:["in","out","in-out"],font:[jg],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[$e],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[$e],shadow:[$e],spacing:["px",re],text:[$e],"text-shadow":[$e],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",ht,H,Z,b]}],container:["container"],columns:[{columns:[re,H,Z,s]}],"break-after":[{"break-after":x()}],"break-before":[{"break-before":x()}],"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:I()}],overflow:[{overflow:E()}],"overflow-x":[{"overflow-x":E()}],"overflow-y":[{"overflow-y":E()}],overscroll:[{overscroll:S()}],"overscroll-x":[{"overscroll-x":S()}],"overscroll-y":[{"overscroll-y":S()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:D()}],"inset-x":[{"inset-x":D()}],"inset-y":[{"inset-y":D()}],start:[{start:D()}],end:[{end:D()}],top:[{top:D()}],right:[{right:D()}],bottom:[{bottom:D()}],left:[{left:D()}],visibility:["visible","invisible","collapse"],z:[{z:[et,"auto",Z,H]}],basis:[{basis:[ht,"full","auto",s,...N()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[re,ht,"auto","initial","none",H]}],grow:[{grow:["",re,Z,H]}],shrink:[{shrink:["",re,Z,H]}],order:[{order:[et,"first","last","none",Z,H]}],"grid-cols":[{"grid-cols":M()}],"col-start-end":[{col:T()}],"col-start":[{"col-start":F()}],"col-end":[{"col-end":F()}],"grid-rows":[{"grid-rows":M()}],"row-start-end":[{row:T()}],"row-start":[{"row-start":F()}],"row-end":[{"row-end":F()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":Y()}],"auto-rows":[{"auto-rows":Y()}],gap:[{gap:N()}],"gap-x":[{"gap-x":N()}],"gap-y":[{"gap-y":N()}],"justify-content":[{justify:[...O(),"normal"]}],"justify-items":[{"justify-items":[...B(),"normal"]}],"justify-self":[{"justify-self":["auto",...B()]}],"align-content":[{content:["normal",...O()]}],"align-items":[{items:[...B(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...B(),{baseline:["","last"]}]}],"place-content":[{"place-content":O()}],"place-items":[{"place-items":[...B(),"baseline"]}],"place-self":[{"place-self":["auto",...B()]}],p:[{p:N()}],px:[{px:N()}],py:[{py:N()}],ps:[{ps:N()}],pe:[{pe:N()}],pt:[{pt:N()}],pr:[{pr:N()}],pb:[{pb:N()}],pl:[{pl:N()}],m:[{m:k()}],mx:[{mx:k()}],my:[{my:k()}],ms:[{ms:k()}],me:[{me:k()}],mt:[{mt:k()}],mr:[{mr:k()}],mb:[{mb:k()}],ml:[{ml:k()}],"space-x":[{"space-x":N()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":N()}],"space-y-reverse":["space-y-reverse"],size:[{size:L()}],w:[{w:[s,"screen",...L()]}],"min-w":[{"min-w":[s,"screen","none",...L()]}],"max-w":[{"max-w":[s,"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,Zt,st]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,Z,oo]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",ro,H]}],"font-family":[{font:[Lg,H,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,Z,H]}],"line-clamp":[{"line-clamp":[re,"none",Z,oo]}],leading:[{leading:[a,...N()]}],"list-image":[{"list-image":["none",Z,H]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Z,H]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:_()}],"text-color":[{text:_()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ae(),"wavy"]}],"text-decoration-thickness":[{decoration:[re,"from-font","auto",Z,st]}],"text-decoration-color":[{decoration:_()}],"underline-offset":[{"underline-offset":[re,"auto",Z,H]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:N()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Z,H]}],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",Z,H]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:G()}],"bg-repeat":[{bg:P()}],"bg-size":[{bg:W()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},et,Z,H],radial:["",Z,H],conic:[et,Z,H]},Xg,Bg]}],"bg-color":[{bg:_()}],"gradient-from-pos":[{from:X()}],"gradient-via-pos":[{via:X()}],"gradient-to-pos":[{to:X()}],"gradient-from":[{from:_()}],"gradient-via":[{via:_()}],"gradient-to":[{to:_()}],rounded:[{rounded:z()}],"rounded-s":[{"rounded-s":z()}],"rounded-e":[{"rounded-e":z()}],"rounded-t":[{"rounded-t":z()}],"rounded-r":[{"rounded-r":z()}],"rounded-b":[{"rounded-b":z()}],"rounded-l":[{"rounded-l":z()}],"rounded-ss":[{"rounded-ss":z()}],"rounded-se":[{"rounded-se":z()}],"rounded-ee":[{"rounded-ee":z()}],"rounded-es":[{"rounded-es":z()}],"rounded-tl":[{"rounded-tl":z()}],"rounded-tr":[{"rounded-tr":z()}],"rounded-br":[{"rounded-br":z()}],"rounded-bl":[{"rounded-bl":z()}],"border-w":[{border:te()}],"border-w-x":[{"border-x":te()}],"border-w-y":[{"border-y":te()}],"border-w-s":[{"border-s":te()}],"border-w-e":[{"border-e":te()}],"border-w-t":[{"border-t":te()}],"border-w-r":[{"border-r":te()}],"border-w-b":[{"border-b":te()}],"border-w-l":[{"border-l":te()}],"divide-x":[{"divide-x":te()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":te()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ae(),"hidden","none"]}],"divide-style":[{divide:[...ae(),"hidden","none"]}],"border-color":[{border:_()}],"border-color-x":[{"border-x":_()}],"border-color-y":[{"border-y":_()}],"border-color-s":[{"border-s":_()}],"border-color-e":[{"border-e":_()}],"border-color-t":[{"border-t":_()}],"border-color-r":[{"border-r":_()}],"border-color-b":[{"border-b":_()}],"border-color-l":[{"border-l":_()}],"divide-color":[{divide:_()}],"outline-style":[{outline:[...ae(),"none","hidden"]}],"outline-offset":[{"outline-offset":[re,Z,H]}],"outline-w":[{outline:["",re,Zt,st]}],"outline-color":[{outline:_()}],shadow:[{shadow:["","none",u,Nn,Sn]}],"shadow-color":[{shadow:_()}],"inset-shadow":[{"inset-shadow":["none",d,Nn,Sn]}],"inset-shadow-color":[{"inset-shadow":_()}],"ring-w":[{ring:te()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:_()}],"ring-offset-w":[{"ring-offset":[re,st]}],"ring-offset-color":[{"ring-offset":_()}],"inset-ring-w":[{"inset-ring":te()}],"inset-ring-color":[{"inset-ring":_()}],"text-shadow":[{"text-shadow":["none",m,Nn,Sn]}],"text-shadow-color":[{"text-shadow":_()}],opacity:[{opacity:[re,Z,H]}],"mix-blend":[{"mix-blend":[...ce(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ce()}],"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":[re]}],"mask-image-linear-from-pos":[{"mask-linear-from":U()}],"mask-image-linear-to-pos":[{"mask-linear-to":U()}],"mask-image-linear-from-color":[{"mask-linear-from":_()}],"mask-image-linear-to-color":[{"mask-linear-to":_()}],"mask-image-t-from-pos":[{"mask-t-from":U()}],"mask-image-t-to-pos":[{"mask-t-to":U()}],"mask-image-t-from-color":[{"mask-t-from":_()}],"mask-image-t-to-color":[{"mask-t-to":_()}],"mask-image-r-from-pos":[{"mask-r-from":U()}],"mask-image-r-to-pos":[{"mask-r-to":U()}],"mask-image-r-from-color":[{"mask-r-from":_()}],"mask-image-r-to-color":[{"mask-r-to":_()}],"mask-image-b-from-pos":[{"mask-b-from":U()}],"mask-image-b-to-pos":[{"mask-b-to":U()}],"mask-image-b-from-color":[{"mask-b-from":_()}],"mask-image-b-to-color":[{"mask-b-to":_()}],"mask-image-l-from-pos":[{"mask-l-from":U()}],"mask-image-l-to-pos":[{"mask-l-to":U()}],"mask-image-l-from-color":[{"mask-l-from":_()}],"mask-image-l-to-color":[{"mask-l-to":_()}],"mask-image-x-from-pos":[{"mask-x-from":U()}],"mask-image-x-to-pos":[{"mask-x-to":U()}],"mask-image-x-from-color":[{"mask-x-from":_()}],"mask-image-x-to-color":[{"mask-x-to":_()}],"mask-image-y-from-pos":[{"mask-y-from":U()}],"mask-image-y-to-pos":[{"mask-y-to":U()}],"mask-image-y-from-color":[{"mask-y-from":_()}],"mask-image-y-to-color":[{"mask-y-to":_()}],"mask-image-radial":[{"mask-radial":[Z,H]}],"mask-image-radial-from-pos":[{"mask-radial-from":U()}],"mask-image-radial-to-pos":[{"mask-radial-to":U()}],"mask-image-radial-from-color":[{"mask-radial-from":_()}],"mask-image-radial-to-color":[{"mask-radial-to":_()}],"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":y()}],"mask-image-conic-pos":[{"mask-conic":[re]}],"mask-image-conic-from-pos":[{"mask-conic-from":U()}],"mask-image-conic-to-pos":[{"mask-conic-to":U()}],"mask-image-conic-from-color":[{"mask-conic-from":_()}],"mask-image-conic-to-color":[{"mask-conic-to":_()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:G()}],"mask-repeat":[{mask:P()}],"mask-size":[{mask:W()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Z,H]}],filter:[{filter:["","none",Z,H]}],blur:[{blur:oe()}],brightness:[{brightness:[re,Z,H]}],contrast:[{contrast:[re,Z,H]}],"drop-shadow":[{"drop-shadow":["","none",v,Nn,Sn]}],"drop-shadow-color":[{"drop-shadow":_()}],grayscale:[{grayscale:["",re,Z,H]}],"hue-rotate":[{"hue-rotate":[re,Z,H]}],invert:[{invert:["",re,Z,H]}],saturate:[{saturate:[re,Z,H]}],sepia:[{sepia:["",re,Z,H]}],"backdrop-filter":[{"backdrop-filter":["","none",Z,H]}],"backdrop-blur":[{"backdrop-blur":oe()}],"backdrop-brightness":[{"backdrop-brightness":[re,Z,H]}],"backdrop-contrast":[{"backdrop-contrast":[re,Z,H]}],"backdrop-grayscale":[{"backdrop-grayscale":["",re,Z,H]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[re,Z,H]}],"backdrop-invert":[{"backdrop-invert":["",re,Z,H]}],"backdrop-opacity":[{"backdrop-opacity":[re,Z,H]}],"backdrop-saturate":[{"backdrop-saturate":[re,Z,H]}],"backdrop-sepia":[{"backdrop-sepia":["",re,Z,H]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":N()}],"border-spacing-x":[{"border-spacing-x":N()}],"border-spacing-y":[{"border-spacing-y":N()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",Z,H]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[re,"initial",Z,H]}],ease:[{ease:["linear","initial",C,Z,H]}],delay:[{delay:[re,Z,H]}],animate:[{animate:["none",w,Z,H]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[g,Z,H]}],"perspective-origin":[{"perspective-origin":I()}],rotate:[{rotate:fe()}],"rotate-x":[{"rotate-x":fe()}],"rotate-y":[{"rotate-y":fe()}],"rotate-z":[{"rotate-z":fe()}],scale:[{scale:Ie()}],"scale-x":[{"scale-x":Ie()}],"scale-y":[{"scale-y":Ie()}],"scale-z":[{"scale-z":Ie()}],"scale-3d":["scale-3d"],skew:[{skew:$()}],"skew-x":[{"skew-x":$()}],"skew-y":[{"skew-y":$()}],transform:[{transform:[Z,H,"","none","gpu","cpu"]}],"transform-origin":[{origin:I()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:V()}],"translate-x":[{"translate-x":V()}],"translate-y":[{"translate-y":V()}],"translate-z":[{"translate-z":V()}],"translate-none":["translate-none"],accent:[{accent:_()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:_()}],"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",Z,H]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":N()}],"scroll-mx":[{"scroll-mx":N()}],"scroll-my":[{"scroll-my":N()}],"scroll-ms":[{"scroll-ms":N()}],"scroll-me":[{"scroll-me":N()}],"scroll-mt":[{"scroll-mt":N()}],"scroll-mr":[{"scroll-mr":N()}],"scroll-mb":[{"scroll-mb":N()}],"scroll-ml":[{"scroll-ml":N()}],"scroll-p":[{"scroll-p":N()}],"scroll-px":[{"scroll-px":N()}],"scroll-py":[{"scroll-py":N()}],"scroll-ps":[{"scroll-ps":N()}],"scroll-pe":[{"scroll-pe":N()}],"scroll-pt":[{"scroll-pt":N()}],"scroll-pr":[{"scroll-pr":N()}],"scroll-pb":[{"scroll-pb":N()}],"scroll-pl":[{"scroll-pl":N()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Z,H]}],fill:[{fill:["none",..._()]}],"stroke-w":[{stroke:[re,Zt,st,oo]}],stroke:[{stroke:["none",..._()]}],"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 R(...e){return Zg(Ii(e))}var ao=(e=>(e.XS="XS",e.SM="SM",e.MD="MD",e.LG="LG",e))(ao||{}),ct=(e=>(e.XS="XS",e.SM="SM",e.MD="MD",e.LG="LG",e))(ct||{}),lt=(e=>(e.XS="XS",e.SM="SM",e.MD="MD",e.LG="LG",e))(lt||{}),ut=(e=>(e.XS="XS",e.SM="SM",e.MD="MD",e.LG="LG",e))(ut||{}),dt=(e=>(e.XS="XS",e.SM="SM",e.MD="MD",e.LG="LG",e))(dt||{}),be=(e=>(e.DEFAULT="DEFAULT",e.INFO="INFO",e.SUCCESS="SUCCESS",e.WARNING="WARNING",e.ERROR="ERROR",e))(be||{}),Ct=(e=>(e.LIGHT="light",e.DARK="dark",e))(Ct||{}),io=(e=>(e.SINGLE="single",e.MULTIPLE="multiple",e))(io||{});function Yg(e,t){const n=f.createContext(t),r=a=>{const{children:i,...s}=a,c=f.useMemo(()=>s,Object.values(s));return p.jsx(n.Provider,{value:c,children:i})};r.displayName=e+"Provider";function o(a){const i=f.useContext(n);if(i)return i;if(t!==void 0)return t;throw new Error(`\`${a}\` must be used within \`${e}\``)}return[r,o]}function ge(e,t=[]){let n=[];function r(a,i){const s=f.createContext(i),c=n.length;n=[...n,i];const l=d=>{const{scope:m,children:v,...h}=d,g=m?.[e]?.[c]||s,b=f.useMemo(()=>h,Object.values(h));return p.jsx(g.Provider,{value:b,children:v})};l.displayName=a+"Provider";function u(d,m){const v=m?.[e]?.[c]||s,h=f.useContext(v);if(h)return h;if(i!==void 0)return i;throw new Error(`\`${d}\` must be used within \`${a}\``)}return[l,u]}const o=()=>{const a=n.map(i=>f.createContext(i));return function(s){const c=s?.[e]||a;return f.useMemo(()=>({[`__scope${e}`]:{...s,[e]:c}}),[s,c])}};return o.scopeName=e,[r,$g(o,...t)]}function $g(...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((s,{useScope:c,scopeName:l})=>{const d=c(a)[`__scope${l}`];return{...s,...d}},{});return f.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}function Gi(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Rn(...e){return t=>{let n=!1;const r=e.map(o=>{const a=Gi(o,t);return!n&&typeof a=="function"&&(n=!0),a});if(n)return()=>{for(let o=0;o<r.length;o++){const a=r[o];typeof a=="function"?a():Gi(e[o],null)}}}}function ne(...e){return f.useCallback(Rn(...e),e)}function ft(e){const t=Ug(e),n=f.forwardRef((r,o)=>{const{children:a,...i}=r,s=f.Children.toArray(a),c=s.find(Qg);if(c){const l=c.props.children,u=s.map(d=>d===c?f.Children.count(l)>1?f.Children.only(null):f.isValidElement(l)?l.props.children:null:d);return p.jsx(t,{...i,ref:o,children:f.isValidElement(l)?f.cloneElement(l,void 0,u):null})}return p.jsx(t,{...i,ref:o,children:a})});return n.displayName=`${e}.Slot`,n}var Jg=ft("Slot");function Ug(e){const t=f.forwardRef((n,r)=>{const{children:o,...a}=n;if(f.isValidElement(o)){const i=qg(o),s=Kg(a,o.props);return o.type!==f.Fragment&&(s.ref=r?Rn(r,i):i),f.cloneElement(o,s)}return f.Children.count(o)>1?f.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var ji=Symbol("radix.slottable");function Vi(e){const t=({children:n})=>p.jsx(p.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=ji,t}function Qg(e){return f.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===ji}function Kg(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]=(...s)=>{const c=a(...s);return o(...s),c}:o&&(n[r]=o):r==="style"?n[r]={...o,...a}:r==="className"&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}function qg(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 Yt(e){const t=e+"CollectionProvider",[n,r]=ge(t),[o,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),i=g=>{const{scope:b,children:C}=g,w=A.useRef(null),x=A.useRef(new Map).current;return p.jsx(o,{scope:b,itemMap:x,collectionRef:w,children:C})};i.displayName=t;const s=e+"CollectionSlot",c=ft(s),l=A.forwardRef((g,b)=>{const{scope:C,children:w}=g,x=a(s,C),y=ne(b,x.collectionRef);return p.jsx(c,{ref:y,children:w})});l.displayName=s;const u=e+"CollectionItemSlot",d="data-radix-collection-item",m=ft(u),v=A.forwardRef((g,b)=>{const{scope:C,children:w,...x}=g,y=A.useRef(null),I=ne(b,y),E=a(u,C);return A.useEffect(()=>(E.itemMap.set(y,{ref:y,...x}),()=>void E.itemMap.delete(y))),p.jsx(m,{[d]:"",ref:I,children:w})});v.displayName=u;function h(g){const b=a(e+"CollectionConsumer",g);return A.useCallback(()=>{const w=b.collectionRef.current;if(!w)return[];const x=Array.from(w.querySelectorAll(`[${d}]`));return Array.from(b.itemMap.values()).sort((E,S)=>x.indexOf(E.ref.current)-x.indexOf(S.ref.current))},[b.collectionRef,b.itemMap])}return[{Provider:i,Slot:l,ItemSlot:v},h,r]}function j(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e?.(o),n===!1||!o.defaultPrevented)return t?.(o)}}var Ge=globalThis?.document?f.useLayoutEffect:()=>{},eb=f[" useInsertionEffect ".trim().toString()]||Ge;function we({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,a,i]=tb({defaultProp:t,onChange:n}),s=e!==void 0,c=s?e:o;{const u=f.useRef(e!==void 0);f.useEffect(()=>{const d=u.current;d!==s&&console.warn(`${r} is changing from ${d?"controlled":"uncontrolled"} to ${s?"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.`),u.current=s},[s,r])}const l=f.useCallback(u=>{if(s){const d=nb(u)?u(e):u;d!==e&&i.current?.(d)}else a(u)},[s,e,a,i]);return[c,l]}function tb({defaultProp:e,onChange:t}){const[n,r]=f.useState(e),o=f.useRef(n),a=f.useRef(t);return eb(()=>{a.current=t},[t]),f.useEffect(()=>{o.current!==n&&(a.current?.(n),o.current=n)},[n,o]),[n,r,a]}function nb(e){return typeof e=="function"}var rb=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],J=rb.reduce((e,t)=>{const n=ft(`Primitive.${t}`),r=f.forwardRef((o,a)=>{const{asChild:i,...s}=o,c=i?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),p.jsx(c,{...s,ref:a})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function so(e,t){e&&Kr.flushSync(()=>e.dispatchEvent(t))}function ob(e,t){return f.useReducer((n,r)=>t[n][r]??n,e)}var xe=e=>{const{present:t,children:n}=e,r=ab(t),o=typeof n=="function"?n({present:r.isPresent}):f.Children.only(n),a=ne(r.ref,ib(o));return typeof n=="function"||r.isPresent?f.cloneElement(o,{ref:a}):null};xe.displayName="Presence";function ab(e){const[t,n]=f.useState(),r=f.useRef(null),o=f.useRef(e),a=f.useRef("none"),i=e?"mounted":"unmounted",[s,c]=ob(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return f.useEffect(()=>{const l=Pn(r.current);a.current=s==="mounted"?l:"none"},[s]),Ge(()=>{const l=r.current,u=o.current;if(u!==e){const m=a.current,v=Pn(l);e?c("MOUNT"):v==="none"||l?.display==="none"?c("UNMOUNT"):c(u&&m!==v?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,c]),Ge(()=>{if(t){let l;const u=t.ownerDocument.defaultView??window,d=v=>{const g=Pn(r.current).includes(CSS.escape(v.animationName));if(v.target===t&&g&&(c("ANIMATION_END"),!o.current)){const b=t.style.animationFillMode;t.style.animationFillMode="forwards",l=u.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=b)})}},m=v=>{v.target===t&&(a.current=Pn(r.current))};return t.addEventListener("animationstart",m),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{u.clearTimeout(l),t.removeEventListener("animationstart",m),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:f.useCallback(l=>{r.current=l?getComputedStyle(l):null,n(l)},[])}}function Pn(e){return e?.animationName||"none"}function ib(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var sb=f[" useId ".trim().toString()]||(()=>{}),cb=0;function Re(e){const[t,n]=f.useState(sb());return Ge(()=>{n(r=>r??String(cb++))},[e]),e||(t?`radix-${t}`:"")}var _n="Collapsible",[lb,Bi]=ge(_n),[ub,co]=lb(_n),Li=f.forwardRef((e,t)=>{const{__scopeCollapsible:n,open:r,defaultOpen:o,disabled:a,onOpenChange:i,...s}=e,[c,l]=we({prop:r,defaultProp:o??!1,onChange:i,caller:_n});return p.jsx(ub,{scope:n,disabled:a,contentId:Re(),open:c,onOpenToggle:f.useCallback(()=>l(u=>!u),[l]),children:p.jsx(J.div,{"data-state":uo(c),"data-disabled":a?"":void 0,...s,ref:t})})});Li.displayName=_n;var Wi="CollapsibleTrigger",Xi=f.forwardRef((e,t)=>{const{__scopeCollapsible:n,...r}=e,o=co(Wi,n);return p.jsx(J.button,{type:"button","aria-controls":o.contentId,"aria-expanded":o.open||!1,"data-state":uo(o.open),"data-disabled":o.disabled?"":void 0,disabled:o.disabled,...r,ref:t,onClick:j(e.onClick,o.onOpenToggle)})});Xi.displayName=Wi;var lo="CollapsibleContent",zi=f.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=co(lo,e.__scopeCollapsible);return p.jsx(xe,{present:n||o.open,children:({present:a})=>p.jsx(db,{...r,ref:t,present:a})})});zi.displayName=lo;var db=f.forwardRef((e,t)=>{const{__scopeCollapsible:n,present:r,children:o,...a}=e,i=co(lo,n),[s,c]=f.useState(r),l=f.useRef(null),u=ne(t,l),d=f.useRef(0),m=d.current,v=f.useRef(0),h=v.current,g=i.open||s,b=f.useRef(g),C=f.useRef(void 0);return f.useEffect(()=>{const w=requestAnimationFrame(()=>b.current=!1);return()=>cancelAnimationFrame(w)},[]),Ge(()=>{const w=l.current;if(w){C.current=C.current||{transitionDuration:w.style.transitionDuration,animationName:w.style.animationName},w.style.transitionDuration="0s",w.style.animationName="none";const x=w.getBoundingClientRect();d.current=x.height,v.current=x.width,b.current||(w.style.transitionDuration=C.current.transitionDuration,w.style.animationName=C.current.animationName),c(r)}},[i.open,r]),p.jsx(J.div,{"data-state":uo(i.open),"data-disabled":i.disabled?"":void 0,id:i.contentId,hidden:!g,...a,ref:u,style:{"--radix-collapsible-content-height":m?`${m}px`:void 0,"--radix-collapsible-content-width":h?`${h}px`:void 0,...e.style},children:g&&o})});function uo(e){return e?"open":"closed"}var fb=Li,pb=Xi,mb=zi,gb=f.createContext(void 0);function It(e){const t=f.useContext(gb);return e||t||"ltr"}var Me="Accordion",bb=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[fo,vb,hb]=Yt(Me),[Tn,pS]=ge(Me,[hb,Bi]),po=Bi(),Hi=A.forwardRef((e,t)=>{const{type:n,...r}=e,o=r,a=r;return p.jsx(fo.Provider,{scope:e.__scopeAccordion,children:n==="multiple"?p.jsx(Ib,{...a,ref:t}):p.jsx(Cb,{...o,ref:t})})});Hi.displayName=Me;var[Zi,xb]=Tn(Me),[Yi,yb]=Tn(Me,{collapsible:!1}),Cb=A.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},collapsible:a=!1,...i}=e,[s,c]=we({prop:n,defaultProp:r??"",onChange:o,caller:Me});return p.jsx(Zi,{scope:e.__scopeAccordion,value:A.useMemo(()=>s?[s]:[],[s]),onItemOpen:c,onItemClose:A.useCallback(()=>a&&c(""),[a,c]),children:p.jsx(Yi,{scope:e.__scopeAccordion,collapsible:a,children:p.jsx($i,{...i,ref:t})})})}),Ib=A.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},...a}=e,[i,s]=we({prop:n,defaultProp:r??[],onChange:o,caller:Me}),c=A.useCallback(u=>s((d=[])=>[...d,u]),[s]),l=A.useCallback(u=>s((d=[])=>d.filter(m=>m!==u)),[s]);return p.jsx(Zi,{scope:e.__scopeAccordion,value:i,onItemOpen:c,onItemClose:l,children:p.jsx(Yi,{scope:e.__scopeAccordion,collapsible:!0,children:p.jsx($i,{...a,ref:t})})})}),[wb,Dn]=Tn(Me),$i=A.forwardRef((e,t)=>{const{__scopeAccordion:n,disabled:r,dir:o,orientation:a="vertical",...i}=e,s=A.useRef(null),c=ne(s,t),l=vb(n),d=It(o)==="ltr",m=j(e.onKeyDown,v=>{if(!bb.includes(v.key))return;const h=v.target,g=l().filter(N=>!N.ref.current?.disabled),b=g.findIndex(N=>N.ref.current===h),C=g.length;if(b===-1)return;v.preventDefault();let w=b;const x=0,y=C-1,I=()=>{w=b+1,w>y&&(w=x)},E=()=>{w=b-1,w<x&&(w=y)};switch(v.key){case"Home":w=x;break;case"End":w=y;break;case"ArrowRight":a==="horizontal"&&(d?I():E());break;case"ArrowDown":a==="vertical"&&I();break;case"ArrowLeft":a==="horizontal"&&(d?E():I());break;case"ArrowUp":a==="vertical"&&E();break}const S=w%C;g[S].ref.current?.focus()});return p.jsx(wb,{scope:n,disabled:r,direction:o,orientation:a,children:p.jsx(fo.Slot,{scope:n,children:p.jsx(J.div,{...i,"data-orientation":a,ref:c,onKeyDown:r?void 0:m})})})}),Mn="AccordionItem",[Ab,mo]=Tn(Mn),Ji=A.forwardRef((e,t)=>{const{__scopeAccordion:n,value:r,...o}=e,a=Dn(Mn,n),i=xb(Mn,n),s=po(n),c=Re(),l=r&&i.value.includes(r)||!1,u=a.disabled||e.disabled;return p.jsx(Ab,{scope:n,open:l,disabled:u,triggerId:c,children:p.jsx(fb,{"data-orientation":a.orientation,"data-state":ts(l),...s,...o,ref:t,disabled:u,open:l,onOpenChange:d=>{d?i.onItemOpen(r):i.onItemClose(r)}})})});Ji.displayName=Mn;var Ui="AccordionHeader",Qi=A.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=Dn(Me,n),a=mo(Ui,n);return p.jsx(J.h3,{"data-orientation":o.orientation,"data-state":ts(a.open),"data-disabled":a.disabled?"":void 0,...r,ref:t})});Qi.displayName=Ui;var go="AccordionTrigger",Ki=A.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=Dn(Me,n),a=mo(go,n),i=yb(go,n),s=po(n);return p.jsx(fo.ItemSlot,{scope:n,children:p.jsx(pb,{"aria-disabled":a.open&&!i.collapsible||void 0,"data-orientation":o.orientation,id:a.triggerId,...s,...r,ref:t})})});Ki.displayName=go;var qi="AccordionContent",es=A.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=Dn(Me,n),a=mo(qi,n),i=po(n);return p.jsx(mb,{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}})});es.displayName=qi;function ts(e){return e?"open":"closed"}var Eb=Hi,Sb=Ji,Nb=Qi,ns=Ki,rs=es;/**
* @license lucide-react v0.525.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Rb=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Pb=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,r)=>r?r.toUpperCase():n.toLowerCase()),os=e=>{const t=Pb(e);return t.charAt(0).toUpperCase()+t.slice(1)},as=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim(),_b=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};/**
* @license lucide-react v0.525.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/var Tb={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.525.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Db=A.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:a,iconNode:i,...s},c)=>A.createElement("svg",{ref:c,...Tb,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:as("lucide",o),...!a&&!_b(s)&&{"aria-hidden":"true"},...s},[...i.map(([l,u])=>A.createElement(l,u)),...Array.isArray(a)?a:[a]]));/**
* @license lucide-react v0.525.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const je=(e,t)=>{const n=A.forwardRef(({className:r,...o},a)=>A.createElement(Db,{ref:a,iconNode:t,className:as(`lucide-${Rb(os(e))}`,`lucide-${e}`,r),...o}));return n.displayName=os(e),n};/**
* @license lucide-react v0.525.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Mb=je("badge-alert",[["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.525.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const is=je("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
* @license lucide-react v0.525.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const kb=je("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
* @license lucide-react v0.525.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Fb=je("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
* @license lucide-react v0.525.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Ob=je("circle-check",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
* @license lucide-react v0.525.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Gb=je("circle-x",[["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.525.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const ss=je("circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);/**
* @license lucide-react v0.525.0 - ISC
*
* This source code is licensed under the ISC lic