@mhome/ui 0.1.6 → 0.1.8
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/dist/index.cjs.js +1 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/date-picker.jsx +13 -16
package/dist/index.cjs.js
CHANGED
|
@@ -5,5 +5,5 @@
|
|
|
5
5
|
* This source code is licensed under the ISC license.
|
|
6
6
|
* See the LICENSE file in the root directory of this source tree.
|
|
7
7
|
*/
|
|
8
|
-
var Tt=function(e){var t=function(e){return e.replace(/^([A-Z])|[\s-_]+(\w)/g,function(e,t,r){return r?r.toUpperCase():t.toLowerCase()})}(e);return t.charAt(0).toUpperCase()+t.slice(1)},St=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.filter(function(e,t,r){return Boolean(e)&&""!==e.trim()&&r.indexOf(e)===t}).join(" ").trim()},Lt={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"},Dt=["color","size","strokeWidth","absoluteStrokeWidth","className","children","iconNode"],At=e.forwardRef(function(t,r){var n=t.color,o=void 0===n?"currentColor":n,i=t.size,a=void 0===i?24:i,s=t.strokeWidth,u=void 0===s?2:s,f=t.absoluteStrokeWidth,m=t.className,x=void 0===m?"":m,g=t.children,v=t.iconNode,h=d(t,Dt);return e.createElement("svg",l(l(l({ref:r},Lt),{},{width:a,height:a,stroke:o,strokeWidth:f?24*Number(u)/Number(a):u,className:St("lucide",x)},!g&&!function(e){for(var t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0}(h)&&{"aria-hidden":"true"}),h),[].concat(p(v.map(function(t){var r=c(t,2),n=r[0],o=r[1];return e.createElement(n,o)})),p(Array.isArray(g)?g:[g])))}),zt=["className"],It=function(t,r){var n=e.forwardRef(function(n,o){var i,a=n.className,s=d(n,zt);return e.createElement(At,l({ref:o,iconNode:r,className:St("lucide-".concat((i=Tt(t),i.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase())),"lucide-".concat(t),a)},s))});return n.displayName=Tt(t),n},Wt=It("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]),Bt=It("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]),Pt=It("circle-alert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]),$t=It("circle-check-big",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]),Ht=It("info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]),Vt=It("triangle-alert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]),_t=It("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),Ft=["className","children","value","onChange","size","label","error","helperText","disabled","displayEmpty","native","renderValue","startAdornment","endAdornment","multiple","sx","style","menuStyle","menuClassName"],qt=["className","value","children"],Yt=["className","fullWidth","size","children","style"],Gt=o.forwardRef(function(e,r){var n=e.className,i=e.children,a=e.value,s=e.onChange,u=e.size,f=void 0===u?"small":u,m=e.label,x=e.error,g=void 0!==x&&x,v=e.helperText,h=e.disabled,b=void 0!==h&&h,y=e.displayEmpty,w=void 0!==y&&y;e.native;var k=e.renderValue,N=e.startAdornment,C=e.endAdornment,j=e.multiple,E=void 0!==j&&j,R=e.sx,M=e.style,O=e.menuStyle,T=e.menuClassName,S=d(e,Ft),L=function(e){return e||"hsl(var(--background))"},D="dark"===Se(),A=c(o.useState(!1),2),z=A[0],I=A[1],W=c(o.useState(!1),2),B=W[0],P=W[1],$=c(o.useState(!1),2),H=$[0],V=$[1],_=o.useRef(null),F=o.useRef(null),q=o.useId();o.useImperativeHandle(r,function(){return _.current});var Y=o.useMemo(function(){return R?function(e){if(!e)return{};var t={},r=function(){if(Object.prototype.hasOwnProperty.call(e,n)){var r=e[n];if("number"==typeof r&&["p","px","py","pt","pb","pl","pr","m","mx","my","mt","mb","ml","mr","gap"].includes(n)){var o={p:"padding",px:["paddingLeft","paddingRight"],py:["paddingTop","paddingBottom"],pt:"paddingTop",pb:"paddingBottom",pl:"paddingLeft",pr:"paddingRight",m:"margin",mx:["marginLeft","marginRight"],my:["marginTop","marginBottom"],mt:"marginTop",mb:"marginBottom",ml:"marginLeft",mr:"marginRight",gap:"gap"}[n];Array.isArray(o)?o.forEach(function(e){return t[e]=Te(r)}):t[o]=Te(r)}else"bgcolor"===n?"string"==typeof r&&r.includes(".")?t.backgroundColor={"background.paper":"hsl(var(--card))","background.default":"hsl(var(--background))","background.card":"hsl(var(--card))"}[r]||r:t.backgroundColor=r:t[n]=r}};for(var n in e)r();return t}("function"==typeof R?R({}):R):{}},[R]),G=E&&Array.isArray(a),U=G?a:[a],K=o.useMemo(function(){if(!i)return"";if(G)return"";var e=o.Children.toArray(i).find(function(e){return o.isValidElement(e)&&e.props.value===a});return e&&o.isValidElement(e)?e.props.children:""},[i,a,G]);o.useEffect(function(){var e=function(e){F.current&&!F.current.contains(e.target)&&_.current&&!_.current.contains(e.target)&&V(!1)};if(H)return document.addEventListener("mousedown",e),function(){return document.removeEventListener("mousedown",e)}},[H]);var X=function(e){if(s)if(G){var t=Array.isArray(a)?a:[],r=t.includes(e)?t.filter(function(t){return t!==e}):[].concat(p(t),[e]);s({target:{value:r}})}else s({target:{value:e}}),V(!1)};return t.jsxs("div",{className:"relative w-full",style:{overflow:"visible"},children:[m&&t.jsx("label",{className:"block text-sm font-medium mb-1 text-foreground",children:m}),t.jsxs("button",l(l({ref:_,type:"button",role:"combobox","aria-expanded":H,"aria-haspopup":"listbox","aria-label":m||"Select an option","aria-controls":H?"".concat(q,"-listbox"):void 0,onClick:function(){return!b&&V(!H)},disabled:b,className:Oe("w-full rounded-3xl border transition-colors flex items-center",{small:"h-9 text-sm",medium:"h-10"}[f],"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2","disabled:cursor-not-allowed disabled:opacity-50",n),style:l(l(l({borderColor:g?"hsl(var(--destructive))":z||H||B?"hsl(var(--primary))":"hsl(var(--input))",backgroundColor:z||H?L("hsl(var(--input))"):B?"hsl(var(--accent))":"transparent",color:"hsl(var(--foreground))",textAlign:"left",fontWeight:"normal",paddingLeft:N?"8px":"14px",paddingRight:C?"8px":"14px",paddingTop:"6px",paddingBottom:"6px"},void 0!==(null==M?void 0:M.borderRadius)?{borderRadius:M.borderRadius}:{}),Y),Object.fromEntries(Object.entries(M||{}).filter(function(e){return"borderRadius"!==c(e,1)[0]}))),onFocus:function(){return!b&&I(!0)},onBlur:function(){return I(!1)},onMouseEnter:function(){return!b&&P(!0)},onMouseLeave:function(){return P(!1)}},S),{},{children:[N,t.jsx("span",{style:{flex:1,textAlign:"left"},children:k?k(a):K||(w?"":"Select...")}),C||t.jsx(Bt,{size:16,className:Oe("transition-transform text-foreground",H&&"rotate-180")})]})),H&&t.jsx("div",{ref:F,id:"".concat(q,"-listbox"),role:"listbox","aria-label":m||"Options",className:Oe("absolute z-50 w-full mt-1 shadow-lg",T),style:l({backgroundColor:"hsl(var(--card))",boxShadow:D?"0px 4px 12px rgba(0, 0, 0, 0.4)":"0px 4px 12px rgba(0, 0, 0, 0.15)",border:D?"1px solid rgba(255, 255, 255, 0.1)":"1px solid hsl(var(--border))",borderRadius:"8px",overflow:"hidden"},O),children:o.Children.map(i,function(e){if(!o.isValidElement(e))return null;var r=G?U.includes(e.props.value):e.props.value===a,n="hsl(var(--card))";return t.jsx("div",{role:"option","aria-selected":r,onClick:function(){return X(e.props.value)},className:"cursor-pointer transition-colors focus:outline-none focus:bg-accent",style:{backgroundColor:r?"hsl(var(--accent))":n,color:"hsl(var(--foreground))",paddingLeft:"0.875rem",paddingRight:"0.875rem",paddingTop:"0.5rem",paddingBottom:"0.5rem",fontSize:"0.875rem",fontWeight:"normal",textAlign:"left"},onKeyDown:function(t){"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),X(e.props.value))},tabIndex:0,onMouseEnter:function(e){r||(e.currentTarget.style.backgroundColor="hsl(var(--accent))")},onMouseLeave:function(e){e.currentTarget.style.backgroundColor=r?"hsl(var(--accent))":n},children:e.props.children},e.props.value)})}),v&&t.jsx("div",{className:"text-xs mt-1",style:{color:g?"hsl(var(--destructive))":"hsl(var(--muted-foreground))"},children:v})]})});Gt.displayName="Select";var Ut=o.forwardRef(function(e,t){return e.className,e.value,e.children,d(e,qt),null});Ut.displayName="MenuItem";var Kt=o.forwardRef(function(e,r){var n=e.className,o=e.fullWidth,i=void 0!==o&&o;e.size;var a=e.children,s=e.style,c=d(e,Yt);return t.jsx("div",l(l({ref:r,className:Oe(i&&"w-full",n),style:l({position:"relative"},s)},c),{},{children:a}))});Kt.displayName="FormControl";var Xt=["className","checked","onChange","disabled","style","aria-label","aria-labelledby"],Zt=o.forwardRef(function(e,r){var n=e.className,i=e.checked,a=e.onChange,s=e.disabled,p=e.style,u=e["aria-label"],f=e["aria-labelledby"],m=d(e,Xt),x=c(o.useState(!1),2),g=x[0],v=x[1];return t.jsxs("label",{className:Oe("relative inline-flex items-center justify-center cursor-pointer",s&&"cursor-not-allowed opacity-50",n),style:p,children:[t.jsx("input",l({ref:r,type:"checkbox",checked:i,onChange:a,disabled:s,className:"sr-only","aria-label":u,"aria-labelledby":f},m)),t.jsx("div",{className:Oe("flex items-center justify-center transition-colors w-5 h-5 border-2 rounded",i?"bg-primary border-primary":g&&!s?"border-primary":"border-input bg-transparent",s&&"opacity-50 cursor-not-allowed"),onMouseEnter:function(){return!s&&v(!0)},onMouseLeave:function(){return v(!1)},"aria-hidden":"true",children:i&&t.jsx(Wt,{size:14,className:"text-primary-foreground"})})]})});Zt.displayName="Checkbox";var Jt=["className","style","children"],Qt=["className","style","alignItems","disablePadding","dense","children"],er=["padding","paddingTop","paddingBottom","paddingLeft","paddingRight"],tr=["className","style","children"],rr=["marginRight","minWidth","color"],nr=["className","style","primary","secondary","children"],or=["className","style","selected","onClick","disabled","children","dense","disablePadding"],ir=["className","style","children"],ar=["marginRight","minWidth"],sr=o.forwardRef(function(e,r){var n=e.className,o=e.style,i=e.children,a=d(e,Jt);return t.jsx("div",l(l({ref:r,className:Oe("w-full",n),style:l({padding:0,margin:0},o)},a),{},{children:i}))});sr.displayName="List";var lr=o.forwardRef(function(e,r){var n=e.className,o=e.style,i=e.alignItems,a=void 0===i?"flex-start":i,s=e.disablePadding,c=e.dense,p=e.children,u=d(e,Qt),f=o||{},m=f.padding,x=f.paddingTop,g=f.paddingBottom,v=f.paddingLeft,h=f.paddingRight,b=d(f,er),y="";return s||(void 0!==m||void 0!==x||void 0!==g||void 0!==v||void 0!==h)||(y=c?"py-2 px-8":"py-4 px-8"),t.jsx("div",l(l({ref:r,className:Oe("flex",y,n),style:l({alignItems:a,padding:s?0:m,paddingTop:s?0:x,paddingBottom:s?0:g,paddingLeft:s?0:v,paddingRight:s?0:h},b)},u),{},{children:p}))});lr.displayName="ListItem";var dr=o.forwardRef(function(e,r){var n=e.className,o=e.style,i=e.children,a=d(e,tr),s=o||{},c=s.marginRight,p=s.minWidth,u=s.color,f=d(s,rr);return t.jsx("div",l(l({ref:r,className:Oe("flex items-center justify-center",n),style:l(l({minWidth:void 0!==p?p:"auto",marginRight:void 0!==c?c:"1rem"},void 0!==u&&{color:u}),f)},a),{},{children:i}))});dr.displayName="ListItemIcon";var cr=o.forwardRef(function(e,r){var n=e.className,i=e.style,a=e.primary,s=e.secondary,c=e.children,p=d(e,nr);return t.jsxs("div",l(l({ref:r,className:Oe("flex flex-col",n),style:l({flex:1,margin:0},i)},p),{},{children:[a&&t.jsx("div",{className:Oe(s&&"mb-2"),children:o.isValidElement(a)?a:t.jsx(kt,{variant:"body1",color:"default",children:a})}),s&&t.jsx("div",{children:o.isValidElement(s)?s:t.jsx(kt,{variant:"body2",color:"muted",children:s})}),c]}))});cr.displayName="ListItemText";var pr=o.forwardRef(function(e,r){var n=e.className,i=e.style,a=e.selected,s=e.onClick,p=e.disabled,u=e.children,f=e.dense,m=e.disablePadding,x=d(e,or),g=c(o.useState(!1),2),v=g[0],h=g[1],b="";return m||(b=f?"py-2 px-8":"py-4 px-8"),t.jsx("div",l(l({ref:r,role:"button",tabIndex:p?-1:0,"aria-disabled":p,"aria-selected":a,className:Oe("flex cursor-pointer transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",b,a?"bg-primary text-primary-foreground hover:bg-primary/90":v?"bg-accent text-accent-foreground":"hover:bg-accent hover:text-accent-foreground",p&&"opacity-50 cursor-not-allowed",n),style:l({alignItems:"center"},i),onClick:p?void 0:s,onKeyDown:function(e){p||"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),s&&s(e))},onMouseEnter:function(){return!p&&h(!0)},onMouseLeave:function(){return h(!1)}},x),{},{children:u}))});pr.displayName="ListItemButton";var ur=o.forwardRef(function(e,r){var n=e.className,o=e.style,i=e.children,a=d(e,ir),s=o||{},c=s.marginRight,p=s.minWidth,u=d(s,ar);return t.jsx("div",l(l({ref:r,className:Oe("flex items-center justify-center",n),style:l({minWidth:void 0!==p?p:"40px",marginRight:void 0!==c?c:"1rem"},u)},a),{},{children:i}))});ur.displayName="ListItemAvatar";var fr=["className","style","expanded","onChange","children","defaultExpanded"],mr=["marginBottom","border","borderRadius","boxShadow","backgroundColor"],xr=["className","style","expandIcon","children","expanded","onChange","id"],gr=["padding","paddingTop","paddingBottom","paddingLeft","paddingRight","backgroundColor"],vr=["className","style","expanded","children","id"],hr=["backgroundColor","padding","paddingTop","paddingBottom","paddingLeft","paddingRight"],br=["padding","paddingTop","paddingBottom","paddingLeft","paddingRight"],yr=o.forwardRef(function(e,r){var n=e.className,i=e.style,a=e.expanded,s=e.onChange,p=e.children,u=e.defaultExpanded,f=d(e,fr),m=c(o.useState(u||!1),2),x=m[0],g=m[1],v=o.useId(),h=o.useRef(s),b=o.useRef(a);o.useEffect(function(){h.current=s,b.current=a},[s,a]);var y=o.useCallback(function(e){var t,r;e&&(null===(t=e.preventDefault)||void 0===t||t.call(e),null===(r=e.stopPropagation)||void 0===r||r.call(e));var n=b.current,o=!(void 0!==n?n:x);g(o),h.current&&h.current(e,o)},[x]),w=void 0!==a?a:x;null==i||i.backgroundColor;var k=i||{},N=k.marginBottom,C=k.border,j=k.borderRadius,E=k.boxShadow,R=k.backgroundColor,M=d(k,mr);return t.jsx("div",l(l({ref:r,role:"region",className:Oe("overflow-hidden rounded-2xl",void 0===N&&"mb-2",n),style:l({border:void 0!==C?C:"1px solid hsl(var(--border))",borderRadius:void 0!==j?j:16,boxShadow:void 0!==E?E:"none",backgroundColor:void 0!==R?R:"hsl(var(--card))",marginBottom:N},M)},f),{},{children:o.Children.map(p,function(e){if(o.isValidElement(e)){if(e.type===wr)return o.cloneElement(e,{expanded:w,onChange:y,id:"".concat(v,"-summary")});if(e.type===kr)return o.cloneElement(e,{expanded:w,id:"".concat(v,"-content")})}return e})}))});yr.displayName="Accordion";var wr=o.forwardRef(function(e,r){var n=e.className,o=e.style,i=e.expandIcon,a=e.children,s=e.expanded,c=e.onChange,p=e.id,u=d(e,xr),f=o||{},m=f.padding,x=f.paddingTop,g=f.paddingBottom,v=f.paddingLeft,h=f.paddingRight,b=f.backgroundColor,y=d(f,gr),w=void 0!==m||void 0!==x||void 0!==g||void 0!==v||void 0!==h?"":"py-2 px-4",k=void 0!==(null==o?void 0:o.minHeight)?o.minHeight:"auto",N=p?"".concat(p,"-content"):void 0;return t.jsxs("button",l(l({ref:r,type:"button",id:p,"aria-expanded":s,"aria-controls":N,onClick:function(e){e.preventDefault(),e.stopPropagation(),c&&c(e)},className:Oe("w-full flex items-center justify-between transition-colors focus:outline-none",w,n),style:l({border:"none",borderTop:"none",borderBottom:"none",cursor:"pointer",textAlign:"left",backgroundColor:void 0!==b?b:"transparent",minHeight:k,padding:m,paddingTop:x,paddingBottom:g,paddingLeft:v,paddingRight:h},y),onKeyDown:function(e){"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),c&&c(e))}},u),{},{children:[t.jsx("div",{style:{flex:1},children:a}),!1!==i&&(i||t.jsx(Bt,{size:20,className:"text-foreground",style:{transform:s?"rotate(180deg)":"rotate(0deg)",transition:"transform 0.2s",marginLeft:"0.5rem"}}))]}))});wr.displayName="AccordionSummary";var kr=o.forwardRef(function(e,r){var n=e.className,o=e.style,i=e.expanded,a=e.children,s=e.id,c=d(e,vr);if(!i)return null;var p=o||{},u=p.backgroundColor,f=p.padding,m=p.paddingTop,x=p.paddingBottom,g=p.paddingLeft,v=p.paddingRight,h=d(p,hr);h.padding,h.paddingTop,h.paddingBottom,h.paddingLeft,h.paddingRight;var b=void 0!==f?f:void 0!==m||void 0!==x||void 0!==g||void 0!==v?void 0:"1rem",y=l({backgroundColor:u||"transparent"},d(h,br));return void 0!==b&&(y.padding=b),void 0!==m&&(y.paddingTop=m),void 0!==x&&(y.paddingBottom=x),void 0!==g&&(y.paddingLeft=g),void 0!==v&&(y.paddingRight=v),t.jsx("div",l(l({ref:r,id:s,role:"region","aria-labelledby":s?s.replace("-content","-summary"):void 0,className:Oe("text-foreground",n),style:l(l({},y),{},{borderTop:"none"})},c),{},{children:a}))});kr.displayName="AccordionDetails";var Nr=["className","severity","variant","onClose","action","icon","iconMapping","children","style"],Cr=["padding","paddingTop","paddingBottom","paddingLeft","paddingRight"],jr=o.forwardRef(function(e,r){var n,o,i=e.className,a=e.severity,s=void 0===a?"info":a,c=e.variant,p=void 0===c?"standard":c,f=e.onClose,m=e.action,x=e.icon,g=e.iconMapping,v=e.children,h=e.style,b=d(e,Nr),y={error:Pt,warning:Vt,info:Ht,success:$t},w=x&&"object"===u(x)&&x.$$typeof,k=!w&&(x||(null==g?void 0:g[s])||y[s]||Ht),N=(null===(n=(o={error:{standard:"bg-destructive/10 text-destructive",filled:"bg-destructive text-destructive-foreground",outlined:"border-destructive text-destructive bg-transparent"},warning:{standard:"bg-warning/10 text-warning",filled:"bg-warning text-warning-foreground",outlined:"border-warning text-warning bg-transparent"},info:{standard:"bg-info/10 text-info",filled:"bg-info text-info-foreground",outlined:"border-info text-info bg-transparent"},success:{standard:"bg-success/10 text-success",filled:"bg-success text-success-foreground",outlined:"border-success text-success bg-transparent"}})[s])||void 0===n?void 0:n[p])||o.info.standard,C=h||{},j=C.padding,E=C.paddingTop,R=C.paddingBottom,M=C.paddingLeft,O=C.paddingRight,T=d(C,Cr),S=void 0!==j||void 0!==E||void 0!==R||void 0!==M||void 0!==O?"":"p-4";return t.jsxs("div",l(l({ref:r,role:"alert",className:Oe("relative flex items-center gap-3 rounded-2xl text-sm",S,"outlined"===p&&"border",N,i),style:l({padding:j,paddingTop:E,paddingBottom:R,paddingLeft:M,paddingRight:O},T)},b),{},{children:[!1!==x&&(w?t.jsx("div",{className:"flex-shrink-0 flex items-center text-current",children:x}):t.jsx(k,{size:20,className:"flex-shrink-0 text-current"})),t.jsx("div",{className:"flex-1 flex items-center",children:v}),(f||m)&&t.jsxs("div",{className:"flex items-center gap-1",children:[m,f&&t.jsx("button",{onClick:f,className:"flex items-center justify-center rounded-sm opacity-70 hover:opacity-100 transition-opacity p-2 text-current","aria-label":"Close",children:t.jsx(_t,{size:16})})]})]}))});jr.displayName="Alert";var Er=["className","value","onChange","children","centered","variant","style"],Rr=["className","label","selected","onClick","index","style","variant","id","aria-controls"],Mr=["padding","paddingLeft","paddingRight","paddingTop","paddingBottom","margin","marginLeft","marginRight","backgroundColor","color"],Or=["onClick"],Tr=["backgroundColor","color"],Sr=["onClick"],Lr=o.forwardRef(function(e,r){var n=e.className,i=e.value,a=e.onChange,s=e.children,p=e.centered,u=e.variant,f=e.style,m=d(e,Er),x=o.useRef(null),g=o.useRef(null),v=c(o.useState(function(){return void 0!==i?i:0}),2),h=v[0],b=v[1];o.useEffect(function(){void 0!==i&&b(i)},[i]);var y=o.useCallback(function(e){var t=e;void 0===i&&b(t),a&&a(null,t)},[i,a]),w=void 0!==i?i:h,k="standard"===u;o.useEffect(function(){if(k&&x.current&&g.current){var e=x.current.querySelectorAll("[data-tab-index]")[w];if(e){var t=x.current.getBoundingClientRect(),r=e.getBoundingClientRect();g.current.style.left="".concat(r.left-t.left,"px"),g.current.style.width="".concat(r.width,"px")}}},[w,s,k]);var N=o.useId();return t.jsxs("div",l(l({ref:r,className:Oe(k?"relative mb-4":"flex",!k&&p&&"justify-center",n),style:l({minHeight:"auto"},f)},m),{},{children:[t.jsx("div",{ref:x,role:"tablist","aria-label":"Tabs",className:Oe(k?"flex border-b relative w-full":"flex gap-4 px-8 py-4"),style:l(l({},k&&{borderColor:"hsl(var(--border))"}),k&&{display:"flex",width:"100%"}),children:o.Children.map(s,function(e,t){var r;if(o.isValidElement(e)&&(e.type===Dr||"Tab"===(null===(r=e.type)||void 0===r?void 0:r.displayName))){var n=Number(w)===Number(t);return o.cloneElement(e,l(l({},e.props),{},{selected:n,onClick:function(){return y(t)},index:t,"data-tab-index":t,variant:k?"standard":void 0,id:"".concat(N,"-tab-").concat(t),"aria-controls":"".concat(N,"-panel-").concat(t)}))}return e})}),k&&t.jsx("div",{ref:g,style:{position:"absolute",bottom:0,height:"2px",backgroundColor:"hsl(var(--primary))",transition:"all 0.3s cubic-bezier(0.4, 0, 0.2, 1)"}})]}))});Lr.displayName="Tabs";var Dr=o.forwardRef(function(e,r){var n=e.className,o=e.label,i=e.selected,a=e.onClick;e.index;var s=e.style,c=e.variant,p=e.id,u=e["aria-controls"],f=d(e,Rr),m="standard"===c,x=s||{},g=x.padding,v=x.paddingLeft,h=x.paddingRight,b=x.paddingTop,y=x.paddingBottom,w=x.margin,k=x.marginLeft,N=x.marginRight,C=x.backgroundColor,j=x.color,E=d(x,Mr),R=void 0!==g||void 0!==v||void 0!==h||void 0!==b||void 0!==y;if(m){var M=R?"":"px-3 py-4",O=void 0!==j?j:i?"hsl(var(--primary))":"hsl(var(--muted-foreground))",T=f.onClick,S=d(f,Or);return t.jsx("button",l(l({ref:r,type:"button",role:"tab",id:p,"aria-selected":i,"aria-controls":u,tabIndex:i?0:-1,onClick:function(e){a&&a(e),T&&T(e)},onKeyDown:function(e){"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),a&&a(e))},className:Oe("cursor-pointer transition-all duration-200 text-sm border-none bg-transparent focus:outline-none",M,"min-w-[72px] min-h-[48px] flex-1",i?"font-semibold":"font-medium",n),style:l({color:O,textTransform:"none",flex:1,minWidth:0,padding:g,paddingLeft:v,paddingRight:h,paddingTop:b,paddingBottom:y,margin:w,marginLeft:k,marginRight:N},E),onMouseEnter:function(e){i||(e.currentTarget.style.backgroundColor="hsl(var(--accent))")},onMouseLeave:function(e){e.currentTarget.style.backgroundColor="transparent"}},S),{},{children:o}))}var L=i?{color:"hsl(var(--primary-foreground))",backgroundColor:"hsl(var(--primary))"}:{color:"hsl(var(--foreground))",backgroundColor:"hsl(var(--accent))"},D=R?"":"px-4 py-3",A=void 0!==w||void 0!==k||void 0!==N?"":"mx-2",z=void 0!==C?C:L.backgroundColor,I=void 0!==j?j:L.color;E.backgroundColor,E.color;var W=d(E,Tr),B=f.onClick,P=d(f,Sr);return t.jsx("button",l(l({ref:r,type:"button",role:"tab",id:p,"aria-selected":i,"aria-controls":u,tabIndex:i?0:-1,onClick:function(e){a&&a(e),B&&B(e)},onKeyDown:function(e){"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),a&&a(e))},className:Oe("cursor-pointer transition-all duration-200 min-h-[32px] min-w-[100px] rounded-2xl text-sm border-none focus:outline-none",D,A,i?"font-semibold":"font-medium",n),style:l(l(l(l(l(l(l(l(l({color:I,backgroundColor:z},void 0!==g&&{padding:g}),void 0!==v&&{paddingLeft:v}),void 0!==h&&{paddingRight:h}),void 0!==b&&{paddingTop:b}),void 0!==y&&{paddingBottom:y}),void 0!==w&&{margin:w}),void 0!==k&&{marginLeft:k}),void 0!==N&&{marginRight:N}),W),onMouseEnter:function(e){e.currentTarget.style.backgroundColor=i?"hsl(var(--primary) / 0.9)":"hsl(var(--accent))"},onMouseLeave:function(e){e.currentTarget.style.backgroundColor=z}},P),{},{children:o}))});Dr.displayName="Tab";var Ar="top",zr="bottom",Ir="right",Wr="left",Br="auto",Pr=[Ar,zr,Ir,Wr],$r="start",Hr="end",Vr="viewport",_r="popper",Fr=Pr.reduce(function(e,t){return e.concat([t+"-"+$r,t+"-"+Hr])},[]),qr=[].concat(Pr,[Br]).reduce(function(e,t){return e.concat([t,t+"-"+$r,t+"-"+Hr])},[]),Yr=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function Gr(e){return e?(e.nodeName||"").toLowerCase():null}function Ur(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Kr(e){return e instanceof Ur(e).Element||e instanceof Element}function Xr(e){return e instanceof Ur(e).HTMLElement||e instanceof HTMLElement}function Zr(e){return"undefined"!=typeof ShadowRoot&&(e instanceof Ur(e).ShadowRoot||e instanceof ShadowRoot)}var Jr={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var r=t.styles[e]||{},n=t.attributes[e]||{},o=t.elements[e];Xr(o)&&Gr(o)&&(Object.assign(o.style,r),Object.keys(n).forEach(function(e){var t=n[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)}))})},effect:function(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(e){var n=t.elements[e],o=t.attributes[e]||{},i=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:r[e]).reduce(function(e,t){return e[t]="",e},{});Xr(n)&&Gr(n)&&(Object.assign(n.style,i),Object.keys(o).forEach(function(e){n.removeAttribute(e)}))})}},requires:["computeStyles"]};function Qr(e){return e.split("-")[0]}var en=Math.max,tn=Math.min,rn=Math.round;function nn(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function on(){return!/^((?!chrome|android).)*safari/i.test(nn())}function an(e,t,r){void 0===t&&(t=!1),void 0===r&&(r=!1);var n=e.getBoundingClientRect(),o=1,i=1;t&&Xr(e)&&(o=e.offsetWidth>0&&rn(n.width)/e.offsetWidth||1,i=e.offsetHeight>0&&rn(n.height)/e.offsetHeight||1);var a=(Kr(e)?Ur(e):window).visualViewport,s=!on()&&r,l=(n.left+(s&&a?a.offsetLeft:0))/o,d=(n.top+(s&&a?a.offsetTop:0))/i,c=n.width/o,p=n.height/i;return{width:c,height:p,top:d,right:l+c,bottom:d+p,left:l,x:l,y:d}}function sn(e){var t=an(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function ln(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&Zr(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function dn(e){return Ur(e).getComputedStyle(e)}function cn(e){return["table","td","th"].indexOf(Gr(e))>=0}function pn(e){return((Kr(e)?e.ownerDocument:e.document)||window.document).documentElement}function un(e){return"html"===Gr(e)?e:e.assignedSlot||e.parentNode||(Zr(e)?e.host:null)||pn(e)}function fn(e){return Xr(e)&&"fixed"!==dn(e).position?e.offsetParent:null}function mn(e){for(var t=Ur(e),r=fn(e);r&&cn(r)&&"static"===dn(r).position;)r=fn(r);return r&&("html"===Gr(r)||"body"===Gr(r)&&"static"===dn(r).position)?t:r||function(e){var t=/firefox/i.test(nn());if(/Trident/i.test(nn())&&Xr(e)&&"fixed"===dn(e).position)return null;var r=un(e);for(Zr(r)&&(r=r.host);Xr(r)&&["html","body"].indexOf(Gr(r))<0;){var n=dn(r);if("none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||-1!==["transform","perspective"].indexOf(n.willChange)||t&&"filter"===n.willChange||t&&n.filter&&"none"!==n.filter)return r;r=r.parentNode}return null}(e)||t}function xn(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function gn(e,t,r){return en(e,tn(t,r))}function vn(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function hn(e,t){return t.reduce(function(t,r){return t[r]=e,t},{})}var bn={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,r=e.state,n=e.name,o=e.options,i=r.elements.arrow,a=r.modifiersData.popperOffsets,s=Qr(r.placement),l=xn(s),d=[Wr,Ir].indexOf(s)>=0?"height":"width";if(i&&a){var c=function(e,t){return vn("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:hn(e,Pr))}(o.padding,r),p=sn(i),u="y"===l?Ar:Wr,f="y"===l?zr:Ir,m=r.rects.reference[d]+r.rects.reference[l]-a[l]-r.rects.popper[d],x=a[l]-r.rects.reference[l],g=mn(i),v=g?"y"===l?g.clientHeight||0:g.clientWidth||0:0,h=m/2-x/2,b=c[u],y=v-p[d]-c[f],w=v/2-p[d]/2+h,k=gn(b,w,y),N=l;r.modifiersData[n]=((t={})[N]=k,t.centerOffset=k-w,t)}},effect:function(e){var t=e.state,r=e.options.element,n=void 0===r?"[data-popper-arrow]":r;null!=n&&("string"!=typeof n||(n=t.elements.popper.querySelector(n)))&&ln(t.elements.popper,n)&&(t.elements.arrow=n)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function yn(e){return e.split("-")[1]}var wn={top:"auto",right:"auto",bottom:"auto",left:"auto"};function kn(e){var t,r=e.popper,n=e.popperRect,o=e.placement,i=e.variation,a=e.offsets,s=e.position,l=e.gpuAcceleration,d=e.adaptive,c=e.roundOffsets,p=e.isFixed,u=a.x,f=void 0===u?0:u,m=a.y,x=void 0===m?0:m,g="function"==typeof c?c({x:f,y:x}):{x:f,y:x};f=g.x,x=g.y;var v=a.hasOwnProperty("x"),h=a.hasOwnProperty("y"),b=Wr,y=Ar,w=window;if(d){var k=mn(r),N="clientHeight",C="clientWidth";if(k===Ur(r)&&"static"!==dn(k=pn(r)).position&&"absolute"===s&&(N="scrollHeight",C="scrollWidth"),o===Ar||(o===Wr||o===Ir)&&i===Hr)y=zr,x-=(p&&k===w&&w.visualViewport?w.visualViewport.height:k[N])-n.height,x*=l?1:-1;if(o===Wr||(o===Ar||o===zr)&&i===Hr)b=Ir,f-=(p&&k===w&&w.visualViewport?w.visualViewport.width:k[C])-n.width,f*=l?1:-1}var j,E=Object.assign({position:s},d&&wn),R=!0===c?function(e,t){var r=e.x,n=e.y,o=t.devicePixelRatio||1;return{x:rn(r*o)/o||0,y:rn(n*o)/o||0}}({x:f,y:x},Ur(r)):{x:f,y:x};return f=R.x,x=R.y,l?Object.assign({},E,((j={})[y]=h?"0":"",j[b]=v?"0":"",j.transform=(w.devicePixelRatio||1)<=1?"translate("+f+"px, "+x+"px)":"translate3d("+f+"px, "+x+"px, 0)",j)):Object.assign({},E,((t={})[y]=h?x+"px":"",t[b]=v?f+"px":"",t.transform="",t))}var Nn={passive:!0};var Cn={left:"right",right:"left",bottom:"top",top:"bottom"};function jn(e){return e.replace(/left|right|bottom|top/g,function(e){return Cn[e]})}var En={start:"end",end:"start"};function Rn(e){return e.replace(/start|end/g,function(e){return En[e]})}function Mn(e){var t=Ur(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function On(e){return an(pn(e)).left+Mn(e).scrollLeft}function Tn(e){var t=dn(e),r=t.overflow,n=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+o+n)}function Sn(e){return["html","body","#document"].indexOf(Gr(e))>=0?e.ownerDocument.body:Xr(e)&&Tn(e)?e:Sn(un(e))}function Ln(e,t){var r;void 0===t&&(t=[]);var n=Sn(e),o=n===(null==(r=e.ownerDocument)?void 0:r.body),i=Ur(n),a=o?[i].concat(i.visualViewport||[],Tn(n)?n:[]):n,s=t.concat(a);return o?s:s.concat(Ln(un(a)))}function Dn(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function An(e,t,r){return t===Vr?Dn(function(e,t){var r=Ur(e),n=pn(e),o=r.visualViewport,i=n.clientWidth,a=n.clientHeight,s=0,l=0;if(o){i=o.width,a=o.height;var d=on();(d||!d&&"fixed"===t)&&(s=o.offsetLeft,l=o.offsetTop)}return{width:i,height:a,x:s+On(e),y:l}}(e,r)):Kr(t)?function(e,t){var r=an(e,!1,"fixed"===t);return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}(t,r):Dn(function(e){var t,r=pn(e),n=Mn(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=en(r.scrollWidth,r.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=en(r.scrollHeight,r.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-n.scrollLeft+On(e),l=-n.scrollTop;return"rtl"===dn(o||r).direction&&(s+=en(r.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:s,y:l}}(pn(e)))}function zn(e,t,r,n){var o="clippingParents"===t?function(e){var t=Ln(un(e)),r=["absolute","fixed"].indexOf(dn(e).position)>=0&&Xr(e)?mn(e):e;return Kr(r)?t.filter(function(e){return Kr(e)&&ln(e,r)&&"body"!==Gr(e)}):[]}(e):[].concat(t),i=[].concat(o,[r]),a=i[0],s=i.reduce(function(t,r){var o=An(e,r,n);return t.top=en(o.top,t.top),t.right=tn(o.right,t.right),t.bottom=tn(o.bottom,t.bottom),t.left=en(o.left,t.left),t},An(e,a,n));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function In(e){var t,r=e.reference,n=e.element,o=e.placement,i=o?Qr(o):null,a=o?yn(o):null,s=r.x+r.width/2-n.width/2,l=r.y+r.height/2-n.height/2;switch(i){case Ar:t={x:s,y:r.y-n.height};break;case zr:t={x:s,y:r.y+r.height};break;case Ir:t={x:r.x+r.width,y:l};break;case Wr:t={x:r.x-n.width,y:l};break;default:t={x:r.x,y:r.y}}var d=i?xn(i):null;if(null!=d){var c="y"===d?"height":"width";switch(a){case $r:t[d]=t[d]-(r[c]/2-n[c]/2);break;case Hr:t[d]=t[d]+(r[c]/2-n[c]/2)}}return t}function Wn(e,t){void 0===t&&(t={});var r=t,n=r.placement,o=void 0===n?e.placement:n,i=r.strategy,a=void 0===i?e.strategy:i,s=r.boundary,l=void 0===s?"clippingParents":s,d=r.rootBoundary,c=void 0===d?Vr:d,p=r.elementContext,u=void 0===p?_r:p,f=r.altBoundary,m=void 0!==f&&f,x=r.padding,g=void 0===x?0:x,v=vn("number"!=typeof g?g:hn(g,Pr)),h=u===_r?"reference":_r,b=e.rects.popper,y=e.elements[m?h:u],w=zn(Kr(y)?y:y.contextElement||pn(e.elements.popper),l,c,a),k=an(e.elements.reference),N=In({reference:k,element:b,placement:o}),C=Dn(Object.assign({},b,N)),j=u===_r?C:k,E={top:w.top-j.top+v.top,bottom:j.bottom-w.bottom+v.bottom,left:w.left-j.left+v.left,right:j.right-w.right+v.right},R=e.modifiersData.offset;if(u===_r&&R){var M=R[o];Object.keys(E).forEach(function(e){var t=[Ir,zr].indexOf(e)>=0?1:-1,r=[Ar,zr].indexOf(e)>=0?"y":"x";E[e]+=M[r]*t})}return E}function Bn(e,t){void 0===t&&(t={});var r=t,n=r.placement,o=r.boundary,i=r.rootBoundary,a=r.padding,s=r.flipVariations,l=r.allowedAutoPlacements,d=void 0===l?qr:l,c=yn(n),p=c?s?Fr:Fr.filter(function(e){return yn(e)===c}):Pr,u=p.filter(function(e){return d.indexOf(e)>=0});0===u.length&&(u=p);var f=u.reduce(function(t,r){return t[r]=Wn(e,{placement:r,boundary:o,rootBoundary:i,padding:a})[Qr(r)],t},{});return Object.keys(f).sort(function(e,t){return f[e]-f[t]})}var Pn={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var o=r.mainAxis,i=void 0===o||o,a=r.altAxis,s=void 0===a||a,l=r.fallbackPlacements,d=r.padding,c=r.boundary,p=r.rootBoundary,u=r.altBoundary,f=r.flipVariations,m=void 0===f||f,x=r.allowedAutoPlacements,g=t.options.placement,v=Qr(g),h=l||(v===g||!m?[jn(g)]:function(e){if(Qr(e)===Br)return[];var t=jn(e);return[Rn(e),t,Rn(t)]}(g)),b=[g].concat(h).reduce(function(e,r){return e.concat(Qr(r)===Br?Bn(t,{placement:r,boundary:c,rootBoundary:p,padding:d,flipVariations:m,allowedAutoPlacements:x}):r)},[]),y=t.rects.reference,w=t.rects.popper,k=new Map,N=!0,C=b[0],j=0;j<b.length;j++){var E=b[j],R=Qr(E),M=yn(E)===$r,O=[Ar,zr].indexOf(R)>=0,T=O?"width":"height",S=Wn(t,{placement:E,boundary:c,rootBoundary:p,altBoundary:u,padding:d}),L=O?M?Ir:Wr:M?zr:Ar;y[T]>w[T]&&(L=jn(L));var D=jn(L),A=[];if(i&&A.push(S[R]<=0),s&&A.push(S[L]<=0,S[D]<=0),A.every(function(e){return e})){C=E,N=!1;break}k.set(E,A)}if(N)for(var z=function(e){var t=b.find(function(t){var r=k.get(t);if(r)return r.slice(0,e).every(function(e){return e})});if(t)return C=t,"break"},I=m?3:1;I>0;I--){if("break"===z(I))break}t.placement!==C&&(t.modifiersData[n]._skip=!0,t.placement=C,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function $n(e,t,r){return void 0===r&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function Hn(e){return[Ar,Ir,zr,Wr].some(function(t){return e[t]>=0})}var Vn={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,r=e.options,n=e.name,o=r.offset,i=void 0===o?[0,0]:o,a=qr.reduce(function(e,r){return e[r]=function(e,t,r){var n=Qr(e),o=[Wr,Ar].indexOf(n)>=0?-1:1,i="function"==typeof r?r(Object.assign({},t,{placement:e})):r,a=i[0],s=i[1];return a=a||0,s=(s||0)*o,[Wr,Ir].indexOf(n)>=0?{x:s,y:a}:{x:a,y:s}}(r,t.rects,i),e},{}),s=a[t.placement],l=s.x,d=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=d),t.modifiersData[n]=a}};var _n={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,r=e.options,n=e.name,o=r.mainAxis,i=void 0===o||o,a=r.altAxis,s=void 0!==a&&a,l=r.boundary,d=r.rootBoundary,c=r.altBoundary,p=r.padding,u=r.tether,f=void 0===u||u,m=r.tetherOffset,x=void 0===m?0:m,g=Wn(t,{boundary:l,rootBoundary:d,padding:p,altBoundary:c}),v=Qr(t.placement),h=yn(t.placement),b=!h,y=xn(v),w="x"===y?"y":"x",k=t.modifiersData.popperOffsets,N=t.rects.reference,C=t.rects.popper,j="function"==typeof x?x(Object.assign({},t.rects,{placement:t.placement})):x,E="number"==typeof j?{mainAxis:j,altAxis:j}:Object.assign({mainAxis:0,altAxis:0},j),R=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,M={x:0,y:0};if(k){if(i){var O,T="y"===y?Ar:Wr,S="y"===y?zr:Ir,L="y"===y?"height":"width",D=k[y],A=D+g[T],z=D-g[S],I=f?-C[L]/2:0,W=h===$r?N[L]:C[L],B=h===$r?-C[L]:-N[L],P=t.elements.arrow,$=f&&P?sn(P):{width:0,height:0},H=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},V=H[T],_=H[S],F=gn(0,N[L],$[L]),q=b?N[L]/2-I-F-V-E.mainAxis:W-F-V-E.mainAxis,Y=b?-N[L]/2+I+F+_+E.mainAxis:B+F+_+E.mainAxis,G=t.elements.arrow&&mn(t.elements.arrow),U=G?"y"===y?G.clientTop||0:G.clientLeft||0:0,K=null!=(O=null==R?void 0:R[y])?O:0,X=D+Y-K,Z=gn(f?tn(A,D+q-K-U):A,D,f?en(z,X):z);k[y]=Z,M[y]=Z-D}if(s){var J,Q="x"===y?Ar:Wr,ee="x"===y?zr:Ir,te=k[w],re="y"===w?"height":"width",ne=te+g[Q],oe=te-g[ee],ie=-1!==[Ar,Wr].indexOf(v),ae=null!=(J=null==R?void 0:R[w])?J:0,se=ie?ne:te-N[re]-C[re]-ae+E.altAxis,le=ie?te+N[re]+C[re]-ae-E.altAxis:oe,de=f&&ie?function(e,t,r){var n=gn(e,t,r);return n>r?r:n}(se,te,le):gn(f?se:ne,te,f?le:oe);k[w]=de,M[w]=de-te}t.modifiersData[n]=M}},requiresIfExists:["offset"]};function Fn(e,t,r){void 0===r&&(r=!1);var n,o,i=Xr(t),a=Xr(t)&&function(e){var t=e.getBoundingClientRect(),r=rn(t.width)/e.offsetWidth||1,n=rn(t.height)/e.offsetHeight||1;return 1!==r||1!==n}(t),s=pn(t),l=an(e,a,r),d={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(i||!i&&!r)&&(("body"!==Gr(t)||Tn(s))&&(d=(n=t)!==Ur(n)&&Xr(n)?{scrollLeft:(o=n).scrollLeft,scrollTop:o.scrollTop}:Mn(n)),Xr(t)?((c=an(t,!0)).x+=t.clientLeft,c.y+=t.clientTop):s&&(c.x=On(s))),{x:l.left+d.scrollLeft-c.x,y:l.top+d.scrollTop-c.y,width:l.width,height:l.height}}function qn(e){var t=new Map,r=new Set,n=[];function o(e){r.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach(function(e){if(!r.has(e)){var n=t.get(e);n&&o(n)}}),n.push(e)}return e.forEach(function(e){t.set(e.name,e)}),e.forEach(function(e){r.has(e.name)||o(e)}),n}var Yn={placement:"bottom",modifiers:[],strategy:"absolute"};function Gn(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some(function(e){return!(e&&"function"==typeof e.getBoundingClientRect)})}function Un(e){void 0===e&&(e={});var t=e,r=t.defaultModifiers,n=void 0===r?[]:r,o=t.defaultOptions,i=void 0===o?Yn:o;return function(e,t,r){void 0===r&&(r=i);var o,a,s={placement:"bottom",orderedModifiers:[],options:Object.assign({},Yn,i),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},l=[],d=!1,c={state:s,setOptions:function(r){var o="function"==typeof r?r(s.options):r;p(),s.options=Object.assign({},i,s.options,o),s.scrollParents={reference:Kr(e)?Ln(e):e.contextElement?Ln(e.contextElement):[],popper:Ln(t)};var a,d,u=function(e){var t=qn(e);return Yr.reduce(function(e,r){return e.concat(t.filter(function(e){return e.phase===r}))},[])}((a=[].concat(n,s.options.modifiers),d=a.reduce(function(e,t){var r=e[t.name];return e[t.name]=r?Object.assign({},r,t,{options:Object.assign({},r.options,t.options),data:Object.assign({},r.data,t.data)}):t,e},{}),Object.keys(d).map(function(e){return d[e]})));return s.orderedModifiers=u.filter(function(e){return e.enabled}),s.orderedModifiers.forEach(function(e){var t=e.name,r=e.options,n=void 0===r?{}:r,o=e.effect;if("function"==typeof o){var i=o({state:s,name:t,instance:c,options:n}),a=function(){};l.push(i||a)}}),c.update()},forceUpdate:function(){if(!d){var e=s.elements,t=e.reference,r=e.popper;if(Gn(t,r)){s.rects={reference:Fn(t,mn(r),"fixed"===s.options.strategy),popper:sn(r)},s.reset=!1,s.placement=s.options.placement,s.orderedModifiers.forEach(function(e){return s.modifiersData[e.name]=Object.assign({},e.data)});for(var n=0;n<s.orderedModifiers.length;n++)if(!0!==s.reset){var o=s.orderedModifiers[n],i=o.fn,a=o.options,l=void 0===a?{}:a,p=o.name;"function"==typeof i&&(s=i({state:s,options:l,name:p,instance:c})||s)}else s.reset=!1,n=-1}}},update:(o=function(){return new Promise(function(e){c.forceUpdate(),e(s)})},function(){return a||(a=new Promise(function(e){Promise.resolve().then(function(){a=void 0,e(o())})})),a}),destroy:function(){p(),d=!0}};if(!Gn(e,t))return c;function p(){l.forEach(function(e){return e()}),l=[]}return c.setOptions(r).then(function(e){!d&&r.onFirstUpdate&&r.onFirstUpdate(e)}),c}}var Kn=Un({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,r=e.instance,n=e.options,o=n.scroll,i=void 0===o||o,a=n.resize,s=void 0===a||a,l=Ur(t.elements.popper),d=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&d.forEach(function(e){e.addEventListener("scroll",r.update,Nn)}),s&&l.addEventListener("resize",r.update,Nn),function(){i&&d.forEach(function(e){e.removeEventListener("scroll",r.update,Nn)}),s&&l.removeEventListener("resize",r.update,Nn)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,r=e.name;t.modifiersData[r]=In({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,r=e.options,n=r.gpuAcceleration,o=void 0===n||n,i=r.adaptive,a=void 0===i||i,s=r.roundOffsets,l=void 0===s||s,d={placement:Qr(t.placement),variation:yn(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,kn(Object.assign({},d,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,kn(Object.assign({},d,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},Jr,Vn,Pn,_n,bn,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,r=e.name,n=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=Wn(t,{elementContext:"reference"}),s=Wn(t,{altBoundary:!0}),l=$n(a,n),d=$n(s,o,i),c=Hn(l),p=Hn(d);t.modifiersData[r]={referenceClippingOffsets:l,popperEscapeOffsets:d,isReferenceHidden:c,hasPopperEscaped:p},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":p})}}]}),Xn="tippy-content",Zn="tippy-arrow",Jn="tippy-svg-arrow",Qn={passive:!0,capture:!0},eo=function(){return document.body};function to(e,t,r){if(Array.isArray(e)){var n=e[t];return null==n?Array.isArray(r)?r[t]:r:n}return e}function ro(e,t){var r={}.toString.call(e);return 0===r.indexOf("[object")&&r.indexOf(t+"]")>-1}function no(e,t){return"function"==typeof e?e.apply(void 0,t):e}function oo(e,t){return 0===t?e:function(n){clearTimeout(r),r=setTimeout(function(){e(n)},t)};var r}function io(e){return[].concat(e)}function ao(e,t){-1===e.indexOf(t)&&e.push(t)}function so(e){return[].slice.call(e)}function lo(e){return Object.keys(e).reduce(function(t,r){return void 0!==e[r]&&(t[r]=e[r]),t},{})}function co(){return document.createElement("div")}function po(e){return["Element","Fragment"].some(function(t){return ro(e,t)})}function uo(e){return po(e)?[e]:function(e){return ro(e,"NodeList")}(e)?so(e):Array.isArray(e)?e:so(document.querySelectorAll(e))}function fo(e,t){e.forEach(function(e){e&&(e.style.transitionDuration=t+"ms")})}function mo(e,t){e.forEach(function(e){e&&e.setAttribute("data-state",t)})}function xo(e,t,r){var n=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(t){e[n](t,r)})}function go(e,t){for(var r=t;r;){var n;if(e.contains(r))return!0;r=null==r.getRootNode||null==(n=r.getRootNode())?void 0:n.host}return!1}var vo={isTouch:!1},ho=0;function bo(){vo.isTouch||(vo.isTouch=!0,window.performance&&document.addEventListener("mousemove",yo))}function yo(){var e=performance.now();e-ho<20&&(vo.isTouch=!1,document.removeEventListener("mousemove",yo)),ho=e}function wo(){var e,t=document.activeElement;if((e=t)&&e._tippy&&e._tippy.reference===e){var r=t._tippy;t.blur&&!r.state.isVisible&&t.blur()}}var ko,No=!!("undefined"!=typeof window&&"undefined"!=typeof document)&&!!window.msCrypto;function Co(e){return[e+"() was called on a"+("destroy"===e?"n already-":" ")+"destroyed instance. This is a no-op but","indicates a potential memory leak."].join(" ")}function jo(e){return e.replace(/[ \t]{2,}/g," ").replace(/^[ \t]*/gm,"").trim()}function Eo(e){return jo("\n %ctippy.js\n\n %c"+jo(e)+"\n\n %c👷 This is a development-only message. It will be removed in production.\n ")}function Ro(e){return[Eo(e),"color: #00C584; font-size: 1.3em; font-weight: bold;","line-height: 1.5","color: #a6a095;"]}function Mo(e,t){var r;e&&!ko.has(t)&&(ko.add(t),(r=console).warn.apply(r,Ro(t)))}function Oo(e,t){var r;e&&!ko.has(t)&&(ko.add(t),(r=console).error.apply(r,Ro(t)))}"production"!==process.env.NODE_ENV&&(ko=new Set);var To={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},So=Object.assign({appendTo:eo,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},To,{allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999}),Lo=Object.keys(So);function Do(e){var t=(e.plugins||[]).reduce(function(t,r){var n,o=r.name,i=r.defaultValue;o&&(t[o]=void 0!==e[o]?e[o]:null!=(n=So[o])?n:i);return t},{});return Object.assign({},e,t)}function Ao(e,t){var r=Object.assign({},t,{content:no(t.content,[e])},t.ignoreAttributes?{}:function(e,t){return(t?Object.keys(Do(Object.assign({},So,{plugins:t}))):Lo).reduce(function(t,r){var n=(e.getAttribute("data-tippy-"+r)||"").trim();if(!n)return t;if("content"===r)t[r]=n;else try{t[r]=JSON.parse(n)}catch(e){t[r]=n}return t},{})}(e,t.plugins));return r.aria=Object.assign({},So.aria,r.aria),r.aria={expanded:"auto"===r.aria.expanded?t.interactive:r.aria.expanded,content:"auto"===r.aria.content?t.interactive?null:"describedby":r.aria.content},r}function zo(e,t){void 0===e&&(e={}),void 0===t&&(t=[]),Object.keys(e).forEach(function(e){var r,n,o=function(e,t){var r=Object.assign({},e);return t.forEach(function(e){delete r[e]}),r}(So,Object.keys(To)),i=(r=o,n=e,!{}.hasOwnProperty.call(r,n));i&&(i=0===t.filter(function(t){return t.name===e}).length),Mo(i,["`"+e+"`","is not a valid prop. You may have spelled it incorrectly, or if it's","a plugin, forgot to pass it in an array as props.plugins.","\n\n","All props: https://atomiks.github.io/tippyjs/v6/all-props/\n","Plugins: https://atomiks.github.io/tippyjs/v6/plugins/"].join(" "))})}function Io(e,t){e.innerHTML=t}function Wo(e){var t=co();return!0===e?t.className=Zn:(t.className=Jn,po(e)?t.appendChild(e):Io(t,e)),t}function Bo(e,t){po(t.content)?(Io(e,""),e.appendChild(t.content)):"function"!=typeof t.content&&(t.allowHTML?Io(e,t.content):e.textContent=t.content)}function Po(e){var t=e.firstElementChild,r=so(t.children);return{box:t,content:r.find(function(e){return e.classList.contains(Xn)}),arrow:r.find(function(e){return e.classList.contains(Zn)||e.classList.contains(Jn)}),backdrop:r.find(function(e){return e.classList.contains("tippy-backdrop")})}}function $o(e){var t=co(),r=co();r.className="tippy-box",r.setAttribute("data-state","hidden"),r.setAttribute("tabindex","-1");var n=co();function o(r,n){var o=Po(t),i=o.box,a=o.content,s=o.arrow;n.theme?i.setAttribute("data-theme",n.theme):i.removeAttribute("data-theme"),"string"==typeof n.animation?i.setAttribute("data-animation",n.animation):i.removeAttribute("data-animation"),n.inertia?i.setAttribute("data-inertia",""):i.removeAttribute("data-inertia"),i.style.maxWidth="number"==typeof n.maxWidth?n.maxWidth+"px":n.maxWidth,n.role?i.setAttribute("role",n.role):i.removeAttribute("role"),r.content===n.content&&r.allowHTML===n.allowHTML||Bo(a,e.props),n.arrow?s?r.arrow!==n.arrow&&(i.removeChild(s),i.appendChild(Wo(n.arrow))):i.appendChild(Wo(n.arrow)):s&&i.removeChild(s)}return n.className=Xn,n.setAttribute("data-state","hidden"),Bo(n,e.props),t.appendChild(r),r.appendChild(n),o(e.props,e.props),{popper:t,onUpdate:o}}$o.$$tippy=!0;var Ho=1,Vo=[],_o=[];function Fo(e,t){var r,n,o,i,a,s,l,d,c=Ao(e,Object.assign({},So,Do(lo(t)))),p=!1,u=!1,f=!1,m=!1,x=[],g=oo(G,c.interactiveDebounce),v=Ho++,h=(d=c.plugins).filter(function(e,t){return d.indexOf(e)===t}),b={id:v,reference:e,popper:co(),popperInstance:null,props:c,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:h,clearDelayTimeouts:function(){clearTimeout(r),clearTimeout(n),cancelAnimationFrame(o)},setProps:function(t){"production"!==process.env.NODE_ENV&&Mo(b.state.isDestroyed,Co("setProps"));if(b.state.isDestroyed)return;D("onBeforeUpdate",[b,t]),q();var r=b.props,n=Ao(e,Object.assign({},r,lo(t),{ignoreAttributes:!0}));b.props=n,F(),r.interactiveDebounce!==n.interactiveDebounce&&(I(),g=oo(G,n.interactiveDebounce));r.triggerTarget&&!n.triggerTarget?io(r.triggerTarget).forEach(function(e){e.removeAttribute("aria-expanded")}):n.triggerTarget&&e.removeAttribute("aria-expanded");z(),L(),k&&k(r,n);b.popperInstance&&(Z(),Q().forEach(function(e){requestAnimationFrame(e._tippy.popperInstance.forceUpdate)}));D("onAfterUpdate",[b,t])},setContent:function(e){b.setProps({content:e})},show:function(){"production"!==process.env.NODE_ENV&&Mo(b.state.isDestroyed,Co("show"));var e=b.state.isVisible,t=b.state.isDestroyed,r=!b.state.isEnabled,n=vo.isTouch&&!b.props.touch,o=to(b.props.duration,0,So.duration);if(e||t||r||n)return;if(M().hasAttribute("disabled"))return;if(D("onShow",[b],!1),!1===b.props.onShow(b))return;b.state.isVisible=!0,R()&&(w.style.visibility="visible");L(),$(),b.state.isMounted||(w.style.transition="none");if(R()){var i=T();fo([i.box,i.content],0)}s=function(){var e;if(b.state.isVisible&&!m){if(m=!0,w.offsetHeight,w.style.transition=b.props.moveTransition,R()&&b.props.animation){var t=T(),r=t.box,n=t.content;fo([r,n],o),mo([r,n],"visible")}A(),z(),ao(_o,b),null==(e=b.popperInstance)||e.forceUpdate(),D("onMount",[b]),b.props.animation&&R()&&function(e,t){V(e,t)}(o,function(){b.state.isShown=!0,D("onShown",[b])})}},function(){var e,t=b.props.appendTo,r=M();e=b.props.interactive&&t===eo||"parent"===t?r.parentNode:no(t,[r]);e.contains(w)||e.appendChild(w);b.state.isMounted=!0,Z(),"production"!==process.env.NODE_ENV&&Mo(b.props.interactive&&t===So.appendTo&&r.nextElementSibling!==w,["Interactive tippy element may not be accessible via keyboard","navigation because it is not directly after the reference element","in the DOM source order.","\n\n","Using a wrapper <div> or <span> tag around the reference element","solves this by creating a new parentNode context.","\n\n","Specifying `appendTo: document.body` silences this warning, but it","assumes you are using a focus management solution to handle","keyboard navigation.","\n\n","See: https://atomiks.github.io/tippyjs/v6/accessibility/#interactivity"].join(" "))}()},hide:function(){"production"!==process.env.NODE_ENV&&Mo(b.state.isDestroyed,Co("hide"));var e=!b.state.isVisible,t=b.state.isDestroyed,r=!b.state.isEnabled,n=to(b.props.duration,1,So.duration);if(e||t||r)return;if(D("onHide",[b],!1),!1===b.props.onHide(b))return;b.state.isVisible=!1,b.state.isShown=!1,m=!1,p=!1,R()&&(w.style.visibility="hidden");if(I(),H(),L(!0),R()){var o=T(),i=o.box,a=o.content;b.props.animation&&(fo([i,a],n),mo([i,a],"hidden"))}A(),z(),b.props.animation?R()&&function(e,t){V(e,function(){!b.state.isVisible&&w.parentNode&&w.parentNode.contains(w)&&t()})}(n,b.unmount):b.unmount()},hideWithInteractivity:function(e){"production"!==process.env.NODE_ENV&&Mo(b.state.isDestroyed,Co("hideWithInteractivity"));O().addEventListener("mousemove",g),ao(Vo,g),g(e)},enable:function(){b.state.isEnabled=!0},disable:function(){b.hide(),b.state.isEnabled=!1},unmount:function(){"production"!==process.env.NODE_ENV&&Mo(b.state.isDestroyed,Co("unmount"));b.state.isVisible&&b.hide();if(!b.state.isMounted)return;J(),Q().forEach(function(e){e._tippy.unmount()}),w.parentNode&&w.parentNode.removeChild(w);_o=_o.filter(function(e){return e!==b}),b.state.isMounted=!1,D("onHidden",[b])},destroy:function(){"production"!==process.env.NODE_ENV&&Mo(b.state.isDestroyed,Co("destroy"));if(b.state.isDestroyed)return;b.clearDelayTimeouts(),b.unmount(),q(),delete e._tippy,b.state.isDestroyed=!0,D("onDestroy",[b])}};if(!c.render)return"production"!==process.env.NODE_ENV&&Oo(!0,"render() function has not been supplied."),b;var y=c.render(b),w=y.popper,k=y.onUpdate;w.setAttribute("data-tippy-root",""),w.id="tippy-"+b.id,b.popper=w,e._tippy=b,w._tippy=b;var N=h.map(function(e){return e.fn(b)}),C=e.hasAttribute("aria-expanded");return F(),z(),L(),D("onCreate",[b]),c.showOnCreate&&ee(),w.addEventListener("mouseenter",function(){b.props.interactive&&b.state.isVisible&&b.clearDelayTimeouts()}),w.addEventListener("mouseleave",function(){b.props.interactive&&b.props.trigger.indexOf("mouseenter")>=0&&O().addEventListener("mousemove",g)}),b;function j(){var e=b.props.touch;return Array.isArray(e)?e:[e,0]}function E(){return"hold"===j()[0]}function R(){var e;return!(null==(e=b.props.render)||!e.$$tippy)}function M(){return l||e}function O(){var e,t,r=M().parentNode;return r?null!=(t=io(r)[0])&&null!=(e=t.ownerDocument)&&e.body?t.ownerDocument:document:document}function T(){return Po(w)}function S(e){return b.state.isMounted&&!b.state.isVisible||vo.isTouch||i&&"focus"===i.type?0:to(b.props.delay,e?0:1,So.delay)}function L(e){void 0===e&&(e=!1),w.style.pointerEvents=b.props.interactive&&!e?"":"none",w.style.zIndex=""+b.props.zIndex}function D(e,t,r){var n;(void 0===r&&(r=!0),N.forEach(function(r){r[e]&&r[e].apply(r,t)}),r)&&(n=b.props)[e].apply(n,t)}function A(){var t=b.props.aria;if(t.content){var r="aria-"+t.content,n=w.id;io(b.props.triggerTarget||e).forEach(function(e){var t=e.getAttribute(r);if(b.state.isVisible)e.setAttribute(r,t?t+" "+n:n);else{var o=t&&t.replace(n,"").trim();o?e.setAttribute(r,o):e.removeAttribute(r)}})}}function z(){!C&&b.props.aria.expanded&&io(b.props.triggerTarget||e).forEach(function(e){b.props.interactive?e.setAttribute("aria-expanded",b.state.isVisible&&e===M()?"true":"false"):e.removeAttribute("aria-expanded")})}function I(){O().removeEventListener("mousemove",g),Vo=Vo.filter(function(e){return e!==g})}function W(t){if(!vo.isTouch||!f&&"mousedown"!==t.type){var r=t.composedPath&&t.composedPath()[0]||t.target;if(!b.props.interactive||!go(w,r)){if(io(b.props.triggerTarget||e).some(function(e){return go(e,r)})){if(vo.isTouch)return;if(b.state.isVisible&&b.props.trigger.indexOf("click")>=0)return}else D("onClickOutside",[b,t]);!0===b.props.hideOnClick&&(b.clearDelayTimeouts(),b.hide(),u=!0,setTimeout(function(){u=!1}),b.state.isMounted||H())}}}function B(){f=!0}function P(){f=!1}function $(){var e=O();e.addEventListener("mousedown",W,!0),e.addEventListener("touchend",W,Qn),e.addEventListener("touchstart",P,Qn),e.addEventListener("touchmove",B,Qn)}function H(){var e=O();e.removeEventListener("mousedown",W,!0),e.removeEventListener("touchend",W,Qn),e.removeEventListener("touchstart",P,Qn),e.removeEventListener("touchmove",B,Qn)}function V(e,t){var r=T().box;function n(e){e.target===r&&(xo(r,"remove",n),t())}if(0===e)return t();xo(r,"remove",a),xo(r,"add",n),a=n}function _(t,r,n){void 0===n&&(n=!1),io(b.props.triggerTarget||e).forEach(function(e){e.addEventListener(t,r,n),x.push({node:e,eventType:t,handler:r,options:n})})}function F(){var e;E()&&(_("touchstart",Y,{passive:!0}),_("touchend",U,{passive:!0})),(e=b.props.trigger,e.split(/\s+/).filter(Boolean)).forEach(function(e){if("manual"!==e)switch(_(e,Y),e){case"mouseenter":_("mouseleave",U);break;case"focus":_(No?"focusout":"blur",K);break;case"focusin":_("focusout",K)}})}function q(){x.forEach(function(e){var t=e.node,r=e.eventType,n=e.handler,o=e.options;t.removeEventListener(r,n,o)}),x=[]}function Y(e){var t,r=!1;if(b.state.isEnabled&&!X(e)&&!u){var n="focus"===(null==(t=i)?void 0:t.type);i=e,l=e.currentTarget,z(),!b.state.isVisible&&ro(e,"MouseEvent")&&Vo.forEach(function(t){return t(e)}),"click"===e.type&&(b.props.trigger.indexOf("mouseenter")<0||p)&&!1!==b.props.hideOnClick&&b.state.isVisible?r=!0:ee(e),"click"===e.type&&(p=!r),r&&!n&&te(e)}}function G(e){var t=e.target,r=M().contains(t)||w.contains(t);if("mousemove"!==e.type||!r){var n=Q().concat(w).map(function(e){var t,r=null==(t=e._tippy.popperInstance)?void 0:t.state;return r?{popperRect:e.getBoundingClientRect(),popperState:r,props:c}:null}).filter(Boolean);(function(e,t){var r=t.clientX,n=t.clientY;return e.every(function(e){var t=e.popperRect,o=e.popperState,i=e.props.interactiveBorder,a=o.placement.split("-")[0],s=o.modifiersData.offset;if(!s)return!0;var l="bottom"===a?s.top.y:0,d="top"===a?s.bottom.y:0,c="right"===a?s.left.x:0,p="left"===a?s.right.x:0,u=t.top-n+l>i,f=n-t.bottom-d>i,m=t.left-r+c>i,x=r-t.right-p>i;return u||f||m||x})})(n,e)&&(I(),te(e))}}function U(e){X(e)||b.props.trigger.indexOf("click")>=0&&p||(b.props.interactive?b.hideWithInteractivity(e):te(e))}function K(e){b.props.trigger.indexOf("focusin")<0&&e.target!==M()||b.props.interactive&&e.relatedTarget&&w.contains(e.relatedTarget)||te(e)}function X(e){return!!vo.isTouch&&E()!==e.type.indexOf("touch")>=0}function Z(){J();var t=b.props,r=t.popperOptions,n=t.placement,o=t.offset,i=t.getReferenceClientRect,a=t.moveTransition,l=R()?Po(w).arrow:null,d=i?{getBoundingClientRect:i,contextElement:i.contextElement||M()}:e,c={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t=e.state;if(R()){var r=T().box;["placement","reference-hidden","escaped"].forEach(function(e){"placement"===e?r.setAttribute("data-placement",t.placement):t.attributes.popper["data-popper-"+e]?r.setAttribute("data-"+e,""):r.removeAttribute("data-"+e)}),t.attributes.popper={}}}},p=[{name:"offset",options:{offset:o}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!a}},c];R()&&l&&p.push({name:"arrow",options:{element:l,padding:3}}),p.push.apply(p,(null==r?void 0:r.modifiers)||[]),b.popperInstance=Kn(d,w,Object.assign({},r,{placement:n,onFirstUpdate:s,modifiers:p}))}function J(){b.popperInstance&&(b.popperInstance.destroy(),b.popperInstance=null)}function Q(){return so(w.querySelectorAll("[data-tippy-root]"))}function ee(e){b.clearDelayTimeouts(),e&&D("onTrigger",[b,e]),$();var t=S(!0),n=j(),o=n[0],i=n[1];vo.isTouch&&"hold"===o&&i&&(t=i),t?r=setTimeout(function(){b.show()},t):b.show()}function te(e){if(b.clearDelayTimeouts(),D("onUntrigger",[b,e]),b.state.isVisible){if(!(b.props.trigger.indexOf("mouseenter")>=0&&b.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(e.type)>=0&&p)){var t=S(!1);t?n=setTimeout(function(){b.state.isVisible&&b.hide()},t):o=requestAnimationFrame(function(){b.hide()})}}else H()}}function qo(e,t){void 0===t&&(t={});var r=So.plugins.concat(t.plugins||[]);"production"!==process.env.NODE_ENV&&(!function(e){var t=!e,r="[object Object]"===Object.prototype.toString.call(e)&&!e.addEventListener;Oo(t,["tippy() was passed","`"+String(e)+"`","as its targets (first) argument. Valid types are: String, Element,","Element[], or NodeList."].join(" ")),Oo(r,["tippy() was passed a plain object which is not supported as an argument","for virtual positioning. Use props.getReferenceClientRect instead."].join(" "))}(e),zo(t,r)),document.addEventListener("touchstart",bo,Qn),window.addEventListener("blur",wo);var n=Object.assign({},t,{plugins:r}),o=uo(e);if("production"!==process.env.NODE_ENV){var i=po(n.content),a=o.length>1;Mo(i&&a,["tippy() was passed an Element as the `content` prop, but more than","one tippy instance was created by this invocation. This means the","content element will only be appended to the last tippy instance.","\n\n","Instead, pass the .innerHTML of the element, or use a function that","returns a cloned version of the element instead.","\n\n","1) content: element.innerHTML\n","2) content: () => element.cloneNode(true)"].join(" "))}var s=o.reduce(function(e,t){var r=t&&Fo(t,n);return r&&e.push(r),e},[]);return po(e)?s[0]:s}qo.defaultProps=So,qo.setDefaultProps=function(e){"production"!==process.env.NODE_ENV&&zo(e,[]),Object.keys(e).forEach(function(t){So[t]=e[t]})},qo.currentInput=vo,Object.assign({},Jr,{effect:function(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow)}}),qo.setDefaultProps({render:$o});var Yo=["title","children","placement","arrow","delay","className","style"],Go=o.forwardRef(function(e,t){var r=e.title,n=e.children,i=e.placement,a=void 0===i?"top":i,s=e.arrow,c=void 0===s||s,p=e.delay,u=void 0===p?[100,0]:p,f=e.className,m=e.style,x=d(e,Yo),g=o.useRef(null),v=o.useRef(null);o.useImperativeHandle(t,function(){return g.current}),o.useEffect(function(){if(g.current){if(r){if(!document.getElementById("mui-tooltip-styles")){var e=document.createElement("style");e.id="mui-tooltip-styles",e.textContent="\n .tippy-box[data-theme~='material'] {\n font-size: 0.75rem;\n font-weight: 400;\n padding: 2px 6px;\n line-height: 1.4;\n }\n .tippy-box[data-theme~='material'] .tippy-content {\n padding: 0;\n }\n",document.head.appendChild(e)}return v.current=qo(g.current,{content:r,placement:a,arrow:!!c&&'<svg width="16" height="6" xmlns="http://www.w3.org/2000/svg"><path d="M0 6s1.796-.013 4.67-3.615C5.851.9 6.93.006 8 0c1.07-.006 2.148.887 3.343 2.385C14.233 6.005 16 6 16 6H0z"></svg>',delay:u,theme:"material",animation:"fade",duration:[200,150],popperOptions:{modifiers:[{name:"offset",options:{offset:[0,8]}}]}}),function(){v.current&&(v.current.destroy(),v.current=null)}}v.current&&(v.current.destroy(),v.current=null)}},[r,a,c,u]),o.useEffect(function(){v.current&&r&&v.current.setContent(r)},[r]);var h=o.Children.only(n);return o.isValidElement(h)?o.cloneElement(h,l({ref:function(e){g.current=e,"function"==typeof h.ref?h.ref(e):h.ref&&(h.ref.current=e)},className:f?"".concat(h.props.className||""," ").concat(f).trim():h.props.className,style:l(l({},h.props.style),m)},x)):n});Go.displayName="Tooltip";var Uo,Ko,Xo=["options","getOptionLabel","value","onChange","inputValue","onInputChange","filterOptions","renderInput","className","style"],Zo=o.forwardRef(function(e,r){var n,i,a,s,p=e.options,u=void 0===p?[]:p,f=e.getOptionLabel,m=e.value,x=e.onChange,g=e.inputValue,v=e.onInputChange,h=e.filterOptions,b=e.renderInput,y=e.className,w=e.style,k=d(e,Xo),N=c(o.useState(!1),2),C=N[0],j=N[1],E=c(o.useState(u),2),R=E[0],M=E[1],O=o.useRef(null),T=o.useRef(null);o.useImperativeHandle(r,function(){return O.current}),o.useEffect(function(){var e="string"==typeof g?g:g?String(g):"";if(h){var t=h(u,{inputValue:e});M(t)}else if(e){var r=u.filter(function(t){var r=f?f(t):(null==t?void 0:t.name)||(null==t?void 0:t.label)||String(t);return String(r).toLowerCase().includes(e.toLowerCase())});M(r)}else M(u)},[u,g,h,f]);var S=function(e){x&&x(null,e);var t=f?f(e):(null==e?void 0:e.name)||(null==e?void 0:e.label)||String(e),r="string"==typeof t?t:String(t||"");v&&v(null,r),j(!1)},L=function(e){T.current&&!T.current.contains(e.target)&&O.current&&!O.current.contains(e.target)&&j(!1)};o.useEffect(function(){if(C)return document.addEventListener("mousedown",L),function(){document.removeEventListener("mousedown",L)}},[C]);var D=m?f?f(m):(null==m?void 0:m.name)||(null==m?void 0:m.label)||String(m):"",A=l({ref:O,value:null!=g?"string"==typeof g?g:String(g):"string"==typeof D?D:String(D||""),onChange:function(e){var t,r="";void 0!==(null==e||null===(t=e.target)||void 0===t?void 0:t.value)?r=String(e.target.value):"string"==typeof e?r=e:e&&(r=String(e)),v&&v(e,r),C||j(!0)},onFocus:function(){return j(!0)}},k);return b?t.jsxs("div",{ref:r,className:Oe("relative",y),style:w,children:[b(l(l({},A),{},{InputProps:l(l({},A.InputProps||{}),{},{endAdornment:t.jsx("div",{className:"absolute right-2 top-1/2 -translate-y-1/2 cursor-pointer",onClick:function(e){e.stopPropagation(),e.preventDefault(),j(!C)},onMouseDown:function(e){e.stopPropagation(),e.preventDefault()},children:t.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",style:{transform:C?"rotate(180deg)":"rotate(0deg)",transition:"transform 0.2s"},children:t.jsx("path",{d:"M5 7.5L10 12.5L15 7.5",stroke:"hsl(var(--muted-foreground))",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})})})})),C&&R.length>0&&t.jsx("div",{ref:T,className:"absolute z-50 w-full mt-1 rounded-2xl border shadow-lg overflow-auto",style:{maxHeight:"200px",minHeight:"160px",backgroundColor:"hsl(var(--card))",borderColor:"hsl(var(--border))",top:"100%"},children:R.map(function(e,r){var n=f?f(e):(null==e?void 0:e.name)||(null==e?void 0:e.label)||String(e),o=m&&(f?f(m)===n:m===e||(null==m?void 0:m.id)&&(null==e?void 0:e.id)&&m.id===e.id);return t.jsx("div",{className:"px-3 py-2 cursor-pointer hover:bg-accent transition-colors",style:{backgroundColor:o?"hsl(var(--accent))":"transparent",color:"hsl(var(--foreground))"},onClick:function(){return S(e)},onMouseEnter:function(e){o||(e.currentTarget.style.backgroundColor="hsl(var(--accent))")},onMouseLeave:function(e){e.currentTarget.style.backgroundColor=o?"hsl(var(--accent))":"transparent"},children:n},r)})})]}):t.jsxs("div",{ref:r,className:Oe("relative",y),style:w,children:[t.jsx(Ot,l(l({},A),{},{style:l(l({},A.style),{},{height:(null===(n=A.style)||void 0===n?void 0:n.height)||"40px"}),InputProps:l(l({},A.InputProps),{},{style:l(l({},null===(i=A.InputProps)||void 0===i?void 0:i.style),{},{backgroundColor:(null===(a=A.InputProps)||void 0===a||null===(a=a.style)||void 0===a?void 0:a.backgroundColor)||"transparent",height:(null===(s=A.InputProps)||void 0===s||null===(s=s.style)||void 0===s?void 0:s.height)||"40px"}),endAdornment:t.jsx("div",{className:"absolute right-2 top-1/2 -translate-y-1/2 cursor-pointer",onClick:function(e){e.stopPropagation(),e.preventDefault(),j(!C)},onMouseDown:function(e){e.stopPropagation(),e.preventDefault()},children:t.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",style:{transform:C?"rotate(180deg)":"rotate(0deg)",transition:"transform 0.2s"},children:t.jsx("path",{d:"M5 7.5L10 12.5L15 7.5",stroke:"hsl(var(--muted-foreground))",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})})})})),C&&R.length>0&&t.jsx("div",{ref:T,className:"absolute z-50 w-full mt-1 rounded-2xl border shadow-lg overflow-auto",style:{maxHeight:"200px",minHeight:"160px",backgroundColor:"hsl(var(--card))",borderColor:"hsl(var(--border))",top:"100%"},children:R.map(function(e,r){var n=f?f(e):(null==e?void 0:e.name)||(null==e?void 0:e.label)||String(e),o=m&&(f?f(m)===n:m===e||(null==m?void 0:m.id)&&(null==e?void 0:e.id)&&m.id===e.id);return t.jsx("div",{className:"px-3 py-2 cursor-pointer hover:bg-accent transition-colors",style:{backgroundColor:o?"hsl(var(--accent))":"transparent",color:"hsl(var(--foreground))"},onClick:function(){return S(e)},onMouseEnter:function(e){o||(e.currentTarget.style.backgroundColor="hsl(var(--accent))")},onMouseLeave:function(e){e.currentTarget.style.backgroundColor=o?"hsl(var(--accent))":"transparent"},children:n},r)})})]})});Zo.displayName="Autocomplete",Uo=void 0,Ko=function(){var e=6e4,t=36e5,r="millisecond",n="second",o="minute",i="hour",a="day",s="week",l="month",d="quarter",c="year",p="date",f="Invalid Date",m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,x=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,g={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],r=e%100;return"["+e+(t[(r-20)%10]||t[r]||t[0])+"]"}},v=function(e,t,r){var n=String(e);return!n||n.length>=t?e:""+Array(t+1-n.length).join(r)+e},h={s:v,z:function(e){var t=-e.utcOffset(),r=Math.abs(t),n=Math.floor(r/60),o=r%60;return(t<=0?"+":"-")+v(n,2,"0")+":"+v(o,2,"0")},m:function e(t,r){if(t.date()<r.date())return-e(r,t);var n=12*(r.year()-t.year())+(r.month()-t.month()),o=t.clone().add(n,l),i=r-o<0,a=t.clone().add(n+(i?-1:1),l);return+(-(n+(r-o)/(i?o-a:a-o))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:l,y:c,w:s,d:a,D:p,h:i,m:o,s:n,ms:r,Q:d}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},b="en",y={};y[b]=g;var w="$isDayjsObject",k=function(e){return e instanceof E||!(!e||!e[w])},N=function e(t,r,n){var o;if(!t)return b;if("string"==typeof t){var i=t.toLowerCase();y[i]&&(o=i),r&&(y[i]=r,o=i);var a=t.split("-");if(!o&&a.length>1)return e(a[0])}else{var s=t.name;y[s]=t,o=s}return!n&&o&&(b=o),o||!n&&b},C=function(e,t){if(k(e))return e.clone();var r="object"==u(t)?t:{};return r.date=e,r.args=arguments,new E(r)},j=h;j.l=N,j.i=k,j.w=function(e,t){return C(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var E=function(){function u(e){this.$L=N(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[w]=!0}var g=u.prototype;return g.parse=function(e){this.$d=function(e){var t=e.date,r=e.utc;if(null===t)return new Date(NaN);if(j.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var n=t.match(m);if(n){var o=n[2]-1||0,i=(n[7]||"0").substring(0,3);return r?new Date(Date.UTC(n[1],o,n[3]||1,n[4]||0,n[5]||0,n[6]||0,i)):new Date(n[1],o,n[3]||1,n[4]||0,n[5]||0,n[6]||0,i)}}return new Date(t)}(e),this.init()},g.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},g.$utils=function(){return j},g.isValid=function(){return!(this.$d.toString()===f)},g.isSame=function(e,t){var r=C(e);return this.startOf(t)<=r&&r<=this.endOf(t)},g.isAfter=function(e,t){return C(e)<this.startOf(t)},g.isBefore=function(e,t){return this.endOf(t)<C(e)},g.$g=function(e,t,r){return j.u(e)?this[t]:this.set(r,e)},g.unix=function(){return Math.floor(this.valueOf()/1e3)},g.valueOf=function(){return this.$d.getTime()},g.startOf=function(e,t){var r=this,d=!!j.u(t)||t,u=j.p(e),f=function(e,t){var n=j.w(r.$u?Date.UTC(r.$y,t,e):new Date(r.$y,t,e),r);return d?n:n.endOf(a)},m=function(e,t){return j.w(r.toDate()[e].apply(r.toDate("s"),(d?[0,0,0,0]:[23,59,59,999]).slice(t)),r)},x=this.$W,g=this.$M,v=this.$D,h="set"+(this.$u?"UTC":"");switch(u){case c:return d?f(1,0):f(31,11);case l:return d?f(1,g):f(0,g+1);case s:var b=this.$locale().weekStart||0,y=(x<b?x+7:x)-b;return f(d?v-y:v+(6-y),g);case a:case p:return m(h+"Hours",0);case i:return m(h+"Minutes",1);case o:return m(h+"Seconds",2);case n:return m(h+"Milliseconds",3);default:return this.clone()}},g.endOf=function(e){return this.startOf(e,!1)},g.$set=function(e,t){var s,d=j.p(e),u="set"+(this.$u?"UTC":""),f=(s={},s[a]=u+"Date",s[p]=u+"Date",s[l]=u+"Month",s[c]=u+"FullYear",s[i]=u+"Hours",s[o]=u+"Minutes",s[n]=u+"Seconds",s[r]=u+"Milliseconds",s)[d],m=d===a?this.$D+(t-this.$W):t;if(d===l||d===c){var x=this.clone().set(p,1);x.$d[f](m),x.init(),this.$d=x.set(p,Math.min(this.$D,x.daysInMonth())).$d}else f&&this.$d[f](m);return this.init(),this},g.set=function(e,t){return this.clone().$set(e,t)},g.get=function(e){return this[j.p(e)]()},g.add=function(r,d){var p,u=this;r=Number(r);var f=j.p(d),m=function(e){var t=C(u);return j.w(t.date(t.date()+Math.round(e*r)),u)};if(f===l)return this.set(l,this.$M+r);if(f===c)return this.set(c,this.$y+r);if(f===a)return m(1);if(f===s)return m(7);var x=(p={},p[o]=e,p[i]=t,p[n]=1e3,p)[f]||1,g=this.$d.getTime()+r*x;return j.w(g,this)},g.subtract=function(e,t){return this.add(-1*e,t)},g.format=function(e){var t=this,r=this.$locale();if(!this.isValid())return r.invalidDate||f;var n=e||"YYYY-MM-DDTHH:mm:ssZ",o=j.z(this),i=this.$H,a=this.$m,s=this.$M,l=r.weekdays,d=r.months,c=r.meridiem,p=function(e,r,o,i){return e&&(e[r]||e(t,n))||o[r].slice(0,i)},u=function(e){return j.s(i%12||12,e,"0")},m=c||function(e,t,r){var n=e<12?"AM":"PM";return r?n.toLowerCase():n};return n.replace(x,function(e,n){return n||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return j.s(t.$y,4,"0");case"M":return s+1;case"MM":return j.s(s+1,2,"0");case"MMM":return p(r.monthsShort,s,d,3);case"MMMM":return p(d,s);case"D":return t.$D;case"DD":return j.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return p(r.weekdaysMin,t.$W,l,2);case"ddd":return p(r.weekdaysShort,t.$W,l,3);case"dddd":return l[t.$W];case"H":return String(i);case"HH":return j.s(i,2,"0");case"h":return u(1);case"hh":return u(2);case"a":return m(i,a,!0);case"A":return m(i,a,!1);case"m":return String(a);case"mm":return j.s(a,2,"0");case"s":return String(t.$s);case"ss":return j.s(t.$s,2,"0");case"SSS":return j.s(t.$ms,3,"0");case"Z":return o}return null}(e)||o.replace(":","")})},g.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},g.diff=function(r,p,u){var f,m=this,x=j.p(p),g=C(r),v=(g.utcOffset()-this.utcOffset())*e,h=this-g,b=function(){return j.m(m,g)};switch(x){case c:f=b()/12;break;case l:f=b();break;case d:f=b()/3;break;case s:f=(h-v)/6048e5;break;case a:f=(h-v)/864e5;break;case i:f=h/t;break;case o:f=h/e;break;case n:f=h/1e3;break;default:f=h}return u?f:j.a(f)},g.daysInMonth=function(){return this.endOf(l).$D},g.$locale=function(){return y[this.$L]},g.locale=function(e,t){if(!e)return this.$L;var r=this.clone(),n=N(e,t,!0);return n&&(r.$L=n),r},g.clone=function(){return j.w(this.$d,this)},g.toDate=function(){return new Date(this.valueOf())},g.toJSON=function(){return this.isValid()?this.toISOString():null},g.toISOString=function(){return this.$d.toISOString()},g.toString=function(){return this.$d.toUTCString()},u}(),R=E.prototype;return C.prototype=R,[["$ms",r],["$s",n],["$m",o],["$H",i],["$W",a],["$M",l],["$y",c],["$D",p]].forEach(function(e){R[e[1]]=function(t){return this.$g(t,e[0],e[1])}}),C.extend=function(e,t){return e.$i||(e(t,E,C),e.$i=!0),C},C.locale=N,C.isDayjs=k,C.unix=function(e){return C(1e3*e)},C.en=y[b],C.Ls=y,C.p={},C},"object"==("undefined"==typeof exports?"undefined":u(exports))&&"undefined"!=typeof module?module.exports=Ko():"function"==typeof define&&define.amd?define(Ko):(Uo="undefined"!=typeof globalThis?globalThis:Uo||self).dayjs=Ko();var Jo=["value","onChange","clearable","slotProps","className","style","onOpenChange"],Qo=Object.freeze({__proto__:null}),ei=o.forwardRef(function(e,r){var n,i,a,s=e.value,p=e.onChange,u=e.clearable,f=void 0!==u&&u,m=e.slotProps,x=e.className,g=e.style,v=e.onOpenChange;d(e,Jo);var h=c(o.useState(!1),2),b=h[0],y=h[1],w=c(o.useState(s?Qo(s):null),2),k=w[0],N=w[1],C=o.useRef(null),j=o.useRef(null),E=o.useRef(null),R=o.useRef(null),M=c(o.useState("month"),2),O=M[0],T=M[1],S=c(o.useState(!1),2),L=S[0],D=S[1];o.useImperativeHandle(r,function(){return j.current}),o.useEffect(function(){N(s?Qo(s):null)},[s]);var A=o.useCallback(function(e){C.current&&!C.current.contains(e.target)&&j.current&&!j.current.contains(e.target)&&(y(!1),D(!1),v&&v(!1))},[v]);o.useEffect(function(){if(b)return document.addEventListener("mousedown",A),function(){document.removeEventListener("mousedown",A)}},[b,A]);var z=(null==m?void 0:m.textField)||{},I=k?k.format("YYYY-MM-DD"):"";o.useEffect(function(){L&&R.current&&E.current&&setTimeout(function(){var e=R.current,t=E.current;if(e&&t){var r=e.offsetTop-t.clientHeight/2+e.clientHeight/2;t.scrollTop=r}},0)},[L]);var W=function(){for(var e=k?k.startOf("month"):Qo().startOf("month"),t=k?k.endOf("month"):Qo().endOf("month"),r=e.startOf("week"),n=t.endOf("week"),o=[],i=r;i.isBefore(n)||i.isSame(n);)o.push(i),i=i.add(1,"day");return o}(),B=k?k.month():Qo().month(),P=k?k.year():Qo().year(),$=function(e){var t;N(t=e),p&&p(t),y(!1),v&&v(!1)};return t.jsxs("div",{ref:C,className:Oe("relative",x),style:g,children:[t.jsx(Ot,l(l({},z),{},{ref:j,value:I||"",onClick:function(){var e=!b;y(e),v&&v(e)},readOnly:!0,placeholder:z.placeholder||"MM/DD/YYYY",style:l(l({},z.style),{},{fontSize:"0.875rem",height:(null===(n=z.style)||void 0===n?void 0:n.height)||"40px"}),InputProps:l(l({},z.InputProps),{},{style:l(l({},null===(i=z.InputProps)||void 0===i?void 0:i.style),{},{backgroundColor:null===(a=z.InputProps)||void 0===a||null===(a=a.style)||void 0===a?void 0:a.backgroundColor}),endAdornment:t.jsxs("div",{className:"flex items-center gap-1",children:[f&&k&&t.jsx("div",{className:"cursor-pointer",onClick:function(e){e.stopPropagation(),N(null),p&&p(null)},style:{display:"flex",alignItems:"center",padding:"4px"},children:t.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:t.jsx("path",{d:"M12 4L4 12M4 4L12 12",stroke:"hsl(var(--muted-foreground))",strokeWidth:"2",strokeLinecap:"round"})})}),t.jsx("div",{className:"cursor-pointer",style:{padding:"4px"},onClick:function(e){e.stopPropagation();var t=!b;y(t),v&&v(t)},children:t.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",children:t.jsx("path",{d:"M6 2V4M14 2V4M3 8H17M4 4H16C16.5523 4 17 4.44772 17 5V16C17 16.5523 16.5523 17 16 17H4C3.44772 17 3 16.5523 3 16V5C3 4.44772 3.44772 4 4 4Z",stroke:"hsl(var(--muted-foreground))",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})})]})})})),b&&t.jsxs("div",{className:"absolute z-50 mt-1 rounded-2xl border shadow-lg p-4",style:{backgroundColor:"hsl(var(--card))",borderColor:"hsl(var(--border))",top:"100%",minWidth:"300px"},children:[t.jsxs("div",{className:"flex items-center justify-between mb-4",style:{color:"hsl(var(--foreground))"},children:[t.jsx("button",{type:"button",onClick:function(){var e;"year"===O?N(k?k.subtract(10,"year"):Qo().subtract(10,"year")):(e=k?k.subtract(1,"month"):Qo().subtract(1,"month"),N(e))},className:"p-1 rounded-lg hover:bg-action-hover transition-colors",style:{color:"hsl(var(--foreground))"},children:t.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",children:t.jsx("path",{d:"M12 15L7 10L12 5",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}),t.jsxs("div",{className:"relative",children:[t.jsxs("button",{type:"button",onClick:function(){"month"===O?D(!L):T("month")},className:"font-semibold px-2 py-1 rounded-lg hover:bg-action-hover transition-colors flex items-center gap-1 text-foreground",children:["month"===O?"".concat(Qo().month(B).format("MMMM")," ").concat(P):"".concat(P),"month"===O&&t.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",style:{transform:L?"rotate(180deg)":"rotate(0deg)",transition:"transform 0.2s"},children:t.jsx("path",{d:"M4 6L8 10L12 6",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})]}),L&&"month"===O&&t.jsx("div",{ref:E,className:"absolute z-10 mt-1 rounded-lg border shadow-lg max-h-48 overflow-auto",style:{backgroundColor:"hsl(var(--card))",borderColor:"hsl(var(--border))",top:"100%",left:0,minWidth:"120px"},children:Array.from({length:201},function(e,r){var n=Qo().year()-100+r,o=n===P;return t.jsx("button",{ref:o?R:null,type:"button",onClick:function(){var e=k?k.year(n):Qo().year(n).month(B);N(e),D(!1)},className:"w-full px-3 py-1.5 text-sm text-left hover:bg-action-hover transition-colors",style:{backgroundColor:o?"hsl(var(--accent))":"transparent",color:"hsl(var(--foreground))"},onMouseEnter:function(e){o||(e.currentTarget.style.backgroundColor="hsl(var(--accent))")},onMouseLeave:function(e){e.currentTarget.style.backgroundColor=o?"hsl(var(--accent))":"transparent"},children:n},n)})})]}),t.jsx("button",{type:"button",onClick:function(){var e;"year"===O?N(k?k.add(10,"year"):Qo().add(10,"year")):(e=k?k.add(1,"month"):Qo().add(1,"month"),N(e))},className:"p-1 rounded-lg hover:bg-action-hover transition-colors",style:{color:"hsl(var(--foreground))"},children:t.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",children:t.jsx("path",{d:"M8 5L13 10L8 15",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})})]}),"month"===O?t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"grid grid-cols-7 gap-1 mb-2",children:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"].map(function(e){return t.jsx("div",{className:"text-center text-xs font-medium py-1 text-muted-foreground",children:e},e)})}),t.jsx("div",{className:"grid grid-cols-7 gap-1",children:W.map(function(e,r){var n=e.month()===B,o=e.isSame(Qo(),"day"),i=k&&e.isSame(k,"day");return t.jsx("button",{type:"button",onClick:function(){return $(e)},className:Oe("aspect-square rounded-lg text-sm transition-colors",!n&&"opacity-30",i&&"font-semibold"),style:{backgroundColor:i?"hsl(var(--primary))":o?"hsl(var(--accent))":"transparent",color:i?"hsl(var(--primary-foreground))":"hsl(var(--foreground))",border:o&&!i?"1px solid hsl(var(--primary))":"none"},onMouseEnter:function(e){i||(e.currentTarget.style.backgroundColor="hsl(var(--accent))")},onMouseLeave:function(e){e.currentTarget.style.backgroundColor=i?"hsl(var(--primary))":o?"hsl(var(--accent))":"transparent"},children:e.date()},r)})})]}):t.jsx("div",{className:"grid grid-cols-4 gap-2",children:Array.from({length:12},function(e,r){var n=r,o=n===Qo().month()&&P===Qo().year(),i=k&&k.month()===n&&k.year()===P;return t.jsx("button",{type:"button",onClick:function(){var e=k?k.month(n):Qo().month(n).year(P);N(e),T("month")},className:"p-2 rounded-lg text-sm transition-colors",style:{backgroundColor:i?"hsl(var(--primary))":o?"hsl(var(--accent))":"transparent",color:i?"hsl(var(--primary-foreground))":"hsl(var(--foreground))"},onMouseEnter:function(e){i||(e.currentTarget.style.backgroundColor="hsl(var(--accent))")},onMouseLeave:function(e){e.currentTarget.style.backgroundColor=i?"hsl(var(--primary))":o?"hsl(var(--accent))":"transparent"},children:Qo().month(n).format("MMM")},n)})})]})]})});ei.displayName="DatePicker";var ti=["anchor","open","onClose","onOpenChange","children","className","sx","PaperProps","transitionDuration","keepMounted","variant","ModalProps","SlideProps","BackdropProps"],ri=o.forwardRef(function(e,r){var n,i,a,s,p=e.anchor,u=void 0===p?"left":p,f=e.open,m=void 0!==f&&f,x=e.onClose,g=e.onOpenChange,v=e.children,h=e.className,b=e.sx,y=e.PaperProps,w=e.transitionDuration,k=void 0===w?300:w,N=e.keepMounted,C=void 0!==N&&N,j=e.variant,E=void 0===j?"temporary":j;e.ModalProps,e.SlideProps;var R=e.BackdropProps,M=d(e,ti),O=o.useRef(null);o.useImperativeHandle(r,function(){return O.current});o.useEffect(function(){g&&g(m)},[m,g]),o.useEffect(function(){if(m){var e=function(e){"Escape"===e.key&&x&&(x(e,"escapeKeyDown"),g&&g(!1))};return document.addEventListener("keydown",e),function(){document.removeEventListener("keydown",e)}}},[m,x]);var T=o.useMemo(function(){if(!b)return{rootStyles:{},paperStyles:{}};var e="function"==typeof b?b({}):b,t={},r={};return Object.keys(e).forEach(function(n){"& .MuiDrawer-paper"===n||"&.MuiDrawer-paper"===n?Object.assign(r,e[n]):n.startsWith("&")||(t[n]=e[n])}),{rootStyles:t,paperStyles:r}},[b]),S=T.rootStyles,L=T.paperStyles,D=o.useMemo(function(){var e=null==y?void 0:y.sx;return e?"function"==typeof e?e({}):e:{}},[y]),A=function(){var e={position:"fixed",zIndex:parseInt(getComputedStyle(document.documentElement).getPropertyValue("--z-index-drawer")||"1200",10),transition:"transform ".concat(k,"ms cubic-bezier(0.4, 0, 0.2, 1)")};switch(u){case"left":return l(l({},e),{},{top:0,left:0,bottom:0,transform:m?"translateX(0)":"translateX(-100%)"});case"right":return l(l({},e),{},{top:0,right:0,bottom:0,transform:m?"translateX(0)":"translateX(100%)"});case"top":return l(l({},e),{},{top:0,left:0,right:0,width:"100%",transform:m?"translateY(0)":"translateY(-100%)"});case"bottom":return l(l({},e),{},{bottom:0,left:0,right:0,width:"100%",transform:m?"translateY(0)":"translateY(100%)"});default:return e}}();if(!m&&!C&&"permanent"!==E)return null;var z="permanent"===E,I="temporary"===E||"persistent"===E,W=z||m||C;return t.jsxs(t.Fragment,{children:[I&&W&&t.jsx("div",l({className:"fixed inset-0 bg-black/50",style:l({zIndex:parseInt(getComputedStyle(document.documentElement).getPropertyValue("--z-index-drawer")||"1200",10)-1,opacity:m?1:0,transition:"opacity ".concat(k,"ms cubic-bezier(0.4, 0, 0.2, 1)"),pointerEvents:m?"auto":"none"},null==R?void 0:R.style),onClick:function(e){"temporary"===E&&e.target===e.currentTarget&&x&&(x(e,"backdropClick"),g&&g(!1))},"aria-hidden":"true"},Object.fromEntries(Object.entries(R||{}).filter(function(e){return"style"!==c(e,1)[0]})))),t.jsx("div",l(l({ref:O,className:Oe("MuiDrawer-root","fixed","left"===u||"right"===u?"h-full":"w-full","top"===u||"bottom"===u?"h-auto":"w-auto",!m&&"pointer-events-none",h),style:l(l(l({},A),S),{},{display:W?"block":"none",transform:z?"translateX(0)":A.transform},M.style),role:"presentation"},Object.fromEntries(Object.entries(M).filter(function(e){var t=c(e,1)[0];return"style"!==t&&"BackdropProps"!==t}))),{},{children:t.jsx("div",{className:Oe("MuiDrawer-paper","MuiPaper-root","left"===u||"right"===u?"h-full":"","w-full","left"===u||"right"===u||"top"===u||"bottom"===u?"overflow-y-auto":"",null==y?void 0:y.className),style:l(l(l(l({backgroundColor:"hsl(var(--card))",boxShadow:void 0!==L.boxShadow?L.boxShadow:void 0!==D.boxShadow?D.boxShadow:void 0!==(null==y||null===(n=y.style)||void 0===n?void 0:n.boxShadow)?y.style.boxShadow:m?"0px 8px 10px -5px rgba(0,0,0,0.2), 0px 16px 24px 2px rgba(0,0,0,0.14), 0px 6px 30px 5px rgba(0,0,0,0.12)":"none"},"left"===u||"right"===u?{height:"100%",width:(null==y||null===(i=y.style)||void 0===i?void 0:i.width)||L.width||D.width||"300px",minWidth:(null==y||null===(a=y.style)||void 0===a?void 0:a.minWidth)||L.minWidth||D.minWidth||"300px",maxWidth:(null==y||null===(s=y.style)||void 0===s?void 0:s.maxWidth)||L.maxWidth||D.maxWidth||"90vw"}:{width:"100%"}),L),D),null==y?void 0:y.style),children:v})}))]})});ri.displayName="Drawer";var ni=["control","label","labelPlacement","disabled","value","className","sx"],oi=o.forwardRef(function(e,r){var n=e.control,i=e.label,a=e.labelPlacement,s=void 0===a?"end":a,c=e.disabled,p=void 0!==c&&c,u=e.value,f=e.className,m=e.sx,x=d(e,ni),g=o.useMemo(function(){return m?"function"==typeof m?m({}):m:{}},[m]),v="start"===s,h="top"===s,b="bottom"===s,y=o.useMemo(function(){return void 0!==u&&o.isValidElement(n)?o.cloneElement(n,l(l({},n.props),{},{value:u})):n},[n,u]);return t.jsxs("label",l(l({ref:r,className:Oe("inline-flex items-center cursor-pointer",p&&"opacity-50 cursor-not-allowed",h&&"flex-col items-start",b&&"flex-col-reverse items-start",v&&"flex-row-reverse items-center",!h&&!b&&!v&&"items-center",f),style:g},x),{},{children:[t.jsx("span",{className:Oe("inline-flex items-center justify-center shrink-0",h&&"mb-1",b&&"mt-1",v&&"ml-2",!v&&!h&&!b&&"mr-2"),style:{minWidth:"20px",minHeight:"20px"},children:y}),i&&t.jsx("span",{className:Oe("text-sm text-foreground",p&&"text-muted-foreground opacity-50",v&&"mr-2"),children:i})]}))});oi.displayName="FormControlLabel";var ii=["children","component","className","sx","style","required","disabled","error","focused"],ai=o.forwardRef(function(e,r){var n=e.children,i=e.component,a=void 0===i?"label":i,s=e.className,c=e.sx,p=e.style,u=e.required,f=void 0!==u&&u,m=e.disabled,x=void 0!==m&&m,g=e.error,v=void 0!==g&&g,h=e.focused,b=void 0!==h&&h,y=d(e,ii),w=o.useMemo(function(){return c?"function"==typeof c?c({}):c:{}},[c]),k="legend"===a?"legend":"label";return t.jsxs(k,l(l({ref:r,className:Oe("block text-sm font-medium mb-1",v?"text-destructive":b?"text-primary":"text-foreground",x&&"opacity-50 cursor-not-allowed",s),style:l(l({},w),p)},y),{},{children:[n,f&&t.jsx("span",{className:"ml-1 text-destructive",children:"*"})]}))});ai.displayName="FormLabel";var si=["children","className","sx","style","row"],li=o.forwardRef(function(e,r){var n=e.children,i=e.className,a=e.sx,s=e.style,c=e.row,p=void 0!==c&&c,u=d(e,si),f=o.useMemo(function(){return a?"function"==typeof a?a({}):a:{}},[a]);return t.jsx("div",l(l({ref:r,className:Oe("flex",p?"flex-row flex-wrap gap-4":"flex-col gap-3",i),style:l(l({},f),s)},u),{},{children:n}))});li.displayName="FormGroup";var di=["children","value","onChange","name","className","sx","style","disabled","row"],ci=o.createContext({value:null,onChange:null,name:null,disabled:!1}),pi=o.forwardRef(function(e,r){var n=e.children,i=e.value,a=e.onChange,s=e.name,c=e.className,p=e.sx,u=e.style,f=e.disabled,m=void 0!==f&&f,x=e.row,g=void 0!==x&&x,v=d(e,di),h=o.useMemo(function(){return p?"function"==typeof p?p({}):p:{}},[p]),b=o.useCallback(function(e){a&&!m&&a(e)},[a,m]),y=o.useMemo(function(){return{value:i,onChange:b,name:s||"radio-group-".concat(Math.random().toString(36).substr(2,9)),disabled:m}},[i,b,s,m]);return t.jsx(ci.Provider,{value:y,children:t.jsx("div",l(l({ref:r,className:Oe("flex",g?"flex-row gap-4":"flex-col gap-2",m&&"opacity-50",c),style:l(l({},h),u),role:"radiogroup"},v),{},{children:n}))})});pi.displayName="RadioGroup";var ui=["className","checked","onChange","disabled","value","size","sx","style"],fi=o.forwardRef(function(e,r){var n=e.className,i=e.checked,a=e.onChange,s=e.disabled,p=e.value,u=e.size,f=void 0===u?"medium":u,m=e.sx,x=e.style,g=d(e,ui),v=c(o.useState(!1),2),h=v[0],b=v[1],y=o.useContext(ci),w=void 0!==i?i:(null==y?void 0:y.value)===p,k=void 0!==s?s:(null==y?void 0:y.disabled)||!1,N=o.useCallback(function(e){a?a(e):null!=y&&y.onChange&&y.onChange(e)},[a,y]),C=o.useMemo(function(){return m?"function"==typeof m?m({}):m:{}},[m]),j={small:18,medium:20,large:24},E=j[f]||j.medium,R=w?.5*E:0;return t.jsxs("label",{className:Oe("relative inline-flex items-center justify-center cursor-pointer",k&&"cursor-not-allowed opacity-50",n),style:l(l({},C),x),children:[t.jsx("input",l({ref:r,type:"radio",checked:w,onChange:N,disabled:k,value:p,name:null==y?void 0:y.name,className:"sr-only"},g)),t.jsx("div",{className:Oe("flex items-center justify-center transition-all duration-200 border-2 rounded-full bg-transparent transition-colors",k&&"opacity-50 cursor-not-allowed",n,w||h&&!k?"border-primary":"border-input"),style:{width:"".concat(E,"px"),height:"".concat(E,"px")},onMouseEnter:function(){return!k&&b(!0)},onMouseLeave:function(){return b(!1)},children:w&&t.jsx("div",{className:"bg-primary rounded-full transition-all",style:{width:"".concat(R,"px"),height:"".concat(R,"px")}})})]})});fi.displayName="Radio";var mi=["className","style","in","timeout","children","unmountOnExit","orientation","collapsedSize"],xi=o.forwardRef(function(e,r){var n=e.className,i=e.style,a=e.in,s=void 0!==a&&a,p=e.timeout,u=void 0===p?"auto":p,f=e.children,m=e.unmountOnExit,x=void 0!==m&&m,g=e.orientation,v=void 0===g?"vertical":g,h=e.collapsedSize,b=void 0===h?"0px":h,y=d(e,mi),w=c(o.useState(s||!x),2),k=w[0],N=w[1],C=c(o.useState(function(){return s?"vertical"===v?"auto":"0px":b}),2),j=C[0],E=C[1],R=o.useRef(null),M=o.useRef(!0);if(o.useEffect(function(){if(x){if(!s){var e=setTimeout(function(){N(!1)},300);return function(){return clearTimeout(e)}}N(!0),M.current=!0}},[s,x]),o.useEffect(function(){var e="vertical"===v;if(R.current)if(M.current&&s){M.current=!1;var t=e?R.current.scrollHeight:R.current.scrollWidth;if(E(t>0?"".concat(t,"px"):e?"auto":"0px"),e){var r=setTimeout(function(){E("auto")},50);return function(){return clearTimeout(r)}}}else{M.current=!1;var n=R.current;if(s){var o=e?n.scrollHeight:n.scrollWidth;if(o>0){if(E("".concat(o,"px")),e){var i=setTimeout(function(){E("auto")},300);return function(){return clearTimeout(i)}}}else E(e?"auto":"0px")}else{var a=e?n.scrollHeight:n.scrollWidth;a>0?(E("".concat(a,"px")),requestAnimationFrame(function(){requestAnimationFrame(function(){E(b)})})):E(b)}}else if(s){var l=setTimeout(function(){if(R.current){var t=e?R.current.scrollHeight:R.current.scrollWidth;E(t>0?"".concat(t,"px"):e?"auto":"0px")}},0);return function(){return clearTimeout(l)}}},[s,b,v]),x&&!k)return null;var O="vertical"===v,T=s?"0px"===j?"auto":j:b;return t.jsx("div",l(l({ref:r,className:Oe("overflow-hidden transition-all",!O&&"inline-block",n),style:l(l({},O?{height:T,maxHeight:s?"none":b}:{width:T,maxWidth:s?"none":b,minWidth:0}),{},{transitionDuration:"auto"===u?"300ms":"number"==typeof u?"".concat(u,"ms"):"300ms",transitionTimingFunction:"ease-in-out"},i)},y),{},{children:t.jsx("div",{ref:R,style:O?void 0:{whiteSpace:"nowrap",display:"inline-block",width:"fit-content",minWidth:"fit-content"},children:f})}))});xi.displayName="Collapse";var gi=["className","style","children"],vi=o.forwardRef(function(e,r){var n=e.className,o=e.style,i=e.children,a=d(e,gi);return t.jsx(kt,l(l({ref:r,variant:"body2",component:"p",color:"muted",className:n,style:l({marginBottom:"16px"},o)},a),{},{children:i}))});vi.displayName="DialogContentText";var hi=["className","style","maxWidth","fixed","disableGutters","children"],bi=o.forwardRef(function(e,r){var n=e.className,o=e.style,i=e.maxWidth,a=void 0===i?"lg":i,s=e.fixed,c=void 0!==s&&s,p=e.disableGutters,u=void 0!==p&&p,f=e.children,m=d(e,hi),x=function(){if(!1===a)return"none";var e={xs:"444px",sm:"600px",md:"900px",lg:"1200px",xl:"1536px"};return e[a]||e.lg}();return t.jsx("div",l(l({ref:r,className:Oe("mx-auto",n),style:l(l(l({width:"100%",maxWidth:x},c&&{width:x}),u?{paddingLeft:0,paddingRight:0}:{paddingLeft:"16px",paddingRight:"16px"}),o)},m),{},{children:f}))});bi.displayName="Container";var yi=["className","style","orientation","variant","flexItem","light","textAlign","children"],wi=o.forwardRef(function(e,r){var n=e.className,o=e.style,i=void 0===o?{}:o,a=e.orientation,s=void 0===a?"horizontal":a,c=e.variant,p=void 0===c?"fullWidth":c,u=e.flexItem,f=void 0!==u&&u,m=e.light,x=void 0!==m&&m,g=e.textAlign,v=void 0===g?"center":g,h=e.children,b=d(e,yi),y="vertical"===s,w="inset"===p,k="middle"===p,N=null==i?void 0:i.marginLeft,C=null==i?void 0:i.marginRight;if(h){var j=N||(w||k?"16px":"0px"),E=C||(w?"0px":k?"16px":"0px");return t.jsxs("div",l(l({ref:r,className:Oe("flex items-center",n),style:l({width:"100%",margin:"8px 0"},i)},b),{},{children:[t.jsx("div",{style:{flex:1,borderTopWidth:"1px",borderTopStyle:"solid",borderColor:x?"rgba(0, 0, 0, 0.08)":"hsl(var(--border))",marginLeft:"0px"!==j?j:void 0}}),t.jsx("div",{style:{paddingLeft:"16px",paddingRight:"16px",textAlign:v,color:"hsl(var(--muted-foreground))",fontSize:"0.875rem"},children:h}),t.jsx("div",{style:{flex:1,borderTopWidth:"1px",borderTopStyle:"solid",borderColor:x?"rgba(0, 0, 0, 0.08)":"hsl(var(--border))",marginRight:"0px"!==E?E:void 0}})]}))}var R=function(){var e={borderColor:x?"rgba(0, 0, 0, 0.08)":"hsl(var(--border))"};if(y){var t=N||(w?"16px":"8px"),r=C||(w?"16px":"8px");return l(l({},e),{},{borderLeftWidth:"1px",borderLeftStyle:"solid",height:"100%",width:"1px",marginLeft:t,marginRight:r})}var n=N||(w||k?"16px":"0px"),o=C||(w?"0px":k?"16px":"0px"),i=function(e){if(!e||"0px"===e||"0"===e)return 0;if("number"==typeof e)return e;var t=e.toString().match(/([\d.]+)/);return t?parseFloat(t[1]):0},a=i(n)+i(o),s=l(l({},e),{},{borderTopWidth:"1px",borderTopStyle:"solid",boxSizing:"border-box"});return f?s.width="1px":"fullWidth"===p?(s.width="100%",s.marginLeft="0px",s.marginRight="0px"):(s.width=a>0?"calc(100% - ".concat(a,"px)"):"100%","0px"!==n&&"0"!==n&&(s.marginLeft=n),"0px"!==o&&"0"!==o&&(s.marginRight=o)),s}();y||f||(void 0===i.marginTop&&void 0===R.marginTop&&(R.marginTop="8px"),void 0===i.marginBottom&&void 0===R.marginBottom&&(R.marginBottom="8px"));var M,O,T=l(l({},R),i);y||"fullWidth"!==p||f||(T.width="100%",T.marginLeft=null!==(M=i.marginLeft)&&void 0!==M?M:"0px",T.marginRight=null!==(O=i.marginRight)&&void 0!==O?O:"0px");return t.jsx("div",l({ref:r,className:Oe(y?"inline-block":"block",f&&"self-stretch",n),style:l({padding:0,display:y?"inline-block":"block"},T)},b))});wi.displayName="Divider";var ki=["className","style","src","alt","children","variant","sizes","imgProps"],Ni=["color"],Ci=["color"],ji=o.forwardRef(function(e,r){var n,o,i=e.className,a=e.style,s=e.src,c=e.alt,p=e.children,u=e.variant,f=void 0===u?"circular":u,m=e.sizes,x=e.imgProps,g=d(e,ki),v=l({display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0,position:"relative",textAlign:"center",fontSize:"1.25rem",lineHeight:1,overflow:"hidden",userSelect:"none",backgroundColor:"hsl(var(--muted))",color:"hsl(var(--foreground))",fontWeight:500,width:"40px",height:"40px"},"rounded"===f?{borderRadius:"8px"}:"square"===f?{borderRadius:"0px"}:{borderRadius:"50%"}),h="dark"===Se();if(s){var b,y,w=a||{};w.color;var k=d(w,Ni),N=l(l(l({},v),k),{},{borderRadius:null!==(b=null==a?void 0:a.borderRadius)&&void 0!==b?b:v.borderRadius,backgroundColor:null!==(y=null==a?void 0:a.backgroundColor)&&void 0!==y?y:v.backgroundColor,color:null!=a&&a.color?a.color:null!=a&&a.backgroundColor?h?"#000000":"#ffffff":v.color});return t.jsxs("div",l(l({ref:r,className:Oe("relative",i),style:N},g),{},{children:[t.jsx("img",l({src:s,alt:c,sizes:m,style:{width:"100%",height:"100%",objectFit:"cover"}},x)),p&&t.jsx("div",{style:{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center"},children:p})]}))}var C=a||{};C.color;var j=d(C,Ci),E=l(l(l({},v),j),{},{borderRadius:null!==(n=null==a?void 0:a.borderRadius)&&void 0!==n?n:v.borderRadius,backgroundColor:null!==(o=null==a?void 0:a.backgroundColor)&&void 0!==o?o:v.backgroundColor,color:null!=a&&a.color?a.color:null!=a&&a.backgroundColor?h?"#000000":"#ffffff":v.color});return t.jsx("div",l(l({ref:r,className:Oe(i),style:E},g),{},{children:p}))});ji.displayName="Avatar";var Ei=["className","direction","spacing","justifyContent","alignItems","flexWrap","gap","sx","style","children"],Ri=o.forwardRef(function(e,r){var n=e.className,i=e.direction,a=void 0===i?"column":i,s=e.spacing,c=void 0===s?0:s,p=e.justifyContent,u=e.alignItems,f=e.flexWrap,m=e.gap,x=e.sx,g=e.style,v=e.children,h=d(e,Ei),b=void 0!==m?m:"number"==typeof c?8*c:0,y=o.useMemo(function(){return x?"function"==typeof x?x({}):x:{}},[x]),w="row"===a?"flex-row":"row-reverse"===a?"flex-row-reverse":"column-reverse"===a?"column-reverse":"flex-col",k="wrap"===f?"flex-wrap":"nowrap"===f?"flex-nowrap":"",N="flex-start"===p?"justify-start":"flex-end"===p?"justify-end":"center"===p?"justify-center":"space-between"===p?"justify-between":"space-around"===p?"justify-around":"space-evenly"===p?"justify-evenly":"",C="flex-start"===u?"items-start":"flex-end"===u?"items-end":"center"===u?"items-center":"baseline"===u?"items-baseline":"stretch"===u?"items-stretch":"",j=l(l(l({display:"flex"},b&&{gap:"".concat(b,"px")}),y),g);return t.jsx("div",l(l({ref:r,className:Oe(w,k,N,C,n),style:j},h),{},{children:v}))});Ri.displayName="Stack";var Mi=["className","position","disablePointerEvents","disableTypography","children"],Oi=o.forwardRef(function(e,r){var n=e.className,o=e.position,i=void 0===o?"end":o,a=e.disablePointerEvents,s=void 0!==a&&a,c=e.disableTypography,p=void 0!==c&&c,u=e.children,f=d(e,Mi);return t.jsx("div",l(l({ref:r,className:Oe("flex items-center","start"===i?"mr-2":"ml-2",s&&"pointer-events-none",n),style:{pointerEvents:s?"none":"auto",cursor:s?"default":"inherit"}},f),{},{children:p?u:t.jsx("span",{className:"text-sm text-muted-foreground",children:u})}))});Oi.displayName="InputAdornment";var Ti=["className","elevation","square","variant","sx","style","children"],Si=o.forwardRef(function(e,r){var n=e.className,i=e.elevation,a=void 0===i?0:i,s=e.square,c=void 0!==s&&s,p=e.variant,u=void 0===p?"elevation":p,f=e.sx,m=e.style,x=e.children,g=d(e,Ti),v=o.useMemo(function(){if(!f)return{};var e=l({},"function"==typeof f?f({}):f);return void 0!==e.p&&(e.padding=Te(e.p),delete e.p),void 0!==e.px&&(e.paddingLeft=Te(e.px),e.paddingRight=Te(e.px),delete e.px),void 0!==e.py&&(e.paddingTop=Te(e.py),e.paddingBottom=Te(e.py),delete e.py),void 0!==e.pt&&(e.paddingTop=Te(e.pt),delete e.pt),void 0!==e.pb&&(e.paddingBottom=Te(e.pb),delete e.pb),void 0!==e.pl&&(e.paddingLeft=Te(e.pl),delete e.pl),void 0!==e.pr&&(e.paddingRight=Te(e.pr),delete e.pr),void 0!==e.m&&(e.margin=Te(e.m),delete e.m),void 0!==e.mx&&(e.marginLeft=Te(e.mx),e.marginRight=Te(e.mx),delete e.mx),void 0!==e.my&&(e.marginTop=Te(e.my),e.marginBottom=Te(e.my),delete e.my),void 0!==e.mt&&(e.marginTop=Te(e.mt),delete e.mt),void 0!==e.mb&&(e.marginBottom=Te(e.mb),delete e.mb),void 0!==e.ml&&(e.marginLeft=Te(e.ml),delete e.ml),void 0!==e.mr&&(e.marginRight=Te(e.mr),delete e.mr),void 0!==e.gap&&(e.gap=Te(e.gap)),e},[f]),h=function(){if("outlined"===u)return{boxShadow:"none",border:"1px solid hsl(var(--border))"};var e={0:"none",1:"0px 2px 1px -1px rgba(0,0,0,0.2), 0px 1px 1px 0px rgba(0,0,0,0.14), 0px 1px 3px 0px rgba(0,0,0,0.12)",2:"0px 3px 1px -2px rgba(0,0,0,0.2), 0px 2px 2px 0px rgba(0,0,0,0.14), 0px 1px 5px 0px rgba(0,0,0,0.12)",3:"0px 3px 3px -2px rgba(0,0,0,0.2), 0px 3px 4px 0px rgba(0,0,0,0.14), 0px 1px 8px 0px rgba(0,0,0,0.12)",4:"0px 2px 4px -1px rgba(0,0,0,0.2), 0px 4px 5px 0px rgba(0,0,0,0.14), 0px 1px 10px 0px rgba(0,0,0,0.12)",5:"0px 3px 5px -1px rgba(0,0,0,0.2), 0px 5px 8px 0px rgba(0,0,0,0.14), 0px 1px 14px 0px rgba(0,0,0,0.12)",6:"0px 3px 5px -1px rgba(0,0,0,0.2), 0px 6px 10px 0px rgba(0,0,0,0.14), 0px 1px 18px 0px rgba(0,0,0,0.12)",7:"0px 4px 5px -2px rgba(0,0,0,0.2), 0px 7px 10px 1px rgba(0,0,0,0.14), 0px 2px 16px 1px rgba(0,0,0,0.12)",8:"0px 5px 5px -3px rgba(0,0,0,0.2), 0px 8px 10px 1px rgba(0,0,0,0.14), 0px 3px 14px 2px rgba(0,0,0,0.12)",9:"0px 5px 6px -3px rgba(0,0,0,0.2), 0px 9px 12px 1px rgba(0,0,0,0.14), 0px 3px 16px 2px rgba(0,0,0,0.12)",10:"0px 6px 6px -3px rgba(0,0,0,0.2), 0px 10px 14px 1px rgba(0,0,0,0.14), 0px 4px 18px 3px rgba(0,0,0,0.12)",11:"0px 6px 7px -4px rgba(0,0,0,0.2), 0px 11px 15px 1px rgba(0,0,0,0.14), 0px 4px 20px 3px rgba(0,0,0,0.12)",12:"0px 7px 8px -4px rgba(0,0,0,0.2), 0px 12px 17px 2px rgba(0,0,0,0.14), 0px 5px 22px 4px rgba(0,0,0,0.12)",13:"0px 7px 8px -4px rgba(0,0,0,0.2), 0px 13px 19px 2px rgba(0,0,0,0.14), 0px 5px 24px 4px rgba(0,0,0,0.12)",14:"0px 7px 9px -4px rgba(0,0,0,0.2), 0px 14px 21px 2px rgba(0,0,0,0.14), 0px 5px 26px 4px rgba(0,0,0,0.12)",15:"0px 8px 9px -5px rgba(0,0,0,0.2), 0px 15px 22px 2px rgba(0,0,0,0.14), 0px 6px 28px 5px rgba(0,0,0,0.12)",16:"0px 8px 10px -5px rgba(0,0,0,0.2), 0px 16px 24px 2px rgba(0,0,0,0.14), 0px 6px 30px 5px rgba(0,0,0,0.12)",17:"0px 8px 11px -5px rgba(0,0,0,0.2), 0px 17px 26px 2px rgba(0,0,0,0.14), 0px 6px 32px 5px rgba(0,0,0,0.12)",18:"0px 9px 11px -5px rgba(0,0,0,0.2), 0px 18px 28px 2px rgba(0,0,0,0.14), 0px 7px 34px 6px rgba(0,0,0,0.12)",19:"0px 9px 12px -6px rgba(0,0,0,0.2), 0px 19px 29px 2px rgba(0,0,0,0.14), 0px 7px 36px 6px rgba(0,0,0,0.12)",20:"0px 10px 13px -6px rgba(0,0,0,0.2), 0px 20px 31px 3px rgba(0,0,0,0.14), 0px 8px 38px 7px rgba(0,0,0,0.12)",21:"0px 10px 13px -6px rgba(0,0,0,0.2), 0px 21px 33px 3px rgba(0,0,0,0.14), 0px 8px 40px 7px rgba(0,0,0,0.12)",22:"0px 10px 14px -6px rgba(0,0,0,0.2), 0px 22px 35px 3px rgba(0,0,0,0.14), 0px 8px 42px 7px rgba(0,0,0,0.12)",23:"0px 11px 14px -7px rgba(0,0,0,0.2), 0px 23px 36px 3px rgba(0,0,0,0.14), 0px 9px 44px 8px rgba(0,0,0,0.12)",24:"0px 11px 15px -7px rgba(0,0,0,0.2), 0px 24px 38px 3px rgba(0,0,0,0.14), 0px 9px 46px 8px rgba(0,0,0,0.12)"};return{boxShadow:e[Math.max(0,Math.min(24,a))]||e[1]}}();return t.jsx("div",l(l({ref:r,className:Oe("bg-card",!c&&"rounded-lg","outlined"===u&&"border border-border",n),style:l(l(l({},h),v),m)},g),{},{children:x}))});Si.displayName="Paper";var Li=["className","position","color","elevation","sx","style","children"],Di=o.forwardRef(function(e,r){var n,i=e.className,a=e.position,s=void 0===a?"fixed":a,c=e.color,p=void 0===c?"default":c,u=e.elevation,f=void 0===u?4:u,m=e.sx,x=e.style,g=e.children,v=d(e,Li),h=o.useMemo(function(){return m?"function"==typeof m?m({}):m:{}},[m]),b="fixed"===s||"absolute"===s||"sticky"===s?{top:0,left:0,right:0,width:"100%"}:{};return t.jsx("div",l(l({ref:r,className:Oe("primary"===p?"bg-primary text-primary-foreground":"secondary"===p?"bg-secondary text-secondary-foreground":"transparent"===p?"bg-transparent text-foreground":"bg-card text-foreground","z-app-bar","static"===s||"relative"===s?"w-full":"",i),style:l(l(l(l({position:s},b),(n={0:"none",1:"0px 2px 1px -1px rgba(0,0,0,0.2), 0px 1px 1px 0px rgba(0,0,0,0.14), 0px 1px 3px 0px rgba(0,0,0,0.12)",2:"0px 3px 1px -2px rgba(0,0,0,0.2), 0px 2px 2px 0px rgba(0,0,0,0.14), 0px 1px 5px 0px rgba(0,0,0,0.12)",3:"0px 3px 3px -2px rgba(0,0,0,0.2), 0px 3px 4px 0px rgba(0,0,0,0.14), 0px 1px 8px 0px rgba(0,0,0,0.12)",4:"0px 2px 4px -1px rgba(0,0,0,0.2), 0px 4px 5px 0px rgba(0,0,0,0.14), 0px 1px 10px 0px rgba(0,0,0,0.12)",5:"0px 3px 5px -1px rgba(0,0,0,0.2), 0px 5px 8px 0px rgba(0,0,0,0.14), 0px 1px 14px 0px rgba(0,0,0,0.12)",6:"0px 3px 5px -1px rgba(0,0,0,0.2), 0px 6px 10px 0px rgba(0,0,0,0.14), 0px 1px 18px 0px rgba(0,0,0,0.12)",7:"0px 4px 5px -2px rgba(0,0,0,0.2), 0px 7px 10px 1px rgba(0,0,0,0.14), 0px 2px 16px 1px rgba(0,0,0,0.12)",8:"0px 5px 5px -3px rgba(0,0,0,0.2), 0px 8px 10px 1px rgba(0,0,0,0.14), 0px 3px 14px 2px rgba(0,0,0,0.12)",9:"0px 5px 6px -3px rgba(0,0,0,0.2), 0px 9px 12px 1px rgba(0,0,0,0.14), 0px 3px 16px 2px rgba(0,0,0,0.12)",10:"0px 6px 6px -3px rgba(0,0,0,0.2), 0px 10px 14px 1px rgba(0,0,0,0.14), 0px 4px 18px 3px rgba(0,0,0,0.12)",11:"0px 6px 7px -4px rgba(0,0,0,0.2), 0px 11px 15px 1px rgba(0,0,0,0.14), 0px 4px 20px 3px rgba(0,0,0,0.12)",12:"0px 7px 8px -4px rgba(0,0,0,0.2), 0px 12px 17px 2px rgba(0,0,0,0.14), 0px 5px 22px 4px rgba(0,0,0,0.12)",13:"0px 7px 8px -4px rgba(0,0,0,0.2), 0px 13px 19px 2px rgba(0,0,0,0.14), 0px 5px 24px 4px rgba(0,0,0,0.12)",14:"0px 7px 9px -4px rgba(0,0,0,0.2), 0px 14px 21px 2px rgba(0,0,0,0.14), 0px 5px 26px 4px rgba(0,0,0,0.12)",15:"0px 8px 9px -5px rgba(0,0,0,0.2), 0px 15px 22px 2px rgba(0,0,0,0.14), 0px 6px 28px 5px rgba(0,0,0,0.12)",16:"0px 8px 10px -5px rgba(0,0,0,0.2), 0px 16px 24px 2px rgba(0,0,0,0.14), 0px 6px 30px 5px rgba(0,0,0,0.12)",17:"0px 8px 11px -5px rgba(0,0,0,0.2), 0px 17px 26px 2px rgba(0,0,0,0.14), 0px 6px 32px 5px rgba(0,0,0,0.12)",18:"0px 9px 11px -5px rgba(0,0,0,0.2), 0px 18px 28px 2px rgba(0,0,0,0.14), 0px 7px 34px 6px rgba(0,0,0,0.12)",19:"0px 9px 12px -6px rgba(0,0,0,0.2), 0px 19px 29px 2px rgba(0,0,0,0.14), 0px 7px 36px 6px rgba(0,0,0,0.12)",20:"0px 10px 13px -6px rgba(0,0,0,0.2), 0px 20px 31px 3px rgba(0,0,0,0.14), 0px 8px 38px 7px rgba(0,0,0,0.12)",21:"0px 10px 13px -6px rgba(0,0,0,0.2), 0px 21px 33px 3px rgba(0,0,0,0.14), 0px 8px 40px 7px rgba(0,0,0,0.12)",22:"0px 10px 14px -6px rgba(0,0,0,0.2), 0px 22px 35px 3px rgba(0,0,0,0.14), 0px 8px 42px 7px rgba(0,0,0,0.12)",23:"0px 11px 14px -7px rgba(0,0,0,0.2), 0px 23px 36px 3px rgba(0,0,0,0.14), 0px 9px 44px 8px rgba(0,0,0,0.12)",24:"0px 11px 15px -7px rgba(0,0,0,0.2), 0px 24px 38px 3px rgba(0,0,0,0.14), 0px 9px 46px 8px rgba(0,0,0,0.12)"},{boxShadow:n[Math.max(0,Math.min(24,Math.round(f)))]||n[4]})),h),x)},v),{},{children:g}))});Di.displayName="AppBar";var Ai=["className","sx","style","variant","children"],zi=o.forwardRef(function(e,r){var n=e.className,i=e.sx,a=e.style,s=e.variant,c=void 0===s?"regular":s,p=e.children,u=d(e,Ai),f=o.useMemo(function(){return i?"function"==typeof i?i({}):i:{}},[i]),m=l(l(l({display:"flex",alignItems:"center"},"dense"===c?{minHeight:"48px",paddingLeft:"16px",paddingRight:"16px"}:{minHeight:"64px",paddingLeft:"16px",paddingRight:"16px"}),f),a);return t.jsx("div",l(l({ref:r,className:Oe(n),style:m},u),{},{children:p}))});zi.displayName="Toolbar";var Ii=["className","anchorEl","open","onClose","PaperProps","anchorOrigin","transformOrigin","position","disablePortal","border","children"],Wi=["className","onClick","disabled","sx","style","children","_isFirst","_isLast","_menuBorderRadius"],Bi=["className","style","children"],Pi=["className","style","children","primary","secondary"],$i=o.forwardRef(function(e,n){var i,a,s,p,u,f,m,x=e.className,g=e.anchorEl,v=e.open,h=void 0!==v&&v,b=e.onClose,y=e.PaperProps,w=e.anchorOrigin,k=void 0===w?{vertical:"bottom",horizontal:"left"}:w;e.transformOrigin;var N=e.position,C=void 0===N?"fixed":N,j=e.disablePortal,E=void 0!==j&&j,R=e.border,M=void 0!==R&&R,O=e.children,T=d(e,Ii),S=E?C:"fixed",L=o.useRef(null),D=c(o.useState({top:0,left:0}),2),A=D[0],z=D[1],I=o.useRef({top:0,left:0}),W=o.useRef((null==y||null===(i=y.style)||void 0===i?void 0:i.borderRadius)||"8px");void 0!==(null==y||null===(a=y.style)||void 0===a?void 0:a.borderRadius)&&(W.current=y.style.borderRadius);if(o.useImperativeHandle(n,function(){return L.current}),o.useLayoutEffect(function(){if(h&&g){var e=!0,t=null;if(t=requestAnimationFrame(function(){if(e)try{if(!g||!g.getBoundingClientRect||!g.isConnected)return void(e&&z({top:50,left:0}));var t=g.getBoundingClientRect();if(!t||isNaN(t.bottom)||isNaN(t.left))return void(e&&z({top:50,left:0}));if("fixed"===S){var r,n,o,i=window.innerWidth,a=window.innerHeight,s=(null===(r=L.current)||void 0===r?void 0:r.offsetWidth)||(null==y||null===(n=y.style)||void 0===n?void 0:n.minWidth)||180,l=(null===(o=L.current)||void 0===o?void 0:o.offsetHeight)||100,d=0,c=0;d="bottom"===k.vertical?t.bottom+8:"top"===k.vertical?t.top-l-8:t.top+(t.height-l)/2,c="left"===k.horizontal?t.left:"right"===k.horizontal?t.right-s:t.left+(t.width-s)/2;var p=16;c+s>i-p&&(c=i-s-p),c<p&&(c=p),d+l>a-p&&("bottom"===k.vertical&&(d=t.top-l-8),d+l>a-p&&(d=a-l-p)),d<p&&(d=p),e&&z({top:d,left:c})}else{for(var u=g.parentElement;u&&u!==document.body&&u.isConnected;)try{var f=window.getComputedStyle(u);if("relative"===f.position||"absolute"===f.position||"fixed"===f.position)break;u=u.parentElement}catch(e){break}var m={top:0,left:0};if(u&&u!==document.body&&u.isConnected&&u.getBoundingClientRect)try{(!(m=u.getBoundingClientRect())||isNaN(m.top)||isNaN(m.left))&&(m={top:0,left:0})}catch(e){m={top:0,left:0}}var x=0,v=0;if("bottom"===k.vertical)x=t.bottom-m.top+8;else if("top"===k.vertical){var h,b=(null===(h=L.current)||void 0===h?void 0:h.offsetHeight)||100;x=t.top-m.top-b-8}else{var w,N=(null===(w=L.current)||void 0===w?void 0:w.offsetHeight)||100;x=t.top-m.top+(t.height-N)/2}if("left"===k.horizontal)v=t.left-m.left;else if("right"===k.horizontal){var C,j,E=(null===(C=L.current)||void 0===C?void 0:C.offsetWidth)||(null==y||null===(j=y.style)||void 0===j?void 0:j.minWidth)||180;v=t.right-m.left-E}else{var R,M,O=(null===(R=L.current)||void 0===R?void 0:R.offsetWidth)||(null==y||null===(M=y.style)||void 0===M?void 0:M.minWidth)||180;v=t.left-m.left+(t.width-O)/2}e&&z({top:x,left:v})}}catch(t){e&&z({top:50,left:0})}}),"fixed"===S){var r=function(){t=requestAnimationFrame(function(){if(e){var t=null==g?void 0:g.getBoundingClientRect();if(t){var r,n,o,i=window.innerWidth,a=window.innerHeight,s=(null===(r=L.current)||void 0===r?void 0:r.offsetWidth)||(null==y||null===(n=y.style)||void 0===n?void 0:n.minWidth)||180,l=(null===(o=L.current)||void 0===o?void 0:o.offsetHeight)||100,d=16,c="bottom"===k.vertical?t.bottom+8:"top"===k.vertical?t.top-l-8:t.top+(t.height-l)/2,p="left"===k.horizontal?t.left:"right"===k.horizontal?t.right-s:t.left+(t.width-s)/2;p+s>i-d&&(p=i-s-d),p<d&&(p=d),c+l>a-d&&("bottom"===k.vertical&&(c=t.top-l-8),c+l>a-d&&(c=a-l-d)),c<d&&(c=d),z({top:c,left:p})}}})};return window.addEventListener("scroll",r,!0),window.addEventListener("resize",r),function(){e=!1,null!==t&&cancelAnimationFrame(t),window.removeEventListener("scroll",r,!0),window.removeEventListener("resize",r)}}return function(){e=!1,null!==t&&cancelAnimationFrame(t)}}z({top:0,left:0})},[h,g,k.vertical,k.horizontal,S,null==y||null===(s=y.style)||void 0===s?void 0:s.minWidth]),o.useLayoutEffect(function(){if(h&&g&&L.current&&"fixed"===S){var e=requestAnimationFrame(function(){!function(){try{var e=g.getBoundingClientRect();if(!e)return;var t=window.innerWidth,r=window.innerHeight,n=L.current.offsetWidth,o=L.current.offsetHeight;if(!n||!o)return;var i=16,a=0,s=0;a="bottom"===k.vertical?e.bottom+8:"top"===k.vertical?e.top-o-8:e.top+(e.height-o)/2,(s="left"===k.horizontal?e.left:"right"===k.horizontal?e.right-n:e.left+(e.width-n)/2)+n>t-i&&(s=t-n-i),s<i&&(s=i),a+o>r-i&&("bottom"===k.vertical&&(a=e.top-o-8),a+o>r-i&&(a=r-o-i)),a<i&&(a=i),s<0&&(s=i),a<0&&(a=i),s+n>t&&(s=Math.max(i,t-n-i)),a+o>r&&(a=Math.max(i,r-o-i));var l={top:a,left:s};(Math.abs(I.current.top-l.top)>.5||Math.abs(I.current.left-l.left)>.5)&&(I.current=l,z(l))}catch(e){}}()});return function(){e&&cancelAnimationFrame(e)}}},[h,g,k.vertical,k.horizontal,S]),o.useEffect(function(){if(h){var e=function(e){L.current&&!L.current.contains(e.target)&&g&&!g.contains(e.target)&&b&&b(e,"backdropClick")},t=function(e){"Escape"===e.key&&b&&b(e,"escapeKeyDown")};return document.addEventListener("mousedown",e,!0),document.addEventListener("keydown",t,!0),function(){document.removeEventListener("mousedown",e,!0),document.removeEventListener("keydown",t,!0)}}},[h,b,g]),!h||!g)return null;var B=document.documentElement.classList.contains("dark")||window.matchMedia("(prefers-color-scheme: dark)").matches,P=t.jsx("div",l(l({ref:L,className:Oe("rounded-lg shadow-lg",x),style:l(l(l({position:S,top:"".concat(A.top,"px"),left:"".concat(A.left,"px"),zIndex:1300,pointerEvents:"auto",visibility:"visible",display:"block",opacity:1,backgroundColor:"hsl(var(--card))",boxShadow:B?"0px 4px 12px rgba(0, 0, 0, 0.4), 0px 0px 0px 1px rgba(255, 255, 255, 0.1)":"0px 4px 12px rgba(0, 0, 0, 0.15)"},M||null!=y&&null!==(p=y.style)&&void 0!==p&&p.border?{border:(null==y||null===(u=y.style)||void 0===u?void 0:u.border)||(B?"1px solid rgba(255, 255, 255, 0.1)":"1px solid hsl(var(--border))")}:{}),{},{borderRadius:(null==y||null===(f=y.style)||void 0===f?void 0:f.borderRadius)||"8px",minWidth:(null==y||null===(m=y.style)||void 0===m?void 0:m.minWidth)||180,maxWidth:"calc(100vw - 32px)",padding:"4px 0",height:"auto",overflow:"hidden",boxSizing:"border-box"},null==y?void 0:y.style),T.style)},Object.fromEntries(Object.entries(T||{}).filter(function(e){return"style"!==c(e,1)[0]}))),{},{children:function(e){if(!e)return e;var t=W.current,r=o.Children.toArray(e).filter(function(e){if(!o.isValidElement(e))return!1;var t=e.type;return"MenuItem"===(null==t?void 0:t.displayName)||"function"==typeof t&&"MenuItem"===t.name});return o.Children.map(e,function(e){if(!o.isValidElement(e))return e;var n=e.type;if(!("MenuItem"===(null==n?void 0:n.displayName)||"function"==typeof n&&"MenuItem"===n.name))return e;var i=r.findIndex(function(t){return t===e}),a=0===i,s=i===r.length-1;return o.cloneElement(e,l(l({},e.props),{},{_isFirst:a,_isLast:s,_menuBorderRadius:t}))})}(O)}));return E?P:"undefined"!=typeof document?r.createPortal(P,document.body):null});$i.displayName="Menu";var Hi=o.forwardRef(function(e,r){var n=e.className,i=e.onClick,a=e.disabled,s=void 0!==a&&a,p=e.sx,u=e.style,f=e.children,m=e._isFirst,x=e._isLast,g=e._menuBorderRadius,v=d(e,Wi),h=c(o.useState(!1),2),b=h[0],y=h[1],w=o.useMemo(function(){return p?"function"==typeof p?p({}):p:{}},[p]),k=16,N=12,C=l(l({display:"flex",alignItems:"center",minHeight:"36px",height:"auto",paddingLeft:"".concat(k,"px"),paddingRight:"".concat(k,"px"),paddingTop:"".concat(N,"px"),paddingBottom:"".concat(N,"px"),margin:0,cursor:s?"not-allowed":"pointer",fontSize:"0.875rem",color:s?"#666666":"#000000",backgroundColor:b&&!s?"hsl(var(--accent))":"transparent",opacity:s?.5:void 0!==w.opacity?w.opacity:1,transition:"background-color 200ms cubic-bezier(0.4, 0, 0.2, 1)",whiteSpace:"nowrap",visibility:"visible",textAlign:"left",fontWeight:"normal",width:"100%",maxWidth:"100%",boxSizing:"border-box",position:"relative",overflow:"hidden",borderTopLeftRadius:m?g:0,borderTopRightRadius:m?g:0,borderBottomLeftRadius:x?g:0,borderBottomRightRadius:x?g:0},w),u);return t.jsx("div",l(l({ref:r,role:"menuitem",tabIndex:s?-1:0,"aria-disabled":s,className:Oe("focus:outline-none focus:bg-accent focus:text-accent-foreground",n),style:l(l({},C),{},{position:"relative"}),onClick:function(e){s||i&&i(e)},onMouseDown:function(e){s||(e.preventDefault(),e.stopPropagation())},onKeyDown:function(e){s||"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),e.stopPropagation(),i&&i(e))},onMouseEnter:function(){return y(!0)},onMouseLeave:function(){return y(!1)}},v),{},{children:f}))});Hi.displayName="MenuItem";var Vi=o.forwardRef(function(e,r){var n=e.className,o=e.style,i=e.children,a=d(e,Bi);return t.jsx("div",l(l({ref:r,className:Oe("flex items-center justify-center",n),style:l({minWidth:"40px",marginRight:"8px",color:"inherit",fontSize:"1.25rem"},o)},a),{},{children:i}))});Vi.displayName="MenuItemIcon";var _i=o.forwardRef(function(e,r){var n=e.className,o=e.style,i=e.children,a=e.primary,s=e.secondary,c=d(e,Pi),p=void 0!==a?a:i,u=null!=s;return t.jsx("div",l(l({ref:r,className:Oe("flex-1",n),style:l({fontSize:"0.875rem",lineHeight:"1.5",display:"flex",alignItems:"center",width:"100%",textAlign:"left",color:"#000000",minHeight:"1.5em",boxSizing:"border-box"},o)},c),{},{children:u?t.jsxs(t.Fragment,{children:[t.jsx("div",{style:{fontSize:"0.875rem",lineHeight:"1.5",color:"#000000",textAlign:"left",display:"block"},children:p}),t.jsx("div",{style:{fontSize:"0.75rem",color:"#666666",marginTop:"2px",display:"block"},children:s})]}):t.jsx("span",{style:{color:"#000000",display:"inline-block",width:"100%"},children:p||""})}))});_i.displayName="MenuItemText";var Fi=["className","size","sx","style","border","verticalDivider","children"],qi=["className","component","sx","style","children"],Yi=["className","sx","style","children"],Gi=["className","sx","style","children"],Ui=["className","sx","style","children","hover","selected"],Ki=["className","align","padding","size","scope","sx","style","children","colSpan","rowSpan"],Xi=o.createContext({verticalDivider:!1}),Zi=o.forwardRef(function(e,r){var n=e.className,i=e.size,a=void 0===i?"medium":i,s=e.sx,c=e.style,p=e.border,u=void 0!==p&&p,f=e.verticalDivider,m=void 0!==f&&f,x=e.children,g=d(e,Fi),v=o.useMemo(function(){return s?"function"==typeof s?s({}):s:{}},[s]);return t.jsx(Xi.Provider,{value:{verticalDivider:m},children:t.jsx("table",l(l({ref:r,className:Oe("w-full",n),style:l(l(l(l({borderCollapse:"separate",borderSpacing:0},u&&{border:"1px solid hsl(var(--border))"}),{small:{fontSize:"0.875rem"},medium:{fontSize:"1rem"}}[a]),v),c)},g),{},{children:x}))})});Zi.displayName="Table";var Ji=o.forwardRef(function(e,r){var n=e.className,i=e.component,a=e.sx,s=e.style,c=e.children,p=d(e,qi),u=o.useMemo(function(){return a?"function"==typeof a?a({}):a:{}},[a]),f=i||"div";return t.jsx(f,l(l({ref:r,className:Oe("relative",n),style:l(l({},u),s)},p),{},{children:c}))});Ji.displayName="TableContainer";var Qi=o.forwardRef(function(e,r){var n=e.className,i=e.sx,a=e.style,s=e.children,c=d(e,Yi),p=o.useMemo(function(){return i?"function"==typeof i?i({}):i:{}},[i]);return t.jsx("thead",l(l({ref:r,className:Oe(n),style:l(l({},p),a)},c),{},{children:s}))});Qi.displayName="TableHead";var ea=o.forwardRef(function(e,r){var n=e.className,i=e.sx,a=e.style,s=e.children,c=d(e,Gi),p=o.useMemo(function(){return i?"function"==typeof i?i({}):i:{}},[i]);return t.jsx("tbody",l(l({ref:r,className:Oe(n),style:l(l({},p),a)},c),{},{children:s}))});ea.displayName="TableBody";var ta=o.forwardRef(function(e,r){var n=e.className,i=e.sx,a=e.style,s=e.children,c=e.hover,p=e.selected,u=d(e,Ui),f=o.useMemo(function(){return i?"function"==typeof i?i({}):i:{}},[i]);return t.jsx("tr",l(l({ref:r,className:Oe(c&&"hover:bg-accent",p&&"bg-accent",n),style:l(l({},f),a)},u),{},{children:s}))});ta.displayName="TableRow";var ra=o.forwardRef(function(e,r){var n=e.className,i=e.align,a=void 0===i?"inherit":i,s=e.padding,c=void 0===s?"normal":s,p=e.size,u=void 0===p?"medium":p,f=e.scope,m=e.sx,x=e.style,g=e.children,v=e.colSpan,h=e.rowSpan,b=d(e,Ki),y=o.useMemo(function(){return m?"function"==typeof m?m({}):m:{}},[m]),w={none:"0",checkbox:"0 0 0 4px",normal:"16px",small:"8px"},k={small:{padding:"6px 8px",fontSize:"0.875rem"},medium:{padding:w[c]||w.normal,fontSize:"1rem"}},N=o.useContext(Xi).verticalDivider,C=f?"th":"td";return t.jsx(C,l(l({ref:r,scope:f,colSpan:v,rowSpan:h,className:Oe("border-b border-border",N&&"border-r border-border last:border-r-0",n),style:l(l(l(l(l({},k[u]),{left:{textAlign:"left"},center:{textAlign:"center"},right:{textAlign:"right"},inherit:{}}[a]),N&&{borderRight:"1px solid hsl(var(--border))"}),y),x)},b),{},{children:g}))});ra.displayName="TableCell";var na=["className","value","selected","onChange","disabled","size","sx","style","children","color"],oa=["backgroundColor","color","borderColor"],ia=["className","value","exclusive","onChange","size","sx","style","children"],aa=o.forwardRef(function(e,r){var n=e.className,i=e.value,a=e.selected,s=void 0!==a&&a,c=e.onChange,p=e.disabled,u=void 0!==p&&p,f=e.size,m=void 0===f?"medium":f,x=e.sx,g=e.style,v=e.children,h=e.color,b=d(e,na);Se();var y=o.useMemo(function(){return x?"function"==typeof x?x({}):x:{}},[x]),w=l(l({},{small:{padding:"4px 6px",fontSize:"0.75rem",minHeight:"28px"},medium:{padding:"6px 16px",fontSize:"0.9375rem",minHeight:"36px"},large:{padding:"8px 22px",fontSize:"1rem",minHeight:"40px"}}[m]),{},{border:"1px solid hsl(var(--border))",borderRadius:"8px",textTransform:"none",fontWeight:400}),k=g||{};k.backgroundColor,k.color,k.borderColor;var N=d(k,oa),C=s?h?{backgroundColor:h,color:"white",borderColor:h}:{backgroundColor:"hsl(var(--primary))",color:"hsl(var(--primary-foreground))",borderColor:"hsl(var(--primary))"}:{backgroundColor:"transparent",color:"hsl(var(--foreground))",borderColor:"hsl(var(--border))"},j=l(l(l(l({},w),y),N),C);return t.jsx("button",l(l({ref:r,type:"button",className:Oe("inline-flex items-center justify-center transition-colors","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2","disabled:opacity-50 disabled:pointer-events-none",n),style:j,onClick:function(e){u||c&&c(e,i)},disabled:u,"aria-pressed":s,onMouseEnter:function(e){u||s||(e.currentTarget.style.backgroundColor="hsl(var(--accent) / 0.3)")},onMouseLeave:function(e){u||s||(e.currentTarget.style.backgroundColor="transparent")}},b),{},{children:v}))});aa.displayName="ToggleButton";var sa=o.forwardRef(function(e,r){var n=e.className,i=e.value,a=e.exclusive,s=void 0!==a&&a,c=e.onChange,u=e.size,f=void 0===u?"medium":u,m=e.sx,x=e.style,g=e.children,v=d(e,ia),h=o.useMemo(function(){return m?"function"==typeof m?m({}):m:{}},[m]),b=function(e,t){if(c)if(s)c(e,t===i?null:t);else{var r=Array.isArray(i)?i:[],n=r.indexOf(t),o=p(r);-1===n?o.push(t):o.splice(n,1),c(e,o)}},y=o.Children.toArray(g).map(function(e,t){if(o.isValidElement(e)&&e.type===aa){var r=e.props.value,n=s?i===r:Array.isArray(i)&&i.includes(r);return o.cloneElement(e,{selected:n,onChange:b,size:f,style:l({borderRadius:"8px"},e.props.style)})}return e});return t.jsx("div",l(l({ref:r,className:Oe("inline-flex gap-2",n),style:l(l({},h),x),role:"group"},v),{},{children:y}))});sa.displayName="ToggleButtonGroup";var la=function(t){var r=c(e.useState(!1),2),n=r[0],o=r[1];return e.useEffect(function(){var e=t;t.startsWith("@media")&&(e=t.replace("@media","").trim());var r=window.matchMedia(e);o(r.matches);var n=function(e){o(e.matches)};return r.addEventListener("change",n),function(){r.removeEventListener("change",n)}},[t]),n},da=["className","container","item","xs","sm","md","lg","xl","spacing","sx","style","children"],ca=o.forwardRef(function(e,r){var n=e.className,i=e.container,a=void 0!==i&&i,s=e.item,c=void 0!==s&&s,p=e.xs,u=e.sm,f=e.md,m=e.lg,x=e.xl,g=e.spacing,v=e.sx,h=e.style,b=e.children,y=d(e,da),w=(la("@media (max-width:599px)"),la("@media (min-width:600px) and (max-width:959px)")),k=la("@media (min-width:960px) and (max-width:1279px)"),N=la("@media (min-width:1280px) and (max-width:1919px)"),C=la("@media (min-width:1920px)"),j=o.useMemo(function(){return v?"function"==typeof v?v({}):v:{}},[v]),E=function(e){return"number"==typeof e?"".concat(8*e,"px"):"0px"},R=C&&void 0!==x?x:N&&void 0!==m?m:k&&void 0!==f?f:w&&void 0!==u?u:p,M=l(l(l(l(l({},function(){if(!a)return{};var e=E(g||0);return{display:"flex",flexWrap:"wrap",width:"100%",marginLeft:g?"-".concat(e):void 0,marginTop:g?"-".concat(e):void 0}}()),function(){if(!c)return{};if(void 0===R)return{};var e=R/12*100;return{flexBasis:"".concat(e,"%"),maxWidth:"".concat(e,"%"),flexGrow:0,flexShrink:0,boxSizing:"border-box"}}()),function(){if(!c)return{};if(!g)return{};var e=E(g);return{paddingLeft:e,paddingTop:e}}()),j),h);return t.jsx("div",l(l({ref:r,className:Oe(n),style:M},y),{},{children:b}))});ca.displayName="Grid";var pa=["children","className","required","disabled","error","focused","shrink","sx","style"],ua=o.forwardRef(function(e,r){var n=e.children,i=e.className,a=e.required,s=void 0!==a&&a,c=e.disabled,p=void 0!==c&&c,u=e.error,f=void 0!==u&&u,m=e.focused,x=void 0!==m&&m;e.shrink;var g=e.sx,v=e.style,h=d(e,pa),b=o.useMemo(function(){return g?"function"==typeof g?g({}):g:{}},[g]);return t.jsxs("label",l(l({ref:r,className:Oe("block text-sm font-medium mb-2 text-foreground",f?"text-destructive":x?"text-primary":"text-foreground",p&&"opacity-50",i),style:l(l({},b),v)},h),{},{children:[n,s&&t.jsx("span",{className:"ml-1 text-destructive",children:"*"})]}))});ua.displayName="InputLabel";var fa=["value","onChange","onChangeCommitted","min","max","step","disabled","orientation","className","style","sx","aria-label","aria-labelledby","aria-valuetext"],ma=o.forwardRef(function(e,r){var n,i,a,s,p,u,f,m,x,g,v,h,b,y,w,k,N,C,j,E,R,M,O,T,S,L,D=e.value,A=e.onChange,z=e.onChangeCommitted,I=e.min,W=void 0===I?0:I,B=e.max,P=void 0===B?100:B,$=e.step,H=void 0===$?1:$,V=e.disabled,_=void 0!==V&&V,F=e.orientation,q=void 0===F?"horizontal":F,Y=e.className,G=e.style,U=e.sx,K=e["aria-label"],X=e["aria-labelledby"],Z=e["aria-valuetext"],J=d(e,fa),Q=o.useRef(null),ee=o.useRef(!1),te=c(o.useState(D),2),re=te[0],ne=te[1],oe=o.useMemo(function(){if(!U)return{container:{}};var e="function"==typeof U?U({}):U,t={container:{}};return e.position&&(t.container.position=e.position),void 0!==e.top&&(t.container.top=e.top),void 0!==e.left&&(t.container.left=e.left),e.width&&(t.container.width=e.width),e.height&&(t.container.height=e.height),e.transform&&(t.container.transform=e.transform),e["& .MuiSlider-rail"]&&(t.rail=e["& .MuiSlider-rail"]),e["& .MuiSlider-track"]&&(t.track=e["& .MuiSlider-track"]),e["& .MuiSlider-thumb"]&&(t.thumb=e["& .MuiSlider-thumb"]),t},[U,re]);o.useEffect(function(){ee.current||ne(D)},[D]);var ie,ae,se="vertical"===q,le=Math.max(0,Math.min(1,(re-W)/(P-W))),de=function(e){ee.current&&(e.preventDefault(),fe(e))},ce=function(e){ee.current&&(e.preventDefault(),fe(e.touches[0]))},pe=function(){ee.current&&z&&z(null,re),ee.current=!1,document.removeEventListener("mousemove",de,{capture:!0}),document.removeEventListener("mouseup",pe,{capture:!0})},ue=function(){ee.current&&z&&z(null,re),ee.current=!1,document.removeEventListener("touchmove",ce,{capture:!0}),document.removeEventListener("touchend",ue,{capture:!0})},fe=function(e){if(Q.current){var t=Q.current.getBoundingClientRect();if(se){var r=t.bottom-e.clientY,n=(r=Math.max(0,Math.min(t.height,r)))/t.height,o=Math.round(n*(P-W)+W),i=Math.max(W,Math.min(P,o));ne(i),A&&A(null,i)}else{var a=e.clientX-t.left,s=(a=Math.max(0,Math.min(t.width,a)))/t.width,l=Math.round(s*(P-W)+W),d=Math.max(W,Math.min(P,l));ne(d),A&&A(null,d)}}},me=l({},se?{width:"100%",height:"100%",borderRadius:(null===(n=oe.rail)||void 0===n?void 0:n.borderRadius)||"10px",backgroundColor:(null===(i=oe.rail)||void 0===i?void 0:i.backgroundColor)||"hsl(var(--muted))",border:(null===(a=oe.rail)||void 0===a?void 0:a.border)||"none",position:"relative",zIndex:0}:{width:"100%",height:(null===(s=oe.rail)||void 0===s?void 0:s.height)||"4px",borderRadius:(null===(p=oe.rail)||void 0===p?void 0:p.borderRadius)||"2px",backgroundColor:(null===(u=oe.rail)||void 0===u?void 0:u.backgroundColor)||"hsl(var(--muted))",border:(null===(f=oe.rail)||void 0===f?void 0:f.border)||"none",position:"relative",zIndex:0}),xe=l({},se?{position:"absolute",bottom:0,left:0,width:"100%",height:"".concat(100*le,"%"),borderRadius:(null===(m=oe.track)||void 0===m?void 0:m.borderRadius)||"10px",backgroundColor:(null===(x=oe.track)||void 0===x?void 0:x.backgroundColor)||"hsl(var(--primary))",display:void 0!==(null===(ie=oe.track)||void 0===ie?void 0:ie.display)?"function"==typeof oe.track.display?oe.track.display(re)?"block":"none":oe.track.display:se&&0===re?"none":"block",border:(null===(g=oe.track)||void 0===g?void 0:g.border)||"none",zIndex:1,pointerEvents:"none"}:{position:"absolute",top:"50%",left:0,transform:"translateY(-50%)",width:"".concat(100*le,"%"),height:(null===(v=oe.track)||void 0===v?void 0:v.height)||"4px",borderRadius:(null===(h=oe.track)||void 0===h?void 0:h.borderRadius)||"2px",backgroundColor:(null===(b=oe.track)||void 0===b?void 0:b.backgroundColor)||"hsl(var(--primary))",border:(null===(y=oe.track)||void 0===y?void 0:y.border)||"none",zIndex:1,pointerEvents:"none"}),ge=l({},se?{position:"absolute",left:"50%",bottom:"".concat(100*le,"%"),transform:(null===(w=oe.thumb)||void 0===w?void 0:w.transform)||"translateX(-50%) translateY(50%)",width:(null===(k=oe.thumb)||void 0===k?void 0:k.width)||20,height:(null===(N=oe.thumb)||void 0===N?void 0:N.height)||2,backgroundColor:(null===(C=oe.thumb)||void 0===C?void 0:C.backgroundColor)||"#ffffff",boxShadow:(null===(j=oe.thumb)||void 0===j?void 0:j.boxShadow)||"0 0 4px rgba(0, 0, 0, 0.3)",borderRadius:(null===(E=oe.thumb)||void 0===E?void 0:E.borderRadius)||"1px",marginBottom:(null===(R=oe.thumb)||void 0===R?void 0:R.marginBottom)||"-4px",display:void 0!==(null===(ae=oe.thumb)||void 0===ae?void 0:ae.display)?"function"==typeof oe.thumb.display?oe.thumb.display(re)?"block":"none":oe.thumb.display:se&&re<=3?"none":"block",cursor:_?"default":"pointer",zIndex:2,pointerEvents:"auto"}:{position:"absolute",top:"50%",left:"".concat(100*le,"%"),transform:"translate(-50%, -50%)",width:(null===(M=oe.thumb)||void 0===M?void 0:M.width)||16,height:(null===(O=oe.thumb)||void 0===O?void 0:O.height)||16,backgroundColor:(null===(T=oe.thumb)||void 0===T?void 0:T.backgroundColor)||"hsl(var(--primary))",boxShadow:(null===(S=oe.thumb)||void 0===S?void 0:S.boxShadow)||"0 2px 4px rgba(0,0,0,0.2)",borderRadius:(null===(L=oe.thumb)||void 0===L?void 0:L.borderRadius)||"50%",border:"2px solid hsl(var(--background))",cursor:_?"default":"pointer",zIndex:2,pointerEvents:"auto"}),ve=o.useId(),he=void 0!==re?re:D;return t.jsxs("div",l(l({ref:Q,role:"slider",id:ve,"aria-label":K,"aria-labelledby":X,"aria-valuemin":W,"aria-valuemax":P,"aria-valuenow":he,"aria-valuetext":Z||String(he),"aria-orientation":q,"aria-disabled":_,tabIndex:_?-1:0,className:Oe("relative select-none focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",se?"h-full w-full":"w-full",Y),style:l(l(l(l({},se?{height:"100%",width:"100%"}:{}),oe.container),G),{},{pointerEvents:_?"none":"auto",touchAction:_?"auto":"none",zIndex:1}),onMouseDown:function(e){_||(e.preventDefault(),e.stopPropagation(),ee.current=!0,fe(e),document.addEventListener("mousemove",de,{capture:!0}),document.addEventListener("mouseup",pe,{capture:!0}))},onTouchStart:function(e){_||(e.preventDefault(),e.stopPropagation(),ee.current=!0,fe(e.touches[0]),document.addEventListener("touchmove",ce,{capture:!0,passive:!1}),document.addEventListener("touchend",ue,{capture:!0}))},onKeyDown:function(e){if(!_){var t=he,r=H||1;"horizontal"===q?"ArrowRight"===e.key||"ArrowUp"===e.key?(e.preventDefault(),t=Math.min(P,he+r)):"ArrowLeft"===e.key||"ArrowDown"===e.key?(e.preventDefault(),t=Math.max(W,he-r)):"Home"===e.key?(e.preventDefault(),t=W):"End"===e.key&&(e.preventDefault(),t=P):"ArrowUp"===e.key?(e.preventDefault(),t=Math.min(P,he+r)):"ArrowDown"===e.key?(e.preventDefault(),t=Math.max(W,he-r)):"Home"===e.key?(e.preventDefault(),t=W):"End"===e.key&&(e.preventDefault(),t=P),t!==he&&(ne(t),A&&A(t))}}},J),{},{children:[t.jsx("div",{style:me}),t.jsx("div",{style:xe}),t.jsx("div",{style:ge,onMouseEnter:function(e){var t;!_&&null!==(t=oe.thumb)&&void 0!==t&&t["&:hover"]&&(e.currentTarget.style.boxShadow=oe.thumb["&:hover"].boxShadow||e.currentTarget.style.boxShadow)},onMouseLeave:function(e){var t;e.currentTarget.style.boxShadow=(null===(t=oe.thumb)||void 0===t?void 0:t.boxShadow)||(se?"0 0 4px rgba(0, 0, 0, 0.3)":"0 1px 3px rgba(0,0,0,0.4)")}})]}))});ma.displayName="Slider";var xa=["className","sx","style","children","component"],ga=o.forwardRef(function(e,r){var n=e.className,i=e.sx,a=e.style,s=e.children,c=e.component,p=void 0===c?"div":c,u=d(e,xa),f=p,m=o.useMemo(function(){if(!i)return{};var e=l({},"function"==typeof i?i({}):i);if(void 0!==e.p&&(e.padding=Te(e.p),delete e.p),void 0!==e.px&&(e.paddingLeft=Te(e.px),e.paddingRight=Te(e.px),delete e.px),void 0!==e.py&&(e.paddingTop=Te(e.py),e.paddingBottom=Te(e.py),delete e.py),void 0!==e.pt&&(e.paddingTop=Te(e.pt),delete e.pt),void 0!==e.pb&&(e.paddingBottom=Te(e.pb),delete e.pb),void 0!==e.pl&&(e.paddingLeft=Te(e.pl),delete e.pl),void 0!==e.pr&&(e.paddingRight=Te(e.pr),delete e.pr),void 0!==e.m&&(e.margin=Te(e.m),delete e.m),void 0!==e.mx&&(e.marginLeft=Te(e.mx),e.marginRight=Te(e.mx),delete e.mx),void 0!==e.my&&(e.marginTop=Te(e.my),e.marginBottom=Te(e.my),delete e.my),void 0!==e.mt&&(e.marginTop=Te(e.mt),delete e.mt),void 0!==e.mb&&(e.marginBottom=Te(e.mb),delete e.mb),void 0!==e.ml&&(e.marginLeft=Te(e.ml),delete e.ml),void 0!==e.mr&&(e.marginRight=Te(e.mr),delete e.mr),void 0!==e.gap&&(e.gap=Te(e.gap),delete e.gap),e.color&&"string"==typeof e.color&&("text.primary"===e.color||"textPrimary"===e.color?e.color="hsl(var(--foreground))":"text.secondary"===e.color||"textSecondary"===e.color?e.color="hsl(var(--muted-foreground))":"primary"===e.color?e.color="hsl(var(--primary))":"secondary"===e.color?e.color="hsl(var(--secondary))":"error"===e.color&&(e.color="hsl(var(--destructive))")),e.bgcolor){if("string"==typeof e.bgcolor&&e.bgcolor.includes(".")){e.backgroundColor={"background.paper":"hsl(var(--card))","background.default":"hsl(var(--background))","background.card":"hsl(var(--card))"}[e.bgcolor]||e.bgcolor}else e.backgroundColor=e.bgcolor;delete e.bgcolor}return e},[i]),x=l(l({},m),a),g="flex"===m.display?"flex":"",v="column"===m.flexDirection?"flex-col":"",h="center"===m.alignItems?"items-center":"",b="space-between"===m.justifyContent?"justify-between":"center"===m.justifyContent?"justify-center":"";return t.jsx(f,l(l({ref:r,className:Oe(g,v,h,b,n),style:x},u),{},{children:s}))});ga.displayName="Box",exports.Accordion=yr,exports.AccordionDetails=kr,exports.AccordionSummary=wr,exports.Alert=jr,exports.AppBar=Di,exports.Autocomplete=Zo,exports.Avatar=ji,exports.Box=ga,exports.Button=Ze,exports.Card=Pe,exports.CardActionArea=qe,exports.CardContent=_e,exports.CardDescription=Ve,exports.CardFooter=Fe,exports.CardHeader=$e,exports.CardTitle=He,exports.Checkbox=Zt,exports.Chip=jt,exports.Collapse=xi,exports.Container=bi,exports.DatePicker=ei,exports.Dialog=function(e){var n=e.open,i=e.onClose,a=e.children,s=e.variant,c=e.maxWidth,p=e.fullWidth,u=e.fullScreen,f=void 0!==u&&u,m=e.PaperProps,x=e["aria-labelledby"],g=e["aria-describedby"],v=d(e,tt),h=o.useId(),b=Se();et(Qe);var y=o.useMemo(function(){return null!=m&&m.sx?"function"==typeof m.sx?m.sx({}):m.sx:{}},[null==m?void 0:m.sx]);if(!n)return null;var w={xs:"max-w-xs",sm:"max-w-sm",md:"max-w-md",lg:"max-w-lg",xl:"max-w-xl"}[c]||"max-w-lg",k="pops"===s?{minWidth:"300px",maxWidth:"800px"}:{},N="drawer"===s?{margin:0,maxHeight:"100vh",height:"100vh",borderRadius:"16px 0 0 16px"}:{},C="pops"===s?"16px":"drawer"===s?"16px 0 0 16px":"8px",j=(null==m?void 0:m.style)||{},E=(null==m?void 0:m.className)||"",R="drawer"===s?"flex items-stretch justify-end":f?"flex items-stretch":"flex items-center justify-center",M="drawer"===s?parseInt(getComputedStyle(document.documentElement).getPropertyValue("--z-index-drawer")||"1300",10):parseInt(getComputedStyle(document.documentElement).getPropertyValue("--z-index-modal")||"1300",10),O=t.jsxs(t.Fragment,{children:[t.jsx("div",{className:Oe("fixed inset-0","dark"===b?"bg-black/80":"bg-black/60"),style:{zIndex:M-1,pointerEvents:"auto"},onClick:function(e){i&&i(e,"backdropClick")}}),t.jsx("div",l(l({className:Oe("fixed inset-0",R),style:{zIndex:M,pointerEvents:"none"}},v),{},{children:t.jsx("div",{role:"dialog","aria-modal":"true","aria-labelledby":x||"".concat(h,"-title"),"aria-describedby":g||"".concat(h,"-description"),className:Oe("relative shadow-2xl",f||"drawer"===s?"h-full w-full":"w-full max-w-[calc(100%-32px)]",f||"drawer"===s?"":"mx-4",!f&&"drawer"!==s&&w,p&&!f&&"drawer"!==s&&"max-w-full","drawer"===s&&"bg-background","drawer"!==s&&"bg-card",E),style:l(l(l(l(l({},{}),{},{borderRadius:f?0:C,position:"relative",opacity:1,pointerEvents:"auto",touchAction:"none"},k),N),y),j),children:a})}))]});return"undefined"!=typeof document?r.createPortal(O,document.body):null},exports.DialogActions=gt,exports.DialogContent=ct,exports.DialogContentText=vi,exports.DialogDescription=xt,exports.DialogFooter=ft,exports.DialogHeader=ut,exports.DialogTitle=mt,exports.Divider=wi,exports.Drawer=ri,exports.FormControl=Kt,exports.FormControlLabel=oi,exports.FormGroup=li,exports.FormLabel=ai,exports.Grid=ca,exports.IconButton=bt,exports.InputAdornment=Oi,exports.InputLabel=ua,exports.List=sr,exports.ListItem=lr,exports.ListItemAvatar=ur,exports.ListItemButton=pr,exports.ListItemIcon=dr,exports.ListItemText=cr,exports.Menu=$i,exports.MenuItem=Hi,exports.MenuItemIcon=Vi,exports.MenuItemText=_i,exports.Paper=Si,exports.Radio=fi,exports.RadioGroup=pi,exports.Select=Gt,exports.SelectMenuItem=Ut,exports.Slider=ma,exports.Stack=Ri,exports.Tab=Dr,exports.Table=Zi,exports.TableBody=ea,exports.TableCell=ra,exports.TableContainer=Ji,exports.TableHead=Qi,exports.TableRow=ta,exports.Tabs=Lr,exports.TextField=Ot,exports.ToggleButton=aa,exports.ToggleButtonGroup=sa,exports.Toolbar=zi,exports.Tooltip=Go,exports.Typography=kt;
|
|
8
|
+
var Tt=function(e){var t=function(e){return e.replace(/^([A-Z])|[\s-_]+(\w)/g,function(e,t,r){return r?r.toUpperCase():t.toLowerCase()})}(e);return t.charAt(0).toUpperCase()+t.slice(1)},St=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.filter(function(e,t,r){return Boolean(e)&&""!==e.trim()&&r.indexOf(e)===t}).join(" ").trim()},Lt={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"},Dt=["color","size","strokeWidth","absoluteStrokeWidth","className","children","iconNode"],At=e.forwardRef(function(t,r){var n=t.color,o=void 0===n?"currentColor":n,i=t.size,a=void 0===i?24:i,s=t.strokeWidth,u=void 0===s?2:s,f=t.absoluteStrokeWidth,m=t.className,x=void 0===m?"":m,g=t.children,v=t.iconNode,h=d(t,Dt);return e.createElement("svg",l(l(l({ref:r},Lt),{},{width:a,height:a,stroke:o,strokeWidth:f?24*Number(u)/Number(a):u,className:St("lucide",x)},!g&&!function(e){for(var t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0}(h)&&{"aria-hidden":"true"}),h),[].concat(p(v.map(function(t){var r=c(t,2),n=r[0],o=r[1];return e.createElement(n,o)})),p(Array.isArray(g)?g:[g])))}),zt=["className"],It=function(t,r){var n=e.forwardRef(function(n,o){var i,a=n.className,s=d(n,zt);return e.createElement(At,l({ref:o,iconNode:r,className:St("lucide-".concat((i=Tt(t),i.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase())),"lucide-".concat(t),a)},s))});return n.displayName=Tt(t),n},Wt=It("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]),Bt=It("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]),Pt=It("circle-alert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]),$t=It("circle-check-big",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]),Ht=It("info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]),Vt=It("triangle-alert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]),_t=It("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),Ft=["className","children","value","onChange","size","label","error","helperText","disabled","displayEmpty","native","renderValue","startAdornment","endAdornment","multiple","sx","style","menuStyle","menuClassName"],qt=["className","value","children"],Yt=["className","fullWidth","size","children","style"],Gt=o.forwardRef(function(e,r){var n=e.className,i=e.children,a=e.value,s=e.onChange,u=e.size,f=void 0===u?"small":u,m=e.label,x=e.error,g=void 0!==x&&x,v=e.helperText,h=e.disabled,b=void 0!==h&&h,y=e.displayEmpty,w=void 0!==y&&y;e.native;var k=e.renderValue,N=e.startAdornment,C=e.endAdornment,j=e.multiple,E=void 0!==j&&j,R=e.sx,M=e.style,O=e.menuStyle,T=e.menuClassName,S=d(e,Ft),L=function(e){return e||"hsl(var(--background))"},D="dark"===Se(),A=c(o.useState(!1),2),z=A[0],I=A[1],W=c(o.useState(!1),2),B=W[0],P=W[1],$=c(o.useState(!1),2),H=$[0],V=$[1],_=o.useRef(null),F=o.useRef(null),q=o.useId();o.useImperativeHandle(r,function(){return _.current});var Y=o.useMemo(function(){return R?function(e){if(!e)return{};var t={},r=function(){if(Object.prototype.hasOwnProperty.call(e,n)){var r=e[n];if("number"==typeof r&&["p","px","py","pt","pb","pl","pr","m","mx","my","mt","mb","ml","mr","gap"].includes(n)){var o={p:"padding",px:["paddingLeft","paddingRight"],py:["paddingTop","paddingBottom"],pt:"paddingTop",pb:"paddingBottom",pl:"paddingLeft",pr:"paddingRight",m:"margin",mx:["marginLeft","marginRight"],my:["marginTop","marginBottom"],mt:"marginTop",mb:"marginBottom",ml:"marginLeft",mr:"marginRight",gap:"gap"}[n];Array.isArray(o)?o.forEach(function(e){return t[e]=Te(r)}):t[o]=Te(r)}else"bgcolor"===n?"string"==typeof r&&r.includes(".")?t.backgroundColor={"background.paper":"hsl(var(--card))","background.default":"hsl(var(--background))","background.card":"hsl(var(--card))"}[r]||r:t.backgroundColor=r:t[n]=r}};for(var n in e)r();return t}("function"==typeof R?R({}):R):{}},[R]),G=E&&Array.isArray(a),U=G?a:[a],K=o.useMemo(function(){if(!i)return"";if(G)return"";var e=o.Children.toArray(i).find(function(e){return o.isValidElement(e)&&e.props.value===a});return e&&o.isValidElement(e)?e.props.children:""},[i,a,G]);o.useEffect(function(){var e=function(e){F.current&&!F.current.contains(e.target)&&_.current&&!_.current.contains(e.target)&&V(!1)};if(H)return document.addEventListener("mousedown",e),function(){return document.removeEventListener("mousedown",e)}},[H]);var X=function(e){if(s)if(G){var t=Array.isArray(a)?a:[],r=t.includes(e)?t.filter(function(t){return t!==e}):[].concat(p(t),[e]);s({target:{value:r}})}else s({target:{value:e}}),V(!1)};return t.jsxs("div",{className:"relative w-full",style:{overflow:"visible"},children:[m&&t.jsx("label",{className:"block text-sm font-medium mb-1 text-foreground",children:m}),t.jsxs("button",l(l({ref:_,type:"button",role:"combobox","aria-expanded":H,"aria-haspopup":"listbox","aria-label":m||"Select an option","aria-controls":H?"".concat(q,"-listbox"):void 0,onClick:function(){return!b&&V(!H)},disabled:b,className:Oe("w-full rounded-3xl border transition-colors flex items-center",{small:"h-9 text-sm",medium:"h-10"}[f],"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2","disabled:cursor-not-allowed disabled:opacity-50",n),style:l(l(l({borderColor:g?"hsl(var(--destructive))":z||H||B?"hsl(var(--primary))":"hsl(var(--input))",backgroundColor:z||H?L("hsl(var(--input))"):B?"hsl(var(--accent))":"transparent",color:"hsl(var(--foreground))",textAlign:"left",fontWeight:"normal",paddingLeft:N?"8px":"14px",paddingRight:C?"8px":"14px",paddingTop:"6px",paddingBottom:"6px"},void 0!==(null==M?void 0:M.borderRadius)?{borderRadius:M.borderRadius}:{}),Y),Object.fromEntries(Object.entries(M||{}).filter(function(e){return"borderRadius"!==c(e,1)[0]}))),onFocus:function(){return!b&&I(!0)},onBlur:function(){return I(!1)},onMouseEnter:function(){return!b&&P(!0)},onMouseLeave:function(){return P(!1)}},S),{},{children:[N,t.jsx("span",{style:{flex:1,textAlign:"left"},children:k?k(a):K||(w?"":"Select...")}),C||t.jsx(Bt,{size:16,className:Oe("transition-transform text-foreground",H&&"rotate-180")})]})),H&&t.jsx("div",{ref:F,id:"".concat(q,"-listbox"),role:"listbox","aria-label":m||"Options",className:Oe("absolute z-50 w-full mt-1 shadow-lg",T),style:l({backgroundColor:"hsl(var(--card))",boxShadow:D?"0px 4px 12px rgba(0, 0, 0, 0.4)":"0px 4px 12px rgba(0, 0, 0, 0.15)",border:D?"1px solid rgba(255, 255, 255, 0.1)":"1px solid hsl(var(--border))",borderRadius:"8px",overflow:"hidden"},O),children:o.Children.map(i,function(e){if(!o.isValidElement(e))return null;var r=G?U.includes(e.props.value):e.props.value===a,n="hsl(var(--card))";return t.jsx("div",{role:"option","aria-selected":r,onClick:function(){return X(e.props.value)},className:"cursor-pointer transition-colors focus:outline-none focus:bg-accent",style:{backgroundColor:r?"hsl(var(--accent))":n,color:"hsl(var(--foreground))",paddingLeft:"0.875rem",paddingRight:"0.875rem",paddingTop:"0.5rem",paddingBottom:"0.5rem",fontSize:"0.875rem",fontWeight:"normal",textAlign:"left"},onKeyDown:function(t){"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),X(e.props.value))},tabIndex:0,onMouseEnter:function(e){r||(e.currentTarget.style.backgroundColor="hsl(var(--accent))")},onMouseLeave:function(e){e.currentTarget.style.backgroundColor=r?"hsl(var(--accent))":n},children:e.props.children},e.props.value)})}),v&&t.jsx("div",{className:"text-xs mt-1",style:{color:g?"hsl(var(--destructive))":"hsl(var(--muted-foreground))"},children:v})]})});Gt.displayName="Select";var Ut=o.forwardRef(function(e,t){return e.className,e.value,e.children,d(e,qt),null});Ut.displayName="MenuItem";var Kt=o.forwardRef(function(e,r){var n=e.className,o=e.fullWidth,i=void 0!==o&&o;e.size;var a=e.children,s=e.style,c=d(e,Yt);return t.jsx("div",l(l({ref:r,className:Oe(i&&"w-full",n),style:l({position:"relative"},s)},c),{},{children:a}))});Kt.displayName="FormControl";var Xt=["className","checked","onChange","disabled","style","aria-label","aria-labelledby"],Zt=o.forwardRef(function(e,r){var n=e.className,i=e.checked,a=e.onChange,s=e.disabled,p=e.style,u=e["aria-label"],f=e["aria-labelledby"],m=d(e,Xt),x=c(o.useState(!1),2),g=x[0],v=x[1];return t.jsxs("label",{className:Oe("relative inline-flex items-center justify-center cursor-pointer",s&&"cursor-not-allowed opacity-50",n),style:p,children:[t.jsx("input",l({ref:r,type:"checkbox",checked:i,onChange:a,disabled:s,className:"sr-only","aria-label":u,"aria-labelledby":f},m)),t.jsx("div",{className:Oe("flex items-center justify-center transition-colors w-5 h-5 border-2 rounded",i?"bg-primary border-primary":g&&!s?"border-primary":"border-input bg-transparent",s&&"opacity-50 cursor-not-allowed"),onMouseEnter:function(){return!s&&v(!0)},onMouseLeave:function(){return v(!1)},"aria-hidden":"true",children:i&&t.jsx(Wt,{size:14,className:"text-primary-foreground"})})]})});Zt.displayName="Checkbox";var Jt=["className","style","children"],Qt=["className","style","alignItems","disablePadding","dense","children"],er=["padding","paddingTop","paddingBottom","paddingLeft","paddingRight"],tr=["className","style","children"],rr=["marginRight","minWidth","color"],nr=["className","style","primary","secondary","children"],or=["className","style","selected","onClick","disabled","children","dense","disablePadding"],ir=["className","style","children"],ar=["marginRight","minWidth"],sr=o.forwardRef(function(e,r){var n=e.className,o=e.style,i=e.children,a=d(e,Jt);return t.jsx("div",l(l({ref:r,className:Oe("w-full",n),style:l({padding:0,margin:0},o)},a),{},{children:i}))});sr.displayName="List";var lr=o.forwardRef(function(e,r){var n=e.className,o=e.style,i=e.alignItems,a=void 0===i?"flex-start":i,s=e.disablePadding,c=e.dense,p=e.children,u=d(e,Qt),f=o||{},m=f.padding,x=f.paddingTop,g=f.paddingBottom,v=f.paddingLeft,h=f.paddingRight,b=d(f,er),y="";return s||(void 0!==m||void 0!==x||void 0!==g||void 0!==v||void 0!==h)||(y=c?"py-2 px-8":"py-4 px-8"),t.jsx("div",l(l({ref:r,className:Oe("flex",y,n),style:l({alignItems:a,padding:s?0:m,paddingTop:s?0:x,paddingBottom:s?0:g,paddingLeft:s?0:v,paddingRight:s?0:h},b)},u),{},{children:p}))});lr.displayName="ListItem";var dr=o.forwardRef(function(e,r){var n=e.className,o=e.style,i=e.children,a=d(e,tr),s=o||{},c=s.marginRight,p=s.minWidth,u=s.color,f=d(s,rr);return t.jsx("div",l(l({ref:r,className:Oe("flex items-center justify-center",n),style:l(l({minWidth:void 0!==p?p:"auto",marginRight:void 0!==c?c:"1rem"},void 0!==u&&{color:u}),f)},a),{},{children:i}))});dr.displayName="ListItemIcon";var cr=o.forwardRef(function(e,r){var n=e.className,i=e.style,a=e.primary,s=e.secondary,c=e.children,p=d(e,nr);return t.jsxs("div",l(l({ref:r,className:Oe("flex flex-col",n),style:l({flex:1,margin:0},i)},p),{},{children:[a&&t.jsx("div",{className:Oe(s&&"mb-2"),children:o.isValidElement(a)?a:t.jsx(kt,{variant:"body1",color:"default",children:a})}),s&&t.jsx("div",{children:o.isValidElement(s)?s:t.jsx(kt,{variant:"body2",color:"muted",children:s})}),c]}))});cr.displayName="ListItemText";var pr=o.forwardRef(function(e,r){var n=e.className,i=e.style,a=e.selected,s=e.onClick,p=e.disabled,u=e.children,f=e.dense,m=e.disablePadding,x=d(e,or),g=c(o.useState(!1),2),v=g[0],h=g[1],b="";return m||(b=f?"py-2 px-8":"py-4 px-8"),t.jsx("div",l(l({ref:r,role:"button",tabIndex:p?-1:0,"aria-disabled":p,"aria-selected":a,className:Oe("flex cursor-pointer transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",b,a?"bg-primary text-primary-foreground hover:bg-primary/90":v?"bg-accent text-accent-foreground":"hover:bg-accent hover:text-accent-foreground",p&&"opacity-50 cursor-not-allowed",n),style:l({alignItems:"center"},i),onClick:p?void 0:s,onKeyDown:function(e){p||"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),s&&s(e))},onMouseEnter:function(){return!p&&h(!0)},onMouseLeave:function(){return h(!1)}},x),{},{children:u}))});pr.displayName="ListItemButton";var ur=o.forwardRef(function(e,r){var n=e.className,o=e.style,i=e.children,a=d(e,ir),s=o||{},c=s.marginRight,p=s.minWidth,u=d(s,ar);return t.jsx("div",l(l({ref:r,className:Oe("flex items-center justify-center",n),style:l({minWidth:void 0!==p?p:"40px",marginRight:void 0!==c?c:"1rem"},u)},a),{},{children:i}))});ur.displayName="ListItemAvatar";var fr=["className","style","expanded","onChange","children","defaultExpanded"],mr=["marginBottom","border","borderRadius","boxShadow","backgroundColor"],xr=["className","style","expandIcon","children","expanded","onChange","id"],gr=["padding","paddingTop","paddingBottom","paddingLeft","paddingRight","backgroundColor"],vr=["className","style","expanded","children","id"],hr=["backgroundColor","padding","paddingTop","paddingBottom","paddingLeft","paddingRight"],br=["padding","paddingTop","paddingBottom","paddingLeft","paddingRight"],yr=o.forwardRef(function(e,r){var n=e.className,i=e.style,a=e.expanded,s=e.onChange,p=e.children,u=e.defaultExpanded,f=d(e,fr),m=c(o.useState(u||!1),2),x=m[0],g=m[1],v=o.useId(),h=o.useRef(s),b=o.useRef(a);o.useEffect(function(){h.current=s,b.current=a},[s,a]);var y=o.useCallback(function(e){var t,r;e&&(null===(t=e.preventDefault)||void 0===t||t.call(e),null===(r=e.stopPropagation)||void 0===r||r.call(e));var n=b.current,o=!(void 0!==n?n:x);g(o),h.current&&h.current(e,o)},[x]),w=void 0!==a?a:x;null==i||i.backgroundColor;var k=i||{},N=k.marginBottom,C=k.border,j=k.borderRadius,E=k.boxShadow,R=k.backgroundColor,M=d(k,mr);return t.jsx("div",l(l({ref:r,role:"region",className:Oe("overflow-hidden rounded-2xl",void 0===N&&"mb-2",n),style:l({border:void 0!==C?C:"1px solid hsl(var(--border))",borderRadius:void 0!==j?j:16,boxShadow:void 0!==E?E:"none",backgroundColor:void 0!==R?R:"hsl(var(--card))",marginBottom:N},M)},f),{},{children:o.Children.map(p,function(e){if(o.isValidElement(e)){if(e.type===wr)return o.cloneElement(e,{expanded:w,onChange:y,id:"".concat(v,"-summary")});if(e.type===kr)return o.cloneElement(e,{expanded:w,id:"".concat(v,"-content")})}return e})}))});yr.displayName="Accordion";var wr=o.forwardRef(function(e,r){var n=e.className,o=e.style,i=e.expandIcon,a=e.children,s=e.expanded,c=e.onChange,p=e.id,u=d(e,xr),f=o||{},m=f.padding,x=f.paddingTop,g=f.paddingBottom,v=f.paddingLeft,h=f.paddingRight,b=f.backgroundColor,y=d(f,gr),w=void 0!==m||void 0!==x||void 0!==g||void 0!==v||void 0!==h?"":"py-2 px-4",k=void 0!==(null==o?void 0:o.minHeight)?o.minHeight:"auto",N=p?"".concat(p,"-content"):void 0;return t.jsxs("button",l(l({ref:r,type:"button",id:p,"aria-expanded":s,"aria-controls":N,onClick:function(e){e.preventDefault(),e.stopPropagation(),c&&c(e)},className:Oe("w-full flex items-center justify-between transition-colors focus:outline-none",w,n),style:l({border:"none",borderTop:"none",borderBottom:"none",cursor:"pointer",textAlign:"left",backgroundColor:void 0!==b?b:"transparent",minHeight:k,padding:m,paddingTop:x,paddingBottom:g,paddingLeft:v,paddingRight:h},y),onKeyDown:function(e){"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),c&&c(e))}},u),{},{children:[t.jsx("div",{style:{flex:1},children:a}),!1!==i&&(i||t.jsx(Bt,{size:20,className:"text-foreground",style:{transform:s?"rotate(180deg)":"rotate(0deg)",transition:"transform 0.2s",marginLeft:"0.5rem"}}))]}))});wr.displayName="AccordionSummary";var kr=o.forwardRef(function(e,r){var n=e.className,o=e.style,i=e.expanded,a=e.children,s=e.id,c=d(e,vr);if(!i)return null;var p=o||{},u=p.backgroundColor,f=p.padding,m=p.paddingTop,x=p.paddingBottom,g=p.paddingLeft,v=p.paddingRight,h=d(p,hr);h.padding,h.paddingTop,h.paddingBottom,h.paddingLeft,h.paddingRight;var b=void 0!==f?f:void 0!==m||void 0!==x||void 0!==g||void 0!==v?void 0:"1rem",y=l({backgroundColor:u||"transparent"},d(h,br));return void 0!==b&&(y.padding=b),void 0!==m&&(y.paddingTop=m),void 0!==x&&(y.paddingBottom=x),void 0!==g&&(y.paddingLeft=g),void 0!==v&&(y.paddingRight=v),t.jsx("div",l(l({ref:r,id:s,role:"region","aria-labelledby":s?s.replace("-content","-summary"):void 0,className:Oe("text-foreground",n),style:l(l({},y),{},{borderTop:"none"})},c),{},{children:a}))});kr.displayName="AccordionDetails";var Nr=["className","severity","variant","onClose","action","icon","iconMapping","children","style"],Cr=["padding","paddingTop","paddingBottom","paddingLeft","paddingRight"],jr=o.forwardRef(function(e,r){var n,o,i=e.className,a=e.severity,s=void 0===a?"info":a,c=e.variant,p=void 0===c?"standard":c,f=e.onClose,m=e.action,x=e.icon,g=e.iconMapping,v=e.children,h=e.style,b=d(e,Nr),y={error:Pt,warning:Vt,info:Ht,success:$t},w=x&&"object"===u(x)&&x.$$typeof,k=!w&&(x||(null==g?void 0:g[s])||y[s]||Ht),N=(null===(n=(o={error:{standard:"bg-destructive/10 text-destructive",filled:"bg-destructive text-destructive-foreground",outlined:"border-destructive text-destructive bg-transparent"},warning:{standard:"bg-warning/10 text-warning",filled:"bg-warning text-warning-foreground",outlined:"border-warning text-warning bg-transparent"},info:{standard:"bg-info/10 text-info",filled:"bg-info text-info-foreground",outlined:"border-info text-info bg-transparent"},success:{standard:"bg-success/10 text-success",filled:"bg-success text-success-foreground",outlined:"border-success text-success bg-transparent"}})[s])||void 0===n?void 0:n[p])||o.info.standard,C=h||{},j=C.padding,E=C.paddingTop,R=C.paddingBottom,M=C.paddingLeft,O=C.paddingRight,T=d(C,Cr),S=void 0!==j||void 0!==E||void 0!==R||void 0!==M||void 0!==O?"":"p-4";return t.jsxs("div",l(l({ref:r,role:"alert",className:Oe("relative flex items-center gap-3 rounded-2xl text-sm",S,"outlined"===p&&"border",N,i),style:l({padding:j,paddingTop:E,paddingBottom:R,paddingLeft:M,paddingRight:O},T)},b),{},{children:[!1!==x&&(w?t.jsx("div",{className:"flex-shrink-0 flex items-center text-current",children:x}):t.jsx(k,{size:20,className:"flex-shrink-0 text-current"})),t.jsx("div",{className:"flex-1 flex items-center",children:v}),(f||m)&&t.jsxs("div",{className:"flex items-center gap-1",children:[m,f&&t.jsx("button",{onClick:f,className:"flex items-center justify-center rounded-sm opacity-70 hover:opacity-100 transition-opacity p-2 text-current","aria-label":"Close",children:t.jsx(_t,{size:16})})]})]}))});jr.displayName="Alert";var Er=["className","value","onChange","children","centered","variant","style"],Rr=["className","label","selected","onClick","index","style","variant","id","aria-controls"],Mr=["padding","paddingLeft","paddingRight","paddingTop","paddingBottom","margin","marginLeft","marginRight","backgroundColor","color"],Or=["onClick"],Tr=["backgroundColor","color"],Sr=["onClick"],Lr=o.forwardRef(function(e,r){var n=e.className,i=e.value,a=e.onChange,s=e.children,p=e.centered,u=e.variant,f=e.style,m=d(e,Er),x=o.useRef(null),g=o.useRef(null),v=c(o.useState(function(){return void 0!==i?i:0}),2),h=v[0],b=v[1];o.useEffect(function(){void 0!==i&&b(i)},[i]);var y=o.useCallback(function(e){var t=e;void 0===i&&b(t),a&&a(null,t)},[i,a]),w=void 0!==i?i:h,k="standard"===u;o.useEffect(function(){if(k&&x.current&&g.current){var e=x.current.querySelectorAll("[data-tab-index]")[w];if(e){var t=x.current.getBoundingClientRect(),r=e.getBoundingClientRect();g.current.style.left="".concat(r.left-t.left,"px"),g.current.style.width="".concat(r.width,"px")}}},[w,s,k]);var N=o.useId();return t.jsxs("div",l(l({ref:r,className:Oe(k?"relative mb-4":"flex",!k&&p&&"justify-center",n),style:l({minHeight:"auto"},f)},m),{},{children:[t.jsx("div",{ref:x,role:"tablist","aria-label":"Tabs",className:Oe(k?"flex border-b relative w-full":"flex gap-4 px-8 py-4"),style:l(l({},k&&{borderColor:"hsl(var(--border))"}),k&&{display:"flex",width:"100%"}),children:o.Children.map(s,function(e,t){var r;if(o.isValidElement(e)&&(e.type===Dr||"Tab"===(null===(r=e.type)||void 0===r?void 0:r.displayName))){var n=Number(w)===Number(t);return o.cloneElement(e,l(l({},e.props),{},{selected:n,onClick:function(){return y(t)},index:t,"data-tab-index":t,variant:k?"standard":void 0,id:"".concat(N,"-tab-").concat(t),"aria-controls":"".concat(N,"-panel-").concat(t)}))}return e})}),k&&t.jsx("div",{ref:g,style:{position:"absolute",bottom:0,height:"2px",backgroundColor:"hsl(var(--primary))",transition:"all 0.3s cubic-bezier(0.4, 0, 0.2, 1)"}})]}))});Lr.displayName="Tabs";var Dr=o.forwardRef(function(e,r){var n=e.className,o=e.label,i=e.selected,a=e.onClick;e.index;var s=e.style,c=e.variant,p=e.id,u=e["aria-controls"],f=d(e,Rr),m="standard"===c,x=s||{},g=x.padding,v=x.paddingLeft,h=x.paddingRight,b=x.paddingTop,y=x.paddingBottom,w=x.margin,k=x.marginLeft,N=x.marginRight,C=x.backgroundColor,j=x.color,E=d(x,Mr),R=void 0!==g||void 0!==v||void 0!==h||void 0!==b||void 0!==y;if(m){var M=R?"":"px-3 py-4",O=void 0!==j?j:i?"hsl(var(--primary))":"hsl(var(--muted-foreground))",T=f.onClick,S=d(f,Or);return t.jsx("button",l(l({ref:r,type:"button",role:"tab",id:p,"aria-selected":i,"aria-controls":u,tabIndex:i?0:-1,onClick:function(e){a&&a(e),T&&T(e)},onKeyDown:function(e){"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),a&&a(e))},className:Oe("cursor-pointer transition-all duration-200 text-sm border-none bg-transparent focus:outline-none",M,"min-w-[72px] min-h-[48px] flex-1",i?"font-semibold":"font-medium",n),style:l({color:O,textTransform:"none",flex:1,minWidth:0,padding:g,paddingLeft:v,paddingRight:h,paddingTop:b,paddingBottom:y,margin:w,marginLeft:k,marginRight:N},E),onMouseEnter:function(e){i||(e.currentTarget.style.backgroundColor="hsl(var(--accent))")},onMouseLeave:function(e){e.currentTarget.style.backgroundColor="transparent"}},S),{},{children:o}))}var L=i?{color:"hsl(var(--primary-foreground))",backgroundColor:"hsl(var(--primary))"}:{color:"hsl(var(--foreground))",backgroundColor:"hsl(var(--accent))"},D=R?"":"px-4 py-3",A=void 0!==w||void 0!==k||void 0!==N?"":"mx-2",z=void 0!==C?C:L.backgroundColor,I=void 0!==j?j:L.color;E.backgroundColor,E.color;var W=d(E,Tr),B=f.onClick,P=d(f,Sr);return t.jsx("button",l(l({ref:r,type:"button",role:"tab",id:p,"aria-selected":i,"aria-controls":u,tabIndex:i?0:-1,onClick:function(e){a&&a(e),B&&B(e)},onKeyDown:function(e){"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),a&&a(e))},className:Oe("cursor-pointer transition-all duration-200 min-h-[32px] min-w-[100px] rounded-2xl text-sm border-none focus:outline-none",D,A,i?"font-semibold":"font-medium",n),style:l(l(l(l(l(l(l(l(l({color:I,backgroundColor:z},void 0!==g&&{padding:g}),void 0!==v&&{paddingLeft:v}),void 0!==h&&{paddingRight:h}),void 0!==b&&{paddingTop:b}),void 0!==y&&{paddingBottom:y}),void 0!==w&&{margin:w}),void 0!==k&&{marginLeft:k}),void 0!==N&&{marginRight:N}),W),onMouseEnter:function(e){e.currentTarget.style.backgroundColor=i?"hsl(var(--primary) / 0.9)":"hsl(var(--accent))"},onMouseLeave:function(e){e.currentTarget.style.backgroundColor=z}},P),{},{children:o}))});Dr.displayName="Tab";var Ar="top",zr="bottom",Ir="right",Wr="left",Br="auto",Pr=[Ar,zr,Ir,Wr],$r="start",Hr="end",Vr="viewport",_r="popper",Fr=Pr.reduce(function(e,t){return e.concat([t+"-"+$r,t+"-"+Hr])},[]),qr=[].concat(Pr,[Br]).reduce(function(e,t){return e.concat([t,t+"-"+$r,t+"-"+Hr])},[]),Yr=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function Gr(e){return e?(e.nodeName||"").toLowerCase():null}function Ur(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Kr(e){return e instanceof Ur(e).Element||e instanceof Element}function Xr(e){return e instanceof Ur(e).HTMLElement||e instanceof HTMLElement}function Zr(e){return"undefined"!=typeof ShadowRoot&&(e instanceof Ur(e).ShadowRoot||e instanceof ShadowRoot)}var Jr={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var r=t.styles[e]||{},n=t.attributes[e]||{},o=t.elements[e];Xr(o)&&Gr(o)&&(Object.assign(o.style,r),Object.keys(n).forEach(function(e){var t=n[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)}))})},effect:function(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(e){var n=t.elements[e],o=t.attributes[e]||{},i=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:r[e]).reduce(function(e,t){return e[t]="",e},{});Xr(n)&&Gr(n)&&(Object.assign(n.style,i),Object.keys(o).forEach(function(e){n.removeAttribute(e)}))})}},requires:["computeStyles"]};function Qr(e){return e.split("-")[0]}var en=Math.max,tn=Math.min,rn=Math.round;function nn(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function on(){return!/^((?!chrome|android).)*safari/i.test(nn())}function an(e,t,r){void 0===t&&(t=!1),void 0===r&&(r=!1);var n=e.getBoundingClientRect(),o=1,i=1;t&&Xr(e)&&(o=e.offsetWidth>0&&rn(n.width)/e.offsetWidth||1,i=e.offsetHeight>0&&rn(n.height)/e.offsetHeight||1);var a=(Kr(e)?Ur(e):window).visualViewport,s=!on()&&r,l=(n.left+(s&&a?a.offsetLeft:0))/o,d=(n.top+(s&&a?a.offsetTop:0))/i,c=n.width/o,p=n.height/i;return{width:c,height:p,top:d,right:l+c,bottom:d+p,left:l,x:l,y:d}}function sn(e){var t=an(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function ln(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&Zr(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function dn(e){return Ur(e).getComputedStyle(e)}function cn(e){return["table","td","th"].indexOf(Gr(e))>=0}function pn(e){return((Kr(e)?e.ownerDocument:e.document)||window.document).documentElement}function un(e){return"html"===Gr(e)?e:e.assignedSlot||e.parentNode||(Zr(e)?e.host:null)||pn(e)}function fn(e){return Xr(e)&&"fixed"!==dn(e).position?e.offsetParent:null}function mn(e){for(var t=Ur(e),r=fn(e);r&&cn(r)&&"static"===dn(r).position;)r=fn(r);return r&&("html"===Gr(r)||"body"===Gr(r)&&"static"===dn(r).position)?t:r||function(e){var t=/firefox/i.test(nn());if(/Trident/i.test(nn())&&Xr(e)&&"fixed"===dn(e).position)return null;var r=un(e);for(Zr(r)&&(r=r.host);Xr(r)&&["html","body"].indexOf(Gr(r))<0;){var n=dn(r);if("none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||-1!==["transform","perspective"].indexOf(n.willChange)||t&&"filter"===n.willChange||t&&n.filter&&"none"!==n.filter)return r;r=r.parentNode}return null}(e)||t}function xn(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function gn(e,t,r){return en(e,tn(t,r))}function vn(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function hn(e,t){return t.reduce(function(t,r){return t[r]=e,t},{})}var bn={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,r=e.state,n=e.name,o=e.options,i=r.elements.arrow,a=r.modifiersData.popperOffsets,s=Qr(r.placement),l=xn(s),d=[Wr,Ir].indexOf(s)>=0?"height":"width";if(i&&a){var c=function(e,t){return vn("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:hn(e,Pr))}(o.padding,r),p=sn(i),u="y"===l?Ar:Wr,f="y"===l?zr:Ir,m=r.rects.reference[d]+r.rects.reference[l]-a[l]-r.rects.popper[d],x=a[l]-r.rects.reference[l],g=mn(i),v=g?"y"===l?g.clientHeight||0:g.clientWidth||0:0,h=m/2-x/2,b=c[u],y=v-p[d]-c[f],w=v/2-p[d]/2+h,k=gn(b,w,y),N=l;r.modifiersData[n]=((t={})[N]=k,t.centerOffset=k-w,t)}},effect:function(e){var t=e.state,r=e.options.element,n=void 0===r?"[data-popper-arrow]":r;null!=n&&("string"!=typeof n||(n=t.elements.popper.querySelector(n)))&&ln(t.elements.popper,n)&&(t.elements.arrow=n)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function yn(e){return e.split("-")[1]}var wn={top:"auto",right:"auto",bottom:"auto",left:"auto"};function kn(e){var t,r=e.popper,n=e.popperRect,o=e.placement,i=e.variation,a=e.offsets,s=e.position,l=e.gpuAcceleration,d=e.adaptive,c=e.roundOffsets,p=e.isFixed,u=a.x,f=void 0===u?0:u,m=a.y,x=void 0===m?0:m,g="function"==typeof c?c({x:f,y:x}):{x:f,y:x};f=g.x,x=g.y;var v=a.hasOwnProperty("x"),h=a.hasOwnProperty("y"),b=Wr,y=Ar,w=window;if(d){var k=mn(r),N="clientHeight",C="clientWidth";if(k===Ur(r)&&"static"!==dn(k=pn(r)).position&&"absolute"===s&&(N="scrollHeight",C="scrollWidth"),o===Ar||(o===Wr||o===Ir)&&i===Hr)y=zr,x-=(p&&k===w&&w.visualViewport?w.visualViewport.height:k[N])-n.height,x*=l?1:-1;if(o===Wr||(o===Ar||o===zr)&&i===Hr)b=Ir,f-=(p&&k===w&&w.visualViewport?w.visualViewport.width:k[C])-n.width,f*=l?1:-1}var j,E=Object.assign({position:s},d&&wn),R=!0===c?function(e,t){var r=e.x,n=e.y,o=t.devicePixelRatio||1;return{x:rn(r*o)/o||0,y:rn(n*o)/o||0}}({x:f,y:x},Ur(r)):{x:f,y:x};return f=R.x,x=R.y,l?Object.assign({},E,((j={})[y]=h?"0":"",j[b]=v?"0":"",j.transform=(w.devicePixelRatio||1)<=1?"translate("+f+"px, "+x+"px)":"translate3d("+f+"px, "+x+"px, 0)",j)):Object.assign({},E,((t={})[y]=h?x+"px":"",t[b]=v?f+"px":"",t.transform="",t))}var Nn={passive:!0};var Cn={left:"right",right:"left",bottom:"top",top:"bottom"};function jn(e){return e.replace(/left|right|bottom|top/g,function(e){return Cn[e]})}var En={start:"end",end:"start"};function Rn(e){return e.replace(/start|end/g,function(e){return En[e]})}function Mn(e){var t=Ur(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function On(e){return an(pn(e)).left+Mn(e).scrollLeft}function Tn(e){var t=dn(e),r=t.overflow,n=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+o+n)}function Sn(e){return["html","body","#document"].indexOf(Gr(e))>=0?e.ownerDocument.body:Xr(e)&&Tn(e)?e:Sn(un(e))}function Ln(e,t){var r;void 0===t&&(t=[]);var n=Sn(e),o=n===(null==(r=e.ownerDocument)?void 0:r.body),i=Ur(n),a=o?[i].concat(i.visualViewport||[],Tn(n)?n:[]):n,s=t.concat(a);return o?s:s.concat(Ln(un(a)))}function Dn(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function An(e,t,r){return t===Vr?Dn(function(e,t){var r=Ur(e),n=pn(e),o=r.visualViewport,i=n.clientWidth,a=n.clientHeight,s=0,l=0;if(o){i=o.width,a=o.height;var d=on();(d||!d&&"fixed"===t)&&(s=o.offsetLeft,l=o.offsetTop)}return{width:i,height:a,x:s+On(e),y:l}}(e,r)):Kr(t)?function(e,t){var r=an(e,!1,"fixed"===t);return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}(t,r):Dn(function(e){var t,r=pn(e),n=Mn(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=en(r.scrollWidth,r.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=en(r.scrollHeight,r.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-n.scrollLeft+On(e),l=-n.scrollTop;return"rtl"===dn(o||r).direction&&(s+=en(r.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:s,y:l}}(pn(e)))}function zn(e,t,r,n){var o="clippingParents"===t?function(e){var t=Ln(un(e)),r=["absolute","fixed"].indexOf(dn(e).position)>=0&&Xr(e)?mn(e):e;return Kr(r)?t.filter(function(e){return Kr(e)&&ln(e,r)&&"body"!==Gr(e)}):[]}(e):[].concat(t),i=[].concat(o,[r]),a=i[0],s=i.reduce(function(t,r){var o=An(e,r,n);return t.top=en(o.top,t.top),t.right=tn(o.right,t.right),t.bottom=tn(o.bottom,t.bottom),t.left=en(o.left,t.left),t},An(e,a,n));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function In(e){var t,r=e.reference,n=e.element,o=e.placement,i=o?Qr(o):null,a=o?yn(o):null,s=r.x+r.width/2-n.width/2,l=r.y+r.height/2-n.height/2;switch(i){case Ar:t={x:s,y:r.y-n.height};break;case zr:t={x:s,y:r.y+r.height};break;case Ir:t={x:r.x+r.width,y:l};break;case Wr:t={x:r.x-n.width,y:l};break;default:t={x:r.x,y:r.y}}var d=i?xn(i):null;if(null!=d){var c="y"===d?"height":"width";switch(a){case $r:t[d]=t[d]-(r[c]/2-n[c]/2);break;case Hr:t[d]=t[d]+(r[c]/2-n[c]/2)}}return t}function Wn(e,t){void 0===t&&(t={});var r=t,n=r.placement,o=void 0===n?e.placement:n,i=r.strategy,a=void 0===i?e.strategy:i,s=r.boundary,l=void 0===s?"clippingParents":s,d=r.rootBoundary,c=void 0===d?Vr:d,p=r.elementContext,u=void 0===p?_r:p,f=r.altBoundary,m=void 0!==f&&f,x=r.padding,g=void 0===x?0:x,v=vn("number"!=typeof g?g:hn(g,Pr)),h=u===_r?"reference":_r,b=e.rects.popper,y=e.elements[m?h:u],w=zn(Kr(y)?y:y.contextElement||pn(e.elements.popper),l,c,a),k=an(e.elements.reference),N=In({reference:k,element:b,placement:o}),C=Dn(Object.assign({},b,N)),j=u===_r?C:k,E={top:w.top-j.top+v.top,bottom:j.bottom-w.bottom+v.bottom,left:w.left-j.left+v.left,right:j.right-w.right+v.right},R=e.modifiersData.offset;if(u===_r&&R){var M=R[o];Object.keys(E).forEach(function(e){var t=[Ir,zr].indexOf(e)>=0?1:-1,r=[Ar,zr].indexOf(e)>=0?"y":"x";E[e]+=M[r]*t})}return E}function Bn(e,t){void 0===t&&(t={});var r=t,n=r.placement,o=r.boundary,i=r.rootBoundary,a=r.padding,s=r.flipVariations,l=r.allowedAutoPlacements,d=void 0===l?qr:l,c=yn(n),p=c?s?Fr:Fr.filter(function(e){return yn(e)===c}):Pr,u=p.filter(function(e){return d.indexOf(e)>=0});0===u.length&&(u=p);var f=u.reduce(function(t,r){return t[r]=Wn(e,{placement:r,boundary:o,rootBoundary:i,padding:a})[Qr(r)],t},{});return Object.keys(f).sort(function(e,t){return f[e]-f[t]})}var Pn={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var o=r.mainAxis,i=void 0===o||o,a=r.altAxis,s=void 0===a||a,l=r.fallbackPlacements,d=r.padding,c=r.boundary,p=r.rootBoundary,u=r.altBoundary,f=r.flipVariations,m=void 0===f||f,x=r.allowedAutoPlacements,g=t.options.placement,v=Qr(g),h=l||(v===g||!m?[jn(g)]:function(e){if(Qr(e)===Br)return[];var t=jn(e);return[Rn(e),t,Rn(t)]}(g)),b=[g].concat(h).reduce(function(e,r){return e.concat(Qr(r)===Br?Bn(t,{placement:r,boundary:c,rootBoundary:p,padding:d,flipVariations:m,allowedAutoPlacements:x}):r)},[]),y=t.rects.reference,w=t.rects.popper,k=new Map,N=!0,C=b[0],j=0;j<b.length;j++){var E=b[j],R=Qr(E),M=yn(E)===$r,O=[Ar,zr].indexOf(R)>=0,T=O?"width":"height",S=Wn(t,{placement:E,boundary:c,rootBoundary:p,altBoundary:u,padding:d}),L=O?M?Ir:Wr:M?zr:Ar;y[T]>w[T]&&(L=jn(L));var D=jn(L),A=[];if(i&&A.push(S[R]<=0),s&&A.push(S[L]<=0,S[D]<=0),A.every(function(e){return e})){C=E,N=!1;break}k.set(E,A)}if(N)for(var z=function(e){var t=b.find(function(t){var r=k.get(t);if(r)return r.slice(0,e).every(function(e){return e})});if(t)return C=t,"break"},I=m?3:1;I>0;I--){if("break"===z(I))break}t.placement!==C&&(t.modifiersData[n]._skip=!0,t.placement=C,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function $n(e,t,r){return void 0===r&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function Hn(e){return[Ar,Ir,zr,Wr].some(function(t){return e[t]>=0})}var Vn={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,r=e.options,n=e.name,o=r.offset,i=void 0===o?[0,0]:o,a=qr.reduce(function(e,r){return e[r]=function(e,t,r){var n=Qr(e),o=[Wr,Ar].indexOf(n)>=0?-1:1,i="function"==typeof r?r(Object.assign({},t,{placement:e})):r,a=i[0],s=i[1];return a=a||0,s=(s||0)*o,[Wr,Ir].indexOf(n)>=0?{x:s,y:a}:{x:a,y:s}}(r,t.rects,i),e},{}),s=a[t.placement],l=s.x,d=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=d),t.modifiersData[n]=a}};var _n={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,r=e.options,n=e.name,o=r.mainAxis,i=void 0===o||o,a=r.altAxis,s=void 0!==a&&a,l=r.boundary,d=r.rootBoundary,c=r.altBoundary,p=r.padding,u=r.tether,f=void 0===u||u,m=r.tetherOffset,x=void 0===m?0:m,g=Wn(t,{boundary:l,rootBoundary:d,padding:p,altBoundary:c}),v=Qr(t.placement),h=yn(t.placement),b=!h,y=xn(v),w="x"===y?"y":"x",k=t.modifiersData.popperOffsets,N=t.rects.reference,C=t.rects.popper,j="function"==typeof x?x(Object.assign({},t.rects,{placement:t.placement})):x,E="number"==typeof j?{mainAxis:j,altAxis:j}:Object.assign({mainAxis:0,altAxis:0},j),R=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,M={x:0,y:0};if(k){if(i){var O,T="y"===y?Ar:Wr,S="y"===y?zr:Ir,L="y"===y?"height":"width",D=k[y],A=D+g[T],z=D-g[S],I=f?-C[L]/2:0,W=h===$r?N[L]:C[L],B=h===$r?-C[L]:-N[L],P=t.elements.arrow,$=f&&P?sn(P):{width:0,height:0},H=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},V=H[T],_=H[S],F=gn(0,N[L],$[L]),q=b?N[L]/2-I-F-V-E.mainAxis:W-F-V-E.mainAxis,Y=b?-N[L]/2+I+F+_+E.mainAxis:B+F+_+E.mainAxis,G=t.elements.arrow&&mn(t.elements.arrow),U=G?"y"===y?G.clientTop||0:G.clientLeft||0:0,K=null!=(O=null==R?void 0:R[y])?O:0,X=D+Y-K,Z=gn(f?tn(A,D+q-K-U):A,D,f?en(z,X):z);k[y]=Z,M[y]=Z-D}if(s){var J,Q="x"===y?Ar:Wr,ee="x"===y?zr:Ir,te=k[w],re="y"===w?"height":"width",ne=te+g[Q],oe=te-g[ee],ie=-1!==[Ar,Wr].indexOf(v),ae=null!=(J=null==R?void 0:R[w])?J:0,se=ie?ne:te-N[re]-C[re]-ae+E.altAxis,le=ie?te+N[re]+C[re]-ae-E.altAxis:oe,de=f&&ie?function(e,t,r){var n=gn(e,t,r);return n>r?r:n}(se,te,le):gn(f?se:ne,te,f?le:oe);k[w]=de,M[w]=de-te}t.modifiersData[n]=M}},requiresIfExists:["offset"]};function Fn(e,t,r){void 0===r&&(r=!1);var n,o,i=Xr(t),a=Xr(t)&&function(e){var t=e.getBoundingClientRect(),r=rn(t.width)/e.offsetWidth||1,n=rn(t.height)/e.offsetHeight||1;return 1!==r||1!==n}(t),s=pn(t),l=an(e,a,r),d={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(i||!i&&!r)&&(("body"!==Gr(t)||Tn(s))&&(d=(n=t)!==Ur(n)&&Xr(n)?{scrollLeft:(o=n).scrollLeft,scrollTop:o.scrollTop}:Mn(n)),Xr(t)?((c=an(t,!0)).x+=t.clientLeft,c.y+=t.clientTop):s&&(c.x=On(s))),{x:l.left+d.scrollLeft-c.x,y:l.top+d.scrollTop-c.y,width:l.width,height:l.height}}function qn(e){var t=new Map,r=new Set,n=[];function o(e){r.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach(function(e){if(!r.has(e)){var n=t.get(e);n&&o(n)}}),n.push(e)}return e.forEach(function(e){t.set(e.name,e)}),e.forEach(function(e){r.has(e.name)||o(e)}),n}var Yn={placement:"bottom",modifiers:[],strategy:"absolute"};function Gn(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some(function(e){return!(e&&"function"==typeof e.getBoundingClientRect)})}function Un(e){void 0===e&&(e={});var t=e,r=t.defaultModifiers,n=void 0===r?[]:r,o=t.defaultOptions,i=void 0===o?Yn:o;return function(e,t,r){void 0===r&&(r=i);var o,a,s={placement:"bottom",orderedModifiers:[],options:Object.assign({},Yn,i),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},l=[],d=!1,c={state:s,setOptions:function(r){var o="function"==typeof r?r(s.options):r;p(),s.options=Object.assign({},i,s.options,o),s.scrollParents={reference:Kr(e)?Ln(e):e.contextElement?Ln(e.contextElement):[],popper:Ln(t)};var a,d,u=function(e){var t=qn(e);return Yr.reduce(function(e,r){return e.concat(t.filter(function(e){return e.phase===r}))},[])}((a=[].concat(n,s.options.modifiers),d=a.reduce(function(e,t){var r=e[t.name];return e[t.name]=r?Object.assign({},r,t,{options:Object.assign({},r.options,t.options),data:Object.assign({},r.data,t.data)}):t,e},{}),Object.keys(d).map(function(e){return d[e]})));return s.orderedModifiers=u.filter(function(e){return e.enabled}),s.orderedModifiers.forEach(function(e){var t=e.name,r=e.options,n=void 0===r?{}:r,o=e.effect;if("function"==typeof o){var i=o({state:s,name:t,instance:c,options:n}),a=function(){};l.push(i||a)}}),c.update()},forceUpdate:function(){if(!d){var e=s.elements,t=e.reference,r=e.popper;if(Gn(t,r)){s.rects={reference:Fn(t,mn(r),"fixed"===s.options.strategy),popper:sn(r)},s.reset=!1,s.placement=s.options.placement,s.orderedModifiers.forEach(function(e){return s.modifiersData[e.name]=Object.assign({},e.data)});for(var n=0;n<s.orderedModifiers.length;n++)if(!0!==s.reset){var o=s.orderedModifiers[n],i=o.fn,a=o.options,l=void 0===a?{}:a,p=o.name;"function"==typeof i&&(s=i({state:s,options:l,name:p,instance:c})||s)}else s.reset=!1,n=-1}}},update:(o=function(){return new Promise(function(e){c.forceUpdate(),e(s)})},function(){return a||(a=new Promise(function(e){Promise.resolve().then(function(){a=void 0,e(o())})})),a}),destroy:function(){p(),d=!0}};if(!Gn(e,t))return c;function p(){l.forEach(function(e){return e()}),l=[]}return c.setOptions(r).then(function(e){!d&&r.onFirstUpdate&&r.onFirstUpdate(e)}),c}}var Kn=Un({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,r=e.instance,n=e.options,o=n.scroll,i=void 0===o||o,a=n.resize,s=void 0===a||a,l=Ur(t.elements.popper),d=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&d.forEach(function(e){e.addEventListener("scroll",r.update,Nn)}),s&&l.addEventListener("resize",r.update,Nn),function(){i&&d.forEach(function(e){e.removeEventListener("scroll",r.update,Nn)}),s&&l.removeEventListener("resize",r.update,Nn)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,r=e.name;t.modifiersData[r]=In({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,r=e.options,n=r.gpuAcceleration,o=void 0===n||n,i=r.adaptive,a=void 0===i||i,s=r.roundOffsets,l=void 0===s||s,d={placement:Qr(t.placement),variation:yn(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,kn(Object.assign({},d,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,kn(Object.assign({},d,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},Jr,Vn,Pn,_n,bn,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,r=e.name,n=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=Wn(t,{elementContext:"reference"}),s=Wn(t,{altBoundary:!0}),l=$n(a,n),d=$n(s,o,i),c=Hn(l),p=Hn(d);t.modifiersData[r]={referenceClippingOffsets:l,popperEscapeOffsets:d,isReferenceHidden:c,hasPopperEscaped:p},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":p})}}]}),Xn="tippy-content",Zn="tippy-arrow",Jn="tippy-svg-arrow",Qn={passive:!0,capture:!0},eo=function(){return document.body};function to(e,t,r){if(Array.isArray(e)){var n=e[t];return null==n?Array.isArray(r)?r[t]:r:n}return e}function ro(e,t){var r={}.toString.call(e);return 0===r.indexOf("[object")&&r.indexOf(t+"]")>-1}function no(e,t){return"function"==typeof e?e.apply(void 0,t):e}function oo(e,t){return 0===t?e:function(n){clearTimeout(r),r=setTimeout(function(){e(n)},t)};var r}function io(e){return[].concat(e)}function ao(e,t){-1===e.indexOf(t)&&e.push(t)}function so(e){return[].slice.call(e)}function lo(e){return Object.keys(e).reduce(function(t,r){return void 0!==e[r]&&(t[r]=e[r]),t},{})}function co(){return document.createElement("div")}function po(e){return["Element","Fragment"].some(function(t){return ro(e,t)})}function uo(e){return po(e)?[e]:function(e){return ro(e,"NodeList")}(e)?so(e):Array.isArray(e)?e:so(document.querySelectorAll(e))}function fo(e,t){e.forEach(function(e){e&&(e.style.transitionDuration=t+"ms")})}function mo(e,t){e.forEach(function(e){e&&e.setAttribute("data-state",t)})}function xo(e,t,r){var n=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(t){e[n](t,r)})}function go(e,t){for(var r=t;r;){var n;if(e.contains(r))return!0;r=null==r.getRootNode||null==(n=r.getRootNode())?void 0:n.host}return!1}var vo={isTouch:!1},ho=0;function bo(){vo.isTouch||(vo.isTouch=!0,window.performance&&document.addEventListener("mousemove",yo))}function yo(){var e=performance.now();e-ho<20&&(vo.isTouch=!1,document.removeEventListener("mousemove",yo)),ho=e}function wo(){var e,t=document.activeElement;if((e=t)&&e._tippy&&e._tippy.reference===e){var r=t._tippy;t.blur&&!r.state.isVisible&&t.blur()}}var ko,No=!!("undefined"!=typeof window&&"undefined"!=typeof document)&&!!window.msCrypto;function Co(e){return[e+"() was called on a"+("destroy"===e?"n already-":" ")+"destroyed instance. This is a no-op but","indicates a potential memory leak."].join(" ")}function jo(e){return e.replace(/[ \t]{2,}/g," ").replace(/^[ \t]*/gm,"").trim()}function Eo(e){return jo("\n %ctippy.js\n\n %c"+jo(e)+"\n\n %c👷 This is a development-only message. It will be removed in production.\n ")}function Ro(e){return[Eo(e),"color: #00C584; font-size: 1.3em; font-weight: bold;","line-height: 1.5","color: #a6a095;"]}function Mo(e,t){var r;e&&!ko.has(t)&&(ko.add(t),(r=console).warn.apply(r,Ro(t)))}function Oo(e,t){var r;e&&!ko.has(t)&&(ko.add(t),(r=console).error.apply(r,Ro(t)))}"production"!==process.env.NODE_ENV&&(ko=new Set);var To={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},So=Object.assign({appendTo:eo,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},To,{allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999}),Lo=Object.keys(So);function Do(e){var t=(e.plugins||[]).reduce(function(t,r){var n,o=r.name,i=r.defaultValue;o&&(t[o]=void 0!==e[o]?e[o]:null!=(n=So[o])?n:i);return t},{});return Object.assign({},e,t)}function Ao(e,t){var r=Object.assign({},t,{content:no(t.content,[e])},t.ignoreAttributes?{}:function(e,t){return(t?Object.keys(Do(Object.assign({},So,{plugins:t}))):Lo).reduce(function(t,r){var n=(e.getAttribute("data-tippy-"+r)||"").trim();if(!n)return t;if("content"===r)t[r]=n;else try{t[r]=JSON.parse(n)}catch(e){t[r]=n}return t},{})}(e,t.plugins));return r.aria=Object.assign({},So.aria,r.aria),r.aria={expanded:"auto"===r.aria.expanded?t.interactive:r.aria.expanded,content:"auto"===r.aria.content?t.interactive?null:"describedby":r.aria.content},r}function zo(e,t){void 0===e&&(e={}),void 0===t&&(t=[]),Object.keys(e).forEach(function(e){var r,n,o=function(e,t){var r=Object.assign({},e);return t.forEach(function(e){delete r[e]}),r}(So,Object.keys(To)),i=(r=o,n=e,!{}.hasOwnProperty.call(r,n));i&&(i=0===t.filter(function(t){return t.name===e}).length),Mo(i,["`"+e+"`","is not a valid prop. You may have spelled it incorrectly, or if it's","a plugin, forgot to pass it in an array as props.plugins.","\n\n","All props: https://atomiks.github.io/tippyjs/v6/all-props/\n","Plugins: https://atomiks.github.io/tippyjs/v6/plugins/"].join(" "))})}function Io(e,t){e.innerHTML=t}function Wo(e){var t=co();return!0===e?t.className=Zn:(t.className=Jn,po(e)?t.appendChild(e):Io(t,e)),t}function Bo(e,t){po(t.content)?(Io(e,""),e.appendChild(t.content)):"function"!=typeof t.content&&(t.allowHTML?Io(e,t.content):e.textContent=t.content)}function Po(e){var t=e.firstElementChild,r=so(t.children);return{box:t,content:r.find(function(e){return e.classList.contains(Xn)}),arrow:r.find(function(e){return e.classList.contains(Zn)||e.classList.contains(Jn)}),backdrop:r.find(function(e){return e.classList.contains("tippy-backdrop")})}}function $o(e){var t=co(),r=co();r.className="tippy-box",r.setAttribute("data-state","hidden"),r.setAttribute("tabindex","-1");var n=co();function o(r,n){var o=Po(t),i=o.box,a=o.content,s=o.arrow;n.theme?i.setAttribute("data-theme",n.theme):i.removeAttribute("data-theme"),"string"==typeof n.animation?i.setAttribute("data-animation",n.animation):i.removeAttribute("data-animation"),n.inertia?i.setAttribute("data-inertia",""):i.removeAttribute("data-inertia"),i.style.maxWidth="number"==typeof n.maxWidth?n.maxWidth+"px":n.maxWidth,n.role?i.setAttribute("role",n.role):i.removeAttribute("role"),r.content===n.content&&r.allowHTML===n.allowHTML||Bo(a,e.props),n.arrow?s?r.arrow!==n.arrow&&(i.removeChild(s),i.appendChild(Wo(n.arrow))):i.appendChild(Wo(n.arrow)):s&&i.removeChild(s)}return n.className=Xn,n.setAttribute("data-state","hidden"),Bo(n,e.props),t.appendChild(r),r.appendChild(n),o(e.props,e.props),{popper:t,onUpdate:o}}$o.$$tippy=!0;var Ho=1,Vo=[],_o=[];function Fo(e,t){var r,n,o,i,a,s,l,d,c=Ao(e,Object.assign({},So,Do(lo(t)))),p=!1,u=!1,f=!1,m=!1,x=[],g=oo(G,c.interactiveDebounce),v=Ho++,h=(d=c.plugins).filter(function(e,t){return d.indexOf(e)===t}),b={id:v,reference:e,popper:co(),popperInstance:null,props:c,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:h,clearDelayTimeouts:function(){clearTimeout(r),clearTimeout(n),cancelAnimationFrame(o)},setProps:function(t){"production"!==process.env.NODE_ENV&&Mo(b.state.isDestroyed,Co("setProps"));if(b.state.isDestroyed)return;D("onBeforeUpdate",[b,t]),q();var r=b.props,n=Ao(e,Object.assign({},r,lo(t),{ignoreAttributes:!0}));b.props=n,F(),r.interactiveDebounce!==n.interactiveDebounce&&(I(),g=oo(G,n.interactiveDebounce));r.triggerTarget&&!n.triggerTarget?io(r.triggerTarget).forEach(function(e){e.removeAttribute("aria-expanded")}):n.triggerTarget&&e.removeAttribute("aria-expanded");z(),L(),k&&k(r,n);b.popperInstance&&(Z(),Q().forEach(function(e){requestAnimationFrame(e._tippy.popperInstance.forceUpdate)}));D("onAfterUpdate",[b,t])},setContent:function(e){b.setProps({content:e})},show:function(){"production"!==process.env.NODE_ENV&&Mo(b.state.isDestroyed,Co("show"));var e=b.state.isVisible,t=b.state.isDestroyed,r=!b.state.isEnabled,n=vo.isTouch&&!b.props.touch,o=to(b.props.duration,0,So.duration);if(e||t||r||n)return;if(M().hasAttribute("disabled"))return;if(D("onShow",[b],!1),!1===b.props.onShow(b))return;b.state.isVisible=!0,R()&&(w.style.visibility="visible");L(),$(),b.state.isMounted||(w.style.transition="none");if(R()){var i=T();fo([i.box,i.content],0)}s=function(){var e;if(b.state.isVisible&&!m){if(m=!0,w.offsetHeight,w.style.transition=b.props.moveTransition,R()&&b.props.animation){var t=T(),r=t.box,n=t.content;fo([r,n],o),mo([r,n],"visible")}A(),z(),ao(_o,b),null==(e=b.popperInstance)||e.forceUpdate(),D("onMount",[b]),b.props.animation&&R()&&function(e,t){V(e,t)}(o,function(){b.state.isShown=!0,D("onShown",[b])})}},function(){var e,t=b.props.appendTo,r=M();e=b.props.interactive&&t===eo||"parent"===t?r.parentNode:no(t,[r]);e.contains(w)||e.appendChild(w);b.state.isMounted=!0,Z(),"production"!==process.env.NODE_ENV&&Mo(b.props.interactive&&t===So.appendTo&&r.nextElementSibling!==w,["Interactive tippy element may not be accessible via keyboard","navigation because it is not directly after the reference element","in the DOM source order.","\n\n","Using a wrapper <div> or <span> tag around the reference element","solves this by creating a new parentNode context.","\n\n","Specifying `appendTo: document.body` silences this warning, but it","assumes you are using a focus management solution to handle","keyboard navigation.","\n\n","See: https://atomiks.github.io/tippyjs/v6/accessibility/#interactivity"].join(" "))}()},hide:function(){"production"!==process.env.NODE_ENV&&Mo(b.state.isDestroyed,Co("hide"));var e=!b.state.isVisible,t=b.state.isDestroyed,r=!b.state.isEnabled,n=to(b.props.duration,1,So.duration);if(e||t||r)return;if(D("onHide",[b],!1),!1===b.props.onHide(b))return;b.state.isVisible=!1,b.state.isShown=!1,m=!1,p=!1,R()&&(w.style.visibility="hidden");if(I(),H(),L(!0),R()){var o=T(),i=o.box,a=o.content;b.props.animation&&(fo([i,a],n),mo([i,a],"hidden"))}A(),z(),b.props.animation?R()&&function(e,t){V(e,function(){!b.state.isVisible&&w.parentNode&&w.parentNode.contains(w)&&t()})}(n,b.unmount):b.unmount()},hideWithInteractivity:function(e){"production"!==process.env.NODE_ENV&&Mo(b.state.isDestroyed,Co("hideWithInteractivity"));O().addEventListener("mousemove",g),ao(Vo,g),g(e)},enable:function(){b.state.isEnabled=!0},disable:function(){b.hide(),b.state.isEnabled=!1},unmount:function(){"production"!==process.env.NODE_ENV&&Mo(b.state.isDestroyed,Co("unmount"));b.state.isVisible&&b.hide();if(!b.state.isMounted)return;J(),Q().forEach(function(e){e._tippy.unmount()}),w.parentNode&&w.parentNode.removeChild(w);_o=_o.filter(function(e){return e!==b}),b.state.isMounted=!1,D("onHidden",[b])},destroy:function(){"production"!==process.env.NODE_ENV&&Mo(b.state.isDestroyed,Co("destroy"));if(b.state.isDestroyed)return;b.clearDelayTimeouts(),b.unmount(),q(),delete e._tippy,b.state.isDestroyed=!0,D("onDestroy",[b])}};if(!c.render)return"production"!==process.env.NODE_ENV&&Oo(!0,"render() function has not been supplied."),b;var y=c.render(b),w=y.popper,k=y.onUpdate;w.setAttribute("data-tippy-root",""),w.id="tippy-"+b.id,b.popper=w,e._tippy=b,w._tippy=b;var N=h.map(function(e){return e.fn(b)}),C=e.hasAttribute("aria-expanded");return F(),z(),L(),D("onCreate",[b]),c.showOnCreate&&ee(),w.addEventListener("mouseenter",function(){b.props.interactive&&b.state.isVisible&&b.clearDelayTimeouts()}),w.addEventListener("mouseleave",function(){b.props.interactive&&b.props.trigger.indexOf("mouseenter")>=0&&O().addEventListener("mousemove",g)}),b;function j(){var e=b.props.touch;return Array.isArray(e)?e:[e,0]}function E(){return"hold"===j()[0]}function R(){var e;return!(null==(e=b.props.render)||!e.$$tippy)}function M(){return l||e}function O(){var e,t,r=M().parentNode;return r?null!=(t=io(r)[0])&&null!=(e=t.ownerDocument)&&e.body?t.ownerDocument:document:document}function T(){return Po(w)}function S(e){return b.state.isMounted&&!b.state.isVisible||vo.isTouch||i&&"focus"===i.type?0:to(b.props.delay,e?0:1,So.delay)}function L(e){void 0===e&&(e=!1),w.style.pointerEvents=b.props.interactive&&!e?"":"none",w.style.zIndex=""+b.props.zIndex}function D(e,t,r){var n;(void 0===r&&(r=!0),N.forEach(function(r){r[e]&&r[e].apply(r,t)}),r)&&(n=b.props)[e].apply(n,t)}function A(){var t=b.props.aria;if(t.content){var r="aria-"+t.content,n=w.id;io(b.props.triggerTarget||e).forEach(function(e){var t=e.getAttribute(r);if(b.state.isVisible)e.setAttribute(r,t?t+" "+n:n);else{var o=t&&t.replace(n,"").trim();o?e.setAttribute(r,o):e.removeAttribute(r)}})}}function z(){!C&&b.props.aria.expanded&&io(b.props.triggerTarget||e).forEach(function(e){b.props.interactive?e.setAttribute("aria-expanded",b.state.isVisible&&e===M()?"true":"false"):e.removeAttribute("aria-expanded")})}function I(){O().removeEventListener("mousemove",g),Vo=Vo.filter(function(e){return e!==g})}function W(t){if(!vo.isTouch||!f&&"mousedown"!==t.type){var r=t.composedPath&&t.composedPath()[0]||t.target;if(!b.props.interactive||!go(w,r)){if(io(b.props.triggerTarget||e).some(function(e){return go(e,r)})){if(vo.isTouch)return;if(b.state.isVisible&&b.props.trigger.indexOf("click")>=0)return}else D("onClickOutside",[b,t]);!0===b.props.hideOnClick&&(b.clearDelayTimeouts(),b.hide(),u=!0,setTimeout(function(){u=!1}),b.state.isMounted||H())}}}function B(){f=!0}function P(){f=!1}function $(){var e=O();e.addEventListener("mousedown",W,!0),e.addEventListener("touchend",W,Qn),e.addEventListener("touchstart",P,Qn),e.addEventListener("touchmove",B,Qn)}function H(){var e=O();e.removeEventListener("mousedown",W,!0),e.removeEventListener("touchend",W,Qn),e.removeEventListener("touchstart",P,Qn),e.removeEventListener("touchmove",B,Qn)}function V(e,t){var r=T().box;function n(e){e.target===r&&(xo(r,"remove",n),t())}if(0===e)return t();xo(r,"remove",a),xo(r,"add",n),a=n}function _(t,r,n){void 0===n&&(n=!1),io(b.props.triggerTarget||e).forEach(function(e){e.addEventListener(t,r,n),x.push({node:e,eventType:t,handler:r,options:n})})}function F(){var e;E()&&(_("touchstart",Y,{passive:!0}),_("touchend",U,{passive:!0})),(e=b.props.trigger,e.split(/\s+/).filter(Boolean)).forEach(function(e){if("manual"!==e)switch(_(e,Y),e){case"mouseenter":_("mouseleave",U);break;case"focus":_(No?"focusout":"blur",K);break;case"focusin":_("focusout",K)}})}function q(){x.forEach(function(e){var t=e.node,r=e.eventType,n=e.handler,o=e.options;t.removeEventListener(r,n,o)}),x=[]}function Y(e){var t,r=!1;if(b.state.isEnabled&&!X(e)&&!u){var n="focus"===(null==(t=i)?void 0:t.type);i=e,l=e.currentTarget,z(),!b.state.isVisible&&ro(e,"MouseEvent")&&Vo.forEach(function(t){return t(e)}),"click"===e.type&&(b.props.trigger.indexOf("mouseenter")<0||p)&&!1!==b.props.hideOnClick&&b.state.isVisible?r=!0:ee(e),"click"===e.type&&(p=!r),r&&!n&&te(e)}}function G(e){var t=e.target,r=M().contains(t)||w.contains(t);if("mousemove"!==e.type||!r){var n=Q().concat(w).map(function(e){var t,r=null==(t=e._tippy.popperInstance)?void 0:t.state;return r?{popperRect:e.getBoundingClientRect(),popperState:r,props:c}:null}).filter(Boolean);(function(e,t){var r=t.clientX,n=t.clientY;return e.every(function(e){var t=e.popperRect,o=e.popperState,i=e.props.interactiveBorder,a=o.placement.split("-")[0],s=o.modifiersData.offset;if(!s)return!0;var l="bottom"===a?s.top.y:0,d="top"===a?s.bottom.y:0,c="right"===a?s.left.x:0,p="left"===a?s.right.x:0,u=t.top-n+l>i,f=n-t.bottom-d>i,m=t.left-r+c>i,x=r-t.right-p>i;return u||f||m||x})})(n,e)&&(I(),te(e))}}function U(e){X(e)||b.props.trigger.indexOf("click")>=0&&p||(b.props.interactive?b.hideWithInteractivity(e):te(e))}function K(e){b.props.trigger.indexOf("focusin")<0&&e.target!==M()||b.props.interactive&&e.relatedTarget&&w.contains(e.relatedTarget)||te(e)}function X(e){return!!vo.isTouch&&E()!==e.type.indexOf("touch")>=0}function Z(){J();var t=b.props,r=t.popperOptions,n=t.placement,o=t.offset,i=t.getReferenceClientRect,a=t.moveTransition,l=R()?Po(w).arrow:null,d=i?{getBoundingClientRect:i,contextElement:i.contextElement||M()}:e,c={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t=e.state;if(R()){var r=T().box;["placement","reference-hidden","escaped"].forEach(function(e){"placement"===e?r.setAttribute("data-placement",t.placement):t.attributes.popper["data-popper-"+e]?r.setAttribute("data-"+e,""):r.removeAttribute("data-"+e)}),t.attributes.popper={}}}},p=[{name:"offset",options:{offset:o}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!a}},c];R()&&l&&p.push({name:"arrow",options:{element:l,padding:3}}),p.push.apply(p,(null==r?void 0:r.modifiers)||[]),b.popperInstance=Kn(d,w,Object.assign({},r,{placement:n,onFirstUpdate:s,modifiers:p}))}function J(){b.popperInstance&&(b.popperInstance.destroy(),b.popperInstance=null)}function Q(){return so(w.querySelectorAll("[data-tippy-root]"))}function ee(e){b.clearDelayTimeouts(),e&&D("onTrigger",[b,e]),$();var t=S(!0),n=j(),o=n[0],i=n[1];vo.isTouch&&"hold"===o&&i&&(t=i),t?r=setTimeout(function(){b.show()},t):b.show()}function te(e){if(b.clearDelayTimeouts(),D("onUntrigger",[b,e]),b.state.isVisible){if(!(b.props.trigger.indexOf("mouseenter")>=0&&b.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(e.type)>=0&&p)){var t=S(!1);t?n=setTimeout(function(){b.state.isVisible&&b.hide()},t):o=requestAnimationFrame(function(){b.hide()})}}else H()}}function qo(e,t){void 0===t&&(t={});var r=So.plugins.concat(t.plugins||[]);"production"!==process.env.NODE_ENV&&(!function(e){var t=!e,r="[object Object]"===Object.prototype.toString.call(e)&&!e.addEventListener;Oo(t,["tippy() was passed","`"+String(e)+"`","as its targets (first) argument. Valid types are: String, Element,","Element[], or NodeList."].join(" ")),Oo(r,["tippy() was passed a plain object which is not supported as an argument","for virtual positioning. Use props.getReferenceClientRect instead."].join(" "))}(e),zo(t,r)),document.addEventListener("touchstart",bo,Qn),window.addEventListener("blur",wo);var n=Object.assign({},t,{plugins:r}),o=uo(e);if("production"!==process.env.NODE_ENV){var i=po(n.content),a=o.length>1;Mo(i&&a,["tippy() was passed an Element as the `content` prop, but more than","one tippy instance was created by this invocation. This means the","content element will only be appended to the last tippy instance.","\n\n","Instead, pass the .innerHTML of the element, or use a function that","returns a cloned version of the element instead.","\n\n","1) content: element.innerHTML\n","2) content: () => element.cloneNode(true)"].join(" "))}var s=o.reduce(function(e,t){var r=t&&Fo(t,n);return r&&e.push(r),e},[]);return po(e)?s[0]:s}qo.defaultProps=So,qo.setDefaultProps=function(e){"production"!==process.env.NODE_ENV&&zo(e,[]),Object.keys(e).forEach(function(t){So[t]=e[t]})},qo.currentInput=vo,Object.assign({},Jr,{effect:function(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow)}}),qo.setDefaultProps({render:$o});var Yo=["title","children","placement","arrow","delay","className","style"],Go=o.forwardRef(function(e,t){var r=e.title,n=e.children,i=e.placement,a=void 0===i?"top":i,s=e.arrow,c=void 0===s||s,p=e.delay,u=void 0===p?[100,0]:p,f=e.className,m=e.style,x=d(e,Yo),g=o.useRef(null),v=o.useRef(null);o.useImperativeHandle(t,function(){return g.current}),o.useEffect(function(){if(g.current){if(r){if(!document.getElementById("mui-tooltip-styles")){var e=document.createElement("style");e.id="mui-tooltip-styles",e.textContent="\n .tippy-box[data-theme~='material'] {\n font-size: 0.75rem;\n font-weight: 400;\n padding: 2px 6px;\n line-height: 1.4;\n }\n .tippy-box[data-theme~='material'] .tippy-content {\n padding: 0;\n }\n",document.head.appendChild(e)}return v.current=qo(g.current,{content:r,placement:a,arrow:!!c&&'<svg width="16" height="6" xmlns="http://www.w3.org/2000/svg"><path d="M0 6s1.796-.013 4.67-3.615C5.851.9 6.93.006 8 0c1.07-.006 2.148.887 3.343 2.385C14.233 6.005 16 6 16 6H0z"></svg>',delay:u,theme:"material",animation:"fade",duration:[200,150],popperOptions:{modifiers:[{name:"offset",options:{offset:[0,8]}}]}}),function(){v.current&&(v.current.destroy(),v.current=null)}}v.current&&(v.current.destroy(),v.current=null)}},[r,a,c,u]),o.useEffect(function(){v.current&&r&&v.current.setContent(r)},[r]);var h=o.Children.only(n);return o.isValidElement(h)?o.cloneElement(h,l({ref:function(e){g.current=e,"function"==typeof h.ref?h.ref(e):h.ref&&(h.ref.current=e)},className:f?"".concat(h.props.className||""," ").concat(f).trim():h.props.className,style:l(l({},h.props.style),m)},x)):n});Go.displayName="Tooltip";var Uo,Ko,Xo=["options","getOptionLabel","value","onChange","inputValue","onInputChange","filterOptions","renderInput","className","style"],Zo=o.forwardRef(function(e,r){var n,i,a,s,p=e.options,u=void 0===p?[]:p,f=e.getOptionLabel,m=e.value,x=e.onChange,g=e.inputValue,v=e.onInputChange,h=e.filterOptions,b=e.renderInput,y=e.className,w=e.style,k=d(e,Xo),N=c(o.useState(!1),2),C=N[0],j=N[1],E=c(o.useState(u),2),R=E[0],M=E[1],O=o.useRef(null),T=o.useRef(null);o.useImperativeHandle(r,function(){return O.current}),o.useEffect(function(){var e="string"==typeof g?g:g?String(g):"";if(h){var t=h(u,{inputValue:e});M(t)}else if(e){var r=u.filter(function(t){var r=f?f(t):(null==t?void 0:t.name)||(null==t?void 0:t.label)||String(t);return String(r).toLowerCase().includes(e.toLowerCase())});M(r)}else M(u)},[u,g,h,f]);var S=function(e){x&&x(null,e);var t=f?f(e):(null==e?void 0:e.name)||(null==e?void 0:e.label)||String(e),r="string"==typeof t?t:String(t||"");v&&v(null,r),j(!1)},L=function(e){T.current&&!T.current.contains(e.target)&&O.current&&!O.current.contains(e.target)&&j(!1)};o.useEffect(function(){if(C)return document.addEventListener("mousedown",L),function(){document.removeEventListener("mousedown",L)}},[C]);var D=m?f?f(m):(null==m?void 0:m.name)||(null==m?void 0:m.label)||String(m):"",A=l({ref:O,value:null!=g?"string"==typeof g?g:String(g):"string"==typeof D?D:String(D||""),onChange:function(e){var t,r="";void 0!==(null==e||null===(t=e.target)||void 0===t?void 0:t.value)?r=String(e.target.value):"string"==typeof e?r=e:e&&(r=String(e)),v&&v(e,r),C||j(!0)},onFocus:function(){return j(!0)}},k);return b?t.jsxs("div",{ref:r,className:Oe("relative",y),style:w,children:[b(l(l({},A),{},{InputProps:l(l({},A.InputProps||{}),{},{endAdornment:t.jsx("div",{className:"absolute right-2 top-1/2 -translate-y-1/2 cursor-pointer",onClick:function(e){e.stopPropagation(),e.preventDefault(),j(!C)},onMouseDown:function(e){e.stopPropagation(),e.preventDefault()},children:t.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",style:{transform:C?"rotate(180deg)":"rotate(0deg)",transition:"transform 0.2s"},children:t.jsx("path",{d:"M5 7.5L10 12.5L15 7.5",stroke:"hsl(var(--muted-foreground))",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})})})})),C&&R.length>0&&t.jsx("div",{ref:T,className:"absolute z-50 w-full mt-1 rounded-2xl border shadow-lg overflow-auto",style:{maxHeight:"200px",minHeight:"160px",backgroundColor:"hsl(var(--card))",borderColor:"hsl(var(--border))",top:"100%"},children:R.map(function(e,r){var n=f?f(e):(null==e?void 0:e.name)||(null==e?void 0:e.label)||String(e),o=m&&(f?f(m)===n:m===e||(null==m?void 0:m.id)&&(null==e?void 0:e.id)&&m.id===e.id);return t.jsx("div",{className:"px-3 py-2 cursor-pointer hover:bg-accent transition-colors",style:{backgroundColor:o?"hsl(var(--accent))":"transparent",color:"hsl(var(--foreground))"},onClick:function(){return S(e)},onMouseEnter:function(e){o||(e.currentTarget.style.backgroundColor="hsl(var(--accent))")},onMouseLeave:function(e){e.currentTarget.style.backgroundColor=o?"hsl(var(--accent))":"transparent"},children:n},r)})})]}):t.jsxs("div",{ref:r,className:Oe("relative",y),style:w,children:[t.jsx(Ot,l(l({},A),{},{style:l(l({},A.style),{},{height:(null===(n=A.style)||void 0===n?void 0:n.height)||"40px"}),InputProps:l(l({},A.InputProps),{},{style:l(l({},null===(i=A.InputProps)||void 0===i?void 0:i.style),{},{backgroundColor:(null===(a=A.InputProps)||void 0===a||null===(a=a.style)||void 0===a?void 0:a.backgroundColor)||"transparent",height:(null===(s=A.InputProps)||void 0===s||null===(s=s.style)||void 0===s?void 0:s.height)||"40px"}),endAdornment:t.jsx("div",{className:"absolute right-2 top-1/2 -translate-y-1/2 cursor-pointer",onClick:function(e){e.stopPropagation(),e.preventDefault(),j(!C)},onMouseDown:function(e){e.stopPropagation(),e.preventDefault()},children:t.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",style:{transform:C?"rotate(180deg)":"rotate(0deg)",transition:"transform 0.2s"},children:t.jsx("path",{d:"M5 7.5L10 12.5L15 7.5",stroke:"hsl(var(--muted-foreground))",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})})})})),C&&R.length>0&&t.jsx("div",{ref:T,className:"absolute z-50 w-full mt-1 rounded-2xl border shadow-lg overflow-auto",style:{maxHeight:"200px",minHeight:"160px",backgroundColor:"hsl(var(--card))",borderColor:"hsl(var(--border))",top:"100%"},children:R.map(function(e,r){var n=f?f(e):(null==e?void 0:e.name)||(null==e?void 0:e.label)||String(e),o=m&&(f?f(m)===n:m===e||(null==m?void 0:m.id)&&(null==e?void 0:e.id)&&m.id===e.id);return t.jsx("div",{className:"px-3 py-2 cursor-pointer hover:bg-accent transition-colors",style:{backgroundColor:o?"hsl(var(--accent))":"transparent",color:"hsl(var(--foreground))"},onClick:function(){return S(e)},onMouseEnter:function(e){o||(e.currentTarget.style.backgroundColor="hsl(var(--accent))")},onMouseLeave:function(e){e.currentTarget.style.backgroundColor=o?"hsl(var(--accent))":"transparent"},children:n},r)})})]})});Zo.displayName="Autocomplete",Uo=void 0,Ko=function(){var e=6e4,t=36e5,r="millisecond",n="second",o="minute",i="hour",a="day",s="week",l="month",d="quarter",c="year",p="date",f="Invalid Date",m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,x=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,g={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],r=e%100;return"["+e+(t[(r-20)%10]||t[r]||t[0])+"]"}},v=function(e,t,r){var n=String(e);return!n||n.length>=t?e:""+Array(t+1-n.length).join(r)+e},h={s:v,z:function(e){var t=-e.utcOffset(),r=Math.abs(t),n=Math.floor(r/60),o=r%60;return(t<=0?"+":"-")+v(n,2,"0")+":"+v(o,2,"0")},m:function e(t,r){if(t.date()<r.date())return-e(r,t);var n=12*(r.year()-t.year())+(r.month()-t.month()),o=t.clone().add(n,l),i=r-o<0,a=t.clone().add(n+(i?-1:1),l);return+(-(n+(r-o)/(i?o-a:a-o))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:l,y:c,w:s,d:a,D:p,h:i,m:o,s:n,ms:r,Q:d}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},b="en",y={};y[b]=g;var w="$isDayjsObject",k=function(e){return e instanceof E||!(!e||!e[w])},N=function e(t,r,n){var o;if(!t)return b;if("string"==typeof t){var i=t.toLowerCase();y[i]&&(o=i),r&&(y[i]=r,o=i);var a=t.split("-");if(!o&&a.length>1)return e(a[0])}else{var s=t.name;y[s]=t,o=s}return!n&&o&&(b=o),o||!n&&b},C=function(e,t){if(k(e))return e.clone();var r="object"==u(t)?t:{};return r.date=e,r.args=arguments,new E(r)},j=h;j.l=N,j.i=k,j.w=function(e,t){return C(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var E=function(){function u(e){this.$L=N(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[w]=!0}var g=u.prototype;return g.parse=function(e){this.$d=function(e){var t=e.date,r=e.utc;if(null===t)return new Date(NaN);if(j.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var n=t.match(m);if(n){var o=n[2]-1||0,i=(n[7]||"0").substring(0,3);return r?new Date(Date.UTC(n[1],o,n[3]||1,n[4]||0,n[5]||0,n[6]||0,i)):new Date(n[1],o,n[3]||1,n[4]||0,n[5]||0,n[6]||0,i)}}return new Date(t)}(e),this.init()},g.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},g.$utils=function(){return j},g.isValid=function(){return!(this.$d.toString()===f)},g.isSame=function(e,t){var r=C(e);return this.startOf(t)<=r&&r<=this.endOf(t)},g.isAfter=function(e,t){return C(e)<this.startOf(t)},g.isBefore=function(e,t){return this.endOf(t)<C(e)},g.$g=function(e,t,r){return j.u(e)?this[t]:this.set(r,e)},g.unix=function(){return Math.floor(this.valueOf()/1e3)},g.valueOf=function(){return this.$d.getTime()},g.startOf=function(e,t){var r=this,d=!!j.u(t)||t,u=j.p(e),f=function(e,t){var n=j.w(r.$u?Date.UTC(r.$y,t,e):new Date(r.$y,t,e),r);return d?n:n.endOf(a)},m=function(e,t){return j.w(r.toDate()[e].apply(r.toDate("s"),(d?[0,0,0,0]:[23,59,59,999]).slice(t)),r)},x=this.$W,g=this.$M,v=this.$D,h="set"+(this.$u?"UTC":"");switch(u){case c:return d?f(1,0):f(31,11);case l:return d?f(1,g):f(0,g+1);case s:var b=this.$locale().weekStart||0,y=(x<b?x+7:x)-b;return f(d?v-y:v+(6-y),g);case a:case p:return m(h+"Hours",0);case i:return m(h+"Minutes",1);case o:return m(h+"Seconds",2);case n:return m(h+"Milliseconds",3);default:return this.clone()}},g.endOf=function(e){return this.startOf(e,!1)},g.$set=function(e,t){var s,d=j.p(e),u="set"+(this.$u?"UTC":""),f=(s={},s[a]=u+"Date",s[p]=u+"Date",s[l]=u+"Month",s[c]=u+"FullYear",s[i]=u+"Hours",s[o]=u+"Minutes",s[n]=u+"Seconds",s[r]=u+"Milliseconds",s)[d],m=d===a?this.$D+(t-this.$W):t;if(d===l||d===c){var x=this.clone().set(p,1);x.$d[f](m),x.init(),this.$d=x.set(p,Math.min(this.$D,x.daysInMonth())).$d}else f&&this.$d[f](m);return this.init(),this},g.set=function(e,t){return this.clone().$set(e,t)},g.get=function(e){return this[j.p(e)]()},g.add=function(r,d){var p,u=this;r=Number(r);var f=j.p(d),m=function(e){var t=C(u);return j.w(t.date(t.date()+Math.round(e*r)),u)};if(f===l)return this.set(l,this.$M+r);if(f===c)return this.set(c,this.$y+r);if(f===a)return m(1);if(f===s)return m(7);var x=(p={},p[o]=e,p[i]=t,p[n]=1e3,p)[f]||1,g=this.$d.getTime()+r*x;return j.w(g,this)},g.subtract=function(e,t){return this.add(-1*e,t)},g.format=function(e){var t=this,r=this.$locale();if(!this.isValid())return r.invalidDate||f;var n=e||"YYYY-MM-DDTHH:mm:ssZ",o=j.z(this),i=this.$H,a=this.$m,s=this.$M,l=r.weekdays,d=r.months,c=r.meridiem,p=function(e,r,o,i){return e&&(e[r]||e(t,n))||o[r].slice(0,i)},u=function(e){return j.s(i%12||12,e,"0")},m=c||function(e,t,r){var n=e<12?"AM":"PM";return r?n.toLowerCase():n};return n.replace(x,function(e,n){return n||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return j.s(t.$y,4,"0");case"M":return s+1;case"MM":return j.s(s+1,2,"0");case"MMM":return p(r.monthsShort,s,d,3);case"MMMM":return p(d,s);case"D":return t.$D;case"DD":return j.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return p(r.weekdaysMin,t.$W,l,2);case"ddd":return p(r.weekdaysShort,t.$W,l,3);case"dddd":return l[t.$W];case"H":return String(i);case"HH":return j.s(i,2,"0");case"h":return u(1);case"hh":return u(2);case"a":return m(i,a,!0);case"A":return m(i,a,!1);case"m":return String(a);case"mm":return j.s(a,2,"0");case"s":return String(t.$s);case"ss":return j.s(t.$s,2,"0");case"SSS":return j.s(t.$ms,3,"0");case"Z":return o}return null}(e)||o.replace(":","")})},g.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},g.diff=function(r,p,u){var f,m=this,x=j.p(p),g=C(r),v=(g.utcOffset()-this.utcOffset())*e,h=this-g,b=function(){return j.m(m,g)};switch(x){case c:f=b()/12;break;case l:f=b();break;case d:f=b()/3;break;case s:f=(h-v)/6048e5;break;case a:f=(h-v)/864e5;break;case i:f=h/t;break;case o:f=h/e;break;case n:f=h/1e3;break;default:f=h}return u?f:j.a(f)},g.daysInMonth=function(){return this.endOf(l).$D},g.$locale=function(){return y[this.$L]},g.locale=function(e,t){if(!e)return this.$L;var r=this.clone(),n=N(e,t,!0);return n&&(r.$L=n),r},g.clone=function(){return j.w(this.$d,this)},g.toDate=function(){return new Date(this.valueOf())},g.toJSON=function(){return this.isValid()?this.toISOString():null},g.toISOString=function(){return this.$d.toISOString()},g.toString=function(){return this.$d.toUTCString()},u}(),R=E.prototype;return C.prototype=R,[["$ms",r],["$s",n],["$m",o],["$H",i],["$W",a],["$M",l],["$y",c],["$D",p]].forEach(function(e){R[e[1]]=function(t){return this.$g(t,e[0],e[1])}}),C.extend=function(e,t){return e.$i||(e(t,E,C),e.$i=!0),C},C.locale=N,C.isDayjs=k,C.unix=function(e){return C(1e3*e)},C.en=y[b],C.Ls=y,C.p={},C},"object"==("undefined"==typeof exports?"undefined":u(exports))&&"undefined"!=typeof module?module.exports=Ko():"function"==typeof define&&define.amd?define(Ko):(Uo="undefined"!=typeof globalThis?globalThis:Uo||self).dayjs=Ko();var Jo=["value","onChange","clearable","slotProps","className","style","onOpenChange"],Qo=Object.freeze({__proto__:null}),ei=o.forwardRef(function(e,r){var n,i,a,s=e.value,p=e.onChange,u=e.clearable,f=void 0!==u&&u,m=e.slotProps,x=e.className,g=e.style,v=e.onOpenChange;d(e,Jo);var h=c(o.useState(!1),2),b=h[0],y=h[1],w=c(o.useState(s?Qo(s):null),2),k=w[0],N=w[1],C=o.useRef(null),j=o.useRef(null),E=o.useRef(null),R=o.useRef(null),M=c(o.useState("month"),2),O=M[0],T=M[1],S=c(o.useState(!1),2),L=S[0],D=S[1];o.useImperativeHandle(r,function(){return j.current}),o.useEffect(function(){N(s?Qo(s):null)},[s]);var A=o.useCallback(function(e){C.current&&!C.current.contains(e.target)&&j.current&&!j.current.contains(e.target)&&(y(!1),D(!1),v&&v(!1))},[v]);o.useEffect(function(){if(b)return document.addEventListener("mousedown",A),function(){document.removeEventListener("mousedown",A)}},[b,A]);var z=(null==m?void 0:m.textField)||{},I=k?k.format("YYYY-MM-DD"):"";o.useEffect(function(){L&&R.current&&E.current&&setTimeout(function(){var e=R.current,t=E.current;if(e&&t){var r=e.offsetTop-t.clientHeight/2+e.clientHeight/2;t.scrollTop=r}},0)},[L]);var W=function(){for(var e=k||Qo(),t=Qo(e).startOf("month"),r=Qo(e).endOf("month"),n=Qo(t).startOf("week"),o=Qo(r).endOf("week"),i=[],a=n;a.isBefore(o)||a.isSame(o);)i.push(Qo(a)),a=Qo(a).add(1,"day");return i}(),B=k?k.month():Qo().month(),P=k?k.year():Qo().year(),$=function(e){var t;N(t=e),p&&p(t),y(!1),v&&v(!1)};return t.jsxs("div",{ref:C,className:Oe("relative",x),style:g,children:[t.jsx(Ot,l(l({},z),{},{ref:j,value:I||"",onClick:function(){var e=!b;y(e),v&&v(e)},readOnly:!0,placeholder:z.placeholder||"MM/DD/YYYY",style:l(l({},z.style),{},{fontSize:"0.875rem",height:(null===(n=z.style)||void 0===n?void 0:n.height)||"40px"}),InputProps:l(l({},z.InputProps),{},{style:l(l({},null===(i=z.InputProps)||void 0===i?void 0:i.style),{},{backgroundColor:null===(a=z.InputProps)||void 0===a||null===(a=a.style)||void 0===a?void 0:a.backgroundColor}),endAdornment:t.jsxs("div",{className:"flex items-center gap-1",children:[f&&k&&t.jsx("div",{className:"cursor-pointer",onClick:function(e){e.stopPropagation(),N(null),p&&p(null)},style:{display:"flex",alignItems:"center",padding:"4px"},children:t.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:t.jsx("path",{d:"M12 4L4 12M4 4L12 12",stroke:"hsl(var(--muted-foreground))",strokeWidth:"2",strokeLinecap:"round"})})}),t.jsx("div",{className:"cursor-pointer",style:{padding:"4px"},onClick:function(e){e.stopPropagation();var t=!b;y(t),v&&v(t)},children:t.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",children:t.jsx("path",{d:"M6 2V4M14 2V4M3 8H17M4 4H16C16.5523 4 17 4.44772 17 5V16C17 16.5523 16.5523 17 16 17H4C3.44772 17 3 16.5523 3 16V5C3 4.44772 3.44772 4 4 4Z",stroke:"hsl(var(--muted-foreground))",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})})]})})})),b&&t.jsxs("div",{className:"absolute z-50 mt-1 rounded-2xl border shadow-lg p-4",style:{backgroundColor:"hsl(var(--card))",borderColor:"hsl(var(--border))",top:"100%",minWidth:"300px"},children:[t.jsxs("div",{className:"flex items-center justify-between mb-4",style:{color:"hsl(var(--foreground))"},children:[t.jsx("button",{type:"button",onClick:function(){var e;"year"===O?N(k?Qo(k).subtract(10,"year"):Qo().subtract(10,"year")):(e=k?Qo(k).subtract(1,"month"):Qo().subtract(1,"month"),N(e))},className:"p-1 rounded-lg hover:bg-action-hover transition-colors",style:{color:"hsl(var(--foreground))"},children:t.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",children:t.jsx("path",{d:"M12 15L7 10L12 5",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}),t.jsxs("div",{className:"relative",children:[t.jsxs("button",{type:"button",onClick:function(){"month"===O?D(!L):T("month")},className:"font-semibold px-2 py-1 rounded-lg hover:bg-action-hover transition-colors flex items-center gap-1 text-foreground",children:["month"===O?"".concat(Qo().month(B).format("MMMM")," ").concat(P):"".concat(P),"month"===O&&t.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",style:{transform:L?"rotate(180deg)":"rotate(0deg)",transition:"transform 0.2s"},children:t.jsx("path",{d:"M4 6L8 10L12 6",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})]}),L&&"month"===O&&t.jsx("div",{ref:E,className:"absolute z-10 mt-1 rounded-lg border shadow-lg max-h-48 overflow-auto",style:{backgroundColor:"hsl(var(--card))",borderColor:"hsl(var(--border))",top:"100%",left:0,minWidth:"120px"},children:Array.from({length:201},function(e,r){var n=Qo().year()-100+r,o=n===P;return t.jsx("button",{ref:o?R:null,type:"button",onClick:function(){var e=k?Qo(k).year(n):Qo().year(n).month(B);N(e),D(!1)},className:"w-full px-3 py-1.5 text-sm text-left hover:bg-action-hover transition-colors",style:{backgroundColor:o?"hsl(var(--accent))":"transparent",color:"hsl(var(--foreground))"},onMouseEnter:function(e){o||(e.currentTarget.style.backgroundColor="hsl(var(--accent))")},onMouseLeave:function(e){e.currentTarget.style.backgroundColor=o?"hsl(var(--accent))":"transparent"},children:n},n)})})]}),t.jsx("button",{type:"button",onClick:function(){var e;"year"===O?N(k?Qo(k).add(10,"year"):Qo().add(10,"year")):(e=k?Qo(k).add(1,"month"):Qo().add(1,"month"),N(e))},className:"p-1 rounded-lg hover:bg-action-hover transition-colors",style:{color:"hsl(var(--foreground))"},children:t.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",children:t.jsx("path",{d:"M8 5L13 10L8 15",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})})]}),"month"===O?t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"grid grid-cols-7 gap-1 mb-2",children:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"].map(function(e){return t.jsx("div",{className:"text-center text-xs font-medium py-1 text-muted-foreground",children:e},e)})}),t.jsx("div",{className:"grid grid-cols-7 gap-1",children:W.map(function(e,r){var n=e.month()===B,o=e.isSame(Qo(),"day"),i=k&&e.isSame(k,"day");return t.jsx("button",{type:"button",onClick:function(){return $(e)},className:Oe("aspect-square rounded-lg text-sm transition-colors",!n&&"opacity-30",i&&"font-semibold"),style:{backgroundColor:i?"hsl(var(--primary))":o?"hsl(var(--accent))":"transparent",color:i?"hsl(var(--primary-foreground))":"hsl(var(--foreground))",border:o&&!i?"1px solid hsl(var(--primary))":"none"},onMouseEnter:function(e){i||(e.currentTarget.style.backgroundColor="hsl(var(--accent))")},onMouseLeave:function(e){e.currentTarget.style.backgroundColor=i?"hsl(var(--primary))":o?"hsl(var(--accent))":"transparent"},children:e.date()},r)})})]}):t.jsx("div",{className:"grid grid-cols-4 gap-2",children:Array.from({length:12},function(e,r){var n=r,o=n===Qo().month()&&P===Qo().year(),i=k&&k.month()===n&&k.year()===P;return t.jsx("button",{type:"button",onClick:function(){var e=k?Qo(k).month(n):Qo().month(n).year(P);N(e),T("month")},className:"p-2 rounded-lg text-sm transition-colors",style:{backgroundColor:i?"hsl(var(--primary))":o?"hsl(var(--accent))":"transparent",color:i?"hsl(var(--primary-foreground))":"hsl(var(--foreground))"},onMouseEnter:function(e){i||(e.currentTarget.style.backgroundColor="hsl(var(--accent))")},onMouseLeave:function(e){e.currentTarget.style.backgroundColor=i?"hsl(var(--primary))":o?"hsl(var(--accent))":"transparent"},children:Qo().month(n).format("MMM")},n)})})]})]})});ei.displayName="DatePicker";var ti=["anchor","open","onClose","onOpenChange","children","className","sx","PaperProps","transitionDuration","keepMounted","variant","ModalProps","SlideProps","BackdropProps"],ri=o.forwardRef(function(e,r){var n,i,a,s,p=e.anchor,u=void 0===p?"left":p,f=e.open,m=void 0!==f&&f,x=e.onClose,g=e.onOpenChange,v=e.children,h=e.className,b=e.sx,y=e.PaperProps,w=e.transitionDuration,k=void 0===w?300:w,N=e.keepMounted,C=void 0!==N&&N,j=e.variant,E=void 0===j?"temporary":j;e.ModalProps,e.SlideProps;var R=e.BackdropProps,M=d(e,ti),O=o.useRef(null);o.useImperativeHandle(r,function(){return O.current});o.useEffect(function(){g&&g(m)},[m,g]),o.useEffect(function(){if(m){var e=function(e){"Escape"===e.key&&x&&(x(e,"escapeKeyDown"),g&&g(!1))};return document.addEventListener("keydown",e),function(){document.removeEventListener("keydown",e)}}},[m,x]);var T=o.useMemo(function(){if(!b)return{rootStyles:{},paperStyles:{}};var e="function"==typeof b?b({}):b,t={},r={};return Object.keys(e).forEach(function(n){"& .MuiDrawer-paper"===n||"&.MuiDrawer-paper"===n?Object.assign(r,e[n]):n.startsWith("&")||(t[n]=e[n])}),{rootStyles:t,paperStyles:r}},[b]),S=T.rootStyles,L=T.paperStyles,D=o.useMemo(function(){var e=null==y?void 0:y.sx;return e?"function"==typeof e?e({}):e:{}},[y]),A=function(){var e={position:"fixed",zIndex:parseInt(getComputedStyle(document.documentElement).getPropertyValue("--z-index-drawer")||"1200",10),transition:"transform ".concat(k,"ms cubic-bezier(0.4, 0, 0.2, 1)")};switch(u){case"left":return l(l({},e),{},{top:0,left:0,bottom:0,transform:m?"translateX(0)":"translateX(-100%)"});case"right":return l(l({},e),{},{top:0,right:0,bottom:0,transform:m?"translateX(0)":"translateX(100%)"});case"top":return l(l({},e),{},{top:0,left:0,right:0,width:"100%",transform:m?"translateY(0)":"translateY(-100%)"});case"bottom":return l(l({},e),{},{bottom:0,left:0,right:0,width:"100%",transform:m?"translateY(0)":"translateY(100%)"});default:return e}}();if(!m&&!C&&"permanent"!==E)return null;var z="permanent"===E,I="temporary"===E||"persistent"===E,W=z||m||C;return t.jsxs(t.Fragment,{children:[I&&W&&t.jsx("div",l({className:"fixed inset-0 bg-black/50",style:l({zIndex:parseInt(getComputedStyle(document.documentElement).getPropertyValue("--z-index-drawer")||"1200",10)-1,opacity:m?1:0,transition:"opacity ".concat(k,"ms cubic-bezier(0.4, 0, 0.2, 1)"),pointerEvents:m?"auto":"none"},null==R?void 0:R.style),onClick:function(e){"temporary"===E&&e.target===e.currentTarget&&x&&(x(e,"backdropClick"),g&&g(!1))},"aria-hidden":"true"},Object.fromEntries(Object.entries(R||{}).filter(function(e){return"style"!==c(e,1)[0]})))),t.jsx("div",l(l({ref:O,className:Oe("MuiDrawer-root","fixed","left"===u||"right"===u?"h-full":"w-full","top"===u||"bottom"===u?"h-auto":"w-auto",!m&&"pointer-events-none",h),style:l(l(l({},A),S),{},{display:W?"block":"none",transform:z?"translateX(0)":A.transform},M.style),role:"presentation"},Object.fromEntries(Object.entries(M).filter(function(e){var t=c(e,1)[0];return"style"!==t&&"BackdropProps"!==t}))),{},{children:t.jsx("div",{className:Oe("MuiDrawer-paper","MuiPaper-root","left"===u||"right"===u?"h-full":"","w-full","left"===u||"right"===u||"top"===u||"bottom"===u?"overflow-y-auto":"",null==y?void 0:y.className),style:l(l(l(l({backgroundColor:"hsl(var(--card))",boxShadow:void 0!==L.boxShadow?L.boxShadow:void 0!==D.boxShadow?D.boxShadow:void 0!==(null==y||null===(n=y.style)||void 0===n?void 0:n.boxShadow)?y.style.boxShadow:m?"0px 8px 10px -5px rgba(0,0,0,0.2), 0px 16px 24px 2px rgba(0,0,0,0.14), 0px 6px 30px 5px rgba(0,0,0,0.12)":"none"},"left"===u||"right"===u?{height:"100%",width:(null==y||null===(i=y.style)||void 0===i?void 0:i.width)||L.width||D.width||"300px",minWidth:(null==y||null===(a=y.style)||void 0===a?void 0:a.minWidth)||L.minWidth||D.minWidth||"300px",maxWidth:(null==y||null===(s=y.style)||void 0===s?void 0:s.maxWidth)||L.maxWidth||D.maxWidth||"90vw"}:{width:"100%"}),L),D),null==y?void 0:y.style),children:v})}))]})});ri.displayName="Drawer";var ni=["control","label","labelPlacement","disabled","value","className","sx"],oi=o.forwardRef(function(e,r){var n=e.control,i=e.label,a=e.labelPlacement,s=void 0===a?"end":a,c=e.disabled,p=void 0!==c&&c,u=e.value,f=e.className,m=e.sx,x=d(e,ni),g=o.useMemo(function(){return m?"function"==typeof m?m({}):m:{}},[m]),v="start"===s,h="top"===s,b="bottom"===s,y=o.useMemo(function(){return void 0!==u&&o.isValidElement(n)?o.cloneElement(n,l(l({},n.props),{},{value:u})):n},[n,u]);return t.jsxs("label",l(l({ref:r,className:Oe("inline-flex items-center cursor-pointer",p&&"opacity-50 cursor-not-allowed",h&&"flex-col items-start",b&&"flex-col-reverse items-start",v&&"flex-row-reverse items-center",!h&&!b&&!v&&"items-center",f),style:g},x),{},{children:[t.jsx("span",{className:Oe("inline-flex items-center justify-center shrink-0",h&&"mb-1",b&&"mt-1",v&&"ml-2",!v&&!h&&!b&&"mr-2"),style:{minWidth:"20px",minHeight:"20px"},children:y}),i&&t.jsx("span",{className:Oe("text-sm text-foreground",p&&"text-muted-foreground opacity-50",v&&"mr-2"),children:i})]}))});oi.displayName="FormControlLabel";var ii=["children","component","className","sx","style","required","disabled","error","focused"],ai=o.forwardRef(function(e,r){var n=e.children,i=e.component,a=void 0===i?"label":i,s=e.className,c=e.sx,p=e.style,u=e.required,f=void 0!==u&&u,m=e.disabled,x=void 0!==m&&m,g=e.error,v=void 0!==g&&g,h=e.focused,b=void 0!==h&&h,y=d(e,ii),w=o.useMemo(function(){return c?"function"==typeof c?c({}):c:{}},[c]),k="legend"===a?"legend":"label";return t.jsxs(k,l(l({ref:r,className:Oe("block text-sm font-medium mb-1",v?"text-destructive":b?"text-primary":"text-foreground",x&&"opacity-50 cursor-not-allowed",s),style:l(l({},w),p)},y),{},{children:[n,f&&t.jsx("span",{className:"ml-1 text-destructive",children:"*"})]}))});ai.displayName="FormLabel";var si=["children","className","sx","style","row"],li=o.forwardRef(function(e,r){var n=e.children,i=e.className,a=e.sx,s=e.style,c=e.row,p=void 0!==c&&c,u=d(e,si),f=o.useMemo(function(){return a?"function"==typeof a?a({}):a:{}},[a]);return t.jsx("div",l(l({ref:r,className:Oe("flex",p?"flex-row flex-wrap gap-4":"flex-col gap-3",i),style:l(l({},f),s)},u),{},{children:n}))});li.displayName="FormGroup";var di=["children","value","onChange","name","className","sx","style","disabled","row"],ci=o.createContext({value:null,onChange:null,name:null,disabled:!1}),pi=o.forwardRef(function(e,r){var n=e.children,i=e.value,a=e.onChange,s=e.name,c=e.className,p=e.sx,u=e.style,f=e.disabled,m=void 0!==f&&f,x=e.row,g=void 0!==x&&x,v=d(e,di),h=o.useMemo(function(){return p?"function"==typeof p?p({}):p:{}},[p]),b=o.useCallback(function(e){a&&!m&&a(e)},[a,m]),y=o.useMemo(function(){return{value:i,onChange:b,name:s||"radio-group-".concat(Math.random().toString(36).substr(2,9)),disabled:m}},[i,b,s,m]);return t.jsx(ci.Provider,{value:y,children:t.jsx("div",l(l({ref:r,className:Oe("flex",g?"flex-row gap-4":"flex-col gap-2",m&&"opacity-50",c),style:l(l({},h),u),role:"radiogroup"},v),{},{children:n}))})});pi.displayName="RadioGroup";var ui=["className","checked","onChange","disabled","value","size","sx","style"],fi=o.forwardRef(function(e,r){var n=e.className,i=e.checked,a=e.onChange,s=e.disabled,p=e.value,u=e.size,f=void 0===u?"medium":u,m=e.sx,x=e.style,g=d(e,ui),v=c(o.useState(!1),2),h=v[0],b=v[1],y=o.useContext(ci),w=void 0!==i?i:(null==y?void 0:y.value)===p,k=void 0!==s?s:(null==y?void 0:y.disabled)||!1,N=o.useCallback(function(e){a?a(e):null!=y&&y.onChange&&y.onChange(e)},[a,y]),C=o.useMemo(function(){return m?"function"==typeof m?m({}):m:{}},[m]),j={small:18,medium:20,large:24},E=j[f]||j.medium,R=w?.5*E:0;return t.jsxs("label",{className:Oe("relative inline-flex items-center justify-center cursor-pointer",k&&"cursor-not-allowed opacity-50",n),style:l(l({},C),x),children:[t.jsx("input",l({ref:r,type:"radio",checked:w,onChange:N,disabled:k,value:p,name:null==y?void 0:y.name,className:"sr-only"},g)),t.jsx("div",{className:Oe("flex items-center justify-center transition-all duration-200 border-2 rounded-full bg-transparent transition-colors",k&&"opacity-50 cursor-not-allowed",n,w||h&&!k?"border-primary":"border-input"),style:{width:"".concat(E,"px"),height:"".concat(E,"px")},onMouseEnter:function(){return!k&&b(!0)},onMouseLeave:function(){return b(!1)},children:w&&t.jsx("div",{className:"bg-primary rounded-full transition-all",style:{width:"".concat(R,"px"),height:"".concat(R,"px")}})})]})});fi.displayName="Radio";var mi=["className","style","in","timeout","children","unmountOnExit","orientation","collapsedSize"],xi=o.forwardRef(function(e,r){var n=e.className,i=e.style,a=e.in,s=void 0!==a&&a,p=e.timeout,u=void 0===p?"auto":p,f=e.children,m=e.unmountOnExit,x=void 0!==m&&m,g=e.orientation,v=void 0===g?"vertical":g,h=e.collapsedSize,b=void 0===h?"0px":h,y=d(e,mi),w=c(o.useState(s||!x),2),k=w[0],N=w[1],C=c(o.useState(function(){return s?"vertical"===v?"auto":"0px":b}),2),j=C[0],E=C[1],R=o.useRef(null),M=o.useRef(!0);if(o.useEffect(function(){if(x){if(!s){var e=setTimeout(function(){N(!1)},300);return function(){return clearTimeout(e)}}N(!0),M.current=!0}},[s,x]),o.useEffect(function(){var e="vertical"===v;if(R.current)if(M.current&&s){M.current=!1;var t=e?R.current.scrollHeight:R.current.scrollWidth;if(E(t>0?"".concat(t,"px"):e?"auto":"0px"),e){var r=setTimeout(function(){E("auto")},50);return function(){return clearTimeout(r)}}}else{M.current=!1;var n=R.current;if(s){var o=e?n.scrollHeight:n.scrollWidth;if(o>0){if(E("".concat(o,"px")),e){var i=setTimeout(function(){E("auto")},300);return function(){return clearTimeout(i)}}}else E(e?"auto":"0px")}else{var a=e?n.scrollHeight:n.scrollWidth;a>0?(E("".concat(a,"px")),requestAnimationFrame(function(){requestAnimationFrame(function(){E(b)})})):E(b)}}else if(s){var l=setTimeout(function(){if(R.current){var t=e?R.current.scrollHeight:R.current.scrollWidth;E(t>0?"".concat(t,"px"):e?"auto":"0px")}},0);return function(){return clearTimeout(l)}}},[s,b,v]),x&&!k)return null;var O="vertical"===v,T=s?"0px"===j?"auto":j:b;return t.jsx("div",l(l({ref:r,className:Oe("overflow-hidden transition-all",!O&&"inline-block",n),style:l(l({},O?{height:T,maxHeight:s?"none":b}:{width:T,maxWidth:s?"none":b,minWidth:0}),{},{transitionDuration:"auto"===u?"300ms":"number"==typeof u?"".concat(u,"ms"):"300ms",transitionTimingFunction:"ease-in-out"},i)},y),{},{children:t.jsx("div",{ref:R,style:O?void 0:{whiteSpace:"nowrap",display:"inline-block",width:"fit-content",minWidth:"fit-content"},children:f})}))});xi.displayName="Collapse";var gi=["className","style","children"],vi=o.forwardRef(function(e,r){var n=e.className,o=e.style,i=e.children,a=d(e,gi);return t.jsx(kt,l(l({ref:r,variant:"body2",component:"p",color:"muted",className:n,style:l({marginBottom:"16px"},o)},a),{},{children:i}))});vi.displayName="DialogContentText";var hi=["className","style","maxWidth","fixed","disableGutters","children"],bi=o.forwardRef(function(e,r){var n=e.className,o=e.style,i=e.maxWidth,a=void 0===i?"lg":i,s=e.fixed,c=void 0!==s&&s,p=e.disableGutters,u=void 0!==p&&p,f=e.children,m=d(e,hi),x=function(){if(!1===a)return"none";var e={xs:"444px",sm:"600px",md:"900px",lg:"1200px",xl:"1536px"};return e[a]||e.lg}();return t.jsx("div",l(l({ref:r,className:Oe("mx-auto",n),style:l(l(l({width:"100%",maxWidth:x},c&&{width:x}),u?{paddingLeft:0,paddingRight:0}:{paddingLeft:"16px",paddingRight:"16px"}),o)},m),{},{children:f}))});bi.displayName="Container";var yi=["className","style","orientation","variant","flexItem","light","textAlign","children"],wi=o.forwardRef(function(e,r){var n=e.className,o=e.style,i=void 0===o?{}:o,a=e.orientation,s=void 0===a?"horizontal":a,c=e.variant,p=void 0===c?"fullWidth":c,u=e.flexItem,f=void 0!==u&&u,m=e.light,x=void 0!==m&&m,g=e.textAlign,v=void 0===g?"center":g,h=e.children,b=d(e,yi),y="vertical"===s,w="inset"===p,k="middle"===p,N=null==i?void 0:i.marginLeft,C=null==i?void 0:i.marginRight;if(h){var j=N||(w||k?"16px":"0px"),E=C||(w?"0px":k?"16px":"0px");return t.jsxs("div",l(l({ref:r,className:Oe("flex items-center",n),style:l({width:"100%",margin:"8px 0"},i)},b),{},{children:[t.jsx("div",{style:{flex:1,borderTopWidth:"1px",borderTopStyle:"solid",borderColor:x?"rgba(0, 0, 0, 0.08)":"hsl(var(--border))",marginLeft:"0px"!==j?j:void 0}}),t.jsx("div",{style:{paddingLeft:"16px",paddingRight:"16px",textAlign:v,color:"hsl(var(--muted-foreground))",fontSize:"0.875rem"},children:h}),t.jsx("div",{style:{flex:1,borderTopWidth:"1px",borderTopStyle:"solid",borderColor:x?"rgba(0, 0, 0, 0.08)":"hsl(var(--border))",marginRight:"0px"!==E?E:void 0}})]}))}var R=function(){var e={borderColor:x?"rgba(0, 0, 0, 0.08)":"hsl(var(--border))"};if(y){var t=N||(w?"16px":"8px"),r=C||(w?"16px":"8px");return l(l({},e),{},{borderLeftWidth:"1px",borderLeftStyle:"solid",height:"100%",width:"1px",marginLeft:t,marginRight:r})}var n=N||(w||k?"16px":"0px"),o=C||(w?"0px":k?"16px":"0px"),i=function(e){if(!e||"0px"===e||"0"===e)return 0;if("number"==typeof e)return e;var t=e.toString().match(/([\d.]+)/);return t?parseFloat(t[1]):0},a=i(n)+i(o),s=l(l({},e),{},{borderTopWidth:"1px",borderTopStyle:"solid",boxSizing:"border-box"});return f?s.width="1px":"fullWidth"===p?(s.width="100%",s.marginLeft="0px",s.marginRight="0px"):(s.width=a>0?"calc(100% - ".concat(a,"px)"):"100%","0px"!==n&&"0"!==n&&(s.marginLeft=n),"0px"!==o&&"0"!==o&&(s.marginRight=o)),s}();y||f||(void 0===i.marginTop&&void 0===R.marginTop&&(R.marginTop="8px"),void 0===i.marginBottom&&void 0===R.marginBottom&&(R.marginBottom="8px"));var M,O,T=l(l({},R),i);y||"fullWidth"!==p||f||(T.width="100%",T.marginLeft=null!==(M=i.marginLeft)&&void 0!==M?M:"0px",T.marginRight=null!==(O=i.marginRight)&&void 0!==O?O:"0px");return t.jsx("div",l({ref:r,className:Oe(y?"inline-block":"block",f&&"self-stretch",n),style:l({padding:0,display:y?"inline-block":"block"},T)},b))});wi.displayName="Divider";var ki=["className","style","src","alt","children","variant","sizes","imgProps"],Ni=["color"],Ci=["color"],ji=o.forwardRef(function(e,r){var n,o,i=e.className,a=e.style,s=e.src,c=e.alt,p=e.children,u=e.variant,f=void 0===u?"circular":u,m=e.sizes,x=e.imgProps,g=d(e,ki),v=l({display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0,position:"relative",textAlign:"center",fontSize:"1.25rem",lineHeight:1,overflow:"hidden",userSelect:"none",backgroundColor:"hsl(var(--muted))",color:"hsl(var(--foreground))",fontWeight:500,width:"40px",height:"40px"},"rounded"===f?{borderRadius:"8px"}:"square"===f?{borderRadius:"0px"}:{borderRadius:"50%"}),h="dark"===Se();if(s){var b,y,w=a||{};w.color;var k=d(w,Ni),N=l(l(l({},v),k),{},{borderRadius:null!==(b=null==a?void 0:a.borderRadius)&&void 0!==b?b:v.borderRadius,backgroundColor:null!==(y=null==a?void 0:a.backgroundColor)&&void 0!==y?y:v.backgroundColor,color:null!=a&&a.color?a.color:null!=a&&a.backgroundColor?h?"#000000":"#ffffff":v.color});return t.jsxs("div",l(l({ref:r,className:Oe("relative",i),style:N},g),{},{children:[t.jsx("img",l({src:s,alt:c,sizes:m,style:{width:"100%",height:"100%",objectFit:"cover"}},x)),p&&t.jsx("div",{style:{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center"},children:p})]}))}var C=a||{};C.color;var j=d(C,Ci),E=l(l(l({},v),j),{},{borderRadius:null!==(n=null==a?void 0:a.borderRadius)&&void 0!==n?n:v.borderRadius,backgroundColor:null!==(o=null==a?void 0:a.backgroundColor)&&void 0!==o?o:v.backgroundColor,color:null!=a&&a.color?a.color:null!=a&&a.backgroundColor?h?"#000000":"#ffffff":v.color});return t.jsx("div",l(l({ref:r,className:Oe(i),style:E},g),{},{children:p}))});ji.displayName="Avatar";var Ei=["className","direction","spacing","justifyContent","alignItems","flexWrap","gap","sx","style","children"],Ri=o.forwardRef(function(e,r){var n=e.className,i=e.direction,a=void 0===i?"column":i,s=e.spacing,c=void 0===s?0:s,p=e.justifyContent,u=e.alignItems,f=e.flexWrap,m=e.gap,x=e.sx,g=e.style,v=e.children,h=d(e,Ei),b=void 0!==m?m:"number"==typeof c?8*c:0,y=o.useMemo(function(){return x?"function"==typeof x?x({}):x:{}},[x]),w="row"===a?"flex-row":"row-reverse"===a?"flex-row-reverse":"column-reverse"===a?"column-reverse":"flex-col",k="wrap"===f?"flex-wrap":"nowrap"===f?"flex-nowrap":"",N="flex-start"===p?"justify-start":"flex-end"===p?"justify-end":"center"===p?"justify-center":"space-between"===p?"justify-between":"space-around"===p?"justify-around":"space-evenly"===p?"justify-evenly":"",C="flex-start"===u?"items-start":"flex-end"===u?"items-end":"center"===u?"items-center":"baseline"===u?"items-baseline":"stretch"===u?"items-stretch":"",j=l(l(l({display:"flex"},b&&{gap:"".concat(b,"px")}),y),g);return t.jsx("div",l(l({ref:r,className:Oe(w,k,N,C,n),style:j},h),{},{children:v}))});Ri.displayName="Stack";var Mi=["className","position","disablePointerEvents","disableTypography","children"],Oi=o.forwardRef(function(e,r){var n=e.className,o=e.position,i=void 0===o?"end":o,a=e.disablePointerEvents,s=void 0!==a&&a,c=e.disableTypography,p=void 0!==c&&c,u=e.children,f=d(e,Mi);return t.jsx("div",l(l({ref:r,className:Oe("flex items-center","start"===i?"mr-2":"ml-2",s&&"pointer-events-none",n),style:{pointerEvents:s?"none":"auto",cursor:s?"default":"inherit"}},f),{},{children:p?u:t.jsx("span",{className:"text-sm text-muted-foreground",children:u})}))});Oi.displayName="InputAdornment";var Ti=["className","elevation","square","variant","sx","style","children"],Si=o.forwardRef(function(e,r){var n=e.className,i=e.elevation,a=void 0===i?0:i,s=e.square,c=void 0!==s&&s,p=e.variant,u=void 0===p?"elevation":p,f=e.sx,m=e.style,x=e.children,g=d(e,Ti),v=o.useMemo(function(){if(!f)return{};var e=l({},"function"==typeof f?f({}):f);return void 0!==e.p&&(e.padding=Te(e.p),delete e.p),void 0!==e.px&&(e.paddingLeft=Te(e.px),e.paddingRight=Te(e.px),delete e.px),void 0!==e.py&&(e.paddingTop=Te(e.py),e.paddingBottom=Te(e.py),delete e.py),void 0!==e.pt&&(e.paddingTop=Te(e.pt),delete e.pt),void 0!==e.pb&&(e.paddingBottom=Te(e.pb),delete e.pb),void 0!==e.pl&&(e.paddingLeft=Te(e.pl),delete e.pl),void 0!==e.pr&&(e.paddingRight=Te(e.pr),delete e.pr),void 0!==e.m&&(e.margin=Te(e.m),delete e.m),void 0!==e.mx&&(e.marginLeft=Te(e.mx),e.marginRight=Te(e.mx),delete e.mx),void 0!==e.my&&(e.marginTop=Te(e.my),e.marginBottom=Te(e.my),delete e.my),void 0!==e.mt&&(e.marginTop=Te(e.mt),delete e.mt),void 0!==e.mb&&(e.marginBottom=Te(e.mb),delete e.mb),void 0!==e.ml&&(e.marginLeft=Te(e.ml),delete e.ml),void 0!==e.mr&&(e.marginRight=Te(e.mr),delete e.mr),void 0!==e.gap&&(e.gap=Te(e.gap)),e},[f]),h=function(){if("outlined"===u)return{boxShadow:"none",border:"1px solid hsl(var(--border))"};var e={0:"none",1:"0px 2px 1px -1px rgba(0,0,0,0.2), 0px 1px 1px 0px rgba(0,0,0,0.14), 0px 1px 3px 0px rgba(0,0,0,0.12)",2:"0px 3px 1px -2px rgba(0,0,0,0.2), 0px 2px 2px 0px rgba(0,0,0,0.14), 0px 1px 5px 0px rgba(0,0,0,0.12)",3:"0px 3px 3px -2px rgba(0,0,0,0.2), 0px 3px 4px 0px rgba(0,0,0,0.14), 0px 1px 8px 0px rgba(0,0,0,0.12)",4:"0px 2px 4px -1px rgba(0,0,0,0.2), 0px 4px 5px 0px rgba(0,0,0,0.14), 0px 1px 10px 0px rgba(0,0,0,0.12)",5:"0px 3px 5px -1px rgba(0,0,0,0.2), 0px 5px 8px 0px rgba(0,0,0,0.14), 0px 1px 14px 0px rgba(0,0,0,0.12)",6:"0px 3px 5px -1px rgba(0,0,0,0.2), 0px 6px 10px 0px rgba(0,0,0,0.14), 0px 1px 18px 0px rgba(0,0,0,0.12)",7:"0px 4px 5px -2px rgba(0,0,0,0.2), 0px 7px 10px 1px rgba(0,0,0,0.14), 0px 2px 16px 1px rgba(0,0,0,0.12)",8:"0px 5px 5px -3px rgba(0,0,0,0.2), 0px 8px 10px 1px rgba(0,0,0,0.14), 0px 3px 14px 2px rgba(0,0,0,0.12)",9:"0px 5px 6px -3px rgba(0,0,0,0.2), 0px 9px 12px 1px rgba(0,0,0,0.14), 0px 3px 16px 2px rgba(0,0,0,0.12)",10:"0px 6px 6px -3px rgba(0,0,0,0.2), 0px 10px 14px 1px rgba(0,0,0,0.14), 0px 4px 18px 3px rgba(0,0,0,0.12)",11:"0px 6px 7px -4px rgba(0,0,0,0.2), 0px 11px 15px 1px rgba(0,0,0,0.14), 0px 4px 20px 3px rgba(0,0,0,0.12)",12:"0px 7px 8px -4px rgba(0,0,0,0.2), 0px 12px 17px 2px rgba(0,0,0,0.14), 0px 5px 22px 4px rgba(0,0,0,0.12)",13:"0px 7px 8px -4px rgba(0,0,0,0.2), 0px 13px 19px 2px rgba(0,0,0,0.14), 0px 5px 24px 4px rgba(0,0,0,0.12)",14:"0px 7px 9px -4px rgba(0,0,0,0.2), 0px 14px 21px 2px rgba(0,0,0,0.14), 0px 5px 26px 4px rgba(0,0,0,0.12)",15:"0px 8px 9px -5px rgba(0,0,0,0.2), 0px 15px 22px 2px rgba(0,0,0,0.14), 0px 6px 28px 5px rgba(0,0,0,0.12)",16:"0px 8px 10px -5px rgba(0,0,0,0.2), 0px 16px 24px 2px rgba(0,0,0,0.14), 0px 6px 30px 5px rgba(0,0,0,0.12)",17:"0px 8px 11px -5px rgba(0,0,0,0.2), 0px 17px 26px 2px rgba(0,0,0,0.14), 0px 6px 32px 5px rgba(0,0,0,0.12)",18:"0px 9px 11px -5px rgba(0,0,0,0.2), 0px 18px 28px 2px rgba(0,0,0,0.14), 0px 7px 34px 6px rgba(0,0,0,0.12)",19:"0px 9px 12px -6px rgba(0,0,0,0.2), 0px 19px 29px 2px rgba(0,0,0,0.14), 0px 7px 36px 6px rgba(0,0,0,0.12)",20:"0px 10px 13px -6px rgba(0,0,0,0.2), 0px 20px 31px 3px rgba(0,0,0,0.14), 0px 8px 38px 7px rgba(0,0,0,0.12)",21:"0px 10px 13px -6px rgba(0,0,0,0.2), 0px 21px 33px 3px rgba(0,0,0,0.14), 0px 8px 40px 7px rgba(0,0,0,0.12)",22:"0px 10px 14px -6px rgba(0,0,0,0.2), 0px 22px 35px 3px rgba(0,0,0,0.14), 0px 8px 42px 7px rgba(0,0,0,0.12)",23:"0px 11px 14px -7px rgba(0,0,0,0.2), 0px 23px 36px 3px rgba(0,0,0,0.14), 0px 9px 44px 8px rgba(0,0,0,0.12)",24:"0px 11px 15px -7px rgba(0,0,0,0.2), 0px 24px 38px 3px rgba(0,0,0,0.14), 0px 9px 46px 8px rgba(0,0,0,0.12)"};return{boxShadow:e[Math.max(0,Math.min(24,a))]||e[1]}}();return t.jsx("div",l(l({ref:r,className:Oe("bg-card",!c&&"rounded-lg","outlined"===u&&"border border-border",n),style:l(l(l({},h),v),m)},g),{},{children:x}))});Si.displayName="Paper";var Li=["className","position","color","elevation","sx","style","children"],Di=o.forwardRef(function(e,r){var n,i=e.className,a=e.position,s=void 0===a?"fixed":a,c=e.color,p=void 0===c?"default":c,u=e.elevation,f=void 0===u?4:u,m=e.sx,x=e.style,g=e.children,v=d(e,Li),h=o.useMemo(function(){return m?"function"==typeof m?m({}):m:{}},[m]),b="fixed"===s||"absolute"===s||"sticky"===s?{top:0,left:0,right:0,width:"100%"}:{};return t.jsx("div",l(l({ref:r,className:Oe("primary"===p?"bg-primary text-primary-foreground":"secondary"===p?"bg-secondary text-secondary-foreground":"transparent"===p?"bg-transparent text-foreground":"bg-card text-foreground","z-app-bar","static"===s||"relative"===s?"w-full":"",i),style:l(l(l(l({position:s},b),(n={0:"none",1:"0px 2px 1px -1px rgba(0,0,0,0.2), 0px 1px 1px 0px rgba(0,0,0,0.14), 0px 1px 3px 0px rgba(0,0,0,0.12)",2:"0px 3px 1px -2px rgba(0,0,0,0.2), 0px 2px 2px 0px rgba(0,0,0,0.14), 0px 1px 5px 0px rgba(0,0,0,0.12)",3:"0px 3px 3px -2px rgba(0,0,0,0.2), 0px 3px 4px 0px rgba(0,0,0,0.14), 0px 1px 8px 0px rgba(0,0,0,0.12)",4:"0px 2px 4px -1px rgba(0,0,0,0.2), 0px 4px 5px 0px rgba(0,0,0,0.14), 0px 1px 10px 0px rgba(0,0,0,0.12)",5:"0px 3px 5px -1px rgba(0,0,0,0.2), 0px 5px 8px 0px rgba(0,0,0,0.14), 0px 1px 14px 0px rgba(0,0,0,0.12)",6:"0px 3px 5px -1px rgba(0,0,0,0.2), 0px 6px 10px 0px rgba(0,0,0,0.14), 0px 1px 18px 0px rgba(0,0,0,0.12)",7:"0px 4px 5px -2px rgba(0,0,0,0.2), 0px 7px 10px 1px rgba(0,0,0,0.14), 0px 2px 16px 1px rgba(0,0,0,0.12)",8:"0px 5px 5px -3px rgba(0,0,0,0.2), 0px 8px 10px 1px rgba(0,0,0,0.14), 0px 3px 14px 2px rgba(0,0,0,0.12)",9:"0px 5px 6px -3px rgba(0,0,0,0.2), 0px 9px 12px 1px rgba(0,0,0,0.14), 0px 3px 16px 2px rgba(0,0,0,0.12)",10:"0px 6px 6px -3px rgba(0,0,0,0.2), 0px 10px 14px 1px rgba(0,0,0,0.14), 0px 4px 18px 3px rgba(0,0,0,0.12)",11:"0px 6px 7px -4px rgba(0,0,0,0.2), 0px 11px 15px 1px rgba(0,0,0,0.14), 0px 4px 20px 3px rgba(0,0,0,0.12)",12:"0px 7px 8px -4px rgba(0,0,0,0.2), 0px 12px 17px 2px rgba(0,0,0,0.14), 0px 5px 22px 4px rgba(0,0,0,0.12)",13:"0px 7px 8px -4px rgba(0,0,0,0.2), 0px 13px 19px 2px rgba(0,0,0,0.14), 0px 5px 24px 4px rgba(0,0,0,0.12)",14:"0px 7px 9px -4px rgba(0,0,0,0.2), 0px 14px 21px 2px rgba(0,0,0,0.14), 0px 5px 26px 4px rgba(0,0,0,0.12)",15:"0px 8px 9px -5px rgba(0,0,0,0.2), 0px 15px 22px 2px rgba(0,0,0,0.14), 0px 6px 28px 5px rgba(0,0,0,0.12)",16:"0px 8px 10px -5px rgba(0,0,0,0.2), 0px 16px 24px 2px rgba(0,0,0,0.14), 0px 6px 30px 5px rgba(0,0,0,0.12)",17:"0px 8px 11px -5px rgba(0,0,0,0.2), 0px 17px 26px 2px rgba(0,0,0,0.14), 0px 6px 32px 5px rgba(0,0,0,0.12)",18:"0px 9px 11px -5px rgba(0,0,0,0.2), 0px 18px 28px 2px rgba(0,0,0,0.14), 0px 7px 34px 6px rgba(0,0,0,0.12)",19:"0px 9px 12px -6px rgba(0,0,0,0.2), 0px 19px 29px 2px rgba(0,0,0,0.14), 0px 7px 36px 6px rgba(0,0,0,0.12)",20:"0px 10px 13px -6px rgba(0,0,0,0.2), 0px 20px 31px 3px rgba(0,0,0,0.14), 0px 8px 38px 7px rgba(0,0,0,0.12)",21:"0px 10px 13px -6px rgba(0,0,0,0.2), 0px 21px 33px 3px rgba(0,0,0,0.14), 0px 8px 40px 7px rgba(0,0,0,0.12)",22:"0px 10px 14px -6px rgba(0,0,0,0.2), 0px 22px 35px 3px rgba(0,0,0,0.14), 0px 8px 42px 7px rgba(0,0,0,0.12)",23:"0px 11px 14px -7px rgba(0,0,0,0.2), 0px 23px 36px 3px rgba(0,0,0,0.14), 0px 9px 44px 8px rgba(0,0,0,0.12)",24:"0px 11px 15px -7px rgba(0,0,0,0.2), 0px 24px 38px 3px rgba(0,0,0,0.14), 0px 9px 46px 8px rgba(0,0,0,0.12)"},{boxShadow:n[Math.max(0,Math.min(24,Math.round(f)))]||n[4]})),h),x)},v),{},{children:g}))});Di.displayName="AppBar";var Ai=["className","sx","style","variant","children"],zi=o.forwardRef(function(e,r){var n=e.className,i=e.sx,a=e.style,s=e.variant,c=void 0===s?"regular":s,p=e.children,u=d(e,Ai),f=o.useMemo(function(){return i?"function"==typeof i?i({}):i:{}},[i]),m=l(l(l({display:"flex",alignItems:"center"},"dense"===c?{minHeight:"48px",paddingLeft:"16px",paddingRight:"16px"}:{minHeight:"64px",paddingLeft:"16px",paddingRight:"16px"}),f),a);return t.jsx("div",l(l({ref:r,className:Oe(n),style:m},u),{},{children:p}))});zi.displayName="Toolbar";var Ii=["className","anchorEl","open","onClose","PaperProps","anchorOrigin","transformOrigin","position","disablePortal","border","children"],Wi=["className","onClick","disabled","sx","style","children","_isFirst","_isLast","_menuBorderRadius"],Bi=["className","style","children"],Pi=["className","style","children","primary","secondary"],$i=o.forwardRef(function(e,n){var i,a,s,p,u,f,m,x=e.className,g=e.anchorEl,v=e.open,h=void 0!==v&&v,b=e.onClose,y=e.PaperProps,w=e.anchorOrigin,k=void 0===w?{vertical:"bottom",horizontal:"left"}:w;e.transformOrigin;var N=e.position,C=void 0===N?"fixed":N,j=e.disablePortal,E=void 0!==j&&j,R=e.border,M=void 0!==R&&R,O=e.children,T=d(e,Ii),S=E?C:"fixed",L=o.useRef(null),D=c(o.useState({top:0,left:0}),2),A=D[0],z=D[1],I=o.useRef({top:0,left:0}),W=o.useRef((null==y||null===(i=y.style)||void 0===i?void 0:i.borderRadius)||"8px");void 0!==(null==y||null===(a=y.style)||void 0===a?void 0:a.borderRadius)&&(W.current=y.style.borderRadius);if(o.useImperativeHandle(n,function(){return L.current}),o.useLayoutEffect(function(){if(h&&g){var e=!0,t=null;if(t=requestAnimationFrame(function(){if(e)try{if(!g||!g.getBoundingClientRect||!g.isConnected)return void(e&&z({top:50,left:0}));var t=g.getBoundingClientRect();if(!t||isNaN(t.bottom)||isNaN(t.left))return void(e&&z({top:50,left:0}));if("fixed"===S){var r,n,o,i=window.innerWidth,a=window.innerHeight,s=(null===(r=L.current)||void 0===r?void 0:r.offsetWidth)||(null==y||null===(n=y.style)||void 0===n?void 0:n.minWidth)||180,l=(null===(o=L.current)||void 0===o?void 0:o.offsetHeight)||100,d=0,c=0;d="bottom"===k.vertical?t.bottom+8:"top"===k.vertical?t.top-l-8:t.top+(t.height-l)/2,c="left"===k.horizontal?t.left:"right"===k.horizontal?t.right-s:t.left+(t.width-s)/2;var p=16;c+s>i-p&&(c=i-s-p),c<p&&(c=p),d+l>a-p&&("bottom"===k.vertical&&(d=t.top-l-8),d+l>a-p&&(d=a-l-p)),d<p&&(d=p),e&&z({top:d,left:c})}else{for(var u=g.parentElement;u&&u!==document.body&&u.isConnected;)try{var f=window.getComputedStyle(u);if("relative"===f.position||"absolute"===f.position||"fixed"===f.position)break;u=u.parentElement}catch(e){break}var m={top:0,left:0};if(u&&u!==document.body&&u.isConnected&&u.getBoundingClientRect)try{(!(m=u.getBoundingClientRect())||isNaN(m.top)||isNaN(m.left))&&(m={top:0,left:0})}catch(e){m={top:0,left:0}}var x=0,v=0;if("bottom"===k.vertical)x=t.bottom-m.top+8;else if("top"===k.vertical){var h,b=(null===(h=L.current)||void 0===h?void 0:h.offsetHeight)||100;x=t.top-m.top-b-8}else{var w,N=(null===(w=L.current)||void 0===w?void 0:w.offsetHeight)||100;x=t.top-m.top+(t.height-N)/2}if("left"===k.horizontal)v=t.left-m.left;else if("right"===k.horizontal){var C,j,E=(null===(C=L.current)||void 0===C?void 0:C.offsetWidth)||(null==y||null===(j=y.style)||void 0===j?void 0:j.minWidth)||180;v=t.right-m.left-E}else{var R,M,O=(null===(R=L.current)||void 0===R?void 0:R.offsetWidth)||(null==y||null===(M=y.style)||void 0===M?void 0:M.minWidth)||180;v=t.left-m.left+(t.width-O)/2}e&&z({top:x,left:v})}}catch(t){e&&z({top:50,left:0})}}),"fixed"===S){var r=function(){t=requestAnimationFrame(function(){if(e){var t=null==g?void 0:g.getBoundingClientRect();if(t){var r,n,o,i=window.innerWidth,a=window.innerHeight,s=(null===(r=L.current)||void 0===r?void 0:r.offsetWidth)||(null==y||null===(n=y.style)||void 0===n?void 0:n.minWidth)||180,l=(null===(o=L.current)||void 0===o?void 0:o.offsetHeight)||100,d=16,c="bottom"===k.vertical?t.bottom+8:"top"===k.vertical?t.top-l-8:t.top+(t.height-l)/2,p="left"===k.horizontal?t.left:"right"===k.horizontal?t.right-s:t.left+(t.width-s)/2;p+s>i-d&&(p=i-s-d),p<d&&(p=d),c+l>a-d&&("bottom"===k.vertical&&(c=t.top-l-8),c+l>a-d&&(c=a-l-d)),c<d&&(c=d),z({top:c,left:p})}}})};return window.addEventListener("scroll",r,!0),window.addEventListener("resize",r),function(){e=!1,null!==t&&cancelAnimationFrame(t),window.removeEventListener("scroll",r,!0),window.removeEventListener("resize",r)}}return function(){e=!1,null!==t&&cancelAnimationFrame(t)}}z({top:0,left:0})},[h,g,k.vertical,k.horizontal,S,null==y||null===(s=y.style)||void 0===s?void 0:s.minWidth]),o.useLayoutEffect(function(){if(h&&g&&L.current&&"fixed"===S){var e=requestAnimationFrame(function(){!function(){try{var e=g.getBoundingClientRect();if(!e)return;var t=window.innerWidth,r=window.innerHeight,n=L.current.offsetWidth,o=L.current.offsetHeight;if(!n||!o)return;var i=16,a=0,s=0;a="bottom"===k.vertical?e.bottom+8:"top"===k.vertical?e.top-o-8:e.top+(e.height-o)/2,(s="left"===k.horizontal?e.left:"right"===k.horizontal?e.right-n:e.left+(e.width-n)/2)+n>t-i&&(s=t-n-i),s<i&&(s=i),a+o>r-i&&("bottom"===k.vertical&&(a=e.top-o-8),a+o>r-i&&(a=r-o-i)),a<i&&(a=i),s<0&&(s=i),a<0&&(a=i),s+n>t&&(s=Math.max(i,t-n-i)),a+o>r&&(a=Math.max(i,r-o-i));var l={top:a,left:s};(Math.abs(I.current.top-l.top)>.5||Math.abs(I.current.left-l.left)>.5)&&(I.current=l,z(l))}catch(e){}}()});return function(){e&&cancelAnimationFrame(e)}}},[h,g,k.vertical,k.horizontal,S]),o.useEffect(function(){if(h){var e=function(e){L.current&&!L.current.contains(e.target)&&g&&!g.contains(e.target)&&b&&b(e,"backdropClick")},t=function(e){"Escape"===e.key&&b&&b(e,"escapeKeyDown")};return document.addEventListener("mousedown",e,!0),document.addEventListener("keydown",t,!0),function(){document.removeEventListener("mousedown",e,!0),document.removeEventListener("keydown",t,!0)}}},[h,b,g]),!h||!g)return null;var B=document.documentElement.classList.contains("dark")||window.matchMedia("(prefers-color-scheme: dark)").matches,P=t.jsx("div",l(l({ref:L,className:Oe("rounded-lg shadow-lg",x),style:l(l(l({position:S,top:"".concat(A.top,"px"),left:"".concat(A.left,"px"),zIndex:1300,pointerEvents:"auto",visibility:"visible",display:"block",opacity:1,backgroundColor:"hsl(var(--card))",boxShadow:B?"0px 4px 12px rgba(0, 0, 0, 0.4), 0px 0px 0px 1px rgba(255, 255, 255, 0.1)":"0px 4px 12px rgba(0, 0, 0, 0.15)"},M||null!=y&&null!==(p=y.style)&&void 0!==p&&p.border?{border:(null==y||null===(u=y.style)||void 0===u?void 0:u.border)||(B?"1px solid rgba(255, 255, 255, 0.1)":"1px solid hsl(var(--border))")}:{}),{},{borderRadius:(null==y||null===(f=y.style)||void 0===f?void 0:f.borderRadius)||"8px",minWidth:(null==y||null===(m=y.style)||void 0===m?void 0:m.minWidth)||180,maxWidth:"calc(100vw - 32px)",padding:"4px 0",height:"auto",overflow:"hidden",boxSizing:"border-box"},null==y?void 0:y.style),T.style)},Object.fromEntries(Object.entries(T||{}).filter(function(e){return"style"!==c(e,1)[0]}))),{},{children:function(e){if(!e)return e;var t=W.current,r=o.Children.toArray(e).filter(function(e){if(!o.isValidElement(e))return!1;var t=e.type;return"MenuItem"===(null==t?void 0:t.displayName)||"function"==typeof t&&"MenuItem"===t.name});return o.Children.map(e,function(e){if(!o.isValidElement(e))return e;var n=e.type;if(!("MenuItem"===(null==n?void 0:n.displayName)||"function"==typeof n&&"MenuItem"===n.name))return e;var i=r.findIndex(function(t){return t===e}),a=0===i,s=i===r.length-1;return o.cloneElement(e,l(l({},e.props),{},{_isFirst:a,_isLast:s,_menuBorderRadius:t}))})}(O)}));return E?P:"undefined"!=typeof document?r.createPortal(P,document.body):null});$i.displayName="Menu";var Hi=o.forwardRef(function(e,r){var n=e.className,i=e.onClick,a=e.disabled,s=void 0!==a&&a,p=e.sx,u=e.style,f=e.children,m=e._isFirst,x=e._isLast,g=e._menuBorderRadius,v=d(e,Wi),h=c(o.useState(!1),2),b=h[0],y=h[1],w=o.useMemo(function(){return p?"function"==typeof p?p({}):p:{}},[p]),k=16,N=12,C=l(l({display:"flex",alignItems:"center",minHeight:"36px",height:"auto",paddingLeft:"".concat(k,"px"),paddingRight:"".concat(k,"px"),paddingTop:"".concat(N,"px"),paddingBottom:"".concat(N,"px"),margin:0,cursor:s?"not-allowed":"pointer",fontSize:"0.875rem",color:s?"#666666":"#000000",backgroundColor:b&&!s?"hsl(var(--accent))":"transparent",opacity:s?.5:void 0!==w.opacity?w.opacity:1,transition:"background-color 200ms cubic-bezier(0.4, 0, 0.2, 1)",whiteSpace:"nowrap",visibility:"visible",textAlign:"left",fontWeight:"normal",width:"100%",maxWidth:"100%",boxSizing:"border-box",position:"relative",overflow:"hidden",borderTopLeftRadius:m?g:0,borderTopRightRadius:m?g:0,borderBottomLeftRadius:x?g:0,borderBottomRightRadius:x?g:0},w),u);return t.jsx("div",l(l({ref:r,role:"menuitem",tabIndex:s?-1:0,"aria-disabled":s,className:Oe("focus:outline-none focus:bg-accent focus:text-accent-foreground",n),style:l(l({},C),{},{position:"relative"}),onClick:function(e){s||i&&i(e)},onMouseDown:function(e){s||(e.preventDefault(),e.stopPropagation())},onKeyDown:function(e){s||"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),e.stopPropagation(),i&&i(e))},onMouseEnter:function(){return y(!0)},onMouseLeave:function(){return y(!1)}},v),{},{children:f}))});Hi.displayName="MenuItem";var Vi=o.forwardRef(function(e,r){var n=e.className,o=e.style,i=e.children,a=d(e,Bi);return t.jsx("div",l(l({ref:r,className:Oe("flex items-center justify-center",n),style:l({minWidth:"40px",marginRight:"8px",color:"inherit",fontSize:"1.25rem"},o)},a),{},{children:i}))});Vi.displayName="MenuItemIcon";var _i=o.forwardRef(function(e,r){var n=e.className,o=e.style,i=e.children,a=e.primary,s=e.secondary,c=d(e,Pi),p=void 0!==a?a:i,u=null!=s;return t.jsx("div",l(l({ref:r,className:Oe("flex-1",n),style:l({fontSize:"0.875rem",lineHeight:"1.5",display:"flex",alignItems:"center",width:"100%",textAlign:"left",color:"#000000",minHeight:"1.5em",boxSizing:"border-box"},o)},c),{},{children:u?t.jsxs(t.Fragment,{children:[t.jsx("div",{style:{fontSize:"0.875rem",lineHeight:"1.5",color:"#000000",textAlign:"left",display:"block"},children:p}),t.jsx("div",{style:{fontSize:"0.75rem",color:"#666666",marginTop:"2px",display:"block"},children:s})]}):t.jsx("span",{style:{color:"#000000",display:"inline-block",width:"100%"},children:p||""})}))});_i.displayName="MenuItemText";var Fi=["className","size","sx","style","border","verticalDivider","children"],qi=["className","component","sx","style","children"],Yi=["className","sx","style","children"],Gi=["className","sx","style","children"],Ui=["className","sx","style","children","hover","selected"],Ki=["className","align","padding","size","scope","sx","style","children","colSpan","rowSpan"],Xi=o.createContext({verticalDivider:!1}),Zi=o.forwardRef(function(e,r){var n=e.className,i=e.size,a=void 0===i?"medium":i,s=e.sx,c=e.style,p=e.border,u=void 0!==p&&p,f=e.verticalDivider,m=void 0!==f&&f,x=e.children,g=d(e,Fi),v=o.useMemo(function(){return s?"function"==typeof s?s({}):s:{}},[s]);return t.jsx(Xi.Provider,{value:{verticalDivider:m},children:t.jsx("table",l(l({ref:r,className:Oe("w-full",n),style:l(l(l(l({borderCollapse:"separate",borderSpacing:0},u&&{border:"1px solid hsl(var(--border))"}),{small:{fontSize:"0.875rem"},medium:{fontSize:"1rem"}}[a]),v),c)},g),{},{children:x}))})});Zi.displayName="Table";var Ji=o.forwardRef(function(e,r){var n=e.className,i=e.component,a=e.sx,s=e.style,c=e.children,p=d(e,qi),u=o.useMemo(function(){return a?"function"==typeof a?a({}):a:{}},[a]),f=i||"div";return t.jsx(f,l(l({ref:r,className:Oe("relative",n),style:l(l({},u),s)},p),{},{children:c}))});Ji.displayName="TableContainer";var Qi=o.forwardRef(function(e,r){var n=e.className,i=e.sx,a=e.style,s=e.children,c=d(e,Yi),p=o.useMemo(function(){return i?"function"==typeof i?i({}):i:{}},[i]);return t.jsx("thead",l(l({ref:r,className:Oe(n),style:l(l({},p),a)},c),{},{children:s}))});Qi.displayName="TableHead";var ea=o.forwardRef(function(e,r){var n=e.className,i=e.sx,a=e.style,s=e.children,c=d(e,Gi),p=o.useMemo(function(){return i?"function"==typeof i?i({}):i:{}},[i]);return t.jsx("tbody",l(l({ref:r,className:Oe(n),style:l(l({},p),a)},c),{},{children:s}))});ea.displayName="TableBody";var ta=o.forwardRef(function(e,r){var n=e.className,i=e.sx,a=e.style,s=e.children,c=e.hover,p=e.selected,u=d(e,Ui),f=o.useMemo(function(){return i?"function"==typeof i?i({}):i:{}},[i]);return t.jsx("tr",l(l({ref:r,className:Oe(c&&"hover:bg-accent",p&&"bg-accent",n),style:l(l({},f),a)},u),{},{children:s}))});ta.displayName="TableRow";var ra=o.forwardRef(function(e,r){var n=e.className,i=e.align,a=void 0===i?"inherit":i,s=e.padding,c=void 0===s?"normal":s,p=e.size,u=void 0===p?"medium":p,f=e.scope,m=e.sx,x=e.style,g=e.children,v=e.colSpan,h=e.rowSpan,b=d(e,Ki),y=o.useMemo(function(){return m?"function"==typeof m?m({}):m:{}},[m]),w={none:"0",checkbox:"0 0 0 4px",normal:"16px",small:"8px"},k={small:{padding:"6px 8px",fontSize:"0.875rem"},medium:{padding:w[c]||w.normal,fontSize:"1rem"}},N=o.useContext(Xi).verticalDivider,C=f?"th":"td";return t.jsx(C,l(l({ref:r,scope:f,colSpan:v,rowSpan:h,className:Oe("border-b border-border",N&&"border-r border-border last:border-r-0",n),style:l(l(l(l(l({},k[u]),{left:{textAlign:"left"},center:{textAlign:"center"},right:{textAlign:"right"},inherit:{}}[a]),N&&{borderRight:"1px solid hsl(var(--border))"}),y),x)},b),{},{children:g}))});ra.displayName="TableCell";var na=["className","value","selected","onChange","disabled","size","sx","style","children","color"],oa=["backgroundColor","color","borderColor"],ia=["className","value","exclusive","onChange","size","sx","style","children"],aa=o.forwardRef(function(e,r){var n=e.className,i=e.value,a=e.selected,s=void 0!==a&&a,c=e.onChange,p=e.disabled,u=void 0!==p&&p,f=e.size,m=void 0===f?"medium":f,x=e.sx,g=e.style,v=e.children,h=e.color,b=d(e,na);Se();var y=o.useMemo(function(){return x?"function"==typeof x?x({}):x:{}},[x]),w=l(l({},{small:{padding:"4px 6px",fontSize:"0.75rem",minHeight:"28px"},medium:{padding:"6px 16px",fontSize:"0.9375rem",minHeight:"36px"},large:{padding:"8px 22px",fontSize:"1rem",minHeight:"40px"}}[m]),{},{border:"1px solid hsl(var(--border))",borderRadius:"8px",textTransform:"none",fontWeight:400}),k=g||{};k.backgroundColor,k.color,k.borderColor;var N=d(k,oa),C=s?h?{backgroundColor:h,color:"white",borderColor:h}:{backgroundColor:"hsl(var(--primary))",color:"hsl(var(--primary-foreground))",borderColor:"hsl(var(--primary))"}:{backgroundColor:"transparent",color:"hsl(var(--foreground))",borderColor:"hsl(var(--border))"},j=l(l(l(l({},w),y),N),C);return t.jsx("button",l(l({ref:r,type:"button",className:Oe("inline-flex items-center justify-center transition-colors","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2","disabled:opacity-50 disabled:pointer-events-none",n),style:j,onClick:function(e){u||c&&c(e,i)},disabled:u,"aria-pressed":s,onMouseEnter:function(e){u||s||(e.currentTarget.style.backgroundColor="hsl(var(--accent) / 0.3)")},onMouseLeave:function(e){u||s||(e.currentTarget.style.backgroundColor="transparent")}},b),{},{children:v}))});aa.displayName="ToggleButton";var sa=o.forwardRef(function(e,r){var n=e.className,i=e.value,a=e.exclusive,s=void 0!==a&&a,c=e.onChange,u=e.size,f=void 0===u?"medium":u,m=e.sx,x=e.style,g=e.children,v=d(e,ia),h=o.useMemo(function(){return m?"function"==typeof m?m({}):m:{}},[m]),b=function(e,t){if(c)if(s)c(e,t===i?null:t);else{var r=Array.isArray(i)?i:[],n=r.indexOf(t),o=p(r);-1===n?o.push(t):o.splice(n,1),c(e,o)}},y=o.Children.toArray(g).map(function(e,t){if(o.isValidElement(e)&&e.type===aa){var r=e.props.value,n=s?i===r:Array.isArray(i)&&i.includes(r);return o.cloneElement(e,{selected:n,onChange:b,size:f,style:l({borderRadius:"8px"},e.props.style)})}return e});return t.jsx("div",l(l({ref:r,className:Oe("inline-flex gap-2",n),style:l(l({},h),x),role:"group"},v),{},{children:y}))});sa.displayName="ToggleButtonGroup";var la=function(t){var r=c(e.useState(!1),2),n=r[0],o=r[1];return e.useEffect(function(){var e=t;t.startsWith("@media")&&(e=t.replace("@media","").trim());var r=window.matchMedia(e);o(r.matches);var n=function(e){o(e.matches)};return r.addEventListener("change",n),function(){r.removeEventListener("change",n)}},[t]),n},da=["className","container","item","xs","sm","md","lg","xl","spacing","sx","style","children"],ca=o.forwardRef(function(e,r){var n=e.className,i=e.container,a=void 0!==i&&i,s=e.item,c=void 0!==s&&s,p=e.xs,u=e.sm,f=e.md,m=e.lg,x=e.xl,g=e.spacing,v=e.sx,h=e.style,b=e.children,y=d(e,da),w=(la("@media (max-width:599px)"),la("@media (min-width:600px) and (max-width:959px)")),k=la("@media (min-width:960px) and (max-width:1279px)"),N=la("@media (min-width:1280px) and (max-width:1919px)"),C=la("@media (min-width:1920px)"),j=o.useMemo(function(){return v?"function"==typeof v?v({}):v:{}},[v]),E=function(e){return"number"==typeof e?"".concat(8*e,"px"):"0px"},R=C&&void 0!==x?x:N&&void 0!==m?m:k&&void 0!==f?f:w&&void 0!==u?u:p,M=l(l(l(l(l({},function(){if(!a)return{};var e=E(g||0);return{display:"flex",flexWrap:"wrap",width:"100%",marginLeft:g?"-".concat(e):void 0,marginTop:g?"-".concat(e):void 0}}()),function(){if(!c)return{};if(void 0===R)return{};var e=R/12*100;return{flexBasis:"".concat(e,"%"),maxWidth:"".concat(e,"%"),flexGrow:0,flexShrink:0,boxSizing:"border-box"}}()),function(){if(!c)return{};if(!g)return{};var e=E(g);return{paddingLeft:e,paddingTop:e}}()),j),h);return t.jsx("div",l(l({ref:r,className:Oe(n),style:M},y),{},{children:b}))});ca.displayName="Grid";var pa=["children","className","required","disabled","error","focused","shrink","sx","style"],ua=o.forwardRef(function(e,r){var n=e.children,i=e.className,a=e.required,s=void 0!==a&&a,c=e.disabled,p=void 0!==c&&c,u=e.error,f=void 0!==u&&u,m=e.focused,x=void 0!==m&&m;e.shrink;var g=e.sx,v=e.style,h=d(e,pa),b=o.useMemo(function(){return g?"function"==typeof g?g({}):g:{}},[g]);return t.jsxs("label",l(l({ref:r,className:Oe("block text-sm font-medium mb-2 text-foreground",f?"text-destructive":x?"text-primary":"text-foreground",p&&"opacity-50",i),style:l(l({},b),v)},h),{},{children:[n,s&&t.jsx("span",{className:"ml-1 text-destructive",children:"*"})]}))});ua.displayName="InputLabel";var fa=["value","onChange","onChangeCommitted","min","max","step","disabled","orientation","className","style","sx","aria-label","aria-labelledby","aria-valuetext"],ma=o.forwardRef(function(e,r){var n,i,a,s,p,u,f,m,x,g,v,h,b,y,w,k,N,C,j,E,R,M,O,T,S,L,D=e.value,A=e.onChange,z=e.onChangeCommitted,I=e.min,W=void 0===I?0:I,B=e.max,P=void 0===B?100:B,$=e.step,H=void 0===$?1:$,V=e.disabled,_=void 0!==V&&V,F=e.orientation,q=void 0===F?"horizontal":F,Y=e.className,G=e.style,U=e.sx,K=e["aria-label"],X=e["aria-labelledby"],Z=e["aria-valuetext"],J=d(e,fa),Q=o.useRef(null),ee=o.useRef(!1),te=c(o.useState(D),2),re=te[0],ne=te[1],oe=o.useMemo(function(){if(!U)return{container:{}};var e="function"==typeof U?U({}):U,t={container:{}};return e.position&&(t.container.position=e.position),void 0!==e.top&&(t.container.top=e.top),void 0!==e.left&&(t.container.left=e.left),e.width&&(t.container.width=e.width),e.height&&(t.container.height=e.height),e.transform&&(t.container.transform=e.transform),e["& .MuiSlider-rail"]&&(t.rail=e["& .MuiSlider-rail"]),e["& .MuiSlider-track"]&&(t.track=e["& .MuiSlider-track"]),e["& .MuiSlider-thumb"]&&(t.thumb=e["& .MuiSlider-thumb"]),t},[U,re]);o.useEffect(function(){ee.current||ne(D)},[D]);var ie,ae,se="vertical"===q,le=Math.max(0,Math.min(1,(re-W)/(P-W))),de=function(e){ee.current&&(e.preventDefault(),fe(e))},ce=function(e){ee.current&&(e.preventDefault(),fe(e.touches[0]))},pe=function(){ee.current&&z&&z(null,re),ee.current=!1,document.removeEventListener("mousemove",de,{capture:!0}),document.removeEventListener("mouseup",pe,{capture:!0})},ue=function(){ee.current&&z&&z(null,re),ee.current=!1,document.removeEventListener("touchmove",ce,{capture:!0}),document.removeEventListener("touchend",ue,{capture:!0})},fe=function(e){if(Q.current){var t=Q.current.getBoundingClientRect();if(se){var r=t.bottom-e.clientY,n=(r=Math.max(0,Math.min(t.height,r)))/t.height,o=Math.round(n*(P-W)+W),i=Math.max(W,Math.min(P,o));ne(i),A&&A(null,i)}else{var a=e.clientX-t.left,s=(a=Math.max(0,Math.min(t.width,a)))/t.width,l=Math.round(s*(P-W)+W),d=Math.max(W,Math.min(P,l));ne(d),A&&A(null,d)}}},me=l({},se?{width:"100%",height:"100%",borderRadius:(null===(n=oe.rail)||void 0===n?void 0:n.borderRadius)||"10px",backgroundColor:(null===(i=oe.rail)||void 0===i?void 0:i.backgroundColor)||"hsl(var(--muted))",border:(null===(a=oe.rail)||void 0===a?void 0:a.border)||"none",position:"relative",zIndex:0}:{width:"100%",height:(null===(s=oe.rail)||void 0===s?void 0:s.height)||"4px",borderRadius:(null===(p=oe.rail)||void 0===p?void 0:p.borderRadius)||"2px",backgroundColor:(null===(u=oe.rail)||void 0===u?void 0:u.backgroundColor)||"hsl(var(--muted))",border:(null===(f=oe.rail)||void 0===f?void 0:f.border)||"none",position:"relative",zIndex:0}),xe=l({},se?{position:"absolute",bottom:0,left:0,width:"100%",height:"".concat(100*le,"%"),borderRadius:(null===(m=oe.track)||void 0===m?void 0:m.borderRadius)||"10px",backgroundColor:(null===(x=oe.track)||void 0===x?void 0:x.backgroundColor)||"hsl(var(--primary))",display:void 0!==(null===(ie=oe.track)||void 0===ie?void 0:ie.display)?"function"==typeof oe.track.display?oe.track.display(re)?"block":"none":oe.track.display:se&&0===re?"none":"block",border:(null===(g=oe.track)||void 0===g?void 0:g.border)||"none",zIndex:1,pointerEvents:"none"}:{position:"absolute",top:"50%",left:0,transform:"translateY(-50%)",width:"".concat(100*le,"%"),height:(null===(v=oe.track)||void 0===v?void 0:v.height)||"4px",borderRadius:(null===(h=oe.track)||void 0===h?void 0:h.borderRadius)||"2px",backgroundColor:(null===(b=oe.track)||void 0===b?void 0:b.backgroundColor)||"hsl(var(--primary))",border:(null===(y=oe.track)||void 0===y?void 0:y.border)||"none",zIndex:1,pointerEvents:"none"}),ge=l({},se?{position:"absolute",left:"50%",bottom:"".concat(100*le,"%"),transform:(null===(w=oe.thumb)||void 0===w?void 0:w.transform)||"translateX(-50%) translateY(50%)",width:(null===(k=oe.thumb)||void 0===k?void 0:k.width)||20,height:(null===(N=oe.thumb)||void 0===N?void 0:N.height)||2,backgroundColor:(null===(C=oe.thumb)||void 0===C?void 0:C.backgroundColor)||"#ffffff",boxShadow:(null===(j=oe.thumb)||void 0===j?void 0:j.boxShadow)||"0 0 4px rgba(0, 0, 0, 0.3)",borderRadius:(null===(E=oe.thumb)||void 0===E?void 0:E.borderRadius)||"1px",marginBottom:(null===(R=oe.thumb)||void 0===R?void 0:R.marginBottom)||"-4px",display:void 0!==(null===(ae=oe.thumb)||void 0===ae?void 0:ae.display)?"function"==typeof oe.thumb.display?oe.thumb.display(re)?"block":"none":oe.thumb.display:se&&re<=3?"none":"block",cursor:_?"default":"pointer",zIndex:2,pointerEvents:"auto"}:{position:"absolute",top:"50%",left:"".concat(100*le,"%"),transform:"translate(-50%, -50%)",width:(null===(M=oe.thumb)||void 0===M?void 0:M.width)||16,height:(null===(O=oe.thumb)||void 0===O?void 0:O.height)||16,backgroundColor:(null===(T=oe.thumb)||void 0===T?void 0:T.backgroundColor)||"hsl(var(--primary))",boxShadow:(null===(S=oe.thumb)||void 0===S?void 0:S.boxShadow)||"0 2px 4px rgba(0,0,0,0.2)",borderRadius:(null===(L=oe.thumb)||void 0===L?void 0:L.borderRadius)||"50%",border:"2px solid hsl(var(--background))",cursor:_?"default":"pointer",zIndex:2,pointerEvents:"auto"}),ve=o.useId(),he=void 0!==re?re:D;return t.jsxs("div",l(l({ref:Q,role:"slider",id:ve,"aria-label":K,"aria-labelledby":X,"aria-valuemin":W,"aria-valuemax":P,"aria-valuenow":he,"aria-valuetext":Z||String(he),"aria-orientation":q,"aria-disabled":_,tabIndex:_?-1:0,className:Oe("relative select-none focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",se?"h-full w-full":"w-full",Y),style:l(l(l(l({},se?{height:"100%",width:"100%"}:{}),oe.container),G),{},{pointerEvents:_?"none":"auto",touchAction:_?"auto":"none",zIndex:1}),onMouseDown:function(e){_||(e.preventDefault(),e.stopPropagation(),ee.current=!0,fe(e),document.addEventListener("mousemove",de,{capture:!0}),document.addEventListener("mouseup",pe,{capture:!0}))},onTouchStart:function(e){_||(e.preventDefault(),e.stopPropagation(),ee.current=!0,fe(e.touches[0]),document.addEventListener("touchmove",ce,{capture:!0,passive:!1}),document.addEventListener("touchend",ue,{capture:!0}))},onKeyDown:function(e){if(!_){var t=he,r=H||1;"horizontal"===q?"ArrowRight"===e.key||"ArrowUp"===e.key?(e.preventDefault(),t=Math.min(P,he+r)):"ArrowLeft"===e.key||"ArrowDown"===e.key?(e.preventDefault(),t=Math.max(W,he-r)):"Home"===e.key?(e.preventDefault(),t=W):"End"===e.key&&(e.preventDefault(),t=P):"ArrowUp"===e.key?(e.preventDefault(),t=Math.min(P,he+r)):"ArrowDown"===e.key?(e.preventDefault(),t=Math.max(W,he-r)):"Home"===e.key?(e.preventDefault(),t=W):"End"===e.key&&(e.preventDefault(),t=P),t!==he&&(ne(t),A&&A(t))}}},J),{},{children:[t.jsx("div",{style:me}),t.jsx("div",{style:xe}),t.jsx("div",{style:ge,onMouseEnter:function(e){var t;!_&&null!==(t=oe.thumb)&&void 0!==t&&t["&:hover"]&&(e.currentTarget.style.boxShadow=oe.thumb["&:hover"].boxShadow||e.currentTarget.style.boxShadow)},onMouseLeave:function(e){var t;e.currentTarget.style.boxShadow=(null===(t=oe.thumb)||void 0===t?void 0:t.boxShadow)||(se?"0 0 4px rgba(0, 0, 0, 0.3)":"0 1px 3px rgba(0,0,0,0.4)")}})]}))});ma.displayName="Slider";var xa=["className","sx","style","children","component"],ga=o.forwardRef(function(e,r){var n=e.className,i=e.sx,a=e.style,s=e.children,c=e.component,p=void 0===c?"div":c,u=d(e,xa),f=p,m=o.useMemo(function(){if(!i)return{};var e=l({},"function"==typeof i?i({}):i);if(void 0!==e.p&&(e.padding=Te(e.p),delete e.p),void 0!==e.px&&(e.paddingLeft=Te(e.px),e.paddingRight=Te(e.px),delete e.px),void 0!==e.py&&(e.paddingTop=Te(e.py),e.paddingBottom=Te(e.py),delete e.py),void 0!==e.pt&&(e.paddingTop=Te(e.pt),delete e.pt),void 0!==e.pb&&(e.paddingBottom=Te(e.pb),delete e.pb),void 0!==e.pl&&(e.paddingLeft=Te(e.pl),delete e.pl),void 0!==e.pr&&(e.paddingRight=Te(e.pr),delete e.pr),void 0!==e.m&&(e.margin=Te(e.m),delete e.m),void 0!==e.mx&&(e.marginLeft=Te(e.mx),e.marginRight=Te(e.mx),delete e.mx),void 0!==e.my&&(e.marginTop=Te(e.my),e.marginBottom=Te(e.my),delete e.my),void 0!==e.mt&&(e.marginTop=Te(e.mt),delete e.mt),void 0!==e.mb&&(e.marginBottom=Te(e.mb),delete e.mb),void 0!==e.ml&&(e.marginLeft=Te(e.ml),delete e.ml),void 0!==e.mr&&(e.marginRight=Te(e.mr),delete e.mr),void 0!==e.gap&&(e.gap=Te(e.gap),delete e.gap),e.color&&"string"==typeof e.color&&("text.primary"===e.color||"textPrimary"===e.color?e.color="hsl(var(--foreground))":"text.secondary"===e.color||"textSecondary"===e.color?e.color="hsl(var(--muted-foreground))":"primary"===e.color?e.color="hsl(var(--primary))":"secondary"===e.color?e.color="hsl(var(--secondary))":"error"===e.color&&(e.color="hsl(var(--destructive))")),e.bgcolor){if("string"==typeof e.bgcolor&&e.bgcolor.includes(".")){e.backgroundColor={"background.paper":"hsl(var(--card))","background.default":"hsl(var(--background))","background.card":"hsl(var(--card))"}[e.bgcolor]||e.bgcolor}else e.backgroundColor=e.bgcolor;delete e.bgcolor}return e},[i]),x=l(l({},m),a),g="flex"===m.display?"flex":"",v="column"===m.flexDirection?"flex-col":"",h="center"===m.alignItems?"items-center":"",b="space-between"===m.justifyContent?"justify-between":"center"===m.justifyContent?"justify-center":"";return t.jsx(f,l(l({ref:r,className:Oe(g,v,h,b,n),style:x},u),{},{children:s}))});ga.displayName="Box",exports.Accordion=yr,exports.AccordionDetails=kr,exports.AccordionSummary=wr,exports.Alert=jr,exports.AppBar=Di,exports.Autocomplete=Zo,exports.Avatar=ji,exports.Box=ga,exports.Button=Ze,exports.Card=Pe,exports.CardActionArea=qe,exports.CardContent=_e,exports.CardDescription=Ve,exports.CardFooter=Fe,exports.CardHeader=$e,exports.CardTitle=He,exports.Checkbox=Zt,exports.Chip=jt,exports.Collapse=xi,exports.Container=bi,exports.DatePicker=ei,exports.Dialog=function(e){var n=e.open,i=e.onClose,a=e.children,s=e.variant,c=e.maxWidth,p=e.fullWidth,u=e.fullScreen,f=void 0!==u&&u,m=e.PaperProps,x=e["aria-labelledby"],g=e["aria-describedby"],v=d(e,tt),h=o.useId(),b=Se();et(Qe);var y=o.useMemo(function(){return null!=m&&m.sx?"function"==typeof m.sx?m.sx({}):m.sx:{}},[null==m?void 0:m.sx]);if(!n)return null;var w={xs:"max-w-xs",sm:"max-w-sm",md:"max-w-md",lg:"max-w-lg",xl:"max-w-xl"}[c]||"max-w-lg",k="pops"===s?{minWidth:"300px",maxWidth:"800px"}:{},N="drawer"===s?{margin:0,maxHeight:"100vh",height:"100vh",borderRadius:"16px 0 0 16px"}:{},C="pops"===s?"16px":"drawer"===s?"16px 0 0 16px":"8px",j=(null==m?void 0:m.style)||{},E=(null==m?void 0:m.className)||"",R="drawer"===s?"flex items-stretch justify-end":f?"flex items-stretch":"flex items-center justify-center",M="drawer"===s?parseInt(getComputedStyle(document.documentElement).getPropertyValue("--z-index-drawer")||"1300",10):parseInt(getComputedStyle(document.documentElement).getPropertyValue("--z-index-modal")||"1300",10),O=t.jsxs(t.Fragment,{children:[t.jsx("div",{className:Oe("fixed inset-0","dark"===b?"bg-black/80":"bg-black/60"),style:{zIndex:M-1,pointerEvents:"auto"},onClick:function(e){i&&i(e,"backdropClick")}}),t.jsx("div",l(l({className:Oe("fixed inset-0",R),style:{zIndex:M,pointerEvents:"none"}},v),{},{children:t.jsx("div",{role:"dialog","aria-modal":"true","aria-labelledby":x||"".concat(h,"-title"),"aria-describedby":g||"".concat(h,"-description"),className:Oe("relative shadow-2xl",f||"drawer"===s?"h-full w-full":"w-full max-w-[calc(100%-32px)]",f||"drawer"===s?"":"mx-4",!f&&"drawer"!==s&&w,p&&!f&&"drawer"!==s&&"max-w-full","drawer"===s&&"bg-background","drawer"!==s&&"bg-card",E),style:l(l(l(l(l({},{}),{},{borderRadius:f?0:C,position:"relative",opacity:1,pointerEvents:"auto",touchAction:"none"},k),N),y),j),children:a})}))]});return"undefined"!=typeof document?r.createPortal(O,document.body):null},exports.DialogActions=gt,exports.DialogContent=ct,exports.DialogContentText=vi,exports.DialogDescription=xt,exports.DialogFooter=ft,exports.DialogHeader=ut,exports.DialogTitle=mt,exports.Divider=wi,exports.Drawer=ri,exports.FormControl=Kt,exports.FormControlLabel=oi,exports.FormGroup=li,exports.FormLabel=ai,exports.Grid=ca,exports.IconButton=bt,exports.InputAdornment=Oi,exports.InputLabel=ua,exports.List=sr,exports.ListItem=lr,exports.ListItemAvatar=ur,exports.ListItemButton=pr,exports.ListItemIcon=dr,exports.ListItemText=cr,exports.Menu=$i,exports.MenuItem=Hi,exports.MenuItemIcon=Vi,exports.MenuItemText=_i,exports.Paper=Si,exports.Radio=fi,exports.RadioGroup=pi,exports.Select=Gt,exports.SelectMenuItem=Ut,exports.Slider=ma,exports.Stack=Ri,exports.Tab=Dr,exports.Table=Zi,exports.TableBody=ea,exports.TableCell=ra,exports.TableContainer=Ji,exports.TableHead=Qi,exports.TableRow=ta,exports.Tabs=Lr,exports.TextField=Ot,exports.ToggleButton=aa,exports.ToggleButtonGroup=sa,exports.Toolbar=zi,exports.Tooltip=Go,exports.Typography=kt;
|
|
9
9
|
//# sourceMappingURL=index.cjs.js.map
|