import{G as H,H as J,_ as F,D as q,b as u,I as B,J as T,E as K}from"./OdysseyThemeProvider-Bh0Bu-2o.js";const N=["ownerState"],Q=["variants"],U=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function X(e){return Object.keys(e).length===0}function Y(e){return typeof e=="string"&&e.charCodeAt(0)>96}function A(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function E(e,o){return o&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${o}{${String(e.styles)}}`),e}const Z=H(),g=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function x({defaultTheme:e,theme:o,themeId:s}){return X(o)?e:o[s]||o}function z(e){return e?(o,s)=>s[e]:null}function R(e,o,s){let{ownerState:a}=o,p=F(o,N);const i=typeof e=="function"?e(u({ownerState:a},p)):e;if(Array.isArray(i))return i.flatMap(l=>R(l,u({ownerState:a},p),s));if(i&&typeof i=="object"&&Array.isArray(i.variants)){const{variants:l=[]}=i;let r=F(i,Q);return l.forEach(t=>{let d=!0;if(typeof t.props=="function"?d=t.props(u({ownerState:a},p,a)):Object.keys(t.props).forEach(f=>{(a==null?void 0:a[f])!==t.props[f]&&p[f]!==t.props[f]&&(d=!1)}),d){Array.isArray(r)||(r=[r]);const f=typeof t.style=="function"?t.style(u({ownerState:a},p,a)):t.style;r.push(s?E(T(f),s):f)}}),r}return s?E(T(i),s):i}function te(e={}){const{themeId:o,defaultTheme:s=Z,rootShouldForwardProp:a=A,slotShouldForwardProp:p=A}=e,i=l=>K(u({},l,{theme:x(u({},l,{defaultTheme:s,themeId:o}))}));return i.__mui_systemSx=!0,(l,C={})=>{J(l,n=>n.filter(m=>!(m!=null&&m.__mui_systemSx)));const{name:r,slot:t,skipVariantsResolver:d,skipSx:f,overridesResolver:b=z(g(t))}=C,V=F(C,U),W=r&&r.startsWith("Mui")||t?"components":"custom",D=d!==void 0?d:t&&t!=="Root"&&t!=="root"||!1,M=f||!1;let $,w=A;t==="Root"||t==="root"?w=a:t?w=p:Y(l)&&(w=void 0);const O=q(l,u({shouldForwardProp:w,label:$},V)),j=n=>typeof n=="function"&&n.__emotion_real!==n||B(n)?m=>{const y=x({theme:m.theme,defaultTheme:s,themeId:o});return R(n,u({},m,{theme:y}),y.modularCssLayers?W:void 0)}:n,k=(n,...m)=>{let y=j(n);const v=m?m.map(j):[];r&&b&&v.push(h=>{const c=x(u({},h,{defaultTheme:s,themeId:o}));if(!c.components||!c.components[r]||!c.components[r].styleOverrides)return null;const S=c.components[r].styleOverrides,_={};return Object.entries(S).forEach(([I,G])=>{_[I]=R(G,u({},h,{theme:c}),c.modularCssLayers?"theme":void 0)}),b(h,_)}),r&&!D&&v.push(h=>{var c;const S=x(u({},h,{defaultTheme:s,themeId:o})),_=S==null||(c=S.components)==null||(c=c[r])==null?void 0:c.variants;return R({variants:_},u({},h,{theme:S}),S.modularCssLayers?"theme":void 0)}),M||v.push(i);const L=v.length-m.length;if(Array.isArray(n)&&L>0){const h=new Array(L).fill("");y=[...n,...h],y.raw=[...n.raw,...h]}const P=O(y,...v);return l.muiName&&(P.muiName=l.muiName),P};return O.withConfig&&(k.withConfig=O.withConfig),k}}export{te as c,A as s};
