catalyst-design
Version:
Reusable Component library for Catalyst
96 lines • 686 kB
JavaScript
(function(T,h){typeof exports=="object"&&typeof module<"u"?h(exports,require("react/jsx-runtime"),require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react","react-dom"],h):(T=typeof globalThis<"u"?globalThis:T||self,h(T["catalyst-design"]={},T["react/jsx-runtime"],T.React,T.ReactDOM))})(this,function(T,h,_,ya){"use strict";function Rg(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 d=Rg(_),ba=Rg(ya);function Lg(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=Lg(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Jt(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Lg(e))&&(r&&(r+=" "),r+=t);return r}const Gs="-",fA=e=>{const t=hA(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:i=>{const s=i.split(Gs);return s[0]===""&&s.length!==1&&s.shift(),Fg(s,t)||pA(i)},getConflictingClassGroupIds:(i,s)=>{const l=n[i]||[];return s&&r[i]?[...l,...r[i]]:l}}},Fg=(e,t)=>{var i;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?Fg(e.slice(1),r):void 0;if(o)return o;if(t.validators.length===0)return;const a=e.join(Gs);return(i=t.validators.find(({validator:s})=>s(a)))==null?void 0:i.classGroupId},Bg=/^\[(.+)\]$/,pA=e=>{if(Bg.test(e)){const t=Bg.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},hA=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return mA(Object.entries(e.classGroups),n).forEach(([a,i])=>{Us(i,r,a,t)}),r},Us=(e,t,n,r)=>{e.forEach(o=>{if(typeof o=="string"){const a=o===""?t:zg(t,o);a.classGroupId=n;return}if(typeof o=="function"){if(gA(o)){Us(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([a,i])=>{Us(i,zg(t,a),n,r)})})},zg=(e,t)=>{let n=e;return t.split(Gs).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},gA=e=>e.isThemeGetter,mA=(e,t)=>t?e.map(([n,r])=>{const o=r.map(a=>typeof a=="string"?t+a:typeof a=="object"?Object.fromEntries(Object.entries(a).map(([i,s])=>[t+i,s])):a);return[n,o]}):e,vA=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)}}},Hg="!",yA=e=>{const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,o=t[0],a=t.length,i=s=>{const l=[];let c=0,u=0,f;for(let y=0;y<s.length;y++){let b=s[y];if(c===0){if(b===o&&(r||s.slice(y,y+a)===t)){l.push(s.slice(u,y)),u=y+a;continue}if(b==="/"){f=y;continue}}b==="["?c++:b==="]"&&c--}const p=l.length===0?s:s.substring(u),g=p.startsWith(Hg),v=g?p.substring(1):p,m=f&&f>u?f-u:void 0;return{modifiers:l,hasImportantModifier:g,baseClassName:v,maybePostfixModifierPosition:m}};return n?s=>n({className:s,parseClassName:i}):i},bA=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t},wA=e=>({cache:vA(e.cacheSize),parseClassName:yA(e),...fA(e)}),CA=/\s+/,SA=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o}=t,a=[],i=e.trim().split(CA);let s="";for(let l=i.length-1;l>=0;l-=1){const c=i[l],{modifiers:u,hasImportantModifier:f,baseClassName:p,maybePostfixModifierPosition:g}=n(c);let v=!!g,m=r(v?p.substring(0,g):p);if(!m){if(!v){s=c+(s.length>0?" "+s:s);continue}if(m=r(p),!m){s=c+(s.length>0?" "+s:s);continue}v=!1}const y=bA(u).join(":"),b=f?y+Hg:y,w=b+m;if(a.includes(w))continue;a.push(w);const C=o(m,v);for(let S=0;S<C.length;++S){const E=C[S];a.push(b+E)}s=c+(s.length>0?" "+s:s)}return s};function xA(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=Vg(t))&&(r&&(r+=" "),r+=n);return r}const Vg=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=Vg(e[r]))&&(n&&(n+=" "),n+=t);return n};function _A(e,...t){let n,r,o,a=i;function i(l){const c=t.reduce((u,f)=>f(u),e());return n=wA(c),r=n.cache.get,o=n.cache.set,a=s,s(l)}function s(l){const c=r(l);if(c)return c;const u=SA(l,n);return o(l,u),u}return function(){return a(xA.apply(null,arguments))}}const $e=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},Wg=/^\[(?:([a-z-]+):)?(.+)\]$/i,EA=/^\d+\/\d+$/,PA=new Set(["px","full","screen"]),MA=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,NA=/\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$/,TA=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,AA=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,OA=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,en=e=>ar(e)||PA.has(e)||EA.test(e),fn=e=>ir(e,"length",BA),ar=e=>!!e&&!Number.isNaN(Number(e)),Ys=e=>ir(e,"number",ar),to=e=>!!e&&Number.isInteger(Number(e)),DA=e=>e.endsWith("%")&&ar(e.slice(0,-1)),be=e=>Wg.test(e),pn=e=>MA.test(e),IA=new Set(["length","size","percentage"]),kA=e=>ir(e,IA,qg),$A=e=>ir(e,"position",qg),RA=new Set(["image","url"]),LA=e=>ir(e,RA,HA),FA=e=>ir(e,"",zA),no=()=>!0,ir=(e,t,n)=>{const r=Wg.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},BA=e=>NA.test(e)&&!TA.test(e),qg=()=>!1,zA=e=>AA.test(e),HA=e=>OA.test(e),VA=_A(()=>{const e=$e("colors"),t=$e("spacing"),n=$e("blur"),r=$e("brightness"),o=$e("borderColor"),a=$e("borderRadius"),i=$e("borderSpacing"),s=$e("borderWidth"),l=$e("contrast"),c=$e("grayscale"),u=$e("hueRotate"),f=$e("invert"),p=$e("gap"),g=$e("gradientColorStops"),v=$e("gradientColorStopPositions"),m=$e("inset"),y=$e("margin"),b=$e("opacity"),w=$e("padding"),C=$e("saturate"),S=$e("scale"),E=$e("sepia"),P=$e("skew"),x=$e("space"),M=$e("translate"),N=()=>["auto","contain","none"],R=()=>["auto","hidden","clip","visible","scroll"],A=()=>["auto",be,t],I=()=>[be,t],O=()=>["",en,fn],D=()=>["auto",ar,be],V=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],H=()=>["solid","dashed","dotted","double","none"],G=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],U=()=>["start","end","center","between","around","evenly","stretch"],z=()=>["","0",be],Q=()=>["auto","avoid","all","avoid-page","page","left","right","column"],re=()=>[ar,be];return{cacheSize:500,separator:":",theme:{colors:[no],spacing:[en,fn],blur:["none","",pn,be],brightness:re(),borderColor:[e],borderRadius:["none","","full",pn,be],borderSpacing:I(),borderWidth:O(),contrast:re(),grayscale:z(),hueRotate:re(),invert:z(),gap:I(),gradientColorStops:[e],gradientColorStopPositions:[DA,fn],inset:A(),margin:A(),opacity:re(),padding:I(),saturate:re(),scale:re(),sepia:z(),skew:re(),space:I(),translate:I()},classGroups:{aspect:[{aspect:["auto","square","video",be]}],container:["container"],columns:[{columns:[pn]}],"break-after":[{"break-after":Q()}],"break-before":[{"break-before":Q()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","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:[...V(),be]}],overflow:[{overflow:R()}],"overflow-x":[{"overflow-x":R()}],"overflow-y":[{"overflow-y":R()}],overscroll:[{overscroll:N()}],"overscroll-x":[{"overscroll-x":N()}],"overscroll-y":[{"overscroll-y":N()}],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:["auto",to,be]}],basis:[{basis:A()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",be]}],grow:[{grow:z()}],shrink:[{shrink:z()}],order:[{order:["first","last","none",to,be]}],"grid-cols":[{"grid-cols":[no]}],"col-start-end":[{col:["auto",{span:["full",to,be]},be]}],"col-start":[{"col-start":D()}],"col-end":[{"col-end":D()}],"grid-rows":[{"grid-rows":[no]}],"row-start-end":[{row:["auto",{span:[to,be]},be]}],"row-start":[{"row-start":D()}],"row-end":[{"row-end":D()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",be]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",be]}],gap:[{gap:[p]}],"gap-x":[{"gap-x":[p]}],"gap-y":[{"gap-y":[p]}],"justify-content":[{justify:["normal",...U()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...U(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...U(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[w]}],px:[{px:[w]}],py:[{py:[w]}],ps:[{ps:[w]}],pe:[{pe:[w]}],pt:[{pt:[w]}],pr:[{pr:[w]}],pb:[{pb:[w]}],pl:[{pl:[w]}],m:[{m:[y]}],mx:[{mx:[y]}],my:[{my:[y]}],ms:[{ms:[y]}],me:[{me:[y]}],mt:[{mt:[y]}],mr:[{mr:[y]}],mb:[{mb:[y]}],ml:[{ml:[y]}],"space-x":[{"space-x":[x]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[x]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",be,t]}],"min-w":[{"min-w":[be,t,"min","max","fit"]}],"max-w":[{"max-w":[be,t,"none","full","min","max","fit","prose",{screen:[pn]},pn]}],h:[{h:[be,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[be,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[be,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[be,t,"auto","min","max","fit"]}],"font-size":[{text:["base",pn,fn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Ys]}],"font-family":[{font:[no]}],"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:["tighter","tight","normal","wide","wider","widest",be]}],"line-clamp":[{"line-clamp":["none",ar,Ys]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",en,be]}],"list-image":[{"list-image":["none",be]}],"list-style-type":[{list:["none","disc","decimal",be]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[b]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[b]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...H(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",en,fn]}],"underline-offset":[{"underline-offset":["auto",en,be]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:I()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",be]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",be]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[b]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...V(),$A]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",kA]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},LA]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[v]}],"gradient-via-pos":[{via:[v]}],"gradient-to-pos":[{to:[v]}],"gradient-from":[{from:[g]}],"gradient-via":[{via:[g]}],"gradient-to":[{to:[g]}],rounded:[{rounded:[a]}],"rounded-s":[{"rounded-s":[a]}],"rounded-e":[{"rounded-e":[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-b":[{"rounded-b":[a]}],"rounded-l":[{"rounded-l":[a]}],"rounded-ss":[{"rounded-ss":[a]}],"rounded-se":[{"rounded-se":[a]}],"rounded-ee":[{"rounded-ee":[a]}],"rounded-es":[{"rounded-es":[a]}],"rounded-tl":[{"rounded-tl":[a]}],"rounded-tr":[{"rounded-tr":[a]}],"rounded-br":[{"rounded-br":[a]}],"rounded-bl":[{"rounded-bl":[a]}],"border-w":[{border:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[b]}],"border-style":[{border:[...H(),"hidden"]}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[b]}],"divide-style":[{divide:H()}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-s":[{"border-s":[o]}],"border-color-e":[{"border-e":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["",...H()]}],"outline-offset":[{"outline-offset":[en,be]}],"outline-w":[{outline:[en,fn]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:O()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[b]}],"ring-offset-w":[{"ring-offset":[en,fn]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",pn,FA]}],"shadow-color":[{shadow:[no]}],opacity:[{opacity:[b]}],"mix-blend":[{"mix-blend":[...G(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":G()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",pn,be]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[u]}],invert:[{invert:[f]}],saturate:[{saturate:[C]}],sepia:[{sepia:[E]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[u]}],"backdrop-invert":[{"backdrop-invert":[f]}],"backdrop-opacity":[{"backdrop-opacity":[b]}],"backdrop-saturate":[{"backdrop-saturate":[C]}],"backdrop-sepia":[{"backdrop-sepia":[E]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",be]}],duration:[{duration:re()}],ease:[{ease:["linear","in","out","in-out",be]}],delay:[{delay:re()}],animate:[{animate:["none","spin","ping","pulse","bounce",be]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[S]}],"scale-x":[{"scale-x":[S]}],"scale-y":[{"scale-y":[S]}],rotate:[{rotate:[to,be]}],"translate-x":[{"translate-x":[M]}],"translate-y":[{"translate-y":[M]}],"skew-x":[{"skew-x":[P]}],"skew-y":[{"skew-y":[P]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",be]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],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",be]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":I()}],"scroll-mx":[{"scroll-mx":I()}],"scroll-my":[{"scroll-my":I()}],"scroll-ms":[{"scroll-ms":I()}],"scroll-me":[{"scroll-me":I()}],"scroll-mt":[{"scroll-mt":I()}],"scroll-mr":[{"scroll-mr":I()}],"scroll-mb":[{"scroll-mb":I()}],"scroll-ml":[{"scroll-ml":I()}],"scroll-p":[{"scroll-p":I()}],"scroll-px":[{"scroll-px":I()}],"scroll-py":[{"scroll-py":I()}],"scroll-ps":[{"scroll-ps":I()}],"scroll-pe":[{"scroll-pe":I()}],"scroll-pt":[{"scroll-pt":I()}],"scroll-pr":[{"scroll-pr":I()}],"scroll-pb":[{"scroll-pb":I()}],"scroll-pl":[{"scroll-pl":I()}],"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",be]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[en,fn,Ys]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"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-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-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"],"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"]}}});function L(...e){return VA(Jt(e))}const wa=d.forwardRef(({className:e,type:t,...n},r)=>h.jsx("input",{type:t,className:L("flex h-[48px] w-full text-black leading-5 text-[14px] font-normal rounded-lg border border-solid border-[#E8E9EB] bg-white pl-4 pr-3 py-3 text-sm placeholder:text-[#C7CBD1] focus-visible:outline-none disabled:cursor-not-allowed disabled:bg-[#F7F8FA]",e),ref:r,...n}));wa.displayName="Input";function WA(e,t){const n=d.createContext(t),r=a=>{const{children:i,...s}=a,l=d.useMemo(()=>s,Object.values(s));return h.jsx(n.Provider,{value:l,children:i})};r.displayName=e+"Provider";function o(a){const i=d.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 je(e,t=[]){let n=[];function r(a,i){const s=d.createContext(i),l=n.length;n=[...n,i];const c=f=>{var b;const{scope:p,children:g,...v}=f,m=((b=p==null?void 0:p[e])==null?void 0:b[l])||s,y=d.useMemo(()=>v,Object.values(v));return h.jsx(m.Provider,{value:y,children:g})};c.displayName=a+"Provider";function u(f,p){var m;const g=((m=p==null?void 0:p[e])==null?void 0:m[l])||s,v=d.useContext(g);if(v)return v;if(i!==void 0)return i;throw new Error(`\`${f}\` must be used within \`${a}\``)}return[c,u]}const o=()=>{const a=n.map(i=>d.createContext(i));return function(s){const l=(s==null?void 0:s[e])||a;return d.useMemo(()=>({[`__scope${e}`]:{...s,[e]:l}}),[s,l])}};return o.scopeName=e,[r,qA(o,...t)]}function qA(...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:l,scopeName:c})=>{const f=l(a)[`__scope${c}`];return{...s,...f}},{});return d.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}function jA(e,t=[]){let n=[];function r(a,i){const s=d.createContext(i),l=n.length;n=[...n,i];function c(f){const{scope:p,children:g,...v}=f,m=(p==null?void 0:p[e][l])||s,y=d.useMemo(()=>v,Object.values(v));return h.jsx(m.Provider,{value:y,children:g})}function u(f,p){const g=(p==null?void 0:p[e][l])||s,v=d.useContext(g);if(v)return v;if(i!==void 0)return i;throw new Error(`\`${f}\` must be used within \`${a}\``)}return c.displayName=a+"Provider",[c,u]}const o=()=>{const a=n.map(i=>d.createContext(i));return function(s){const l=(s==null?void 0:s[e])||a;return d.useMemo(()=>({[`__scope${e}`]:{...s,[e]:l}}),[s,l])}};return o.scopeName=e,[r,GA(o,...t)]}function GA(...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:l,scopeName:c})=>{const f=l(a)[`__scope${c}`];return{...s,...f}},{});return d.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}function UA(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function ro(...e){return t=>e.forEach(n=>UA(n,t))}function ce(...e){return d.useCallback(ro(...e),e)}var Mt=d.forwardRef((e,t)=>{const{children:n,...r}=e,o=d.Children.toArray(n),a=o.find(YA);if(a){const i=a.props.children,s=o.map(l=>l===a?d.Children.count(i)>1?d.Children.only(null):d.isValidElement(i)?i.props.children:null:l);return h.jsx(Ks,{...r,ref:t,children:d.isValidElement(i)?d.cloneElement(i,void 0,s):null})}return h.jsx(Ks,{...r,ref:t,children:n})});Mt.displayName="Slot";var Ks=d.forwardRef((e,t)=>{const{children:n,...r}=e;if(d.isValidElement(n)){const o=XA(n);return d.cloneElement(n,{...KA(r,n.props),ref:t?ro(t,o):o})}return d.Children.count(n)>1?d.Children.only(null):null});Ks.displayName="SlotClone";var Xs=({children:e})=>h.jsx(h.Fragment,{children:e});function YA(e){return d.isValidElement(e)&&e.type===Xs}function KA(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)=>{a(...s),o(...s)}:o&&(n[r]=o):r==="style"?n[r]={...o,...a}:r==="className"&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}function XA(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function hn(e){const t=e+"CollectionProvider",[n,r]=jA(t),[o,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),i=g=>{const{scope:v,children:m}=g,y=_.useRef(null),b=_.useRef(new Map).current;return h.jsx(o,{scope:v,itemMap:b,collectionRef:y,children:m})};i.displayName=t;const s=e+"CollectionSlot",l=_.forwardRef((g,v)=>{const{scope:m,children:y}=g,b=a(s,m),w=ce(v,b.collectionRef);return h.jsx(Mt,{ref:w,children:y})});l.displayName=s;const c=e+"CollectionItemSlot",u="data-radix-collection-item",f=_.forwardRef((g,v)=>{const{scope:m,children:y,...b}=g,w=_.useRef(null),C=ce(v,w),S=a(c,m);return _.useEffect(()=>(S.itemMap.set(w,{ref:w,...b}),()=>void S.itemMap.delete(w))),h.jsx(Mt,{[u]:"",ref:C,children:y})});f.displayName=c;function p(g){const v=a(e+"CollectionConsumer",g);return _.useCallback(()=>{const y=v.collectionRef.current;if(!y)return[];const b=Array.from(y.querySelectorAll(`[${u}]`));return Array.from(v.itemMap.values()).sort((S,E)=>b.indexOf(S.ref.current)-b.indexOf(E.ref.current))},[v.collectionRef,v.itemMap])}return[{Provider:i,Slot:l,ItemSlot:f},p,r]}function j(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function Ae(e){const t=d.useRef(e);return d.useEffect(()=>{t.current=e}),d.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function Re({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=ZA({defaultProp:t,onChange:n}),a=e!==void 0,i=a?e:r,s=Ae(n),l=d.useCallback(c=>{if(a){const f=typeof c=="function"?c(e):c;f!==e&&s(f)}else o(c)},[a,e,o,s]);return[i,l]}function ZA({defaultProp:e,onChange:t}){const n=d.useState(e),[r]=n,o=d.useRef(r),a=Ae(t);return d.useEffect(()=>{o.current!==r&&(a(r),o.current=r)},[r,o,a]),n}var QA=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Z=QA.reduce((e,t)=>{const n=d.forwardRef((r,o)=>{const{asChild:a,...i}=r,s=a?Mt:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),h.jsx(s,{...i,ref:o})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function Ca(e,t){e&&ba.flushSync(()=>e.dispatchEvent(t))}var qe=globalThis!=null&&globalThis.document?d.useLayoutEffect:()=>{};function JA(e,t){return d.useReducer((n,r)=>t[n][r]??n,e)}var Le=e=>{const{present:t,children:n}=e,r=eO(t),o=typeof n=="function"?n({present:r.isPresent}):d.Children.only(n),a=ce(r.ref,tO(o));return typeof n=="function"||r.isPresent?d.cloneElement(o,{ref:a}):null};Le.displayName="Presence";function eO(e){const[t,n]=d.useState(),r=d.useRef({}),o=d.useRef(e),a=d.useRef("none"),i=e?"mounted":"unmounted",[s,l]=JA(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return d.useEffect(()=>{const c=Sa(r.current);a.current=s==="mounted"?c:"none"},[s]),qe(()=>{const c=r.current,u=o.current;if(u!==e){const p=a.current,g=Sa(c);e?l("MOUNT"):g==="none"||(c==null?void 0:c.display)==="none"?l("UNMOUNT"):l(u&&p!==g?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,l]),qe(()=>{if(t){let c;const u=t.ownerDocument.defaultView??window,f=g=>{const m=Sa(r.current).includes(g.animationName);if(g.target===t&&m&&(l("ANIMATION_END"),!o.current)){const y=t.style.animationFillMode;t.style.animationFillMode="forwards",c=u.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=y)})}},p=g=>{g.target===t&&(a.current=Sa(r.current))};return t.addEventListener("animationstart",p),t.addEventListener("animationcancel",f),t.addEventListener("animationend",f),()=>{u.clearTimeout(c),t.removeEventListener("animationstart",p),t.removeEventListener("animationcancel",f),t.removeEventListener("animationend",f)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:d.useCallback(c=>{c&&(r.current=getComputedStyle(c)),n(c)},[])}}function Sa(e){return(e==null?void 0:e.animationName)||"none"}function tO(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var nO=d.useId||(()=>{}),rO=0;function De(e){const[t,n]=d.useState(nO());return qe(()=>{e||n(r=>r??String(rO++))},[e]),e||(t?`radix-${t}`:"")}var Zs="Collapsible",[oO,jg]=je(Zs),[aO,Qs]=oO(Zs),Gg=d.forwardRef((e,t)=>{const{__scopeCollapsible:n,open:r,defaultOpen:o,disabled:a,onOpenChange:i,...s}=e,[l=!1,c]=Re({prop:r,defaultProp:o,onChange:i});return h.jsx(aO,{scope:n,disabled:a,contentId:De(),open:l,onOpenToggle:d.useCallback(()=>c(u=>!u),[c]),children:h.jsx(Z.div,{"data-state":nl(l),"data-disabled":a?"":void 0,...s,ref:t})})});Gg.displayName=Zs;var Ug="CollapsibleTrigger",Js=d.forwardRef((e,t)=>{const{__scopeCollapsible:n,...r}=e,o=Qs(Ug,n);return h.jsx(Z.button,{type:"button","aria-controls":o.contentId,"aria-expanded":o.open||!1,"data-state":nl(o.open),"data-disabled":o.disabled?"":void 0,disabled:o.disabled,...r,ref:t,onClick:j(e.onClick,o.onOpenToggle)})});Js.displayName=Ug;var el="CollapsibleContent",tl=d.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=Qs(el,e.__scopeCollapsible);return h.jsx(Le,{present:n||o.open,children:({present:a})=>h.jsx(iO,{...r,ref:t,present:a})})});tl.displayName=el;var iO=d.forwardRef((e,t)=>{const{__scopeCollapsible:n,present:r,children:o,...a}=e,i=Qs(el,n),[s,l]=d.useState(r),c=d.useRef(null),u=ce(t,c),f=d.useRef(0),p=f.current,g=d.useRef(0),v=g.current,m=i.open||s,y=d.useRef(m),b=d.useRef();return d.useEffect(()=>{const w=requestAnimationFrame(()=>y.current=!1);return()=>cancelAnimationFrame(w)},[]),qe(()=>{const w=c.current;if(w){b.current=b.current||{transitionDuration:w.style.transitionDuration,animationName:w.style.animationName},w.style.transitionDuration="0s",w.style.animationName="none";const C=w.getBoundingClientRect();f.current=C.height,g.current=C.width,y.current||(w.style.transitionDuration=b.current.transitionDuration,w.style.animationName=b.current.animationName),l(r)}},[i.open,r]),h.jsx(Z.div,{"data-state":nl(i.open),"data-disabled":i.disabled?"":void 0,id:i.contentId,hidden:!m,...a,ref:u,style:{"--radix-collapsible-content-height":p?`${p}px`:void 0,"--radix-collapsible-content-width":v?`${v}px`:void 0,...e.style},children:m&&o})});function nl(e){return e?"open":"closed"}var Yg=Gg,sO=Js,lO=tl,cO=d.createContext(void 0);function Nt(e){const t=d.useContext(cO);return e||t||"ltr"}var tn="Accordion",uO=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[rl,dO,fO]=hn(tn),[xa,DG]=je(tn,[fO,jg]),ol=jg(),Kg=_.forwardRef((e,t)=>{const{type:n,...r}=e,o=r,a=r;return h.jsx(rl.Provider,{scope:e.__scopeAccordion,children:n==="multiple"?h.jsx(mO,{...a,ref:t}):h.jsx(gO,{...o,ref:t})})});Kg.displayName=tn;var[Xg,pO]=xa(tn),[Zg,hO]=xa(tn,{collapsible:!1}),gO=_.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},collapsible:a=!1,...i}=e,[s,l]=Re({prop:n,defaultProp:r,onChange:o});return h.jsx(Xg,{scope:e.__scopeAccordion,value:s?[s]:[],onItemOpen:l,onItemClose:_.useCallback(()=>a&&l(""),[a,l]),children:h.jsx(Zg,{scope:e.__scopeAccordion,collapsible:a,children:h.jsx(Qg,{...i,ref:t})})})}),mO=_.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},...a}=e,[i=[],s]=Re({prop:n,defaultProp:r,onChange:o}),l=_.useCallback(u=>s((f=[])=>[...f,u]),[s]),c=_.useCallback(u=>s((f=[])=>f.filter(p=>p!==u)),[s]);return h.jsx(Xg,{scope:e.__scopeAccordion,value:i,onItemOpen:l,onItemClose:c,children:h.jsx(Zg,{scope:e.__scopeAccordion,collapsible:!0,children:h.jsx(Qg,{...a,ref:t})})})}),[vO,_a]=xa(tn),Qg=_.forwardRef((e,t)=>{const{__scopeAccordion:n,disabled:r,dir:o,orientation:a="vertical",...i}=e,s=_.useRef(null),l=ce(s,t),c=dO(n),f=Nt(o)==="ltr",p=j(e.onKeyDown,g=>{var M;if(!uO.includes(g.key))return;const v=g.target,m=c().filter(N=>{var R;return!((R=N.ref.current)!=null&&R.disabled)}),y=m.findIndex(N=>N.ref.current===v),b=m.length;if(y===-1)return;g.preventDefault();let w=y;const C=0,S=b-1,E=()=>{w=y+1,w>S&&(w=C)},P=()=>{w=y-1,w<C&&(w=S)};switch(g.key){case"Home":w=C;break;case"End":w=S;break;case"ArrowRight":a==="horizontal"&&(f?E():P());break;case"ArrowDown":a==="vertical"&&E();break;case"ArrowLeft":a==="horizontal"&&(f?P():E());break;case"ArrowUp":a==="vertical"&&P();break}const x=w%b;(M=m[x].ref.current)==null||M.focus()});return h.jsx(vO,{scope:n,disabled:r,direction:o,orientation:a,children:h.jsx(rl.Slot,{scope:n,children:h.jsx(Z.div,{...i,"data-orientation":a,ref:l,onKeyDown:r?void 0:p})})})}),Ea="AccordionItem",[yO,al]=xa(Ea),Jg=_.forwardRef((e,t)=>{const{__scopeAccordion:n,value:r,...o}=e,a=_a(Ea,n),i=pO(Ea,n),s=ol(n),l=De(),c=r&&i.value.includes(r)||!1,u=a.disabled||e.disabled;return h.jsx(yO,{scope:n,open:c,disabled:u,triggerId:l,children:h.jsx(Yg,{"data-orientation":a.orientation,"data-state":am(c),...s,...o,ref:t,disabled:u,open:c,onOpenChange:f=>{f?i.onItemOpen(r):i.onItemClose(r)}})})});Jg.displayName=Ea;var em="AccordionHeader",tm=_.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=_a(tn,n),a=al(em,n);return h.jsx(Z.h3,{"data-orientation":o.orientation,"data-state":am(a.open),"data-disabled":a.disabled?"":void 0,...r,ref:t})});tm.displayName=em;var il="AccordionTrigger",nm=_.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=_a(tn,n),a=al(il,n),i=hO(il,n),s=ol(n);return h.jsx(rl.ItemSlot,{scope:n,children:h.jsx(sO,{"aria-disabled":a.open&&!i.collapsible||void 0,"data-orientation":o.orientation,id:a.triggerId,...s,...r,ref:t})})});nm.displayName=il;var rm="AccordionContent",om=_.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=_a(tn,n),a=al(rm,n),i=ol(n);return h.jsx(lO,{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}})});om.displayName=rm;function am(e){return e?"open":"closed"}var bO=Kg,wO=Jg,CO=tm,im=nm,sm=om;/**
* @license lucide-react v0.468.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const SO=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),lm=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/**
* @license lucide-react v0.468.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.468.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const _O=_.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:a,iconNode:i,...s},l)=>_.createElement("svg",{ref:l,...xO,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:lm("lucide",o),...s},[...i.map(([c,u])=>_.createElement(c,u)),...Array.isArray(a)?a:[a]]));/**
* @license lucide-react v0.468.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const it=(e,t)=>{const n=_.forwardRef(({className:r,...o},a)=>_.createElement(_O,{ref:a,iconNode:t,className:lm(`lucide-${SO(e)}`,r),...o}));return n.displayName=`${e}`,n};/**
* @license lucide-react v0.468.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const EO=it("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);/**
* @license lucide-react v0.468.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const PO=it("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);/**
* @license lucide-react v0.468.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const MO=it("Calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]]);/**
* @license lucide-react v0.468.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const sr=it("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
* @license lucide-react v0.468.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const sl=it("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
* @license lucide-react v0.468.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const NO=it("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);/**
* @license lucide-react v0.468.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const ll=it("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
* @license lucide-react v0.468.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const TO=it("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/**
* @license lucide-react v0.468.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Pa=it("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);/**
* @license lucide-react v0.468.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const AO=it("Dot",[["circle",{cx:"12.1",cy:"12.1",r:"1",key:"18d7e5"}]]);/**
* @license lucide-react v0.468.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const cm=it("Ellipsis",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]]);/**
* @license lucide-react v0.468.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const OO=it("GripVertical",[["circle",{cx:"9",cy:"12",r:"1",key:"1vctgf"}],["circle",{cx:"9",cy:"5",r:"1",key:"hp0tcf"}],["circle",{cx:"9",cy:"19",r:"1",key:"fkjjf6"}],["circle",{cx:"15",cy:"12",r:"1",key:"1tmaij"}],["circle",{cx:"15",cy:"5",r:"1",key:"19l28e"}],["circle",{cx:"15",cy:"19",r:"1",key:"f4zoj3"}]]);/**
* @license lucide-react v0.468.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const DO=it("Minus",[["path",{d:"M5 12h14",key:"1ays0h"}]]);/**
* @license lucide-react v0.468.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const IO=it("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
* @license lucide-react v0.468.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const cl=it("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),um=bO,ul=d.forwardRef(({className:e,...t},n)=>h.jsx(wO,{ref:n,className:L("border-b",e),...t}));ul.displayName="AccordionItem";const dl=d.forwardRef(({className:e,children:t,customIcon:n,...r},o)=>h.jsx(CO,{className:"flex",children:h.jsxs(im,{ref:o,className:L("flex flex-1 items-center justify-between py-4 font-medium transition-all [&[data-state=open]>svg]:rotate-180 group",e),...r,children:[t,n||h.jsx(sl,{className:"h-4 w-4 shrink-0 transition-transform duration-200"})]})}));dl.displayName=im.displayName;const fl=d.forwardRef(({className:e,children:t,...n},r)=>h.jsx(sm,{ref:r,className:"overflow-hidden text-sm transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",...n,children:h.jsx("div",{className:L("pb-4 pt-0",e),children:t})}));fl.displayName=sm.displayName;function kO(e,t=globalThis==null?void 0:globalThis.document){const n=Ae(e);d.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 $O="DismissableLayer",pl="dismissableLayer.update",RO="dismissableLayer.pointerDownOutside",LO="dismissableLayer.focusOutside",dm,fm=d.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),gn=d.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:i,onDismiss:s,...l}=e,c=d.useContext(fm),[u,f]=d.useState(null),p=(u==null?void 0:u.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,g]=d.useState({}),v=ce(t,x=>f(x)),m=Array.from(c.layers),[y]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),b=m.indexOf(y),w=u?m.indexOf(u):-1,C=c.layersWithOutsidePointerEventsDisabled.size>0,S=w>=b,E=zO(x=>{const M=x.target,N=[...c.branches].some(R=>R.contains(M));!S||N||(o==null||o(x),i==null||i(x),x.defaultPrevented||s==null||s())},p),P=HO(x=>{const M=x.target;[...c.branches].some(R=>R.contains(M))||(a==null||a(x),i==null||i(x),x.defaultPrevented||s==null||s())},p);return kO(x=>{w===c.layers.size-1&&(r==null||r(x),!x.defaultPrevented&&s&&(x.preventDefault(),s()))},p),d.useEffect(()=>{if(u)return n&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(dm=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(u)),c.layers.add(u),pm(),()=>{n&&c.layersWithOutsidePointerEventsDisabled.size===1&&(p.body.style.pointerEvents=dm)}},[u,p,n,c]),d.useEffect(()=>()=>{u&&(c.layers.delete(u),c.layersWithOutsidePointerEventsDisabled.delete(u),pm())},[u,c]),d.useEffect(()=>{const x=()=>g({});return document.addEventListener(pl,x),()=>document.removeEventListener(pl,x)},[]),h.jsx(Z.div,{...l,ref:v,style:{pointerEvents:C?S?"auto":"none":void 0,...e.style},onFocusCapture:j(e.onFocusCapture,P.onFocusCapture),onBlurCapture:j(e.onBlurCapture,P.onBlurCapture),onPointerDownCapture:j(e.onPointerDownCapture,E.onPointerDownCapture)})});gn.displayName=$O;var FO="DismissableLayerBranch",BO=d.forwardRef((e,t)=>{const n=d.useContext(fm),r=d.useRef(null),o=ce(t,r);return d.useEffect(()=>{const a=r.current;if(a)return n.branches.add(a),()=>{n.branches.delete(a)}},[n.branches]),h.jsx(Z.div,{...e,ref:o})});BO.displayName=FO;function zO(e,t=globalThis==null?void 0:globalThis.document){const n=Ae(e),r=d.useRef(!1),o=d.useRef(()=>{});return d.useEffect(()=>{const a=s=>{if(s.target&&!r.current){let l=function(){hm(RO,n,c,{discrete:!0})};const c={originalEvent:s};s.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",a)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",a),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function HO(e,t=globalThis==null?void 0:globalThis.document){const n=Ae(e),r=d.useRef(!1);return d.useEffect(()=>{const o=a=>{a.target&&!r.current&&hm(LO,n,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function pm(){const e=new CustomEvent(pl);document.dispatchEvent(e)}function hm(e,t,n,{discrete:r}){const o=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Ca(o,a):o.dispatchEvent(a)}var hl="focusScope.autoFocusOnMount",gl="focusScope.autoFocusOnUnmount",gm={bubbles:!1,cancelable:!0},VO="FocusScope",oo=d.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...i}=e,[s,l]=d.useState(null),c=Ae(o),u=Ae(a),f=d.useRef(null),p=ce(t,m=>l(m)),g=d.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;d.useEffect(()=>{if(r){let m=function(C){if(g.paused||!s)return;const S=C.target;s.contains(S)?f.current=S:mn(f.current,{select:!0})},y=function(C){if(g.paused||!s)return;const S=C.relatedTarget;S!==null&&(s.contains(S)||mn(f.current,{select:!0}))},b=function(C){if(document.activeElement===document.body)for(const E of C)E.removedNodes.length>0&&mn(s)};document.addEventListener("focusin",m),document.addEventListener("focusout",y);const w=new MutationObserver(b);return s&&w.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",m),document.removeEventListener("focusout",y),w.disconnect()}}},[r,s,g.paused]),d.useEffect(()=>{if(s){ym.add(g);const m=document.activeElement;if(!s.contains(m)){const b=new CustomEvent(hl,gm);s.addEventListener(hl,c),s.dispatchEvent(b),b.defaultPrevented||(WO(YO(mm(s)),{select:!0}),document.activeElement===m&&mn(s))}return()=>{s.removeEventListener(hl,c),setTimeout(()=>{const b=new CustomEvent(gl,gm);s.addEventListener(gl,u),s.dispatchEvent(b),b.defaultPrevented||mn(m??document.body,{select:!0}),s.removeEventListener(gl,u),ym.remove(g)},0)}}},[s,c,u,g]);const v=d.useCallback(m=>{if(!n&&!r||g.paused)return;const y=m.key==="Tab"&&!m.altKey&&!m.ctrlKey&&!m.metaKey,b=document.activeElement;if(y&&b){const w=m.currentTarget,[C,S]=qO(w);C&&S?!m.shiftKey&&b===S?(m.preventDefault(),n&&mn(C,{select:!0})):m.shiftKey&&b===C&&(m.preventDefault(),n&&mn(S,{select:!0})):b===w&&m.preventDefault()}},[n,r,g.paused]);return h.jsx(Z.div,{tabIndex:-1,...i,ref:p,onKeyDown:v})});oo.displayName=VO;function WO(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(mn(r,{select:t}),document.activeElement!==n)return}function qO(e){const t=mm(e),n=vm(t,e),r=vm(t.reverse(),e);return[n,r]}function mm(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 vm(e,t){for(const n of e)if(!jO(n,{upTo:t}))return n}function jO(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 GO(e){return e instanceof HTMLInputElement&&"select"in e}function mn(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&GO(e)&&t&&e.select()}}var ym=UO();function UO(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=bm(e,t),e.unshift(t)},remove(t){var n;e=bm(e,t),(n=e[0])==null||n.resume()}}}function bm(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function YO(e){return e.filter(t=>t.tagName!=="A")}var KO="Portal",ao=d.forwardRef((e,t)=>{var s;const{container:n,...r}=e,[o,a]=d.useState(!1);qe(()=>a(!0),[]);const i=n||o&&((s=globalThis==null?void 0:globalThis.document)==null?void 0:s.body);return i?ya.createPortal(h.jsx(Z.div,{...r,ref:t}),i):null});ao.displayName=KO;var ml=0;function Ma(){d.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??wm()),document.body.insertAdjacentElement("beforeend",e[1]??wm()),ml++,()=>{ml===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),ml--}},[])}function wm(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var _e=function(){return _e=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},_e.apply(this,arguments)};function vn(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&