@mhome/ui 0.1.11 → 0.1.12
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 +2 -2
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.css +1 -1
- package/dist/index.esm.js +2 -2
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/chip.jsx +1 -8
- package/src/components/date-picker.jsx +0 -3
- package/src/components/select.jsx +17 -20
- package/src/components/text-field.jsx +4 -1
package/dist/index.esm.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import*as e from"react";import t,{forwardRef as r,createElement as n,useState as o,useEffect as i}from"react";import{jsx as a,jsxs as l,Fragment as s}from"react/jsx-runtime";import{createPortal as d}from"react-dom";import*as c from"dayjs";function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function u(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function f(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function m(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?f(Object(r),!0).forEach(function(t){u(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):f(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function g(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function v(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],s=!0,d=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);s=!0);}catch(e){d=!0,o=e}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(d)throw o}}return l}}(e,t)||b(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function x(e){return function(e){if(Array.isArray(e))return p(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||b(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(e){return h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},h(e)}function b(e,t){if(e){if("string"==typeof e)return p(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?p(e,t):void 0}}function y(e){var t,r,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=y(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function w(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=y(e))&&(n&&(n+=" "),n+=t);return n}const k=(e=new Map,t=null,r)=>({nextPart:e,validators:t,classGroupId:r}),N="-",C=[],E=e=>{const t=O(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:e=>{if(e.startsWith("[")&&e.endsWith("]"))return L(e);const r=e.split(N),n=""===r[0]&&r.length>1?1:0;return R(r,n,t)},getConflictingClassGroupIds:(e,t)=>{if(t){const t=n[e],o=r[e];return t?o?((e,t)=>{const r=new Array(e.length+t.length);for(let t=0;t<e.length;t++)r[t]=e[t];for(let n=0;n<t.length;n++)r[e.length+n]=t[n];return r})(o,t):t:o||C}return r[e]||C}}},R=(e,t,r)=>{if(0===e.length-t)return r.classGroupId;const n=e[t],o=r.nextPart.get(n);if(o){const r=R(e,t+1,o);if(r)return r}const i=r.validators;if(null===i)return;const a=0===t?e.join(N):e.slice(t).join(N),l=i.length;for(let e=0;e<l;e++){const t=i[e];if(t.validator(a))return t.classGroupId}},L=e=>-1===e.slice(1,-1).indexOf(":")?void 0:(()=>{const t=e.slice(1,-1),r=t.indexOf(":"),n=t.slice(0,r);return n?"arbitrary.."+n:void 0})(),O=e=>{const{theme:t,classGroups:r}=e;return T(r,t)},T=(e,t)=>{const r=k();for(const n in e){const o=e[n];M(o,r,n,t)}return r},M=(e,t,r,n)=>{const o=e.length;for(let i=0;i<o;i++){const o=e[i];S(o,t,r,n)}},S=(e,t,r,n)=>{"string"!=typeof e?"function"!=typeof e?A(e,t,r,n):j(e,t,r,n):z(e,t,r)},z=(e,t,r)=>{(""===e?t:D(t,e)).classGroupId=r},j=(e,t,r,n)=>{I(e)?M(e(n),t,r,n):(null===t.validators&&(t.validators=[]),t.validators.push(((e,t)=>({classGroupId:e,validator:t}))(r,e)))},A=(e,t,r,n)=>{const o=Object.entries(e),i=o.length;for(let e=0;e<i;e++){const[i,a]=o[e];M(a,D(t,i),r,n)}},D=(e,t)=>{let r=e;const n=t.split(N),o=n.length;for(let e=0;e<o;e++){const t=n[e];let o=r.nextPart.get(t);o||(o=k(),r.nextPart.set(t,o)),r=o}return r},I=e=>"isThemeGetter"in e&&!0===e.isThemeGetter,W=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=Object.create(null),n=Object.create(null);const o=(o,i)=>{r[o]=i,t++,t>e&&(t=0,n=r,r=Object.create(null))};return{get(e){let t=r[e];return void 0!==t?t:void 0!==(t=n[e])?(o(e,t),t):void 0},set(e,t){e in r?r[e]=t:o(e,t)}}},B=[],P=(e,t,r,n,o)=>({modifiers:e,hasImportantModifier:t,baseClassName:r,maybePostfixModifierPosition:n,isExternal:o}),H=e=>{const{prefix:t,experimentalParseClassName:r}=e;let n=e=>{const t=[];let r,n=0,o=0,i=0;const a=e.length;for(let l=0;l<a;l++){const a=e[l];if(0===n&&0===o){if(":"===a){t.push(e.slice(i,l)),i=l+1;continue}if("/"===a){r=l;continue}}"["===a?n++:"]"===a?n--:"("===a?o++:")"===a&&o--}const l=0===t.length?e:e.slice(i);let s=l,d=!1;l.endsWith("!")?(s=l.slice(0,-1),d=!0):l.startsWith("!")&&(s=l.slice(1),d=!0);return P(t,d,s,r&&r>i?r-i:void 0)};if(t){const e=t+":",r=n;n=t=>t.startsWith(e)?r(t.slice(e.length)):P(B,!1,t,void 0,!0)}if(r){const e=n;n=t=>r({className:t,parseClassName:e})}return n},V=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((e,r)=>{t.set(e,1e6+r)}),e=>{const r=[];let n=[];for(let o=0;o<e.length;o++){const i=e[o],a="["===i[0],l=t.has(i);a||l?(n.length>0&&(n.sort(),r.push(...n),n=[]),r.push(i)):n.push(i)}return n.length>0&&(n.sort(),r.push(...n)),r}},F=/\s+/,q=e=>{if("string"==typeof e)return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=q(e[n]))&&(r&&(r+=" "),r+=t);return r},_=[],G=e=>{const t=t=>t[e]||_;return t.isThemeGetter=!0,t},U=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Y=/^\((?:(\w[\w-]*):)?(.+)\)$/i,$=/^\d+\/\d+$/,K=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,X=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Z=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,J=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Q=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ee=e=>$.test(e),te=e=>!!e&&!Number.isNaN(Number(e)),re=e=>!!e&&Number.isInteger(Number(e)),ne=e=>e.endsWith("%")&&te(e.slice(0,-1)),oe=e=>K.test(e),ie=()=>!0,ae=e=>X.test(e)&&!Z.test(e),le=()=>!1,se=e=>J.test(e),de=e=>Q.test(e),ce=e=>!ue(e)&&!he(e),pe=e=>Ee(e,Te,le),ue=e=>U.test(e),fe=e=>Ee(e,Me,ae),me=e=>Ee(e,Se,te),ge=e=>Ee(e,Le,le),ve=e=>Ee(e,Oe,de),xe=e=>Ee(e,je,se),he=e=>Y.test(e),be=e=>Re(e,Me),ye=e=>Re(e,ze),we=e=>Re(e,Le),ke=e=>Re(e,Te),Ne=e=>Re(e,Oe),Ce=e=>Re(e,je,!0),Ee=(e,t,r)=>{const n=U.exec(e);return!!n&&(n[1]?t(n[1]):r(n[2]))},Re=(e,t,r=!1)=>{const n=Y.exec(e);return!!n&&(n[1]?t(n[1]):r)},Le=e=>"position"===e||"percentage"===e,Oe=e=>"image"===e||"url"===e,Te=e=>"length"===e||"size"===e||"bg-size"===e,Me=e=>"length"===e,Se=e=>"number"===e,ze=e=>"family-name"===e,je=e=>"shadow"===e,Ae=((e,...t)=>{let r,n,o,i;const a=e=>{const t=n(e);if(t)return t;const i=((e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:o,sortModifiers:i}=t,a=[],l=e.trim().split(F);let s="";for(let e=l.length-1;e>=0;e-=1){const t=l[e],{isExternal:d,modifiers:c,hasImportantModifier:p,baseClassName:u,maybePostfixModifierPosition:f}=r(t);if(d){s=t+(s.length>0?" "+s:s);continue}let m=!!f,g=n(m?u.substring(0,f):u);if(!g){if(!m){s=t+(s.length>0?" "+s:s);continue}if(g=n(u),!g){s=t+(s.length>0?" "+s:s);continue}m=!1}const v=0===c.length?"":1===c.length?c[0]:i(c).join(":"),x=p?v+"!":v,h=x+g;if(a.indexOf(h)>-1)continue;a.push(h);const b=o(g,m);for(let e=0;e<b.length;++e){const t=b[e];a.push(x+t)}s=t+(s.length>0?" "+s:s)}return s})(e,r);return o(e,i),i};return i=l=>{const s=t.reduce((e,t)=>t(e),e());return r=(e=>({cache:W(e.cacheSize),parseClassName:H(e),sortModifiers:V(e),...E(e)}))(s),n=r.cache.get,o=r.cache.set,i=a,a(l)},(...e)=>i(((...e)=>{let t,r,n=0,o="";for(;n<e.length;)(t=e[n++])&&(r=q(t))&&(o&&(o+=" "),o+=r);return o})(...e))})(()=>{const e=G("color"),t=G("font"),r=G("text"),n=G("font-weight"),o=G("tracking"),i=G("leading"),a=G("breakpoint"),l=G("container"),s=G("spacing"),d=G("radius"),c=G("shadow"),p=G("inset-shadow"),u=G("text-shadow"),f=G("drop-shadow"),m=G("blur"),g=G("perspective"),v=G("aspect"),x=G("ease"),h=G("animate"),b=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",he,ue],y=()=>[he,ue,s],w=()=>[ee,"full","auto",...y()],k=()=>[re,"none","subgrid",he,ue],N=()=>["auto",{span:["full",re,he,ue]},re,he,ue],C=()=>[re,"auto",he,ue],E=()=>["auto","min","max","fr",he,ue],R=()=>["auto",...y()],L=()=>[ee,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...y()],O=()=>[e,he,ue],T=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",we,ge,{position:[he,ue]}],M=()=>["auto","cover","contain",ke,pe,{size:[he,ue]}],S=()=>[ne,be,fe],z=()=>["","none","full",d,he,ue],j=()=>["",te,be,fe],A=()=>[te,ne,we,ge],D=()=>["","none",m,he,ue],I=()=>["none",te,he,ue],W=()=>["none",te,he,ue],B=()=>[te,he,ue],P=()=>[ee,"full",...y()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[oe],breakpoint:[oe],color:[ie],container:[oe],"drop-shadow":[oe],ease:["in","out","in-out"],font:[ce],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[oe],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[oe],shadow:[oe],spacing:["px",te],text:[oe],"text-shadow":[oe],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",ee,ue,he,v]}],container:["container"],columns:[{columns:[te,ue,he,l]}],"break-after":[{"break-after":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-before":[{"break-before":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:b()}],overflow:[{overflow:["auto","hidden","clip","visible","scroll"]}],"overflow-x":[{"overflow-x":["auto","hidden","clip","visible","scroll"]}],"overflow-y":[{"overflow-y":["auto","hidden","clip","visible","scroll"]}],overscroll:[{overscroll:["auto","contain","none"]}],"overscroll-x":[{"overscroll-x":["auto","contain","none"]}],"overscroll-y":[{"overscroll-y":["auto","contain","none"]}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:w()}],"inset-x":[{"inset-x":w()}],"inset-y":[{"inset-y":w()}],start:[{start:w()}],end:[{end:w()}],top:[{top:w()}],right:[{right:w()}],bottom:[{bottom:w()}],left:[{left:w()}],visibility:["visible","invisible","collapse"],z:[{z:[re,"auto",he,ue]}],basis:[{basis:[ee,"full","auto",l,...y()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[te,ee,"auto","initial","none",ue]}],grow:[{grow:["",te,he,ue]}],shrink:[{shrink:["",te,he,ue]}],order:[{order:[re,"first","last","none",he,ue]}],"grid-cols":[{"grid-cols":k()}],"col-start-end":[{col:N()}],"col-start":[{"col-start":C()}],"col-end":[{"col-end":C()}],"grid-rows":[{"grid-rows":k()}],"row-start-end":[{row:N()}],"row-start":[{"row-start":C()}],"row-end":[{"row-end":C()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":E()}],"auto-rows":[{"auto-rows":E()}],gap:[{gap:y()}],"gap-x":[{"gap-x":y()}],"gap-y":[{"gap-y":y()}],"justify-content":[{justify:["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe","normal"]}],"justify-items":[{"justify-items":["start","end","center","stretch","center-safe","end-safe","normal"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch","center-safe","end-safe"]}],"align-content":[{content:["normal","start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"]}],"align-items":[{items:["start","end","center","stretch","center-safe","end-safe",{baseline:["","last"]}]}],"align-self":[{self:["auto","start","end","center","stretch","center-safe","end-safe",{baseline:["","last"]}]}],"place-content":[{"place-content":["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"]}],"place-items":[{"place-items":["start","end","center","stretch","center-safe","end-safe","baseline"]}],"place-self":[{"place-self":["auto","start","end","center","stretch","center-safe","end-safe"]}],p:[{p:y()}],px:[{px:y()}],py:[{py:y()}],ps:[{ps:y()}],pe:[{pe:y()}],pt:[{pt:y()}],pr:[{pr:y()}],pb:[{pb:y()}],pl:[{pl:y()}],m:[{m:R()}],mx:[{mx:R()}],my:[{my:R()}],ms:[{ms:R()}],me:[{me:R()}],mt:[{mt:R()}],mr:[{mr:R()}],mb:[{mb:R()}],ml:[{ml:R()}],"space-x":[{"space-x":y()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":y()}],"space-y-reverse":["space-y-reverse"],size:[{size:L()}],w:[{w:[l,"screen",...L()]}],"min-w":[{"min-w":[l,"screen","none",...L()]}],"max-w":[{"max-w":[l,"screen","none","prose",{screen:[a]},...L()]}],h:[{h:["screen","lh",...L()]}],"min-h":[{"min-h":["screen","lh","none",...L()]}],"max-h":[{"max-h":["screen","lh",...L()]}],"font-size":[{text:["base",r,be,fe]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,he,me]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",ne,ue]}],"font-family":[{font:[ye,ue,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,he,ue]}],"line-clamp":[{"line-clamp":[te,"none",he,me]}],leading:[{leading:[i,...y()]}],"list-image":[{"list-image":["none",he,ue]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",he,ue]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:O()}],"text-color":[{text:O()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:["solid","dashed","dotted","double","wavy"]}],"text-decoration-thickness":[{decoration:[te,"from-font","auto",he,fe]}],"text-decoration-color":[{decoration:O()}],"underline-offset":[{"underline-offset":[te,"auto",he,ue]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:y()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",he,ue]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",he,ue]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:T()}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","space","round"]}]}],"bg-size":[{bg:M()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},re,he,ue],radial:["",he,ue],conic:[re,he,ue]},Ne,ve]}],"bg-color":[{bg:O()}],"gradient-from-pos":[{from:S()}],"gradient-via-pos":[{via:S()}],"gradient-to-pos":[{to:S()}],"gradient-from":[{from:O()}],"gradient-via":[{via:O()}],"gradient-to":[{to:O()}],rounded:[{rounded:z()}],"rounded-s":[{"rounded-s":z()}],"rounded-e":[{"rounded-e":z()}],"rounded-t":[{"rounded-t":z()}],"rounded-r":[{"rounded-r":z()}],"rounded-b":[{"rounded-b":z()}],"rounded-l":[{"rounded-l":z()}],"rounded-ss":[{"rounded-ss":z()}],"rounded-se":[{"rounded-se":z()}],"rounded-ee":[{"rounded-ee":z()}],"rounded-es":[{"rounded-es":z()}],"rounded-tl":[{"rounded-tl":z()}],"rounded-tr":[{"rounded-tr":z()}],"rounded-br":[{"rounded-br":z()}],"rounded-bl":[{"rounded-bl":z()}],"border-w":[{border:j()}],"border-w-x":[{"border-x":j()}],"border-w-y":[{"border-y":j()}],"border-w-s":[{"border-s":j()}],"border-w-e":[{"border-e":j()}],"border-w-t":[{"border-t":j()}],"border-w-r":[{"border-r":j()}],"border-w-b":[{"border-b":j()}],"border-w-l":[{"border-l":j()}],"divide-x":[{"divide-x":j()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":j()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:["solid","dashed","dotted","double","hidden","none"]}],"divide-style":[{divide:["solid","dashed","dotted","double","hidden","none"]}],"border-color":[{border:O()}],"border-color-x":[{"border-x":O()}],"border-color-y":[{"border-y":O()}],"border-color-s":[{"border-s":O()}],"border-color-e":[{"border-e":O()}],"border-color-t":[{"border-t":O()}],"border-color-r":[{"border-r":O()}],"border-color-b":[{"border-b":O()}],"border-color-l":[{"border-l":O()}],"divide-color":[{divide:O()}],"outline-style":[{outline:["solid","dashed","dotted","double","none","hidden"]}],"outline-offset":[{"outline-offset":[te,he,ue]}],"outline-w":[{outline:["",te,be,fe]}],"outline-color":[{outline:O()}],shadow:[{shadow:["","none",c,Ce,xe]}],"shadow-color":[{shadow:O()}],"inset-shadow":[{"inset-shadow":["none",p,Ce,xe]}],"inset-shadow-color":[{"inset-shadow":O()}],"ring-w":[{ring:j()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:O()}],"ring-offset-w":[{"ring-offset":[te,fe]}],"ring-offset-color":[{"ring-offset":O()}],"inset-ring-w":[{"inset-ring":j()}],"inset-ring-color":[{"inset-ring":O()}],"text-shadow":[{"text-shadow":["none",u,Ce,xe]}],"text-shadow-color":[{"text-shadow":O()}],opacity:[{opacity:[te,he,ue]}],"mix-blend":[{"mix-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"]}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[te]}],"mask-image-linear-from-pos":[{"mask-linear-from":A()}],"mask-image-linear-to-pos":[{"mask-linear-to":A()}],"mask-image-linear-from-color":[{"mask-linear-from":O()}],"mask-image-linear-to-color":[{"mask-linear-to":O()}],"mask-image-t-from-pos":[{"mask-t-from":A()}],"mask-image-t-to-pos":[{"mask-t-to":A()}],"mask-image-t-from-color":[{"mask-t-from":O()}],"mask-image-t-to-color":[{"mask-t-to":O()}],"mask-image-r-from-pos":[{"mask-r-from":A()}],"mask-image-r-to-pos":[{"mask-r-to":A()}],"mask-image-r-from-color":[{"mask-r-from":O()}],"mask-image-r-to-color":[{"mask-r-to":O()}],"mask-image-b-from-pos":[{"mask-b-from":A()}],"mask-image-b-to-pos":[{"mask-b-to":A()}],"mask-image-b-from-color":[{"mask-b-from":O()}],"mask-image-b-to-color":[{"mask-b-to":O()}],"mask-image-l-from-pos":[{"mask-l-from":A()}],"mask-image-l-to-pos":[{"mask-l-to":A()}],"mask-image-l-from-color":[{"mask-l-from":O()}],"mask-image-l-to-color":[{"mask-l-to":O()}],"mask-image-x-from-pos":[{"mask-x-from":A()}],"mask-image-x-to-pos":[{"mask-x-to":A()}],"mask-image-x-from-color":[{"mask-x-from":O()}],"mask-image-x-to-color":[{"mask-x-to":O()}],"mask-image-y-from-pos":[{"mask-y-from":A()}],"mask-image-y-to-pos":[{"mask-y-to":A()}],"mask-image-y-from-color":[{"mask-y-from":O()}],"mask-image-y-to-color":[{"mask-y-to":O()}],"mask-image-radial":[{"mask-radial":[he,ue]}],"mask-image-radial-from-pos":[{"mask-radial-from":A()}],"mask-image-radial-to-pos":[{"mask-radial-to":A()}],"mask-image-radial-from-color":[{"mask-radial-from":O()}],"mask-image-radial-to-color":[{"mask-radial-to":O()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"]}],"mask-image-conic-pos":[{"mask-conic":[te]}],"mask-image-conic-from-pos":[{"mask-conic-from":A()}],"mask-image-conic-to-pos":[{"mask-conic-to":A()}],"mask-image-conic-from-color":[{"mask-conic-from":O()}],"mask-image-conic-to-color":[{"mask-conic-to":O()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:T()}],"mask-repeat":[{mask:["no-repeat",{repeat:["","x","y","space","round"]}]}],"mask-size":[{mask:M()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",he,ue]}],filter:[{filter:["","none",he,ue]}],blur:[{blur:D()}],brightness:[{brightness:[te,he,ue]}],contrast:[{contrast:[te,he,ue]}],"drop-shadow":[{"drop-shadow":["","none",f,Ce,xe]}],"drop-shadow-color":[{"drop-shadow":O()}],grayscale:[{grayscale:["",te,he,ue]}],"hue-rotate":[{"hue-rotate":[te,he,ue]}],invert:[{invert:["",te,he,ue]}],saturate:[{saturate:[te,he,ue]}],sepia:[{sepia:["",te,he,ue]}],"backdrop-filter":[{"backdrop-filter":["","none",he,ue]}],"backdrop-blur":[{"backdrop-blur":D()}],"backdrop-brightness":[{"backdrop-brightness":[te,he,ue]}],"backdrop-contrast":[{"backdrop-contrast":[te,he,ue]}],"backdrop-grayscale":[{"backdrop-grayscale":["",te,he,ue]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[te,he,ue]}],"backdrop-invert":[{"backdrop-invert":["",te,he,ue]}],"backdrop-opacity":[{"backdrop-opacity":[te,he,ue]}],"backdrop-saturate":[{"backdrop-saturate":[te,he,ue]}],"backdrop-sepia":[{"backdrop-sepia":["",te,he,ue]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":y()}],"border-spacing-x":[{"border-spacing-x":y()}],"border-spacing-y":[{"border-spacing-y":y()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",he,ue]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[te,"initial",he,ue]}],ease:[{ease:["linear","initial",x,he,ue]}],delay:[{delay:[te,he,ue]}],animate:[{animate:["none",h,he,ue]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[g,he,ue]}],"perspective-origin":[{"perspective-origin":b()}],rotate:[{rotate:I()}],"rotate-x":[{"rotate-x":I()}],"rotate-y":[{"rotate-y":I()}],"rotate-z":[{"rotate-z":I()}],scale:[{scale:W()}],"scale-x":[{"scale-x":W()}],"scale-y":[{"scale-y":W()}],"scale-z":[{"scale-z":W()}],"scale-3d":["scale-3d"],skew:[{skew:B()}],"skew-x":[{"skew-x":B()}],"skew-y":[{"skew-y":B()}],transform:[{transform:[he,ue,"","none","gpu","cpu"]}],"transform-origin":[{origin:b()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:P()}],"translate-x":[{"translate-x":P()}],"translate-y":[{"translate-y":P()}],"translate-z":[{"translate-z":P()}],"translate-none":["translate-none"],accent:[{accent:O()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:O()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",he,ue]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":y()}],"scroll-mx":[{"scroll-mx":y()}],"scroll-my":[{"scroll-my":y()}],"scroll-ms":[{"scroll-ms":y()}],"scroll-me":[{"scroll-me":y()}],"scroll-mt":[{"scroll-mt":y()}],"scroll-mr":[{"scroll-mr":y()}],"scroll-mb":[{"scroll-mb":y()}],"scroll-ml":[{"scroll-ml":y()}],"scroll-p":[{"scroll-p":y()}],"scroll-px":[{"scroll-px":y()}],"scroll-py":[{"scroll-py":y()}],"scroll-ps":[{"scroll-ps":y()}],"scroll-pe":[{"scroll-pe":y()}],"scroll-pt":[{"scroll-pt":y()}],"scroll-pr":[{"scroll-pr":y()}],"scroll-pb":[{"scroll-pb":y()}],"scroll-pl":[{"scroll-pl":y()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",he,ue]}],fill:[{fill:["none",...O()]}],"stroke-w":[{stroke:[te,be,fe,me]}],stroke:[{stroke:["none",...O()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}});function De(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return Ae(w(t))}function Ie(e){return"number"==typeof e?"".concat(8*e,"px"):e}var We=function(){var e=v(t.useState(function(){return"undefined"!=typeof document&&document.documentElement.classList.contains("dark")}),2),r=e[0],n=e[1];return t.useEffect(function(){if("undefined"!=typeof document){var e=new MutationObserver(function(){n(document.documentElement.classList.contains("dark"))});return e.observe(document.documentElement,{attributes:!0,attributeFilter:["class"]}),function(){return e.disconnect()}}},[]),r?"dark":"light"},Be=["className","elevation","variant","square","style"],Pe=["className"],He=["className"],Ve=["className"],Fe=["className"],qe=["className"],_e=["className"],Ge=e.forwardRef(function(e,t){var r=e.className,n=e.elevation,o=void 0===n?1:n,i=e.variant,l=void 0===i?"elevation":i,s=e.square,d=void 0!==s&&s,c=e.style,p=g(e,Be);return a("div",m({ref:t,className:De("bg-card text-card-foreground",!d&&"rounded-lg","border",0===o&&"elevation"===l&&"shadow-none",r),style:m(m({},function(){if("outlined"===l)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,Math.round(o)))]||e[1]}}()),c)},p))});Ge.displayName="Card";var Ue=e.memo(e.forwardRef(function(e,t){var r=e.className,n=g(e,Pe);return a("div",m({ref:t,className:De("flex flex-col space-y-1.5 p-6",r)},n))}));Ue.displayName="CardHeader";var Ye=e.memo(e.forwardRef(function(e,t){var r=e.className,n=g(e,He);return a("h3",m({ref:t,className:De("text-2xl font-semibold leading-none tracking-tight",r)},n))}));Ye.displayName="CardTitle";var $e=e.memo(e.forwardRef(function(e,t){var r=e.className,n=g(e,Ve);return a("p",m({ref:t,className:De("text-sm text-muted-foreground",r)},n))}));$e.displayName="CardDescription";var Ke=e.memo(e.forwardRef(function(e,t){var r=e.className,n=g(e,Fe);return a("div",m({ref:t,className:De("p-6",r)},n))}));Ke.displayName="CardContent";var Xe=e.memo(e.forwardRef(function(e,t){var r=e.className,n=g(e,qe);return a("div",m({ref:t,className:De("flex items-center p-6 pt-0",r)},n))}));Xe.displayName="CardFooter";var Ze=e.forwardRef(function(e,t){var r=e.className,n=g(e,_e);return a("div",m({ref:t,role:"button",tabIndex:0,className:De("cursor-pointer rounded-lg transition-colors hover:bg-accent focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",r),onKeyDown:function(e){"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),n.onClick&&n.onClick(e))}},n))});Ze.displayName="CardActionArea";const Je=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,Qe=w,et=(e,t)=>r=>{var n;if(null==(null==t?void 0:t.variants))return Qe(e,null==r?void 0:r.class,null==r?void 0:r.className);const{variants:o,defaultVariants:i}=t,a=Object.keys(o).map(e=>{const t=null==r?void 0:r[e],n=null==i?void 0:i[e];if(null===t)return null;const a=Je(t)||Je(n);return o[e][a]}),l=r&&Object.entries(r).reduce((e,t)=>{let[r,n]=t;return void 0===n||(e[r]=n),e},{}),s=null==t||null===(n=t.compoundVariants)||void 0===n?void 0:n.reduce((e,t)=>{let{class:r,className:n,...o}=t;return Object.entries(o).every(e=>{let[t,r]=e;return Array.isArray(r)?r.includes({...i,...l}[t]):{...i,...l}[t]===r})?[...e,r,n]:e},[]);return Qe(e,a,s,null==r?void 0:r.class,null==r?void 0:r.className)};var tt=["className","variant","size","startIcon","endIcon","children","style","color","fullWidth","disabled","href","component"],rt=et("inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),nt=e.forwardRef(function(e,t){var r=e.className,n=e.variant,o=e.size,i=e.startIcon,s=e.endIcon,d=e.children,c=e.style,p=e.color,u=e.fullWidth,f=void 0!==u&&u,v=e.disabled,x=void 0!==v&&v,h=e.href,b=e.component,y=g(e,tt),w="outlined"===n?"outline":"contained"===n?"default":"text"===n?"ghost":"error"===p?"destructive":n,k="small"===o?"sm":"medium"===o?"default":"large"===o?"lg":o||"default",N=b||(h?"a":"button"),C=m(h?{href:h}:{type:"button",disabled:x},y);return l(N,m(m({className:De(rt({variant:w,size:k}),f&&"w-full",r),ref:t,style:c},C),{},{children:[i&&a("span",{className:"mr-2 inline-flex items-center",children:i}),d,s&&a("span",{className:"ml-2 inline-flex items-center",children:s})]}))});nt.displayName="Button";var ot=t.createContext("solid"),it={default:"solid"},at=function(e){return t.useContext(ot)||e.default},lt=["open","onClose","children","variant","maxWidth","fullWidth","fullScreen","PaperProps","aria-labelledby","aria-describedby"],st=["className","children","style","sx"],dt=["padding","paddingTop","paddingBottom","paddingLeft","paddingRight","backgroundColor"],ct=["className"],pt=["className"],ut=["className","style","sx"],ft=["className","id"],mt=["className","style"],gt=["padding","paddingTop","paddingBottom","paddingLeft","paddingRight","gap","backgroundColor"],vt=function(t){var r=t.open,n=t.onClose,o=t.children,i=t.variant,c=t.maxWidth,p=t.fullWidth,u=t.fullScreen,f=void 0!==u&&u,v=t.PaperProps,x=t["aria-labelledby"],h=t["aria-describedby"],b=g(t,lt),y=e.useId(),w=We();at(it);var k=e.useMemo(function(){return null!=v&&v.sx?"function"==typeof v.sx?v.sx({}):v.sx:{}},[null==v?void 0:v.sx]);if(!r)return null;var N={xs:"max-w-xs",sm:"max-w-sm",md:"max-w-md",lg:"max-w-lg",xl:"max-w-xl"}[c]||"max-w-lg",C="pops"===i?{minWidth:"300px",maxWidth:"800px"}:{},E="drawer"===i?{margin:0,maxHeight:"100vh",height:"100vh",borderRadius:"16px 0 0 16px"}:{},R="pops"===i?"16px":"drawer"===i?"16px 0 0 16px":"8px",L=(null==v?void 0:v.style)||{},O=(null==v?void 0:v.className)||"",T="drawer"===i?"flex items-stretch justify-end":f?"flex items-stretch":"flex items-center justify-center",M="drawer"===i?parseInt(getComputedStyle(document.documentElement).getPropertyValue("--z-index-drawer")||"1300",10):parseInt(getComputedStyle(document.documentElement).getPropertyValue("--z-index-modal")||"1300",10),S=l(s,{children:[a("div",{className:De("fixed inset-0","dark"===w?"bg-black/80":"bg-black/60"),style:{zIndex:M-1,pointerEvents:"auto"},onClick:function(e){n&&n(e,"backdropClick")}}),a("div",m(m({className:De("fixed inset-0",T),style:{zIndex:M,pointerEvents:"none"}},b),{},{children:a("div",{role:"dialog","aria-modal":"true","aria-labelledby":x||"".concat(y,"-title"),"aria-describedby":h||"".concat(y,"-description"),className:De("relative shadow-2xl",f||"drawer"===i?"h-full w-full":"w-full max-w-[calc(100%-32px)]",f||"drawer"===i?"":"mx-4",!f&&"drawer"!==i&&N,p&&!f&&"drawer"!==i&&"max-w-full","drawer"===i&&"bg-background","drawer"!==i&&"bg-card",O),style:m(m(m(m(m({},{}),{},{borderRadius:f?0:R,position:"relative",opacity:1,pointerEvents:"auto",touchAction:"none"},C),E),k),L),children:o})}))]});return"undefined"!=typeof document?d(S,document.body):null},xt=e.forwardRef(function(t,r){var n=t.className,o=t.children,i=t.style,l=t.sx,s=g(t,st);We(),at(it);var d=e.useMemo(function(){if(!l)return{};var e=m({},"function"==typeof l?l({}):l);return void 0!==e.p&&(e.padding=Ie(e.p),delete e.p),void 0!==e.px&&(e.paddingLeft=Ie(e.px),e.paddingRight=Ie(e.px),delete e.px),void 0!==e.py&&(e.paddingTop=Ie(e.py),e.paddingBottom=Ie(e.py),delete e.py),void 0!==e.pt&&(e.paddingTop=Ie(e.pt),delete e.pt),void 0!==e.pb&&(e.paddingBottom=Ie(e.pb),delete e.pb),void 0!==e.pl&&(e.paddingLeft=Ie(e.pl),delete e.pl),void 0!==e.pr&&(e.paddingRight=Ie(e.pr),delete e.pr),void 0!==e.m&&(e.margin=Ie(e.m),delete e.m),void 0!==e.mx&&(e.marginLeft=Ie(e.mx),e.marginRight=Ie(e.mx),delete e.mx),void 0!==e.my&&(e.marginTop=Ie(e.my),e.marginBottom=Ie(e.my),delete e.my),void 0!==e.mt&&(e.marginTop=Ie(e.mt),delete e.mt),void 0!==e.mb&&(e.marginBottom=Ie(e.mb),delete e.mb),void 0!==e.ml&&(e.marginLeft=Ie(e.ml),delete e.ml),void 0!==e.mr&&(e.marginRight=Ie(e.mr),delete e.mr),void 0!==e.gap&&(e.gap=Ie(e.gap)),e},[l]),c=i||{},p=c.padding,u=c.paddingTop,f=c.paddingBottom,v=c.paddingLeft,x=c.paddingRight,h=c.backgroundColor,b=g(c,dt);return a("div",m(m({ref:r,className:De("text-left rounded-b-[inherit]",void 0!==p||void 0!==u||void 0!==f||void 0!==v||void 0!==x?"":"p-6","p-6",n),style:m(m(m({},void 0!==h?h.startsWith("linear-gradient")||h.startsWith("radial-gradient")||h.startsWith("conic-gradient")?{background:h}:{backgroundColor:h}:{}),{},{padding:p,paddingTop:u,paddingBottom:f,paddingLeft:v,paddingRight:x,opacity:1,pointerEvents:"auto"},d),b)},s),{},{children:o}))});xt.displayName="DialogContent";var ht=e.createContext(!1),bt=function(e){var t=e.className,r=g(e,ct);return a(ht.Provider,{value:!0,children:a("div",m({className:De("flex flex-col space-y-1.5 px-6 pt-6",t),style:m({textAlign:"left"},r.style)},r))})};bt.displayName="DialogHeader";var yt=function(e){var t=e.className,r=g(e,pt);return a("div",m({className:De("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2 px-6 pb-6",t)},r))};yt.displayName="DialogFooter";var wt=e.forwardRef(function(t,r){var n=t.className,o=t.style,i=t.sx,l=g(t,ut),s=e.useContext(ht),d=e.useMemo(function(){if(!i)return{};var e=m({},"function"==typeof i?i({}):i);return void 0!==e.p&&(e.padding=Ie(e.p),delete e.p),void 0!==e.px&&(e.paddingLeft=Ie(e.px),e.paddingRight=Ie(e.px),delete e.px),void 0!==e.py&&(e.paddingTop=Ie(e.py),e.paddingBottom=Ie(e.py),delete e.py),void 0!==e.pt&&(e.paddingTop=Ie(e.pt),delete e.pt),void 0!==e.pb&&(e.paddingBottom=Ie(e.pb),delete e.pb),void 0!==e.pl&&(e.paddingLeft=Ie(e.pl),delete e.pl),void 0!==e.pr&&(e.paddingRight=Ie(e.pr),delete e.pr),void 0!==e.m&&(e.margin=Ie(e.m),delete e.m),void 0!==e.mx&&(e.marginLeft=Ie(e.mx),e.marginRight=Ie(e.mx),delete e.mx),void 0!==e.my&&(e.marginTop=Ie(e.my),e.marginBottom=Ie(e.my),delete e.my),void 0!==e.mt&&(e.marginTop=Ie(e.mt),delete e.mt),void 0!==e.mb&&(e.marginBottom=Ie(e.mb),delete e.mb),void 0!==e.ml&&(e.marginLeft=Ie(e.ml),delete e.ml),void 0!==e.mr&&(e.marginRight=Ie(e.mr),delete e.mr),void 0!==e.gap&&(e.gap=Ie(e.gap)),e},[i]);return a("h2",m({ref:r,className:De("rounded-t-[inherit]","text-lg font-semibold leading-none tracking-tight","text-foreground","text-left",!s&&"px-6 pt-6",n),style:m(m({textAlign:"left"},d),o)},l))});wt.displayName="DialogTitle";var kt=e.forwardRef(function(e,t){var r=e.className,n=e.id,o=g(e,ft);return a("p",m({ref:t,id:n,className:De("text-sm text-muted-foreground",r)},o))});kt.displayName="DialogDescription";var Nt=function(e){var t=e.className,r=e.style,n=g(e,mt);We();var o=r||{},i=o.padding,l=o.paddingTop,s=o.paddingBottom,d=o.paddingLeft,c=o.paddingRight,p=o.gap,u=o.backgroundColor,f=g(o,gt);return a("div",m({className:De("flex items-center justify-end rounded-b-[inherit]",t),style:m({backgroundColor:u,padding:i,paddingLeft:void 0!==d?d:void 0!==i?void 0:"1rem",paddingRight:void 0!==c?c:void 0!==i?void 0:"1rem",paddingTop:void 0!==l?l:void 0!==i?void 0:"0.5rem",paddingBottom:void 0!==s?s:void 0!==i?void 0:"1rem",gap:void 0!==p?p:"0.5rem",opacity:1},f)},n))};Nt.displayName="DialogActions";var Ct=["className","variant","size","style","color","aria-label","children"],Et=et("inline-flex items-center justify-center transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"hover:bg-accent hover:text-accent-foreground",destructive:"hover:bg-destructive hover:text-destructive-foreground",outline:"border border-input hover:bg-accent hover:text-accent-foreground",ghost:"hover:bg-accent hover:text-accent-foreground"},size:{default:"h-10 w-10",sm:"h-8 w-8",lg:"h-12 w-12"}},defaultVariants:{variant:"default",size:"default"}}),Rt=e.forwardRef(function(t,r){var n=t.className,o=t.variant,i=t.size,l=void 0===i?"default":i,s=t.style,d=t.color,c=t["aria-label"],p=t.children,u=g(t,Ct),f=e.useMemo(function(){return e.isValidElement(p)&&"string"!=typeof p.type&&void 0===p.props.size?e.cloneElement(p,{size:"sm"===l?16:"lg"===l?24:20}):p},[p,l]);return e.useEffect(function(){"development"!==process.env.NODE_ENV||c||u["aria-labelledby"]||console.warn("IconButton: Missing aria-label or aria-labelledby. Icon-only buttons should have accessible labels.")},[c,u["aria-labelledby"]]),a("button",m(m({className:De(Et({variant:o,size:l}),"rounded-2xl","primary"===d?"text-primary":"secondary"===d?"text-secondary-foreground":"error"===d?"text-destructive":"inherit"===d?"text-inherit":"text-muted-foreground",n),ref:r,style:s,"aria-label":c},u),{},{children:f}))});Rt.displayName="IconButton";var Lt=["className","variant","component","style","color","noWrap","gutterBottom"],Ot=et("",{variants:{variant:{h1:"scroll-m-20 text-4xl font-extralight tracking-tight lg:text-5xl",h2:"scroll-m-20 border-b pb-2 text-3xl font-semibold tracking-tight first:mt-0",h3:"scroll-m-20 text-2xl font-semibold tracking-tight",h4:"scroll-m-20 text-xl font-semibold tracking-tight",h5:"scroll-m-20 text-lg font-semibold tracking-tight",h6:"scroll-m-20 text-base font-semibold tracking-tight",p:"leading-7 [&:not(:first-child)]:mt-6",blockquote:"mt-6 border-l-2 pl-6 italic",list:"my-6 ml-6 list-disc [&>li]:mt-2",inlineCode:"relative rounded bg-muted px-[0.3rem] py-[0.2rem] font-mono text-sm font-semibold",lead:"text-xl text-muted-foreground",largeText:"text-lg font-semibold",smallText:"text-sm font-medium leading-none",mutedText:"text-sm text-muted-foreground",body1:"text-base leading-normal",body2:"text-sm leading-normal",subtitle1:"text-base font-normal leading-normal",subtitle2:"text-sm font-medium leading-normal",caption:"text-xs leading-normal",overline:"text-xs font-normal uppercase leading-normal tracking-wide"},color:{default:"text-foreground",primary:"text-primary",secondary:"text-secondary-foreground",muted:"text-muted-foreground",destructive:"text-destructive",error:"text-destructive",inherit:"text-inherit"}},defaultVariants:{variant:"body1",color:"default"}}),Tt=e.forwardRef(function(e,t){var r=e.className,n=e.variant,o=void 0===n?"body1":n,i=e.component,l=e.style,s=e.color,d=e.noWrap,c=e.gutterBottom,p=g(e,Lt),u="text.secondary"===s||"textSecondary"===s?"muted":"text.primary"===s||"textPrimary"===s?"default":s,f=i||(o.startsWith("h")?o:"p");return a(f,m({ref:t,className:De(Ot({variant:o,color:u}),r),style:m(m(m({},d&&{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"}),c&&{marginBottom:"0.35em"}),l)},p))});Tt.displayName="Typography";var Mt=["className","variant","size","label","onClick","onDelete","style","icon","color"],St=et("inline-flex items-center rounded-full px-2.5 py-0.5 text-xs font-semibold transition-colors",{variants:{variant:{default:"text-white",secondary:"bg-secondary text-secondary-foreground",outline:"border border-input bg-background hover:bg-accent",outlined:"border border-input bg-background hover:bg-accent"},size:{small:"h-6 text-xs px-2",medium:"h-7 text-sm px-2.5"}},defaultVariants:{variant:"default",size:"medium"}}),zt=e.forwardRef(function(t,r){var n,o,i,s,d,c=t.className,p=t.variant,u=t.size,f=t.label,v=t.onClick,x=t.onDelete,h=t.style,b=t.icon,y=t.color,w=g(t,Mt);return l(v||x?"button":"span",m(m({ref:r,className:De(St({variant:p,size:u}),"outline"!==p&&"outlined"!==p&&("primary"===y?"bg-primary text-primary-foreground hover:bg-primary/90":"secondary"===y?"bg-secondary text-secondary-foreground hover:bg-secondary/80":"error"===y||"destructive"===y?"bg-destructive text-destructive-foreground hover:bg-destructive/90":"success"===y?"bg-success text-success-foreground hover:bg-success/90":"info"===y?"bg-info text-info-foreground hover:bg-info/90":"warning"===y?"bg-warning text-warning-foreground hover:bg-warning/90":"bg-primary text-primary-foreground hover:bg-primary/90"),"outlined"===p||"outline"===p?"primary"===y?"border-primary":"secondary"===y?"border-secondary":"error"===y||"destructive"===y?"border-destructive":"border-border":"",(v||x)&&"cursor-pointer",c),style:h,onClick:v},w),{},{children:[b&&e.isValidElement(b)&&a("span",{className:"flex items-center justify-center flex-shrink-0 mr-1",style:{color:"inherit",display:"inline-flex",alignItems:"center",justifyContent:"center",lineHeight:1},children:e.cloneElement(b,{style:m(m({},(null===(n=b.props)||void 0===n?void 0:n.style)||{}),{},{width:(null===(o=b.props)||void 0===o||null===(o=o.style)||void 0===o?void 0:o.width)||"16px",height:(null===(i=b.props)||void 0===i||null===(i=i.style)||void 0===i?void 0:i.height)||"16px",fontSize:(null===(s=b.props)||void 0===s||null===(s=s.style)||void 0===s?void 0:s.fontSize)||"16px",color:"inherit",display:"inline-flex",alignItems:"center",justifyContent:"center"}),sx:null===(d=b.props)||void 0===d?void 0:d.sx})}),a("span",{className:"flex items-center",style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",maxWidth:"100%",lineHeight:1},children:f}),x&&a("span",{className:"ml-1 cursor-pointer",onClick:x,children:"×"})]}))});zt.displayName="Chip";var jt=["className","fullWidth","variant","size","InputProps","label","error","helperText","placeholder","multiline","rows","maxRows","disabled","value","floatingLabel","required"],At=["backgroundColor","height"],Dt=["style","InputProps"],It=e.forwardRef(function(t,r){var n,o,i=t.className,s=t.fullWidth,d=void 0!==s&&s,c=t.variant,p=void 0===c?"outlined":c,u=t.size,f=void 0===u?"small":u,x=t.InputProps,h=t.label,b=t.error,y=void 0!==b&&b,w=t.helperText,k=t.placeholder,N=t.multiline,C=void 0!==N&&N,E=t.rows;t.maxRows;var R,L,O=t.disabled,T=void 0!==O&&O,M=t.value,S=t.floatingLabel,z=void 0!==S&&S,j=t.required,A=void 0!==j&&j,D=g(t,jt),I=function(e){return e||"hsl(var(--background))"},W=v(e.useState(!1),2),B=W[0],P=W[1],H=e.useRef(null),V=e.useCallback(function(e){H.current=e,"function"==typeof r?r(e):r&&(r.current=e)},[r]),F=null!=M&&""!==M,q={small:"text-sm",medium:"text-base"},_={small:"px-2.5 py-1.5",medium:"px-3 py-2"},G=void 0!==(null==x||null===(R=x.style)||void 0===R?void 0:R.backgroundColor)?x.style.backgroundColor:void 0!==(null===(L=D.style)||void 0===L?void 0:L.backgroundColor)?D.style.backgroundColor:"filled"===p?B?I("hsl(var(--input))"):"hsl(var(--muted) / 0.3)":"standard"===p?B?I("hsl(var(--input))"):"hsl(var(--muted) / 0.5)":B?I("hsl(var(--background))"):"transparent",U=D.style||{};U.backgroundColor;var Y=U.height,$=g(U,At),K=void 0!==(null==x||null===(n=x.style)||void 0===n?void 0:n.backgroundColor)?x.style.backgroundColor:G,X=(null==x||null===(o=x.style)||void 0===o?void 0:o.height)||Y;D.style,D.InputProps;var Z=g(D,Dt),J=function(){return"standard"===p?{borderTop:"none",borderLeft:"none",borderRight:"none",borderBottom:y?"2px solid hsl(var(--destructive))":B?"2px solid hsl(var(--ring))":"2px solid hsl(var(--input))",borderRadius:"0"}:{borderColor:y?"hsl(var(--destructive))":B?"hsl(var(--ring))":"hsl(var(--input))"}},Q=m(m(m(m({},J()),{},{color:"hsl(var(--foreground))"},X&&{height:X}),$),{},{backgroundColor:K}),ee=C?"textarea":"input",te=!F&&(k||Z.placeholder),re=C?void 0:Z.type||"text",ne=m(m({},Z),{},{type:re,value:M,placeholder:te?k||Z.placeholder:void 0,disabled:T,rows:C?E:void 0});return l("div",z?{className:De(d&&"w-full",i),children:[l("div",{className:"relative",children:[a(ee,m({ref:V,type:re,className:De("w-full transition-all","standard"===p?"":"rounded-2xl border",q[f],_[f],"focus-visible:outline-none","disabled:cursor-not-allowed disabled:opacity-50",(null==x?void 0:x.startAdornment)&&"pl-10",(null==x?void 0:x.endAdornment)&&"pr-10",C&&"resize-none"),style:m(m(m({},$),J()),{},{color:"hsl(var(--foreground))",backgroundColor:K},X&&{height:X,lineHeight:X}),onFocus:function(e){P(!0),D.onFocus&&D.onFocus(e)},onBlur:function(e){P(!1),D.onBlur&&D.onBlur(e)}},ne)),(null==x?void 0:x.startAdornment)&&a("div",{className:"absolute left-3 top-1/2 -translate-y-1/2 flex items-center justify-center z-10",children:x.startAdornment}),(null==x?void 0:x.endAdornment)&&a("div",{className:"absolute right-3 top-1/2 -translate-y-1/2 flex items-center justify-center z-10",children:x.endAdornment})]}),w&&a("div",{className:"text-xs mt-1",style:{color:y?"hsl(var(--destructive))":"hsl(var(--muted-foreground))"},children:w})]}:{className:De(d&&"w-full",i),children:[h&&l("label",{className:"block text-sm font-medium mb-2 text-foreground",children:[h,A&&a("span",{className:"ml-1 text-destructive",children:"*"})]}),l("div",{className:"relative w-full",children:[a(ee,m({ref:V,type:re,className:De("w-full transition-colors","standard"===p?"":"rounded-2xl border",q[f],_[f],"focus-visible:outline-none","disabled:cursor-not-allowed disabled:opacity-50",(null==x?void 0:x.startAdornment)&&"pl-10",(null==x?void 0:x.endAdornment)&&"pr-10",C&&"resize-none"),style:Q,onFocus:function(e){P(!0),D.onFocus&&D.onFocus(e)},onBlur:function(e){P(!1),D.onBlur&&D.onBlur(e)}},ne)),(null==x?void 0:x.startAdornment)&&a("div",{className:"absolute left-3 top-1/2 -translate-y-1/2 flex items-center justify-center",children:x.startAdornment}),(null==x?void 0:x.endAdornment)&&a("div",{className:"absolute right-3 top-1/2 -translate-y-1/2 flex items-center justify-center",children:x.endAdornment})]}),w&&a("div",{className:De("text-xs mt-1",y?"text-destructive":"text-muted-foreground"),children:w})]})});It.displayName="TextField";
|
|
1
|
+
import*as e from"react";import t,{forwardRef as r,createElement as n,useState as o,useEffect as i}from"react";import{jsx as a,jsxs as l,Fragment as s}from"react/jsx-runtime";import{createPortal as d}from"react-dom";import*as c from"dayjs";function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function u(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function f(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function m(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?f(Object(r),!0).forEach(function(t){u(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):f(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function v(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function g(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],s=!0,d=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);s=!0);}catch(e){d=!0,o=e}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(d)throw o}}return l}}(e,t)||b(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function x(e){return function(e){if(Array.isArray(e))return p(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||b(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(e){return h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},h(e)}function b(e,t){if(e){if("string"==typeof e)return p(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?p(e,t):void 0}}function y(e){var t,r,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=y(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function w(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=y(e))&&(n&&(n+=" "),n+=t);return n}const k=(e=new Map,t=null,r)=>({nextPart:e,validators:t,classGroupId:r}),N="-",C=[],E=e=>{const t=O(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:e=>{if(e.startsWith("[")&&e.endsWith("]"))return L(e);const r=e.split(N),n=""===r[0]&&r.length>1?1:0;return R(r,n,t)},getConflictingClassGroupIds:(e,t)=>{if(t){const t=n[e],o=r[e];return t?o?((e,t)=>{const r=new Array(e.length+t.length);for(let t=0;t<e.length;t++)r[t]=e[t];for(let n=0;n<t.length;n++)r[e.length+n]=t[n];return r})(o,t):t:o||C}return r[e]||C}}},R=(e,t,r)=>{if(0===e.length-t)return r.classGroupId;const n=e[t],o=r.nextPart.get(n);if(o){const r=R(e,t+1,o);if(r)return r}const i=r.validators;if(null===i)return;const a=0===t?e.join(N):e.slice(t).join(N),l=i.length;for(let e=0;e<l;e++){const t=i[e];if(t.validator(a))return t.classGroupId}},L=e=>-1===e.slice(1,-1).indexOf(":")?void 0:(()=>{const t=e.slice(1,-1),r=t.indexOf(":"),n=t.slice(0,r);return n?"arbitrary.."+n:void 0})(),O=e=>{const{theme:t,classGroups:r}=e;return T(r,t)},T=(e,t)=>{const r=k();for(const n in e){const o=e[n];M(o,r,n,t)}return r},M=(e,t,r,n)=>{const o=e.length;for(let i=0;i<o;i++){const o=e[i];S(o,t,r,n)}},S=(e,t,r,n)=>{"string"!=typeof e?"function"!=typeof e?A(e,t,r,n):j(e,t,r,n):z(e,t,r)},z=(e,t,r)=>{(""===e?t:D(t,e)).classGroupId=r},j=(e,t,r,n)=>{I(e)?M(e(n),t,r,n):(null===t.validators&&(t.validators=[]),t.validators.push(((e,t)=>({classGroupId:e,validator:t}))(r,e)))},A=(e,t,r,n)=>{const o=Object.entries(e),i=o.length;for(let e=0;e<i;e++){const[i,a]=o[e];M(a,D(t,i),r,n)}},D=(e,t)=>{let r=e;const n=t.split(N),o=n.length;for(let e=0;e<o;e++){const t=n[e];let o=r.nextPart.get(t);o||(o=k(),r.nextPart.set(t,o)),r=o}return r},I=e=>"isThemeGetter"in e&&!0===e.isThemeGetter,W=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=Object.create(null),n=Object.create(null);const o=(o,i)=>{r[o]=i,t++,t>e&&(t=0,n=r,r=Object.create(null))};return{get(e){let t=r[e];return void 0!==t?t:void 0!==(t=n[e])?(o(e,t),t):void 0},set(e,t){e in r?r[e]=t:o(e,t)}}},B=[],P=(e,t,r,n,o)=>({modifiers:e,hasImportantModifier:t,baseClassName:r,maybePostfixModifierPosition:n,isExternal:o}),H=e=>{const{prefix:t,experimentalParseClassName:r}=e;let n=e=>{const t=[];let r,n=0,o=0,i=0;const a=e.length;for(let l=0;l<a;l++){const a=e[l];if(0===n&&0===o){if(":"===a){t.push(e.slice(i,l)),i=l+1;continue}if("/"===a){r=l;continue}}"["===a?n++:"]"===a?n--:"("===a?o++:")"===a&&o--}const l=0===t.length?e:e.slice(i);let s=l,d=!1;l.endsWith("!")?(s=l.slice(0,-1),d=!0):l.startsWith("!")&&(s=l.slice(1),d=!0);return P(t,d,s,r&&r>i?r-i:void 0)};if(t){const e=t+":",r=n;n=t=>t.startsWith(e)?r(t.slice(e.length)):P(B,!1,t,void 0,!0)}if(r){const e=n;n=t=>r({className:t,parseClassName:e})}return n},V=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((e,r)=>{t.set(e,1e6+r)}),e=>{const r=[];let n=[];for(let o=0;o<e.length;o++){const i=e[o],a="["===i[0],l=t.has(i);a||l?(n.length>0&&(n.sort(),r.push(...n),n=[]),r.push(i)):n.push(i)}return n.length>0&&(n.sort(),r.push(...n)),r}},F=/\s+/,q=e=>{if("string"==typeof e)return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=q(e[n]))&&(r&&(r+=" "),r+=t);return r},_=[],G=e=>{const t=t=>t[e]||_;return t.isThemeGetter=!0,t},U=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Y=/^\((?:(\w[\w-]*):)?(.+)\)$/i,$=/^\d+\/\d+$/,K=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,X=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Z=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,J=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Q=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ee=e=>$.test(e),te=e=>!!e&&!Number.isNaN(Number(e)),re=e=>!!e&&Number.isInteger(Number(e)),ne=e=>e.endsWith("%")&&te(e.slice(0,-1)),oe=e=>K.test(e),ie=()=>!0,ae=e=>X.test(e)&&!Z.test(e),le=()=>!1,se=e=>J.test(e),de=e=>Q.test(e),ce=e=>!ue(e)&&!he(e),pe=e=>Ee(e,Te,le),ue=e=>U.test(e),fe=e=>Ee(e,Me,ae),me=e=>Ee(e,Se,te),ve=e=>Ee(e,Le,le),ge=e=>Ee(e,Oe,de),xe=e=>Ee(e,je,se),he=e=>Y.test(e),be=e=>Re(e,Me),ye=e=>Re(e,ze),we=e=>Re(e,Le),ke=e=>Re(e,Te),Ne=e=>Re(e,Oe),Ce=e=>Re(e,je,!0),Ee=(e,t,r)=>{const n=U.exec(e);return!!n&&(n[1]?t(n[1]):r(n[2]))},Re=(e,t,r=!1)=>{const n=Y.exec(e);return!!n&&(n[1]?t(n[1]):r)},Le=e=>"position"===e||"percentage"===e,Oe=e=>"image"===e||"url"===e,Te=e=>"length"===e||"size"===e||"bg-size"===e,Me=e=>"length"===e,Se=e=>"number"===e,ze=e=>"family-name"===e,je=e=>"shadow"===e,Ae=((e,...t)=>{let r,n,o,i;const a=e=>{const t=n(e);if(t)return t;const i=((e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:o,sortModifiers:i}=t,a=[],l=e.trim().split(F);let s="";for(let e=l.length-1;e>=0;e-=1){const t=l[e],{isExternal:d,modifiers:c,hasImportantModifier:p,baseClassName:u,maybePostfixModifierPosition:f}=r(t);if(d){s=t+(s.length>0?" "+s:s);continue}let m=!!f,v=n(m?u.substring(0,f):u);if(!v){if(!m){s=t+(s.length>0?" "+s:s);continue}if(v=n(u),!v){s=t+(s.length>0?" "+s:s);continue}m=!1}const g=0===c.length?"":1===c.length?c[0]:i(c).join(":"),x=p?g+"!":g,h=x+v;if(a.indexOf(h)>-1)continue;a.push(h);const b=o(v,m);for(let e=0;e<b.length;++e){const t=b[e];a.push(x+t)}s=t+(s.length>0?" "+s:s)}return s})(e,r);return o(e,i),i};return i=l=>{const s=t.reduce((e,t)=>t(e),e());return r=(e=>({cache:W(e.cacheSize),parseClassName:H(e),sortModifiers:V(e),...E(e)}))(s),n=r.cache.get,o=r.cache.set,i=a,a(l)},(...e)=>i(((...e)=>{let t,r,n=0,o="";for(;n<e.length;)(t=e[n++])&&(r=q(t))&&(o&&(o+=" "),o+=r);return o})(...e))})(()=>{const e=G("color"),t=G("font"),r=G("text"),n=G("font-weight"),o=G("tracking"),i=G("leading"),a=G("breakpoint"),l=G("container"),s=G("spacing"),d=G("radius"),c=G("shadow"),p=G("inset-shadow"),u=G("text-shadow"),f=G("drop-shadow"),m=G("blur"),v=G("perspective"),g=G("aspect"),x=G("ease"),h=G("animate"),b=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",he,ue],y=()=>[he,ue,s],w=()=>[ee,"full","auto",...y()],k=()=>[re,"none","subgrid",he,ue],N=()=>["auto",{span:["full",re,he,ue]},re,he,ue],C=()=>[re,"auto",he,ue],E=()=>["auto","min","max","fr",he,ue],R=()=>["auto",...y()],L=()=>[ee,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...y()],O=()=>[e,he,ue],T=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",we,ve,{position:[he,ue]}],M=()=>["auto","cover","contain",ke,pe,{size:[he,ue]}],S=()=>[ne,be,fe],z=()=>["","none","full",d,he,ue],j=()=>["",te,be,fe],A=()=>[te,ne,we,ve],D=()=>["","none",m,he,ue],I=()=>["none",te,he,ue],W=()=>["none",te,he,ue],B=()=>[te,he,ue],P=()=>[ee,"full",...y()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[oe],breakpoint:[oe],color:[ie],container:[oe],"drop-shadow":[oe],ease:["in","out","in-out"],font:[ce],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[oe],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[oe],shadow:[oe],spacing:["px",te],text:[oe],"text-shadow":[oe],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",ee,ue,he,g]}],container:["container"],columns:[{columns:[te,ue,he,l]}],"break-after":[{"break-after":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-before":[{"break-before":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:b()}],overflow:[{overflow:["auto","hidden","clip","visible","scroll"]}],"overflow-x":[{"overflow-x":["auto","hidden","clip","visible","scroll"]}],"overflow-y":[{"overflow-y":["auto","hidden","clip","visible","scroll"]}],overscroll:[{overscroll:["auto","contain","none"]}],"overscroll-x":[{"overscroll-x":["auto","contain","none"]}],"overscroll-y":[{"overscroll-y":["auto","contain","none"]}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:w()}],"inset-x":[{"inset-x":w()}],"inset-y":[{"inset-y":w()}],start:[{start:w()}],end:[{end:w()}],top:[{top:w()}],right:[{right:w()}],bottom:[{bottom:w()}],left:[{left:w()}],visibility:["visible","invisible","collapse"],z:[{z:[re,"auto",he,ue]}],basis:[{basis:[ee,"full","auto",l,...y()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[te,ee,"auto","initial","none",ue]}],grow:[{grow:["",te,he,ue]}],shrink:[{shrink:["",te,he,ue]}],order:[{order:[re,"first","last","none",he,ue]}],"grid-cols":[{"grid-cols":k()}],"col-start-end":[{col:N()}],"col-start":[{"col-start":C()}],"col-end":[{"col-end":C()}],"grid-rows":[{"grid-rows":k()}],"row-start-end":[{row:N()}],"row-start":[{"row-start":C()}],"row-end":[{"row-end":C()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":E()}],"auto-rows":[{"auto-rows":E()}],gap:[{gap:y()}],"gap-x":[{"gap-x":y()}],"gap-y":[{"gap-y":y()}],"justify-content":[{justify:["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe","normal"]}],"justify-items":[{"justify-items":["start","end","center","stretch","center-safe","end-safe","normal"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch","center-safe","end-safe"]}],"align-content":[{content:["normal","start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"]}],"align-items":[{items:["start","end","center","stretch","center-safe","end-safe",{baseline:["","last"]}]}],"align-self":[{self:["auto","start","end","center","stretch","center-safe","end-safe",{baseline:["","last"]}]}],"place-content":[{"place-content":["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"]}],"place-items":[{"place-items":["start","end","center","stretch","center-safe","end-safe","baseline"]}],"place-self":[{"place-self":["auto","start","end","center","stretch","center-safe","end-safe"]}],p:[{p:y()}],px:[{px:y()}],py:[{py:y()}],ps:[{ps:y()}],pe:[{pe:y()}],pt:[{pt:y()}],pr:[{pr:y()}],pb:[{pb:y()}],pl:[{pl:y()}],m:[{m:R()}],mx:[{mx:R()}],my:[{my:R()}],ms:[{ms:R()}],me:[{me:R()}],mt:[{mt:R()}],mr:[{mr:R()}],mb:[{mb:R()}],ml:[{ml:R()}],"space-x":[{"space-x":y()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":y()}],"space-y-reverse":["space-y-reverse"],size:[{size:L()}],w:[{w:[l,"screen",...L()]}],"min-w":[{"min-w":[l,"screen","none",...L()]}],"max-w":[{"max-w":[l,"screen","none","prose",{screen:[a]},...L()]}],h:[{h:["screen","lh",...L()]}],"min-h":[{"min-h":["screen","lh","none",...L()]}],"max-h":[{"max-h":["screen","lh",...L()]}],"font-size":[{text:["base",r,be,fe]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,he,me]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",ne,ue]}],"font-family":[{font:[ye,ue,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,he,ue]}],"line-clamp":[{"line-clamp":[te,"none",he,me]}],leading:[{leading:[i,...y()]}],"list-image":[{"list-image":["none",he,ue]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",he,ue]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:O()}],"text-color":[{text:O()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:["solid","dashed","dotted","double","wavy"]}],"text-decoration-thickness":[{decoration:[te,"from-font","auto",he,fe]}],"text-decoration-color":[{decoration:O()}],"underline-offset":[{"underline-offset":[te,"auto",he,ue]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:y()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",he,ue]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",he,ue]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:T()}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","space","round"]}]}],"bg-size":[{bg:M()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},re,he,ue],radial:["",he,ue],conic:[re,he,ue]},Ne,ge]}],"bg-color":[{bg:O()}],"gradient-from-pos":[{from:S()}],"gradient-via-pos":[{via:S()}],"gradient-to-pos":[{to:S()}],"gradient-from":[{from:O()}],"gradient-via":[{via:O()}],"gradient-to":[{to:O()}],rounded:[{rounded:z()}],"rounded-s":[{"rounded-s":z()}],"rounded-e":[{"rounded-e":z()}],"rounded-t":[{"rounded-t":z()}],"rounded-r":[{"rounded-r":z()}],"rounded-b":[{"rounded-b":z()}],"rounded-l":[{"rounded-l":z()}],"rounded-ss":[{"rounded-ss":z()}],"rounded-se":[{"rounded-se":z()}],"rounded-ee":[{"rounded-ee":z()}],"rounded-es":[{"rounded-es":z()}],"rounded-tl":[{"rounded-tl":z()}],"rounded-tr":[{"rounded-tr":z()}],"rounded-br":[{"rounded-br":z()}],"rounded-bl":[{"rounded-bl":z()}],"border-w":[{border:j()}],"border-w-x":[{"border-x":j()}],"border-w-y":[{"border-y":j()}],"border-w-s":[{"border-s":j()}],"border-w-e":[{"border-e":j()}],"border-w-t":[{"border-t":j()}],"border-w-r":[{"border-r":j()}],"border-w-b":[{"border-b":j()}],"border-w-l":[{"border-l":j()}],"divide-x":[{"divide-x":j()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":j()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:["solid","dashed","dotted","double","hidden","none"]}],"divide-style":[{divide:["solid","dashed","dotted","double","hidden","none"]}],"border-color":[{border:O()}],"border-color-x":[{"border-x":O()}],"border-color-y":[{"border-y":O()}],"border-color-s":[{"border-s":O()}],"border-color-e":[{"border-e":O()}],"border-color-t":[{"border-t":O()}],"border-color-r":[{"border-r":O()}],"border-color-b":[{"border-b":O()}],"border-color-l":[{"border-l":O()}],"divide-color":[{divide:O()}],"outline-style":[{outline:["solid","dashed","dotted","double","none","hidden"]}],"outline-offset":[{"outline-offset":[te,he,ue]}],"outline-w":[{outline:["",te,be,fe]}],"outline-color":[{outline:O()}],shadow:[{shadow:["","none",c,Ce,xe]}],"shadow-color":[{shadow:O()}],"inset-shadow":[{"inset-shadow":["none",p,Ce,xe]}],"inset-shadow-color":[{"inset-shadow":O()}],"ring-w":[{ring:j()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:O()}],"ring-offset-w":[{"ring-offset":[te,fe]}],"ring-offset-color":[{"ring-offset":O()}],"inset-ring-w":[{"inset-ring":j()}],"inset-ring-color":[{"inset-ring":O()}],"text-shadow":[{"text-shadow":["none",u,Ce,xe]}],"text-shadow-color":[{"text-shadow":O()}],opacity:[{opacity:[te,he,ue]}],"mix-blend":[{"mix-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"]}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[te]}],"mask-image-linear-from-pos":[{"mask-linear-from":A()}],"mask-image-linear-to-pos":[{"mask-linear-to":A()}],"mask-image-linear-from-color":[{"mask-linear-from":O()}],"mask-image-linear-to-color":[{"mask-linear-to":O()}],"mask-image-t-from-pos":[{"mask-t-from":A()}],"mask-image-t-to-pos":[{"mask-t-to":A()}],"mask-image-t-from-color":[{"mask-t-from":O()}],"mask-image-t-to-color":[{"mask-t-to":O()}],"mask-image-r-from-pos":[{"mask-r-from":A()}],"mask-image-r-to-pos":[{"mask-r-to":A()}],"mask-image-r-from-color":[{"mask-r-from":O()}],"mask-image-r-to-color":[{"mask-r-to":O()}],"mask-image-b-from-pos":[{"mask-b-from":A()}],"mask-image-b-to-pos":[{"mask-b-to":A()}],"mask-image-b-from-color":[{"mask-b-from":O()}],"mask-image-b-to-color":[{"mask-b-to":O()}],"mask-image-l-from-pos":[{"mask-l-from":A()}],"mask-image-l-to-pos":[{"mask-l-to":A()}],"mask-image-l-from-color":[{"mask-l-from":O()}],"mask-image-l-to-color":[{"mask-l-to":O()}],"mask-image-x-from-pos":[{"mask-x-from":A()}],"mask-image-x-to-pos":[{"mask-x-to":A()}],"mask-image-x-from-color":[{"mask-x-from":O()}],"mask-image-x-to-color":[{"mask-x-to":O()}],"mask-image-y-from-pos":[{"mask-y-from":A()}],"mask-image-y-to-pos":[{"mask-y-to":A()}],"mask-image-y-from-color":[{"mask-y-from":O()}],"mask-image-y-to-color":[{"mask-y-to":O()}],"mask-image-radial":[{"mask-radial":[he,ue]}],"mask-image-radial-from-pos":[{"mask-radial-from":A()}],"mask-image-radial-to-pos":[{"mask-radial-to":A()}],"mask-image-radial-from-color":[{"mask-radial-from":O()}],"mask-image-radial-to-color":[{"mask-radial-to":O()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"]}],"mask-image-conic-pos":[{"mask-conic":[te]}],"mask-image-conic-from-pos":[{"mask-conic-from":A()}],"mask-image-conic-to-pos":[{"mask-conic-to":A()}],"mask-image-conic-from-color":[{"mask-conic-from":O()}],"mask-image-conic-to-color":[{"mask-conic-to":O()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:T()}],"mask-repeat":[{mask:["no-repeat",{repeat:["","x","y","space","round"]}]}],"mask-size":[{mask:M()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",he,ue]}],filter:[{filter:["","none",he,ue]}],blur:[{blur:D()}],brightness:[{brightness:[te,he,ue]}],contrast:[{contrast:[te,he,ue]}],"drop-shadow":[{"drop-shadow":["","none",f,Ce,xe]}],"drop-shadow-color":[{"drop-shadow":O()}],grayscale:[{grayscale:["",te,he,ue]}],"hue-rotate":[{"hue-rotate":[te,he,ue]}],invert:[{invert:["",te,he,ue]}],saturate:[{saturate:[te,he,ue]}],sepia:[{sepia:["",te,he,ue]}],"backdrop-filter":[{"backdrop-filter":["","none",he,ue]}],"backdrop-blur":[{"backdrop-blur":D()}],"backdrop-brightness":[{"backdrop-brightness":[te,he,ue]}],"backdrop-contrast":[{"backdrop-contrast":[te,he,ue]}],"backdrop-grayscale":[{"backdrop-grayscale":["",te,he,ue]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[te,he,ue]}],"backdrop-invert":[{"backdrop-invert":["",te,he,ue]}],"backdrop-opacity":[{"backdrop-opacity":[te,he,ue]}],"backdrop-saturate":[{"backdrop-saturate":[te,he,ue]}],"backdrop-sepia":[{"backdrop-sepia":["",te,he,ue]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":y()}],"border-spacing-x":[{"border-spacing-x":y()}],"border-spacing-y":[{"border-spacing-y":y()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",he,ue]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[te,"initial",he,ue]}],ease:[{ease:["linear","initial",x,he,ue]}],delay:[{delay:[te,he,ue]}],animate:[{animate:["none",h,he,ue]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[v,he,ue]}],"perspective-origin":[{"perspective-origin":b()}],rotate:[{rotate:I()}],"rotate-x":[{"rotate-x":I()}],"rotate-y":[{"rotate-y":I()}],"rotate-z":[{"rotate-z":I()}],scale:[{scale:W()}],"scale-x":[{"scale-x":W()}],"scale-y":[{"scale-y":W()}],"scale-z":[{"scale-z":W()}],"scale-3d":["scale-3d"],skew:[{skew:B()}],"skew-x":[{"skew-x":B()}],"skew-y":[{"skew-y":B()}],transform:[{transform:[he,ue,"","none","gpu","cpu"]}],"transform-origin":[{origin:b()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:P()}],"translate-x":[{"translate-x":P()}],"translate-y":[{"translate-y":P()}],"translate-z":[{"translate-z":P()}],"translate-none":["translate-none"],accent:[{accent:O()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:O()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",he,ue]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":y()}],"scroll-mx":[{"scroll-mx":y()}],"scroll-my":[{"scroll-my":y()}],"scroll-ms":[{"scroll-ms":y()}],"scroll-me":[{"scroll-me":y()}],"scroll-mt":[{"scroll-mt":y()}],"scroll-mr":[{"scroll-mr":y()}],"scroll-mb":[{"scroll-mb":y()}],"scroll-ml":[{"scroll-ml":y()}],"scroll-p":[{"scroll-p":y()}],"scroll-px":[{"scroll-px":y()}],"scroll-py":[{"scroll-py":y()}],"scroll-ps":[{"scroll-ps":y()}],"scroll-pe":[{"scroll-pe":y()}],"scroll-pt":[{"scroll-pt":y()}],"scroll-pr":[{"scroll-pr":y()}],"scroll-pb":[{"scroll-pb":y()}],"scroll-pl":[{"scroll-pl":y()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",he,ue]}],fill:[{fill:["none",...O()]}],"stroke-w":[{stroke:[te,be,fe,me]}],stroke:[{stroke:["none",...O()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}});function De(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return Ae(w(t))}function Ie(e){return"number"==typeof e?"".concat(8*e,"px"):e}var We=function(){var e=g(t.useState(function(){return"undefined"!=typeof document&&document.documentElement.classList.contains("dark")}),2),r=e[0],n=e[1];return t.useEffect(function(){if("undefined"!=typeof document){var e=new MutationObserver(function(){n(document.documentElement.classList.contains("dark"))});return e.observe(document.documentElement,{attributes:!0,attributeFilter:["class"]}),function(){return e.disconnect()}}},[]),r?"dark":"light"},Be=["className","elevation","variant","square","style"],Pe=["className"],He=["className"],Ve=["className"],Fe=["className"],qe=["className"],_e=["className"],Ge=e.forwardRef(function(e,t){var r=e.className,n=e.elevation,o=void 0===n?1:n,i=e.variant,l=void 0===i?"elevation":i,s=e.square,d=void 0!==s&&s,c=e.style,p=v(e,Be);return a("div",m({ref:t,className:De("bg-card text-card-foreground",!d&&"rounded-lg","border",0===o&&"elevation"===l&&"shadow-none",r),style:m(m({},function(){if("outlined"===l)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,Math.round(o)))]||e[1]}}()),c)},p))});Ge.displayName="Card";var Ue=e.memo(e.forwardRef(function(e,t){var r=e.className,n=v(e,Pe);return a("div",m({ref:t,className:De("flex flex-col space-y-1.5 p-6",r)},n))}));Ue.displayName="CardHeader";var Ye=e.memo(e.forwardRef(function(e,t){var r=e.className,n=v(e,He);return a("h3",m({ref:t,className:De("text-2xl font-semibold leading-none tracking-tight",r)},n))}));Ye.displayName="CardTitle";var $e=e.memo(e.forwardRef(function(e,t){var r=e.className,n=v(e,Ve);return a("p",m({ref:t,className:De("text-sm text-muted-foreground",r)},n))}));$e.displayName="CardDescription";var Ke=e.memo(e.forwardRef(function(e,t){var r=e.className,n=v(e,Fe);return a("div",m({ref:t,className:De("p-6",r)},n))}));Ke.displayName="CardContent";var Xe=e.memo(e.forwardRef(function(e,t){var r=e.className,n=v(e,qe);return a("div",m({ref:t,className:De("flex items-center p-6 pt-0",r)},n))}));Xe.displayName="CardFooter";var Ze=e.forwardRef(function(e,t){var r=e.className,n=v(e,_e);return a("div",m({ref:t,role:"button",tabIndex:0,className:De("cursor-pointer rounded-lg transition-colors hover:bg-accent focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",r),onKeyDown:function(e){"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),n.onClick&&n.onClick(e))}},n))});Ze.displayName="CardActionArea";const Je=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,Qe=w,et=(e,t)=>r=>{var n;if(null==(null==t?void 0:t.variants))return Qe(e,null==r?void 0:r.class,null==r?void 0:r.className);const{variants:o,defaultVariants:i}=t,a=Object.keys(o).map(e=>{const t=null==r?void 0:r[e],n=null==i?void 0:i[e];if(null===t)return null;const a=Je(t)||Je(n);return o[e][a]}),l=r&&Object.entries(r).reduce((e,t)=>{let[r,n]=t;return void 0===n||(e[r]=n),e},{}),s=null==t||null===(n=t.compoundVariants)||void 0===n?void 0:n.reduce((e,t)=>{let{class:r,className:n,...o}=t;return Object.entries(o).every(e=>{let[t,r]=e;return Array.isArray(r)?r.includes({...i,...l}[t]):{...i,...l}[t]===r})?[...e,r,n]:e},[]);return Qe(e,a,s,null==r?void 0:r.class,null==r?void 0:r.className)};var tt=["className","variant","size","startIcon","endIcon","children","style","color","fullWidth","disabled","href","component"],rt=et("inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),nt=e.forwardRef(function(e,t){var r=e.className,n=e.variant,o=e.size,i=e.startIcon,s=e.endIcon,d=e.children,c=e.style,p=e.color,u=e.fullWidth,f=void 0!==u&&u,g=e.disabled,x=void 0!==g&&g,h=e.href,b=e.component,y=v(e,tt),w="outlined"===n?"outline":"contained"===n?"default":"text"===n?"ghost":"error"===p?"destructive":n,k="small"===o?"sm":"medium"===o?"default":"large"===o?"lg":o||"default",N=b||(h?"a":"button"),C=m(h?{href:h}:{type:"button",disabled:x},y);return l(N,m(m({className:De(rt({variant:w,size:k}),f&&"w-full",r),ref:t,style:c},C),{},{children:[i&&a("span",{className:"mr-2 inline-flex items-center",children:i}),d,s&&a("span",{className:"ml-2 inline-flex items-center",children:s})]}))});nt.displayName="Button";var ot=t.createContext("solid"),it={default:"solid"},at=function(e){return t.useContext(ot)||e.default},lt=["open","onClose","children","variant","maxWidth","fullWidth","fullScreen","PaperProps","aria-labelledby","aria-describedby"],st=["className","children","style","sx"],dt=["padding","paddingTop","paddingBottom","paddingLeft","paddingRight","backgroundColor"],ct=["className"],pt=["className"],ut=["className","style","sx"],ft=["className","id"],mt=["className","style"],vt=["padding","paddingTop","paddingBottom","paddingLeft","paddingRight","gap","backgroundColor"],gt=function(t){var r=t.open,n=t.onClose,o=t.children,i=t.variant,c=t.maxWidth,p=t.fullWidth,u=t.fullScreen,f=void 0!==u&&u,g=t.PaperProps,x=t["aria-labelledby"],h=t["aria-describedby"],b=v(t,lt),y=e.useId(),w=We();at(it);var k=e.useMemo(function(){return null!=g&&g.sx?"function"==typeof g.sx?g.sx({}):g.sx:{}},[null==g?void 0:g.sx]);if(!r)return null;var N={xs:"max-w-xs",sm:"max-w-sm",md:"max-w-md",lg:"max-w-lg",xl:"max-w-xl"}[c]||"max-w-lg",C="pops"===i?{minWidth:"300px",maxWidth:"800px"}:{},E="drawer"===i?{margin:0,maxHeight:"100vh",height:"100vh",borderRadius:"16px 0 0 16px"}:{},R="pops"===i?"16px":"drawer"===i?"16px 0 0 16px":"8px",L=(null==g?void 0:g.style)||{},O=(null==g?void 0:g.className)||"",T="drawer"===i?"flex items-stretch justify-end":f?"flex items-stretch":"flex items-center justify-center",M="drawer"===i?parseInt(getComputedStyle(document.documentElement).getPropertyValue("--z-index-drawer")||"1300",10):parseInt(getComputedStyle(document.documentElement).getPropertyValue("--z-index-modal")||"1300",10),S=l(s,{children:[a("div",{className:De("fixed inset-0","dark"===w?"bg-black/80":"bg-black/60"),style:{zIndex:M-1,pointerEvents:"auto"},onClick:function(e){n&&n(e,"backdropClick")}}),a("div",m(m({className:De("fixed inset-0",T),style:{zIndex:M,pointerEvents:"none"}},b),{},{children:a("div",{role:"dialog","aria-modal":"true","aria-labelledby":x||"".concat(y,"-title"),"aria-describedby":h||"".concat(y,"-description"),className:De("relative shadow-2xl",f||"drawer"===i?"h-full w-full":"w-full max-w-[calc(100%-32px)]",f||"drawer"===i?"":"mx-4",!f&&"drawer"!==i&&N,p&&!f&&"drawer"!==i&&"max-w-full","drawer"===i&&"bg-background","drawer"!==i&&"bg-card",O),style:m(m(m(m(m({},{}),{},{borderRadius:f?0:R,position:"relative",opacity:1,pointerEvents:"auto",touchAction:"none"},C),E),k),L),children:o})}))]});return"undefined"!=typeof document?d(S,document.body):null},xt=e.forwardRef(function(t,r){var n=t.className,o=t.children,i=t.style,l=t.sx,s=v(t,st);We(),at(it);var d=e.useMemo(function(){if(!l)return{};var e=m({},"function"==typeof l?l({}):l);return void 0!==e.p&&(e.padding=Ie(e.p),delete e.p),void 0!==e.px&&(e.paddingLeft=Ie(e.px),e.paddingRight=Ie(e.px),delete e.px),void 0!==e.py&&(e.paddingTop=Ie(e.py),e.paddingBottom=Ie(e.py),delete e.py),void 0!==e.pt&&(e.paddingTop=Ie(e.pt),delete e.pt),void 0!==e.pb&&(e.paddingBottom=Ie(e.pb),delete e.pb),void 0!==e.pl&&(e.paddingLeft=Ie(e.pl),delete e.pl),void 0!==e.pr&&(e.paddingRight=Ie(e.pr),delete e.pr),void 0!==e.m&&(e.margin=Ie(e.m),delete e.m),void 0!==e.mx&&(e.marginLeft=Ie(e.mx),e.marginRight=Ie(e.mx),delete e.mx),void 0!==e.my&&(e.marginTop=Ie(e.my),e.marginBottom=Ie(e.my),delete e.my),void 0!==e.mt&&(e.marginTop=Ie(e.mt),delete e.mt),void 0!==e.mb&&(e.marginBottom=Ie(e.mb),delete e.mb),void 0!==e.ml&&(e.marginLeft=Ie(e.ml),delete e.ml),void 0!==e.mr&&(e.marginRight=Ie(e.mr),delete e.mr),void 0!==e.gap&&(e.gap=Ie(e.gap)),e},[l]),c=i||{},p=c.padding,u=c.paddingTop,f=c.paddingBottom,g=c.paddingLeft,x=c.paddingRight,h=c.backgroundColor,b=v(c,dt);return a("div",m(m({ref:r,className:De("text-left rounded-b-[inherit]",void 0!==p||void 0!==u||void 0!==f||void 0!==g||void 0!==x?"":"p-6","p-6",n),style:m(m(m({},void 0!==h?h.startsWith("linear-gradient")||h.startsWith("radial-gradient")||h.startsWith("conic-gradient")?{background:h}:{backgroundColor:h}:{}),{},{padding:p,paddingTop:u,paddingBottom:f,paddingLeft:g,paddingRight:x,opacity:1,pointerEvents:"auto"},d),b)},s),{},{children:o}))});xt.displayName="DialogContent";var ht=e.createContext(!1),bt=function(e){var t=e.className,r=v(e,ct);return a(ht.Provider,{value:!0,children:a("div",m({className:De("flex flex-col space-y-1.5 px-6 pt-6",t),style:m({textAlign:"left"},r.style)},r))})};bt.displayName="DialogHeader";var yt=function(e){var t=e.className,r=v(e,pt);return a("div",m({className:De("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2 px-6 pb-6",t)},r))};yt.displayName="DialogFooter";var wt=e.forwardRef(function(t,r){var n=t.className,o=t.style,i=t.sx,l=v(t,ut),s=e.useContext(ht),d=e.useMemo(function(){if(!i)return{};var e=m({},"function"==typeof i?i({}):i);return void 0!==e.p&&(e.padding=Ie(e.p),delete e.p),void 0!==e.px&&(e.paddingLeft=Ie(e.px),e.paddingRight=Ie(e.px),delete e.px),void 0!==e.py&&(e.paddingTop=Ie(e.py),e.paddingBottom=Ie(e.py),delete e.py),void 0!==e.pt&&(e.paddingTop=Ie(e.pt),delete e.pt),void 0!==e.pb&&(e.paddingBottom=Ie(e.pb),delete e.pb),void 0!==e.pl&&(e.paddingLeft=Ie(e.pl),delete e.pl),void 0!==e.pr&&(e.paddingRight=Ie(e.pr),delete e.pr),void 0!==e.m&&(e.margin=Ie(e.m),delete e.m),void 0!==e.mx&&(e.marginLeft=Ie(e.mx),e.marginRight=Ie(e.mx),delete e.mx),void 0!==e.my&&(e.marginTop=Ie(e.my),e.marginBottom=Ie(e.my),delete e.my),void 0!==e.mt&&(e.marginTop=Ie(e.mt),delete e.mt),void 0!==e.mb&&(e.marginBottom=Ie(e.mb),delete e.mb),void 0!==e.ml&&(e.marginLeft=Ie(e.ml),delete e.ml),void 0!==e.mr&&(e.marginRight=Ie(e.mr),delete e.mr),void 0!==e.gap&&(e.gap=Ie(e.gap)),e},[i]);return a("h2",m({ref:r,className:De("rounded-t-[inherit]","text-lg font-semibold leading-none tracking-tight","text-foreground","text-left",!s&&"px-6 pt-6",n),style:m(m({textAlign:"left"},d),o)},l))});wt.displayName="DialogTitle";var kt=e.forwardRef(function(e,t){var r=e.className,n=e.id,o=v(e,ft);return a("p",m({ref:t,id:n,className:De("text-sm text-muted-foreground",r)},o))});kt.displayName="DialogDescription";var Nt=function(e){var t=e.className,r=e.style,n=v(e,mt);We();var o=r||{},i=o.padding,l=o.paddingTop,s=o.paddingBottom,d=o.paddingLeft,c=o.paddingRight,p=o.gap,u=o.backgroundColor,f=v(o,vt);return a("div",m({className:De("flex items-center justify-end rounded-b-[inherit]",t),style:m({backgroundColor:u,padding:i,paddingLeft:void 0!==d?d:void 0!==i?void 0:"1rem",paddingRight:void 0!==c?c:void 0!==i?void 0:"1rem",paddingTop:void 0!==l?l:void 0!==i?void 0:"0.5rem",paddingBottom:void 0!==s?s:void 0!==i?void 0:"1rem",gap:void 0!==p?p:"0.5rem",opacity:1},f)},n))};Nt.displayName="DialogActions";var Ct=["className","variant","size","style","color","aria-label","children"],Et=et("inline-flex items-center justify-center transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"hover:bg-accent hover:text-accent-foreground",destructive:"hover:bg-destructive hover:text-destructive-foreground",outline:"border border-input hover:bg-accent hover:text-accent-foreground",ghost:"hover:bg-accent hover:text-accent-foreground"},size:{default:"h-10 w-10",sm:"h-8 w-8",lg:"h-12 w-12"}},defaultVariants:{variant:"default",size:"default"}}),Rt=e.forwardRef(function(t,r){var n=t.className,o=t.variant,i=t.size,l=void 0===i?"default":i,s=t.style,d=t.color,c=t["aria-label"],p=t.children,u=v(t,Ct),f=e.useMemo(function(){return e.isValidElement(p)&&"string"!=typeof p.type&&void 0===p.props.size?e.cloneElement(p,{size:"sm"===l?16:"lg"===l?24:20}):p},[p,l]);return e.useEffect(function(){"development"!==process.env.NODE_ENV||c||u["aria-labelledby"]||console.warn("IconButton: Missing aria-label or aria-labelledby. Icon-only buttons should have accessible labels.")},[c,u["aria-labelledby"]]),a("button",m(m({className:De(Et({variant:o,size:l}),"rounded-2xl","primary"===d?"text-primary":"secondary"===d?"text-secondary-foreground":"error"===d?"text-destructive":"inherit"===d?"text-inherit":"text-muted-foreground",n),ref:r,style:s,"aria-label":c},u),{},{children:f}))});Rt.displayName="IconButton";var Lt=["className","variant","component","style","color","noWrap","gutterBottom"],Ot=et("",{variants:{variant:{h1:"scroll-m-20 text-4xl font-extralight tracking-tight lg:text-5xl",h2:"scroll-m-20 border-b pb-2 text-3xl font-semibold tracking-tight first:mt-0",h3:"scroll-m-20 text-2xl font-semibold tracking-tight",h4:"scroll-m-20 text-xl font-semibold tracking-tight",h5:"scroll-m-20 text-lg font-semibold tracking-tight",h6:"scroll-m-20 text-base font-semibold tracking-tight",p:"leading-7 [&:not(:first-child)]:mt-6",blockquote:"mt-6 border-l-2 pl-6 italic",list:"my-6 ml-6 list-disc [&>li]:mt-2",inlineCode:"relative rounded bg-muted px-[0.3rem] py-[0.2rem] font-mono text-sm font-semibold",lead:"text-xl text-muted-foreground",largeText:"text-lg font-semibold",smallText:"text-sm font-medium leading-none",mutedText:"text-sm text-muted-foreground",body1:"text-base leading-normal",body2:"text-sm leading-normal",subtitle1:"text-base font-normal leading-normal",subtitle2:"text-sm font-medium leading-normal",caption:"text-xs leading-normal",overline:"text-xs font-normal uppercase leading-normal tracking-wide"},color:{default:"text-foreground",primary:"text-primary",secondary:"text-secondary-foreground",muted:"text-muted-foreground",destructive:"text-destructive",error:"text-destructive",inherit:"text-inherit"}},defaultVariants:{variant:"body1",color:"default"}}),Tt=e.forwardRef(function(e,t){var r=e.className,n=e.variant,o=void 0===n?"body1":n,i=e.component,l=e.style,s=e.color,d=e.noWrap,c=e.gutterBottom,p=v(e,Lt),u="text.secondary"===s||"textSecondary"===s?"muted":"text.primary"===s||"textPrimary"===s?"default":s,f=i||(o.startsWith("h")?o:"p");return a(f,m({ref:t,className:De(Ot({variant:o,color:u}),r),style:m(m(m({},d&&{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"}),c&&{marginBottom:"0.35em"}),l)},p))});Tt.displayName="Typography";var Mt=["className","variant","size","label","onClick","onDelete","style","icon","color"],St=et("inline-flex items-center rounded-full px-2.5 py-0.5 text-xs font-semibold transition-colors",{variants:{variant:{default:"text-white",secondary:"bg-secondary text-secondary-foreground",outline:"border border-input bg-background hover:bg-accent",outlined:"border border-input bg-background hover:bg-accent"},size:{small:"h-6 text-xs px-2",medium:"h-7 text-sm px-2.5"}},defaultVariants:{variant:"default",size:"medium"}}),zt=e.forwardRef(function(t,r){var n,o,i,s,d,c=t.className,p=t.variant,u=t.size,f=t.label,g=t.onClick,x=t.onDelete,h=t.style,b=t.icon,y=t.color,w=v(t,Mt);return l(g||x?"button":"span",m(m({ref:r,className:De(St({variant:p,size:u}),"outline"!==p&&"outlined"!==p&&("primary"===y?"bg-primary text-primary-foreground hover:bg-primary/90":"secondary"===y?"bg-secondary text-secondary-foreground hover:bg-secondary/80":"error"===y||"destructive"===y?"bg-destructive text-destructive-foreground hover:bg-destructive/90":"success"===y?"bg-success text-success-foreground hover:bg-success/90":"info"===y?"bg-info text-info-foreground hover:bg-info/90":"warning"===y?"bg-warning text-warning-foreground hover:bg-warning/90":"bg-primary text-primary-foreground hover:bg-primary/90"),"outlined"===p||"outline"===p?"primary"===y?"border-primary":"secondary"===y?"border-secondary":"error"===y||"destructive"===y?"border-destructive":"border-border":"",(g||x)&&"cursor-pointer",c),style:h,onClick:g},w),{},{children:[b&&e.isValidElement(b)&&a("span",{className:"flex items-center justify-center flex-shrink-0 mr-1",style:{color:"inherit",display:"inline-flex",alignItems:"center",justifyContent:"center",lineHeight:1},children:e.cloneElement(b,{style:m(m({},(null===(n=b.props)||void 0===n?void 0:n.style)||{}),{},{width:(null===(o=b.props)||void 0===o||null===(o=o.style)||void 0===o?void 0:o.width)||"16px",height:(null===(i=b.props)||void 0===i||null===(i=i.style)||void 0===i?void 0:i.height)||"16px",fontSize:(null===(s=b.props)||void 0===s||null===(s=s.style)||void 0===s?void 0:s.fontSize)||"16px",color:"inherit",display:"inline-flex",alignItems:"center",justifyContent:"center"}),sx:null===(d=b.props)||void 0===d?void 0:d.sx})}),a("span",{className:"flex items-center overflow-hidden text-ellipsis whitespace-nowrap max-w-full leading-none",children:f}),x&&a("span",{className:"ml-1 cursor-pointer",onClick:x,children:"×"})]}))});zt.displayName="Chip";var jt=["className","fullWidth","variant","size","InputProps","label","error","helperText","placeholder","multiline","rows","maxRows","disabled","value","floatingLabel","required","inputClassName"],At=["backgroundColor","height"],Dt=["style","InputProps"],It=e.forwardRef(function(t,r){var n,o,i=t.className,s=t.fullWidth,d=void 0!==s&&s,c=t.variant,p=void 0===c?"outlined":c,u=t.size,f=void 0===u?"small":u,x=t.InputProps,h=t.label,b=t.error,y=void 0!==b&&b,w=t.helperText,k=t.placeholder,N=t.multiline,C=void 0!==N&&N,E=t.rows;t.maxRows;var R,L,O=t.disabled,T=void 0!==O&&O,M=t.value,S=t.floatingLabel,z=void 0!==S&&S,j=t.required,A=void 0!==j&&j,D=t.inputClassName,I=v(t,jt),W=function(e){return e||"hsl(var(--background))"},B=g(e.useState(!1),2),P=B[0],H=B[1],V=e.useRef(null),F=e.useCallback(function(e){V.current=e,"function"==typeof r?r(e):r&&(r.current=e)},[r]),q=null!=M&&""!==M,_={small:"text-sm",medium:"text-base"},G={small:"px-2.5 py-1.5",medium:"px-3 py-2"},U=void 0!==(null==x||null===(R=x.style)||void 0===R?void 0:R.backgroundColor)?x.style.backgroundColor:void 0!==(null===(L=I.style)||void 0===L?void 0:L.backgroundColor)?I.style.backgroundColor:"filled"===p?P?W("hsl(var(--input))"):"hsl(var(--muted) / 0.3)":"standard"===p?P?W("hsl(var(--input))"):"hsl(var(--muted) / 0.5)":P?W("hsl(var(--background))"):"transparent",Y=I.style||{};Y.backgroundColor;var $=Y.height,K=v(Y,At),X=void 0!==(null==x||null===(n=x.style)||void 0===n?void 0:n.backgroundColor)?x.style.backgroundColor:U,Z=(null==x||null===(o=x.style)||void 0===o?void 0:o.height)||$;I.style,I.InputProps;var J=v(I,Dt),Q=function(){return"standard"===p?{borderTop:"none",borderLeft:"none",borderRight:"none",borderBottom:y?"2px solid hsl(var(--destructive))":P?"2px solid hsl(var(--ring))":"2px solid hsl(var(--input))",borderRadius:"0"}:{borderColor:y?"hsl(var(--destructive))":P?"hsl(var(--ring))":"hsl(var(--input))"}},ee=m(m(m(m({},Q()),{},{color:"hsl(var(--foreground))"},Z&&{height:Z}),K),{},{backgroundColor:X}),te=C?"textarea":"input",re=!q&&(k||J.placeholder),ne=C?void 0:J.type||"text",oe=m(m({},J),{},{type:ne,value:M,placeholder:re?k||J.placeholder:void 0,disabled:T,rows:C?E:void 0});return l("div",z?{className:De(d&&"w-full",i),children:[l("div",{className:"relative",children:[a(te,m({ref:F,type:ne,className:De("w-full transition-all","standard"===p?"":"rounded-2xl border",_[f],G[f],"focus-visible:outline-none","disabled:cursor-not-allowed disabled:opacity-50",(null==x?void 0:x.startAdornment)&&"pl-10",(null==x?void 0:x.endAdornment)&&"pr-10",C&&"resize-none"),style:m(m(m({},K),Q()),{},{color:"hsl(var(--foreground))",backgroundColor:X},Z&&{height:Z,lineHeight:Z}),onFocus:function(e){H(!0),I.onFocus&&I.onFocus(e)},onBlur:function(e){H(!1),I.onBlur&&I.onBlur(e)}},oe)),(null==x?void 0:x.startAdornment)&&a("div",{className:"absolute left-3 top-1/2 -translate-y-1/2 flex items-center justify-center z-10",children:x.startAdornment}),(null==x?void 0:x.endAdornment)&&a("div",{className:"absolute right-3 top-1/2 -translate-y-1/2 flex items-center justify-center z-10",children:x.endAdornment})]}),w&&a("div",{className:"text-xs mt-1",style:{color:y?"hsl(var(--destructive))":"hsl(var(--muted-foreground))"},children:w})]}:{className:De(d&&"w-full",i),children:[h&&l("label",{className:"block text-sm font-medium mb-2 text-foreground",children:[h,A&&a("span",{className:"ml-1 text-destructive",children:"*"})]}),l("div",{className:"relative w-full",children:[a(te,m({ref:F,type:ne,className:De("w-full transition-colors","standard"===p?"":"rounded-2xl border",_[f],G[f],"focus-visible:outline-none","disabled:cursor-not-allowed disabled:opacity-50",(null==x?void 0:x.startAdornment)&&"pl-10",(null==x?void 0:x.endAdornment)&&"pr-10",C&&"resize-none",D,null==x?void 0:x.className),style:ee,onFocus:function(e){H(!0),I.onFocus&&I.onFocus(e)},onBlur:function(e){H(!1),I.onBlur&&I.onBlur(e)}},oe)),(null==x?void 0:x.startAdornment)&&a("div",{className:"absolute left-3 top-1/2 -translate-y-1/2 flex items-center justify-center",children:x.startAdornment}),(null==x?void 0:x.endAdornment)&&a("div",{className:"absolute right-3 top-1/2 -translate-y-1/2 flex items-center justify-center",children:x.endAdornment})]}),w&&a("div",{className:De("text-xs mt-1",y?"text-destructive":"text-muted-foreground"),children:w})]})});It.displayName="TextField";
|
|
2
2
|
/**
|
|
3
3
|
* @license lucide-react v0.562.0 - ISC
|
|
4
4
|
*
|
|
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 Wt=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)},Bt=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()},Pt={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"},Ht=["color","size","strokeWidth","absoluteStrokeWidth","className","children","iconNode"],Vt=r(function(e,t){var r=e.color,o=void 0===r?"currentColor":r,i=e.size,a=void 0===i?24:i,l=e.strokeWidth,s=void 0===l?2:l,d=e.absoluteStrokeWidth,c=e.className,p=void 0===c?"":c,u=e.children,f=e.iconNode,h=g(e,Ht);return n("svg",m(m(m({ref:t},Pt),{},{width:a,height:a,stroke:o,strokeWidth:d?24*Number(s)/Number(a):s,className:Bt("lucide",p)},!u&&!function(e){for(var t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0}(h)&&{"aria-hidden":"true"}),h),[].concat(x(f.map(function(e){var t=v(e,2),r=t[0],o=t[1];return n(r,o)})),x(Array.isArray(u)?u:[u])))}),Ft=["className"],qt=function(e,t){var o=r(function(r,o){var i,a=r.className,l=g(r,Ft);return n(Vt,m({ref:o,iconNode:t,className:Bt("lucide-".concat((i=Wt(e),i.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase())),"lucide-".concat(e),a)},l))});return o.displayName=Wt(e),o},_t=qt("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]),Gt=qt("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]),Ut=qt("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"}]]),Yt=qt("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"}]]),$t=qt("info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]),Kt=qt("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"}]]),Xt=qt("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),Zt=["className","children","value","onChange","size","label","error","helperText","disabled","displayEmpty","native","renderValue","startAdornment","endAdornment","multiple","sx","style","menuStyle","menuClassName"],Jt=["className","value","children"],Qt=["className","fullWidth","size","children","style"],er=e.forwardRef(function(t,r){var n=t.className,o=t.children,i=t.value,s=t.onChange,d=t.size,c=void 0===d?"small":d,p=t.label,u=t.error,f=void 0!==u&&u,h=t.helperText,b=t.disabled,y=void 0!==b&&b,w=t.displayEmpty,k=void 0!==w&&w;t.native;var N=t.renderValue,C=t.startAdornment,E=t.endAdornment,R=t.multiple,L=void 0!==R&&R,O=t.sx,T=t.style,M=t.menuStyle,S=t.menuClassName,z=g(t,Zt),j=function(e){return e||"hsl(var(--background))"},A="dark"===We(),D=v(e.useState(!1),2),I=D[0],W=D[1],B=v(e.useState(!1),2),P=B[0],H=B[1],V=v(e.useState(!1),2),F=V[0],q=V[1],_=e.useRef(null),G=e.useRef(null),U=e.useId();e.useImperativeHandle(r,function(){return _.current});var Y=e.useMemo(function(){return O?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]=Ie(r)}):t[o]=Ie(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 O?O({}):O):{}},[O]),$=L&&Array.isArray(i),K=$?i:[i],X=e.useMemo(function(){if(!o)return"";if($)return"";var t=e.Children.toArray(o).find(function(t){return e.isValidElement(t)&&t.props.value===i});return t&&e.isValidElement(t)?t.props.children:""},[o,i,$]);e.useEffect(function(){var e=function(e){G.current&&!G.current.contains(e.target)&&_.current&&!_.current.contains(e.target)&&q(!1)};if(F)return document.addEventListener("mousedown",e),function(){return document.removeEventListener("mousedown",e)}},[F]);var Z=function(e){if(s)if($){var t=Array.isArray(i)?i:[],r=t.includes(e)?t.filter(function(t){return t!==e}):[].concat(x(t),[e]);s({target:{value:r}})}else s({target:{value:e}}),q(!1)};return l("div",{className:"relative w-full",style:{overflow:"visible"},children:[p&&a("label",{className:"block text-sm font-medium mb-1 text-foreground",children:p}),l("button",m(m({ref:_,type:"button",role:"combobox","aria-expanded":F,"aria-haspopup":"listbox","aria-label":p||"Select an option","aria-controls":F?"".concat(U,"-listbox"):void 0,onClick:function(){return!y&&q(!F)},disabled:y,className:De("w-full rounded-3xl border transition-colors flex items-center",{small:"h-9 text-sm",medium:"h-10"}[c],"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:m(m(m({borderColor:f?"hsl(var(--destructive))":I||F||P?"hsl(var(--primary))":"hsl(var(--input))",backgroundColor:I||F?j("hsl(var(--input))"):P?"hsl(var(--accent))":"transparent",color:"hsl(var(--foreground))",textAlign:"left",fontWeight:"normal",paddingLeft:C?"8px":"14px",paddingRight:E?"8px":"14px",paddingTop:"6px",paddingBottom:"6px"},void 0!==(null==T?void 0:T.borderRadius)?{borderRadius:T.borderRadius}:{}),Y),Object.fromEntries(Object.entries(T||{}).filter(function(e){return"borderRadius"!==v(e,1)[0]}))),onFocus:function(){return!y&&W(!0)},onBlur:function(){return W(!1)},onMouseEnter:function(){return!y&&H(!0)},onMouseLeave:function(){return H(!1)}},z),{},{children:[C,a("span",{style:{flex:1,textAlign:"left"},children:N?N(i):X||(k?"":"Select...")}),E||a(Gt,{size:16,className:De("transition-transform text-foreground",F&&"rotate-180")})]})),F&&a("div",{ref:G,id:"".concat(U,"-listbox"),role:"listbox","aria-label":p||"Options",className:De("absolute z-50 w-full mt-1 shadow-lg",S),style:m({backgroundColor:"hsl(var(--card))",boxShadow:A?"0px 4px 12px rgba(0, 0, 0, 0.4)":"0px 4px 12px rgba(0, 0, 0, 0.15)",border:A?"1px solid rgba(255, 255, 255, 0.1)":"1px solid hsl(var(--border))",borderRadius:"8px",overflow:"hidden"},M),children:e.Children.map(o,function(t){if(!e.isValidElement(t))return null;var r=$?K.includes(t.props.value):t.props.value===i,n="hsl(var(--card))";return a("div",{role:"option","aria-selected":r,onClick:function(){return Z(t.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(e){"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),Z(t.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:t.props.children},t.props.value)})}),h&&a("div",{className:"text-xs mt-1",style:{color:f?"hsl(var(--destructive))":"hsl(var(--muted-foreground))"},children:h})]})});er.displayName="Select";var tr=e.forwardRef(function(e,t){return e.className,e.value,e.children,g(e,Jt),null});tr.displayName="MenuItem";var rr=e.forwardRef(function(e,t){var r=e.className,n=e.fullWidth,o=void 0!==n&&n;e.size;var i=e.children,l=e.style,s=g(e,Qt);return a("div",m(m({ref:t,className:De(o&&"w-full",r),style:m({position:"relative"},l)},s),{},{children:i}))});rr.displayName="FormControl";var nr=["className","checked","onChange","disabled","style","aria-label","aria-labelledby"],or=e.forwardRef(function(t,r){var n=t.className,o=t.checked,i=t.onChange,s=t.disabled,d=t.style,c=t["aria-label"],p=t["aria-labelledby"],u=g(t,nr),f=v(e.useState(!1),2),x=f[0],h=f[1];return l("label",{className:De("relative inline-flex items-center justify-center cursor-pointer",s&&"cursor-not-allowed opacity-50",n),style:d,children:[a("input",m({ref:r,type:"checkbox",checked:o,onChange:i,disabled:s,className:"sr-only","aria-label":c,"aria-labelledby":p},u)),a("div",{className:De("flex items-center justify-center transition-colors w-5 h-5 border-2 rounded",o?"bg-primary border-primary":x&&!s?"border-primary":"border-input bg-transparent",s&&"opacity-50 cursor-not-allowed"),onMouseEnter:function(){return!s&&h(!0)},onMouseLeave:function(){return h(!1)},"aria-hidden":"true",children:o&&a(_t,{size:14,className:"text-primary-foreground"})})]})});or.displayName="Checkbox";var ir=["className","style","children"],ar=["className","style","alignItems","disablePadding","dense","children"],lr=["padding","paddingTop","paddingBottom","paddingLeft","paddingRight"],sr=["className","style","children"],dr=["marginRight","minWidth","color"],cr=["className","style","primary","secondary","children"],pr=["className","style","selected","onClick","disabled","children","dense","disablePadding"],ur=["className","style","children"],fr=["marginRight","minWidth"],mr=e.forwardRef(function(e,t){var r=e.className,n=e.style,o=e.children,i=g(e,ir);return a("div",m(m({ref:t,className:De("w-full",r),style:m({padding:0,margin:0},n)},i),{},{children:o}))});mr.displayName="List";var gr=e.forwardRef(function(e,t){var r=e.className,n=e.style,o=e.alignItems,i=void 0===o?"flex-start":o,l=e.disablePadding,s=e.dense,d=e.children,c=g(e,ar),p=n||{},u=p.padding,f=p.paddingTop,v=p.paddingBottom,x=p.paddingLeft,h=p.paddingRight,b=g(p,lr),y="";return l||(void 0!==u||void 0!==f||void 0!==v||void 0!==x||void 0!==h)||(y=s?"py-2 px-8":"py-4 px-8"),a("div",m(m({ref:t,className:De("flex",y,r),style:m({alignItems:i,padding:l?0:u,paddingTop:l?0:f,paddingBottom:l?0:v,paddingLeft:l?0:x,paddingRight:l?0:h},b)},c),{},{children:d}))});gr.displayName="ListItem";var vr=e.forwardRef(function(e,t){var r=e.className,n=e.style,o=e.children,i=g(e,sr),l=n||{},s=l.marginRight,d=l.minWidth,c=l.color,p=g(l,dr);return a("div",m(m({ref:t,className:De("flex items-center justify-center",r),style:m(m({minWidth:void 0!==d?d:"auto",marginRight:void 0!==s?s:"1rem"},void 0!==c&&{color:c}),p)},i),{},{children:o}))});vr.displayName="ListItemIcon";var xr=e.forwardRef(function(t,r){var n=t.className,o=t.style,i=t.primary,s=t.secondary,d=t.children,c=g(t,cr);return l("div",m(m({ref:r,className:De("flex flex-col",n),style:m({flex:1,margin:0},o)},c),{},{children:[i&&a("div",{className:De(s&&"mb-2"),children:e.isValidElement(i)?i:a(Tt,{variant:"body1",color:"default",children:i})}),s&&a("div",{children:e.isValidElement(s)?s:a(Tt,{variant:"body2",color:"muted",children:s})}),d]}))});xr.displayName="ListItemText";var hr=e.forwardRef(function(t,r){var n=t.className,o=t.style,i=t.selected,l=t.onClick,s=t.disabled,d=t.children,c=t.dense,p=t.disablePadding,u=g(t,pr),f=v(e.useState(!1),2),x=f[0],h=f[1],b="";return p||(b=c?"py-2 px-8":"py-4 px-8"),a("div",m(m({ref:r,role:"button",tabIndex:s?-1:0,"aria-disabled":s,"aria-selected":i,className:De("flex cursor-pointer transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",b,i?"bg-primary text-primary-foreground hover:bg-primary/90":x?"bg-accent text-accent-foreground":"hover:bg-accent hover:text-accent-foreground",s&&"opacity-50 cursor-not-allowed",n),style:m({alignItems:"center"},o),onClick:s?void 0:l,onKeyDown:function(e){s||"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),l&&l(e))},onMouseEnter:function(){return!s&&h(!0)},onMouseLeave:function(){return h(!1)}},u),{},{children:d}))});hr.displayName="ListItemButton";var br=e.forwardRef(function(e,t){var r=e.className,n=e.style,o=e.children,i=g(e,ur),l=n||{},s=l.marginRight,d=l.minWidth,c=g(l,fr);return a("div",m(m({ref:t,className:De("flex items-center justify-center",r),style:m({minWidth:void 0!==d?d:"40px",marginRight:void 0!==s?s:"1rem"},c)},i),{},{children:o}))});br.displayName="ListItemAvatar";var yr=["className","style","expanded","onChange","children","defaultExpanded"],wr=["marginBottom","border","borderRadius","boxShadow","backgroundColor"],kr=["className","style","expandIcon","children","expanded","onChange","id"],Nr=["padding","paddingTop","paddingBottom","paddingLeft","paddingRight","backgroundColor"],Cr=["className","style","expanded","children","id"],Er=["backgroundColor","padding","paddingTop","paddingBottom","paddingLeft","paddingRight"],Rr=["padding","paddingTop","paddingBottom","paddingLeft","paddingRight"],Lr=e.forwardRef(function(t,r){var n=t.className,o=t.style,i=t.expanded,l=t.onChange,s=t.children,d=t.defaultExpanded,c=g(t,yr),p=v(e.useState(d||!1),2),u=p[0],f=p[1],x=e.useId(),h=e.useRef(l),b=e.useRef(i);e.useEffect(function(){h.current=l,b.current=i},[l,i]);var y=e.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:u);f(o),h.current&&h.current(e,o)},[u]),w=void 0!==i?i:u;null==o||o.backgroundColor;var k=o||{},N=k.marginBottom,C=k.border,E=k.borderRadius,R=k.boxShadow,L=k.backgroundColor,O=g(k,wr);return a("div",m(m({ref:r,role:"region",className:De("overflow-hidden rounded-2xl",void 0===N&&"mb-2",n),style:m({border:void 0!==C?C:"1px solid hsl(var(--border))",borderRadius:void 0!==E?E:16,boxShadow:void 0!==R?R:"none",backgroundColor:void 0!==L?L:"hsl(var(--card))",marginBottom:N},O)},c),{},{children:e.Children.map(s,function(t){if(e.isValidElement(t)){if(t.type===Or)return e.cloneElement(t,{expanded:w,onChange:y,id:"".concat(x,"-summary")});if(t.type===Tr)return e.cloneElement(t,{expanded:w,id:"".concat(x,"-content")})}return t})}))});Lr.displayName="Accordion";var Or=e.forwardRef(function(e,t){var r=e.className,n=e.style,o=e.expandIcon,i=e.children,s=e.expanded,d=e.onChange,c=e.id,p=g(e,kr),u=n||{},f=u.padding,v=u.paddingTop,x=u.paddingBottom,h=u.paddingLeft,b=u.paddingRight,y=u.backgroundColor,w=g(u,Nr),k=void 0!==f||void 0!==v||void 0!==x||void 0!==h||void 0!==b?"":"py-2 px-4",N=void 0!==(null==n?void 0:n.minHeight)?n.minHeight:"auto",C=c?"".concat(c,"-content"):void 0;return l("button",m(m({ref:t,type:"button",id:c,"aria-expanded":s,"aria-controls":C,onClick:function(e){e.preventDefault(),e.stopPropagation(),d&&d(e)},className:De("w-full flex items-center justify-between transition-colors focus:outline-none",k,r),style:m({border:"none",borderTop:"none",borderBottom:"none",cursor:"pointer",textAlign:"left",backgroundColor:void 0!==y?y:"transparent",minHeight:N,padding:f,paddingTop:v,paddingBottom:x,paddingLeft:h,paddingRight:b},w),onKeyDown:function(e){"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),d&&d(e))}},p),{},{children:[a("div",{style:{flex:1},children:i}),!1!==o&&(o||a(Gt,{size:20,className:"text-foreground",style:{transform:s?"rotate(180deg)":"rotate(0deg)",transition:"transform 0.2s",marginLeft:"0.5rem"}}))]}))});Or.displayName="AccordionSummary";var Tr=e.forwardRef(function(e,t){var r=e.className,n=e.style,o=e.expanded,i=e.children,l=e.id,s=g(e,Cr);if(!o)return null;var d=n||{},c=d.backgroundColor,p=d.padding,u=d.paddingTop,f=d.paddingBottom,v=d.paddingLeft,x=d.paddingRight,h=g(d,Er);h.padding,h.paddingTop,h.paddingBottom,h.paddingLeft,h.paddingRight;var b=void 0!==p?p:void 0!==u||void 0!==f||void 0!==v||void 0!==x?void 0:"1rem",y=m({backgroundColor:c||"transparent"},g(h,Rr));return void 0!==b&&(y.padding=b),void 0!==u&&(y.paddingTop=u),void 0!==f&&(y.paddingBottom=f),void 0!==v&&(y.paddingLeft=v),void 0!==x&&(y.paddingRight=x),a("div",m(m({ref:t,id:l,role:"region","aria-labelledby":l?l.replace("-content","-summary"):void 0,className:De("text-foreground",r),style:m(m({},y),{},{borderTop:"none"})},s),{},{children:i}))});Tr.displayName="AccordionDetails";var Mr=["className","severity","variant","onClose","action","icon","iconMapping","children","style"],Sr=["padding","paddingTop","paddingBottom","paddingLeft","paddingRight"],zr=e.forwardRef(function(e,t){var r,n,o=e.className,i=e.severity,s=void 0===i?"info":i,d=e.variant,c=void 0===d?"standard":d,p=e.onClose,u=e.action,f=e.icon,v=e.iconMapping,x=e.children,b=e.style,y=g(e,Mr),w={error:Ut,warning:Kt,info:$t,success:Yt},k=f&&"object"===h(f)&&f.$$typeof,N=!k&&(f||(null==v?void 0:v[s])||w[s]||$t),C=(null===(r=(n={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===r?void 0:r[c])||n.info.standard,E=b||{},R=E.padding,L=E.paddingTop,O=E.paddingBottom,T=E.paddingLeft,M=E.paddingRight,S=g(E,Sr);return l("div",m(m({ref:t,role:"alert",className:De("relative flex items-center gap-3 rounded-2xl text-sm",void 0!==R||void 0!==L||void 0!==O||void 0!==T||void 0!==M?"":"p-4","outlined"===c&&"border",C,o),style:m({padding:R,paddingTop:L,paddingBottom:O,paddingLeft:T,paddingRight:M},S)},y),{},{children:[!1!==f&&(k?a("div",{className:"flex-shrink-0 flex items-center text-current",children:f}):a(N,{size:20,className:"flex-shrink-0 text-current"})),a("div",{className:"flex-1 flex items-center",children:x}),(p||u)&&l("div",{className:"flex items-center gap-1",children:[u,p&&a("button",{onClick:p,className:"flex items-center justify-center rounded-sm opacity-70 hover:opacity-100 transition-opacity p-2 text-current","aria-label":"Close",children:a(Xt,{size:16})})]})]}))});zr.displayName="Alert";var jr=["className","value","onChange","children","centered","variant","style"],Ar=["className","label","selected","onClick","index","style","variant","id","aria-controls"],Dr=["padding","paddingLeft","paddingRight","paddingTop","paddingBottom","margin","marginLeft","marginRight","backgroundColor","color"],Ir=["onClick"],Wr=["backgroundColor","color"],Br=["onClick"],Pr=e.forwardRef(function(t,r){var n=t.className,o=t.value,i=t.onChange,s=t.children,d=t.centered,c=t.variant,p=t.style,u=g(t,jr),f=e.useRef(null),x=e.useRef(null),h=v(e.useState(function(){return void 0!==o?o:0}),2),b=h[0],y=h[1];e.useEffect(function(){void 0!==o&&y(o)},[o]);var w=e.useCallback(function(e){var t=e;void 0===o&&y(t),i&&i(null,t)},[o,i]),k=void 0!==o?o:b,N="standard"===c;e.useEffect(function(){if(N&&f.current&&x.current){var e=f.current.querySelectorAll("[data-tab-index]")[k];if(e){var t=f.current.getBoundingClientRect(),r=e.getBoundingClientRect();x.current.style.left="".concat(r.left-t.left,"px"),x.current.style.width="".concat(r.width,"px")}}},[k,s,N]);var C=e.useId();return l("div",m(m({ref:r,className:De(N?"relative mb-4":"flex",!N&&d&&"justify-center",n),style:m({minHeight:"auto"},p)},u),{},{children:[a("div",{ref:f,role:"tablist","aria-label":"Tabs",className:De(N?"flex border-b relative w-full":"flex gap-4 px-8 py-4"),style:m(m({},N&&{borderColor:"hsl(var(--border))"}),N&&{display:"flex",width:"100%"}),children:e.Children.map(s,function(t,r){var n;if(e.isValidElement(t)&&(t.type===Hr||"Tab"===(null===(n=t.type)||void 0===n?void 0:n.displayName))){var o=Number(k)===Number(r);return e.cloneElement(t,m(m({},t.props),{},{selected:o,onClick:function(){return w(r)},index:r,"data-tab-index":r,variant:N?"standard":void 0,id:"".concat(C,"-tab-").concat(r),"aria-controls":"".concat(C,"-panel-").concat(r)}))}return t})}),N&&a("div",{ref:x,style:{position:"absolute",bottom:0,height:"2px",backgroundColor:"hsl(var(--primary))",transition:"all 0.3s cubic-bezier(0.4, 0, 0.2, 1)"}})]}))});Pr.displayName="Tabs";var Hr=e.forwardRef(function(e,t){var r=e.className,n=e.label,o=e.selected,i=e.onClick;e.index;var l=e.style,s=e.variant,d=e.id,c=e["aria-controls"],p=g(e,Ar),u="standard"===s,f=l||{},v=f.padding,x=f.paddingLeft,h=f.paddingRight,b=f.paddingTop,y=f.paddingBottom,w=f.margin,k=f.marginLeft,N=f.marginRight,C=f.backgroundColor,E=f.color,R=g(f,Dr),L=void 0!==v||void 0!==x||void 0!==h||void 0!==b||void 0!==y;if(u){var O=L?"":"px-3 py-4",T=void 0!==E?E:o?"hsl(var(--primary))":"hsl(var(--muted-foreground))",M=p.onClick,S=g(p,Ir);return a("button",m(m({ref:t,type:"button",role:"tab",id:d,"aria-selected":o,"aria-controls":c,tabIndex:o?0:-1,onClick:function(e){i&&i(e),M&&M(e)},onKeyDown:function(e){"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),i&&i(e))},className:De("cursor-pointer transition-all duration-200 text-sm border-none bg-transparent focus:outline-none",O,"min-w-[72px] min-h-[48px] flex-1",o?"font-semibold":"font-medium",r),style:m({color:T,textTransform:"none",flex:1,minWidth:0,padding:v,paddingLeft:x,paddingRight:h,paddingTop:b,paddingBottom:y,margin:w,marginLeft:k,marginRight:N},R),onMouseEnter:function(e){o||(e.currentTarget.style.backgroundColor="hsl(var(--accent))")},onMouseLeave:function(e){e.currentTarget.style.backgroundColor="transparent"}},S),{},{children:n}))}var z=o?{color:"hsl(var(--primary-foreground))",backgroundColor:"hsl(var(--primary))"}:{color:"hsl(var(--foreground))",backgroundColor:"hsl(var(--accent))"},j=L?"":"px-4 py-3",A=void 0!==w||void 0!==k||void 0!==N?"":"mx-2",D=void 0!==C?C:z.backgroundColor,I=void 0!==E?E:z.color;R.backgroundColor,R.color;var W=g(R,Wr),B=p.onClick,P=g(p,Br);return a("button",m(m({ref:t,type:"button",role:"tab",id:d,"aria-selected":o,"aria-controls":c,tabIndex:o?0:-1,onClick:function(e){i&&i(e),B&&B(e)},onKeyDown:function(e){"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),i&&i(e))},className:De("cursor-pointer transition-all duration-200 min-h-[32px] min-w-[100px] rounded-2xl text-sm border-none focus:outline-none",j,A,o?"font-semibold":"font-medium",r),style:m(m(m(m(m(m(m(m(m({color:I,backgroundColor:D},void 0!==v&&{padding:v}),void 0!==x&&{paddingLeft:x}),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=o?"hsl(var(--primary) / 0.9)":"hsl(var(--accent))"},onMouseLeave:function(e){e.currentTarget.style.backgroundColor=D}},P),{},{children:n}))});Hr.displayName="Tab";var Vr="top",Fr="bottom",qr="right",_r="left",Gr="auto",Ur=[Vr,Fr,qr,_r],Yr="start",$r="end",Kr="viewport",Xr="popper",Zr=Ur.reduce(function(e,t){return e.concat([t+"-"+Yr,t+"-"+$r])},[]),Jr=[].concat(Ur,[Gr]).reduce(function(e,t){return e.concat([t,t+"-"+Yr,t+"-"+$r])},[]),Qr=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function en(e){return e?(e.nodeName||"").toLowerCase():null}function tn(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function rn(e){return e instanceof tn(e).Element||e instanceof Element}function nn(e){return e instanceof tn(e).HTMLElement||e instanceof HTMLElement}function on(e){return"undefined"!=typeof ShadowRoot&&(e instanceof tn(e).ShadowRoot||e instanceof ShadowRoot)}var an={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];nn(o)&&en(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},{});nn(n)&&en(n)&&(Object.assign(n.style,i),Object.keys(o).forEach(function(e){n.removeAttribute(e)}))})}},requires:["computeStyles"]};function ln(e){return e.split("-")[0]}var sn=Math.max,dn=Math.min,cn=Math.round;function pn(){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 un(){return!/^((?!chrome|android).)*safari/i.test(pn())}function fn(e,t,r){void 0===t&&(t=!1),void 0===r&&(r=!1);var n=e.getBoundingClientRect(),o=1,i=1;t&&nn(e)&&(o=e.offsetWidth>0&&cn(n.width)/e.offsetWidth||1,i=e.offsetHeight>0&&cn(n.height)/e.offsetHeight||1);var a=(rn(e)?tn(e):window).visualViewport,l=!un()&&r,s=(n.left+(l&&a?a.offsetLeft:0))/o,d=(n.top+(l&&a?a.offsetTop:0))/i,c=n.width/o,p=n.height/i;return{width:c,height:p,top:d,right:s+c,bottom:d+p,left:s,x:s,y:d}}function mn(e){var t=fn(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 gn(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&on(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function vn(e){return tn(e).getComputedStyle(e)}function xn(e){return["table","td","th"].indexOf(en(e))>=0}function hn(e){return((rn(e)?e.ownerDocument:e.document)||window.document).documentElement}function bn(e){return"html"===en(e)?e:e.assignedSlot||e.parentNode||(on(e)?e.host:null)||hn(e)}function yn(e){return nn(e)&&"fixed"!==vn(e).position?e.offsetParent:null}function wn(e){for(var t=tn(e),r=yn(e);r&&xn(r)&&"static"===vn(r).position;)r=yn(r);return r&&("html"===en(r)||"body"===en(r)&&"static"===vn(r).position)?t:r||function(e){var t=/firefox/i.test(pn());if(/Trident/i.test(pn())&&nn(e)&&"fixed"===vn(e).position)return null;var r=bn(e);for(on(r)&&(r=r.host);nn(r)&&["html","body"].indexOf(en(r))<0;){var n=vn(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 kn(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Nn(e,t,r){return sn(e,dn(t,r))}function Cn(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function En(e,t){return t.reduce(function(t,r){return t[r]=e,t},{})}var Rn={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,l=ln(r.placement),s=kn(l),d=[_r,qr].indexOf(l)>=0?"height":"width";if(i&&a){var c=function(e,t){return Cn("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:En(e,Ur))}(o.padding,r),p=mn(i),u="y"===s?Vr:_r,f="y"===s?Fr:qr,m=r.rects.reference[d]+r.rects.reference[s]-a[s]-r.rects.popper[d],g=a[s]-r.rects.reference[s],v=wn(i),x=v?"y"===s?v.clientHeight||0:v.clientWidth||0:0,h=m/2-g/2,b=c[u],y=x-p[d]-c[f],w=x/2-p[d]/2+h,k=Nn(b,w,y),N=s;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)))&&gn(t.elements.popper,n)&&(t.elements.arrow=n)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Ln(e){return e.split("-")[1]}var On={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Tn(e){var t,r=e.popper,n=e.popperRect,o=e.placement,i=e.variation,a=e.offsets,l=e.position,s=e.gpuAcceleration,d=e.adaptive,c=e.roundOffsets,p=e.isFixed,u=a.x,f=void 0===u?0:u,m=a.y,g=void 0===m?0:m,v="function"==typeof c?c({x:f,y:g}):{x:f,y:g};f=v.x,g=v.y;var x=a.hasOwnProperty("x"),h=a.hasOwnProperty("y"),b=_r,y=Vr,w=window;if(d){var k=wn(r),N="clientHeight",C="clientWidth";if(k===tn(r)&&"static"!==vn(k=hn(r)).position&&"absolute"===l&&(N="scrollHeight",C="scrollWidth"),o===Vr||(o===_r||o===qr)&&i===$r)y=Fr,g-=(p&&k===w&&w.visualViewport?w.visualViewport.height:k[N])-n.height,g*=s?1:-1;if(o===_r||(o===Vr||o===Fr)&&i===$r)b=qr,f-=(p&&k===w&&w.visualViewport?w.visualViewport.width:k[C])-n.width,f*=s?1:-1}var E,R=Object.assign({position:l},d&&On),L=!0===c?function(e,t){var r=e.x,n=e.y,o=t.devicePixelRatio||1;return{x:cn(r*o)/o||0,y:cn(n*o)/o||0}}({x:f,y:g},tn(r)):{x:f,y:g};return f=L.x,g=L.y,s?Object.assign({},R,((E={})[y]=h?"0":"",E[b]=x?"0":"",E.transform=(w.devicePixelRatio||1)<=1?"translate("+f+"px, "+g+"px)":"translate3d("+f+"px, "+g+"px, 0)",E)):Object.assign({},R,((t={})[y]=h?g+"px":"",t[b]=x?f+"px":"",t.transform="",t))}var Mn={passive:!0};var Sn={left:"right",right:"left",bottom:"top",top:"bottom"};function zn(e){return e.replace(/left|right|bottom|top/g,function(e){return Sn[e]})}var jn={start:"end",end:"start"};function An(e){return e.replace(/start|end/g,function(e){return jn[e]})}function Dn(e){var t=tn(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function In(e){return fn(hn(e)).left+Dn(e).scrollLeft}function Wn(e){var t=vn(e),r=t.overflow,n=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+o+n)}function Bn(e){return["html","body","#document"].indexOf(en(e))>=0?e.ownerDocument.body:nn(e)&&Wn(e)?e:Bn(bn(e))}function Pn(e,t){var r;void 0===t&&(t=[]);var n=Bn(e),o=n===(null==(r=e.ownerDocument)?void 0:r.body),i=tn(n),a=o?[i].concat(i.visualViewport||[],Wn(n)?n:[]):n,l=t.concat(a);return o?l:l.concat(Pn(bn(a)))}function Hn(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Vn(e,t,r){return t===Kr?Hn(function(e,t){var r=tn(e),n=hn(e),o=r.visualViewport,i=n.clientWidth,a=n.clientHeight,l=0,s=0;if(o){i=o.width,a=o.height;var d=un();(d||!d&&"fixed"===t)&&(l=o.offsetLeft,s=o.offsetTop)}return{width:i,height:a,x:l+In(e),y:s}}(e,r)):rn(t)?function(e,t){var r=fn(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):Hn(function(e){var t,r=hn(e),n=Dn(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=sn(r.scrollWidth,r.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=sn(r.scrollHeight,r.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),l=-n.scrollLeft+In(e),s=-n.scrollTop;return"rtl"===vn(o||r).direction&&(l+=sn(r.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:l,y:s}}(hn(e)))}function Fn(e,t,r,n){var o="clippingParents"===t?function(e){var t=Pn(bn(e)),r=["absolute","fixed"].indexOf(vn(e).position)>=0&&nn(e)?wn(e):e;return rn(r)?t.filter(function(e){return rn(e)&&gn(e,r)&&"body"!==en(e)}):[]}(e):[].concat(t),i=[].concat(o,[r]),a=i[0],l=i.reduce(function(t,r){var o=Vn(e,r,n);return t.top=sn(o.top,t.top),t.right=dn(o.right,t.right),t.bottom=dn(o.bottom,t.bottom),t.left=sn(o.left,t.left),t},Vn(e,a,n));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function qn(e){var t,r=e.reference,n=e.element,o=e.placement,i=o?ln(o):null,a=o?Ln(o):null,l=r.x+r.width/2-n.width/2,s=r.y+r.height/2-n.height/2;switch(i){case Vr:t={x:l,y:r.y-n.height};break;case Fr:t={x:l,y:r.y+r.height};break;case qr:t={x:r.x+r.width,y:s};break;case _r:t={x:r.x-n.width,y:s};break;default:t={x:r.x,y:r.y}}var d=i?kn(i):null;if(null!=d){var c="y"===d?"height":"width";switch(a){case Yr:t[d]=t[d]-(r[c]/2-n[c]/2);break;case $r:t[d]=t[d]+(r[c]/2-n[c]/2)}}return t}function _n(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,l=r.boundary,s=void 0===l?"clippingParents":l,d=r.rootBoundary,c=void 0===d?Kr:d,p=r.elementContext,u=void 0===p?Xr:p,f=r.altBoundary,m=void 0!==f&&f,g=r.padding,v=void 0===g?0:g,x=Cn("number"!=typeof v?v:En(v,Ur)),h=u===Xr?"reference":Xr,b=e.rects.popper,y=e.elements[m?h:u],w=Fn(rn(y)?y:y.contextElement||hn(e.elements.popper),s,c,a),k=fn(e.elements.reference),N=qn({reference:k,element:b,placement:o}),C=Hn(Object.assign({},b,N)),E=u===Xr?C:k,R={top:w.top-E.top+x.top,bottom:E.bottom-w.bottom+x.bottom,left:w.left-E.left+x.left,right:E.right-w.right+x.right},L=e.modifiersData.offset;if(u===Xr&&L){var O=L[o];Object.keys(R).forEach(function(e){var t=[qr,Fr].indexOf(e)>=0?1:-1,r=[Vr,Fr].indexOf(e)>=0?"y":"x";R[e]+=O[r]*t})}return R}function Gn(e,t){void 0===t&&(t={});var r=t,n=r.placement,o=r.boundary,i=r.rootBoundary,a=r.padding,l=r.flipVariations,s=r.allowedAutoPlacements,d=void 0===s?Jr:s,c=Ln(n),p=c?l?Zr:Zr.filter(function(e){return Ln(e)===c}):Ur,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]=_n(e,{placement:r,boundary:o,rootBoundary:i,padding:a})[ln(r)],t},{});return Object.keys(f).sort(function(e,t){return f[e]-f[t]})}var Un={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,l=void 0===a||a,s=r.fallbackPlacements,d=r.padding,c=r.boundary,p=r.rootBoundary,u=r.altBoundary,f=r.flipVariations,m=void 0===f||f,g=r.allowedAutoPlacements,v=t.options.placement,x=ln(v),h=s||(x===v||!m?[zn(v)]:function(e){if(ln(e)===Gr)return[];var t=zn(e);return[An(e),t,An(t)]}(v)),b=[v].concat(h).reduce(function(e,r){return e.concat(ln(r)===Gr?Gn(t,{placement:r,boundary:c,rootBoundary:p,padding:d,flipVariations:m,allowedAutoPlacements:g}):r)},[]),y=t.rects.reference,w=t.rects.popper,k=new Map,N=!0,C=b[0],E=0;E<b.length;E++){var R=b[E],L=ln(R),O=Ln(R)===Yr,T=[Vr,Fr].indexOf(L)>=0,M=T?"width":"height",S=_n(t,{placement:R,boundary:c,rootBoundary:p,altBoundary:u,padding:d}),z=T?O?qr:_r:O?Fr:Vr;y[M]>w[M]&&(z=zn(z));var j=zn(z),A=[];if(i&&A.push(S[L]<=0),l&&A.push(S[z]<=0,S[j]<=0),A.every(function(e){return e})){C=R,N=!1;break}k.set(R,A)}if(N)for(var D=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"===D(I))break}t.placement!==C&&(t.modifiersData[n]._skip=!0,t.placement=C,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function Yn(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 $n(e){return[Vr,qr,Fr,_r].some(function(t){return e[t]>=0})}var Kn={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,l=void 0!==a&&a,s=r.boundary,d=r.rootBoundary,c=r.altBoundary,p=r.padding,u=r.tether,f=void 0===u||u,m=r.tetherOffset,g=void 0===m?0:m,v=_n(t,{boundary:s,rootBoundary:d,padding:p,altBoundary:c}),x=ln(t.placement),h=Ln(t.placement),b=!h,y=kn(x),w="x"===y?"y":"x",k=t.modifiersData.popperOffsets,N=t.rects.reference,C=t.rects.popper,E="function"==typeof g?g(Object.assign({},t.rects,{placement:t.placement})):g,R="number"==typeof E?{mainAxis:E,altAxis:E}:Object.assign({mainAxis:0,altAxis:0},E),L=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,O={x:0,y:0};if(k){if(i){var T,M="y"===y?Vr:_r,S="y"===y?Fr:qr,z="y"===y?"height":"width",j=k[y],A=j+v[M],D=j-v[S],I=f?-C[z]/2:0,W=h===Yr?N[z]:C[z],B=h===Yr?-C[z]:-N[z],P=t.elements.arrow,H=f&&P?mn(P):{width:0,height:0},V=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},F=V[M],q=V[S],_=Nn(0,N[z],H[z]),G=b?N[z]/2-I-_-F-R.mainAxis:W-_-F-R.mainAxis,U=b?-N[z]/2+I+_+q+R.mainAxis:B+_+q+R.mainAxis,Y=t.elements.arrow&&wn(t.elements.arrow),$=Y?"y"===y?Y.clientTop||0:Y.clientLeft||0:0,K=null!=(T=null==L?void 0:L[y])?T:0,X=j+U-K,Z=Nn(f?dn(A,j+G-K-$):A,j,f?sn(D,X):D);k[y]=Z,O[y]=Z-j}if(l){var J,Q="x"===y?Vr:_r,ee="x"===y?Fr:qr,te=k[w],re="y"===w?"height":"width",ne=te+v[Q],oe=te-v[ee],ie=-1!==[Vr,_r].indexOf(x),ae=null!=(J=null==L?void 0:L[w])?J:0,le=ie?ne:te-N[re]-C[re]-ae+R.altAxis,se=ie?te+N[re]+C[re]-ae-R.altAxis:oe,de=f&&ie?function(e,t,r){var n=Nn(e,t,r);return n>r?r:n}(le,te,se):Nn(f?le:ne,te,f?se:oe);k[w]=de,O[w]=de-te}t.modifiersData[n]=O}},requiresIfExists:["offset"]};function Xn(e,t,r){void 0===r&&(r=!1);var n,o,i=nn(t),a=nn(t)&&function(e){var t=e.getBoundingClientRect(),r=cn(t.width)/e.offsetWidth||1,n=cn(t.height)/e.offsetHeight||1;return 1!==r||1!==n}(t),l=hn(t),s=fn(e,a,r),d={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(i||!i&&!r)&&(("body"!==en(t)||Wn(l))&&(d=(n=t)!==tn(n)&&nn(n)?{scrollLeft:(o=n).scrollLeft,scrollTop:o.scrollTop}:Dn(n)),nn(t)?((c=fn(t,!0)).x+=t.clientLeft,c.y+=t.clientTop):l&&(c.x=In(l))),{x:s.left+d.scrollLeft-c.x,y:s.top+d.scrollTop-c.y,width:s.width,height:s.height}}function Zn(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 Jn={placement:"bottom",modifiers:[],strategy:"absolute"};function Qn(){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 eo(e){void 0===e&&(e={});var t=e,r=t.defaultModifiers,n=void 0===r?[]:r,o=t.defaultOptions,i=void 0===o?Jn:o;return function(e,t,r){void 0===r&&(r=i);var o,a,l={placement:"bottom",orderedModifiers:[],options:Object.assign({},Jn,i),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},s=[],d=!1,c={state:l,setOptions:function(r){var o="function"==typeof r?r(l.options):r;p(),l.options=Object.assign({},i,l.options,o),l.scrollParents={reference:rn(e)?Pn(e):e.contextElement?Pn(e.contextElement):[],popper:Pn(t)};var a,d,u=function(e){var t=Zn(e);return Qr.reduce(function(e,r){return e.concat(t.filter(function(e){return e.phase===r}))},[])}((a=[].concat(n,l.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 l.orderedModifiers=u.filter(function(e){return e.enabled}),l.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:l,name:t,instance:c,options:n}),a=function(){};s.push(i||a)}}),c.update()},forceUpdate:function(){if(!d){var e=l.elements,t=e.reference,r=e.popper;if(Qn(t,r)){l.rects={reference:Xn(t,wn(r),"fixed"===l.options.strategy),popper:mn(r)},l.reset=!1,l.placement=l.options.placement,l.orderedModifiers.forEach(function(e){return l.modifiersData[e.name]=Object.assign({},e.data)});for(var n=0;n<l.orderedModifiers.length;n++)if(!0!==l.reset){var o=l.orderedModifiers[n],i=o.fn,a=o.options,s=void 0===a?{}:a,p=o.name;"function"==typeof i&&(l=i({state:l,options:s,name:p,instance:c})||l)}else l.reset=!1,n=-1}}},update:(o=function(){return new Promise(function(e){c.forceUpdate(),e(l)})},function(){return a||(a=new Promise(function(e){Promise.resolve().then(function(){a=void 0,e(o())})})),a}),destroy:function(){p(),d=!0}};if(!Qn(e,t))return c;function p(){s.forEach(function(e){return e()}),s=[]}return c.setOptions(r).then(function(e){!d&&r.onFirstUpdate&&r.onFirstUpdate(e)}),c}}var to=eo({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,l=void 0===a||a,s=tn(t.elements.popper),d=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&d.forEach(function(e){e.addEventListener("scroll",r.update,Mn)}),l&&s.addEventListener("resize",r.update,Mn),function(){i&&d.forEach(function(e){e.removeEventListener("scroll",r.update,Mn)}),l&&s.removeEventListener("resize",r.update,Mn)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,r=e.name;t.modifiersData[r]=qn({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,l=r.roundOffsets,s=void 0===l||l,d={placement:ln(t.placement),variation:Ln(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,Tn(Object.assign({},d,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:s})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,Tn(Object.assign({},d,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:s})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},an,{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=Jr.reduce(function(e,r){return e[r]=function(e,t,r){var n=ln(e),o=[_r,Vr].indexOf(n)>=0?-1:1,i="function"==typeof r?r(Object.assign({},t,{placement:e})):r,a=i[0],l=i[1];return a=a||0,l=(l||0)*o,[_r,qr].indexOf(n)>=0?{x:l,y:a}:{x:a,y:l}}(r,t.rects,i),e},{}),l=a[t.placement],s=l.x,d=l.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=s,t.modifiersData.popperOffsets.y+=d),t.modifiersData[n]=a}},Un,Kn,Rn,{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=_n(t,{elementContext:"reference"}),l=_n(t,{altBoundary:!0}),s=Yn(a,n),d=Yn(l,o,i),c=$n(s),p=$n(d);t.modifiersData[r]={referenceClippingOffsets:s,popperEscapeOffsets:d,isReferenceHidden:c,hasPopperEscaped:p},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":p})}}]}),ro="tippy-content",no="tippy-arrow",oo="tippy-svg-arrow",io={passive:!0,capture:!0},ao=function(){return document.body};function lo(e,t,r){if(Array.isArray(e)){var n=e[t];return null==n?Array.isArray(r)?r[t]:r:n}return e}function so(e,t){var r={}.toString.call(e);return 0===r.indexOf("[object")&&r.indexOf(t+"]")>-1}function co(e,t){return"function"==typeof e?e.apply(void 0,t):e}function po(e,t){return 0===t?e:function(n){clearTimeout(r),r=setTimeout(function(){e(n)},t)};var r}function uo(e){return[].concat(e)}function fo(e,t){-1===e.indexOf(t)&&e.push(t)}function mo(e){return[].slice.call(e)}function go(e){return Object.keys(e).reduce(function(t,r){return void 0!==e[r]&&(t[r]=e[r]),t},{})}function vo(){return document.createElement("div")}function xo(e){return["Element","Fragment"].some(function(t){return so(e,t)})}function ho(e){return xo(e)?[e]:function(e){return so(e,"NodeList")}(e)?mo(e):Array.isArray(e)?e:mo(document.querySelectorAll(e))}function bo(e,t){e.forEach(function(e){e&&(e.style.transitionDuration=t+"ms")})}function yo(e,t){e.forEach(function(e){e&&e.setAttribute("data-state",t)})}function wo(e,t,r){var n=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(t){e[n](t,r)})}function ko(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 No={isTouch:!1},Co=0;function Eo(){No.isTouch||(No.isTouch=!0,window.performance&&document.addEventListener("mousemove",Ro))}function Ro(){var e=performance.now();e-Co<20&&(No.isTouch=!1,document.removeEventListener("mousemove",Ro)),Co=e}function Lo(){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 Oo,To=!!("undefined"!=typeof window&&"undefined"!=typeof document)&&!!window.msCrypto;function Mo(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 So(e){return e.replace(/[ \t]{2,}/g," ").replace(/^[ \t]*/gm,"").trim()}function zo(e){return So("\n %ctippy.js\n\n %c"+So(e)+"\n\n %c👷 This is a development-only message. It will be removed in production.\n ")}function jo(e){return[zo(e),"color: #00C584; font-size: 1.3em; font-weight: bold;","line-height: 1.5","color: #a6a095;"]}function Ao(e,t){var r;e&&!Oo.has(t)&&(Oo.add(t),(r=console).warn.apply(r,jo(t)))}function Do(e,t){var r;e&&!Oo.has(t)&&(Oo.add(t),(r=console).error.apply(r,jo(t)))}"production"!==process.env.NODE_ENV&&(Oo=new Set);var Io={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},Wo=Object.assign({appendTo:ao,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},Io,{allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999}),Bo=Object.keys(Wo);function Po(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=Wo[o])?n:i);return t},{});return Object.assign({},e,t)}function Ho(e,t){var r=Object.assign({},t,{content:co(t.content,[e])},t.ignoreAttributes?{}:function(e,t){return(t?Object.keys(Po(Object.assign({},Wo,{plugins:t}))):Bo).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({},Wo.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 Vo(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}(Wo,Object.keys(Io)),i=(r=o,n=e,!{}.hasOwnProperty.call(r,n));i&&(i=0===t.filter(function(t){return t.name===e}).length),Ao(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 Fo(e,t){e.innerHTML=t}function qo(e){var t=vo();return!0===e?t.className=no:(t.className=oo,xo(e)?t.appendChild(e):Fo(t,e)),t}function _o(e,t){xo(t.content)?(Fo(e,""),e.appendChild(t.content)):"function"!=typeof t.content&&(t.allowHTML?Fo(e,t.content):e.textContent=t.content)}function Go(e){var t=e.firstElementChild,r=mo(t.children);return{box:t,content:r.find(function(e){return e.classList.contains(ro)}),arrow:r.find(function(e){return e.classList.contains(no)||e.classList.contains(oo)}),backdrop:r.find(function(e){return e.classList.contains("tippy-backdrop")})}}function Uo(e){var t=vo(),r=vo();r.className="tippy-box",r.setAttribute("data-state","hidden"),r.setAttribute("tabindex","-1");var n=vo();function o(r,n){var o=Go(t),i=o.box,a=o.content,l=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||_o(a,e.props),n.arrow?l?r.arrow!==n.arrow&&(i.removeChild(l),i.appendChild(qo(n.arrow))):i.appendChild(qo(n.arrow)):l&&i.removeChild(l)}return n.className=ro,n.setAttribute("data-state","hidden"),_o(n,e.props),t.appendChild(r),r.appendChild(n),o(e.props,e.props),{popper:t,onUpdate:o}}Uo.$$tippy=!0;var Yo=1,$o=[],Ko=[];function Xo(e,t){var r,n,o,i,a,l,s,d,c=Ho(e,Object.assign({},Wo,Po(go(t)))),p=!1,u=!1,f=!1,m=!1,g=[],v=po(Y,c.interactiveDebounce),x=Yo++,h=(d=c.plugins).filter(function(e,t){return d.indexOf(e)===t}),b={id:x,reference:e,popper:vo(),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&&Ao(b.state.isDestroyed,Mo("setProps"));if(b.state.isDestroyed)return;j("onBeforeUpdate",[b,t]),G();var r=b.props,n=Ho(e,Object.assign({},r,go(t),{ignoreAttributes:!0}));b.props=n,_(),r.interactiveDebounce!==n.interactiveDebounce&&(I(),v=po(Y,n.interactiveDebounce));r.triggerTarget&&!n.triggerTarget?uo(r.triggerTarget).forEach(function(e){e.removeAttribute("aria-expanded")}):n.triggerTarget&&e.removeAttribute("aria-expanded");D(),z(),k&&k(r,n);b.popperInstance&&(Z(),Q().forEach(function(e){requestAnimationFrame(e._tippy.popperInstance.forceUpdate)}));j("onAfterUpdate",[b,t])},setContent:function(e){b.setProps({content:e})},show:function(){"production"!==process.env.NODE_ENV&&Ao(b.state.isDestroyed,Mo("show"));var e=b.state.isVisible,t=b.state.isDestroyed,r=!b.state.isEnabled,n=No.isTouch&&!b.props.touch,o=lo(b.props.duration,0,Wo.duration);if(e||t||r||n)return;if(O().hasAttribute("disabled"))return;if(j("onShow",[b],!1),!1===b.props.onShow(b))return;b.state.isVisible=!0,L()&&(w.style.visibility="visible");z(),H(),b.state.isMounted||(w.style.transition="none");if(L()){var i=M();bo([i.box,i.content],0)}l=function(){var e;if(b.state.isVisible&&!m){if(m=!0,w.offsetHeight,w.style.transition=b.props.moveTransition,L()&&b.props.animation){var t=M(),r=t.box,n=t.content;bo([r,n],o),yo([r,n],"visible")}A(),D(),fo(Ko,b),null==(e=b.popperInstance)||e.forceUpdate(),j("onMount",[b]),b.props.animation&&L()&&function(e,t){F(e,t)}(o,function(){b.state.isShown=!0,j("onShown",[b])})}},function(){var e,t=b.props.appendTo,r=O();e=b.props.interactive&&t===ao||"parent"===t?r.parentNode:co(t,[r]);e.contains(w)||e.appendChild(w);b.state.isMounted=!0,Z(),"production"!==process.env.NODE_ENV&&Ao(b.props.interactive&&t===Wo.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&&Ao(b.state.isDestroyed,Mo("hide"));var e=!b.state.isVisible,t=b.state.isDestroyed,r=!b.state.isEnabled,n=lo(b.props.duration,1,Wo.duration);if(e||t||r)return;if(j("onHide",[b],!1),!1===b.props.onHide(b))return;b.state.isVisible=!1,b.state.isShown=!1,m=!1,p=!1,L()&&(w.style.visibility="hidden");if(I(),V(),z(!0),L()){var o=M(),i=o.box,a=o.content;b.props.animation&&(bo([i,a],n),yo([i,a],"hidden"))}A(),D(),b.props.animation?L()&&function(e,t){F(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&&Ao(b.state.isDestroyed,Mo("hideWithInteractivity"));T().addEventListener("mousemove",v),fo($o,v),v(e)},enable:function(){b.state.isEnabled=!0},disable:function(){b.hide(),b.state.isEnabled=!1},unmount:function(){"production"!==process.env.NODE_ENV&&Ao(b.state.isDestroyed,Mo("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);Ko=Ko.filter(function(e){return e!==b}),b.state.isMounted=!1,j("onHidden",[b])},destroy:function(){"production"!==process.env.NODE_ENV&&Ao(b.state.isDestroyed,Mo("destroy"));if(b.state.isDestroyed)return;b.clearDelayTimeouts(),b.unmount(),G(),delete e._tippy,b.state.isDestroyed=!0,j("onDestroy",[b])}};if(!c.render)return"production"!==process.env.NODE_ENV&&Do(!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 _(),D(),z(),j("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&&T().addEventListener("mousemove",v)}),b;function E(){var e=b.props.touch;return Array.isArray(e)?e:[e,0]}function R(){return"hold"===E()[0]}function L(){var e;return!(null==(e=b.props.render)||!e.$$tippy)}function O(){return s||e}function T(){var e,t,r=O().parentNode;return r?null!=(t=uo(r)[0])&&null!=(e=t.ownerDocument)&&e.body?t.ownerDocument:document:document}function M(){return Go(w)}function S(e){return b.state.isMounted&&!b.state.isVisible||No.isTouch||i&&"focus"===i.type?0:lo(b.props.delay,e?0:1,Wo.delay)}function z(e){void 0===e&&(e=!1),w.style.pointerEvents=b.props.interactive&&!e?"":"none",w.style.zIndex=""+b.props.zIndex}function j(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;uo(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 D(){!C&&b.props.aria.expanded&&uo(b.props.triggerTarget||e).forEach(function(e){b.props.interactive?e.setAttribute("aria-expanded",b.state.isVisible&&e===O()?"true":"false"):e.removeAttribute("aria-expanded")})}function I(){T().removeEventListener("mousemove",v),$o=$o.filter(function(e){return e!==v})}function W(t){if(!No.isTouch||!f&&"mousedown"!==t.type){var r=t.composedPath&&t.composedPath()[0]||t.target;if(!b.props.interactive||!ko(w,r)){if(uo(b.props.triggerTarget||e).some(function(e){return ko(e,r)})){if(No.isTouch)return;if(b.state.isVisible&&b.props.trigger.indexOf("click")>=0)return}else j("onClickOutside",[b,t]);!0===b.props.hideOnClick&&(b.clearDelayTimeouts(),b.hide(),u=!0,setTimeout(function(){u=!1}),b.state.isMounted||V())}}}function B(){f=!0}function P(){f=!1}function H(){var e=T();e.addEventListener("mousedown",W,!0),e.addEventListener("touchend",W,io),e.addEventListener("touchstart",P,io),e.addEventListener("touchmove",B,io)}function V(){var e=T();e.removeEventListener("mousedown",W,!0),e.removeEventListener("touchend",W,io),e.removeEventListener("touchstart",P,io),e.removeEventListener("touchmove",B,io)}function F(e,t){var r=M().box;function n(e){e.target===r&&(wo(r,"remove",n),t())}if(0===e)return t();wo(r,"remove",a),wo(r,"add",n),a=n}function q(t,r,n){void 0===n&&(n=!1),uo(b.props.triggerTarget||e).forEach(function(e){e.addEventListener(t,r,n),g.push({node:e,eventType:t,handler:r,options:n})})}function _(){var e;R()&&(q("touchstart",U,{passive:!0}),q("touchend",$,{passive:!0})),(e=b.props.trigger,e.split(/\s+/).filter(Boolean)).forEach(function(e){if("manual"!==e)switch(q(e,U),e){case"mouseenter":q("mouseleave",$);break;case"focus":q(To?"focusout":"blur",K);break;case"focusin":q("focusout",K)}})}function G(){g.forEach(function(e){var t=e.node,r=e.eventType,n=e.handler,o=e.options;t.removeEventListener(r,n,o)}),g=[]}function U(e){var t,r=!1;if(b.state.isEnabled&&!X(e)&&!u){var n="focus"===(null==(t=i)?void 0:t.type);i=e,s=e.currentTarget,D(),!b.state.isVisible&&so(e,"MouseEvent")&&$o.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 Y(e){var t=e.target,r=O().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],l=o.modifiersData.offset;if(!l)return!0;var s="bottom"===a?l.top.y:0,d="top"===a?l.bottom.y:0,c="right"===a?l.left.x:0,p="left"===a?l.right.x:0,u=t.top-n+s>i,f=n-t.bottom-d>i,m=t.left-r+c>i,g=r-t.right-p>i;return u||f||m||g})})(n,e)&&(I(),te(e))}}function $(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!==O()||b.props.interactive&&e.relatedTarget&&w.contains(e.relatedTarget)||te(e)}function X(e){return!!No.isTouch&&R()!==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,s=L()?Go(w).arrow:null,d=i?{getBoundingClientRect:i,contextElement:i.contextElement||O()}:e,c={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t=e.state;if(L()){var r=M().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];L()&&s&&p.push({name:"arrow",options:{element:s,padding:3}}),p.push.apply(p,(null==r?void 0:r.modifiers)||[]),b.popperInstance=to(d,w,Object.assign({},r,{placement:n,onFirstUpdate:l,modifiers:p}))}function J(){b.popperInstance&&(b.popperInstance.destroy(),b.popperInstance=null)}function Q(){return mo(w.querySelectorAll("[data-tippy-root]"))}function ee(e){b.clearDelayTimeouts(),e&&j("onTrigger",[b,e]),H();var t=S(!0),n=E(),o=n[0],i=n[1];No.isTouch&&"hold"===o&&i&&(t=i),t?r=setTimeout(function(){b.show()},t):b.show()}function te(e){if(b.clearDelayTimeouts(),j("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 V()}}function Zo(e,t){void 0===t&&(t={});var r=Wo.plugins.concat(t.plugins||[]);"production"!==process.env.NODE_ENV&&(!function(e){var t=!e,r="[object Object]"===Object.prototype.toString.call(e)&&!e.addEventListener;Do(t,["tippy() was passed","`"+String(e)+"`","as its targets (first) argument. Valid types are: String, Element,","Element[], or NodeList."].join(" ")),Do(r,["tippy() was passed a plain object which is not supported as an argument","for virtual positioning. Use props.getReferenceClientRect instead."].join(" "))}(e),Vo(t,r)),document.addEventListener("touchstart",Eo,io),window.addEventListener("blur",Lo);var n=Object.assign({},t,{plugins:r}),o=ho(e);if("production"!==process.env.NODE_ENV){var i=xo(n.content),a=o.length>1;Ao(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 l=o.reduce(function(e,t){var r=t&&Xo(t,n);return r&&e.push(r),e},[]);return xo(e)?l[0]:l}Zo.defaultProps=Wo,Zo.setDefaultProps=function(e){"production"!==process.env.NODE_ENV&&Vo(e,[]),Object.keys(e).forEach(function(t){Wo[t]=e[t]})},Zo.currentInput=No,Object.assign({},an,{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)}}),Zo.setDefaultProps({render:Uo});var Jo=["title","children","placement","arrow","delay","className","style"],Qo=e.forwardRef(function(t,r){var n=t.title,o=t.children,i=t.placement,a=void 0===i?"top":i,l=t.arrow,s=void 0===l||l,d=t.delay,c=void 0===d?[100,0]:d,p=t.className,u=t.style,f=g(t,Jo),v=e.useRef(null),x=e.useRef(null);e.useImperativeHandle(r,function(){return v.current}),e.useEffect(function(){if(v.current){if(n){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 x.current=Zo(v.current,{content:n,placement:a,arrow:!!s&&'<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:c,theme:"material",animation:"fade",duration:[200,150],popperOptions:{modifiers:[{name:"offset",options:{offset:[0,8]}}]}}),function(){x.current&&(x.current.destroy(),x.current=null)}}x.current&&(x.current.destroy(),x.current=null)}},[n,a,s,c]),e.useEffect(function(){x.current&&n&&x.current.setContent(n)},[n]);var h=e.Children.only(o);return e.isValidElement(h)?e.cloneElement(h,m({ref:function(e){v.current=e,"function"==typeof h.ref?h.ref(e):h.ref&&(h.ref.current=e)},className:p?"".concat(h.props.className||""," ").concat(p).trim():h.props.className,style:m(m({},h.props.style),u)},f)):o});Qo.displayName="Tooltip";var ei=["options","getOptionLabel","value","onChange","inputValue","onInputChange","filterOptions","renderInput","className","style"],ti=e.forwardRef(function(t,r){var n,o,i,s,d=t.options,c=void 0===d?[]:d,p=t.getOptionLabel,u=t.value,f=t.onChange,x=t.inputValue,h=t.onInputChange,b=t.filterOptions,y=t.renderInput,w=t.className,k=t.style,N=g(t,ei),C=v(e.useState(!1),2),E=C[0],R=C[1],L=v(e.useState(c),2),O=L[0],T=L[1],M=e.useRef(null),S=e.useRef(null);e.useImperativeHandle(r,function(){return M.current}),e.useEffect(function(){var e="string"==typeof x?x:x?String(x):"";if(b){var t=b(c,{inputValue:e});T(t)}else if(e){var r=c.filter(function(t){var r=p?p(t):(null==t?void 0:t.name)||(null==t?void 0:t.label)||String(t);return String(r).toLowerCase().includes(e.toLowerCase())});T(r)}else T(c)},[c,x,b,p]);var z=function(e){f&&f(null,e);var t=p?p(e):(null==e?void 0:e.name)||(null==e?void 0:e.label)||String(e),r="string"==typeof t?t:String(t||"");h&&h(null,r),R(!1)},j=function(e){S.current&&!S.current.contains(e.target)&&M.current&&!M.current.contains(e.target)&&R(!1)};e.useEffect(function(){if(E)return document.addEventListener("mousedown",j),function(){document.removeEventListener("mousedown",j)}},[E]);var A=u?p?p(u):(null==u?void 0:u.name)||(null==u?void 0:u.label)||String(u):"",D=m({ref:M,value:null!=x?"string"==typeof x?x:String(x):"string"==typeof A?A:String(A||""),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)),h&&h(e,r),E||R(!0)},onFocus:function(){return R(!0)}},N);return l("div",y?{ref:r,className:De("relative",w),style:k,children:[y(m(m({},D),{},{InputProps:m(m({},D.InputProps||{}),{},{endAdornment:a("div",{className:"absolute right-2 top-1/2 -translate-y-1/2 cursor-pointer",onClick:function(e){e.stopPropagation(),e.preventDefault(),R(!E)},onMouseDown:function(e){e.stopPropagation(),e.preventDefault()},children:a("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",style:{transform:E?"rotate(180deg)":"rotate(0deg)",transition:"transform 0.2s"},children:a("path",{d:"M5 7.5L10 12.5L15 7.5",stroke:"hsl(var(--muted-foreground))",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})})})})),E&&O.length>0&&a("div",{ref:S,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:O.map(function(e,t){var r=p?p(e):(null==e?void 0:e.name)||(null==e?void 0:e.label)||String(e),n=u&&(p?p(u)===r:u===e||(null==u?void 0:u.id)&&(null==e?void 0:e.id)&&u.id===e.id);return a("div",{className:"px-3 py-2 cursor-pointer hover:bg-accent transition-colors",style:{backgroundColor:n?"hsl(var(--accent))":"transparent",color:"hsl(var(--foreground))"},onClick:function(){return z(e)},onMouseEnter:function(e){n||(e.currentTarget.style.backgroundColor="hsl(var(--accent))")},onMouseLeave:function(e){e.currentTarget.style.backgroundColor=n?"hsl(var(--accent))":"transparent"},children:r},t)})})]}:{ref:r,className:De("relative",w),style:k,children:[a(It,m(m({},D),{},{style:m(m({},D.style),{},{height:(null===(n=D.style)||void 0===n?void 0:n.height)||"40px"}),InputProps:m(m({},D.InputProps),{},{style:m(m({},null===(o=D.InputProps)||void 0===o?void 0:o.style),{},{backgroundColor:(null===(i=D.InputProps)||void 0===i||null===(i=i.style)||void 0===i?void 0:i.backgroundColor)||"transparent",height:(null===(s=D.InputProps)||void 0===s||null===(s=s.style)||void 0===s?void 0:s.height)||"40px"}),endAdornment:a("div",{className:"absolute right-2 top-1/2 -translate-y-1/2 cursor-pointer",onClick:function(e){e.stopPropagation(),e.preventDefault(),R(!E)},onMouseDown:function(e){e.stopPropagation(),e.preventDefault()},children:a("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",style:{transform:E?"rotate(180deg)":"rotate(0deg)",transition:"transform 0.2s"},children:a("path",{d:"M5 7.5L10 12.5L15 7.5",stroke:"hsl(var(--muted-foreground))",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})})})})),E&&O.length>0&&a("div",{ref:S,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:O.map(function(e,t){var r=p?p(e):(null==e?void 0:e.name)||(null==e?void 0:e.label)||String(e),n=u&&(p?p(u)===r:u===e||(null==u?void 0:u.id)&&(null==e?void 0:e.id)&&u.id===e.id);return a("div",{className:"px-3 py-2 cursor-pointer hover:bg-accent transition-colors",style:{backgroundColor:n?"hsl(var(--accent))":"transparent",color:"hsl(var(--foreground))"},onClick:function(){return z(e)},onMouseEnter:function(e){n||(e.currentTarget.style.backgroundColor="hsl(var(--accent))")},onMouseLeave:function(e){e.currentTarget.style.backgroundColor=n?"hsl(var(--accent))":"transparent"},children:r},t)})})]})});ti.displayName="Autocomplete";var ri=["value","onChange","clearable","slotProps","className","style","onOpenChange"],ni=function(){if("function"==typeof c)return c;if(c.default&&"function"==typeof c.default)return c.default;var e=c.default||c;if("function"==typeof e)return e;throw new Error("dayjs is not properly initialized. Expected a function but got: "+h(e))}(),oi=e.forwardRef(function(t,r){var n,o,i,d=t.value,c=t.onChange,p=t.clearable,u=void 0!==p&&p,f=t.slotProps,x=t.className,h=t.style,b=t.onOpenChange;g(t,ri);var y=v(e.useState(!1),2),w=y[0],k=y[1],N=v(e.useState(d?ni(d):null),2),C=N[0],E=N[1],R=e.useRef(null),L=e.useRef(null),O=e.useRef(null),T=e.useRef(null),M=v(e.useState("month"),2),S=M[0],z=M[1],j=v(e.useState(!1),2),A=j[0],D=j[1];e.useImperativeHandle(r,function(){return L.current}),e.useEffect(function(){E(d?ni(d):null)},[d]);var I=e.useCallback(function(e){R.current&&!R.current.contains(e.target)&&L.current&&!L.current.contains(e.target)&&(k(!1),D(!1),b&&b(!1))},[b]);e.useEffect(function(){if(w)return document.addEventListener("mousedown",I),function(){document.removeEventListener("mousedown",I)}},[w,I]);var W=(null==f?void 0:f.textField)||{},B=C?C.format("YYYY-MM-DD"):"";e.useEffect(function(){A&&T.current&&O.current&&setTimeout(function(){var e=T.current,t=O.current;if(e&&t){var r=e.offsetTop-t.clientHeight/2+e.clientHeight/2;t.scrollTop=r}},0)},[A]);var P=function(){for(var e=C||ni(),t=ni(e).startOf("month"),r=ni(e).endOf("month"),n=ni(t).startOf("week"),o=ni(r).endOf("week"),i=[],a=n;a.isBefore(o)||a.isSame(o);)i.push(ni(a)),a=ni(a).add(1,"day");return i}(),H=C?C.month():ni().month(),V=C?C.year():ni().year(),F=function(e){var t;E(t=e),c&&c(t),k(!1),b&&b(!1)};return l("div",{ref:R,className:De("relative",x),style:h,children:[a(It,m(m({},W),{},{ref:L,value:B||"",onClick:function(){var e=!w;k(e),b&&b(e)},readOnly:!0,placeholder:W.placeholder||"MM/DD/YYYY",style:m(m({},W.style),{},{fontSize:"0.875rem",height:(null===(n=W.style)||void 0===n?void 0:n.height)||"40px"}),InputProps:m(m({},W.InputProps),{},{style:m(m({},null===(o=W.InputProps)||void 0===o?void 0:o.style),{},{backgroundColor:null===(i=W.InputProps)||void 0===i||null===(i=i.style)||void 0===i?void 0:i.backgroundColor}),endAdornment:l("div",{className:"flex items-center gap-1",children:[u&&C&&a("div",{className:"cursor-pointer",onClick:function(e){e.stopPropagation(),E(null),c&&c(null)},style:{display:"flex",alignItems:"center",padding:"4px"},children:a("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:a("path",{d:"M12 4L4 12M4 4L12 12",stroke:"hsl(var(--muted-foreground))",strokeWidth:"2",strokeLinecap:"round"})})}),a("div",{className:"cursor-pointer",style:{padding:"4px"},onClick:function(e){e.stopPropagation();var t=!w;k(t),b&&b(t)},children:a("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",children:a("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"})})})]})})})),w&&l("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:[l("div",{className:"flex items-center justify-between mb-4",style:{color:"hsl(var(--foreground))"},children:[a("button",{type:"button",onClick:function(){var e;"year"===S?E(C?ni(C).subtract(10,"year"):ni().subtract(10,"year")):(e=C?ni(C).subtract(1,"month"):ni().subtract(1,"month"),E(e))},className:"p-1 rounded-lg hover:bg-action-hover transition-colors",style:{color:"hsl(var(--foreground))"},children:a("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",children:a("path",{d:"M12 15L7 10L12 5",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}),l("div",{className:"relative",children:[l("button",{type:"button",onClick:function(){"month"===S?D(!A):z("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"===S?"".concat(ni().month(H).format("MMMM")," ").concat(V):"".concat(V),"month"===S&&a("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",style:{transform:A?"rotate(180deg)":"rotate(0deg)",transition:"transform 0.2s"},children:a("path",{d:"M4 6L8 10L12 6",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})]}),A&&"month"===S&&a("div",{ref:O,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,t){var r=ni().year()-100+t,n=r===V;return a("button",{ref:n?T:null,type:"button",onClick:function(){var e=C?ni(C).year(r):ni().year(r).month(H);E(e),D(!1)},className:"w-full px-3 py-1.5 text-sm text-left hover:bg-action-hover transition-colors",style:{backgroundColor:n?"hsl(var(--accent))":"transparent",color:"hsl(var(--foreground))"},onMouseEnter:function(e){n||(e.currentTarget.style.backgroundColor="hsl(var(--accent))")},onMouseLeave:function(e){e.currentTarget.style.backgroundColor=n?"hsl(var(--accent))":"transparent"},children:r},r)})})]}),a("button",{type:"button",onClick:function(){var e;"year"===S?E(C?ni(C).add(10,"year"):ni().add(10,"year")):(e=C?ni(C).add(1,"month"):ni().add(1,"month"),E(e))},className:"p-1 rounded-lg hover:bg-action-hover transition-colors",style:{color:"hsl(var(--foreground))"},children:a("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",children:a("path",{d:"M8 5L13 10L8 15",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})})]}),"month"===S?l(s,{children:[a("div",{className:"grid grid-cols-7 gap-1 mb-2",children:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"].map(function(e){return a("div",{className:"text-center text-xs font-medium py-1 text-muted-foreground",children:e},e)})}),a("div",{className:"grid grid-cols-7 gap-1",children:P.map(function(e,t){var r=e.month()===H,n=e.isSame(ni(),"day"),o=C&&e.isSame(C,"day");return a("button",{type:"button",onClick:function(){return F(e)},className:De("aspect-square rounded-lg text-sm transition-colors",!r&&"opacity-30",o&&"font-semibold"),style:{backgroundColor:o?"hsl(var(--primary))":n?"hsl(var(--accent))":"transparent",color:o?"hsl(var(--primary-foreground))":"hsl(var(--foreground))",border:n&&!o?"1px solid hsl(var(--primary))":"none"},onMouseEnter:function(e){o||(e.currentTarget.style.backgroundColor="hsl(var(--accent))")},onMouseLeave:function(e){e.currentTarget.style.backgroundColor=o?"hsl(var(--primary))":n?"hsl(var(--accent))":"transparent"},children:e.date()},t)})})]}):a("div",{className:"grid grid-cols-4 gap-2",children:Array.from({length:12},function(e,t){var r=t,n=r===ni().month()&&V===ni().year(),o=C&&C.month()===r&&C.year()===V;return a("button",{type:"button",onClick:function(){var e=C?ni(C).month(r):ni().month(r).year(V);E(e),z("month")},className:"p-2 rounded-lg text-sm transition-colors",style:{backgroundColor:o?"hsl(var(--primary))":n?"hsl(var(--accent))":"transparent",color:o?"hsl(var(--primary-foreground))":"hsl(var(--foreground))"},onMouseEnter:function(e){o||(e.currentTarget.style.backgroundColor="hsl(var(--accent))")},onMouseLeave:function(e){e.currentTarget.style.backgroundColor=o?"hsl(var(--primary))":n?"hsl(var(--accent))":"transparent"},children:ni().month(r).format("MMM")},r)})})]})]})});oi.displayName="DatePicker";var ii=["anchor","open","onClose","onOpenChange","children","className","sx","PaperProps","transitionDuration","keepMounted","variant","ModalProps","SlideProps","BackdropProps"],ai=e.forwardRef(function(t,r){var n,o,i,d,c=t.anchor,p=void 0===c?"left":c,u=t.open,f=void 0!==u&&u,x=t.onClose,h=t.onOpenChange,b=t.children,y=t.className,w=t.sx,k=t.PaperProps,N=t.transitionDuration,C=void 0===N?300:N,E=t.keepMounted,R=void 0!==E&&E,L=t.variant,O=void 0===L?"temporary":L;t.ModalProps,t.SlideProps;var T=t.BackdropProps,M=g(t,ii),S=e.useRef(null);e.useImperativeHandle(r,function(){return S.current});e.useEffect(function(){h&&h(f)},[f,h]),e.useEffect(function(){if(f){var e=function(e){"Escape"===e.key&&x&&(x(e,"escapeKeyDown"),h&&h(!1))};return document.addEventListener("keydown",e),function(){document.removeEventListener("keydown",e)}}},[f,x]);var z=e.useMemo(function(){if(!w)return{rootStyles:{},paperStyles:{}};var e="function"==typeof w?w({}):w,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}},[w]),j=z.rootStyles,A=z.paperStyles,D=e.useMemo(function(){var e=null==k?void 0:k.sx;return e?"function"==typeof e?e({}):e:{}},[k]),I=function(){var e={position:"fixed",zIndex:parseInt(getComputedStyle(document.documentElement).getPropertyValue("--z-index-drawer")||"1200",10),transition:"transform ".concat(C,"ms cubic-bezier(0.4, 0, 0.2, 1)")};switch(p){case"left":return m(m({},e),{},{top:0,left:0,bottom:0,transform:f?"translateX(0)":"translateX(-100%)"});case"right":return m(m({},e),{},{top:0,right:0,bottom:0,transform:f?"translateX(0)":"translateX(100%)"});case"top":return m(m({},e),{},{top:0,left:0,right:0,width:"100%",transform:f?"translateY(0)":"translateY(-100%)"});case"bottom":return m(m({},e),{},{bottom:0,left:0,right:0,width:"100%",transform:f?"translateY(0)":"translateY(100%)"});default:return e}}();if(!f&&!R&&"permanent"!==O)return null;var W="permanent"===O,B=W||f||R;return l(s,{children:[("temporary"===O||"persistent"===O)&&B&&a("div",m({className:"fixed inset-0 bg-black/50",style:m({zIndex:parseInt(getComputedStyle(document.documentElement).getPropertyValue("--z-index-drawer")||"1200",10)-1,opacity:f?1:0,transition:"opacity ".concat(C,"ms cubic-bezier(0.4, 0, 0.2, 1)"),pointerEvents:f?"auto":"none"},null==T?void 0:T.style),onClick:function(e){"temporary"===O&&e.target===e.currentTarget&&x&&(x(e,"backdropClick"),h&&h(!1))},"aria-hidden":"true"},Object.fromEntries(Object.entries(T||{}).filter(function(e){return"style"!==v(e,1)[0]})))),a("div",m(m({ref:S,className:De("MuiDrawer-root","fixed","left"===p||"right"===p?"h-full":"w-full","top"===p||"bottom"===p?"h-auto":"w-auto",!f&&"pointer-events-none",y),style:m(m(m({},I),j),{},{display:B?"block":"none",transform:W?"translateX(0)":I.transform},M.style),role:"presentation"},Object.fromEntries(Object.entries(M).filter(function(e){var t=v(e,1)[0];return"style"!==t&&"BackdropProps"!==t}))),{},{children:a("div",{className:De("MuiDrawer-paper","MuiPaper-root","left"===p||"right"===p?"h-full":"","w-full","left"===p||"right"===p||"top"===p||"bottom"===p?"overflow-y-auto":"",null==k?void 0:k.className),style:m(m(m(m({backgroundColor:"hsl(var(--card))",boxShadow:void 0!==A.boxShadow?A.boxShadow:void 0!==D.boxShadow?D.boxShadow:void 0!==(null==k||null===(n=k.style)||void 0===n?void 0:n.boxShadow)?k.style.boxShadow:f?"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"===p||"right"===p?{height:"100%",width:(null==k||null===(o=k.style)||void 0===o?void 0:o.width)||A.width||D.width||"300px",minWidth:(null==k||null===(i=k.style)||void 0===i?void 0:i.minWidth)||A.minWidth||D.minWidth||"300px",maxWidth:(null==k||null===(d=k.style)||void 0===d?void 0:d.maxWidth)||A.maxWidth||D.maxWidth||"90vw"}:{width:"100%"}),A),D),null==k?void 0:k.style),children:b})}))]})});ai.displayName="Drawer";var li=["control","label","labelPlacement","disabled","value","className","sx"],si=e.forwardRef(function(t,r){var n=t.control,o=t.label,i=t.labelPlacement,s=void 0===i?"end":i,d=t.disabled,c=void 0!==d&&d,p=t.value,u=t.className,f=t.sx,v=g(t,li),x=e.useMemo(function(){return f?"function"==typeof f?f({}):f:{}},[f]),h="start"===s,b="top"===s,y="bottom"===s,w=e.useMemo(function(){return void 0!==p&&e.isValidElement(n)?e.cloneElement(n,m(m({},n.props),{},{value:p})):n},[n,p]);return l("label",m(m({ref:r,className:De("inline-flex items-center cursor-pointer",c&&"opacity-50 cursor-not-allowed",b&&"flex-col items-start",y&&"flex-col-reverse items-start",h&&"flex-row-reverse items-center",!b&&!y&&!h&&"items-center",u),style:x},v),{},{children:[a("span",{className:De("inline-flex items-center justify-center shrink-0",b&&"mb-1",y&&"mt-1",h&&"ml-2",!h&&!b&&!y&&"mr-2"),style:{minWidth:"20px",minHeight:"20px"},children:w}),o&&a("span",{className:De("text-sm text-foreground",c&&"text-muted-foreground opacity-50",h&&"mr-2"),children:o})]}))});si.displayName="FormControlLabel";var di=["children","component","className","sx","style","required","disabled","error","focused"],ci=e.forwardRef(function(t,r){var n=t.children,o=t.component,i=void 0===o?"label":o,s=t.className,d=t.sx,c=t.style,p=t.required,u=void 0!==p&&p,f=t.disabled,v=void 0!==f&&f,x=t.error,h=void 0!==x&&x,b=t.focused,y=void 0!==b&&b,w=g(t,di),k=e.useMemo(function(){return d?"function"==typeof d?d({}):d:{}},[d]);return l("legend"===i?"legend":"label",m(m({ref:r,className:De("block text-sm font-medium mb-1",h?"text-destructive":y?"text-primary":"text-foreground",v&&"opacity-50 cursor-not-allowed",s),style:m(m({},k),c)},w),{},{children:[n,u&&a("span",{className:"ml-1 text-destructive",children:"*"})]}))});ci.displayName="FormLabel";var pi=["children","className","sx","style","row"],ui=e.forwardRef(function(t,r){var n=t.children,o=t.className,i=t.sx,l=t.style,s=t.row,d=void 0!==s&&s,c=g(t,pi),p=e.useMemo(function(){return i?"function"==typeof i?i({}):i:{}},[i]);return a("div",m(m({ref:r,className:De("flex",d?"flex-row flex-wrap gap-4":"flex-col gap-3",o),style:m(m({},p),l)},c),{},{children:n}))});ui.displayName="FormGroup";var fi=["children","value","onChange","name","className","sx","style","disabled","row"],mi=e.createContext({value:null,onChange:null,name:null,disabled:!1}),gi=e.forwardRef(function(t,r){var n=t.children,o=t.value,i=t.onChange,l=t.name,s=t.className,d=t.sx,c=t.style,p=t.disabled,u=void 0!==p&&p,f=t.row,v=void 0!==f&&f,x=g(t,fi),h=e.useMemo(function(){return d?"function"==typeof d?d({}):d:{}},[d]),b=e.useCallback(function(e){i&&!u&&i(e)},[i,u]),y=e.useMemo(function(){return{value:o,onChange:b,name:l||"radio-group-".concat(Math.random().toString(36).substr(2,9)),disabled:u}},[o,b,l,u]);return a(mi.Provider,{value:y,children:a("div",m(m({ref:r,className:De("flex",v?"flex-row gap-4":"flex-col gap-2",u&&"opacity-50",s),style:m(m({},h),c),role:"radiogroup"},x),{},{children:n}))})});gi.displayName="RadioGroup";var vi=["className","checked","onChange","disabled","value","size","sx","style"],xi=e.forwardRef(function(t,r){var n=t.className,o=t.checked,i=t.onChange,s=t.disabled,d=t.value,c=t.size,p=void 0===c?"medium":c,u=t.sx,f=t.style,x=g(t,vi),h=v(e.useState(!1),2),b=h[0],y=h[1],w=e.useContext(mi),k=void 0!==o?o:(null==w?void 0:w.value)===d,N=void 0!==s?s:(null==w?void 0:w.disabled)||!1,C=e.useCallback(function(e){i?i(e):null!=w&&w.onChange&&w.onChange(e)},[i,w]),E=e.useMemo(function(){return u?"function"==typeof u?u({}):u:{}},[u]),R={small:18,medium:20,large:24},L=R[p]||R.medium,O=k?.5*L:0;return l("label",{className:De("relative inline-flex items-center justify-center cursor-pointer",N&&"cursor-not-allowed opacity-50",n),style:m(m({},E),f),children:[a("input",m({ref:r,type:"radio",checked:k,onChange:C,disabled:N,value:d,name:null==w?void 0:w.name,className:"sr-only"},x)),a("div",{className:De("flex items-center justify-center transition-all duration-200 border-2 rounded-full bg-transparent transition-colors",N&&"opacity-50 cursor-not-allowed",n,k||b&&!N?"border-primary":"border-input"),style:{width:"".concat(L,"px"),height:"".concat(L,"px")},onMouseEnter:function(){return!N&&y(!0)},onMouseLeave:function(){return y(!1)},children:k&&a("div",{className:"bg-primary rounded-full transition-all",style:{width:"".concat(O,"px"),height:"".concat(O,"px")}})})]})});xi.displayName="Radio";var hi=["className","style","in","timeout","children","unmountOnExit","orientation","collapsedSize"],bi=e.forwardRef(function(t,r){var n=t.className,o=t.style,i=t.in,l=void 0!==i&&i,s=t.timeout,d=void 0===s?"auto":s,c=t.children,p=t.unmountOnExit,u=void 0!==p&&p,f=t.orientation,x=void 0===f?"vertical":f,h=t.collapsedSize,b=void 0===h?"0px":h,y=g(t,hi),w=v(e.useState(l||!u),2),k=w[0],N=w[1],C=v(e.useState(function(){return l?"vertical"===x?"auto":"0px":b}),2),E=C[0],R=C[1],L=e.useRef(null),O=e.useRef(!0);if(e.useEffect(function(){if(u){if(!l){var e=setTimeout(function(){N(!1)},300);return function(){return clearTimeout(e)}}N(!0),O.current=!0}},[l,u]),e.useEffect(function(){var e="vertical"===x;if(L.current)if(O.current&&l){O.current=!1;var t=e?L.current.scrollHeight:L.current.scrollWidth;if(R(t>0?"".concat(t,"px"):e?"auto":"0px"),e){var r=setTimeout(function(){R("auto")},50);return function(){return clearTimeout(r)}}}else{O.current=!1;var n=L.current;if(l){var o=e?n.scrollHeight:n.scrollWidth;if(o>0){if(R("".concat(o,"px")),e){var i=setTimeout(function(){R("auto")},300);return function(){return clearTimeout(i)}}}else R(e?"auto":"0px")}else{var a=e?n.scrollHeight:n.scrollWidth;a>0?(R("".concat(a,"px")),requestAnimationFrame(function(){requestAnimationFrame(function(){R(b)})})):R(b)}}else if(l){var s=setTimeout(function(){if(L.current){var t=e?L.current.scrollHeight:L.current.scrollWidth;R(t>0?"".concat(t,"px"):e?"auto":"0px")}},0);return function(){return clearTimeout(s)}}},[l,b,x]),u&&!k)return null;var T="vertical"===x,M=l?"0px"===E?"auto":E:b;return a("div",m(m({ref:r,className:De("overflow-hidden transition-all",!T&&"inline-block",n),style:m(m({},T?{height:M,maxHeight:l?"none":b}:{width:M,maxWidth:l?"none":b,minWidth:0}),{},{transitionDuration:"auto"===d?"300ms":"number"==typeof d?"".concat(d,"ms"):"300ms",transitionTimingFunction:"ease-in-out"},o)},y),{},{children:a("div",{ref:L,style:T?void 0:{whiteSpace:"nowrap",display:"inline-block",width:"fit-content",minWidth:"fit-content"},children:c})}))});bi.displayName="Collapse";var yi=["className","style","children"],wi=e.forwardRef(function(e,t){var r=e.className,n=e.style,o=e.children,i=g(e,yi);return a(Tt,m(m({ref:t,variant:"body2",component:"p",color:"muted",className:r,style:m({marginBottom:"16px"},n)},i),{},{children:o}))});wi.displayName="DialogContentText";var ki=["className","style","maxWidth","fixed","disableGutters","children"],Ni=e.forwardRef(function(e,t){var r=e.className,n=e.style,o=e.maxWidth,i=void 0===o?"lg":o,l=e.fixed,s=void 0!==l&&l,d=e.disableGutters,c=void 0!==d&&d,p=e.children,u=g(e,ki),f=function(){if(!1===i)return"none";var e={xs:"444px",sm:"600px",md:"900px",lg:"1200px",xl:"1536px"};return e[i]||e.lg}();return a("div",m(m({ref:t,className:De("mx-auto",r),style:m(m(m({width:"100%",maxWidth:f},s&&{width:f}),c?{paddingLeft:0,paddingRight:0}:{paddingLeft:"16px",paddingRight:"16px"}),n)},u),{},{children:p}))});Ni.displayName="Container";var Ci=["className","style","orientation","variant","flexItem","light","textAlign","children"],Ei=e.forwardRef(function(e,t){var r=e.className,n=e.style,o=void 0===n?{}:n,i=e.orientation,s=void 0===i?"horizontal":i,d=e.variant,c=void 0===d?"fullWidth":d,p=e.flexItem,u=void 0!==p&&p,f=e.light,v=void 0!==f&&f,x=e.textAlign,h=void 0===x?"center":x,b=e.children,y=g(e,Ci),w="vertical"===s,k="inset"===c,N="middle"===c,C=null==o?void 0:o.marginLeft,E=null==o?void 0:o.marginRight;if(b){var R=C||(k||N?"16px":"0px"),L=E||(k?"0px":N?"16px":"0px");return l("div",m(m({ref:t,className:De("flex items-center",r),style:m({width:"100%",margin:"8px 0"},o)},y),{},{children:[a("div",{style:{flex:1,borderTopWidth:"1px",borderTopStyle:"solid",borderColor:v?"rgba(0, 0, 0, 0.08)":"hsl(var(--border))",marginLeft:"0px"!==R?R:void 0}}),a("div",{style:{paddingLeft:"16px",paddingRight:"16px",textAlign:h,color:"hsl(var(--muted-foreground))",fontSize:"0.875rem"},children:b}),a("div",{style:{flex:1,borderTopWidth:"1px",borderTopStyle:"solid",borderColor:v?"rgba(0, 0, 0, 0.08)":"hsl(var(--border))",marginRight:"0px"!==L?L:void 0}})]}))}var O=function(){var e={borderColor:v?"rgba(0, 0, 0, 0.08)":"hsl(var(--border))"};if(w){var t=C||(k?"16px":"8px"),r=E||(k?"16px":"8px");return m(m({},e),{},{borderLeftWidth:"1px",borderLeftStyle:"solid",height:"100%",width:"1px",marginLeft:t,marginRight:r})}var n=C||(k||N?"16px":"0px"),o=E||(k?"0px":N?"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),l=m(m({},e),{},{borderTopWidth:"1px",borderTopStyle:"solid",boxSizing:"border-box"});return u?l.width="1px":"fullWidth"===c?(l.width="100%",l.marginLeft="0px",l.marginRight="0px"):(l.width=a>0?"calc(100% - ".concat(a,"px)"):"100%","0px"!==n&&"0"!==n&&(l.marginLeft=n),"0px"!==o&&"0"!==o&&(l.marginRight=o)),l}();w||u||(void 0===o.marginTop&&void 0===O.marginTop&&(O.marginTop="8px"),void 0===o.marginBottom&&void 0===O.marginBottom&&(O.marginBottom="8px"));var T,M,S=m(m({},O),o);w||"fullWidth"!==c||u||(S.width="100%",S.marginLeft=null!==(T=o.marginLeft)&&void 0!==T?T:"0px",S.marginRight=null!==(M=o.marginRight)&&void 0!==M?M:"0px");return a("div",m({ref:t,className:De(w?"inline-block":"block",u&&"self-stretch",r),style:m({padding:0,display:w?"inline-block":"block"},S)},y))});Ei.displayName="Divider";var Ri=["className","style","src","alt","children","variant","sizes","imgProps"],Li=["color"],Oi=["color"],Ti=e.forwardRef(function(e,t){var r,n,o=e.className,i=e.style,s=e.src,d=e.alt,c=e.children,p=e.variant,u=void 0===p?"circular":p,f=e.sizes,v=e.imgProps,x=g(e,Ri),h=m({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"===u?{borderRadius:"8px"}:"square"===u?{borderRadius:"0px"}:{borderRadius:"50%"}),b="dark"===We();if(s){var y,w,k=i||{};k.color;var N=g(k,Li),C=m(m(m({},h),N),{},{borderRadius:null!==(y=null==i?void 0:i.borderRadius)&&void 0!==y?y:h.borderRadius,backgroundColor:null!==(w=null==i?void 0:i.backgroundColor)&&void 0!==w?w:h.backgroundColor,color:null!=i&&i.color?i.color:null!=i&&i.backgroundColor?b?"#000000":"#ffffff":h.color});return l("div",m(m({ref:t,className:De("relative",o),style:C},x),{},{children:[a("img",m({src:s,alt:d,sizes:f,style:{width:"100%",height:"100%",objectFit:"cover"}},v)),c&&a("div",{style:{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center"},children:c})]}))}var E=i||{};E.color;var R=g(E,Oi),L=m(m(m({},h),R),{},{borderRadius:null!==(r=null==i?void 0:i.borderRadius)&&void 0!==r?r:h.borderRadius,backgroundColor:null!==(n=null==i?void 0:i.backgroundColor)&&void 0!==n?n:h.backgroundColor,color:null!=i&&i.color?i.color:null!=i&&i.backgroundColor?b?"#000000":"#ffffff":h.color});return a("div",m(m({ref:t,className:De(o),style:L},x),{},{children:c}))});Ti.displayName="Avatar";var Mi=["className","direction","spacing","justifyContent","alignItems","flexWrap","gap","sx","style","children"],Si=e.forwardRef(function(t,r){var n=t.className,o=t.direction,i=void 0===o?"column":o,l=t.spacing,s=void 0===l?0:l,d=t.justifyContent,c=t.alignItems,p=t.flexWrap,u=t.gap,f=t.sx,v=t.style,x=t.children,h=g(t,Mi),b=void 0!==u?u:"number"==typeof s?8*s:0,y=e.useMemo(function(){return f?"function"==typeof f?f({}):f:{}},[f]),w="row"===i?"flex-row":"row-reverse"===i?"flex-row-reverse":"column-reverse"===i?"column-reverse":"flex-col",k="wrap"===p?"flex-wrap":"nowrap"===p?"flex-nowrap":"",N="flex-start"===d?"justify-start":"flex-end"===d?"justify-end":"center"===d?"justify-center":"space-between"===d?"justify-between":"space-around"===d?"justify-around":"space-evenly"===d?"justify-evenly":"",C="flex-start"===c?"items-start":"flex-end"===c?"items-end":"center"===c?"items-center":"baseline"===c?"items-baseline":"stretch"===c?"items-stretch":"",E=m(m(m({display:"flex"},b&&{gap:"".concat(b,"px")}),y),v);return a("div",m(m({ref:r,className:De(w,k,N,C,n),style:E},h),{},{children:x}))});Si.displayName="Stack";var zi=["className","position","disablePointerEvents","disableTypography","children"],ji=e.forwardRef(function(e,t){var r=e.className,n=e.position,o=void 0===n?"end":n,i=e.disablePointerEvents,l=void 0!==i&&i,s=e.disableTypography,d=void 0!==s&&s,c=e.children,p=g(e,zi);return a("div",m(m({ref:t,className:De("flex items-center","start"===o?"mr-2":"ml-2",l&&"pointer-events-none",r),style:{pointerEvents:l?"none":"auto",cursor:l?"default":"inherit"}},p),{},{children:d?c:a("span",{className:"text-sm text-muted-foreground",children:c})}))});ji.displayName="InputAdornment";var Ai=["className","elevation","square","variant","sx","style","children"],Di=e.forwardRef(function(t,r){var n=t.className,o=t.elevation,i=void 0===o?0:o,l=t.square,s=void 0!==l&&l,d=t.variant,c=void 0===d?"elevation":d,p=t.sx,u=t.style,f=t.children,v=g(t,Ai),x=e.useMemo(function(){if(!p)return{};var e=m({},"function"==typeof p?p({}):p);return void 0!==e.p&&(e.padding=Ie(e.p),delete e.p),void 0!==e.px&&(e.paddingLeft=Ie(e.px),e.paddingRight=Ie(e.px),delete e.px),void 0!==e.py&&(e.paddingTop=Ie(e.py),e.paddingBottom=Ie(e.py),delete e.py),void 0!==e.pt&&(e.paddingTop=Ie(e.pt),delete e.pt),void 0!==e.pb&&(e.paddingBottom=Ie(e.pb),delete e.pb),void 0!==e.pl&&(e.paddingLeft=Ie(e.pl),delete e.pl),void 0!==e.pr&&(e.paddingRight=Ie(e.pr),delete e.pr),void 0!==e.m&&(e.margin=Ie(e.m),delete e.m),void 0!==e.mx&&(e.marginLeft=Ie(e.mx),e.marginRight=Ie(e.mx),delete e.mx),void 0!==e.my&&(e.marginTop=Ie(e.my),e.marginBottom=Ie(e.my),delete e.my),void 0!==e.mt&&(e.marginTop=Ie(e.mt),delete e.mt),void 0!==e.mb&&(e.marginBottom=Ie(e.mb),delete e.mb),void 0!==e.ml&&(e.marginLeft=Ie(e.ml),delete e.ml),void 0!==e.mr&&(e.marginRight=Ie(e.mr),delete e.mr),void 0!==e.gap&&(e.gap=Ie(e.gap)),e},[p]),h=function(){if("outlined"===c)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,i))]||e[1]}}();return a("div",m(m({ref:r,className:De("bg-card",!s&&"rounded-lg","outlined"===c&&"border border-border",n),style:m(m(m({},h),x),u)},v),{},{children:f}))});Di.displayName="Paper";var Ii=["className","position","color","elevation","sx","style","children"],Wi=e.forwardRef(function(t,r){var n,o=t.className,i=t.position,l=void 0===i?"fixed":i,s=t.color,d=void 0===s?"default":s,c=t.elevation,p=void 0===c?4:c,u=t.sx,f=t.style,v=t.children,x=g(t,Ii),h=e.useMemo(function(){return u?"function"==typeof u?u({}):u:{}},[u]),b="fixed"===l||"absolute"===l||"sticky"===l?{top:0,left:0,right:0,width:"100%"}:{};return a("div",m(m({ref:r,className:De("primary"===d?"bg-primary text-primary-foreground":"secondary"===d?"bg-secondary text-secondary-foreground":"transparent"===d?"bg-transparent text-foreground":"bg-card text-foreground","z-app-bar","static"===l||"relative"===l?"w-full":"",o),style:m(m(m(m({position:l},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(p)))]||n[4]})),h),f)},x),{},{children:v}))});Wi.displayName="AppBar";var Bi=["className","sx","style","variant","children"],Pi=e.forwardRef(function(t,r){var n=t.className,o=t.sx,i=t.style,l=t.variant,s=void 0===l?"regular":l,d=t.children,c=g(t,Bi),p=e.useMemo(function(){return o?"function"==typeof o?o({}):o:{}},[o]),u=m(m(m({display:"flex",alignItems:"center"},"dense"===s?{minHeight:"48px",paddingLeft:"16px",paddingRight:"16px"}:{minHeight:"64px",paddingLeft:"16px",paddingRight:"16px"}),p),i);return a("div",m(m({ref:r,className:De(n),style:u},c),{},{children:d}))});Pi.displayName="Toolbar";var Hi=["className","anchorEl","open","onClose","PaperProps","anchorOrigin","transformOrigin","position","disablePortal","border","children"],Vi=["className","onClick","disabled","sx","style","children","_isFirst","_isLast","_menuBorderRadius"],Fi=["className","style","children"],qi=["className","style","children","primary","secondary"],_i=e.forwardRef(function(t,r){var n,o,i,l,s,c,p,u=t.className,f=t.anchorEl,x=t.open,h=void 0!==x&&x,b=t.onClose,y=t.PaperProps,w=t.anchorOrigin,k=void 0===w?{vertical:"bottom",horizontal:"left"}:w;t.transformOrigin;var N=t.position,C=void 0===N?"fixed":N,E=t.disablePortal,R=void 0!==E&&E,L=t.border,O=void 0!==L&&L,T=t.children,M=g(t,Hi),S=R?C:"fixed",z=e.useRef(null),j=v(e.useState({top:0,left:0}),2),A=j[0],D=j[1],I=e.useRef({top:0,left:0}),W=e.useRef((null==y||null===(n=y.style)||void 0===n?void 0:n.borderRadius)||"8px");void 0!==(null==y||null===(o=y.style)||void 0===o?void 0:o.borderRadius)&&(W.current=y.style.borderRadius);if(e.useImperativeHandle(r,function(){return z.current}),e.useLayoutEffect(function(){if(h&&f){var e=!0,t=null;if(t=requestAnimationFrame(function(){if(e)try{if(!f||!f.getBoundingClientRect||!f.isConnected)return void(e&&D({top:50,left:0}));var t=f.getBoundingClientRect();if(!t||isNaN(t.bottom)||isNaN(t.left))return void(e&&D({top:50,left:0}));if("fixed"===S){var r,n,o,i=window.innerWidth,a=window.innerHeight,l=(null===(r=z.current)||void 0===r?void 0:r.offsetWidth)||(null==y||null===(n=y.style)||void 0===n?void 0:n.minWidth)||180,s=(null===(o=z.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-s-8:t.top+(t.height-s)/2,c="left"===k.horizontal?t.left:"right"===k.horizontal?t.right-l:t.left+(t.width-l)/2;var p=16;c+l>i-p&&(c=i-l-p),c<p&&(c=p),d+s>a-p&&("bottom"===k.vertical&&(d=t.top-s-8),d+s>a-p&&(d=a-s-p)),d<p&&(d=p),e&&D({top:d,left:c})}else{for(var u=f.parentElement;u&&u!==document.body&&u.isConnected;)try{var m=window.getComputedStyle(u);if("relative"===m.position||"absolute"===m.position||"fixed"===m.position)break;u=u.parentElement}catch(e){break}var g={top:0,left:0};if(u&&u!==document.body&&u.isConnected&&u.getBoundingClientRect)try{(!(g=u.getBoundingClientRect())||isNaN(g.top)||isNaN(g.left))&&(g={top:0,left:0})}catch(e){g={top:0,left:0}}var v=0,x=0;if("bottom"===k.vertical)v=t.bottom-g.top+8;else if("top"===k.vertical){var h,b=(null===(h=z.current)||void 0===h?void 0:h.offsetHeight)||100;v=t.top-g.top-b-8}else{var w,N=(null===(w=z.current)||void 0===w?void 0:w.offsetHeight)||100;v=t.top-g.top+(t.height-N)/2}if("left"===k.horizontal)x=t.left-g.left;else if("right"===k.horizontal){var C,E,R=(null===(C=z.current)||void 0===C?void 0:C.offsetWidth)||(null==y||null===(E=y.style)||void 0===E?void 0:E.minWidth)||180;x=t.right-g.left-R}else{var L,O,T=(null===(L=z.current)||void 0===L?void 0:L.offsetWidth)||(null==y||null===(O=y.style)||void 0===O?void 0:O.minWidth)||180;x=t.left-g.left+(t.width-T)/2}e&&D({top:v,left:x})}}catch(t){e&&D({top:50,left:0})}}),"fixed"===S){var r=function(){t=requestAnimationFrame(function(){if(e){var t=null==f?void 0:f.getBoundingClientRect();if(t){var r,n,o,i=window.innerWidth,a=window.innerHeight,l=(null===(r=z.current)||void 0===r?void 0:r.offsetWidth)||(null==y||null===(n=y.style)||void 0===n?void 0:n.minWidth)||180,s=(null===(o=z.current)||void 0===o?void 0:o.offsetHeight)||100,d=16,c="bottom"===k.vertical?t.bottom+8:"top"===k.vertical?t.top-s-8:t.top+(t.height-s)/2,p="left"===k.horizontal?t.left:"right"===k.horizontal?t.right-l:t.left+(t.width-l)/2;p+l>i-d&&(p=i-l-d),p<d&&(p=d),c+s>a-d&&("bottom"===k.vertical&&(c=t.top-s-8),c+s>a-d&&(c=a-s-d)),c<d&&(c=d),D({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)}}D({top:0,left:0})},[h,f,k.vertical,k.horizontal,S,null==y||null===(i=y.style)||void 0===i?void 0:i.minWidth]),e.useLayoutEffect(function(){if(h&&f&&z.current&&"fixed"===S){var e=requestAnimationFrame(function(){!function(){try{var e=f.getBoundingClientRect();if(!e)return;var t=window.innerWidth,r=window.innerHeight,n=z.current.offsetWidth,o=z.current.offsetHeight;if(!n||!o)return;var i=16,a=0,l=0;a="bottom"===k.vertical?e.bottom+8:"top"===k.vertical?e.top-o-8:e.top+(e.height-o)/2,(l="left"===k.horizontal?e.left:"right"===k.horizontal?e.right-n:e.left+(e.width-n)/2)+n>t-i&&(l=t-n-i),l<i&&(l=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),l<0&&(l=i),a<0&&(a=i),l+n>t&&(l=Math.max(i,t-n-i)),a+o>r&&(a=Math.max(i,r-o-i));var s={top:a,left:l};(Math.abs(I.current.top-s.top)>.5||Math.abs(I.current.left-s.left)>.5)&&(I.current=s,D(s))}catch(e){}}()});return function(){e&&cancelAnimationFrame(e)}}},[h,f,k.vertical,k.horizontal,S]),e.useEffect(function(){if(h){var e=function(e){z.current&&!z.current.contains(e.target)&&f&&!f.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,f]),!h||!f)return null;var B=document.documentElement.classList.contains("dark")||window.matchMedia("(prefers-color-scheme: dark)").matches,P=a("div",m(m({ref:z,className:De("rounded-lg shadow-lg",u),style:m(m(m({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)"},O||null!=y&&null!==(l=y.style)&&void 0!==l&&l.border?{border:(null==y||null===(s=y.style)||void 0===s?void 0:s.border)||(B?"1px solid rgba(255, 255, 255, 0.1)":"1px solid hsl(var(--border))")}:{}),{},{borderRadius:(null==y||null===(c=y.style)||void 0===c?void 0:c.borderRadius)||"8px",minWidth:(null==y||null===(p=y.style)||void 0===p?void 0:p.minWidth)||180,maxWidth:"calc(100vw - 32px)",padding:"4px 0",height:"auto",overflow:"hidden",boxSizing:"border-box"},null==y?void 0:y.style),M.style)},Object.fromEntries(Object.entries(M||{}).filter(function(e){return"style"!==v(e,1)[0]}))),{},{children:function(t){if(!t)return t;var r=W.current,n=e.Children.toArray(t).filter(function(t){if(!e.isValidElement(t))return!1;var r=t.type;return"MenuItem"===(null==r?void 0:r.displayName)||"function"==typeof r&&"MenuItem"===r.name});return e.Children.map(t,function(t){if(!e.isValidElement(t))return t;var o=t.type;if(!("MenuItem"===(null==o?void 0:o.displayName)||"function"==typeof o&&"MenuItem"===o.name))return t;var i=n.findIndex(function(e){return e===t}),a=0===i,l=i===n.length-1;return e.cloneElement(t,m(m({},t.props),{},{_isFirst:a,_isLast:l,_menuBorderRadius:r}))})}(T)}));return R?P:"undefined"!=typeof document?d(P,document.body):null});_i.displayName="Menu";var Gi=e.forwardRef(function(t,r){var n=t.className,o=t.onClick,i=t.disabled,l=void 0!==i&&i,s=t.sx,d=t.style,c=t.children,p=t._isFirst,u=t._isLast,f=t._menuBorderRadius,x=g(t,Vi),h=v(e.useState(!1),2),b=h[0],y=h[1],w=e.useMemo(function(){return s?"function"==typeof s?s({}):s:{}},[s]),k=16,N=12,C=m(m({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:l?"not-allowed":"pointer",fontSize:"0.875rem",color:l?"#666666":"#000000",backgroundColor:b&&!l?"hsl(var(--accent))":"transparent",opacity:l?.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:p?f:0,borderTopRightRadius:p?f:0,borderBottomLeftRadius:u?f:0,borderBottomRightRadius:u?f:0},w),d);return a("div",m(m({ref:r,role:"menuitem",tabIndex:l?-1:0,"aria-disabled":l,className:De("focus:outline-none focus:bg-accent focus:text-accent-foreground",n),style:m(m({},C),{},{position:"relative"}),onClick:function(e){l||o&&o(e)},onMouseDown:function(e){l||(e.preventDefault(),e.stopPropagation())},onKeyDown:function(e){l||"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),e.stopPropagation(),o&&o(e))},onMouseEnter:function(){return y(!0)},onMouseLeave:function(){return y(!1)}},x),{},{children:c}))});Gi.displayName="MenuItem";var Ui=e.forwardRef(function(e,t){var r=e.className,n=e.style,o=e.children,i=g(e,Fi);return a("div",m(m({ref:t,className:De("flex items-center justify-center",r),style:m({minWidth:"40px",marginRight:"8px",color:"inherit",fontSize:"1.25rem"},n)},i),{},{children:o}))});Ui.displayName="MenuItemIcon";var Yi=e.forwardRef(function(e,t){var r=e.className,n=e.style,o=e.children,i=e.primary,d=e.secondary,c=g(e,qi),p=void 0!==i?i:o,u=null!=d;return a("div",m(m({ref:t,className:De("flex-1",r),style:m({fontSize:"0.875rem",lineHeight:"1.5",display:"flex",alignItems:"center",width:"100%",textAlign:"left",color:"#000000",minHeight:"1.5em",boxSizing:"border-box"},n)},c),{},{children:u?l(s,{children:[a("div",{style:{fontSize:"0.875rem",lineHeight:"1.5",color:"#000000",textAlign:"left",display:"block"},children:p}),a("div",{style:{fontSize:"0.75rem",color:"#666666",marginTop:"2px",display:"block"},children:d})]}):a("span",{style:{color:"#000000",display:"inline-block",width:"100%"},children:p||""})}))});Yi.displayName="MenuItemText";var $i=["className","size","sx","style","border","verticalDivider","children"],Ki=["className","component","sx","style","children"],Xi=["className","sx","style","children"],Zi=["className","sx","style","children"],Ji=["className","sx","style","children","hover","selected"],Qi=["className","align","padding","size","scope","sx","style","children","colSpan","rowSpan"],ea=e.createContext({verticalDivider:!1}),ta=e.forwardRef(function(t,r){var n=t.className,o=t.size,i=void 0===o?"medium":o,l=t.sx,s=t.style,d=t.border,c=void 0!==d&&d,p=t.verticalDivider,u=void 0!==p&&p,f=t.children,v=g(t,$i),x=e.useMemo(function(){return l?"function"==typeof l?l({}):l:{}},[l]);return a(ea.Provider,{value:{verticalDivider:u},children:a("table",m(m({ref:r,className:De("w-full",n),style:m(m(m(m({borderCollapse:"separate",borderSpacing:0},c&&{border:"1px solid hsl(var(--border))"}),{small:{fontSize:"0.875rem"},medium:{fontSize:"1rem"}}[i]),x),s)},v),{},{children:f}))})});ta.displayName="Table";var ra=e.forwardRef(function(t,r){var n=t.className,o=t.component,i=t.sx,l=t.style,s=t.children,d=g(t,Ki),c=e.useMemo(function(){return i?"function"==typeof i?i({}):i:{}},[i]);return a(o||"div",m(m({ref:r,className:De("relative",n),style:m(m({},c),l)},d),{},{children:s}))});ra.displayName="TableContainer";var na=e.forwardRef(function(t,r){var n=t.className,o=t.sx,i=t.style,l=t.children,s=g(t,Xi),d=e.useMemo(function(){return o?"function"==typeof o?o({}):o:{}},[o]);return a("thead",m(m({ref:r,className:De(n),style:m(m({},d),i)},s),{},{children:l}))});na.displayName="TableHead";var oa=e.forwardRef(function(t,r){var n=t.className,o=t.sx,i=t.style,l=t.children,s=g(t,Zi),d=e.useMemo(function(){return o?"function"==typeof o?o({}):o:{}},[o]);return a("tbody",m(m({ref:r,className:De(n),style:m(m({},d),i)},s),{},{children:l}))});oa.displayName="TableBody";var ia=e.forwardRef(function(t,r){var n=t.className,o=t.sx,i=t.style,l=t.children,s=t.hover,d=t.selected,c=g(t,Ji),p=e.useMemo(function(){return o?"function"==typeof o?o({}):o:{}},[o]);return a("tr",m(m({ref:r,className:De(s&&"hover:bg-accent",d&&"bg-accent",n),style:m(m({},p),i)},c),{},{children:l}))});ia.displayName="TableRow";var aa=e.forwardRef(function(t,r){var n=t.className,o=t.align,i=void 0===o?"inherit":o,l=t.padding,s=void 0===l?"normal":l,d=t.size,c=void 0===d?"medium":d,p=t.scope,u=t.sx,f=t.style,v=t.children,x=t.colSpan,h=t.rowSpan,b=g(t,Qi),y=e.useMemo(function(){return u?"function"==typeof u?u({}):u:{}},[u]),w={none:"0",checkbox:"0 0 0 4px",normal:"16px",small:"8px"},k={small:{padding:"6px 8px",fontSize:"0.875rem"},medium:{padding:w[s]||w.normal,fontSize:"1rem"}},N=e.useContext(ea).verticalDivider;return a(p?"th":"td",m(m({ref:r,scope:p,colSpan:x,rowSpan:h,className:De("border-b border-border",N&&"border-r border-border last:border-r-0",n),style:m(m(m(m(m({},k[c]),{left:{textAlign:"left"},center:{textAlign:"center"},right:{textAlign:"right"},inherit:{}}[i]),N&&{borderRight:"1px solid hsl(var(--border))"}),y),f)},b),{},{children:v}))});aa.displayName="TableCell";var la=["className","value","selected","onChange","disabled","size","sx","style","children","color"],sa=["backgroundColor","color","borderColor"],da=["className","value","exclusive","onChange","size","sx","style","children"],ca=e.forwardRef(function(t,r){var n=t.className,o=t.value,i=t.selected,l=void 0!==i&&i,s=t.onChange,d=t.disabled,c=void 0!==d&&d,p=t.size,u=void 0===p?"medium":p,f=t.sx,v=t.style,x=t.children,h=t.color,b=g(t,la);We();var y=e.useMemo(function(){return f?"function"==typeof f?f({}):f:{}},[f]),w=m(m({},{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"}}[u]),{},{border:"1px solid hsl(var(--border))",borderRadius:"8px",textTransform:"none",fontWeight:400}),k=v||{};k.backgroundColor,k.color,k.borderColor;var N=g(k,sa),C=l?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))"},E=m(m(m(m({},w),y),N),C);return a("button",m(m({ref:r,type:"button",className:De("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:E,onClick:function(e){c||s&&s(e,o)},disabled:c,"aria-pressed":l,onMouseEnter:function(e){c||l||(e.currentTarget.style.backgroundColor="hsl(var(--accent) / 0.3)")},onMouseLeave:function(e){c||l||(e.currentTarget.style.backgroundColor="transparent")}},b),{},{children:x}))});ca.displayName="ToggleButton";var pa=e.forwardRef(function(t,r){var n=t.className,o=t.value,i=t.exclusive,l=void 0!==i&&i,s=t.onChange,d=t.size,c=void 0===d?"medium":d,p=t.sx,u=t.style,f=t.children,v=g(t,da),h=e.useMemo(function(){return p?"function"==typeof p?p({}):p:{}},[p]),b=function(e,t){if(s)if(l)s(e,t===o?null:t);else{var r=Array.isArray(o)?o:[],n=r.indexOf(t),i=x(r);-1===n?i.push(t):i.splice(n,1),s(e,i)}},y=e.Children.toArray(f).map(function(t,r){if(e.isValidElement(t)&&t.type===ca){var n=t.props.value,i=l?o===n:Array.isArray(o)&&o.includes(n);return e.cloneElement(t,{selected:i,onChange:b,size:c,style:m({borderRadius:"8px"},t.props.style)})}return t});return a("div",m(m({ref:r,className:De("inline-flex gap-2",n),style:m(m({},h),u),role:"group"},v),{},{children:y}))});pa.displayName="ToggleButtonGroup";var ua=function(e){var t=v(o(!1),2),r=t[0],n=t[1];return i(function(){var t=e;e.startsWith("@media")&&(t=e.replace("@media","").trim());var r=window.matchMedia(t);n(r.matches);var o=function(e){n(e.matches)};return r.addEventListener("change",o),function(){r.removeEventListener("change",o)}},[e]),r},fa=["className","container","item","xs","sm","md","lg","xl","spacing","sx","style","children"],ma=e.forwardRef(function(t,r){var n=t.className,o=t.container,i=void 0!==o&&o,l=t.item,s=void 0!==l&&l,d=t.xs,c=t.sm,p=t.md,u=t.lg,f=t.xl,v=t.spacing,x=t.sx,h=t.style,b=t.children,y=g(t,fa),w=(ua("@media (max-width:599px)"),ua("@media (min-width:600px) and (max-width:959px)")),k=ua("@media (min-width:960px) and (max-width:1279px)"),N=ua("@media (min-width:1280px) and (max-width:1919px)"),C=ua("@media (min-width:1920px)"),E=e.useMemo(function(){return x?"function"==typeof x?x({}):x:{}},[x]),R=function(e){return"number"==typeof e?"".concat(8*e,"px"):"0px"},L=C&&void 0!==f?f:N&&void 0!==u?u:k&&void 0!==p?p:w&&void 0!==c?c:d,O=m(m(m(m(m({},function(){if(!i)return{};var e=R(v||0);return{display:"flex",flexWrap:"wrap",width:"100%",marginLeft:v?"-".concat(e):void 0,marginTop:v?"-".concat(e):void 0}}()),function(){if(!s)return{};if(void 0===L)return{};var e=L/12*100;return{flexBasis:"".concat(e,"%"),maxWidth:"".concat(e,"%"),flexGrow:0,flexShrink:0,boxSizing:"border-box"}}()),function(){if(!s)return{};if(!v)return{};var e=R(v);return{paddingLeft:e,paddingTop:e}}()),E),h);return a("div",m(m({ref:r,className:De(n),style:O},y),{},{children:b}))});ma.displayName="Grid";var ga=["children","className","required","disabled","error","focused","shrink","sx","style"],va=e.forwardRef(function(t,r){var n=t.children,o=t.className,i=t.required,s=void 0!==i&&i,d=t.disabled,c=void 0!==d&&d,p=t.error,u=void 0!==p&&p,f=t.focused,v=void 0!==f&&f;t.shrink;var x=t.sx,h=t.style,b=g(t,ga),y=e.useMemo(function(){return x?"function"==typeof x?x({}):x:{}},[x]);return l("label",m(m({ref:r,className:De("block text-sm font-medium mb-2 text-foreground",u?"text-destructive":v?"text-primary":"text-foreground",c&&"opacity-50",o),style:m(m({},y),h)},b),{},{children:[n,s&&a("span",{className:"ml-1 text-destructive",children:"*"})]}))});va.displayName="InputLabel";var xa=["value","onChange","onChangeCommitted","min","max","step","disabled","orientation","className","style","sx","aria-label","aria-labelledby","aria-valuetext"],ha=e.forwardRef(function(t,r){var n,o,i,s,d,c,p,u,f,x,h,b,y,w,k,N,C,E,R,L,O,T,M,S,z,j,A=t.value,D=t.onChange,I=t.onChangeCommitted,W=t.min,B=void 0===W?0:W,P=t.max,H=void 0===P?100:P,V=t.step,F=void 0===V?1:V,q=t.disabled,_=void 0!==q&&q,G=t.orientation,U=void 0===G?"horizontal":G,Y=t.className,$=t.style,K=t.sx,X=t["aria-label"],Z=t["aria-labelledby"],J=t["aria-valuetext"],Q=g(t,xa),ee=e.useRef(null),te=e.useRef(!1),re=v(e.useState(A),2),ne=re[0],oe=re[1],ie=e.useMemo(function(){if(!K)return{container:{}};var e="function"==typeof K?K({}):K,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},[K,ne]);e.useEffect(function(){te.current||oe(A)},[A]);var ae,le,se="vertical"===U,de=Math.max(0,Math.min(1,(ne-B)/(H-B))),ce=function(e){te.current&&(e.preventDefault(),me(e))},pe=function(e){te.current&&(e.preventDefault(),me(e.touches[0]))},ue=function(){te.current&&I&&I(null,ne),te.current=!1,document.removeEventListener("mousemove",ce,{capture:!0}),document.removeEventListener("mouseup",ue,{capture:!0})},fe=function(){te.current&&I&&I(null,ne),te.current=!1,document.removeEventListener("touchmove",pe,{capture:!0}),document.removeEventListener("touchend",fe,{capture:!0})},me=function(e){if(ee.current){var t=ee.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*(H-B)+B),i=Math.max(B,Math.min(H,o));oe(i),D&&D(null,i)}else{var a=e.clientX-t.left,l=(a=Math.max(0,Math.min(t.width,a)))/t.width,s=Math.round(l*(H-B)+B),d=Math.max(B,Math.min(H,s));oe(d),D&&D(null,d)}}},ge=m({},se?{width:"100%",height:"100%",borderRadius:(null===(n=ie.rail)||void 0===n?void 0:n.borderRadius)||"10px",backgroundColor:(null===(o=ie.rail)||void 0===o?void 0:o.backgroundColor)||"hsl(var(--muted))",border:(null===(i=ie.rail)||void 0===i?void 0:i.border)||"none",position:"relative",zIndex:0}:{width:"100%",height:(null===(s=ie.rail)||void 0===s?void 0:s.height)||"4px",borderRadius:(null===(d=ie.rail)||void 0===d?void 0:d.borderRadius)||"2px",backgroundColor:(null===(c=ie.rail)||void 0===c?void 0:c.backgroundColor)||"hsl(var(--muted))",border:(null===(p=ie.rail)||void 0===p?void 0:p.border)||"none",position:"relative",zIndex:0}),ve=m({},se?{position:"absolute",bottom:0,left:0,width:"100%",height:"".concat(100*de,"%"),borderRadius:(null===(u=ie.track)||void 0===u?void 0:u.borderRadius)||"10px",backgroundColor:(null===(f=ie.track)||void 0===f?void 0:f.backgroundColor)||"hsl(var(--primary))",display:void 0!==(null===(ae=ie.track)||void 0===ae?void 0:ae.display)?"function"==typeof ie.track.display?ie.track.display(ne)?"block":"none":ie.track.display:se&&0===ne?"none":"block",border:(null===(x=ie.track)||void 0===x?void 0:x.border)||"none",zIndex:1,pointerEvents:"none"}:{position:"absolute",top:"50%",left:0,transform:"translateY(-50%)",width:"".concat(100*de,"%"),height:(null===(h=ie.track)||void 0===h?void 0:h.height)||"4px",borderRadius:(null===(b=ie.track)||void 0===b?void 0:b.borderRadius)||"2px",backgroundColor:(null===(y=ie.track)||void 0===y?void 0:y.backgroundColor)||"hsl(var(--primary))",border:(null===(w=ie.track)||void 0===w?void 0:w.border)||"none",zIndex:1,pointerEvents:"none"}),xe=m({},se?{position:"absolute",left:"50%",bottom:"".concat(100*de,"%"),transform:(null===(k=ie.thumb)||void 0===k?void 0:k.transform)||"translateX(-50%) translateY(50%)",width:(null===(N=ie.thumb)||void 0===N?void 0:N.width)||20,height:(null===(C=ie.thumb)||void 0===C?void 0:C.height)||2,backgroundColor:(null===(E=ie.thumb)||void 0===E?void 0:E.backgroundColor)||"#ffffff",boxShadow:(null===(R=ie.thumb)||void 0===R?void 0:R.boxShadow)||"0 0 4px rgba(0, 0, 0, 0.3)",borderRadius:(null===(L=ie.thumb)||void 0===L?void 0:L.borderRadius)||"1px",marginBottom:(null===(O=ie.thumb)||void 0===O?void 0:O.marginBottom)||"-4px",display:void 0!==(null===(le=ie.thumb)||void 0===le?void 0:le.display)?"function"==typeof ie.thumb.display?ie.thumb.display(ne)?"block":"none":ie.thumb.display:se&&ne<=3?"none":"block",cursor:_?"default":"pointer",zIndex:2,pointerEvents:"auto"}:{position:"absolute",top:"50%",left:"".concat(100*de,"%"),transform:"translate(-50%, -50%)",width:(null===(T=ie.thumb)||void 0===T?void 0:T.width)||16,height:(null===(M=ie.thumb)||void 0===M?void 0:M.height)||16,backgroundColor:(null===(S=ie.thumb)||void 0===S?void 0:S.backgroundColor)||"hsl(var(--primary))",boxShadow:(null===(z=ie.thumb)||void 0===z?void 0:z.boxShadow)||"0 2px 4px rgba(0,0,0,0.2)",borderRadius:(null===(j=ie.thumb)||void 0===j?void 0:j.borderRadius)||"50%",border:"2px solid hsl(var(--background))",cursor:_?"default":"pointer",zIndex:2,pointerEvents:"auto"}),he=e.useId(),be=void 0!==ne?ne:A;return l("div",m(m({ref:ee,role:"slider",id:he,"aria-label":X,"aria-labelledby":Z,"aria-valuemin":B,"aria-valuemax":H,"aria-valuenow":be,"aria-valuetext":J||String(be),"aria-orientation":U,"aria-disabled":_,tabIndex:_?-1:0,className:De("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:m(m(m(m({},se?{height:"100%",width:"100%"}:{}),ie.container),$),{},{pointerEvents:_?"none":"auto",touchAction:_?"auto":"none",zIndex:1}),onMouseDown:function(e){_||(e.preventDefault(),e.stopPropagation(),te.current=!0,me(e),document.addEventListener("mousemove",ce,{capture:!0}),document.addEventListener("mouseup",ue,{capture:!0}))},onTouchStart:function(e){_||(e.preventDefault(),e.stopPropagation(),te.current=!0,me(e.touches[0]),document.addEventListener("touchmove",pe,{capture:!0,passive:!1}),document.addEventListener("touchend",fe,{capture:!0}))},onKeyDown:function(e){if(!_){var t=be,r=F||1;"horizontal"===U?"ArrowRight"===e.key||"ArrowUp"===e.key?(e.preventDefault(),t=Math.min(H,be+r)):"ArrowLeft"===e.key||"ArrowDown"===e.key?(e.preventDefault(),t=Math.max(B,be-r)):"Home"===e.key?(e.preventDefault(),t=B):"End"===e.key&&(e.preventDefault(),t=H):"ArrowUp"===e.key?(e.preventDefault(),t=Math.min(H,be+r)):"ArrowDown"===e.key?(e.preventDefault(),t=Math.max(B,be-r)):"Home"===e.key?(e.preventDefault(),t=B):"End"===e.key&&(e.preventDefault(),t=H),t!==be&&(oe(t),D&&D(t))}}},Q),{},{children:[a("div",{style:ge}),a("div",{style:ve}),a("div",{style:xe,onMouseEnter:function(e){var t;!_&&null!==(t=ie.thumb)&&void 0!==t&&t["&:hover"]&&(e.currentTarget.style.boxShadow=ie.thumb["&:hover"].boxShadow||e.currentTarget.style.boxShadow)},onMouseLeave:function(e){var t;e.currentTarget.style.boxShadow=(null===(t=ie.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)")}})]}))});ha.displayName="Slider";var ba=["className","sx","style","children","component"],ya=e.forwardRef(function(t,r){var n=t.className,o=t.sx,i=t.style,l=t.children,s=t.component,d=void 0===s?"div":s,c=g(t,ba),p=d,u=e.useMemo(function(){if(!o)return{};var e=m({},"function"==typeof o?o({}):o);if(void 0!==e.p&&(e.padding=Ie(e.p),delete e.p),void 0!==e.px&&(e.paddingLeft=Ie(e.px),e.paddingRight=Ie(e.px),delete e.px),void 0!==e.py&&(e.paddingTop=Ie(e.py),e.paddingBottom=Ie(e.py),delete e.py),void 0!==e.pt&&(e.paddingTop=Ie(e.pt),delete e.pt),void 0!==e.pb&&(e.paddingBottom=Ie(e.pb),delete e.pb),void 0!==e.pl&&(e.paddingLeft=Ie(e.pl),delete e.pl),void 0!==e.pr&&(e.paddingRight=Ie(e.pr),delete e.pr),void 0!==e.m&&(e.margin=Ie(e.m),delete e.m),void 0!==e.mx&&(e.marginLeft=Ie(e.mx),e.marginRight=Ie(e.mx),delete e.mx),void 0!==e.my&&(e.marginTop=Ie(e.my),e.marginBottom=Ie(e.my),delete e.my),void 0!==e.mt&&(e.marginTop=Ie(e.mt),delete e.mt),void 0!==e.mb&&(e.marginBottom=Ie(e.mb),delete e.mb),void 0!==e.ml&&(e.marginLeft=Ie(e.ml),delete e.ml),void 0!==e.mr&&(e.marginRight=Ie(e.mr),delete e.mr),void 0!==e.gap&&(e.gap=Ie(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},[o]),f=m(m({},u),i),v="flex"===u.display?"flex":"",x="column"===u.flexDirection?"flex-col":"",h="center"===u.alignItems?"items-center":"",b="space-between"===u.justifyContent?"justify-between":"center"===u.justifyContent?"justify-center":"";return a(p,m(m({ref:r,className:De(v,x,h,b,n),style:f},c),{},{children:l}))});ya.displayName="Box";export{Lr as Accordion,Tr as AccordionDetails,Or as AccordionSummary,zr as Alert,Wi as AppBar,ti as Autocomplete,Ti as Avatar,ya as Box,nt as Button,Ge as Card,Ze as CardActionArea,Ke as CardContent,$e as CardDescription,Xe as CardFooter,Ue as CardHeader,Ye as CardTitle,or as Checkbox,zt as Chip,bi as Collapse,Ni as Container,oi as DatePicker,vt as Dialog,Nt as DialogActions,xt as DialogContent,wi as DialogContentText,kt as DialogDescription,yt as DialogFooter,bt as DialogHeader,wt as DialogTitle,Ei as Divider,ai as Drawer,rr as FormControl,si as FormControlLabel,ui as FormGroup,ci as FormLabel,ma as Grid,Rt as IconButton,ji as InputAdornment,va as InputLabel,mr as List,gr as ListItem,br as ListItemAvatar,hr as ListItemButton,vr as ListItemIcon,xr as ListItemText,_i as Menu,Gi as MenuItem,Ui as MenuItemIcon,Yi as MenuItemText,Di as Paper,xi as Radio,gi as RadioGroup,er as Select,tr as SelectMenuItem,ha as Slider,Si as Stack,Hr as Tab,ta as Table,oa as TableBody,aa as TableCell,ra as TableContainer,na as TableHead,ia as TableRow,Pr as Tabs,It as TextField,ca as ToggleButton,pa as ToggleButtonGroup,Pi as Toolbar,Qo as Tooltip,Tt as Typography};
|
|
8
|
+
var Wt=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)},Bt=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()},Pt={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"},Ht=["color","size","strokeWidth","absoluteStrokeWidth","className","children","iconNode"],Vt=r(function(e,t){var r=e.color,o=void 0===r?"currentColor":r,i=e.size,a=void 0===i?24:i,l=e.strokeWidth,s=void 0===l?2:l,d=e.absoluteStrokeWidth,c=e.className,p=void 0===c?"":c,u=e.children,f=e.iconNode,h=v(e,Ht);return n("svg",m(m(m({ref:t},Pt),{},{width:a,height:a,stroke:o,strokeWidth:d?24*Number(s)/Number(a):s,className:Bt("lucide",p)},!u&&!function(e){for(var t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0}(h)&&{"aria-hidden":"true"}),h),[].concat(x(f.map(function(e){var t=g(e,2),r=t[0],o=t[1];return n(r,o)})),x(Array.isArray(u)?u:[u])))}),Ft=["className"],qt=function(e,t){var o=r(function(r,o){var i,a=r.className,l=v(r,Ft);return n(Vt,m({ref:o,iconNode:t,className:Bt("lucide-".concat((i=Wt(e),i.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase())),"lucide-".concat(e),a)},l))});return o.displayName=Wt(e),o},_t=qt("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]),Gt=qt("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]),Ut=qt("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"}]]),Yt=qt("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"}]]),$t=qt("info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]),Kt=qt("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"}]]),Xt=qt("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),Zt=["className","children","value","onChange","size","label","error","helperText","disabled","displayEmpty","native","renderValue","startAdornment","endAdornment","multiple","sx","style","menuStyle","menuClassName","inputClassName"],Jt=["className","value","children"],Qt=["className","fullWidth","size","children","style"],er=e.forwardRef(function(t,r){var n=t.className,o=t.children,i=t.value,s=t.onChange,d=t.size,c=void 0===d?"small":d,p=t.label,u=t.error,f=void 0!==u&&u,h=t.helperText,b=t.disabled,y=void 0!==b&&b,w=t.displayEmpty,k=void 0!==w&&w;t.native;var N=t.renderValue,C=t.startAdornment,E=t.endAdornment,R=t.multiple,L=void 0!==R&&R,O=t.sx,T=t.style,M=t.menuStyle,S=t.menuClassName,z=t.inputClassName,j=v(t,Zt),A=function(e){return e||"hsl(var(--background))"},D="dark"===We(),I=g(e.useState(!1),2),W=I[0],B=I[1],P=g(e.useState(!1),2),H=P[0],V=P[1],F=g(e.useState(!1),2),q=F[0],_=F[1],G=e.useRef(null),U=e.useRef(null),Y=e.useId();e.useImperativeHandle(r,function(){return G.current});var $=e.useMemo(function(){return O?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]=Ie(r)}):t[o]=Ie(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 O?O({}):O):{}},[O]),K=L&&Array.isArray(i),X=K?i:[i],Z=e.useMemo(function(){if(!o)return"";if(K)return"";var t=e.Children.toArray(o).find(function(t){return e.isValidElement(t)&&t.props.value===i});return t&&e.isValidElement(t)?t.props.children:""},[o,i,K]);e.useEffect(function(){var e=function(e){U.current&&!U.current.contains(e.target)&&G.current&&!G.current.contains(e.target)&&_(!1)};if(q)return document.addEventListener("mousedown",e),function(){return document.removeEventListener("mousedown",e)}},[q]);var J=function(e){if(s)if(K){var t=Array.isArray(i)?i:[],r=t.includes(e)?t.filter(function(t){return t!==e}):[].concat(x(t),[e]);s({target:{value:r}})}else s({target:{value:e}}),_(!1)};return l("div",{className:"relative w-full",style:{overflow:"visible"},children:[p&&a("label",{className:"block text-sm font-medium mb-1 text-foreground",children:p}),l("button",m(m({ref:G,type:"button",role:"combobox","aria-expanded":q,"aria-haspopup":"listbox","aria-label":p||"Select an option","aria-controls":q?"".concat(Y,"-listbox"):void 0,onClick:function(){return!y&&_(!q)},disabled:y,className:De("w-full rounded-3xl border transition-colors flex items-center",{small:"h-9 text-sm",medium:"h-10"}[c],"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2","disabled:cursor-not-allowed disabled:opacity-50",C?"pl-2":"pl-3.5",E?"pr-2":"pr-3.5","py-1.5","text-left font-normal",n),style:m(m({borderColor:f?"hsl(var(--destructive))":W||q||H?"hsl(var(--primary))":"hsl(var(--input))",backgroundColor:W||q?A("hsl(var(--input))"):H?"hsl(var(--accent))":"transparent",color:"hsl(var(--foreground))"},$),T),onFocus:function(){return!y&&B(!0)},onBlur:function(){return B(!1)},onMouseEnter:function(){return!y&&V(!0)},onMouseLeave:function(){return V(!1)}},j),{},{children:[C,a("span",{className:De("flex-1 text-left overflow-hidden text-ellipsis whitespace-nowrap min-w-0",z),children:N?N(i):Z||(k?"":"Select...")}),E||a(Gt,{size:16,className:De("transition-transform text-foreground",q&&"rotate-180")})]})),q&&a("div",{ref:U,id:"".concat(Y,"-listbox"),role:"listbox","aria-label":p||"Options",className:De("absolute z-50 w-full mt-1 shadow-lg",S),style:m({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"},M),children:e.Children.map(o,function(t){if(!e.isValidElement(t))return null;var r=K?X.includes(t.props.value):t.props.value===i,n="hsl(var(--card))";return a("div",{role:"option","aria-selected":r,onClick:function(){return J(t.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(e){"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),J(t.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:t.props.children},t.props.value)})}),h&&a("div",{className:"text-xs mt-1",style:{color:f?"hsl(var(--destructive))":"hsl(var(--muted-foreground))"},children:h})]})});er.displayName="Select";var tr=e.forwardRef(function(e,t){return e.className,e.value,e.children,v(e,Jt),null});tr.displayName="MenuItem";var rr=e.forwardRef(function(e,t){var r=e.className,n=e.fullWidth,o=void 0!==n&&n;e.size;var i=e.children,l=e.style,s=v(e,Qt);return a("div",m(m({ref:t,className:De(o&&"w-full",r),style:m({position:"relative"},l)},s),{},{children:i}))});rr.displayName="FormControl";var nr=["className","checked","onChange","disabled","style","aria-label","aria-labelledby"],or=e.forwardRef(function(t,r){var n=t.className,o=t.checked,i=t.onChange,s=t.disabled,d=t.style,c=t["aria-label"],p=t["aria-labelledby"],u=v(t,nr),f=g(e.useState(!1),2),x=f[0],h=f[1];return l("label",{className:De("relative inline-flex items-center justify-center cursor-pointer",s&&"cursor-not-allowed opacity-50",n),style:d,children:[a("input",m({ref:r,type:"checkbox",checked:o,onChange:i,disabled:s,className:"sr-only","aria-label":c,"aria-labelledby":p},u)),a("div",{className:De("flex items-center justify-center transition-colors w-5 h-5 border-2 rounded",o?"bg-primary border-primary":x&&!s?"border-primary":"border-input bg-transparent",s&&"opacity-50 cursor-not-allowed"),onMouseEnter:function(){return!s&&h(!0)},onMouseLeave:function(){return h(!1)},"aria-hidden":"true",children:o&&a(_t,{size:14,className:"text-primary-foreground"})})]})});or.displayName="Checkbox";var ir=["className","style","children"],ar=["className","style","alignItems","disablePadding","dense","children"],lr=["padding","paddingTop","paddingBottom","paddingLeft","paddingRight"],sr=["className","style","children"],dr=["marginRight","minWidth","color"],cr=["className","style","primary","secondary","children"],pr=["className","style","selected","onClick","disabled","children","dense","disablePadding"],ur=["className","style","children"],fr=["marginRight","minWidth"],mr=e.forwardRef(function(e,t){var r=e.className,n=e.style,o=e.children,i=v(e,ir);return a("div",m(m({ref:t,className:De("w-full",r),style:m({padding:0,margin:0},n)},i),{},{children:o}))});mr.displayName="List";var vr=e.forwardRef(function(e,t){var r=e.className,n=e.style,o=e.alignItems,i=void 0===o?"flex-start":o,l=e.disablePadding,s=e.dense,d=e.children,c=v(e,ar),p=n||{},u=p.padding,f=p.paddingTop,g=p.paddingBottom,x=p.paddingLeft,h=p.paddingRight,b=v(p,lr),y="";return l||(void 0!==u||void 0!==f||void 0!==g||void 0!==x||void 0!==h)||(y=s?"py-2 px-8":"py-4 px-8"),a("div",m(m({ref:t,className:De("flex",y,r),style:m({alignItems:i,padding:l?0:u,paddingTop:l?0:f,paddingBottom:l?0:g,paddingLeft:l?0:x,paddingRight:l?0:h},b)},c),{},{children:d}))});vr.displayName="ListItem";var gr=e.forwardRef(function(e,t){var r=e.className,n=e.style,o=e.children,i=v(e,sr),l=n||{},s=l.marginRight,d=l.minWidth,c=l.color,p=v(l,dr);return a("div",m(m({ref:t,className:De("flex items-center justify-center",r),style:m(m({minWidth:void 0!==d?d:"auto",marginRight:void 0!==s?s:"1rem"},void 0!==c&&{color:c}),p)},i),{},{children:o}))});gr.displayName="ListItemIcon";var xr=e.forwardRef(function(t,r){var n=t.className,o=t.style,i=t.primary,s=t.secondary,d=t.children,c=v(t,cr);return l("div",m(m({ref:r,className:De("flex flex-col",n),style:m({flex:1,margin:0},o)},c),{},{children:[i&&a("div",{className:De(s&&"mb-2"),children:e.isValidElement(i)?i:a(Tt,{variant:"body1",color:"default",children:i})}),s&&a("div",{children:e.isValidElement(s)?s:a(Tt,{variant:"body2",color:"muted",children:s})}),d]}))});xr.displayName="ListItemText";var hr=e.forwardRef(function(t,r){var n=t.className,o=t.style,i=t.selected,l=t.onClick,s=t.disabled,d=t.children,c=t.dense,p=t.disablePadding,u=v(t,pr),f=g(e.useState(!1),2),x=f[0],h=f[1],b="";return p||(b=c?"py-2 px-8":"py-4 px-8"),a("div",m(m({ref:r,role:"button",tabIndex:s?-1:0,"aria-disabled":s,"aria-selected":i,className:De("flex cursor-pointer transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",b,i?"bg-primary text-primary-foreground hover:bg-primary/90":x?"bg-accent text-accent-foreground":"hover:bg-accent hover:text-accent-foreground",s&&"opacity-50 cursor-not-allowed",n),style:m({alignItems:"center"},o),onClick:s?void 0:l,onKeyDown:function(e){s||"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),l&&l(e))},onMouseEnter:function(){return!s&&h(!0)},onMouseLeave:function(){return h(!1)}},u),{},{children:d}))});hr.displayName="ListItemButton";var br=e.forwardRef(function(e,t){var r=e.className,n=e.style,o=e.children,i=v(e,ur),l=n||{},s=l.marginRight,d=l.minWidth,c=v(l,fr);return a("div",m(m({ref:t,className:De("flex items-center justify-center",r),style:m({minWidth:void 0!==d?d:"40px",marginRight:void 0!==s?s:"1rem"},c)},i),{},{children:o}))});br.displayName="ListItemAvatar";var yr=["className","style","expanded","onChange","children","defaultExpanded"],wr=["marginBottom","border","borderRadius","boxShadow","backgroundColor"],kr=["className","style","expandIcon","children","expanded","onChange","id"],Nr=["padding","paddingTop","paddingBottom","paddingLeft","paddingRight","backgroundColor"],Cr=["className","style","expanded","children","id"],Er=["backgroundColor","padding","paddingTop","paddingBottom","paddingLeft","paddingRight"],Rr=["padding","paddingTop","paddingBottom","paddingLeft","paddingRight"],Lr=e.forwardRef(function(t,r){var n=t.className,o=t.style,i=t.expanded,l=t.onChange,s=t.children,d=t.defaultExpanded,c=v(t,yr),p=g(e.useState(d||!1),2),u=p[0],f=p[1],x=e.useId(),h=e.useRef(l),b=e.useRef(i);e.useEffect(function(){h.current=l,b.current=i},[l,i]);var y=e.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:u);f(o),h.current&&h.current(e,o)},[u]),w=void 0!==i?i:u;null==o||o.backgroundColor;var k=o||{},N=k.marginBottom,C=k.border,E=k.borderRadius,R=k.boxShadow,L=k.backgroundColor,O=v(k,wr);return a("div",m(m({ref:r,role:"region",className:De("overflow-hidden rounded-2xl",void 0===N&&"mb-2",n),style:m({border:void 0!==C?C:"1px solid hsl(var(--border))",borderRadius:void 0!==E?E:16,boxShadow:void 0!==R?R:"none",backgroundColor:void 0!==L?L:"hsl(var(--card))",marginBottom:N},O)},c),{},{children:e.Children.map(s,function(t){if(e.isValidElement(t)){if(t.type===Or)return e.cloneElement(t,{expanded:w,onChange:y,id:"".concat(x,"-summary")});if(t.type===Tr)return e.cloneElement(t,{expanded:w,id:"".concat(x,"-content")})}return t})}))});Lr.displayName="Accordion";var Or=e.forwardRef(function(e,t){var r=e.className,n=e.style,o=e.expandIcon,i=e.children,s=e.expanded,d=e.onChange,c=e.id,p=v(e,kr),u=n||{},f=u.padding,g=u.paddingTop,x=u.paddingBottom,h=u.paddingLeft,b=u.paddingRight,y=u.backgroundColor,w=v(u,Nr),k=void 0!==f||void 0!==g||void 0!==x||void 0!==h||void 0!==b?"":"py-2 px-4",N=void 0!==(null==n?void 0:n.minHeight)?n.minHeight:"auto",C=c?"".concat(c,"-content"):void 0;return l("button",m(m({ref:t,type:"button",id:c,"aria-expanded":s,"aria-controls":C,onClick:function(e){e.preventDefault(),e.stopPropagation(),d&&d(e)},className:De("w-full flex items-center justify-between transition-colors focus:outline-none",k,r),style:m({border:"none",borderTop:"none",borderBottom:"none",cursor:"pointer",textAlign:"left",backgroundColor:void 0!==y?y:"transparent",minHeight:N,padding:f,paddingTop:g,paddingBottom:x,paddingLeft:h,paddingRight:b},w),onKeyDown:function(e){"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),d&&d(e))}},p),{},{children:[a("div",{style:{flex:1},children:i}),!1!==o&&(o||a(Gt,{size:20,className:"text-foreground",style:{transform:s?"rotate(180deg)":"rotate(0deg)",transition:"transform 0.2s",marginLeft:"0.5rem"}}))]}))});Or.displayName="AccordionSummary";var Tr=e.forwardRef(function(e,t){var r=e.className,n=e.style,o=e.expanded,i=e.children,l=e.id,s=v(e,Cr);if(!o)return null;var d=n||{},c=d.backgroundColor,p=d.padding,u=d.paddingTop,f=d.paddingBottom,g=d.paddingLeft,x=d.paddingRight,h=v(d,Er);h.padding,h.paddingTop,h.paddingBottom,h.paddingLeft,h.paddingRight;var b=void 0!==p?p:void 0!==u||void 0!==f||void 0!==g||void 0!==x?void 0:"1rem",y=m({backgroundColor:c||"transparent"},v(h,Rr));return void 0!==b&&(y.padding=b),void 0!==u&&(y.paddingTop=u),void 0!==f&&(y.paddingBottom=f),void 0!==g&&(y.paddingLeft=g),void 0!==x&&(y.paddingRight=x),a("div",m(m({ref:t,id:l,role:"region","aria-labelledby":l?l.replace("-content","-summary"):void 0,className:De("text-foreground",r),style:m(m({},y),{},{borderTop:"none"})},s),{},{children:i}))});Tr.displayName="AccordionDetails";var Mr=["className","severity","variant","onClose","action","icon","iconMapping","children","style"],Sr=["padding","paddingTop","paddingBottom","paddingLeft","paddingRight"],zr=e.forwardRef(function(e,t){var r,n,o=e.className,i=e.severity,s=void 0===i?"info":i,d=e.variant,c=void 0===d?"standard":d,p=e.onClose,u=e.action,f=e.icon,g=e.iconMapping,x=e.children,b=e.style,y=v(e,Mr),w={error:Ut,warning:Kt,info:$t,success:Yt},k=f&&"object"===h(f)&&f.$$typeof,N=!k&&(f||(null==g?void 0:g[s])||w[s]||$t),C=(null===(r=(n={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===r?void 0:r[c])||n.info.standard,E=b||{},R=E.padding,L=E.paddingTop,O=E.paddingBottom,T=E.paddingLeft,M=E.paddingRight,S=v(E,Sr);return l("div",m(m({ref:t,role:"alert",className:De("relative flex items-center gap-3 rounded-2xl text-sm",void 0!==R||void 0!==L||void 0!==O||void 0!==T||void 0!==M?"":"p-4","outlined"===c&&"border",C,o),style:m({padding:R,paddingTop:L,paddingBottom:O,paddingLeft:T,paddingRight:M},S)},y),{},{children:[!1!==f&&(k?a("div",{className:"flex-shrink-0 flex items-center text-current",children:f}):a(N,{size:20,className:"flex-shrink-0 text-current"})),a("div",{className:"flex-1 flex items-center",children:x}),(p||u)&&l("div",{className:"flex items-center gap-1",children:[u,p&&a("button",{onClick:p,className:"flex items-center justify-center rounded-sm opacity-70 hover:opacity-100 transition-opacity p-2 text-current","aria-label":"Close",children:a(Xt,{size:16})})]})]}))});zr.displayName="Alert";var jr=["className","value","onChange","children","centered","variant","style"],Ar=["className","label","selected","onClick","index","style","variant","id","aria-controls"],Dr=["padding","paddingLeft","paddingRight","paddingTop","paddingBottom","margin","marginLeft","marginRight","backgroundColor","color"],Ir=["onClick"],Wr=["backgroundColor","color"],Br=["onClick"],Pr=e.forwardRef(function(t,r){var n=t.className,o=t.value,i=t.onChange,s=t.children,d=t.centered,c=t.variant,p=t.style,u=v(t,jr),f=e.useRef(null),x=e.useRef(null),h=g(e.useState(function(){return void 0!==o?o:0}),2),b=h[0],y=h[1];e.useEffect(function(){void 0!==o&&y(o)},[o]);var w=e.useCallback(function(e){var t=e;void 0===o&&y(t),i&&i(null,t)},[o,i]),k=void 0!==o?o:b,N="standard"===c;e.useEffect(function(){if(N&&f.current&&x.current){var e=f.current.querySelectorAll("[data-tab-index]")[k];if(e){var t=f.current.getBoundingClientRect(),r=e.getBoundingClientRect();x.current.style.left="".concat(r.left-t.left,"px"),x.current.style.width="".concat(r.width,"px")}}},[k,s,N]);var C=e.useId();return l("div",m(m({ref:r,className:De(N?"relative mb-4":"flex",!N&&d&&"justify-center",n),style:m({minHeight:"auto"},p)},u),{},{children:[a("div",{ref:f,role:"tablist","aria-label":"Tabs",className:De(N?"flex border-b relative w-full":"flex gap-4 px-8 py-4"),style:m(m({},N&&{borderColor:"hsl(var(--border))"}),N&&{display:"flex",width:"100%"}),children:e.Children.map(s,function(t,r){var n;if(e.isValidElement(t)&&(t.type===Hr||"Tab"===(null===(n=t.type)||void 0===n?void 0:n.displayName))){var o=Number(k)===Number(r);return e.cloneElement(t,m(m({},t.props),{},{selected:o,onClick:function(){return w(r)},index:r,"data-tab-index":r,variant:N?"standard":void 0,id:"".concat(C,"-tab-").concat(r),"aria-controls":"".concat(C,"-panel-").concat(r)}))}return t})}),N&&a("div",{ref:x,style:{position:"absolute",bottom:0,height:"2px",backgroundColor:"hsl(var(--primary))",transition:"all 0.3s cubic-bezier(0.4, 0, 0.2, 1)"}})]}))});Pr.displayName="Tabs";var Hr=e.forwardRef(function(e,t){var r=e.className,n=e.label,o=e.selected,i=e.onClick;e.index;var l=e.style,s=e.variant,d=e.id,c=e["aria-controls"],p=v(e,Ar),u="standard"===s,f=l||{},g=f.padding,x=f.paddingLeft,h=f.paddingRight,b=f.paddingTop,y=f.paddingBottom,w=f.margin,k=f.marginLeft,N=f.marginRight,C=f.backgroundColor,E=f.color,R=v(f,Dr),L=void 0!==g||void 0!==x||void 0!==h||void 0!==b||void 0!==y;if(u){var O=L?"":"px-3 py-4",T=void 0!==E?E:o?"hsl(var(--primary))":"hsl(var(--muted-foreground))",M=p.onClick,S=v(p,Ir);return a("button",m(m({ref:t,type:"button",role:"tab",id:d,"aria-selected":o,"aria-controls":c,tabIndex:o?0:-1,onClick:function(e){i&&i(e),M&&M(e)},onKeyDown:function(e){"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),i&&i(e))},className:De("cursor-pointer transition-all duration-200 text-sm border-none bg-transparent focus:outline-none",O,"min-w-[72px] min-h-[48px] flex-1",o?"font-semibold":"font-medium",r),style:m({color:T,textTransform:"none",flex:1,minWidth:0,padding:g,paddingLeft:x,paddingRight:h,paddingTop:b,paddingBottom:y,margin:w,marginLeft:k,marginRight:N},R),onMouseEnter:function(e){o||(e.currentTarget.style.backgroundColor="hsl(var(--accent))")},onMouseLeave:function(e){e.currentTarget.style.backgroundColor="transparent"}},S),{},{children:n}))}var z=o?{color:"hsl(var(--primary-foreground))",backgroundColor:"hsl(var(--primary))"}:{color:"hsl(var(--foreground))",backgroundColor:"hsl(var(--accent))"},j=L?"":"px-4 py-3",A=void 0!==w||void 0!==k||void 0!==N?"":"mx-2",D=void 0!==C?C:z.backgroundColor,I=void 0!==E?E:z.color;R.backgroundColor,R.color;var W=v(R,Wr),B=p.onClick,P=v(p,Br);return a("button",m(m({ref:t,type:"button",role:"tab",id:d,"aria-selected":o,"aria-controls":c,tabIndex:o?0:-1,onClick:function(e){i&&i(e),B&&B(e)},onKeyDown:function(e){"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),i&&i(e))},className:De("cursor-pointer transition-all duration-200 min-h-[32px] min-w-[100px] rounded-2xl text-sm border-none focus:outline-none",j,A,o?"font-semibold":"font-medium",r),style:m(m(m(m(m(m(m(m(m({color:I,backgroundColor:D},void 0!==g&&{padding:g}),void 0!==x&&{paddingLeft:x}),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=o?"hsl(var(--primary) / 0.9)":"hsl(var(--accent))"},onMouseLeave:function(e){e.currentTarget.style.backgroundColor=D}},P),{},{children:n}))});Hr.displayName="Tab";var Vr="top",Fr="bottom",qr="right",_r="left",Gr="auto",Ur=[Vr,Fr,qr,_r],Yr="start",$r="end",Kr="viewport",Xr="popper",Zr=Ur.reduce(function(e,t){return e.concat([t+"-"+Yr,t+"-"+$r])},[]),Jr=[].concat(Ur,[Gr]).reduce(function(e,t){return e.concat([t,t+"-"+Yr,t+"-"+$r])},[]),Qr=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function en(e){return e?(e.nodeName||"").toLowerCase():null}function tn(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function rn(e){return e instanceof tn(e).Element||e instanceof Element}function nn(e){return e instanceof tn(e).HTMLElement||e instanceof HTMLElement}function on(e){return"undefined"!=typeof ShadowRoot&&(e instanceof tn(e).ShadowRoot||e instanceof ShadowRoot)}var an={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];nn(o)&&en(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},{});nn(n)&&en(n)&&(Object.assign(n.style,i),Object.keys(o).forEach(function(e){n.removeAttribute(e)}))})}},requires:["computeStyles"]};function ln(e){return e.split("-")[0]}var sn=Math.max,dn=Math.min,cn=Math.round;function pn(){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 un(){return!/^((?!chrome|android).)*safari/i.test(pn())}function fn(e,t,r){void 0===t&&(t=!1),void 0===r&&(r=!1);var n=e.getBoundingClientRect(),o=1,i=1;t&&nn(e)&&(o=e.offsetWidth>0&&cn(n.width)/e.offsetWidth||1,i=e.offsetHeight>0&&cn(n.height)/e.offsetHeight||1);var a=(rn(e)?tn(e):window).visualViewport,l=!un()&&r,s=(n.left+(l&&a?a.offsetLeft:0))/o,d=(n.top+(l&&a?a.offsetTop:0))/i,c=n.width/o,p=n.height/i;return{width:c,height:p,top:d,right:s+c,bottom:d+p,left:s,x:s,y:d}}function mn(e){var t=fn(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 vn(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&on(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function gn(e){return tn(e).getComputedStyle(e)}function xn(e){return["table","td","th"].indexOf(en(e))>=0}function hn(e){return((rn(e)?e.ownerDocument:e.document)||window.document).documentElement}function bn(e){return"html"===en(e)?e:e.assignedSlot||e.parentNode||(on(e)?e.host:null)||hn(e)}function yn(e){return nn(e)&&"fixed"!==gn(e).position?e.offsetParent:null}function wn(e){for(var t=tn(e),r=yn(e);r&&xn(r)&&"static"===gn(r).position;)r=yn(r);return r&&("html"===en(r)||"body"===en(r)&&"static"===gn(r).position)?t:r||function(e){var t=/firefox/i.test(pn());if(/Trident/i.test(pn())&&nn(e)&&"fixed"===gn(e).position)return null;var r=bn(e);for(on(r)&&(r=r.host);nn(r)&&["html","body"].indexOf(en(r))<0;){var n=gn(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 kn(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Nn(e,t,r){return sn(e,dn(t,r))}function Cn(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function En(e,t){return t.reduce(function(t,r){return t[r]=e,t},{})}var Rn={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,l=ln(r.placement),s=kn(l),d=[_r,qr].indexOf(l)>=0?"height":"width";if(i&&a){var c=function(e,t){return Cn("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:En(e,Ur))}(o.padding,r),p=mn(i),u="y"===s?Vr:_r,f="y"===s?Fr:qr,m=r.rects.reference[d]+r.rects.reference[s]-a[s]-r.rects.popper[d],v=a[s]-r.rects.reference[s],g=wn(i),x=g?"y"===s?g.clientHeight||0:g.clientWidth||0:0,h=m/2-v/2,b=c[u],y=x-p[d]-c[f],w=x/2-p[d]/2+h,k=Nn(b,w,y),N=s;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)))&&vn(t.elements.popper,n)&&(t.elements.arrow=n)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Ln(e){return e.split("-")[1]}var On={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Tn(e){var t,r=e.popper,n=e.popperRect,o=e.placement,i=e.variation,a=e.offsets,l=e.position,s=e.gpuAcceleration,d=e.adaptive,c=e.roundOffsets,p=e.isFixed,u=a.x,f=void 0===u?0:u,m=a.y,v=void 0===m?0:m,g="function"==typeof c?c({x:f,y:v}):{x:f,y:v};f=g.x,v=g.y;var x=a.hasOwnProperty("x"),h=a.hasOwnProperty("y"),b=_r,y=Vr,w=window;if(d){var k=wn(r),N="clientHeight",C="clientWidth";if(k===tn(r)&&"static"!==gn(k=hn(r)).position&&"absolute"===l&&(N="scrollHeight",C="scrollWidth"),o===Vr||(o===_r||o===qr)&&i===$r)y=Fr,v-=(p&&k===w&&w.visualViewport?w.visualViewport.height:k[N])-n.height,v*=s?1:-1;if(o===_r||(o===Vr||o===Fr)&&i===$r)b=qr,f-=(p&&k===w&&w.visualViewport?w.visualViewport.width:k[C])-n.width,f*=s?1:-1}var E,R=Object.assign({position:l},d&&On),L=!0===c?function(e,t){var r=e.x,n=e.y,o=t.devicePixelRatio||1;return{x:cn(r*o)/o||0,y:cn(n*o)/o||0}}({x:f,y:v},tn(r)):{x:f,y:v};return f=L.x,v=L.y,s?Object.assign({},R,((E={})[y]=h?"0":"",E[b]=x?"0":"",E.transform=(w.devicePixelRatio||1)<=1?"translate("+f+"px, "+v+"px)":"translate3d("+f+"px, "+v+"px, 0)",E)):Object.assign({},R,((t={})[y]=h?v+"px":"",t[b]=x?f+"px":"",t.transform="",t))}var Mn={passive:!0};var Sn={left:"right",right:"left",bottom:"top",top:"bottom"};function zn(e){return e.replace(/left|right|bottom|top/g,function(e){return Sn[e]})}var jn={start:"end",end:"start"};function An(e){return e.replace(/start|end/g,function(e){return jn[e]})}function Dn(e){var t=tn(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function In(e){return fn(hn(e)).left+Dn(e).scrollLeft}function Wn(e){var t=gn(e),r=t.overflow,n=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+o+n)}function Bn(e){return["html","body","#document"].indexOf(en(e))>=0?e.ownerDocument.body:nn(e)&&Wn(e)?e:Bn(bn(e))}function Pn(e,t){var r;void 0===t&&(t=[]);var n=Bn(e),o=n===(null==(r=e.ownerDocument)?void 0:r.body),i=tn(n),a=o?[i].concat(i.visualViewport||[],Wn(n)?n:[]):n,l=t.concat(a);return o?l:l.concat(Pn(bn(a)))}function Hn(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Vn(e,t,r){return t===Kr?Hn(function(e,t){var r=tn(e),n=hn(e),o=r.visualViewport,i=n.clientWidth,a=n.clientHeight,l=0,s=0;if(o){i=o.width,a=o.height;var d=un();(d||!d&&"fixed"===t)&&(l=o.offsetLeft,s=o.offsetTop)}return{width:i,height:a,x:l+In(e),y:s}}(e,r)):rn(t)?function(e,t){var r=fn(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):Hn(function(e){var t,r=hn(e),n=Dn(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=sn(r.scrollWidth,r.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=sn(r.scrollHeight,r.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),l=-n.scrollLeft+In(e),s=-n.scrollTop;return"rtl"===gn(o||r).direction&&(l+=sn(r.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:l,y:s}}(hn(e)))}function Fn(e,t,r,n){var o="clippingParents"===t?function(e){var t=Pn(bn(e)),r=["absolute","fixed"].indexOf(gn(e).position)>=0&&nn(e)?wn(e):e;return rn(r)?t.filter(function(e){return rn(e)&&vn(e,r)&&"body"!==en(e)}):[]}(e):[].concat(t),i=[].concat(o,[r]),a=i[0],l=i.reduce(function(t,r){var o=Vn(e,r,n);return t.top=sn(o.top,t.top),t.right=dn(o.right,t.right),t.bottom=dn(o.bottom,t.bottom),t.left=sn(o.left,t.left),t},Vn(e,a,n));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function qn(e){var t,r=e.reference,n=e.element,o=e.placement,i=o?ln(o):null,a=o?Ln(o):null,l=r.x+r.width/2-n.width/2,s=r.y+r.height/2-n.height/2;switch(i){case Vr:t={x:l,y:r.y-n.height};break;case Fr:t={x:l,y:r.y+r.height};break;case qr:t={x:r.x+r.width,y:s};break;case _r:t={x:r.x-n.width,y:s};break;default:t={x:r.x,y:r.y}}var d=i?kn(i):null;if(null!=d){var c="y"===d?"height":"width";switch(a){case Yr:t[d]=t[d]-(r[c]/2-n[c]/2);break;case $r:t[d]=t[d]+(r[c]/2-n[c]/2)}}return t}function _n(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,l=r.boundary,s=void 0===l?"clippingParents":l,d=r.rootBoundary,c=void 0===d?Kr:d,p=r.elementContext,u=void 0===p?Xr:p,f=r.altBoundary,m=void 0!==f&&f,v=r.padding,g=void 0===v?0:v,x=Cn("number"!=typeof g?g:En(g,Ur)),h=u===Xr?"reference":Xr,b=e.rects.popper,y=e.elements[m?h:u],w=Fn(rn(y)?y:y.contextElement||hn(e.elements.popper),s,c,a),k=fn(e.elements.reference),N=qn({reference:k,element:b,placement:o}),C=Hn(Object.assign({},b,N)),E=u===Xr?C:k,R={top:w.top-E.top+x.top,bottom:E.bottom-w.bottom+x.bottom,left:w.left-E.left+x.left,right:E.right-w.right+x.right},L=e.modifiersData.offset;if(u===Xr&&L){var O=L[o];Object.keys(R).forEach(function(e){var t=[qr,Fr].indexOf(e)>=0?1:-1,r=[Vr,Fr].indexOf(e)>=0?"y":"x";R[e]+=O[r]*t})}return R}function Gn(e,t){void 0===t&&(t={});var r=t,n=r.placement,o=r.boundary,i=r.rootBoundary,a=r.padding,l=r.flipVariations,s=r.allowedAutoPlacements,d=void 0===s?Jr:s,c=Ln(n),p=c?l?Zr:Zr.filter(function(e){return Ln(e)===c}):Ur,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]=_n(e,{placement:r,boundary:o,rootBoundary:i,padding:a})[ln(r)],t},{});return Object.keys(f).sort(function(e,t){return f[e]-f[t]})}var Un={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,l=void 0===a||a,s=r.fallbackPlacements,d=r.padding,c=r.boundary,p=r.rootBoundary,u=r.altBoundary,f=r.flipVariations,m=void 0===f||f,v=r.allowedAutoPlacements,g=t.options.placement,x=ln(g),h=s||(x===g||!m?[zn(g)]:function(e){if(ln(e)===Gr)return[];var t=zn(e);return[An(e),t,An(t)]}(g)),b=[g].concat(h).reduce(function(e,r){return e.concat(ln(r)===Gr?Gn(t,{placement:r,boundary:c,rootBoundary:p,padding:d,flipVariations:m,allowedAutoPlacements:v}):r)},[]),y=t.rects.reference,w=t.rects.popper,k=new Map,N=!0,C=b[0],E=0;E<b.length;E++){var R=b[E],L=ln(R),O=Ln(R)===Yr,T=[Vr,Fr].indexOf(L)>=0,M=T?"width":"height",S=_n(t,{placement:R,boundary:c,rootBoundary:p,altBoundary:u,padding:d}),z=T?O?qr:_r:O?Fr:Vr;y[M]>w[M]&&(z=zn(z));var j=zn(z),A=[];if(i&&A.push(S[L]<=0),l&&A.push(S[z]<=0,S[j]<=0),A.every(function(e){return e})){C=R,N=!1;break}k.set(R,A)}if(N)for(var D=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"===D(I))break}t.placement!==C&&(t.modifiersData[n]._skip=!0,t.placement=C,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function Yn(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 $n(e){return[Vr,qr,Fr,_r].some(function(t){return e[t]>=0})}var Kn={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,l=void 0!==a&&a,s=r.boundary,d=r.rootBoundary,c=r.altBoundary,p=r.padding,u=r.tether,f=void 0===u||u,m=r.tetherOffset,v=void 0===m?0:m,g=_n(t,{boundary:s,rootBoundary:d,padding:p,altBoundary:c}),x=ln(t.placement),h=Ln(t.placement),b=!h,y=kn(x),w="x"===y?"y":"x",k=t.modifiersData.popperOffsets,N=t.rects.reference,C=t.rects.popper,E="function"==typeof v?v(Object.assign({},t.rects,{placement:t.placement})):v,R="number"==typeof E?{mainAxis:E,altAxis:E}:Object.assign({mainAxis:0,altAxis:0},E),L=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,O={x:0,y:0};if(k){if(i){var T,M="y"===y?Vr:_r,S="y"===y?Fr:qr,z="y"===y?"height":"width",j=k[y],A=j+g[M],D=j-g[S],I=f?-C[z]/2:0,W=h===Yr?N[z]:C[z],B=h===Yr?-C[z]:-N[z],P=t.elements.arrow,H=f&&P?mn(P):{width:0,height:0},V=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},F=V[M],q=V[S],_=Nn(0,N[z],H[z]),G=b?N[z]/2-I-_-F-R.mainAxis:W-_-F-R.mainAxis,U=b?-N[z]/2+I+_+q+R.mainAxis:B+_+q+R.mainAxis,Y=t.elements.arrow&&wn(t.elements.arrow),$=Y?"y"===y?Y.clientTop||0:Y.clientLeft||0:0,K=null!=(T=null==L?void 0:L[y])?T:0,X=j+U-K,Z=Nn(f?dn(A,j+G-K-$):A,j,f?sn(D,X):D);k[y]=Z,O[y]=Z-j}if(l){var J,Q="x"===y?Vr:_r,ee="x"===y?Fr:qr,te=k[w],re="y"===w?"height":"width",ne=te+g[Q],oe=te-g[ee],ie=-1!==[Vr,_r].indexOf(x),ae=null!=(J=null==L?void 0:L[w])?J:0,le=ie?ne:te-N[re]-C[re]-ae+R.altAxis,se=ie?te+N[re]+C[re]-ae-R.altAxis:oe,de=f&&ie?function(e,t,r){var n=Nn(e,t,r);return n>r?r:n}(le,te,se):Nn(f?le:ne,te,f?se:oe);k[w]=de,O[w]=de-te}t.modifiersData[n]=O}},requiresIfExists:["offset"]};function Xn(e,t,r){void 0===r&&(r=!1);var n,o,i=nn(t),a=nn(t)&&function(e){var t=e.getBoundingClientRect(),r=cn(t.width)/e.offsetWidth||1,n=cn(t.height)/e.offsetHeight||1;return 1!==r||1!==n}(t),l=hn(t),s=fn(e,a,r),d={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(i||!i&&!r)&&(("body"!==en(t)||Wn(l))&&(d=(n=t)!==tn(n)&&nn(n)?{scrollLeft:(o=n).scrollLeft,scrollTop:o.scrollTop}:Dn(n)),nn(t)?((c=fn(t,!0)).x+=t.clientLeft,c.y+=t.clientTop):l&&(c.x=In(l))),{x:s.left+d.scrollLeft-c.x,y:s.top+d.scrollTop-c.y,width:s.width,height:s.height}}function Zn(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 Jn={placement:"bottom",modifiers:[],strategy:"absolute"};function Qn(){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 eo(e){void 0===e&&(e={});var t=e,r=t.defaultModifiers,n=void 0===r?[]:r,o=t.defaultOptions,i=void 0===o?Jn:o;return function(e,t,r){void 0===r&&(r=i);var o,a,l={placement:"bottom",orderedModifiers:[],options:Object.assign({},Jn,i),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},s=[],d=!1,c={state:l,setOptions:function(r){var o="function"==typeof r?r(l.options):r;p(),l.options=Object.assign({},i,l.options,o),l.scrollParents={reference:rn(e)?Pn(e):e.contextElement?Pn(e.contextElement):[],popper:Pn(t)};var a,d,u=function(e){var t=Zn(e);return Qr.reduce(function(e,r){return e.concat(t.filter(function(e){return e.phase===r}))},[])}((a=[].concat(n,l.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 l.orderedModifiers=u.filter(function(e){return e.enabled}),l.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:l,name:t,instance:c,options:n}),a=function(){};s.push(i||a)}}),c.update()},forceUpdate:function(){if(!d){var e=l.elements,t=e.reference,r=e.popper;if(Qn(t,r)){l.rects={reference:Xn(t,wn(r),"fixed"===l.options.strategy),popper:mn(r)},l.reset=!1,l.placement=l.options.placement,l.orderedModifiers.forEach(function(e){return l.modifiersData[e.name]=Object.assign({},e.data)});for(var n=0;n<l.orderedModifiers.length;n++)if(!0!==l.reset){var o=l.orderedModifiers[n],i=o.fn,a=o.options,s=void 0===a?{}:a,p=o.name;"function"==typeof i&&(l=i({state:l,options:s,name:p,instance:c})||l)}else l.reset=!1,n=-1}}},update:(o=function(){return new Promise(function(e){c.forceUpdate(),e(l)})},function(){return a||(a=new Promise(function(e){Promise.resolve().then(function(){a=void 0,e(o())})})),a}),destroy:function(){p(),d=!0}};if(!Qn(e,t))return c;function p(){s.forEach(function(e){return e()}),s=[]}return c.setOptions(r).then(function(e){!d&&r.onFirstUpdate&&r.onFirstUpdate(e)}),c}}var to=eo({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,l=void 0===a||a,s=tn(t.elements.popper),d=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&d.forEach(function(e){e.addEventListener("scroll",r.update,Mn)}),l&&s.addEventListener("resize",r.update,Mn),function(){i&&d.forEach(function(e){e.removeEventListener("scroll",r.update,Mn)}),l&&s.removeEventListener("resize",r.update,Mn)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,r=e.name;t.modifiersData[r]=qn({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,l=r.roundOffsets,s=void 0===l||l,d={placement:ln(t.placement),variation:Ln(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,Tn(Object.assign({},d,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:s})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,Tn(Object.assign({},d,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:s})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},an,{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=Jr.reduce(function(e,r){return e[r]=function(e,t,r){var n=ln(e),o=[_r,Vr].indexOf(n)>=0?-1:1,i="function"==typeof r?r(Object.assign({},t,{placement:e})):r,a=i[0],l=i[1];return a=a||0,l=(l||0)*o,[_r,qr].indexOf(n)>=0?{x:l,y:a}:{x:a,y:l}}(r,t.rects,i),e},{}),l=a[t.placement],s=l.x,d=l.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=s,t.modifiersData.popperOffsets.y+=d),t.modifiersData[n]=a}},Un,Kn,Rn,{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=_n(t,{elementContext:"reference"}),l=_n(t,{altBoundary:!0}),s=Yn(a,n),d=Yn(l,o,i),c=$n(s),p=$n(d);t.modifiersData[r]={referenceClippingOffsets:s,popperEscapeOffsets:d,isReferenceHidden:c,hasPopperEscaped:p},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":p})}}]}),ro="tippy-content",no="tippy-arrow",oo="tippy-svg-arrow",io={passive:!0,capture:!0},ao=function(){return document.body};function lo(e,t,r){if(Array.isArray(e)){var n=e[t];return null==n?Array.isArray(r)?r[t]:r:n}return e}function so(e,t){var r={}.toString.call(e);return 0===r.indexOf("[object")&&r.indexOf(t+"]")>-1}function co(e,t){return"function"==typeof e?e.apply(void 0,t):e}function po(e,t){return 0===t?e:function(n){clearTimeout(r),r=setTimeout(function(){e(n)},t)};var r}function uo(e){return[].concat(e)}function fo(e,t){-1===e.indexOf(t)&&e.push(t)}function mo(e){return[].slice.call(e)}function vo(e){return Object.keys(e).reduce(function(t,r){return void 0!==e[r]&&(t[r]=e[r]),t},{})}function go(){return document.createElement("div")}function xo(e){return["Element","Fragment"].some(function(t){return so(e,t)})}function ho(e){return xo(e)?[e]:function(e){return so(e,"NodeList")}(e)?mo(e):Array.isArray(e)?e:mo(document.querySelectorAll(e))}function bo(e,t){e.forEach(function(e){e&&(e.style.transitionDuration=t+"ms")})}function yo(e,t){e.forEach(function(e){e&&e.setAttribute("data-state",t)})}function wo(e,t,r){var n=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(t){e[n](t,r)})}function ko(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 No={isTouch:!1},Co=0;function Eo(){No.isTouch||(No.isTouch=!0,window.performance&&document.addEventListener("mousemove",Ro))}function Ro(){var e=performance.now();e-Co<20&&(No.isTouch=!1,document.removeEventListener("mousemove",Ro)),Co=e}function Lo(){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 Oo,To=!!("undefined"!=typeof window&&"undefined"!=typeof document)&&!!window.msCrypto;function Mo(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 So(e){return e.replace(/[ \t]{2,}/g," ").replace(/^[ \t]*/gm,"").trim()}function zo(e){return So("\n %ctippy.js\n\n %c"+So(e)+"\n\n %c👷 This is a development-only message. It will be removed in production.\n ")}function jo(e){return[zo(e),"color: #00C584; font-size: 1.3em; font-weight: bold;","line-height: 1.5","color: #a6a095;"]}function Ao(e,t){var r;e&&!Oo.has(t)&&(Oo.add(t),(r=console).warn.apply(r,jo(t)))}function Do(e,t){var r;e&&!Oo.has(t)&&(Oo.add(t),(r=console).error.apply(r,jo(t)))}"production"!==process.env.NODE_ENV&&(Oo=new Set);var Io={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},Wo=Object.assign({appendTo:ao,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},Io,{allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999}),Bo=Object.keys(Wo);function Po(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=Wo[o])?n:i);return t},{});return Object.assign({},e,t)}function Ho(e,t){var r=Object.assign({},t,{content:co(t.content,[e])},t.ignoreAttributes?{}:function(e,t){return(t?Object.keys(Po(Object.assign({},Wo,{plugins:t}))):Bo).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({},Wo.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 Vo(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}(Wo,Object.keys(Io)),i=(r=o,n=e,!{}.hasOwnProperty.call(r,n));i&&(i=0===t.filter(function(t){return t.name===e}).length),Ao(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 Fo(e,t){e.innerHTML=t}function qo(e){var t=go();return!0===e?t.className=no:(t.className=oo,xo(e)?t.appendChild(e):Fo(t,e)),t}function _o(e,t){xo(t.content)?(Fo(e,""),e.appendChild(t.content)):"function"!=typeof t.content&&(t.allowHTML?Fo(e,t.content):e.textContent=t.content)}function Go(e){var t=e.firstElementChild,r=mo(t.children);return{box:t,content:r.find(function(e){return e.classList.contains(ro)}),arrow:r.find(function(e){return e.classList.contains(no)||e.classList.contains(oo)}),backdrop:r.find(function(e){return e.classList.contains("tippy-backdrop")})}}function Uo(e){var t=go(),r=go();r.className="tippy-box",r.setAttribute("data-state","hidden"),r.setAttribute("tabindex","-1");var n=go();function o(r,n){var o=Go(t),i=o.box,a=o.content,l=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||_o(a,e.props),n.arrow?l?r.arrow!==n.arrow&&(i.removeChild(l),i.appendChild(qo(n.arrow))):i.appendChild(qo(n.arrow)):l&&i.removeChild(l)}return n.className=ro,n.setAttribute("data-state","hidden"),_o(n,e.props),t.appendChild(r),r.appendChild(n),o(e.props,e.props),{popper:t,onUpdate:o}}Uo.$$tippy=!0;var Yo=1,$o=[],Ko=[];function Xo(e,t){var r,n,o,i,a,l,s,d,c=Ho(e,Object.assign({},Wo,Po(vo(t)))),p=!1,u=!1,f=!1,m=!1,v=[],g=po(Y,c.interactiveDebounce),x=Yo++,h=(d=c.plugins).filter(function(e,t){return d.indexOf(e)===t}),b={id:x,reference:e,popper:go(),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&&Ao(b.state.isDestroyed,Mo("setProps"));if(b.state.isDestroyed)return;j("onBeforeUpdate",[b,t]),G();var r=b.props,n=Ho(e,Object.assign({},r,vo(t),{ignoreAttributes:!0}));b.props=n,_(),r.interactiveDebounce!==n.interactiveDebounce&&(I(),g=po(Y,n.interactiveDebounce));r.triggerTarget&&!n.triggerTarget?uo(r.triggerTarget).forEach(function(e){e.removeAttribute("aria-expanded")}):n.triggerTarget&&e.removeAttribute("aria-expanded");D(),z(),k&&k(r,n);b.popperInstance&&(Z(),Q().forEach(function(e){requestAnimationFrame(e._tippy.popperInstance.forceUpdate)}));j("onAfterUpdate",[b,t])},setContent:function(e){b.setProps({content:e})},show:function(){"production"!==process.env.NODE_ENV&&Ao(b.state.isDestroyed,Mo("show"));var e=b.state.isVisible,t=b.state.isDestroyed,r=!b.state.isEnabled,n=No.isTouch&&!b.props.touch,o=lo(b.props.duration,0,Wo.duration);if(e||t||r||n)return;if(O().hasAttribute("disabled"))return;if(j("onShow",[b],!1),!1===b.props.onShow(b))return;b.state.isVisible=!0,L()&&(w.style.visibility="visible");z(),H(),b.state.isMounted||(w.style.transition="none");if(L()){var i=M();bo([i.box,i.content],0)}l=function(){var e;if(b.state.isVisible&&!m){if(m=!0,w.offsetHeight,w.style.transition=b.props.moveTransition,L()&&b.props.animation){var t=M(),r=t.box,n=t.content;bo([r,n],o),yo([r,n],"visible")}A(),D(),fo(Ko,b),null==(e=b.popperInstance)||e.forceUpdate(),j("onMount",[b]),b.props.animation&&L()&&function(e,t){F(e,t)}(o,function(){b.state.isShown=!0,j("onShown",[b])})}},function(){var e,t=b.props.appendTo,r=O();e=b.props.interactive&&t===ao||"parent"===t?r.parentNode:co(t,[r]);e.contains(w)||e.appendChild(w);b.state.isMounted=!0,Z(),"production"!==process.env.NODE_ENV&&Ao(b.props.interactive&&t===Wo.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&&Ao(b.state.isDestroyed,Mo("hide"));var e=!b.state.isVisible,t=b.state.isDestroyed,r=!b.state.isEnabled,n=lo(b.props.duration,1,Wo.duration);if(e||t||r)return;if(j("onHide",[b],!1),!1===b.props.onHide(b))return;b.state.isVisible=!1,b.state.isShown=!1,m=!1,p=!1,L()&&(w.style.visibility="hidden");if(I(),V(),z(!0),L()){var o=M(),i=o.box,a=o.content;b.props.animation&&(bo([i,a],n),yo([i,a],"hidden"))}A(),D(),b.props.animation?L()&&function(e,t){F(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&&Ao(b.state.isDestroyed,Mo("hideWithInteractivity"));T().addEventListener("mousemove",g),fo($o,g),g(e)},enable:function(){b.state.isEnabled=!0},disable:function(){b.hide(),b.state.isEnabled=!1},unmount:function(){"production"!==process.env.NODE_ENV&&Ao(b.state.isDestroyed,Mo("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);Ko=Ko.filter(function(e){return e!==b}),b.state.isMounted=!1,j("onHidden",[b])},destroy:function(){"production"!==process.env.NODE_ENV&&Ao(b.state.isDestroyed,Mo("destroy"));if(b.state.isDestroyed)return;b.clearDelayTimeouts(),b.unmount(),G(),delete e._tippy,b.state.isDestroyed=!0,j("onDestroy",[b])}};if(!c.render)return"production"!==process.env.NODE_ENV&&Do(!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 _(),D(),z(),j("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&&T().addEventListener("mousemove",g)}),b;function E(){var e=b.props.touch;return Array.isArray(e)?e:[e,0]}function R(){return"hold"===E()[0]}function L(){var e;return!(null==(e=b.props.render)||!e.$$tippy)}function O(){return s||e}function T(){var e,t,r=O().parentNode;return r?null!=(t=uo(r)[0])&&null!=(e=t.ownerDocument)&&e.body?t.ownerDocument:document:document}function M(){return Go(w)}function S(e){return b.state.isMounted&&!b.state.isVisible||No.isTouch||i&&"focus"===i.type?0:lo(b.props.delay,e?0:1,Wo.delay)}function z(e){void 0===e&&(e=!1),w.style.pointerEvents=b.props.interactive&&!e?"":"none",w.style.zIndex=""+b.props.zIndex}function j(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;uo(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 D(){!C&&b.props.aria.expanded&&uo(b.props.triggerTarget||e).forEach(function(e){b.props.interactive?e.setAttribute("aria-expanded",b.state.isVisible&&e===O()?"true":"false"):e.removeAttribute("aria-expanded")})}function I(){T().removeEventListener("mousemove",g),$o=$o.filter(function(e){return e!==g})}function W(t){if(!No.isTouch||!f&&"mousedown"!==t.type){var r=t.composedPath&&t.composedPath()[0]||t.target;if(!b.props.interactive||!ko(w,r)){if(uo(b.props.triggerTarget||e).some(function(e){return ko(e,r)})){if(No.isTouch)return;if(b.state.isVisible&&b.props.trigger.indexOf("click")>=0)return}else j("onClickOutside",[b,t]);!0===b.props.hideOnClick&&(b.clearDelayTimeouts(),b.hide(),u=!0,setTimeout(function(){u=!1}),b.state.isMounted||V())}}}function B(){f=!0}function P(){f=!1}function H(){var e=T();e.addEventListener("mousedown",W,!0),e.addEventListener("touchend",W,io),e.addEventListener("touchstart",P,io),e.addEventListener("touchmove",B,io)}function V(){var e=T();e.removeEventListener("mousedown",W,!0),e.removeEventListener("touchend",W,io),e.removeEventListener("touchstart",P,io),e.removeEventListener("touchmove",B,io)}function F(e,t){var r=M().box;function n(e){e.target===r&&(wo(r,"remove",n),t())}if(0===e)return t();wo(r,"remove",a),wo(r,"add",n),a=n}function q(t,r,n){void 0===n&&(n=!1),uo(b.props.triggerTarget||e).forEach(function(e){e.addEventListener(t,r,n),v.push({node:e,eventType:t,handler:r,options:n})})}function _(){var e;R()&&(q("touchstart",U,{passive:!0}),q("touchend",$,{passive:!0})),(e=b.props.trigger,e.split(/\s+/).filter(Boolean)).forEach(function(e){if("manual"!==e)switch(q(e,U),e){case"mouseenter":q("mouseleave",$);break;case"focus":q(To?"focusout":"blur",K);break;case"focusin":q("focusout",K)}})}function G(){v.forEach(function(e){var t=e.node,r=e.eventType,n=e.handler,o=e.options;t.removeEventListener(r,n,o)}),v=[]}function U(e){var t,r=!1;if(b.state.isEnabled&&!X(e)&&!u){var n="focus"===(null==(t=i)?void 0:t.type);i=e,s=e.currentTarget,D(),!b.state.isVisible&&so(e,"MouseEvent")&&$o.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 Y(e){var t=e.target,r=O().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],l=o.modifiersData.offset;if(!l)return!0;var s="bottom"===a?l.top.y:0,d="top"===a?l.bottom.y:0,c="right"===a?l.left.x:0,p="left"===a?l.right.x:0,u=t.top-n+s>i,f=n-t.bottom-d>i,m=t.left-r+c>i,v=r-t.right-p>i;return u||f||m||v})})(n,e)&&(I(),te(e))}}function $(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!==O()||b.props.interactive&&e.relatedTarget&&w.contains(e.relatedTarget)||te(e)}function X(e){return!!No.isTouch&&R()!==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,s=L()?Go(w).arrow:null,d=i?{getBoundingClientRect:i,contextElement:i.contextElement||O()}:e,c={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t=e.state;if(L()){var r=M().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];L()&&s&&p.push({name:"arrow",options:{element:s,padding:3}}),p.push.apply(p,(null==r?void 0:r.modifiers)||[]),b.popperInstance=to(d,w,Object.assign({},r,{placement:n,onFirstUpdate:l,modifiers:p}))}function J(){b.popperInstance&&(b.popperInstance.destroy(),b.popperInstance=null)}function Q(){return mo(w.querySelectorAll("[data-tippy-root]"))}function ee(e){b.clearDelayTimeouts(),e&&j("onTrigger",[b,e]),H();var t=S(!0),n=E(),o=n[0],i=n[1];No.isTouch&&"hold"===o&&i&&(t=i),t?r=setTimeout(function(){b.show()},t):b.show()}function te(e){if(b.clearDelayTimeouts(),j("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 V()}}function Zo(e,t){void 0===t&&(t={});var r=Wo.plugins.concat(t.plugins||[]);"production"!==process.env.NODE_ENV&&(!function(e){var t=!e,r="[object Object]"===Object.prototype.toString.call(e)&&!e.addEventListener;Do(t,["tippy() was passed","`"+String(e)+"`","as its targets (first) argument. Valid types are: String, Element,","Element[], or NodeList."].join(" ")),Do(r,["tippy() was passed a plain object which is not supported as an argument","for virtual positioning. Use props.getReferenceClientRect instead."].join(" "))}(e),Vo(t,r)),document.addEventListener("touchstart",Eo,io),window.addEventListener("blur",Lo);var n=Object.assign({},t,{plugins:r}),o=ho(e);if("production"!==process.env.NODE_ENV){var i=xo(n.content),a=o.length>1;Ao(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 l=o.reduce(function(e,t){var r=t&&Xo(t,n);return r&&e.push(r),e},[]);return xo(e)?l[0]:l}Zo.defaultProps=Wo,Zo.setDefaultProps=function(e){"production"!==process.env.NODE_ENV&&Vo(e,[]),Object.keys(e).forEach(function(t){Wo[t]=e[t]})},Zo.currentInput=No,Object.assign({},an,{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)}}),Zo.setDefaultProps({render:Uo});var Jo=["title","children","placement","arrow","delay","className","style"],Qo=e.forwardRef(function(t,r){var n=t.title,o=t.children,i=t.placement,a=void 0===i?"top":i,l=t.arrow,s=void 0===l||l,d=t.delay,c=void 0===d?[100,0]:d,p=t.className,u=t.style,f=v(t,Jo),g=e.useRef(null),x=e.useRef(null);e.useImperativeHandle(r,function(){return g.current}),e.useEffect(function(){if(g.current){if(n){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 x.current=Zo(g.current,{content:n,placement:a,arrow:!!s&&'<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:c,theme:"material",animation:"fade",duration:[200,150],popperOptions:{modifiers:[{name:"offset",options:{offset:[0,8]}}]}}),function(){x.current&&(x.current.destroy(),x.current=null)}}x.current&&(x.current.destroy(),x.current=null)}},[n,a,s,c]),e.useEffect(function(){x.current&&n&&x.current.setContent(n)},[n]);var h=e.Children.only(o);return e.isValidElement(h)?e.cloneElement(h,m({ref:function(e){g.current=e,"function"==typeof h.ref?h.ref(e):h.ref&&(h.ref.current=e)},className:p?"".concat(h.props.className||""," ").concat(p).trim():h.props.className,style:m(m({},h.props.style),u)},f)):o});Qo.displayName="Tooltip";var ei=["options","getOptionLabel","value","onChange","inputValue","onInputChange","filterOptions","renderInput","className","style"],ti=e.forwardRef(function(t,r){var n,o,i,s,d=t.options,c=void 0===d?[]:d,p=t.getOptionLabel,u=t.value,f=t.onChange,x=t.inputValue,h=t.onInputChange,b=t.filterOptions,y=t.renderInput,w=t.className,k=t.style,N=v(t,ei),C=g(e.useState(!1),2),E=C[0],R=C[1],L=g(e.useState(c),2),O=L[0],T=L[1],M=e.useRef(null),S=e.useRef(null);e.useImperativeHandle(r,function(){return M.current}),e.useEffect(function(){var e="string"==typeof x?x:x?String(x):"";if(b){var t=b(c,{inputValue:e});T(t)}else if(e){var r=c.filter(function(t){var r=p?p(t):(null==t?void 0:t.name)||(null==t?void 0:t.label)||String(t);return String(r).toLowerCase().includes(e.toLowerCase())});T(r)}else T(c)},[c,x,b,p]);var z=function(e){f&&f(null,e);var t=p?p(e):(null==e?void 0:e.name)||(null==e?void 0:e.label)||String(e),r="string"==typeof t?t:String(t||"");h&&h(null,r),R(!1)},j=function(e){S.current&&!S.current.contains(e.target)&&M.current&&!M.current.contains(e.target)&&R(!1)};e.useEffect(function(){if(E)return document.addEventListener("mousedown",j),function(){document.removeEventListener("mousedown",j)}},[E]);var A=u?p?p(u):(null==u?void 0:u.name)||(null==u?void 0:u.label)||String(u):"",D=m({ref:M,value:null!=x?"string"==typeof x?x:String(x):"string"==typeof A?A:String(A||""),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)),h&&h(e,r),E||R(!0)},onFocus:function(){return R(!0)}},N);return l("div",y?{ref:r,className:De("relative",w),style:k,children:[y(m(m({},D),{},{InputProps:m(m({},D.InputProps||{}),{},{endAdornment:a("div",{className:"absolute right-2 top-1/2 -translate-y-1/2 cursor-pointer",onClick:function(e){e.stopPropagation(),e.preventDefault(),R(!E)},onMouseDown:function(e){e.stopPropagation(),e.preventDefault()},children:a("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",style:{transform:E?"rotate(180deg)":"rotate(0deg)",transition:"transform 0.2s"},children:a("path",{d:"M5 7.5L10 12.5L15 7.5",stroke:"hsl(var(--muted-foreground))",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})})})})),E&&O.length>0&&a("div",{ref:S,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:O.map(function(e,t){var r=p?p(e):(null==e?void 0:e.name)||(null==e?void 0:e.label)||String(e),n=u&&(p?p(u)===r:u===e||(null==u?void 0:u.id)&&(null==e?void 0:e.id)&&u.id===e.id);return a("div",{className:"px-3 py-2 cursor-pointer hover:bg-accent transition-colors",style:{backgroundColor:n?"hsl(var(--accent))":"transparent",color:"hsl(var(--foreground))"},onClick:function(){return z(e)},onMouseEnter:function(e){n||(e.currentTarget.style.backgroundColor="hsl(var(--accent))")},onMouseLeave:function(e){e.currentTarget.style.backgroundColor=n?"hsl(var(--accent))":"transparent"},children:r},t)})})]}:{ref:r,className:De("relative",w),style:k,children:[a(It,m(m({},D),{},{style:m(m({},D.style),{},{height:(null===(n=D.style)||void 0===n?void 0:n.height)||"40px"}),InputProps:m(m({},D.InputProps),{},{style:m(m({},null===(o=D.InputProps)||void 0===o?void 0:o.style),{},{backgroundColor:(null===(i=D.InputProps)||void 0===i||null===(i=i.style)||void 0===i?void 0:i.backgroundColor)||"transparent",height:(null===(s=D.InputProps)||void 0===s||null===(s=s.style)||void 0===s?void 0:s.height)||"40px"}),endAdornment:a("div",{className:"absolute right-2 top-1/2 -translate-y-1/2 cursor-pointer",onClick:function(e){e.stopPropagation(),e.preventDefault(),R(!E)},onMouseDown:function(e){e.stopPropagation(),e.preventDefault()},children:a("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",style:{transform:E?"rotate(180deg)":"rotate(0deg)",transition:"transform 0.2s"},children:a("path",{d:"M5 7.5L10 12.5L15 7.5",stroke:"hsl(var(--muted-foreground))",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})})})})),E&&O.length>0&&a("div",{ref:S,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:O.map(function(e,t){var r=p?p(e):(null==e?void 0:e.name)||(null==e?void 0:e.label)||String(e),n=u&&(p?p(u)===r:u===e||(null==u?void 0:u.id)&&(null==e?void 0:e.id)&&u.id===e.id);return a("div",{className:"px-3 py-2 cursor-pointer hover:bg-accent transition-colors",style:{backgroundColor:n?"hsl(var(--accent))":"transparent",color:"hsl(var(--foreground))"},onClick:function(){return z(e)},onMouseEnter:function(e){n||(e.currentTarget.style.backgroundColor="hsl(var(--accent))")},onMouseLeave:function(e){e.currentTarget.style.backgroundColor=n?"hsl(var(--accent))":"transparent"},children:r},t)})})]})});ti.displayName="Autocomplete";var ri=["value","onChange","clearable","slotProps","className","style","onOpenChange"],ni=function(){if("function"==typeof c)return c;if(c.default&&"function"==typeof c.default)return c.default;var e=c.default||c;if("function"==typeof e)return e;throw new Error("dayjs is not properly initialized. Expected a function but got: "+h(e))}(),oi=e.forwardRef(function(t,r){var n,o,i,d=t.value,c=t.onChange,p=t.clearable,u=void 0!==p&&p,f=t.slotProps,x=t.className,h=t.style,b=t.onOpenChange;v(t,ri);var y=g(e.useState(!1),2),w=y[0],k=y[1],N=g(e.useState(d?ni(d):null),2),C=N[0],E=N[1],R=e.useRef(null),L=e.useRef(null),O=e.useRef(null),T=e.useRef(null),M=g(e.useState("month"),2),S=M[0],z=M[1],j=g(e.useState(!1),2),A=j[0],D=j[1];e.useImperativeHandle(r,function(){return L.current}),e.useEffect(function(){E(d?ni(d):null)},[d]);var I=e.useCallback(function(e){R.current&&!R.current.contains(e.target)&&L.current&&!L.current.contains(e.target)&&(k(!1),D(!1),b&&b(!1))},[b]);e.useEffect(function(){if(w)return document.addEventListener("mousedown",I),function(){document.removeEventListener("mousedown",I)}},[w,I]);var W=(null==f?void 0:f.textField)||{},B=C?C.format("YYYY-MM-DD"):"";e.useEffect(function(){A&&T.current&&O.current&&setTimeout(function(){var e=T.current,t=O.current;if(e&&t){var r=e.offsetTop-t.clientHeight/2+e.clientHeight/2;t.scrollTop=r}},0)},[A]);var P=function(){for(var e=C||ni(),t=ni(e).startOf("month"),r=ni(e).endOf("month"),n=ni(t).startOf("week"),o=ni(r).endOf("week"),i=[],a=n;a.isBefore(o)||a.isSame(o);)i.push(ni(a)),a=ni(a).add(1,"day");return i}(),H=C?C.month():ni().month(),V=C?C.year():ni().year(),F=function(e){var t;E(t=e),c&&c(t),k(!1),b&&b(!1)};return l("div",{ref:R,className:De("relative",x),style:h,children:[a(It,m(m({},W),{},{ref:L,value:B||"",onClick:function(){var e=!w;k(e),b&&b(e)},readOnly:!0,placeholder:W.placeholder||"MM/DD/YYYY",style:m(m({},W.style),{},{fontSize:"0.875rem",height:(null===(n=W.style)||void 0===n?void 0:n.height)||"40px"}),InputProps:m(m({},W.InputProps),{},{style:m(m({},null===(o=W.InputProps)||void 0===o?void 0:o.style),{},{backgroundColor:null===(i=W.InputProps)||void 0===i||null===(i=i.style)||void 0===i?void 0:i.backgroundColor}),endAdornment:l("div",{className:"flex items-center gap-1",children:[u&&C&&a("div",{className:"cursor-pointer",onClick:function(e){e.stopPropagation(),E(null),c&&c(null)},style:{display:"flex",alignItems:"center",padding:"4px"},children:a("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:a("path",{d:"M12 4L4 12M4 4L12 12",stroke:"hsl(var(--muted-foreground))",strokeWidth:"2",strokeLinecap:"round"})})}),a("div",{className:"cursor-pointer",style:{padding:"4px"},onClick:function(e){e.stopPropagation();var t=!w;k(t),b&&b(t)},children:a("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",children:a("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"})})})]})})})),w&&l("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:[l("div",{className:"flex items-center justify-between mb-4",style:{color:"hsl(var(--foreground))"},children:[a("button",{type:"button",onClick:function(){var e;"year"===S?E(C?ni(C).subtract(10,"year"):ni().subtract(10,"year")):(e=C?ni(C).subtract(1,"month"):ni().subtract(1,"month"),E(e))},className:"p-1 rounded-lg hover:bg-action-hover transition-colors",style:{color:"hsl(var(--foreground))"},children:a("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",children:a("path",{d:"M12 15L7 10L12 5",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}),l("div",{className:"relative",children:[l("button",{type:"button",onClick:function(){"month"===S?D(!A):z("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"===S?"".concat(ni().month(H).format("MMMM")," ").concat(V):"".concat(V),"month"===S&&a("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",style:{transform:A?"rotate(180deg)":"rotate(0deg)",transition:"transform 0.2s"},children:a("path",{d:"M4 6L8 10L12 6",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})]}),A&&"month"===S&&a("div",{ref:O,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,t){var r=ni().year()-100+t,n=r===V;return a("button",{ref:n?T:null,type:"button",onClick:function(){var e=C?ni(C).year(r):ni().year(r).month(H);E(e),D(!1)},className:"w-full px-3 py-1.5 text-sm text-left hover:bg-action-hover transition-colors",style:{backgroundColor:n?"hsl(var(--accent))":"transparent",color:"hsl(var(--foreground))"},onMouseEnter:function(e){n||(e.currentTarget.style.backgroundColor="hsl(var(--accent))")},onMouseLeave:function(e){e.currentTarget.style.backgroundColor=n?"hsl(var(--accent))":"transparent"},children:r},r)})})]}),a("button",{type:"button",onClick:function(){var e;"year"===S?E(C?ni(C).add(10,"year"):ni().add(10,"year")):(e=C?ni(C).add(1,"month"):ni().add(1,"month"),E(e))},className:"p-1 rounded-lg hover:bg-action-hover transition-colors",style:{color:"hsl(var(--foreground))"},children:a("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",children:a("path",{d:"M8 5L13 10L8 15",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})})]}),"month"===S?l(s,{children:[a("div",{className:"grid grid-cols-7 gap-1 mb-2",children:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"].map(function(e){return a("div",{className:"text-center text-xs font-medium py-1 text-muted-foreground",children:e},e)})}),a("div",{className:"grid grid-cols-7 gap-1",children:P.map(function(e,t){var r=e.month()===H,n=e.isSame(ni(),"day"),o=C&&e.isSame(C,"day");return a("button",{type:"button",onClick:function(){return F(e)},className:De("aspect-square rounded-lg text-sm transition-colors",!r&&"opacity-30",o&&"font-semibold"),style:{backgroundColor:o?"hsl(var(--primary))":n?"hsl(var(--accent))":"transparent",color:o?"hsl(var(--primary-foreground))":"hsl(var(--foreground))",border:n&&!o?"1px solid hsl(var(--primary))":"none"},onMouseEnter:function(e){o||(e.currentTarget.style.backgroundColor="hsl(var(--accent))")},onMouseLeave:function(e){e.currentTarget.style.backgroundColor=o?"hsl(var(--primary))":n?"hsl(var(--accent))":"transparent"},children:e.date()},t)})})]}):a("div",{className:"grid grid-cols-4 gap-2",children:Array.from({length:12},function(e,t){var r=t,n=r===ni().month()&&V===ni().year(),o=C&&C.month()===r&&C.year()===V;return a("button",{type:"button",onClick:function(){var e=C?ni(C).month(r):ni().month(r).year(V);E(e),z("month")},className:"p-2 rounded-lg text-sm transition-colors",style:{backgroundColor:o?"hsl(var(--primary))":n?"hsl(var(--accent))":"transparent",color:o?"hsl(var(--primary-foreground))":"hsl(var(--foreground))"},onMouseEnter:function(e){o||(e.currentTarget.style.backgroundColor="hsl(var(--accent))")},onMouseLeave:function(e){e.currentTarget.style.backgroundColor=o?"hsl(var(--primary))":n?"hsl(var(--accent))":"transparent"},children:ni().month(r).format("MMM")},r)})})]})]})});oi.displayName="DatePicker";var ii=["anchor","open","onClose","onOpenChange","children","className","sx","PaperProps","transitionDuration","keepMounted","variant","ModalProps","SlideProps","BackdropProps"],ai=e.forwardRef(function(t,r){var n,o,i,d,c=t.anchor,p=void 0===c?"left":c,u=t.open,f=void 0!==u&&u,x=t.onClose,h=t.onOpenChange,b=t.children,y=t.className,w=t.sx,k=t.PaperProps,N=t.transitionDuration,C=void 0===N?300:N,E=t.keepMounted,R=void 0!==E&&E,L=t.variant,O=void 0===L?"temporary":L;t.ModalProps,t.SlideProps;var T=t.BackdropProps,M=v(t,ii),S=e.useRef(null);e.useImperativeHandle(r,function(){return S.current});e.useEffect(function(){h&&h(f)},[f,h]),e.useEffect(function(){if(f){var e=function(e){"Escape"===e.key&&x&&(x(e,"escapeKeyDown"),h&&h(!1))};return document.addEventListener("keydown",e),function(){document.removeEventListener("keydown",e)}}},[f,x]);var z=e.useMemo(function(){if(!w)return{rootStyles:{},paperStyles:{}};var e="function"==typeof w?w({}):w,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}},[w]),j=z.rootStyles,A=z.paperStyles,D=e.useMemo(function(){var e=null==k?void 0:k.sx;return e?"function"==typeof e?e({}):e:{}},[k]),I=function(){var e={position:"fixed",zIndex:parseInt(getComputedStyle(document.documentElement).getPropertyValue("--z-index-drawer")||"1200",10),transition:"transform ".concat(C,"ms cubic-bezier(0.4, 0, 0.2, 1)")};switch(p){case"left":return m(m({},e),{},{top:0,left:0,bottom:0,transform:f?"translateX(0)":"translateX(-100%)"});case"right":return m(m({},e),{},{top:0,right:0,bottom:0,transform:f?"translateX(0)":"translateX(100%)"});case"top":return m(m({},e),{},{top:0,left:0,right:0,width:"100%",transform:f?"translateY(0)":"translateY(-100%)"});case"bottom":return m(m({},e),{},{bottom:0,left:0,right:0,width:"100%",transform:f?"translateY(0)":"translateY(100%)"});default:return e}}();if(!f&&!R&&"permanent"!==O)return null;var W="permanent"===O,B=W||f||R;return l(s,{children:[("temporary"===O||"persistent"===O)&&B&&a("div",m({className:"fixed inset-0 bg-black/50",style:m({zIndex:parseInt(getComputedStyle(document.documentElement).getPropertyValue("--z-index-drawer")||"1200",10)-1,opacity:f?1:0,transition:"opacity ".concat(C,"ms cubic-bezier(0.4, 0, 0.2, 1)"),pointerEvents:f?"auto":"none"},null==T?void 0:T.style),onClick:function(e){"temporary"===O&&e.target===e.currentTarget&&x&&(x(e,"backdropClick"),h&&h(!1))},"aria-hidden":"true"},Object.fromEntries(Object.entries(T||{}).filter(function(e){return"style"!==g(e,1)[0]})))),a("div",m(m({ref:S,className:De("MuiDrawer-root","fixed","left"===p||"right"===p?"h-full":"w-full","top"===p||"bottom"===p?"h-auto":"w-auto",!f&&"pointer-events-none",y),style:m(m(m({},I),j),{},{display:B?"block":"none",transform:W?"translateX(0)":I.transform},M.style),role:"presentation"},Object.fromEntries(Object.entries(M).filter(function(e){var t=g(e,1)[0];return"style"!==t&&"BackdropProps"!==t}))),{},{children:a("div",{className:De("MuiDrawer-paper","MuiPaper-root","left"===p||"right"===p?"h-full":"","w-full","left"===p||"right"===p||"top"===p||"bottom"===p?"overflow-y-auto":"",null==k?void 0:k.className),style:m(m(m(m({backgroundColor:"hsl(var(--card))",boxShadow:void 0!==A.boxShadow?A.boxShadow:void 0!==D.boxShadow?D.boxShadow:void 0!==(null==k||null===(n=k.style)||void 0===n?void 0:n.boxShadow)?k.style.boxShadow:f?"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"===p||"right"===p?{height:"100%",width:(null==k||null===(o=k.style)||void 0===o?void 0:o.width)||A.width||D.width||"300px",minWidth:(null==k||null===(i=k.style)||void 0===i?void 0:i.minWidth)||A.minWidth||D.minWidth||"300px",maxWidth:(null==k||null===(d=k.style)||void 0===d?void 0:d.maxWidth)||A.maxWidth||D.maxWidth||"90vw"}:{width:"100%"}),A),D),null==k?void 0:k.style),children:b})}))]})});ai.displayName="Drawer";var li=["control","label","labelPlacement","disabled","value","className","sx"],si=e.forwardRef(function(t,r){var n=t.control,o=t.label,i=t.labelPlacement,s=void 0===i?"end":i,d=t.disabled,c=void 0!==d&&d,p=t.value,u=t.className,f=t.sx,g=v(t,li),x=e.useMemo(function(){return f?"function"==typeof f?f({}):f:{}},[f]),h="start"===s,b="top"===s,y="bottom"===s,w=e.useMemo(function(){return void 0!==p&&e.isValidElement(n)?e.cloneElement(n,m(m({},n.props),{},{value:p})):n},[n,p]);return l("label",m(m({ref:r,className:De("inline-flex items-center cursor-pointer",c&&"opacity-50 cursor-not-allowed",b&&"flex-col items-start",y&&"flex-col-reverse items-start",h&&"flex-row-reverse items-center",!b&&!y&&!h&&"items-center",u),style:x},g),{},{children:[a("span",{className:De("inline-flex items-center justify-center shrink-0",b&&"mb-1",y&&"mt-1",h&&"ml-2",!h&&!b&&!y&&"mr-2"),style:{minWidth:"20px",minHeight:"20px"},children:w}),o&&a("span",{className:De("text-sm text-foreground",c&&"text-muted-foreground opacity-50",h&&"mr-2"),children:o})]}))});si.displayName="FormControlLabel";var di=["children","component","className","sx","style","required","disabled","error","focused"],ci=e.forwardRef(function(t,r){var n=t.children,o=t.component,i=void 0===o?"label":o,s=t.className,d=t.sx,c=t.style,p=t.required,u=void 0!==p&&p,f=t.disabled,g=void 0!==f&&f,x=t.error,h=void 0!==x&&x,b=t.focused,y=void 0!==b&&b,w=v(t,di),k=e.useMemo(function(){return d?"function"==typeof d?d({}):d:{}},[d]);return l("legend"===i?"legend":"label",m(m({ref:r,className:De("block text-sm font-medium mb-1",h?"text-destructive":y?"text-primary":"text-foreground",g&&"opacity-50 cursor-not-allowed",s),style:m(m({},k),c)},w),{},{children:[n,u&&a("span",{className:"ml-1 text-destructive",children:"*"})]}))});ci.displayName="FormLabel";var pi=["children","className","sx","style","row"],ui=e.forwardRef(function(t,r){var n=t.children,o=t.className,i=t.sx,l=t.style,s=t.row,d=void 0!==s&&s,c=v(t,pi),p=e.useMemo(function(){return i?"function"==typeof i?i({}):i:{}},[i]);return a("div",m(m({ref:r,className:De("flex",d?"flex-row flex-wrap gap-4":"flex-col gap-3",o),style:m(m({},p),l)},c),{},{children:n}))});ui.displayName="FormGroup";var fi=["children","value","onChange","name","className","sx","style","disabled","row"],mi=e.createContext({value:null,onChange:null,name:null,disabled:!1}),vi=e.forwardRef(function(t,r){var n=t.children,o=t.value,i=t.onChange,l=t.name,s=t.className,d=t.sx,c=t.style,p=t.disabled,u=void 0!==p&&p,f=t.row,g=void 0!==f&&f,x=v(t,fi),h=e.useMemo(function(){return d?"function"==typeof d?d({}):d:{}},[d]),b=e.useCallback(function(e){i&&!u&&i(e)},[i,u]),y=e.useMemo(function(){return{value:o,onChange:b,name:l||"radio-group-".concat(Math.random().toString(36).substr(2,9)),disabled:u}},[o,b,l,u]);return a(mi.Provider,{value:y,children:a("div",m(m({ref:r,className:De("flex",g?"flex-row gap-4":"flex-col gap-2",u&&"opacity-50",s),style:m(m({},h),c),role:"radiogroup"},x),{},{children:n}))})});vi.displayName="RadioGroup";var gi=["className","checked","onChange","disabled","value","size","sx","style"],xi=e.forwardRef(function(t,r){var n=t.className,o=t.checked,i=t.onChange,s=t.disabled,d=t.value,c=t.size,p=void 0===c?"medium":c,u=t.sx,f=t.style,x=v(t,gi),h=g(e.useState(!1),2),b=h[0],y=h[1],w=e.useContext(mi),k=void 0!==o?o:(null==w?void 0:w.value)===d,N=void 0!==s?s:(null==w?void 0:w.disabled)||!1,C=e.useCallback(function(e){i?i(e):null!=w&&w.onChange&&w.onChange(e)},[i,w]),E=e.useMemo(function(){return u?"function"==typeof u?u({}):u:{}},[u]),R={small:18,medium:20,large:24},L=R[p]||R.medium,O=k?.5*L:0;return l("label",{className:De("relative inline-flex items-center justify-center cursor-pointer",N&&"cursor-not-allowed opacity-50",n),style:m(m({},E),f),children:[a("input",m({ref:r,type:"radio",checked:k,onChange:C,disabled:N,value:d,name:null==w?void 0:w.name,className:"sr-only"},x)),a("div",{className:De("flex items-center justify-center transition-all duration-200 border-2 rounded-full bg-transparent transition-colors",N&&"opacity-50 cursor-not-allowed",n,k||b&&!N?"border-primary":"border-input"),style:{width:"".concat(L,"px"),height:"".concat(L,"px")},onMouseEnter:function(){return!N&&y(!0)},onMouseLeave:function(){return y(!1)},children:k&&a("div",{className:"bg-primary rounded-full transition-all",style:{width:"".concat(O,"px"),height:"".concat(O,"px")}})})]})});xi.displayName="Radio";var hi=["className","style","in","timeout","children","unmountOnExit","orientation","collapsedSize"],bi=e.forwardRef(function(t,r){var n=t.className,o=t.style,i=t.in,l=void 0!==i&&i,s=t.timeout,d=void 0===s?"auto":s,c=t.children,p=t.unmountOnExit,u=void 0!==p&&p,f=t.orientation,x=void 0===f?"vertical":f,h=t.collapsedSize,b=void 0===h?"0px":h,y=v(t,hi),w=g(e.useState(l||!u),2),k=w[0],N=w[1],C=g(e.useState(function(){return l?"vertical"===x?"auto":"0px":b}),2),E=C[0],R=C[1],L=e.useRef(null),O=e.useRef(!0);if(e.useEffect(function(){if(u){if(!l){var e=setTimeout(function(){N(!1)},300);return function(){return clearTimeout(e)}}N(!0),O.current=!0}},[l,u]),e.useEffect(function(){var e="vertical"===x;if(L.current)if(O.current&&l){O.current=!1;var t=e?L.current.scrollHeight:L.current.scrollWidth;if(R(t>0?"".concat(t,"px"):e?"auto":"0px"),e){var r=setTimeout(function(){R("auto")},50);return function(){return clearTimeout(r)}}}else{O.current=!1;var n=L.current;if(l){var o=e?n.scrollHeight:n.scrollWidth;if(o>0){if(R("".concat(o,"px")),e){var i=setTimeout(function(){R("auto")},300);return function(){return clearTimeout(i)}}}else R(e?"auto":"0px")}else{var a=e?n.scrollHeight:n.scrollWidth;a>0?(R("".concat(a,"px")),requestAnimationFrame(function(){requestAnimationFrame(function(){R(b)})})):R(b)}}else if(l){var s=setTimeout(function(){if(L.current){var t=e?L.current.scrollHeight:L.current.scrollWidth;R(t>0?"".concat(t,"px"):e?"auto":"0px")}},0);return function(){return clearTimeout(s)}}},[l,b,x]),u&&!k)return null;var T="vertical"===x,M=l?"0px"===E?"auto":E:b;return a("div",m(m({ref:r,className:De("overflow-hidden transition-all",!T&&"inline-block",n),style:m(m({},T?{height:M,maxHeight:l?"none":b}:{width:M,maxWidth:l?"none":b,minWidth:0}),{},{transitionDuration:"auto"===d?"300ms":"number"==typeof d?"".concat(d,"ms"):"300ms",transitionTimingFunction:"ease-in-out"},o)},y),{},{children:a("div",{ref:L,style:T?void 0:{whiteSpace:"nowrap",display:"inline-block",width:"fit-content",minWidth:"fit-content"},children:c})}))});bi.displayName="Collapse";var yi=["className","style","children"],wi=e.forwardRef(function(e,t){var r=e.className,n=e.style,o=e.children,i=v(e,yi);return a(Tt,m(m({ref:t,variant:"body2",component:"p",color:"muted",className:r,style:m({marginBottom:"16px"},n)},i),{},{children:o}))});wi.displayName="DialogContentText";var ki=["className","style","maxWidth","fixed","disableGutters","children"],Ni=e.forwardRef(function(e,t){var r=e.className,n=e.style,o=e.maxWidth,i=void 0===o?"lg":o,l=e.fixed,s=void 0!==l&&l,d=e.disableGutters,c=void 0!==d&&d,p=e.children,u=v(e,ki),f=function(){if(!1===i)return"none";var e={xs:"444px",sm:"600px",md:"900px",lg:"1200px",xl:"1536px"};return e[i]||e.lg}();return a("div",m(m({ref:t,className:De("mx-auto",r),style:m(m(m({width:"100%",maxWidth:f},s&&{width:f}),c?{paddingLeft:0,paddingRight:0}:{paddingLeft:"16px",paddingRight:"16px"}),n)},u),{},{children:p}))});Ni.displayName="Container";var Ci=["className","style","orientation","variant","flexItem","light","textAlign","children"],Ei=e.forwardRef(function(e,t){var r=e.className,n=e.style,o=void 0===n?{}:n,i=e.orientation,s=void 0===i?"horizontal":i,d=e.variant,c=void 0===d?"fullWidth":d,p=e.flexItem,u=void 0!==p&&p,f=e.light,g=void 0!==f&&f,x=e.textAlign,h=void 0===x?"center":x,b=e.children,y=v(e,Ci),w="vertical"===s,k="inset"===c,N="middle"===c,C=null==o?void 0:o.marginLeft,E=null==o?void 0:o.marginRight;if(b){var R=C||(k||N?"16px":"0px"),L=E||(k?"0px":N?"16px":"0px");return l("div",m(m({ref:t,className:De("flex items-center",r),style:m({width:"100%",margin:"8px 0"},o)},y),{},{children:[a("div",{style:{flex:1,borderTopWidth:"1px",borderTopStyle:"solid",borderColor:g?"rgba(0, 0, 0, 0.08)":"hsl(var(--border))",marginLeft:"0px"!==R?R:void 0}}),a("div",{style:{paddingLeft:"16px",paddingRight:"16px",textAlign:h,color:"hsl(var(--muted-foreground))",fontSize:"0.875rem"},children:b}),a("div",{style:{flex:1,borderTopWidth:"1px",borderTopStyle:"solid",borderColor:g?"rgba(0, 0, 0, 0.08)":"hsl(var(--border))",marginRight:"0px"!==L?L:void 0}})]}))}var O=function(){var e={borderColor:g?"rgba(0, 0, 0, 0.08)":"hsl(var(--border))"};if(w){var t=C||(k?"16px":"8px"),r=E||(k?"16px":"8px");return m(m({},e),{},{borderLeftWidth:"1px",borderLeftStyle:"solid",height:"100%",width:"1px",marginLeft:t,marginRight:r})}var n=C||(k||N?"16px":"0px"),o=E||(k?"0px":N?"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),l=m(m({},e),{},{borderTopWidth:"1px",borderTopStyle:"solid",boxSizing:"border-box"});return u?l.width="1px":"fullWidth"===c?(l.width="100%",l.marginLeft="0px",l.marginRight="0px"):(l.width=a>0?"calc(100% - ".concat(a,"px)"):"100%","0px"!==n&&"0"!==n&&(l.marginLeft=n),"0px"!==o&&"0"!==o&&(l.marginRight=o)),l}();w||u||(void 0===o.marginTop&&void 0===O.marginTop&&(O.marginTop="8px"),void 0===o.marginBottom&&void 0===O.marginBottom&&(O.marginBottom="8px"));var T,M,S=m(m({},O),o);w||"fullWidth"!==c||u||(S.width="100%",S.marginLeft=null!==(T=o.marginLeft)&&void 0!==T?T:"0px",S.marginRight=null!==(M=o.marginRight)&&void 0!==M?M:"0px");return a("div",m({ref:t,className:De(w?"inline-block":"block",u&&"self-stretch",r),style:m({padding:0,display:w?"inline-block":"block"},S)},y))});Ei.displayName="Divider";var Ri=["className","style","src","alt","children","variant","sizes","imgProps"],Li=["color"],Oi=["color"],Ti=e.forwardRef(function(e,t){var r,n,o=e.className,i=e.style,s=e.src,d=e.alt,c=e.children,p=e.variant,u=void 0===p?"circular":p,f=e.sizes,g=e.imgProps,x=v(e,Ri),h=m({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"===u?{borderRadius:"8px"}:"square"===u?{borderRadius:"0px"}:{borderRadius:"50%"}),b="dark"===We();if(s){var y,w,k=i||{};k.color;var N=v(k,Li),C=m(m(m({},h),N),{},{borderRadius:null!==(y=null==i?void 0:i.borderRadius)&&void 0!==y?y:h.borderRadius,backgroundColor:null!==(w=null==i?void 0:i.backgroundColor)&&void 0!==w?w:h.backgroundColor,color:null!=i&&i.color?i.color:null!=i&&i.backgroundColor?b?"#000000":"#ffffff":h.color});return l("div",m(m({ref:t,className:De("relative",o),style:C},x),{},{children:[a("img",m({src:s,alt:d,sizes:f,style:{width:"100%",height:"100%",objectFit:"cover"}},g)),c&&a("div",{style:{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center"},children:c})]}))}var E=i||{};E.color;var R=v(E,Oi),L=m(m(m({},h),R),{},{borderRadius:null!==(r=null==i?void 0:i.borderRadius)&&void 0!==r?r:h.borderRadius,backgroundColor:null!==(n=null==i?void 0:i.backgroundColor)&&void 0!==n?n:h.backgroundColor,color:null!=i&&i.color?i.color:null!=i&&i.backgroundColor?b?"#000000":"#ffffff":h.color});return a("div",m(m({ref:t,className:De(o),style:L},x),{},{children:c}))});Ti.displayName="Avatar";var Mi=["className","direction","spacing","justifyContent","alignItems","flexWrap","gap","sx","style","children"],Si=e.forwardRef(function(t,r){var n=t.className,o=t.direction,i=void 0===o?"column":o,l=t.spacing,s=void 0===l?0:l,d=t.justifyContent,c=t.alignItems,p=t.flexWrap,u=t.gap,f=t.sx,g=t.style,x=t.children,h=v(t,Mi),b=void 0!==u?u:"number"==typeof s?8*s:0,y=e.useMemo(function(){return f?"function"==typeof f?f({}):f:{}},[f]),w="row"===i?"flex-row":"row-reverse"===i?"flex-row-reverse":"column-reverse"===i?"column-reverse":"flex-col",k="wrap"===p?"flex-wrap":"nowrap"===p?"flex-nowrap":"",N="flex-start"===d?"justify-start":"flex-end"===d?"justify-end":"center"===d?"justify-center":"space-between"===d?"justify-between":"space-around"===d?"justify-around":"space-evenly"===d?"justify-evenly":"",C="flex-start"===c?"items-start":"flex-end"===c?"items-end":"center"===c?"items-center":"baseline"===c?"items-baseline":"stretch"===c?"items-stretch":"",E=m(m(m({display:"flex"},b&&{gap:"".concat(b,"px")}),y),g);return a("div",m(m({ref:r,className:De(w,k,N,C,n),style:E},h),{},{children:x}))});Si.displayName="Stack";var zi=["className","position","disablePointerEvents","disableTypography","children"],ji=e.forwardRef(function(e,t){var r=e.className,n=e.position,o=void 0===n?"end":n,i=e.disablePointerEvents,l=void 0!==i&&i,s=e.disableTypography,d=void 0!==s&&s,c=e.children,p=v(e,zi);return a("div",m(m({ref:t,className:De("flex items-center","start"===o?"mr-2":"ml-2",l&&"pointer-events-none",r),style:{pointerEvents:l?"none":"auto",cursor:l?"default":"inherit"}},p),{},{children:d?c:a("span",{className:"text-sm text-muted-foreground",children:c})}))});ji.displayName="InputAdornment";var Ai=["className","elevation","square","variant","sx","style","children"],Di=e.forwardRef(function(t,r){var n=t.className,o=t.elevation,i=void 0===o?0:o,l=t.square,s=void 0!==l&&l,d=t.variant,c=void 0===d?"elevation":d,p=t.sx,u=t.style,f=t.children,g=v(t,Ai),x=e.useMemo(function(){if(!p)return{};var e=m({},"function"==typeof p?p({}):p);return void 0!==e.p&&(e.padding=Ie(e.p),delete e.p),void 0!==e.px&&(e.paddingLeft=Ie(e.px),e.paddingRight=Ie(e.px),delete e.px),void 0!==e.py&&(e.paddingTop=Ie(e.py),e.paddingBottom=Ie(e.py),delete e.py),void 0!==e.pt&&(e.paddingTop=Ie(e.pt),delete e.pt),void 0!==e.pb&&(e.paddingBottom=Ie(e.pb),delete e.pb),void 0!==e.pl&&(e.paddingLeft=Ie(e.pl),delete e.pl),void 0!==e.pr&&(e.paddingRight=Ie(e.pr),delete e.pr),void 0!==e.m&&(e.margin=Ie(e.m),delete e.m),void 0!==e.mx&&(e.marginLeft=Ie(e.mx),e.marginRight=Ie(e.mx),delete e.mx),void 0!==e.my&&(e.marginTop=Ie(e.my),e.marginBottom=Ie(e.my),delete e.my),void 0!==e.mt&&(e.marginTop=Ie(e.mt),delete e.mt),void 0!==e.mb&&(e.marginBottom=Ie(e.mb),delete e.mb),void 0!==e.ml&&(e.marginLeft=Ie(e.ml),delete e.ml),void 0!==e.mr&&(e.marginRight=Ie(e.mr),delete e.mr),void 0!==e.gap&&(e.gap=Ie(e.gap)),e},[p]),h=function(){if("outlined"===c)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,i))]||e[1]}}();return a("div",m(m({ref:r,className:De("bg-card",!s&&"rounded-lg","outlined"===c&&"border border-border",n),style:m(m(m({},h),x),u)},g),{},{children:f}))});Di.displayName="Paper";var Ii=["className","position","color","elevation","sx","style","children"],Wi=e.forwardRef(function(t,r){var n,o=t.className,i=t.position,l=void 0===i?"fixed":i,s=t.color,d=void 0===s?"default":s,c=t.elevation,p=void 0===c?4:c,u=t.sx,f=t.style,g=t.children,x=v(t,Ii),h=e.useMemo(function(){return u?"function"==typeof u?u({}):u:{}},[u]),b="fixed"===l||"absolute"===l||"sticky"===l?{top:0,left:0,right:0,width:"100%"}:{};return a("div",m(m({ref:r,className:De("primary"===d?"bg-primary text-primary-foreground":"secondary"===d?"bg-secondary text-secondary-foreground":"transparent"===d?"bg-transparent text-foreground":"bg-card text-foreground","z-app-bar","static"===l||"relative"===l?"w-full":"",o),style:m(m(m(m({position:l},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(p)))]||n[4]})),h),f)},x),{},{children:g}))});Wi.displayName="AppBar";var Bi=["className","sx","style","variant","children"],Pi=e.forwardRef(function(t,r){var n=t.className,o=t.sx,i=t.style,l=t.variant,s=void 0===l?"regular":l,d=t.children,c=v(t,Bi),p=e.useMemo(function(){return o?"function"==typeof o?o({}):o:{}},[o]),u=m(m(m({display:"flex",alignItems:"center"},"dense"===s?{minHeight:"48px",paddingLeft:"16px",paddingRight:"16px"}:{minHeight:"64px",paddingLeft:"16px",paddingRight:"16px"}),p),i);return a("div",m(m({ref:r,className:De(n),style:u},c),{},{children:d}))});Pi.displayName="Toolbar";var Hi=["className","anchorEl","open","onClose","PaperProps","anchorOrigin","transformOrigin","position","disablePortal","border","children"],Vi=["className","onClick","disabled","sx","style","children","_isFirst","_isLast","_menuBorderRadius"],Fi=["className","style","children"],qi=["className","style","children","primary","secondary"],_i=e.forwardRef(function(t,r){var n,o,i,l,s,c,p,u=t.className,f=t.anchorEl,x=t.open,h=void 0!==x&&x,b=t.onClose,y=t.PaperProps,w=t.anchorOrigin,k=void 0===w?{vertical:"bottom",horizontal:"left"}:w;t.transformOrigin;var N=t.position,C=void 0===N?"fixed":N,E=t.disablePortal,R=void 0!==E&&E,L=t.border,O=void 0!==L&&L,T=t.children,M=v(t,Hi),S=R?C:"fixed",z=e.useRef(null),j=g(e.useState({top:0,left:0}),2),A=j[0],D=j[1],I=e.useRef({top:0,left:0}),W=e.useRef((null==y||null===(n=y.style)||void 0===n?void 0:n.borderRadius)||"8px");void 0!==(null==y||null===(o=y.style)||void 0===o?void 0:o.borderRadius)&&(W.current=y.style.borderRadius);if(e.useImperativeHandle(r,function(){return z.current}),e.useLayoutEffect(function(){if(h&&f){var e=!0,t=null;if(t=requestAnimationFrame(function(){if(e)try{if(!f||!f.getBoundingClientRect||!f.isConnected)return void(e&&D({top:50,left:0}));var t=f.getBoundingClientRect();if(!t||isNaN(t.bottom)||isNaN(t.left))return void(e&&D({top:50,left:0}));if("fixed"===S){var r,n,o,i=window.innerWidth,a=window.innerHeight,l=(null===(r=z.current)||void 0===r?void 0:r.offsetWidth)||(null==y||null===(n=y.style)||void 0===n?void 0:n.minWidth)||180,s=(null===(o=z.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-s-8:t.top+(t.height-s)/2,c="left"===k.horizontal?t.left:"right"===k.horizontal?t.right-l:t.left+(t.width-l)/2;var p=16;c+l>i-p&&(c=i-l-p),c<p&&(c=p),d+s>a-p&&("bottom"===k.vertical&&(d=t.top-s-8),d+s>a-p&&(d=a-s-p)),d<p&&(d=p),e&&D({top:d,left:c})}else{for(var u=f.parentElement;u&&u!==document.body&&u.isConnected;)try{var m=window.getComputedStyle(u);if("relative"===m.position||"absolute"===m.position||"fixed"===m.position)break;u=u.parentElement}catch(e){break}var v={top:0,left:0};if(u&&u!==document.body&&u.isConnected&&u.getBoundingClientRect)try{(!(v=u.getBoundingClientRect())||isNaN(v.top)||isNaN(v.left))&&(v={top:0,left:0})}catch(e){v={top:0,left:0}}var g=0,x=0;if("bottom"===k.vertical)g=t.bottom-v.top+8;else if("top"===k.vertical){var h,b=(null===(h=z.current)||void 0===h?void 0:h.offsetHeight)||100;g=t.top-v.top-b-8}else{var w,N=(null===(w=z.current)||void 0===w?void 0:w.offsetHeight)||100;g=t.top-v.top+(t.height-N)/2}if("left"===k.horizontal)x=t.left-v.left;else if("right"===k.horizontal){var C,E,R=(null===(C=z.current)||void 0===C?void 0:C.offsetWidth)||(null==y||null===(E=y.style)||void 0===E?void 0:E.minWidth)||180;x=t.right-v.left-R}else{var L,O,T=(null===(L=z.current)||void 0===L?void 0:L.offsetWidth)||(null==y||null===(O=y.style)||void 0===O?void 0:O.minWidth)||180;x=t.left-v.left+(t.width-T)/2}e&&D({top:g,left:x})}}catch(t){e&&D({top:50,left:0})}}),"fixed"===S){var r=function(){t=requestAnimationFrame(function(){if(e){var t=null==f?void 0:f.getBoundingClientRect();if(t){var r,n,o,i=window.innerWidth,a=window.innerHeight,l=(null===(r=z.current)||void 0===r?void 0:r.offsetWidth)||(null==y||null===(n=y.style)||void 0===n?void 0:n.minWidth)||180,s=(null===(o=z.current)||void 0===o?void 0:o.offsetHeight)||100,d=16,c="bottom"===k.vertical?t.bottom+8:"top"===k.vertical?t.top-s-8:t.top+(t.height-s)/2,p="left"===k.horizontal?t.left:"right"===k.horizontal?t.right-l:t.left+(t.width-l)/2;p+l>i-d&&(p=i-l-d),p<d&&(p=d),c+s>a-d&&("bottom"===k.vertical&&(c=t.top-s-8),c+s>a-d&&(c=a-s-d)),c<d&&(c=d),D({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)}}D({top:0,left:0})},[h,f,k.vertical,k.horizontal,S,null==y||null===(i=y.style)||void 0===i?void 0:i.minWidth]),e.useLayoutEffect(function(){if(h&&f&&z.current&&"fixed"===S){var e=requestAnimationFrame(function(){!function(){try{var e=f.getBoundingClientRect();if(!e)return;var t=window.innerWidth,r=window.innerHeight,n=z.current.offsetWidth,o=z.current.offsetHeight;if(!n||!o)return;var i=16,a=0,l=0;a="bottom"===k.vertical?e.bottom+8:"top"===k.vertical?e.top-o-8:e.top+(e.height-o)/2,(l="left"===k.horizontal?e.left:"right"===k.horizontal?e.right-n:e.left+(e.width-n)/2)+n>t-i&&(l=t-n-i),l<i&&(l=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),l<0&&(l=i),a<0&&(a=i),l+n>t&&(l=Math.max(i,t-n-i)),a+o>r&&(a=Math.max(i,r-o-i));var s={top:a,left:l};(Math.abs(I.current.top-s.top)>.5||Math.abs(I.current.left-s.left)>.5)&&(I.current=s,D(s))}catch(e){}}()});return function(){e&&cancelAnimationFrame(e)}}},[h,f,k.vertical,k.horizontal,S]),e.useEffect(function(){if(h){var e=function(e){z.current&&!z.current.contains(e.target)&&f&&!f.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,f]),!h||!f)return null;var B=document.documentElement.classList.contains("dark")||window.matchMedia("(prefers-color-scheme: dark)").matches,P=a("div",m(m({ref:z,className:De("rounded-lg shadow-lg",u),style:m(m(m({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)"},O||null!=y&&null!==(l=y.style)&&void 0!==l&&l.border?{border:(null==y||null===(s=y.style)||void 0===s?void 0:s.border)||(B?"1px solid rgba(255, 255, 255, 0.1)":"1px solid hsl(var(--border))")}:{}),{},{borderRadius:(null==y||null===(c=y.style)||void 0===c?void 0:c.borderRadius)||"8px",minWidth:(null==y||null===(p=y.style)||void 0===p?void 0:p.minWidth)||180,maxWidth:"calc(100vw - 32px)",padding:"4px 0",height:"auto",overflow:"hidden",boxSizing:"border-box"},null==y?void 0:y.style),M.style)},Object.fromEntries(Object.entries(M||{}).filter(function(e){return"style"!==g(e,1)[0]}))),{},{children:function(t){if(!t)return t;var r=W.current,n=e.Children.toArray(t).filter(function(t){if(!e.isValidElement(t))return!1;var r=t.type;return"MenuItem"===(null==r?void 0:r.displayName)||"function"==typeof r&&"MenuItem"===r.name});return e.Children.map(t,function(t){if(!e.isValidElement(t))return t;var o=t.type;if(!("MenuItem"===(null==o?void 0:o.displayName)||"function"==typeof o&&"MenuItem"===o.name))return t;var i=n.findIndex(function(e){return e===t}),a=0===i,l=i===n.length-1;return e.cloneElement(t,m(m({},t.props),{},{_isFirst:a,_isLast:l,_menuBorderRadius:r}))})}(T)}));return R?P:"undefined"!=typeof document?d(P,document.body):null});_i.displayName="Menu";var Gi=e.forwardRef(function(t,r){var n=t.className,o=t.onClick,i=t.disabled,l=void 0!==i&&i,s=t.sx,d=t.style,c=t.children,p=t._isFirst,u=t._isLast,f=t._menuBorderRadius,x=v(t,Vi),h=g(e.useState(!1),2),b=h[0],y=h[1],w=e.useMemo(function(){return s?"function"==typeof s?s({}):s:{}},[s]),k=16,N=12,C=m(m({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:l?"not-allowed":"pointer",fontSize:"0.875rem",color:l?"#666666":"#000000",backgroundColor:b&&!l?"hsl(var(--accent))":"transparent",opacity:l?.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:p?f:0,borderTopRightRadius:p?f:0,borderBottomLeftRadius:u?f:0,borderBottomRightRadius:u?f:0},w),d);return a("div",m(m({ref:r,role:"menuitem",tabIndex:l?-1:0,"aria-disabled":l,className:De("focus:outline-none focus:bg-accent focus:text-accent-foreground",n),style:m(m({},C),{},{position:"relative"}),onClick:function(e){l||o&&o(e)},onMouseDown:function(e){l||(e.preventDefault(),e.stopPropagation())},onKeyDown:function(e){l||"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),e.stopPropagation(),o&&o(e))},onMouseEnter:function(){return y(!0)},onMouseLeave:function(){return y(!1)}},x),{},{children:c}))});Gi.displayName="MenuItem";var Ui=e.forwardRef(function(e,t){var r=e.className,n=e.style,o=e.children,i=v(e,Fi);return a("div",m(m({ref:t,className:De("flex items-center justify-center",r),style:m({minWidth:"40px",marginRight:"8px",color:"inherit",fontSize:"1.25rem"},n)},i),{},{children:o}))});Ui.displayName="MenuItemIcon";var Yi=e.forwardRef(function(e,t){var r=e.className,n=e.style,o=e.children,i=e.primary,d=e.secondary,c=v(e,qi),p=void 0!==i?i:o,u=null!=d;return a("div",m(m({ref:t,className:De("flex-1",r),style:m({fontSize:"0.875rem",lineHeight:"1.5",display:"flex",alignItems:"center",width:"100%",textAlign:"left",color:"#000000",minHeight:"1.5em",boxSizing:"border-box"},n)},c),{},{children:u?l(s,{children:[a("div",{style:{fontSize:"0.875rem",lineHeight:"1.5",color:"#000000",textAlign:"left",display:"block"},children:p}),a("div",{style:{fontSize:"0.75rem",color:"#666666",marginTop:"2px",display:"block"},children:d})]}):a("span",{style:{color:"#000000",display:"inline-block",width:"100%"},children:p||""})}))});Yi.displayName="MenuItemText";var $i=["className","size","sx","style","border","verticalDivider","children"],Ki=["className","component","sx","style","children"],Xi=["className","sx","style","children"],Zi=["className","sx","style","children"],Ji=["className","sx","style","children","hover","selected"],Qi=["className","align","padding","size","scope","sx","style","children","colSpan","rowSpan"],ea=e.createContext({verticalDivider:!1}),ta=e.forwardRef(function(t,r){var n=t.className,o=t.size,i=void 0===o?"medium":o,l=t.sx,s=t.style,d=t.border,c=void 0!==d&&d,p=t.verticalDivider,u=void 0!==p&&p,f=t.children,g=v(t,$i),x=e.useMemo(function(){return l?"function"==typeof l?l({}):l:{}},[l]);return a(ea.Provider,{value:{verticalDivider:u},children:a("table",m(m({ref:r,className:De("w-full",n),style:m(m(m(m({borderCollapse:"separate",borderSpacing:0},c&&{border:"1px solid hsl(var(--border))"}),{small:{fontSize:"0.875rem"},medium:{fontSize:"1rem"}}[i]),x),s)},g),{},{children:f}))})});ta.displayName="Table";var ra=e.forwardRef(function(t,r){var n=t.className,o=t.component,i=t.sx,l=t.style,s=t.children,d=v(t,Ki),c=e.useMemo(function(){return i?"function"==typeof i?i({}):i:{}},[i]);return a(o||"div",m(m({ref:r,className:De("relative",n),style:m(m({},c),l)},d),{},{children:s}))});ra.displayName="TableContainer";var na=e.forwardRef(function(t,r){var n=t.className,o=t.sx,i=t.style,l=t.children,s=v(t,Xi),d=e.useMemo(function(){return o?"function"==typeof o?o({}):o:{}},[o]);return a("thead",m(m({ref:r,className:De(n),style:m(m({},d),i)},s),{},{children:l}))});na.displayName="TableHead";var oa=e.forwardRef(function(t,r){var n=t.className,o=t.sx,i=t.style,l=t.children,s=v(t,Zi),d=e.useMemo(function(){return o?"function"==typeof o?o({}):o:{}},[o]);return a("tbody",m(m({ref:r,className:De(n),style:m(m({},d),i)},s),{},{children:l}))});oa.displayName="TableBody";var ia=e.forwardRef(function(t,r){var n=t.className,o=t.sx,i=t.style,l=t.children,s=t.hover,d=t.selected,c=v(t,Ji),p=e.useMemo(function(){return o?"function"==typeof o?o({}):o:{}},[o]);return a("tr",m(m({ref:r,className:De(s&&"hover:bg-accent",d&&"bg-accent",n),style:m(m({},p),i)},c),{},{children:l}))});ia.displayName="TableRow";var aa=e.forwardRef(function(t,r){var n=t.className,o=t.align,i=void 0===o?"inherit":o,l=t.padding,s=void 0===l?"normal":l,d=t.size,c=void 0===d?"medium":d,p=t.scope,u=t.sx,f=t.style,g=t.children,x=t.colSpan,h=t.rowSpan,b=v(t,Qi),y=e.useMemo(function(){return u?"function"==typeof u?u({}):u:{}},[u]),w={none:"0",checkbox:"0 0 0 4px",normal:"16px",small:"8px"},k={small:{padding:"6px 8px",fontSize:"0.875rem"},medium:{padding:w[s]||w.normal,fontSize:"1rem"}},N=e.useContext(ea).verticalDivider;return a(p?"th":"td",m(m({ref:r,scope:p,colSpan:x,rowSpan:h,className:De("border-b border-border",N&&"border-r border-border last:border-r-0",n),style:m(m(m(m(m({},k[c]),{left:{textAlign:"left"},center:{textAlign:"center"},right:{textAlign:"right"},inherit:{}}[i]),N&&{borderRight:"1px solid hsl(var(--border))"}),y),f)},b),{},{children:g}))});aa.displayName="TableCell";var la=["className","value","selected","onChange","disabled","size","sx","style","children","color"],sa=["backgroundColor","color","borderColor"],da=["className","value","exclusive","onChange","size","sx","style","children"],ca=e.forwardRef(function(t,r){var n=t.className,o=t.value,i=t.selected,l=void 0!==i&&i,s=t.onChange,d=t.disabled,c=void 0!==d&&d,p=t.size,u=void 0===p?"medium":p,f=t.sx,g=t.style,x=t.children,h=t.color,b=v(t,la);We();var y=e.useMemo(function(){return f?"function"==typeof f?f({}):f:{}},[f]),w=m(m({},{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"}}[u]),{},{border:"1px solid hsl(var(--border))",borderRadius:"8px",textTransform:"none",fontWeight:400}),k=g||{};k.backgroundColor,k.color,k.borderColor;var N=v(k,sa),C=l?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))"},E=m(m(m(m({},w),y),N),C);return a("button",m(m({ref:r,type:"button",className:De("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:E,onClick:function(e){c||s&&s(e,o)},disabled:c,"aria-pressed":l,onMouseEnter:function(e){c||l||(e.currentTarget.style.backgroundColor="hsl(var(--accent) / 0.3)")},onMouseLeave:function(e){c||l||(e.currentTarget.style.backgroundColor="transparent")}},b),{},{children:x}))});ca.displayName="ToggleButton";var pa=e.forwardRef(function(t,r){var n=t.className,o=t.value,i=t.exclusive,l=void 0!==i&&i,s=t.onChange,d=t.size,c=void 0===d?"medium":d,p=t.sx,u=t.style,f=t.children,g=v(t,da),h=e.useMemo(function(){return p?"function"==typeof p?p({}):p:{}},[p]),b=function(e,t){if(s)if(l)s(e,t===o?null:t);else{var r=Array.isArray(o)?o:[],n=r.indexOf(t),i=x(r);-1===n?i.push(t):i.splice(n,1),s(e,i)}},y=e.Children.toArray(f).map(function(t,r){if(e.isValidElement(t)&&t.type===ca){var n=t.props.value,i=l?o===n:Array.isArray(o)&&o.includes(n);return e.cloneElement(t,{selected:i,onChange:b,size:c,style:m({borderRadius:"8px"},t.props.style)})}return t});return a("div",m(m({ref:r,className:De("inline-flex gap-2",n),style:m(m({},h),u),role:"group"},g),{},{children:y}))});pa.displayName="ToggleButtonGroup";var ua=function(e){var t=g(o(!1),2),r=t[0],n=t[1];return i(function(){var t=e;e.startsWith("@media")&&(t=e.replace("@media","").trim());var r=window.matchMedia(t);n(r.matches);var o=function(e){n(e.matches)};return r.addEventListener("change",o),function(){r.removeEventListener("change",o)}},[e]),r},fa=["className","container","item","xs","sm","md","lg","xl","spacing","sx","style","children"],ma=e.forwardRef(function(t,r){var n=t.className,o=t.container,i=void 0!==o&&o,l=t.item,s=void 0!==l&&l,d=t.xs,c=t.sm,p=t.md,u=t.lg,f=t.xl,g=t.spacing,x=t.sx,h=t.style,b=t.children,y=v(t,fa),w=(ua("@media (max-width:599px)"),ua("@media (min-width:600px) and (max-width:959px)")),k=ua("@media (min-width:960px) and (max-width:1279px)"),N=ua("@media (min-width:1280px) and (max-width:1919px)"),C=ua("@media (min-width:1920px)"),E=e.useMemo(function(){return x?"function"==typeof x?x({}):x:{}},[x]),R=function(e){return"number"==typeof e?"".concat(8*e,"px"):"0px"},L=C&&void 0!==f?f:N&&void 0!==u?u:k&&void 0!==p?p:w&&void 0!==c?c:d,O=m(m(m(m(m({},function(){if(!i)return{};var e=R(g||0);return{display:"flex",flexWrap:"wrap",width:"100%",marginLeft:g?"-".concat(e):void 0,marginTop:g?"-".concat(e):void 0}}()),function(){if(!s)return{};if(void 0===L)return{};var e=L/12*100;return{flexBasis:"".concat(e,"%"),maxWidth:"".concat(e,"%"),flexGrow:0,flexShrink:0,boxSizing:"border-box"}}()),function(){if(!s)return{};if(!g)return{};var e=R(g);return{paddingLeft:e,paddingTop:e}}()),E),h);return a("div",m(m({ref:r,className:De(n),style:O},y),{},{children:b}))});ma.displayName="Grid";var va=["children","className","required","disabled","error","focused","shrink","sx","style"],ga=e.forwardRef(function(t,r){var n=t.children,o=t.className,i=t.required,s=void 0!==i&&i,d=t.disabled,c=void 0!==d&&d,p=t.error,u=void 0!==p&&p,f=t.focused,g=void 0!==f&&f;t.shrink;var x=t.sx,h=t.style,b=v(t,va),y=e.useMemo(function(){return x?"function"==typeof x?x({}):x:{}},[x]);return l("label",m(m({ref:r,className:De("block text-sm font-medium mb-2 text-foreground",u?"text-destructive":g?"text-primary":"text-foreground",c&&"opacity-50",o),style:m(m({},y),h)},b),{},{children:[n,s&&a("span",{className:"ml-1 text-destructive",children:"*"})]}))});ga.displayName="InputLabel";var xa=["value","onChange","onChangeCommitted","min","max","step","disabled","orientation","className","style","sx","aria-label","aria-labelledby","aria-valuetext"],ha=e.forwardRef(function(t,r){var n,o,i,s,d,c,p,u,f,x,h,b,y,w,k,N,C,E,R,L,O,T,M,S,z,j,A=t.value,D=t.onChange,I=t.onChangeCommitted,W=t.min,B=void 0===W?0:W,P=t.max,H=void 0===P?100:P,V=t.step,F=void 0===V?1:V,q=t.disabled,_=void 0!==q&&q,G=t.orientation,U=void 0===G?"horizontal":G,Y=t.className,$=t.style,K=t.sx,X=t["aria-label"],Z=t["aria-labelledby"],J=t["aria-valuetext"],Q=v(t,xa),ee=e.useRef(null),te=e.useRef(!1),re=g(e.useState(A),2),ne=re[0],oe=re[1],ie=e.useMemo(function(){if(!K)return{container:{}};var e="function"==typeof K?K({}):K,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},[K,ne]);e.useEffect(function(){te.current||oe(A)},[A]);var ae,le,se="vertical"===U,de=Math.max(0,Math.min(1,(ne-B)/(H-B))),ce=function(e){te.current&&(e.preventDefault(),me(e))},pe=function(e){te.current&&(e.preventDefault(),me(e.touches[0]))},ue=function(){te.current&&I&&I(null,ne),te.current=!1,document.removeEventListener("mousemove",ce,{capture:!0}),document.removeEventListener("mouseup",ue,{capture:!0})},fe=function(){te.current&&I&&I(null,ne),te.current=!1,document.removeEventListener("touchmove",pe,{capture:!0}),document.removeEventListener("touchend",fe,{capture:!0})},me=function(e){if(ee.current){var t=ee.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*(H-B)+B),i=Math.max(B,Math.min(H,o));oe(i),D&&D(null,i)}else{var a=e.clientX-t.left,l=(a=Math.max(0,Math.min(t.width,a)))/t.width,s=Math.round(l*(H-B)+B),d=Math.max(B,Math.min(H,s));oe(d),D&&D(null,d)}}},ve=m({},se?{width:"100%",height:"100%",borderRadius:(null===(n=ie.rail)||void 0===n?void 0:n.borderRadius)||"10px",backgroundColor:(null===(o=ie.rail)||void 0===o?void 0:o.backgroundColor)||"hsl(var(--muted))",border:(null===(i=ie.rail)||void 0===i?void 0:i.border)||"none",position:"relative",zIndex:0}:{width:"100%",height:(null===(s=ie.rail)||void 0===s?void 0:s.height)||"4px",borderRadius:(null===(d=ie.rail)||void 0===d?void 0:d.borderRadius)||"2px",backgroundColor:(null===(c=ie.rail)||void 0===c?void 0:c.backgroundColor)||"hsl(var(--muted))",border:(null===(p=ie.rail)||void 0===p?void 0:p.border)||"none",position:"relative",zIndex:0}),ge=m({},se?{position:"absolute",bottom:0,left:0,width:"100%",height:"".concat(100*de,"%"),borderRadius:(null===(u=ie.track)||void 0===u?void 0:u.borderRadius)||"10px",backgroundColor:(null===(f=ie.track)||void 0===f?void 0:f.backgroundColor)||"hsl(var(--primary))",display:void 0!==(null===(ae=ie.track)||void 0===ae?void 0:ae.display)?"function"==typeof ie.track.display?ie.track.display(ne)?"block":"none":ie.track.display:se&&0===ne?"none":"block",border:(null===(x=ie.track)||void 0===x?void 0:x.border)||"none",zIndex:1,pointerEvents:"none"}:{position:"absolute",top:"50%",left:0,transform:"translateY(-50%)",width:"".concat(100*de,"%"),height:(null===(h=ie.track)||void 0===h?void 0:h.height)||"4px",borderRadius:(null===(b=ie.track)||void 0===b?void 0:b.borderRadius)||"2px",backgroundColor:(null===(y=ie.track)||void 0===y?void 0:y.backgroundColor)||"hsl(var(--primary))",border:(null===(w=ie.track)||void 0===w?void 0:w.border)||"none",zIndex:1,pointerEvents:"none"}),xe=m({},se?{position:"absolute",left:"50%",bottom:"".concat(100*de,"%"),transform:(null===(k=ie.thumb)||void 0===k?void 0:k.transform)||"translateX(-50%) translateY(50%)",width:(null===(N=ie.thumb)||void 0===N?void 0:N.width)||20,height:(null===(C=ie.thumb)||void 0===C?void 0:C.height)||2,backgroundColor:(null===(E=ie.thumb)||void 0===E?void 0:E.backgroundColor)||"#ffffff",boxShadow:(null===(R=ie.thumb)||void 0===R?void 0:R.boxShadow)||"0 0 4px rgba(0, 0, 0, 0.3)",borderRadius:(null===(L=ie.thumb)||void 0===L?void 0:L.borderRadius)||"1px",marginBottom:(null===(O=ie.thumb)||void 0===O?void 0:O.marginBottom)||"-4px",display:void 0!==(null===(le=ie.thumb)||void 0===le?void 0:le.display)?"function"==typeof ie.thumb.display?ie.thumb.display(ne)?"block":"none":ie.thumb.display:se&&ne<=3?"none":"block",cursor:_?"default":"pointer",zIndex:2,pointerEvents:"auto"}:{position:"absolute",top:"50%",left:"".concat(100*de,"%"),transform:"translate(-50%, -50%)",width:(null===(T=ie.thumb)||void 0===T?void 0:T.width)||16,height:(null===(M=ie.thumb)||void 0===M?void 0:M.height)||16,backgroundColor:(null===(S=ie.thumb)||void 0===S?void 0:S.backgroundColor)||"hsl(var(--primary))",boxShadow:(null===(z=ie.thumb)||void 0===z?void 0:z.boxShadow)||"0 2px 4px rgba(0,0,0,0.2)",borderRadius:(null===(j=ie.thumb)||void 0===j?void 0:j.borderRadius)||"50%",border:"2px solid hsl(var(--background))",cursor:_?"default":"pointer",zIndex:2,pointerEvents:"auto"}),he=e.useId(),be=void 0!==ne?ne:A;return l("div",m(m({ref:ee,role:"slider",id:he,"aria-label":X,"aria-labelledby":Z,"aria-valuemin":B,"aria-valuemax":H,"aria-valuenow":be,"aria-valuetext":J||String(be),"aria-orientation":U,"aria-disabled":_,tabIndex:_?-1:0,className:De("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:m(m(m(m({},se?{height:"100%",width:"100%"}:{}),ie.container),$),{},{pointerEvents:_?"none":"auto",touchAction:_?"auto":"none",zIndex:1}),onMouseDown:function(e){_||(e.preventDefault(),e.stopPropagation(),te.current=!0,me(e),document.addEventListener("mousemove",ce,{capture:!0}),document.addEventListener("mouseup",ue,{capture:!0}))},onTouchStart:function(e){_||(e.preventDefault(),e.stopPropagation(),te.current=!0,me(e.touches[0]),document.addEventListener("touchmove",pe,{capture:!0,passive:!1}),document.addEventListener("touchend",fe,{capture:!0}))},onKeyDown:function(e){if(!_){var t=be,r=F||1;"horizontal"===U?"ArrowRight"===e.key||"ArrowUp"===e.key?(e.preventDefault(),t=Math.min(H,be+r)):"ArrowLeft"===e.key||"ArrowDown"===e.key?(e.preventDefault(),t=Math.max(B,be-r)):"Home"===e.key?(e.preventDefault(),t=B):"End"===e.key&&(e.preventDefault(),t=H):"ArrowUp"===e.key?(e.preventDefault(),t=Math.min(H,be+r)):"ArrowDown"===e.key?(e.preventDefault(),t=Math.max(B,be-r)):"Home"===e.key?(e.preventDefault(),t=B):"End"===e.key&&(e.preventDefault(),t=H),t!==be&&(oe(t),D&&D(t))}}},Q),{},{children:[a("div",{style:ve}),a("div",{style:ge}),a("div",{style:xe,onMouseEnter:function(e){var t;!_&&null!==(t=ie.thumb)&&void 0!==t&&t["&:hover"]&&(e.currentTarget.style.boxShadow=ie.thumb["&:hover"].boxShadow||e.currentTarget.style.boxShadow)},onMouseLeave:function(e){var t;e.currentTarget.style.boxShadow=(null===(t=ie.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)")}})]}))});ha.displayName="Slider";var ba=["className","sx","style","children","component"],ya=e.forwardRef(function(t,r){var n=t.className,o=t.sx,i=t.style,l=t.children,s=t.component,d=void 0===s?"div":s,c=v(t,ba),p=d,u=e.useMemo(function(){if(!o)return{};var e=m({},"function"==typeof o?o({}):o);if(void 0!==e.p&&(e.padding=Ie(e.p),delete e.p),void 0!==e.px&&(e.paddingLeft=Ie(e.px),e.paddingRight=Ie(e.px),delete e.px),void 0!==e.py&&(e.paddingTop=Ie(e.py),e.paddingBottom=Ie(e.py),delete e.py),void 0!==e.pt&&(e.paddingTop=Ie(e.pt),delete e.pt),void 0!==e.pb&&(e.paddingBottom=Ie(e.pb),delete e.pb),void 0!==e.pl&&(e.paddingLeft=Ie(e.pl),delete e.pl),void 0!==e.pr&&(e.paddingRight=Ie(e.pr),delete e.pr),void 0!==e.m&&(e.margin=Ie(e.m),delete e.m),void 0!==e.mx&&(e.marginLeft=Ie(e.mx),e.marginRight=Ie(e.mx),delete e.mx),void 0!==e.my&&(e.marginTop=Ie(e.my),e.marginBottom=Ie(e.my),delete e.my),void 0!==e.mt&&(e.marginTop=Ie(e.mt),delete e.mt),void 0!==e.mb&&(e.marginBottom=Ie(e.mb),delete e.mb),void 0!==e.ml&&(e.marginLeft=Ie(e.ml),delete e.ml),void 0!==e.mr&&(e.marginRight=Ie(e.mr),delete e.mr),void 0!==e.gap&&(e.gap=Ie(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},[o]),f=m(m({},u),i),g="flex"===u.display?"flex":"",x="column"===u.flexDirection?"flex-col":"",h="center"===u.alignItems?"items-center":"",b="space-between"===u.justifyContent?"justify-between":"center"===u.justifyContent?"justify-center":"";return a(p,m(m({ref:r,className:De(g,x,h,b,n),style:f},c),{},{children:l}))});ya.displayName="Box";export{Lr as Accordion,Tr as AccordionDetails,Or as AccordionSummary,zr as Alert,Wi as AppBar,ti as Autocomplete,Ti as Avatar,ya as Box,nt as Button,Ge as Card,Ze as CardActionArea,Ke as CardContent,$e as CardDescription,Xe as CardFooter,Ue as CardHeader,Ye as CardTitle,or as Checkbox,zt as Chip,bi as Collapse,Ni as Container,oi as DatePicker,gt as Dialog,Nt as DialogActions,xt as DialogContent,wi as DialogContentText,kt as DialogDescription,yt as DialogFooter,bt as DialogHeader,wt as DialogTitle,Ei as Divider,ai as Drawer,rr as FormControl,si as FormControlLabel,ui as FormGroup,ci as FormLabel,ma as Grid,Rt as IconButton,ji as InputAdornment,ga as InputLabel,mr as List,vr as ListItem,br as ListItemAvatar,hr as ListItemButton,gr as ListItemIcon,xr as ListItemText,_i as Menu,Gi as MenuItem,Ui as MenuItemIcon,Yi as MenuItemText,Di as Paper,xi as Radio,vi as RadioGroup,er as Select,tr as SelectMenuItem,ha as Slider,Si as Stack,Hr as Tab,ta as Table,oa as TableBody,aa as TableCell,ra as TableContainer,na as TableHead,ia as TableRow,Pr as Tabs,It as TextField,ca as ToggleButton,pa as ToggleButtonGroup,Pi as Toolbar,Qo as Tooltip,Tt as Typography};
|
|
9
9
|
//# sourceMappingURL=index.esm.js.map
|