rently-components 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +73 -0
- package/dist/components/Badge.d.ts +7 -0
- package/dist/components/Button.d.ts +9 -0
- package/dist/components/Input.d.ts +8 -0
- package/dist/components/Select.d.ts +15 -0
- package/dist/components/SideNavigation.d.ts +22 -0
- package/dist/components/Stepper.d.ts +11 -0
- package/dist/components/Switch.d.ts +4 -0
- package/dist/index.d.ts +8 -0
- package/dist/rently-components.css +1 -0
- package/dist/rently-components.es.js +6966 -0
- package/dist/rently-components.umd.js +46 -0
- package/dist/utils/cn.d.ts +2 -0
- package/dist/vite.svg +1 -0
- package/package.json +74 -0
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
(function(se,Q){typeof exports=="object"&&typeof module<"u"?Q(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],Q):(se=typeof globalThis<"u"?globalThis:se||self,Q(se["rently-components"]={},se.React,se.ReactDOM))})(this,(function(se,Q,fn){"use strict";function pn(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 u=pn(Q),Qe=pn(fn);var et={exports:{}},Ye={};var mn;function To(){if(mn)return Ye;mn=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,o,s){var i=null;if(s!==void 0&&(i=""+s),o.key!==void 0&&(i=""+o.key),"key"in o){s={};for(var a in o)a!=="key"&&(s[a]=o[a])}else s=o;return o=s.ref,{$$typeof:e,type:r,key:i,ref:o!==void 0?o:null,props:s}}return Ye.Fragment=t,Ye.jsx=n,Ye.jsxs=n,Ye}var Ge={};var hn;function Oo(){return hn||(hn=1,process.env.NODE_ENV!=="production"&&(function(){function e(S){if(S==null)return null;if(typeof S=="function")return S.$$typeof===V?null:S.displayName||S.name||null;if(typeof S=="string")return S;switch(S){case m:return"Fragment";case w:return"Profiler";case b:return"StrictMode";case N:return"Suspense";case A:return"SuspenseList";case B:return"Activity"}if(typeof S=="object")switch(typeof S.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),S.$$typeof){case d:return"Portal";case E:return S.displayName||"Context";case y:return(S._context.displayName||"Context")+".Consumer";case k:var _=S.render;return S=S.displayName,S||(S=_.displayName||_.name||"",S=S!==""?"ForwardRef("+S+")":"ForwardRef"),S;case P:return _=S.displayName||null,_!==null?_:e(S.type)||"Memo";case M:_=S._payload,S=S._init;try{return e(S(_))}catch{}}return null}function t(S){return""+S}function n(S){try{t(S);var _=!1}catch{_=!0}if(_){_=console;var j=_.error,L=typeof Symbol=="function"&&Symbol.toStringTag&&S[Symbol.toStringTag]||S.constructor.name||"Object";return j.call(_,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",L),t(S)}}function r(S){if(S===m)return"<>";if(typeof S=="object"&&S!==null&&S.$$typeof===M)return"<...>";try{var _=e(S);return _?"<"+_+">":"<...>"}catch{return"<...>"}}function o(){var S=W.A;return S===null?null:S.getOwner()}function s(){return Error("react-stack-top-frame")}function i(S){if($.call(S,"key")){var _=Object.getOwnPropertyDescriptor(S,"key").get;if(_&&_.isReactWarning)return!1}return S.key!==void 0}function a(S,_){function j(){I||(I=!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)",_))}j.isReactWarning=!0,Object.defineProperty(S,"key",{get:j,configurable:!0})}function c(){var S=e(this.type);return D[S]||(D[S]=!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.")),S=this.props.ref,S!==void 0?S:null}function l(S,_,j,L,oe,ae){var R=j.ref;return S={$$typeof:v,type:S,key:_,props:j,_owner:L},(R!==void 0?R:null)!==null?Object.defineProperty(S,"ref",{enumerable:!1,get:c}):Object.defineProperty(S,"ref",{enumerable:!1,value:null}),S._store={},Object.defineProperty(S._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(S,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(S,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:oe}),Object.defineProperty(S,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:ae}),Object.freeze&&(Object.freeze(S.props),Object.freeze(S)),S}function f(S,_,j,L,oe,ae){var R=_.children;if(R!==void 0)if(L)if(z(R)){for(L=0;L<R.length;L++)p(R[L]);Object.freeze&&Object.freeze(R)}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 p(R);if($.call(_,"key")){R=e(S);var U=Object.keys(_).filter(function(Y){return Y!=="key"});L=0<U.length?"{key: someKey, "+U.join(": ..., ")+": ...}":"{key: someKey}",te[R+L]||(U=0<U.length?"{"+U.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
|
|
2
|
+
let props = %s;
|
|
3
|
+
<%s {...props} />
|
|
4
|
+
React keys must be passed directly to JSX without using spread:
|
|
5
|
+
let props = %s;
|
|
6
|
+
<%s key={someKey} {...props} />`,L,R,U,R),te[R+L]=!0)}if(R=null,j!==void 0&&(n(j),R=""+j),i(_)&&(n(_.key),R=""+_.key),"key"in _){j={};for(var q in _)q!=="key"&&(j[q]=_[q])}else j=_;return R&&a(j,typeof S=="function"?S.displayName||S.name||"Unknown":S),l(S,R,j,o(),oe,ae)}function p(S){g(S)?S._store&&(S._store.validated=1):typeof S=="object"&&S!==null&&S.$$typeof===M&&(S._payload.status==="fulfilled"?g(S._payload.value)&&S._payload.value._store&&(S._payload.value._store.validated=1):S._store&&(S._store.validated=1))}function g(S){return typeof S=="object"&&S!==null&&S.$$typeof===v}var h=Q,v=Symbol.for("react.transitional.element"),d=Symbol.for("react.portal"),m=Symbol.for("react.fragment"),b=Symbol.for("react.strict_mode"),w=Symbol.for("react.profiler"),y=Symbol.for("react.consumer"),E=Symbol.for("react.context"),k=Symbol.for("react.forward_ref"),N=Symbol.for("react.suspense"),A=Symbol.for("react.suspense_list"),P=Symbol.for("react.memo"),M=Symbol.for("react.lazy"),B=Symbol.for("react.activity"),V=Symbol.for("react.client.reference"),W=h.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,$=Object.prototype.hasOwnProperty,z=Array.isArray,H=console.createTask?console.createTask:function(){return null};h={react_stack_bottom_frame:function(S){return S()}};var I,D={},C=h.react_stack_bottom_frame.bind(h,s)(),G=H(r(s)),te={};Ge.Fragment=m,Ge.jsx=function(S,_,j){var L=1e4>W.recentlyCreatedOwnerStacks++;return f(S,_,j,!1,L?Error("react-stack-top-frame"):C,L?H(r(S)):G)},Ge.jsxs=function(S,_,j){var L=1e4>W.recentlyCreatedOwnerStacks++;return f(S,_,j,!0,L?Error("react-stack-top-frame"):C,L?H(r(S)):G)}})()),Ge}var gn;function No(){return gn||(gn=1,process.env.NODE_ENV==="production"?et.exports=To():et.exports=Oo()),et.exports}var x=No();function vn(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=vn(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function bn(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=vn(e))&&(r&&(r+=" "),r+=t);return r}const _o=(e,t)=>{const n=new Array(e.length+t.length);for(let r=0;r<e.length;r++)n[r]=e[r];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},Io=(e,t)=>({classGroupId:e,validator:t}),wn=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),tt="-",xn=[],Mo="arbitrary..",jo=e=>{const t=Do(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:i=>{if(i.startsWith("[")&&i.endsWith("]"))return Lo(i);const a=i.split(tt),c=a[0]===""&&a.length>1?1:0;return yn(a,c,t)},getConflictingClassGroupIds:(i,a)=>{if(a){const c=r[i],l=n[i];return c?l?_o(l,c):c:l||xn}return n[i]||xn}}},yn=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const o=e[t],s=n.nextPart.get(o);if(s){const l=yn(e,t+1,s);if(l)return l}const i=n.validators;if(i===null)return;const a=t===0?e.join(tt):e.slice(t).join(tt),c=i.length;for(let l=0;l<c;l++){const f=i[l];if(f.validator(a))return f.classGroupId}},Lo=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),n=t.indexOf(":"),r=t.slice(0,n);return r?Mo+r:void 0})(),Do=e=>{const{theme:t,classGroups:n}=e;return Fo(n,t)},Fo=(e,t)=>{const n=wn();for(const r in e){const o=e[r];At(o,n,r,t)}return n},At=(e,t,n,r)=>{const o=e.length;for(let s=0;s<o;s++){const i=e[s];Bo(i,t,n,r)}},Bo=(e,t,n,r)=>{if(typeof e=="string"){Wo(e,t,n);return}if(typeof e=="function"){zo(e,t,n,r);return}Vo(e,t,n,r)},Wo=(e,t,n)=>{const r=e===""?t:Sn(t,e);r.classGroupId=n},zo=(e,t,n,r)=>{if($o(e)){At(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(Io(n,e))},Vo=(e,t,n,r)=>{const o=Object.entries(e),s=o.length;for(let i=0;i<s;i++){const[a,c]=o[i];At(c,Sn(t,a),n,r)}},Sn=(e,t)=>{let n=e;const r=t.split(tt),o=r.length;for(let s=0;s<o;s++){const i=r[s];let a=n.nextPart.get(i);a||(a=wn(),n.nextPart.set(i,a)),n=a}return n},$o=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,Ho=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null);const o=(s,i)=>{n[s]=i,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(s){let i=n[s];if(i!==void 0)return i;if((i=r[s])!==void 0)return o(s,i),i},set(s,i){s in n?n[s]=i:o(s,i)}}},Tt="!",Cn=":",Uo=[],En=(e,t,n,r,o)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:o}),Yo=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=o=>{const s=[];let i=0,a=0,c=0,l;const f=o.length;for(let d=0;d<f;d++){const m=o[d];if(i===0&&a===0){if(m===Cn){s.push(o.slice(c,d)),c=d+1;continue}if(m==="/"){l=d;continue}}m==="["?i++:m==="]"?i--:m==="("?a++:m===")"&&a--}const p=s.length===0?o:o.slice(c);let g=p,h=!1;p.endsWith(Tt)?(g=p.slice(0,-1),h=!0):p.startsWith(Tt)&&(g=p.slice(1),h=!0);const v=l&&l>c?l-c:void 0;return En(s,h,g,v)};if(t){const o=t+Cn,s=r;r=i=>i.startsWith(o)?s(i.slice(o.length)):En(Uo,!1,i,void 0,!0)}if(n){const o=r;r=s=>n({className:s,parseClassName:o})}return r},Go=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((n,r)=>{t.set(n,1e6+r)}),n=>{const r=[];let o=[];for(let s=0;s<n.length;s++){const i=n[s],a=i[0]==="[",c=t.has(i);a||c?(o.length>0&&(o.sort(),r.push(...o),o=[]),r.push(i)):o.push(i)}return o.length>0&&(o.sort(),r.push(...o)),r}},Ko=e=>({cache:Ho(e.cacheSize),parseClassName:Yo(e),sortModifiers:Go(e),...jo(e)}),Xo=/\s+/,qo=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o,sortModifiers:s}=t,i=[],a=e.trim().split(Xo);let c="";for(let l=a.length-1;l>=0;l-=1){const f=a[l],{isExternal:p,modifiers:g,hasImportantModifier:h,baseClassName:v,maybePostfixModifierPosition:d}=n(f);if(p){c=f+(c.length>0?" "+c:c);continue}let m=!!d,b=r(m?v.substring(0,d):v);if(!b){if(!m){c=f+(c.length>0?" "+c:c);continue}if(b=r(v),!b){c=f+(c.length>0?" "+c:c);continue}m=!1}const w=g.length===0?"":g.length===1?g[0]:s(g).join(":"),y=h?w+Tt:w,E=y+b;if(i.indexOf(E)>-1)continue;i.push(E);const k=o(b,m);for(let N=0;N<k.length;++N){const A=k[N];i.push(y+A)}c=f+(c.length>0?" "+c:c)}return c},Zo=(...e)=>{let t=0,n,r,o="";for(;t<e.length;)(n=e[t++])&&(r=Rn(n))&&(o&&(o+=" "),o+=r);return o},Rn=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=Rn(e[r]))&&(n&&(n+=" "),n+=t);return n},Jo=(e,...t)=>{let n,r,o,s;const i=c=>{const l=t.reduce((f,p)=>p(f),e());return n=Ko(l),r=n.cache.get,o=n.cache.set,s=a,a(c)},a=c=>{const l=r(c);if(l)return l;const f=qo(c,n);return o(c,f),f};return s=i,(...c)=>s(Zo(...c))},Qo=[],ne=e=>{const t=n=>n[e]||Qo;return t.isThemeGetter=!0,t},kn=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Pn=/^\((?:(\w[\w-]*):)?(.+)\)$/i,es=/^\d+\/\d+$/,ts=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,ns=/\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$/,rs=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,os=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,ss=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Me=e=>es.test(e),F=e=>!!e&&!Number.isNaN(Number(e)),Se=e=>!!e&&Number.isInteger(Number(e)),Ot=e=>e.endsWith("%")&&F(e.slice(0,-1)),we=e=>ts.test(e),is=()=>!0,as=e=>ns.test(e)&&!rs.test(e),An=()=>!1,cs=e=>os.test(e),ls=e=>ss.test(e),us=e=>!T(e)&&!O(e),ds=e=>je(e,In,An),T=e=>kn.test(e),Ae=e=>je(e,Mn,as),Nt=e=>je(e,gs,F),Tn=e=>je(e,Nn,An),fs=e=>je(e,_n,ls),nt=e=>je(e,jn,cs),O=e=>Pn.test(e),Ke=e=>Le(e,Mn),ps=e=>Le(e,vs),On=e=>Le(e,Nn),ms=e=>Le(e,In),hs=e=>Le(e,_n),rt=e=>Le(e,jn,!0),je=(e,t,n)=>{const r=kn.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},Le=(e,t,n=!1)=>{const r=Pn.exec(e);return r?r[1]?t(r[1]):n:!1},Nn=e=>e==="position"||e==="percentage",_n=e=>e==="image"||e==="url",In=e=>e==="length"||e==="size"||e==="bg-size",Mn=e=>e==="length",gs=e=>e==="number",vs=e=>e==="family-name",jn=e=>e==="shadow",bs=Jo(()=>{const e=ne("color"),t=ne("font"),n=ne("text"),r=ne("font-weight"),o=ne("tracking"),s=ne("leading"),i=ne("breakpoint"),a=ne("container"),c=ne("spacing"),l=ne("radius"),f=ne("shadow"),p=ne("inset-shadow"),g=ne("text-shadow"),h=ne("drop-shadow"),v=ne("blur"),d=ne("perspective"),m=ne("aspect"),b=ne("ease"),w=ne("animate"),y=()=>["auto","avoid","all","avoid-page","page","left","right","column"],E=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],k=()=>[...E(),O,T],N=()=>["auto","hidden","clip","visible","scroll"],A=()=>["auto","contain","none"],P=()=>[O,T,c],M=()=>[Me,"full","auto",...P()],B=()=>[Se,"none","subgrid",O,T],V=()=>["auto",{span:["full",Se,O,T]},Se,O,T],W=()=>[Se,"auto",O,T],$=()=>["auto","min","max","fr",O,T],z=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],H=()=>["start","end","center","stretch","center-safe","end-safe"],I=()=>["auto",...P()],D=()=>[Me,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...P()],C=()=>[e,O,T],G=()=>[...E(),On,Tn,{position:[O,T]}],te=()=>["no-repeat",{repeat:["","x","y","space","round"]}],S=()=>["auto","cover","contain",ms,ds,{size:[O,T]}],_=()=>[Ot,Ke,Ae],j=()=>["","none","full",l,O,T],L=()=>["",F,Ke,Ae],oe=()=>["solid","dashed","dotted","double"],ae=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],R=()=>[F,Ot,On,Tn],U=()=>["","none",v,O,T],q=()=>["none",F,O,T],Y=()=>["none",F,O,T],K=()=>[F,O,T],X=()=>[Me,"full",...P()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[we],breakpoint:[we],color:[is],container:[we],"drop-shadow":[we],ease:["in","out","in-out"],font:[us],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[we],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[we],shadow:[we],spacing:["px",F],text:[we],"text-shadow":[we],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Me,T,O,m]}],container:["container"],columns:[{columns:[F,T,O,a]}],"break-after":[{"break-after":y()}],"break-before":[{"break-before":y()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:k()}],overflow:[{overflow:N()}],"overflow-x":[{"overflow-x":N()}],"overflow-y":[{"overflow-y":N()}],overscroll:[{overscroll:A()}],"overscroll-x":[{"overscroll-x":A()}],"overscroll-y":[{"overscroll-y":A()}],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:[Se,"auto",O,T]}],basis:[{basis:[Me,"full","auto",a,...P()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[F,Me,"auto","initial","none",T]}],grow:[{grow:["",F,O,T]}],shrink:[{shrink:["",F,O,T]}],order:[{order:[Se,"first","last","none",O,T]}],"grid-cols":[{"grid-cols":B()}],"col-start-end":[{col:V()}],"col-start":[{"col-start":W()}],"col-end":[{"col-end":W()}],"grid-rows":[{"grid-rows":B()}],"row-start-end":[{row:V()}],"row-start":[{"row-start":W()}],"row-end":[{"row-end":W()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":$()}],"auto-rows":[{"auto-rows":$()}],gap:[{gap:P()}],"gap-x":[{"gap-x":P()}],"gap-y":[{"gap-y":P()}],"justify-content":[{justify:[...z(),"normal"]}],"justify-items":[{"justify-items":[...H(),"normal"]}],"justify-self":[{"justify-self":["auto",...H()]}],"align-content":[{content:["normal",...z()]}],"align-items":[{items:[...H(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...H(),{baseline:["","last"]}]}],"place-content":[{"place-content":z()}],"place-items":[{"place-items":[...H(),"baseline"]}],"place-self":[{"place-self":["auto",...H()]}],p:[{p:P()}],px:[{px:P()}],py:[{py:P()}],ps:[{ps:P()}],pe:[{pe:P()}],pt:[{pt:P()}],pr:[{pr:P()}],pb:[{pb:P()}],pl:[{pl:P()}],m:[{m:I()}],mx:[{mx:I()}],my:[{my:I()}],ms:[{ms:I()}],me:[{me:I()}],mt:[{mt:I()}],mr:[{mr:I()}],mb:[{mb:I()}],ml:[{ml:I()}],"space-x":[{"space-x":P()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":P()}],"space-y-reverse":["space-y-reverse"],size:[{size:D()}],w:[{w:[a,"screen",...D()]}],"min-w":[{"min-w":[a,"screen","none",...D()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[i]},...D()]}],h:[{h:["screen","lh",...D()]}],"min-h":[{"min-h":["screen","lh","none",...D()]}],"max-h":[{"max-h":["screen","lh",...D()]}],"font-size":[{text:["base",n,Ke,Ae]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,O,Nt]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Ot,T]}],"font-family":[{font:[ps,T,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,O,T]}],"line-clamp":[{"line-clamp":[F,"none",O,Nt]}],leading:[{leading:[s,...P()]}],"list-image":[{"list-image":["none",O,T]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",O,T]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:C()}],"text-color":[{text:C()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...oe(),"wavy"]}],"text-decoration-thickness":[{decoration:[F,"from-font","auto",O,Ae]}],"text-decoration-color":[{decoration:C()}],"underline-offset":[{"underline-offset":[F,"auto",O,T]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:P()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",O,T]}],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",O,T]}],"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:te()}],"bg-size":[{bg:S()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Se,O,T],radial:["",O,T],conic:[Se,O,T]},hs,fs]}],"bg-color":[{bg:C()}],"gradient-from-pos":[{from:_()}],"gradient-via-pos":[{via:_()}],"gradient-to-pos":[{to:_()}],"gradient-from":[{from:C()}],"gradient-via":[{via:C()}],"gradient-to":[{to:C()}],rounded:[{rounded:j()}],"rounded-s":[{"rounded-s":j()}],"rounded-e":[{"rounded-e":j()}],"rounded-t":[{"rounded-t":j()}],"rounded-r":[{"rounded-r":j()}],"rounded-b":[{"rounded-b":j()}],"rounded-l":[{"rounded-l":j()}],"rounded-ss":[{"rounded-ss":j()}],"rounded-se":[{"rounded-se":j()}],"rounded-ee":[{"rounded-ee":j()}],"rounded-es":[{"rounded-es":j()}],"rounded-tl":[{"rounded-tl":j()}],"rounded-tr":[{"rounded-tr":j()}],"rounded-br":[{"rounded-br":j()}],"rounded-bl":[{"rounded-bl":j()}],"border-w":[{border:L()}],"border-w-x":[{"border-x":L()}],"border-w-y":[{"border-y":L()}],"border-w-s":[{"border-s":L()}],"border-w-e":[{"border-e":L()}],"border-w-t":[{"border-t":L()}],"border-w-r":[{"border-r":L()}],"border-w-b":[{"border-b":L()}],"border-w-l":[{"border-l":L()}],"divide-x":[{"divide-x":L()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":L()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...oe(),"hidden","none"]}],"divide-style":[{divide:[...oe(),"hidden","none"]}],"border-color":[{border:C()}],"border-color-x":[{"border-x":C()}],"border-color-y":[{"border-y":C()}],"border-color-s":[{"border-s":C()}],"border-color-e":[{"border-e":C()}],"border-color-t":[{"border-t":C()}],"border-color-r":[{"border-r":C()}],"border-color-b":[{"border-b":C()}],"border-color-l":[{"border-l":C()}],"divide-color":[{divide:C()}],"outline-style":[{outline:[...oe(),"none","hidden"]}],"outline-offset":[{"outline-offset":[F,O,T]}],"outline-w":[{outline:["",F,Ke,Ae]}],"outline-color":[{outline:C()}],shadow:[{shadow:["","none",f,rt,nt]}],"shadow-color":[{shadow:C()}],"inset-shadow":[{"inset-shadow":["none",p,rt,nt]}],"inset-shadow-color":[{"inset-shadow":C()}],"ring-w":[{ring:L()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:C()}],"ring-offset-w":[{"ring-offset":[F,Ae]}],"ring-offset-color":[{"ring-offset":C()}],"inset-ring-w":[{"inset-ring":L()}],"inset-ring-color":[{"inset-ring":C()}],"text-shadow":[{"text-shadow":["none",g,rt,nt]}],"text-shadow-color":[{"text-shadow":C()}],opacity:[{opacity:[F,O,T]}],"mix-blend":[{"mix-blend":[...ae(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ae()}],"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":[F]}],"mask-image-linear-from-pos":[{"mask-linear-from":R()}],"mask-image-linear-to-pos":[{"mask-linear-to":R()}],"mask-image-linear-from-color":[{"mask-linear-from":C()}],"mask-image-linear-to-color":[{"mask-linear-to":C()}],"mask-image-t-from-pos":[{"mask-t-from":R()}],"mask-image-t-to-pos":[{"mask-t-to":R()}],"mask-image-t-from-color":[{"mask-t-from":C()}],"mask-image-t-to-color":[{"mask-t-to":C()}],"mask-image-r-from-pos":[{"mask-r-from":R()}],"mask-image-r-to-pos":[{"mask-r-to":R()}],"mask-image-r-from-color":[{"mask-r-from":C()}],"mask-image-r-to-color":[{"mask-r-to":C()}],"mask-image-b-from-pos":[{"mask-b-from":R()}],"mask-image-b-to-pos":[{"mask-b-to":R()}],"mask-image-b-from-color":[{"mask-b-from":C()}],"mask-image-b-to-color":[{"mask-b-to":C()}],"mask-image-l-from-pos":[{"mask-l-from":R()}],"mask-image-l-to-pos":[{"mask-l-to":R()}],"mask-image-l-from-color":[{"mask-l-from":C()}],"mask-image-l-to-color":[{"mask-l-to":C()}],"mask-image-x-from-pos":[{"mask-x-from":R()}],"mask-image-x-to-pos":[{"mask-x-to":R()}],"mask-image-x-from-color":[{"mask-x-from":C()}],"mask-image-x-to-color":[{"mask-x-to":C()}],"mask-image-y-from-pos":[{"mask-y-from":R()}],"mask-image-y-to-pos":[{"mask-y-to":R()}],"mask-image-y-from-color":[{"mask-y-from":C()}],"mask-image-y-to-color":[{"mask-y-to":C()}],"mask-image-radial":[{"mask-radial":[O,T]}],"mask-image-radial-from-pos":[{"mask-radial-from":R()}],"mask-image-radial-to-pos":[{"mask-radial-to":R()}],"mask-image-radial-from-color":[{"mask-radial-from":C()}],"mask-image-radial-to-color":[{"mask-radial-to":C()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":E()}],"mask-image-conic-pos":[{"mask-conic":[F]}],"mask-image-conic-from-pos":[{"mask-conic-from":R()}],"mask-image-conic-to-pos":[{"mask-conic-to":R()}],"mask-image-conic-from-color":[{"mask-conic-from":C()}],"mask-image-conic-to-color":[{"mask-conic-to":C()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:G()}],"mask-repeat":[{mask:te()}],"mask-size":[{mask:S()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",O,T]}],filter:[{filter:["","none",O,T]}],blur:[{blur:U()}],brightness:[{brightness:[F,O,T]}],contrast:[{contrast:[F,O,T]}],"drop-shadow":[{"drop-shadow":["","none",h,rt,nt]}],"drop-shadow-color":[{"drop-shadow":C()}],grayscale:[{grayscale:["",F,O,T]}],"hue-rotate":[{"hue-rotate":[F,O,T]}],invert:[{invert:["",F,O,T]}],saturate:[{saturate:[F,O,T]}],sepia:[{sepia:["",F,O,T]}],"backdrop-filter":[{"backdrop-filter":["","none",O,T]}],"backdrop-blur":[{"backdrop-blur":U()}],"backdrop-brightness":[{"backdrop-brightness":[F,O,T]}],"backdrop-contrast":[{"backdrop-contrast":[F,O,T]}],"backdrop-grayscale":[{"backdrop-grayscale":["",F,O,T]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[F,O,T]}],"backdrop-invert":[{"backdrop-invert":["",F,O,T]}],"backdrop-opacity":[{"backdrop-opacity":[F,O,T]}],"backdrop-saturate":[{"backdrop-saturate":[F,O,T]}],"backdrop-sepia":[{"backdrop-sepia":["",F,O,T]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":P()}],"border-spacing-x":[{"border-spacing-x":P()}],"border-spacing-y":[{"border-spacing-y":P()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",O,T]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[F,"initial",O,T]}],ease:[{ease:["linear","initial",b,O,T]}],delay:[{delay:[F,O,T]}],animate:[{animate:["none",w,O,T]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[d,O,T]}],"perspective-origin":[{"perspective-origin":k()}],rotate:[{rotate:q()}],"rotate-x":[{"rotate-x":q()}],"rotate-y":[{"rotate-y":q()}],"rotate-z":[{"rotate-z":q()}],scale:[{scale:Y()}],"scale-x":[{"scale-x":Y()}],"scale-y":[{"scale-y":Y()}],"scale-z":[{"scale-z":Y()}],"scale-3d":["scale-3d"],skew:[{skew:K()}],"skew-x":[{"skew-x":K()}],"skew-y":[{"skew-y":K()}],transform:[{transform:[O,T,"","none","gpu","cpu"]}],"transform-origin":[{origin:k()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:X()}],"translate-x":[{"translate-x":X()}],"translate-y":[{"translate-y":X()}],"translate-z":[{"translate-z":X()}],"translate-none":["translate-none"],accent:[{accent:C()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:C()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",O,T]}],"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":P()}],"scroll-mx":[{"scroll-mx":P()}],"scroll-my":[{"scroll-my":P()}],"scroll-ms":[{"scroll-ms":P()}],"scroll-me":[{"scroll-me":P()}],"scroll-mt":[{"scroll-mt":P()}],"scroll-mr":[{"scroll-mr":P()}],"scroll-mb":[{"scroll-mb":P()}],"scroll-ml":[{"scroll-ml":P()}],"scroll-p":[{"scroll-p":P()}],"scroll-px":[{"scroll-px":P()}],"scroll-py":[{"scroll-py":P()}],"scroll-ps":[{"scroll-ps":P()}],"scroll-pe":[{"scroll-pe":P()}],"scroll-pt":[{"scroll-pt":P()}],"scroll-pr":[{"scroll-pr":P()}],"scroll-pb":[{"scroll-pb":P()}],"scroll-pl":[{"scroll-pl":P()}],"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",O,T]}],fill:[{fill:["none",...C()]}],"stroke-w":[{stroke:[F,Ke,Ae,Nt]}],stroke:[{stroke:["none",...C()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}}),ee=(...e)=>bs(bn(e)),ws=({Icon:e,error:t,containerClassName:n,...r})=>x.jsxs("div",{className:ee("rounded-lg border-border-1 border flex justify-between items-center h-10 bg-bg-1 pr-3 focus-within:ring-border-1/80 focus-within:ring-2",t&&"border-danger focus-within:ring-danger/80",n),children:[x.jsx("input",{type:"text",className:ee("border-none outline-none flex-1 h-full w-full text-sm pl-3 placeholder:text-text-2 text-text-1",t&&"placeholder:text-danger/80"),...r}),e&&x.jsx(e,{className:ee("w-5 h-5 text-text-2",t&&"text-danger/80")})]});function Ln(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Dn(...e){return t=>{let n=!1;const r=e.map(o=>{const s=Ln(o,t);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let o=0;o<r.length;o++){const s=r[o];typeof s=="function"?s():Ln(e[o],null)}}}}function re(...e){return u.useCallback(Dn(...e),e)}function ot(e){const t=xs(e),n=u.forwardRef((r,o)=>{const{children:s,...i}=r,a=u.Children.toArray(s),c=a.find(Ss);if(c){const l=c.props.children,f=a.map(p=>p===c?u.Children.count(l)>1?u.Children.only(null):u.isValidElement(l)?l.props.children:null:p);return x.jsx(t,{...i,ref:o,children:u.isValidElement(l)?u.cloneElement(l,void 0,f):null})}return x.jsx(t,{...i,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function xs(e){const t=u.forwardRef((n,r)=>{const{children:o,...s}=n;if(u.isValidElement(o)){const i=Es(o),a=Cs(s,o.props);return o.type!==u.Fragment&&(a.ref=r?Dn(r,i):i),u.cloneElement(o,a)}return u.Children.count(o)>1?u.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var ys=Symbol("radix.slottable");function Ss(e){return u.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===ys}function Cs(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...a)=>{const c=s(...a);return o(...a),c}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function Es(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 Rs=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Z=Rs.reduce((e,t)=>{const n=ot(`Primitive.${t}`),r=u.forwardRef((o,s)=>{const{asChild:i,...a}=o,c=i?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),x.jsx(c,{...a,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function ks(e,t){e&&Qe.flushSync(()=>e.dispatchEvent(t))}var Fn=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),Ps="VisuallyHidden",As=u.forwardRef((e,t)=>x.jsx(Z.span,{...e,ref:t,style:{...Fn,...e.style}}));As.displayName=Ps;function st(e,t=[]){let n=[];function r(s,i){const a=u.createContext(i),c=n.length;n=[...n,i];const l=p=>{const{scope:g,children:h,...v}=p,d=g?.[e]?.[c]||a,m=u.useMemo(()=>v,Object.values(v));return x.jsx(d.Provider,{value:m,children:h})};l.displayName=s+"Provider";function f(p,g){const h=g?.[e]?.[c]||a,v=u.useContext(h);if(v)return v;if(i!==void 0)return i;throw new Error(`\`${p}\` must be used within \`${s}\``)}return[l,f]}const o=()=>{const s=n.map(i=>u.createContext(i));return function(a){const c=a?.[e]||s;return u.useMemo(()=>({[`__scope${e}`]:{...a,[e]:c}}),[a,c])}};return o.scopeName=e,[r,Ts(o,...t)]}function Ts(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(s){const i=r.reduce((a,{useScope:c,scopeName:l})=>{const p=c(s)[`__scope${l}`];return{...a,...p}},{});return u.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}function Os(e){const t=e+"CollectionProvider",[n,r]=st(t),[o,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),i=d=>{const{scope:m,children:b}=d,w=Q.useRef(null),y=Q.useRef(new Map).current;return x.jsx(o,{scope:m,itemMap:y,collectionRef:w,children:b})};i.displayName=t;const a=e+"CollectionSlot",c=ot(a),l=Q.forwardRef((d,m)=>{const{scope:b,children:w}=d,y=s(a,b),E=re(m,y.collectionRef);return x.jsx(c,{ref:E,children:w})});l.displayName=a;const f=e+"CollectionItemSlot",p="data-radix-collection-item",g=ot(f),h=Q.forwardRef((d,m)=>{const{scope:b,children:w,...y}=d,E=Q.useRef(null),k=re(m,E),N=s(f,b);return Q.useEffect(()=>(N.itemMap.set(E,{ref:E,...y}),()=>{N.itemMap.delete(E)})),x.jsx(g,{[p]:"",ref:k,children:w})});h.displayName=f;function v(d){const m=s(e+"CollectionConsumer",d);return Q.useCallback(()=>{const w=m.collectionRef.current;if(!w)return[];const y=Array.from(w.querySelectorAll(`[${p}]`));return Array.from(m.itemMap.values()).sort((N,A)=>y.indexOf(N.ref.current)-y.indexOf(A.ref.current))},[m.collectionRef,m.itemMap])}return[{Provider:i,Slot:l,ItemSlot:h},v,r]}function J(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e?.(o),n===!1||!o.defaultPrevented)return t?.(o)}}var ie=globalThis?.document?u.useLayoutEffect:()=>{},Ns=u[" useInsertionEffect ".trim().toString()]||ie;function _t({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,s,i]=_s({defaultProp:t,onChange:n}),a=e!==void 0,c=a?e:o;{const f=u.useRef(e!==void 0);u.useEffect(()=>{const p=f.current;p!==a&&console.warn(`${r} is changing from ${p?"controlled":"uncontrolled"} to ${a?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),f.current=a},[a,r])}const l=u.useCallback(f=>{if(a){const p=Is(f)?f(e):f;p!==e&&i.current?.(p)}else s(f)},[a,e,s,i]);return[c,l]}function _s({defaultProp:e,onChange:t}){const[n,r]=u.useState(e),o=u.useRef(n),s=u.useRef(t);return Ns(()=>{s.current=t},[t]),u.useEffect(()=>{o.current!==n&&(s.current?.(n),o.current=n)},[n,o]),[n,r,s]}function Is(e){return typeof e=="function"}var Ms=u[" useId ".trim().toString()]||(()=>{}),js=0;function It(e){const[t,n]=u.useState(Ms());return ie(()=>{n(r=>r??String(js++))},[e]),e||(t?`radix-${t}`:"")}var Ls=u.createContext(void 0);function Ds(e){const t=u.useContext(Ls);return e||t||"ltr"}function Te(e){const t=u.useRef(e);return u.useEffect(()=>{t.current=e}),u.useMemo(()=>(...n)=>t.current?.(...n),[])}function Fs(e,t=globalThis?.document){const n=Te(e);u.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 Bs="DismissableLayer",Mt="dismissableLayer.update",Ws="dismissableLayer.pointerDownOutside",zs="dismissableLayer.focusOutside",Bn,Wn=u.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),zn=u.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:i,onDismiss:a,...c}=e,l=u.useContext(Wn),[f,p]=u.useState(null),g=f?.ownerDocument??globalThis?.document,[,h]=u.useState({}),v=re(t,A=>p(A)),d=Array.from(l.layers),[m]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),b=d.indexOf(m),w=f?d.indexOf(f):-1,y=l.layersWithOutsidePointerEventsDisabled.size>0,E=w>=b,k=Hs(A=>{const P=A.target,M=[...l.branches].some(B=>B.contains(P));!E||M||(o?.(A),i?.(A),A.defaultPrevented||a?.())},g),N=Us(A=>{const P=A.target;[...l.branches].some(B=>B.contains(P))||(s?.(A),i?.(A),A.defaultPrevented||a?.())},g);return Fs(A=>{w===l.layers.size-1&&(r?.(A),!A.defaultPrevented&&a&&(A.preventDefault(),a()))},g),u.useEffect(()=>{if(f)return n&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(Bn=g.body.style.pointerEvents,g.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(f)),l.layers.add(f),Vn(),()=>{n&&l.layersWithOutsidePointerEventsDisabled.size===1&&(g.body.style.pointerEvents=Bn)}},[f,g,n,l]),u.useEffect(()=>()=>{f&&(l.layers.delete(f),l.layersWithOutsidePointerEventsDisabled.delete(f),Vn())},[f,l]),u.useEffect(()=>{const A=()=>h({});return document.addEventListener(Mt,A),()=>document.removeEventListener(Mt,A)},[]),x.jsx(Z.div,{...c,ref:v,style:{pointerEvents:y?E?"auto":"none":void 0,...e.style},onFocusCapture:J(e.onFocusCapture,N.onFocusCapture),onBlurCapture:J(e.onBlurCapture,N.onBlurCapture),onPointerDownCapture:J(e.onPointerDownCapture,k.onPointerDownCapture)})});zn.displayName=Bs;var Vs="DismissableLayerBranch",$s=u.forwardRef((e,t)=>{const n=u.useContext(Wn),r=u.useRef(null),o=re(t,r);return u.useEffect(()=>{const s=r.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),x.jsx(Z.div,{...e,ref:o})});$s.displayName=Vs;function Hs(e,t=globalThis?.document){const n=Te(e),r=u.useRef(!1),o=u.useRef(()=>{});return u.useEffect(()=>{const s=a=>{if(a.target&&!r.current){let c=function(){$n(Ws,n,l,{discrete:!0})};const l={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=c,t.addEventListener("click",o.current,{once:!0})):c()}else t.removeEventListener("click",o.current);r.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",s),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function Us(e,t=globalThis?.document){const n=Te(e),r=u.useRef(!1);return u.useEffect(()=>{const o=s=>{s.target&&!r.current&&$n(zs,n,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Vn(){const e=new CustomEvent(Mt);document.dispatchEvent(e)}function $n(e,t,n,{discrete:r}){const o=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?ks(o,s):o.dispatchEvent(s)}var jt="focusScope.autoFocusOnMount",Lt="focusScope.autoFocusOnUnmount",Hn={bubbles:!1,cancelable:!0},Ys="FocusScope",Un=u.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:s,...i}=e,[a,c]=u.useState(null),l=Te(o),f=Te(s),p=u.useRef(null),g=re(t,d=>c(d)),h=u.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;u.useEffect(()=>{if(r){let d=function(y){if(h.paused||!a)return;const E=y.target;a.contains(E)?p.current=E:Ce(p.current,{select:!0})},m=function(y){if(h.paused||!a)return;const E=y.relatedTarget;E!==null&&(a.contains(E)||Ce(p.current,{select:!0}))},b=function(y){if(document.activeElement===document.body)for(const k of y)k.removedNodes.length>0&&Ce(a)};document.addEventListener("focusin",d),document.addEventListener("focusout",m);const w=new MutationObserver(b);return a&&w.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",d),document.removeEventListener("focusout",m),w.disconnect()}}},[r,a,h.paused]),u.useEffect(()=>{if(a){Kn.add(h);const d=document.activeElement;if(!a.contains(d)){const b=new CustomEvent(jt,Hn);a.addEventListener(jt,l),a.dispatchEvent(b),b.defaultPrevented||(Gs(Js(Yn(a)),{select:!0}),document.activeElement===d&&Ce(a))}return()=>{a.removeEventListener(jt,l),setTimeout(()=>{const b=new CustomEvent(Lt,Hn);a.addEventListener(Lt,f),a.dispatchEvent(b),b.defaultPrevented||Ce(d??document.body,{select:!0}),a.removeEventListener(Lt,f),Kn.remove(h)},0)}}},[a,l,f,h]);const v=u.useCallback(d=>{if(!n&&!r||h.paused)return;const m=d.key==="Tab"&&!d.altKey&&!d.ctrlKey&&!d.metaKey,b=document.activeElement;if(m&&b){const w=d.currentTarget,[y,E]=Ks(w);y&&E?!d.shiftKey&&b===E?(d.preventDefault(),n&&Ce(y,{select:!0})):d.shiftKey&&b===y&&(d.preventDefault(),n&&Ce(E,{select:!0})):b===w&&d.preventDefault()}},[n,r,h.paused]);return x.jsx(Z.div,{tabIndex:-1,...i,ref:g,onKeyDown:v})});Un.displayName=Ys;function Gs(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Ce(r,{select:t}),document.activeElement!==n)return}function Ks(e){const t=Yn(e),n=Gn(t,e),r=Gn(t.reverse(),e);return[n,r]}function Yn(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 Gn(e,t){for(const n of e)if(!Xs(n,{upTo:t}))return n}function Xs(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 qs(e){return e instanceof HTMLInputElement&&"select"in e}function Ce(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&qs(e)&&t&&e.select()}}var Kn=Zs();function Zs(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=Xn(e,t),e.unshift(t)},remove(t){e=Xn(e,t),e[0]?.resume()}}}function Xn(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function Js(e){return e.filter(t=>t.tagName!=="A")}var Qs="Portal",qn=u.forwardRef((e,t)=>{const{container:n,...r}=e,[o,s]=u.useState(!1);ie(()=>s(!0),[]);const i=n||o&&globalThis?.document?.body;return i?fn.createPortal(x.jsx(Z.div,{...r,ref:t}),i):null});qn.displayName=Qs;var Dt=0;function ei(){u.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Zn()),document.body.insertAdjacentElement("beforeend",e[1]??Zn()),Dt++,()=>{Dt===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Dt--}},[])}function Zn(){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 me=function(){return me=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},me.apply(this,arguments)};function Jn(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function ti(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,s;r<o;r++)(s||!(r in t))&&(s||(s=Array.prototype.slice.call(t,0,r)),s[r]=t[r]);return e.concat(s||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;var it="right-scroll-bar-position",at="width-before-scroll-bar",ni="with-scroll-bars-hidden",ri="--removed-body-scroll-bar-size";function Ft(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function oi(e,t){var n=Q.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}var si=typeof window<"u"?u.useLayoutEffect:u.useEffect,Qn=new WeakMap;function ii(e,t){var n=oi(null,function(r){return e.forEach(function(o){return Ft(o,r)})});return si(function(){var r=Qn.get(n);if(r){var o=new Set(r),s=new Set(e),i=n.current;o.forEach(function(a){s.has(a)||Ft(a,null)}),s.forEach(function(a){o.has(a)||Ft(a,i)})}Qn.set(n,e)},[e]),n}function ai(e){return e}function ci(e,t){t===void 0&&(t=ai);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(s){var i=t(s,r);return n.push(i),function(){n=n.filter(function(a){return a!==i})}},assignSyncMedium:function(s){for(r=!0;n.length;){var i=n;n=[],i.forEach(s)}n={push:function(a){return s(a)},filter:function(){return n}}},assignMedium:function(s){r=!0;var i=[];if(n.length){var a=n;n=[],a.forEach(s),i=n}var c=function(){var f=i;i=[],f.forEach(s)},l=function(){return Promise.resolve().then(c)};l(),n={push:function(f){i.push(f),l()},filter:function(f){return i=i.filter(f),n}}}};return o}function li(e){e===void 0&&(e={});var t=ci(null);return t.options=me({async:!0,ssr:!1},e),t}var er=function(e){var t=e.sideCar,n=Jn(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return u.createElement(r,me({},n))};er.isSideCarExport=!0;function ui(e,t){return e.useMedium(t),er}var tr=li(),Bt=function(){},ct=u.forwardRef(function(e,t){var n=u.useRef(null),r=u.useState({onScrollCapture:Bt,onWheelCapture:Bt,onTouchMoveCapture:Bt}),o=r[0],s=r[1],i=e.forwardProps,a=e.children,c=e.className,l=e.removeScrollBar,f=e.enabled,p=e.shards,g=e.sideCar,h=e.noRelative,v=e.noIsolation,d=e.inert,m=e.allowPinchZoom,b=e.as,w=b===void 0?"div":b,y=e.gapMode,E=Jn(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),k=g,N=ii([n,t]),A=me(me({},E),o);return u.createElement(u.Fragment,null,f&&u.createElement(k,{sideCar:tr,removeScrollBar:l,shards:p,noRelative:h,noIsolation:v,inert:d,setCallbacks:s,allowPinchZoom:!!m,lockRef:n,gapMode:y}),i?u.cloneElement(u.Children.only(a),me(me({},A),{ref:N})):u.createElement(w,me({},A,{className:c,ref:N}),a))});ct.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},ct.classNames={fullWidth:at,zeroRight:it};var di=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function fi(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=di();return t&&e.setAttribute("nonce",t),e}function pi(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function mi(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var hi=function(){var e=0,t=null;return{add:function(n){e==0&&(t=fi())&&(pi(t,n),mi(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},gi=function(){var e=hi();return function(t,n){u.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},nr=function(){var e=gi(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},vi={left:0,top:0,right:0,gap:0},Wt=function(e){return parseInt(e||"",10)||0},bi=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[Wt(n),Wt(r),Wt(o)]},wi=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return vi;var t=bi(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},xi=nr(),De="data-scroll-locked",yi=function(e,t,n,r){var o=e.left,s=e.top,i=e.right,a=e.gap;return n===void 0&&(n="margin"),`
|
|
7
|
+
.`.concat(ni,` {
|
|
8
|
+
overflow: hidden `).concat(r,`;
|
|
9
|
+
padding-right: `).concat(a,"px ").concat(r,`;
|
|
10
|
+
}
|
|
11
|
+
body[`).concat(De,`] {
|
|
12
|
+
overflow: hidden `).concat(r,`;
|
|
13
|
+
overscroll-behavior: contain;
|
|
14
|
+
`).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
|
|
15
|
+
padding-left: `.concat(o,`px;
|
|
16
|
+
padding-top: `).concat(s,`px;
|
|
17
|
+
padding-right: `).concat(i,`px;
|
|
18
|
+
margin-left:0;
|
|
19
|
+
margin-top:0;
|
|
20
|
+
margin-right: `).concat(a,"px ").concat(r,`;
|
|
21
|
+
`),n==="padding"&&"padding-right: ".concat(a,"px ").concat(r,";")].filter(Boolean).join(""),`
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.`).concat(it,` {
|
|
25
|
+
right: `).concat(a,"px ").concat(r,`;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.`).concat(at,` {
|
|
29
|
+
margin-right: `).concat(a,"px ").concat(r,`;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.`).concat(it," .").concat(it,` {
|
|
33
|
+
right: 0 `).concat(r,`;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.`).concat(at," .").concat(at,` {
|
|
37
|
+
margin-right: 0 `).concat(r,`;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
body[`).concat(De,`] {
|
|
41
|
+
`).concat(ri,": ").concat(a,`px;
|
|
42
|
+
}
|
|
43
|
+
`)},rr=function(){var e=parseInt(document.body.getAttribute(De)||"0",10);return isFinite(e)?e:0},Si=function(){u.useEffect(function(){return document.body.setAttribute(De,(rr()+1).toString()),function(){var e=rr()-1;e<=0?document.body.removeAttribute(De):document.body.setAttribute(De,e.toString())}},[])},Ci=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;Si();var s=u.useMemo(function(){return wi(o)},[o]);return u.createElement(xi,{styles:yi(s,!t,o,n?"":"!important")})},zt=!1;if(typeof window<"u")try{var lt=Object.defineProperty({},"passive",{get:function(){return zt=!0,!0}});window.addEventListener("test",lt,lt),window.removeEventListener("test",lt,lt)}catch{zt=!1}var Fe=zt?{passive:!1}:!1,Ei=function(e){return e.tagName==="TEXTAREA"},or=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!Ei(e)&&n[t]==="visible")},Ri=function(e){return or(e,"overflowY")},ki=function(e){return or(e,"overflowX")},sr=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=ir(e,r);if(o){var s=ar(e,r),i=s[1],a=s[2];if(i>a)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},Pi=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},Ai=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},ir=function(e,t){return e==="v"?Ri(t):ki(t)},ar=function(e,t){return e==="v"?Pi(t):Ai(t)},Ti=function(e,t){return e==="h"&&t==="rtl"?-1:1},Oi=function(e,t,n,r,o){var s=Ti(e,window.getComputedStyle(t).direction),i=s*r,a=n.target,c=t.contains(a),l=!1,f=i>0,p=0,g=0;do{if(!a)break;var h=ar(e,a),v=h[0],d=h[1],m=h[2],b=d-m-s*v;(v||b)&&ir(e,a)&&(p+=b,g+=v);var w=a.parentNode;a=w&&w.nodeType===Node.DOCUMENT_FRAGMENT_NODE?w.host:w}while(!c&&a!==document.body||c&&(t.contains(a)||t===a));return(f&&Math.abs(p)<1||!f&&Math.abs(g)<1)&&(l=!0),l},ut=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},cr=function(e){return[e.deltaX,e.deltaY]},lr=function(e){return e&&"current"in e?e.current:e},Ni=function(e,t){return e[0]===t[0]&&e[1]===t[1]},_i=function(e){return`
|
|
44
|
+
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
45
|
+
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
46
|
+
`)},Ii=0,Be=[];function Mi(e){var t=u.useRef([]),n=u.useRef([0,0]),r=u.useRef(),o=u.useState(Ii++)[0],s=u.useState(nr)[0],i=u.useRef(e);u.useEffect(function(){i.current=e},[e]),u.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var d=ti([e.lockRef.current],(e.shards||[]).map(lr),!0).filter(Boolean);return d.forEach(function(m){return m.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),d.forEach(function(m){return m.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var a=u.useCallback(function(d,m){if("touches"in d&&d.touches.length===2||d.type==="wheel"&&d.ctrlKey)return!i.current.allowPinchZoom;var b=ut(d),w=n.current,y="deltaX"in d?d.deltaX:w[0]-b[0],E="deltaY"in d?d.deltaY:w[1]-b[1],k,N=d.target,A=Math.abs(y)>Math.abs(E)?"h":"v";if("touches"in d&&A==="h"&&N.type==="range")return!1;var P=window.getSelection(),M=P&&P.anchorNode,B=M?M===N||M.contains(N):!1;if(B)return!1;var V=sr(A,N);if(!V)return!0;if(V?k=A:(k=A==="v"?"h":"v",V=sr(A,N)),!V)return!1;if(!r.current&&"changedTouches"in d&&(y||E)&&(r.current=k),!k)return!0;var W=r.current||k;return Oi(W,m,d,W==="h"?y:E)},[]),c=u.useCallback(function(d){var m=d;if(!(!Be.length||Be[Be.length-1]!==s)){var b="deltaY"in m?cr(m):ut(m),w=t.current.filter(function(k){return k.name===m.type&&(k.target===m.target||m.target===k.shadowParent)&&Ni(k.delta,b)})[0];if(w&&w.should){m.cancelable&&m.preventDefault();return}if(!w){var y=(i.current.shards||[]).map(lr).filter(Boolean).filter(function(k){return k.contains(m.target)}),E=y.length>0?a(m,y[0]):!i.current.noIsolation;E&&m.cancelable&&m.preventDefault()}}},[]),l=u.useCallback(function(d,m,b,w){var y={name:d,delta:m,target:b,should:w,shadowParent:ji(b)};t.current.push(y),setTimeout(function(){t.current=t.current.filter(function(E){return E!==y})},1)},[]),f=u.useCallback(function(d){n.current=ut(d),r.current=void 0},[]),p=u.useCallback(function(d){l(d.type,cr(d),d.target,a(d,e.lockRef.current))},[]),g=u.useCallback(function(d){l(d.type,ut(d),d.target,a(d,e.lockRef.current))},[]);u.useEffect(function(){return Be.push(s),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:g}),document.addEventListener("wheel",c,Fe),document.addEventListener("touchmove",c,Fe),document.addEventListener("touchstart",f,Fe),function(){Be=Be.filter(function(d){return d!==s}),document.removeEventListener("wheel",c,Fe),document.removeEventListener("touchmove",c,Fe),document.removeEventListener("touchstart",f,Fe)}},[]);var h=e.removeScrollBar,v=e.inert;return u.createElement(u.Fragment,null,v?u.createElement(s,{styles:_i(o)}):null,h?u.createElement(Ci,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function ji(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Li=ui(tr,Mi);var ur=u.forwardRef(function(e,t){return u.createElement(ct,me({},e,{ref:t,sideCar:Li}))});ur.classNames=ct.classNames;var Di=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},We=new WeakMap,dt=new WeakMap,ft={},Vt=0,dr=function(e){return e&&(e.host||dr(e.parentNode))},Fi=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=dr(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},Bi=function(e,t,n,r){var o=Fi(t,Array.isArray(e)?e:[e]);ft[n]||(ft[n]=new WeakMap);var s=ft[n],i=[],a=new Set,c=new Set(o),l=function(p){!p||a.has(p)||(a.add(p),l(p.parentNode))};o.forEach(l);var f=function(p){!p||c.has(p)||Array.prototype.forEach.call(p.children,function(g){if(a.has(g))f(g);else try{var h=g.getAttribute(r),v=h!==null&&h!=="false",d=(We.get(g)||0)+1,m=(s.get(g)||0)+1;We.set(g,d),s.set(g,m),i.push(g),d===1&&v&&dt.set(g,!0),m===1&&g.setAttribute(n,"true"),v||g.setAttribute(r,"true")}catch(b){console.error("aria-hidden: cannot operate on ",g,b)}})};return f(t),a.clear(),Vt++,function(){i.forEach(function(p){var g=We.get(p)-1,h=s.get(p)-1;We.set(p,g),s.set(p,h),g||(dt.has(p)||p.removeAttribute(r),dt.delete(p)),h||p.removeAttribute(n)}),Vt--,Vt||(We=new WeakMap,We=new WeakMap,dt=new WeakMap,ft={})}},Wi=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=Di(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),Bi(r,o,n,"aria-hidden")):function(){return null}};function fr(e){const t=u.useRef({value:e,previous:e});return u.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}function pr(e){const[t,n]=u.useState(void 0);return ie(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const s=o[0];let i,a;if("borderBoxSize"in s){const c=s.borderBoxSize,l=Array.isArray(c)?c[0]:c;i=l.inlineSize,a=l.blockSize}else i=e.offsetWidth,a=e.offsetHeight;n({width:i,height:a})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}const zi=["top","right","bottom","left"],Ee=Math.min,ce=Math.max,pt=Math.round,mt=Math.floor,he=e=>({x:e,y:e}),Vi={left:"right",right:"left",bottom:"top",top:"bottom"},$i={start:"end",end:"start"};function $t(e,t,n){return ce(e,Ee(t,n))}function xe(e,t){return typeof e=="function"?e(t):e}function ye(e){return e.split("-")[0]}function ze(e){return e.split("-")[1]}function Ht(e){return e==="x"?"y":"x"}function Ut(e){return e==="y"?"height":"width"}const Hi=new Set(["top","bottom"]);function ge(e){return Hi.has(ye(e))?"y":"x"}function Yt(e){return Ht(ge(e))}function Ui(e,t,n){n===void 0&&(n=!1);const r=ze(e),o=Yt(e),s=Ut(o);let i=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(i=ht(i)),[i,ht(i)]}function Yi(e){const t=ht(e);return[Gt(e),t,Gt(t)]}function Gt(e){return e.replace(/start|end/g,t=>$i[t])}const mr=["left","right"],hr=["right","left"],Gi=["top","bottom"],Ki=["bottom","top"];function Xi(e,t,n){switch(e){case"top":case"bottom":return n?t?hr:mr:t?mr:hr;case"left":case"right":return t?Gi:Ki;default:return[]}}function qi(e,t,n,r){const o=ze(e);let s=Xi(ye(e),n==="start",r);return o&&(s=s.map(i=>i+"-"+o),t&&(s=s.concat(s.map(Gt)))),s}function ht(e){return e.replace(/left|right|bottom|top/g,t=>Vi[t])}function Zi(e){return{top:0,right:0,bottom:0,left:0,...e}}function gr(e){return typeof e!="number"?Zi(e):{top:e,right:e,bottom:e,left:e}}function gt(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function vr(e,t,n){let{reference:r,floating:o}=e;const s=ge(t),i=Yt(t),a=Ut(i),c=ye(t),l=s==="y",f=r.x+r.width/2-o.width/2,p=r.y+r.height/2-o.height/2,g=r[a]/2-o[a]/2;let h;switch(c){case"top":h={x:f,y:r.y-o.height};break;case"bottom":h={x:f,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:p};break;case"left":h={x:r.x-o.width,y:p};break;default:h={x:r.x,y:r.y}}switch(ze(t)){case"start":h[i]-=g*(n&&l?-1:1);break;case"end":h[i]+=g*(n&&l?-1:1);break}return h}const Ji=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:s=[],platform:i}=n,a=s.filter(Boolean),c=await(i.isRTL==null?void 0:i.isRTL(t));let l=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:f,y:p}=vr(l,r,c),g=r,h={},v=0;for(let d=0;d<a.length;d++){const{name:m,fn:b}=a[d],{x:w,y,data:E,reset:k}=await b({x:f,y:p,initialPlacement:r,placement:g,strategy:o,middlewareData:h,rects:l,platform:i,elements:{reference:e,floating:t}});f=w??f,p=y??p,h={...h,[m]:{...h[m],...E}},k&&v<=50&&(v++,typeof k=="object"&&(k.placement&&(g=k.placement),k.rects&&(l=k.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:o}):k.rects),{x:f,y:p}=vr(l,g,c)),d=-1)}return{x:f,y:p,placement:g,strategy:o,middlewareData:h}};async function Xe(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:s,rects:i,elements:a,strategy:c}=e,{boundary:l="clippingAncestors",rootBoundary:f="viewport",elementContext:p="floating",altBoundary:g=!1,padding:h=0}=xe(t,e),v=gr(h),m=a[g?p==="floating"?"reference":"floating":p],b=gt(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(m)))==null||n?m:m.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(a.floating)),boundary:l,rootBoundary:f,strategy:c})),w=p==="floating"?{x:r,y:o,width:i.floating.width,height:i.floating.height}:i.reference,y=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a.floating)),E=await(s.isElement==null?void 0:s.isElement(y))?await(s.getScale==null?void 0:s.getScale(y))||{x:1,y:1}:{x:1,y:1},k=gt(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:w,offsetParent:y,strategy:c}):w);return{top:(b.top-k.top+v.top)/E.y,bottom:(k.bottom-b.bottom+v.bottom)/E.y,left:(b.left-k.left+v.left)/E.x,right:(k.right-b.right+v.right)/E.x}}const Qi=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:s,platform:i,elements:a,middlewareData:c}=t,{element:l,padding:f=0}=xe(e,t)||{};if(l==null)return{};const p=gr(f),g={x:n,y:r},h=Yt(o),v=Ut(h),d=await i.getDimensions(l),m=h==="y",b=m?"top":"left",w=m?"bottom":"right",y=m?"clientHeight":"clientWidth",E=s.reference[v]+s.reference[h]-g[h]-s.floating[v],k=g[h]-s.reference[h],N=await(i.getOffsetParent==null?void 0:i.getOffsetParent(l));let A=N?N[y]:0;(!A||!await(i.isElement==null?void 0:i.isElement(N)))&&(A=a.floating[y]||s.floating[v]);const P=E/2-k/2,M=A/2-d[v]/2-1,B=Ee(p[b],M),V=Ee(p[w],M),W=B,$=A-d[v]-V,z=A/2-d[v]/2+P,H=$t(W,z,$),I=!c.arrow&&ze(o)!=null&&z!==H&&s.reference[v]/2-(z<W?B:V)-d[v]/2<0,D=I?z<W?z-W:z-$:0;return{[h]:g[h]+D,data:{[h]:H,centerOffset:z-H-D,...I&&{alignmentOffset:D}},reset:I}}}),ea=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:s,rects:i,initialPlacement:a,platform:c,elements:l}=t,{mainAxis:f=!0,crossAxis:p=!0,fallbackPlacements:g,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:d=!0,...m}=xe(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const b=ye(o),w=ge(a),y=ye(a)===a,E=await(c.isRTL==null?void 0:c.isRTL(l.floating)),k=g||(y||!d?[ht(a)]:Yi(a)),N=v!=="none";!g&&N&&k.push(...qi(a,d,v,E));const A=[a,...k],P=await Xe(t,m),M=[];let B=((r=s.flip)==null?void 0:r.overflows)||[];if(f&&M.push(P[b]),p){const z=Ui(o,i,E);M.push(P[z[0]],P[z[1]])}if(B=[...B,{placement:o,overflows:M}],!M.every(z=>z<=0)){var V,W;const z=(((V=s.flip)==null?void 0:V.index)||0)+1,H=A[z];if(H&&(!(p==="alignment"?w!==ge(H):!1)||B.every(C=>ge(C.placement)===w?C.overflows[0]>0:!0)))return{data:{index:z,overflows:B},reset:{placement:H}};let I=(W=B.filter(D=>D.overflows[0]<=0).sort((D,C)=>D.overflows[1]-C.overflows[1])[0])==null?void 0:W.placement;if(!I)switch(h){case"bestFit":{var $;const D=($=B.filter(C=>{if(N){const G=ge(C.placement);return G===w||G==="y"}return!0}).map(C=>[C.placement,C.overflows.filter(G=>G>0).reduce((G,te)=>G+te,0)]).sort((C,G)=>C[1]-G[1])[0])==null?void 0:$[0];D&&(I=D);break}case"initialPlacement":I=a;break}if(o!==I)return{reset:{placement:I}}}return{}}}};function br(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function wr(e){return zi.some(t=>e[t]>=0)}const ta=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=xe(e,t);switch(r){case"referenceHidden":{const s=await Xe(t,{...o,elementContext:"reference"}),i=br(s,n.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:wr(i)}}}case"escaped":{const s=await Xe(t,{...o,altBoundary:!0}),i=br(s,n.floating);return{data:{escapedOffsets:i,escaped:wr(i)}}}default:return{}}}}},xr=new Set(["left","top"]);async function na(e,t){const{placement:n,platform:r,elements:o}=e,s=await(r.isRTL==null?void 0:r.isRTL(o.floating)),i=ye(n),a=ze(n),c=ge(n)==="y",l=xr.has(i)?-1:1,f=s&&c?-1:1,p=xe(t,e);let{mainAxis:g,crossAxis:h,alignmentAxis:v}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return a&&typeof v=="number"&&(h=a==="end"?v*-1:v),c?{x:h*f,y:g*l}:{x:g*l,y:h*f}}const ra=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:s,placement:i,middlewareData:a}=t,c=await na(t,e);return i===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:o+c.x,y:s+c.y,data:{...c,placement:i}}}}},oa=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:s=!0,crossAxis:i=!1,limiter:a={fn:m=>{let{x:b,y:w}=m;return{x:b,y:w}}},...c}=xe(e,t),l={x:n,y:r},f=await Xe(t,c),p=ge(ye(o)),g=Ht(p);let h=l[g],v=l[p];if(s){const m=g==="y"?"top":"left",b=g==="y"?"bottom":"right",w=h+f[m],y=h-f[b];h=$t(w,h,y)}if(i){const m=p==="y"?"top":"left",b=p==="y"?"bottom":"right",w=v+f[m],y=v-f[b];v=$t(w,v,y)}const d=a.fn({...t,[g]:h,[p]:v});return{...d,data:{x:d.x-n,y:d.y-r,enabled:{[g]:s,[p]:i}}}}}},sa=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:s,middlewareData:i}=t,{offset:a=0,mainAxis:c=!0,crossAxis:l=!0}=xe(e,t),f={x:n,y:r},p=ge(o),g=Ht(p);let h=f[g],v=f[p];const d=xe(a,t),m=typeof d=="number"?{mainAxis:d,crossAxis:0}:{mainAxis:0,crossAxis:0,...d};if(c){const y=g==="y"?"height":"width",E=s.reference[g]-s.floating[y]+m.mainAxis,k=s.reference[g]+s.reference[y]-m.mainAxis;h<E?h=E:h>k&&(h=k)}if(l){var b,w;const y=g==="y"?"width":"height",E=xr.has(ye(o)),k=s.reference[p]-s.floating[y]+(E&&((b=i.offset)==null?void 0:b[p])||0)+(E?0:m.crossAxis),N=s.reference[p]+s.reference[y]+(E?0:((w=i.offset)==null?void 0:w[p])||0)-(E?m.crossAxis:0);v<k?v=k:v>N&&(v=N)}return{[g]:h,[p]:v}}}},ia=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:s,platform:i,elements:a}=t,{apply:c=()=>{},...l}=xe(e,t),f=await Xe(t,l),p=ye(o),g=ze(o),h=ge(o)==="y",{width:v,height:d}=s.floating;let m,b;p==="top"||p==="bottom"?(m=p,b=g===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?"start":"end")?"left":"right"):(b=p,m=g==="end"?"top":"bottom");const w=d-f.top-f.bottom,y=v-f.left-f.right,E=Ee(d-f[m],w),k=Ee(v-f[b],y),N=!t.middlewareData.shift;let A=E,P=k;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(P=y),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(A=w),N&&!g){const B=ce(f.left,0),V=ce(f.right,0),W=ce(f.top,0),$=ce(f.bottom,0);h?P=v-2*(B!==0||V!==0?B+V:ce(f.left,f.right)):A=d-2*(W!==0||$!==0?W+$:ce(f.top,f.bottom))}await c({...t,availableWidth:P,availableHeight:A});const M=await i.getDimensions(a.floating);return v!==M.width||d!==M.height?{reset:{rects:!0}}:{}}}};function vt(){return typeof window<"u"}function Ve(e){return yr(e)?(e.nodeName||"").toLowerCase():"#document"}function le(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ve(e){var t;return(t=(yr(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function yr(e){return vt()?e instanceof Node||e instanceof le(e).Node:!1}function de(e){return vt()?e instanceof Element||e instanceof le(e).Element:!1}function be(e){return vt()?e instanceof HTMLElement||e instanceof le(e).HTMLElement:!1}function Sr(e){return!vt()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof le(e).ShadowRoot}const aa=new Set(["inline","contents"]);function qe(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=fe(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!aa.has(o)}const ca=new Set(["table","td","th"]);function la(e){return ca.has(Ve(e))}const ua=[":popover-open",":modal"];function bt(e){return ua.some(t=>{try{return e.matches(t)}catch{return!1}})}const da=["transform","translate","scale","rotate","perspective"],fa=["transform","translate","scale","rotate","perspective","filter"],pa=["paint","layout","strict","content"];function Kt(e){const t=Xt(),n=de(e)?fe(e):e;return da.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||fa.some(r=>(n.willChange||"").includes(r))||pa.some(r=>(n.contain||"").includes(r))}function ma(e){let t=Re(e);for(;be(t)&&!$e(t);){if(Kt(t))return t;if(bt(t))return null;t=Re(t)}return null}function Xt(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const ha=new Set(["html","body","#document"]);function $e(e){return ha.has(Ve(e))}function fe(e){return le(e).getComputedStyle(e)}function wt(e){return de(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Re(e){if(Ve(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Sr(e)&&e.host||ve(e);return Sr(t)?t.host:t}function Cr(e){const t=Re(e);return $e(t)?e.ownerDocument?e.ownerDocument.body:e.body:be(t)&&qe(t)?t:Cr(t)}function Ze(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=Cr(e),s=o===((r=e.ownerDocument)==null?void 0:r.body),i=le(o);if(s){const a=qt(i);return t.concat(i,i.visualViewport||[],qe(o)?o:[],a&&n?Ze(a):[])}return t.concat(o,Ze(o,[],n))}function qt(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Er(e){const t=fe(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=be(e),s=o?e.offsetWidth:n,i=o?e.offsetHeight:r,a=pt(n)!==s||pt(r)!==i;return a&&(n=s,r=i),{width:n,height:r,$:a}}function Zt(e){return de(e)?e:e.contextElement}function He(e){const t=Zt(e);if(!be(t))return he(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:s}=Er(t);let i=(s?pt(n.width):n.width)/r,a=(s?pt(n.height):n.height)/o;return(!i||!Number.isFinite(i))&&(i=1),(!a||!Number.isFinite(a))&&(a=1),{x:i,y:a}}const ga=he(0);function Rr(e){const t=le(e);return!Xt()||!t.visualViewport?ga:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function va(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==le(e)?!1:t}function Oe(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),s=Zt(e);let i=he(1);t&&(r?de(r)&&(i=He(r)):i=He(e));const a=va(s,n,r)?Rr(s):he(0);let c=(o.left+a.x)/i.x,l=(o.top+a.y)/i.y,f=o.width/i.x,p=o.height/i.y;if(s){const g=le(s),h=r&&de(r)?le(r):r;let v=g,d=qt(v);for(;d&&r&&h!==v;){const m=He(d),b=d.getBoundingClientRect(),w=fe(d),y=b.left+(d.clientLeft+parseFloat(w.paddingLeft))*m.x,E=b.top+(d.clientTop+parseFloat(w.paddingTop))*m.y;c*=m.x,l*=m.y,f*=m.x,p*=m.y,c+=y,l+=E,v=le(d),d=qt(v)}}return gt({width:f,height:p,x:c,y:l})}function xt(e,t){const n=wt(e).scrollLeft;return t?t.left+n:Oe(ve(e)).left+n}function kr(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-xt(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function ba(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const s=o==="fixed",i=ve(r),a=t?bt(t.floating):!1;if(r===i||a&&s)return n;let c={scrollLeft:0,scrollTop:0},l=he(1);const f=he(0),p=be(r);if((p||!p&&!s)&&((Ve(r)!=="body"||qe(i))&&(c=wt(r)),be(r))){const h=Oe(r);l=He(r),f.x=h.x+r.clientLeft,f.y=h.y+r.clientTop}const g=i&&!p&&!s?kr(i,c):he(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+f.x+g.x,y:n.y*l.y-c.scrollTop*l.y+f.y+g.y}}function wa(e){return Array.from(e.getClientRects())}function xa(e){const t=ve(e),n=wt(e),r=e.ownerDocument.body,o=ce(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=ce(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+xt(e);const a=-n.scrollTop;return fe(r).direction==="rtl"&&(i+=ce(t.clientWidth,r.clientWidth)-o),{width:o,height:s,x:i,y:a}}const Pr=25;function ya(e,t){const n=le(e),r=ve(e),o=n.visualViewport;let s=r.clientWidth,i=r.clientHeight,a=0,c=0;if(o){s=o.width,i=o.height;const f=Xt();(!f||f&&t==="fixed")&&(a=o.offsetLeft,c=o.offsetTop)}const l=xt(r);if(l<=0){const f=r.ownerDocument,p=f.body,g=getComputedStyle(p),h=f.compatMode==="CSS1Compat"&&parseFloat(g.marginLeft)+parseFloat(g.marginRight)||0,v=Math.abs(r.clientWidth-p.clientWidth-h);v<=Pr&&(s-=v)}else l<=Pr&&(s+=l);return{width:s,height:i,x:a,y:c}}const Sa=new Set(["absolute","fixed"]);function Ca(e,t){const n=Oe(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,s=be(e)?He(e):he(1),i=e.clientWidth*s.x,a=e.clientHeight*s.y,c=o*s.x,l=r*s.y;return{width:i,height:a,x:c,y:l}}function Ar(e,t,n){let r;if(t==="viewport")r=ya(e,n);else if(t==="document")r=xa(ve(e));else if(de(t))r=Ca(t,n);else{const o=Rr(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return gt(r)}function Tr(e,t){const n=Re(e);return n===t||!de(n)||$e(n)?!1:fe(n).position==="fixed"||Tr(n,t)}function Ea(e,t){const n=t.get(e);if(n)return n;let r=Ze(e,[],!1).filter(a=>de(a)&&Ve(a)!=="body"),o=null;const s=fe(e).position==="fixed";let i=s?Re(e):e;for(;de(i)&&!$e(i);){const a=fe(i),c=Kt(i);!c&&a.position==="fixed"&&(o=null),(s?!c&&!o:!c&&a.position==="static"&&!!o&&Sa.has(o.position)||qe(i)&&!c&&Tr(e,i))?r=r.filter(f=>f!==i):o=a,i=Re(i)}return t.set(e,r),r}function Ra(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[...n==="clippingAncestors"?bt(t)?[]:Ea(t,this._c):[].concat(n),r],a=i[0],c=i.reduce((l,f)=>{const p=Ar(t,f,o);return l.top=ce(p.top,l.top),l.right=Ee(p.right,l.right),l.bottom=Ee(p.bottom,l.bottom),l.left=ce(p.left,l.left),l},Ar(t,a,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function ka(e){const{width:t,height:n}=Er(e);return{width:t,height:n}}function Pa(e,t,n){const r=be(t),o=ve(t),s=n==="fixed",i=Oe(e,!0,s,t);let a={scrollLeft:0,scrollTop:0};const c=he(0);function l(){c.x=xt(o)}if(r||!r&&!s)if((Ve(t)!=="body"||qe(o))&&(a=wt(t)),r){const h=Oe(t,!0,s,t);c.x=h.x+t.clientLeft,c.y=h.y+t.clientTop}else o&&l();s&&!r&&o&&l();const f=o&&!r&&!s?kr(o,a):he(0),p=i.left+a.scrollLeft-c.x-f.x,g=i.top+a.scrollTop-c.y-f.y;return{x:p,y:g,width:i.width,height:i.height}}function Jt(e){return fe(e).position==="static"}function Or(e,t){if(!be(e)||fe(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return ve(e)===n&&(n=n.ownerDocument.body),n}function Nr(e,t){const n=le(e);if(bt(e))return n;if(!be(e)){let o=Re(e);for(;o&&!$e(o);){if(de(o)&&!Jt(o))return o;o=Re(o)}return n}let r=Or(e,t);for(;r&&la(r)&&Jt(r);)r=Or(r,t);return r&&$e(r)&&Jt(r)&&!Kt(r)?n:r||ma(e)||n}const Aa=async function(e){const t=this.getOffsetParent||Nr,n=this.getDimensions,r=await n(e.floating);return{reference:Pa(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Ta(e){return fe(e).direction==="rtl"}const Oa={convertOffsetParentRelativeRectToViewportRelativeRect:ba,getDocumentElement:ve,getClippingRect:Ra,getOffsetParent:Nr,getElementRects:Aa,getClientRects:wa,getDimensions:ka,getScale:He,isElement:de,isRTL:Ta};function _r(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Na(e,t){let n=null,r;const o=ve(e);function s(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function i(a,c){a===void 0&&(a=!1),c===void 0&&(c=1),s();const l=e.getBoundingClientRect(),{left:f,top:p,width:g,height:h}=l;if(a||t(),!g||!h)return;const v=mt(p),d=mt(o.clientWidth-(f+g)),m=mt(o.clientHeight-(p+h)),b=mt(f),y={rootMargin:-v+"px "+-d+"px "+-m+"px "+-b+"px",threshold:ce(0,Ee(1,c))||1};let E=!0;function k(N){const A=N[0].intersectionRatio;if(A!==c){if(!E)return i();A?i(!1,A):r=setTimeout(()=>{i(!1,1e-7)},1e3)}A===1&&!_r(l,e.getBoundingClientRect())&&i(),E=!1}try{n=new IntersectionObserver(k,{...y,root:o.ownerDocument})}catch{n=new IntersectionObserver(k,y)}n.observe(e)}return i(!0),s}function _a(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:c=!1}=r,l=Zt(e),f=o||s?[...l?Ze(l):[],...Ze(t)]:[];f.forEach(b=>{o&&b.addEventListener("scroll",n,{passive:!0}),s&&b.addEventListener("resize",n)});const p=l&&a?Na(l,n):null;let g=-1,h=null;i&&(h=new ResizeObserver(b=>{let[w]=b;w&&w.target===l&&h&&(h.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var y;(y=h)==null||y.observe(t)})),n()}),l&&!c&&h.observe(l),h.observe(t));let v,d=c?Oe(e):null;c&&m();function m(){const b=Oe(e);d&&!_r(d,b)&&n(),d=b,v=requestAnimationFrame(m)}return n(),()=>{var b;f.forEach(w=>{o&&w.removeEventListener("scroll",n),s&&w.removeEventListener("resize",n)}),p?.(),(b=h)==null||b.disconnect(),h=null,c&&cancelAnimationFrame(v)}}const Ia=ra,Ma=oa,ja=ea,La=ia,Da=ta,Ir=Qi,Fa=sa,Ba=(e,t,n)=>{const r=new Map,o={platform:Oa,...n},s={...o.platform,_c:r};return Ji(e,t,{...o,platform:s})};var Wa=typeof document<"u",za=function(){},yt=Wa?Q.useLayoutEffect:za;function St(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!St(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const s=o[r];if(!(s==="_owner"&&e.$$typeof)&&!St(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function Mr(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function jr(e,t){const n=Mr(e);return Math.round(t*n)/n}function Qt(e){const t=u.useRef(e);return yt(()=>{t.current=e}),t}function Va(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:s,floating:i}={},transform:a=!0,whileElementsMounted:c,open:l}=e,[f,p]=u.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[g,h]=u.useState(r);St(g,r)||h(r);const[v,d]=u.useState(null),[m,b]=u.useState(null),w=u.useCallback(C=>{C!==N.current&&(N.current=C,d(C))},[]),y=u.useCallback(C=>{C!==A.current&&(A.current=C,b(C))},[]),E=s||v,k=i||m,N=u.useRef(null),A=u.useRef(null),P=u.useRef(f),M=c!=null,B=Qt(c),V=Qt(o),W=Qt(l),$=u.useCallback(()=>{if(!N.current||!A.current)return;const C={placement:t,strategy:n,middleware:g};V.current&&(C.platform=V.current),Ba(N.current,A.current,C).then(G=>{const te={...G,isPositioned:W.current!==!1};z.current&&!St(P.current,te)&&(P.current=te,Qe.flushSync(()=>{p(te)}))})},[g,t,n,V,W]);yt(()=>{l===!1&&P.current.isPositioned&&(P.current.isPositioned=!1,p(C=>({...C,isPositioned:!1})))},[l]);const z=u.useRef(!1);yt(()=>(z.current=!0,()=>{z.current=!1}),[]),yt(()=>{if(E&&(N.current=E),k&&(A.current=k),E&&k){if(B.current)return B.current(E,k,$);$()}},[E,k,$,B,M]);const H=u.useMemo(()=>({reference:N,floating:A,setReference:w,setFloating:y}),[w,y]),I=u.useMemo(()=>({reference:E,floating:k}),[E,k]),D=u.useMemo(()=>{const C={position:n,left:0,top:0};if(!I.floating)return C;const G=jr(I.floating,f.x),te=jr(I.floating,f.y);return a?{...C,transform:"translate("+G+"px, "+te+"px)",...Mr(I.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:G,top:te}},[n,a,I.floating,f.x,f.y]);return u.useMemo(()=>({...f,update:$,refs:H,elements:I,floatingStyles:D}),[f,$,H,I,D])}const $a=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?Ir({element:r.current,padding:o}).fn(n):{}:r?Ir({element:r,padding:o}).fn(n):{}}}},Ha=(e,t)=>({...Ia(e),options:[e,t]}),Ua=(e,t)=>({...Ma(e),options:[e,t]}),Ya=(e,t)=>({...Fa(e),options:[e,t]}),Ga=(e,t)=>({...ja(e),options:[e,t]}),Ka=(e,t)=>({...La(e),options:[e,t]}),Xa=(e,t)=>({...Da(e),options:[e,t]}),qa=(e,t)=>({...$a(e),options:[e,t]});var Za="Arrow",Lr=u.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...s}=e;return x.jsx(Z.svg,{...s,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:x.jsx("polygon",{points:"0,0 30,0 15,10"})})});Lr.displayName=Za;var Ja=Lr,en="Popper",[Dr,Fr]=st(en),[Qa,Br]=Dr(en),Wr=e=>{const{__scopePopper:t,children:n}=e,[r,o]=u.useState(null);return x.jsx(Qa,{scope:t,anchor:r,onAnchorChange:o,children:n})};Wr.displayName=en;var zr="PopperAnchor",Vr=u.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,s=Br(zr,n),i=u.useRef(null),a=re(t,i),c=u.useRef(null);return u.useEffect(()=>{const l=c.current;c.current=r?.current||i.current,l!==c.current&&s.onAnchorChange(c.current)}),r?null:x.jsx(Z.div,{...o,ref:a})});Vr.displayName=zr;var tn="PopperContent",[ec,tc]=Dr(tn),$r=u.forwardRef((e,t)=>{const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:s="center",alignOffset:i=0,arrowPadding:a=0,avoidCollisions:c=!0,collisionBoundary:l=[],collisionPadding:f=0,sticky:p="partial",hideWhenDetached:g=!1,updatePositionStrategy:h="optimized",onPlaced:v,...d}=e,m=Br(tn,n),[b,w]=u.useState(null),y=re(t,R=>w(R)),[E,k]=u.useState(null),N=pr(E),A=N?.width??0,P=N?.height??0,M=r+(s!=="center"?"-"+s:""),B=typeof f=="number"?f:{top:0,right:0,bottom:0,left:0,...f},V=Array.isArray(l)?l:[l],W=V.length>0,$={padding:B,boundary:V.filter(rc),altBoundary:W},{refs:z,floatingStyles:H,placement:I,isPositioned:D,middlewareData:C}=Va({strategy:"fixed",placement:M,whileElementsMounted:(...R)=>_a(...R,{animationFrame:h==="always"}),elements:{reference:m.anchor},middleware:[Ha({mainAxis:o+P,alignmentAxis:i}),c&&Ua({mainAxis:!0,crossAxis:!1,limiter:p==="partial"?Ya():void 0,...$}),c&&Ga({...$}),Ka({...$,apply:({elements:R,rects:U,availableWidth:q,availableHeight:Y})=>{const{width:K,height:X}=U.reference,ue=R.floating.style;ue.setProperty("--radix-popper-available-width",`${q}px`),ue.setProperty("--radix-popper-available-height",`${Y}px`),ue.setProperty("--radix-popper-anchor-width",`${K}px`),ue.setProperty("--radix-popper-anchor-height",`${X}px`)}}),E&&qa({element:E,padding:a}),oc({arrowWidth:A,arrowHeight:P}),g&&Xa({strategy:"referenceHidden",...$})]}),[G,te]=Yr(I),S=Te(v);ie(()=>{D&&S?.()},[D,S]);const _=C.arrow?.x,j=C.arrow?.y,L=C.arrow?.centerOffset!==0,[oe,ae]=u.useState();return ie(()=>{b&&ae(window.getComputedStyle(b).zIndex)},[b]),x.jsx("div",{ref:z.setFloating,"data-radix-popper-content-wrapper":"",style:{...H,transform:D?H.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:oe,"--radix-popper-transform-origin":[C.transformOrigin?.x,C.transformOrigin?.y].join(" "),...C.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:x.jsx(ec,{scope:n,placedSide:G,onArrowChange:k,arrowX:_,arrowY:j,shouldHideArrow:L,children:x.jsx(Z.div,{"data-side":G,"data-align":te,...d,ref:y,style:{...d.style,animation:D?void 0:"none"}})})})});$r.displayName=tn;var Hr="PopperArrow",nc={top:"bottom",right:"left",bottom:"top",left:"right"},Ur=u.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,s=tc(Hr,r),i=nc[s.placedSide];return x.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:x.jsx(Ja,{...o,ref:n,style:{...o.style,display:"block"}})})});Ur.displayName=Hr;function rc(e){return e!==null}var oc=e=>({name:"transformOrigin",options:e,fn(t){const{placement:n,rects:r,middlewareData:o}=t,i=o.arrow?.centerOffset!==0,a=i?0:e.arrowWidth,c=i?0:e.arrowHeight,[l,f]=Yr(n),p={start:"0%",center:"50%",end:"100%"}[f],g=(o.arrow?.x??0)+a/2,h=(o.arrow?.y??0)+c/2;let v="",d="";return l==="bottom"?(v=i?p:`${g}px`,d=`${-c}px`):l==="top"?(v=i?p:`${g}px`,d=`${r.floating.height+c}px`):l==="right"?(v=`${-c}px`,d=i?p:`${h}px`):l==="left"&&(v=`${r.floating.width+c}px`,d=i?p:`${h}px`),{data:{x:v,y:d}}}});function Yr(e){const[t,n="center"]=e.split("-");return[t,n]}var sc=Wr,ic=Vr,ac=$r,cc=Ur;function Gr(e,[t,n]){return Math.min(n,Math.max(t,e))}var lc=[" ","Enter","ArrowUp","ArrowDown"],uc=[" ","Enter"],Ne="Select",[Ct,Et,dc]=Os(Ne),[Ue]=st(Ne,[dc,Fr]),Rt=Fr(),[fc,ke]=Ue(Ne),[pc,mc]=Ue(Ne),Kr=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:o,onOpenChange:s,value:i,defaultValue:a,onValueChange:c,dir:l,name:f,autoComplete:p,disabled:g,required:h,form:v}=e,d=Rt(t),[m,b]=u.useState(null),[w,y]=u.useState(null),[E,k]=u.useState(!1),N=Ds(l),[A,P]=_t({prop:r,defaultProp:o??!1,onChange:s,caller:Ne}),[M,B]=_t({prop:i,defaultProp:a,onChange:c,caller:Ne}),V=u.useRef(null),W=m?v||!!m.closest("form"):!0,[$,z]=u.useState(new Set),H=Array.from($).map(I=>I.props.value).join(";");return x.jsx(sc,{...d,children:x.jsxs(fc,{required:h,scope:t,trigger:m,onTriggerChange:b,valueNode:w,onValueNodeChange:y,valueNodeHasChildren:E,onValueNodeHasChildrenChange:k,contentId:It(),value:M,onValueChange:B,open:A,onOpenChange:P,dir:N,triggerPointerDownPosRef:V,disabled:g,children:[x.jsx(Ct.Provider,{scope:t,children:x.jsx(pc,{scope:e.__scopeSelect,onNativeOptionAdd:u.useCallback(I=>{z(D=>new Set(D).add(I))},[]),onNativeOptionRemove:u.useCallback(I=>{z(D=>{const C=new Set(D);return C.delete(I),C})},[]),children:n})}),W?x.jsxs(ho,{"aria-hidden":!0,required:h,tabIndex:-1,name:f,autoComplete:p,value:M,onChange:I=>B(I.target.value),disabled:g,form:v,children:[M===void 0?x.jsx("option",{value:""}):null,Array.from($)]},H):null]})})};Kr.displayName=Ne;var Xr="SelectTrigger",qr=u.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...o}=e,s=Rt(n),i=ke(Xr,n),a=i.disabled||r,c=re(t,i.onTriggerChange),l=Et(n),f=u.useRef("touch"),[p,g,h]=vo(d=>{const m=l().filter(y=>!y.disabled),b=m.find(y=>y.value===i.value),w=bo(m,d,b);w!==void 0&&i.onValueChange(w.value)}),v=d=>{a||(i.onOpenChange(!0),h()),d&&(i.triggerPointerDownPosRef.current={x:Math.round(d.pageX),y:Math.round(d.pageY)})};return x.jsx(ic,{asChild:!0,...s,children:x.jsx(Z.button,{type:"button",role:"combobox","aria-controls":i.contentId,"aria-expanded":i.open,"aria-required":i.required,"aria-autocomplete":"none",dir:i.dir,"data-state":i.open?"open":"closed",disabled:a,"data-disabled":a?"":void 0,"data-placeholder":go(i.value)?"":void 0,...o,ref:c,onClick:J(o.onClick,d=>{d.currentTarget.focus(),f.current!=="mouse"&&v(d)}),onPointerDown:J(o.onPointerDown,d=>{f.current=d.pointerType;const m=d.target;m.hasPointerCapture(d.pointerId)&&m.releasePointerCapture(d.pointerId),d.button===0&&d.ctrlKey===!1&&d.pointerType==="mouse"&&(v(d),d.preventDefault())}),onKeyDown:J(o.onKeyDown,d=>{const m=p.current!=="";!(d.ctrlKey||d.altKey||d.metaKey)&&d.key.length===1&&g(d.key),!(m&&d.key===" ")&&lc.includes(d.key)&&(v(),d.preventDefault())})})})});qr.displayName=Xr;var Zr="SelectValue",Jr=u.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,children:s,placeholder:i="",...a}=e,c=ke(Zr,n),{onValueNodeHasChildrenChange:l}=c,f=s!==void 0,p=re(t,c.onValueNodeChange);return ie(()=>{l(f)},[l,f]),x.jsx(Z.span,{...a,ref:p,style:{pointerEvents:"none"},children:go(c.value)?x.jsx(x.Fragment,{children:i}):s})});Jr.displayName=Zr;var hc="SelectIcon",Qr=u.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...o}=e;return x.jsx(Z.span,{"aria-hidden":!0,...o,ref:t,children:r||"▼"})});Qr.displayName=hc;var gc="SelectPortal",eo=e=>x.jsx(qn,{asChild:!0,...e});eo.displayName=gc;var _e="SelectContent",to=u.forwardRef((e,t)=>{const n=ke(_e,e.__scopeSelect),[r,o]=u.useState();if(ie(()=>{o(new DocumentFragment)},[]),!n.open){const s=r;return s?Qe.createPortal(x.jsx(no,{scope:e.__scopeSelect,children:x.jsx(Ct.Slot,{scope:e.__scopeSelect,children:x.jsx("div",{children:e.children})})}),s):null}return x.jsx(ro,{...e,ref:t})});to.displayName=_e;var pe=10,[no,Pe]=Ue(_e),vc="SelectContentImpl",bc=ot("SelectContent.RemoveScroll"),ro=u.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:s,onPointerDownOutside:i,side:a,sideOffset:c,align:l,alignOffset:f,arrowPadding:p,collisionBoundary:g,collisionPadding:h,sticky:v,hideWhenDetached:d,avoidCollisions:m,...b}=e,w=ke(_e,n),[y,E]=u.useState(null),[k,N]=u.useState(null),A=re(t,R=>E(R)),[P,M]=u.useState(null),[B,V]=u.useState(null),W=Et(n),[$,z]=u.useState(!1),H=u.useRef(!1);u.useEffect(()=>{if(y)return Wi(y)},[y]),ei();const I=u.useCallback(R=>{const[U,...q]=W().map(X=>X.ref.current),[Y]=q.slice(-1),K=document.activeElement;for(const X of R)if(X===K||(X?.scrollIntoView({block:"nearest"}),X===U&&k&&(k.scrollTop=0),X===Y&&k&&(k.scrollTop=k.scrollHeight),X?.focus(),document.activeElement!==K))return},[W,k]),D=u.useCallback(()=>I([P,y]),[I,P,y]);u.useEffect(()=>{$&&D()},[$,D]);const{onOpenChange:C,triggerPointerDownPosRef:G}=w;u.useEffect(()=>{if(y){let R={x:0,y:0};const U=Y=>{R={x:Math.abs(Math.round(Y.pageX)-(G.current?.x??0)),y:Math.abs(Math.round(Y.pageY)-(G.current?.y??0))}},q=Y=>{R.x<=10&&R.y<=10?Y.preventDefault():y.contains(Y.target)||C(!1),document.removeEventListener("pointermove",U),G.current=null};return G.current!==null&&(document.addEventListener("pointermove",U),document.addEventListener("pointerup",q,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",U),document.removeEventListener("pointerup",q,{capture:!0})}}},[y,C,G]),u.useEffect(()=>{const R=()=>C(!1);return window.addEventListener("blur",R),window.addEventListener("resize",R),()=>{window.removeEventListener("blur",R),window.removeEventListener("resize",R)}},[C]);const[te,S]=vo(R=>{const U=W().filter(K=>!K.disabled),q=U.find(K=>K.ref.current===document.activeElement),Y=bo(U,R,q);Y&&setTimeout(()=>Y.ref.current.focus())}),_=u.useCallback((R,U,q)=>{const Y=!H.current&&!q;(w.value!==void 0&&w.value===U||Y)&&(M(R),Y&&(H.current=!0))},[w.value]),j=u.useCallback(()=>y?.focus(),[y]),L=u.useCallback((R,U,q)=>{const Y=!H.current&&!q;(w.value!==void 0&&w.value===U||Y)&&V(R)},[w.value]),oe=r==="popper"?nn:oo,ae=oe===nn?{side:a,sideOffset:c,align:l,alignOffset:f,arrowPadding:p,collisionBoundary:g,collisionPadding:h,sticky:v,hideWhenDetached:d,avoidCollisions:m}:{};return x.jsx(no,{scope:n,content:y,viewport:k,onViewportChange:N,itemRefCallback:_,selectedItem:P,onItemLeave:j,itemTextRefCallback:L,focusSelectedItem:D,selectedItemText:B,position:r,isPositioned:$,searchRef:te,children:x.jsx(ur,{as:bc,allowPinchZoom:!0,children:x.jsx(Un,{asChild:!0,trapped:w.open,onMountAutoFocus:R=>{R.preventDefault()},onUnmountAutoFocus:J(o,R=>{w.trigger?.focus({preventScroll:!0}),R.preventDefault()}),children:x.jsx(zn,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:s,onPointerDownOutside:i,onFocusOutside:R=>R.preventDefault(),onDismiss:()=>w.onOpenChange(!1),children:x.jsx(oe,{role:"listbox",id:w.contentId,"data-state":w.open?"open":"closed",dir:w.dir,onContextMenu:R=>R.preventDefault(),...b,...ae,onPlaced:()=>z(!0),ref:A,style:{display:"flex",flexDirection:"column",outline:"none",...b.style},onKeyDown:J(b.onKeyDown,R=>{const U=R.ctrlKey||R.altKey||R.metaKey;if(R.key==="Tab"&&R.preventDefault(),!U&&R.key.length===1&&S(R.key),["ArrowUp","ArrowDown","Home","End"].includes(R.key)){let Y=W().filter(K=>!K.disabled).map(K=>K.ref.current);if(["ArrowUp","End"].includes(R.key)&&(Y=Y.slice().reverse()),["ArrowUp","ArrowDown"].includes(R.key)){const K=R.target,X=Y.indexOf(K);Y=Y.slice(X+1)}setTimeout(()=>I(Y)),R.preventDefault()}})})})})})})});ro.displayName=vc;var wc="SelectItemAlignedPosition",oo=u.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...o}=e,s=ke(_e,n),i=Pe(_e,n),[a,c]=u.useState(null),[l,f]=u.useState(null),p=re(t,A=>f(A)),g=Et(n),h=u.useRef(!1),v=u.useRef(!0),{viewport:d,selectedItem:m,selectedItemText:b,focusSelectedItem:w}=i,y=u.useCallback(()=>{if(s.trigger&&s.valueNode&&a&&l&&d&&m&&b){const A=s.trigger.getBoundingClientRect(),P=l.getBoundingClientRect(),M=s.valueNode.getBoundingClientRect(),B=b.getBoundingClientRect();if(s.dir!=="rtl"){const K=B.left-P.left,X=M.left-K,ue=A.left-X,Ie=A.width+ue,ln=Math.max(Ie,P.width),un=window.innerWidth-pe,dn=Gr(X,[pe,Math.max(pe,un-ln)]);a.style.minWidth=Ie+"px",a.style.left=dn+"px"}else{const K=P.right-B.right,X=window.innerWidth-M.right-K,ue=window.innerWidth-A.right-X,Ie=A.width+ue,ln=Math.max(Ie,P.width),un=window.innerWidth-pe,dn=Gr(X,[pe,Math.max(pe,un-ln)]);a.style.minWidth=Ie+"px",a.style.right=dn+"px"}const V=g(),W=window.innerHeight-pe*2,$=d.scrollHeight,z=window.getComputedStyle(l),H=parseInt(z.borderTopWidth,10),I=parseInt(z.paddingTop,10),D=parseInt(z.borderBottomWidth,10),C=parseInt(z.paddingBottom,10),G=H+I+$+C+D,te=Math.min(m.offsetHeight*5,G),S=window.getComputedStyle(d),_=parseInt(S.paddingTop,10),j=parseInt(S.paddingBottom,10),L=A.top+A.height/2-pe,oe=W-L,ae=m.offsetHeight/2,R=m.offsetTop+ae,U=H+I+R,q=G-U;if(U<=L){const K=V.length>0&&m===V[V.length-1].ref.current;a.style.bottom="0px";const X=l.clientHeight-d.offsetTop-d.offsetHeight,ue=Math.max(oe,ae+(K?j:0)+X+D),Ie=U+ue;a.style.height=Ie+"px"}else{const K=V.length>0&&m===V[0].ref.current;a.style.top="0px";const ue=Math.max(L,H+d.offsetTop+(K?_:0)+ae)+q;a.style.height=ue+"px",d.scrollTop=U-L+d.offsetTop}a.style.margin=`${pe}px 0`,a.style.minHeight=te+"px",a.style.maxHeight=W+"px",r?.(),requestAnimationFrame(()=>h.current=!0)}},[g,s.trigger,s.valueNode,a,l,d,m,b,s.dir,r]);ie(()=>y(),[y]);const[E,k]=u.useState();ie(()=>{l&&k(window.getComputedStyle(l).zIndex)},[l]);const N=u.useCallback(A=>{A&&v.current===!0&&(y(),w?.(),v.current=!1)},[y,w]);return x.jsx(yc,{scope:n,contentWrapper:a,shouldExpandOnScrollRef:h,onScrollButtonChange:N,children:x.jsx("div",{ref:c,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:E},children:x.jsx(Z.div,{...o,ref:p,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});oo.displayName=wc;var xc="SelectPopperPosition",nn=u.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:o=pe,...s}=e,i=Rt(n);return x.jsx(ac,{...i,...s,ref:t,align:r,collisionPadding:o,style:{boxSizing:"border-box",...s.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});nn.displayName=xc;var[yc,rn]=Ue(_e,{}),on="SelectViewport",so=u.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...o}=e,s=Pe(on,n),i=rn(on,n),a=re(t,s.onViewportChange),c=u.useRef(0);return x.jsxs(x.Fragment,{children:[x.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:r}),x.jsx(Ct.Slot,{scope:n,children:x.jsx(Z.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:a,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:J(o.onScroll,l=>{const f=l.currentTarget,{contentWrapper:p,shouldExpandOnScrollRef:g}=i;if(g?.current&&p){const h=Math.abs(c.current-f.scrollTop);if(h>0){const v=window.innerHeight-pe*2,d=parseFloat(p.style.minHeight),m=parseFloat(p.style.height),b=Math.max(d,m);if(b<v){const w=b+h,y=Math.min(v,w),E=w-y;p.style.height=y+"px",p.style.bottom==="0px"&&(f.scrollTop=E>0?E:0,p.style.justifyContent="flex-end")}}}c.current=f.scrollTop})})})]})});so.displayName=on;var io="SelectGroup",[Sc,Cc]=Ue(io),Ec=u.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=It();return x.jsx(Sc,{scope:n,id:o,children:x.jsx(Z.div,{role:"group","aria-labelledby":o,...r,ref:t})})});Ec.displayName=io;var ao="SelectLabel",Rc=u.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=Cc(ao,n);return x.jsx(Z.div,{id:o.id,...r,ref:t})});Rc.displayName=ao;var kt="SelectItem",[kc,co]=Ue(kt),lo=u.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:o=!1,textValue:s,...i}=e,a=ke(kt,n),c=Pe(kt,n),l=a.value===r,[f,p]=u.useState(s??""),[g,h]=u.useState(!1),v=re(t,w=>c.itemRefCallback?.(w,r,o)),d=It(),m=u.useRef("touch"),b=()=>{o||(a.onValueChange(r),a.onOpenChange(!1))};if(r==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return x.jsx(kc,{scope:n,value:r,disabled:o,textId:d,isSelected:l,onItemTextChange:u.useCallback(w=>{p(y=>y||(w?.textContent??"").trim())},[]),children:x.jsx(Ct.ItemSlot,{scope:n,value:r,disabled:o,textValue:f,children:x.jsx(Z.div,{role:"option","aria-labelledby":d,"data-highlighted":g?"":void 0,"aria-selected":l&&g,"data-state":l?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...i,ref:v,onFocus:J(i.onFocus,()=>h(!0)),onBlur:J(i.onBlur,()=>h(!1)),onClick:J(i.onClick,()=>{m.current!=="mouse"&&b()}),onPointerUp:J(i.onPointerUp,()=>{m.current==="mouse"&&b()}),onPointerDown:J(i.onPointerDown,w=>{m.current=w.pointerType}),onPointerMove:J(i.onPointerMove,w=>{m.current=w.pointerType,o?c.onItemLeave?.():m.current==="mouse"&&w.currentTarget.focus({preventScroll:!0})}),onPointerLeave:J(i.onPointerLeave,w=>{w.currentTarget===document.activeElement&&c.onItemLeave?.()}),onKeyDown:J(i.onKeyDown,w=>{c.searchRef?.current!==""&&w.key===" "||(uc.includes(w.key)&&b(),w.key===" "&&w.preventDefault())})})})})});lo.displayName=kt;var Je="SelectItemText",uo=u.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,...s}=e,i=ke(Je,n),a=Pe(Je,n),c=co(Je,n),l=mc(Je,n),[f,p]=u.useState(null),g=re(t,b=>p(b),c.onItemTextChange,b=>a.itemTextRefCallback?.(b,c.value,c.disabled)),h=f?.textContent,v=u.useMemo(()=>x.jsx("option",{value:c.value,disabled:c.disabled,children:h},c.value),[c.disabled,c.value,h]),{onNativeOptionAdd:d,onNativeOptionRemove:m}=l;return ie(()=>(d(v),()=>m(v)),[d,m,v]),x.jsxs(x.Fragment,{children:[x.jsx(Z.span,{id:c.textId,...s,ref:g}),c.isSelected&&i.valueNode&&!i.valueNodeHasChildren?Qe.createPortal(s.children,i.valueNode):null]})});uo.displayName=Je;var fo="SelectItemIndicator",po=u.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return co(fo,n).isSelected?x.jsx(Z.span,{"aria-hidden":!0,...r,ref:t}):null});po.displayName=fo;var sn="SelectScrollUpButton",Pc=u.forwardRef((e,t)=>{const n=Pe(sn,e.__scopeSelect),r=rn(sn,e.__scopeSelect),[o,s]=u.useState(!1),i=re(t,r.onScrollButtonChange);return ie(()=>{if(n.viewport&&n.isPositioned){let a=function(){const l=c.scrollTop>0;s(l)};const c=n.viewport;return a(),c.addEventListener("scroll",a),()=>c.removeEventListener("scroll",a)}},[n.viewport,n.isPositioned]),o?x.jsx(mo,{...e,ref:i,onAutoScroll:()=>{const{viewport:a,selectedItem:c}=n;a&&c&&(a.scrollTop=a.scrollTop-c.offsetHeight)}}):null});Pc.displayName=sn;var an="SelectScrollDownButton",Ac=u.forwardRef((e,t)=>{const n=Pe(an,e.__scopeSelect),r=rn(an,e.__scopeSelect),[o,s]=u.useState(!1),i=re(t,r.onScrollButtonChange);return ie(()=>{if(n.viewport&&n.isPositioned){let a=function(){const l=c.scrollHeight-c.clientHeight,f=Math.ceil(c.scrollTop)<l;s(f)};const c=n.viewport;return a(),c.addEventListener("scroll",a),()=>c.removeEventListener("scroll",a)}},[n.viewport,n.isPositioned]),o?x.jsx(mo,{...e,ref:i,onAutoScroll:()=>{const{viewport:a,selectedItem:c}=n;a&&c&&(a.scrollTop=a.scrollTop+c.offsetHeight)}}):null});Ac.displayName=an;var mo=u.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...o}=e,s=Pe("SelectScrollButton",n),i=u.useRef(null),a=Et(n),c=u.useCallback(()=>{i.current!==null&&(window.clearInterval(i.current),i.current=null)},[]);return u.useEffect(()=>()=>c(),[c]),ie(()=>{a().find(f=>f.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:"nearest"})},[a]),x.jsx(Z.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:J(o.onPointerDown,()=>{i.current===null&&(i.current=window.setInterval(r,50))}),onPointerMove:J(o.onPointerMove,()=>{s.onItemLeave?.(),i.current===null&&(i.current=window.setInterval(r,50))}),onPointerLeave:J(o.onPointerLeave,()=>{c()})})}),Tc="SelectSeparator",Oc=u.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return x.jsx(Z.div,{"aria-hidden":!0,...r,ref:t})});Oc.displayName=Tc;var cn="SelectArrow",Nc=u.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=Rt(n),s=ke(cn,n),i=Pe(cn,n);return s.open&&i.position==="popper"?x.jsx(cc,{...o,...r,ref:t}):null});Nc.displayName=cn;var _c="SelectBubbleInput",ho=u.forwardRef(({__scopeSelect:e,value:t,...n},r)=>{const o=u.useRef(null),s=re(r,o),i=fr(t);return u.useEffect(()=>{const a=o.current;if(!a)return;const c=window.HTMLSelectElement.prototype,f=Object.getOwnPropertyDescriptor(c,"value").set;if(i!==t&&f){const p=new Event("change",{bubbles:!0});f.call(a,t),a.dispatchEvent(p)}},[i,t]),x.jsx(Z.select,{...n,style:{...Fn,...n.style},ref:s,defaultValue:t})});ho.displayName=_c;function go(e){return e===""||e===void 0}function vo(e){const t=Te(e),n=u.useRef(""),r=u.useRef(0),o=u.useCallback(i=>{const a=n.current+i;t(a),(function c(l){n.current=l,window.clearTimeout(r.current),l!==""&&(r.current=window.setTimeout(()=>c(""),1e3))})(a)},[t]),s=u.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return u.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,o,s]}function bo(e,t,n){const o=t.length>1&&Array.from(t).every(l=>l===t[0])?t[0]:t,s=n?e.indexOf(n):-1;let i=Ic(e,Math.max(s,0));o.length===1&&(i=i.filter(l=>l!==n));const c=i.find(l=>l.textValue.toLowerCase().startsWith(o.toLowerCase()));return c!==n?c:void 0}function Ic(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var Mc=Kr,jc=qr,Lc=Jr,Dc=Qr,Fc=eo,Bc=to,Wc=so,zc=lo,Vc=uo,$c=po,Pt="Switch",[Hc]=st(Pt),[Uc,Yc]=Hc(Pt),wo=u.forwardRef((e,t)=>{const{__scopeSwitch:n,name:r,checked:o,defaultChecked:s,required:i,disabled:a,value:c="on",onCheckedChange:l,form:f,...p}=e,[g,h]=u.useState(null),v=re(t,y=>h(y)),d=u.useRef(!1),m=g?f||!!g.closest("form"):!0,[b,w]=_t({prop:o,defaultProp:s??!1,onChange:l,caller:Pt});return x.jsxs(Uc,{scope:n,checked:b,disabled:a,children:[x.jsx(Z.button,{type:"button",role:"switch","aria-checked":b,"aria-required":i,"data-state":Co(b),"data-disabled":a?"":void 0,disabled:a,value:c,...p,ref:v,onClick:J(e.onClick,y=>{w(E=>!E),m&&(d.current=y.isPropagationStopped(),d.current||y.stopPropagation())})}),m&&x.jsx(So,{control:g,bubbles:!d.current,name:r,value:c,checked:b,required:i,disabled:a,form:f,style:{transform:"translateX(-100%)"}})]})});wo.displayName=Pt;var xo="SwitchThumb",yo=u.forwardRef((e,t)=>{const{__scopeSwitch:n,...r}=e,o=Yc(xo,n);return x.jsx(Z.span,{"data-state":Co(o.checked),"data-disabled":o.disabled?"":void 0,...r,ref:t})});yo.displayName=xo;var Gc="SwitchBubbleInput",So=u.forwardRef(({__scopeSwitch:e,control:t,checked:n,bubbles:r=!0,...o},s)=>{const i=u.useRef(null),a=re(i,s),c=fr(n),l=pr(t);return u.useEffect(()=>{const f=i.current;if(!f)return;const p=window.HTMLInputElement.prototype,h=Object.getOwnPropertyDescriptor(p,"checked").set;if(c!==n&&h){const v=new Event("click",{bubbles:r});h.call(f,n),f.dispatchEvent(v)}},[c,n,r]),x.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:n,...o,tabIndex:-1,ref:a,style:{...o.style,...l,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});So.displayName=Gc;function Co(e){return e?"checked":"unchecked"}var Kc=wo,Xc=yo;const qc=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Zc=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,r)=>r?r.toUpperCase():n.toLowerCase()),Eo=e=>{const t=Zc(e);return t.charAt(0).toUpperCase()+t.slice(1)},Ro=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim(),Jc=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};var Qc={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"};const el=Q.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:s,iconNode:i,...a},c)=>Q.createElement("svg",{ref:c,...Qc,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:Ro("lucide",o),...!s&&!Jc(a)&&{"aria-hidden":"true"},...a},[...i.map(([l,f])=>Q.createElement(l,f)),...Array.isArray(s)?s:[s]]));const ko=(e,t)=>{const n=Q.forwardRef(({className:r,...o},s)=>Q.createElement(el,{ref:s,iconNode:t,className:Ro(`lucide-${qc(Eo(e))}`,`lucide-${e}`,r),...o}));return n.displayName=Eo(e),n};const tl=ko("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);const nl=ko("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]),rl=e=>x.jsx(Mc,{...e}),ol=({children:e,className:t,...n})=>x.jsxs(zc,{className:ee("text-sm px-3 py-2 rounded-lg bg-bg-1 cursor-pointer hover:bg-bg-2 outline-none",t),...n,children:[x.jsxs(Vc,{children:[" ",e]}),x.jsx("span",{className:"absolute right-2 items-center justify-center",children:x.jsx($c,{children:x.jsx(tl,{className:"w-4 h-4 text-text-2"})})})]}),sl=({className:e,error:t,children:n,...r})=>x.jsxs(jc,{className:ee("bg-bg-1 *:data-[slot=select-value]:overflow-hidden whitespace-nowrap flex justify-between data-[placeholder]:text-text-2 text-text-1 flex items-center gap-3 rounded-lg text-sm cursor-pointer px-3 h-10 border border-border-1 outline-none","data-[state=open]:ring-2 data-[state=open]:ring-border-1/80",e,t&&"border-danger text-danger data-[slot=select-value]:text-danger/80"),"aria-label":"select-trigger",...r,children:[n,x.jsx(Dc,{asChild:!0,children:x.jsx(nl,{className:ee("w-5 h-5 text-text-2",t&&"text-danger/80")})})]}),il=({className:e,...t})=>x.jsx(Lc,{"data-slot":"select-value",className:e,style:{display:"none"},...t}),al=({children:e,className:t,...n})=>x.jsx(Fc,{children:x.jsx(Bc,{"data-slot":"select-content",className:ee("rounded-lg min-w-42 bg-bg-1 border border-border-2 data-[state=open]:animate-popover-in shadow-sm",t),position:"popper",...n,children:x.jsx(Wc,{children:e})})}),cl=({options:e,placeholder:t,onChange:n,defaultValue:r,className:o,contentClassName:s,value:i,error:a})=>x.jsxs(rl,{onValueChange:n,value:i,defaultValue:r,children:[x.jsx(sl,{error:a,className:o,children:x.jsx(il,{placeholder:t})}),x.jsx(al,{className:s,children:e.map(c=>x.jsx(ol,{value:c.value,children:c.label}))})]}),ll=({sections:e,containerClassName:t,pathname:n,open:r,textHeader:o,IconHeader:s,setOpen:i})=>x.jsxs("div",{className:ee("fixed top-0 left-0 inset-0 shrink-0 overflow-hidden z-999 transition-all",r?"pointer-events-auto lg:w-72":"pointer-events-none lg:pointer-events-auto lg:w-21",t),children:[x.jsx("div",{className:ee("bg-overlay w-full h-full transition-opacity lg:hidden",r?"opacity-100":"opacity-0"),onClick:()=>i(!1)}),x.jsxs("nav",{className:ee("absolute px-5 w-72 py-5 top-0 shrink-0 transition-all left-0 h-full bg-bg-1 lg:border-r lg:border-r-border-2",r?"translate-x-0":"-translate-x-full lg:translate-x-0 lg:w-21"),children:[x.jsxs("div",{className:"flex gap-3 items-center mb-7",children:[x.jsx("div",{className:"w-11 h-10 rounded-lg bg-primary-500 shrink-0 flex items-center justify-center",children:x.jsx(s,{className:"w-5 h-5 text-text-3"})}),x.jsx("span",{className:ee("text-text-1 transition-opacity font-bold text-2xl",r?"opacity-100":"opacity-0"),children:o})]}),x.jsx("div",{className:"flex flex-col gap-8",children:e.map(({options:a,title:c,id:l})=>x.jsxs("section",{children:[x.jsx("p",{className:ee("mb-2 text-text-2 text-sm transition-opacity",r?"opacity-100":"opacity-0"),children:c}),a.map(({label:f,href:p,Icon:g,onClick:h},v)=>{const d=n.startsWith(p);return x.jsxs("button",{onClick:h,className:ee("h-10 w-full transition-[width] rounded-lg overflow-hidden text-sm text-text-2 px-3 cursor-pointer flex items-center gap-3",d&&"bg-primary-500 text-text-3",r?"w-full":"w-11"),children:[x.jsx(g,{className:ee("w-5 h-5 text-text-2 shrink-0",d&&"text-text-3")}),x.jsx("p",{className:ee("transition-opacity",r?"opacity-100":"opacity-0"),children:f})]},v)})]},l))})]})]}),ul=({steps:e,currentStep:t=0,className:n,labelClassName:r})=>x.jsx("div",{className:ee("flex items-center gap-4",n),children:e.map((o,s)=>{const i=t>=s;return x.jsxs(x.Fragment,{children:[x.jsx("div",{className:"flex flex-col items-center",children:x.jsxs("button",{className:ee("relative w-10 h-10 rounded-lg cursor-pointer bg-bg-1 text-text-2 border border-border-2 font-bold",i&&"bg-primary-500 border-none text-text-3"),children:[s+1,x.jsx("p",{className:ee("absolute left-1/2 -translate-x-1/2 top-full text-center w-fit text-sm font-normal translate-y-px",i&&"text-text-1",r),children:o.label})]},s)}),s+1<e.length&&x.jsx("div",{className:"h-px w-full bg-border-2"})]})})}),Po=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Ao=bn,dl=((e,t)=>n=>{var r;if(t?.variants==null)return Ao(e,n?.class,n?.className);const{variants:o,defaultVariants:s}=t,i=Object.keys(o).map(l=>{const f=n?.[l],p=s?.[l];if(f===null)return null;const g=Po(f)||Po(p);return o[l][g]}),a=n&&Object.entries(n).reduce((l,f)=>{let[p,g]=f;return g===void 0||(l[p]=g),l},{}),c=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((l,f)=>{let{class:p,className:g,...h}=f;return Object.entries(h).every(v=>{let[d,m]=v;return Array.isArray(m)?m.includes({...s,...a}[d]):{...s,...a}[d]===m})?[...l,p,g]:l},[]);return Ao(e,i,c,n?.class,n?.className)})("h-10 px-3 text-sm flex items-center gap-3 rounded-lg cursor-pointer transition-[background-color] w-fit",{variants:{variant:{filled:"bg-primary-500 text-text-3 font-medium hover:bg-primary-400",outlined:"border border-border-2 bg-bg-1 text-text-1 hover:bg-bg-1/50",ghost:"bg-bg-1 text-text-1 font-medium hover:bg-bg-1/50",icon:"h-10 w-10 bg-bg-1 hover:bg-bg-1/50"}}}),fl=({variant:e,className:t,children:n,...r})=>x.jsx("button",{className:ee(dl({variant:e,className:t})),...r,children:n}),pl=e=>x.jsx(Kc,{className:"h-6 w-10 bg-bg-1 rounded-full relative cursor-pointer data-[state=checked]:bg-primary-500 border-border-2 border",...e,children:x.jsx(Xc,{className:"transition-transform will-change-transform block w-5 h-5 bg-text-2 rounded-full translate-x-0.5 data-[state=checked]:translate-x-4 data-[state=checked]:bg-text-3"})}),ml=({text:e="Badge",type:t="success"})=>{const n={success:"bg-bg-success text-success border-success",error:"bg-bg-danger text-danger border-danger",warning:"bg-bg-warning text-warning border-warning"};return x.jsx("div",{className:ee("text-sm px-3 py-1 rounded-lg border outline-none",n[t]),children:e})};se.Badge=ml,se.Button=fl,se.Input=ws,se.Select=cl,se.SideNavigation=ll,se.Stepper=ul,se.Switch=pl,Object.defineProperty(se,Symbol.toStringTag,{value:"Module"})}));
|
package/dist/vite.svg
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="31.88" height="32" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 257"><defs><linearGradient id="IconifyId1813088fe1fbc01fb466" x1="-.828%" x2="57.636%" y1="7.652%" y2="78.411%"><stop offset="0%" stop-color="#41D1FF"></stop><stop offset="100%" stop-color="#BD34FE"></stop></linearGradient><linearGradient id="IconifyId1813088fe1fbc01fb467" x1="43.376%" x2="50.316%" y1="2.242%" y2="89.03%"><stop offset="0%" stop-color="#FFEA83"></stop><stop offset="8.333%" stop-color="#FFDD35"></stop><stop offset="100%" stop-color="#FFA800"></stop></linearGradient></defs><path fill="url(#IconifyId1813088fe1fbc01fb466)" d="M255.153 37.938L134.897 252.976c-2.483 4.44-8.862 4.466-11.382.048L.875 37.958c-2.746-4.814 1.371-10.646 6.827-9.67l120.385 21.517a6.537 6.537 0 0 0 2.322-.004l117.867-21.483c5.438-.991 9.574 4.796 6.877 9.62Z"></path><path fill="url(#IconifyId1813088fe1fbc01fb467)" d="M185.432.063L96.44 17.501a3.268 3.268 0 0 0-2.634 3.014l-5.474 92.456a3.268 3.268 0 0 0 3.997 3.378l24.777-5.718c2.318-.535 4.413 1.507 3.936 3.838l-7.361 36.047c-.495 2.426 1.782 4.5 4.151 3.78l15.304-4.649c2.372-.72 4.652 1.36 4.15 3.788l-11.698 56.621c-.732 3.542 3.979 5.473 5.943 2.437l1.313-2.028l72.516-144.72c1.215-2.423-.88-5.186-3.54-4.672l-25.505 4.922c-2.396.462-4.435-1.77-3.759-4.114l16.646-57.705c.677-2.35-1.37-4.583-3.769-4.113Z"></path></svg>
|
package/package.json
ADDED
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "rently-components",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"description": "React component library for Rently",
|
|
6
|
+
"keywords": [
|
|
7
|
+
"react",
|
|
8
|
+
"components",
|
|
9
|
+
"ui",
|
|
10
|
+
"tailwindcss"
|
|
11
|
+
],
|
|
12
|
+
"license": "MIT",
|
|
13
|
+
"main": "./dist/rently-components.cjs",
|
|
14
|
+
"module": "./dist/rently-components.js",
|
|
15
|
+
"types": "./dist/index.d.ts",
|
|
16
|
+
"files": [
|
|
17
|
+
"dist"
|
|
18
|
+
],
|
|
19
|
+
"sideEffects": [
|
|
20
|
+
"**/*.css"
|
|
21
|
+
],
|
|
22
|
+
"scripts": {
|
|
23
|
+
"dev": "vite",
|
|
24
|
+
"build": "vite build && tsc --project tsconfig.app.json --emitDeclarationOnly",
|
|
25
|
+
"lint": "eslint .",
|
|
26
|
+
"preview": "vite preview",
|
|
27
|
+
"storybook": "storybook dev -p 6006",
|
|
28
|
+
"build-storybook": "storybook build",
|
|
29
|
+
"prepublishOnly": "npm run build"
|
|
30
|
+
},
|
|
31
|
+
"peerDependencies": {
|
|
32
|
+
"react": "^18.0.0 || ^19.0.0",
|
|
33
|
+
"react-dom": "^18.0.0 || ^19.0.0"
|
|
34
|
+
},
|
|
35
|
+
"dependencies": {
|
|
36
|
+
"@radix-ui/react-select": "^2.2.6",
|
|
37
|
+
"@radix-ui/react-switch": "^1.2.6",
|
|
38
|
+
"class-variance-authority": "^0.7.1",
|
|
39
|
+
"clsx": "^2.1.1",
|
|
40
|
+
"lucide-react": "^0.562.0",
|
|
41
|
+
"radix-ui": "^1.4.3",
|
|
42
|
+
"tailwind-merge": "^3.4.0",
|
|
43
|
+
"vite-tsconfig-paths": "^6.0.4"
|
|
44
|
+
},
|
|
45
|
+
"devDependencies": {
|
|
46
|
+
"@tailwindcss/vite": "^4.1.18",
|
|
47
|
+
"tailwindcss": "^4.1.18",
|
|
48
|
+
"react": "^19.2.0",
|
|
49
|
+
"react-dom": "^19.2.0",
|
|
50
|
+
"@eslint/js": "^9.39.1",
|
|
51
|
+
"@types/node": "^24.10.1",
|
|
52
|
+
"@types/react": "^19.2.5",
|
|
53
|
+
"@types/react-dom": "^19.2.3",
|
|
54
|
+
"@vitejs/plugin-react": "^5.1.1",
|
|
55
|
+
"eslint": "^9.39.1",
|
|
56
|
+
"eslint-plugin-react-hooks": "^7.0.1",
|
|
57
|
+
"eslint-plugin-react-refresh": "^0.4.24",
|
|
58
|
+
"globals": "^16.5.0",
|
|
59
|
+
"typescript": "~5.9.3",
|
|
60
|
+
"typescript-eslint": "^8.46.4",
|
|
61
|
+
"vite": "^7.2.4",
|
|
62
|
+
"storybook": "^10.1.11",
|
|
63
|
+
"@storybook/react-vite": "^10.1.11",
|
|
64
|
+
"@chromatic-com/storybook": "^4.1.3",
|
|
65
|
+
"@storybook/addon-vitest": "^10.1.11",
|
|
66
|
+
"@storybook/addon-a11y": "^10.1.11",
|
|
67
|
+
"@storybook/addon-docs": "^10.1.11",
|
|
68
|
+
"eslint-plugin-storybook": "^10.1.11",
|
|
69
|
+
"vitest": "^4.0.16",
|
|
70
|
+
"playwright": "^1.57.0",
|
|
71
|
+
"@vitest/browser-playwright": "^4.0.16",
|
|
72
|
+
"@vitest/coverage-v8": "^4.0.16"
|
|
73
|
+
}
|
|
74
|
+
}
|