UNPKG

@wandelbots/wandelbots-js-react-components

Version:

React UI toolkit for building applications on top of the Wandelbots platform

51 lines • 619 kB
"use strict";var Qf=Object.create;var Hs=Object.defineProperty;var Xf=Object.getOwnPropertyDescriptor;var Zf=Object.getOwnPropertyNames;var eg=Object.getPrototypeOf,tg=Object.prototype.hasOwnProperty;var rg=(e,t,r)=>t in e?Hs(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var ng=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of Zf(t))!tg.call(e,a)&&a!==r&&Hs(e,a,{get:()=>t[a],enumerable:!(n=Xf(t,a))||n.enumerable});return e};var qs=(e,t,r)=>(r=e!=null?Qf(eg(e)):{},ng(t||!e||!e.__esModule?Hs(r,"default",{value:e,enumerable:!0}):r,e));var Vn=(e,t,r)=>rg(e,typeof t!="symbol"?t+"":t,r);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const ee=require("react"),St=require("@react-three/drei"),wc=require("@react-three/fiber"),vt=require("three"),ag=require("three-stdlib"),J=require("@mui/material"),Me=require("mobx-react-lite"),Ee=require("react-i18next"),og=require("i18next"),sg=require("i18next-browser-languagedetector"),g=require("prop-types"),ig=require("@emotion/react"),lg=require("@emotion/styled"),Be=require("mobx"),Sl=require("lodash-es"),br=require("@wandelbots/nova-js"),En=require("@mui/icons-material"),cg=require("react-error-boundary");function Ah(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const B=Ah(ee),ke=Ah(vt);function ug(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ua={exports:{}},In={};/** * @license React * react-jsx-runtime.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var Cc;function dg(){if(Cc)return In;Cc=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function r(n,a,o){var s=null;if(o!==void 0&&(s=""+o),a.key!==void 0&&(s=""+a.key),"key"in a){o={};for(var i in a)i!=="key"&&(o[i]=a[i])}else o=a;return a=o.ref,{$$typeof:e,type:n,key:s,ref:a!==void 0?a:null,props:o}}return In.Fragment=t,In.jsx=r,In.jsxs=r,In}var Mn={};/** * @license React * react-jsx-runtime.development.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var Pc;function hg(){return Pc||(Pc=1,process.env.NODE_ENV!=="production"&&function(){function e(q){if(q==null)return null;if(typeof q=="function")return q.$$typeof===y?null:q.displayName||q.name||null;if(typeof q=="string")return q;switch(q){case m:return"Fragment";case x:return"Profiler";case b:return"StrictMode";case P:return"Suspense";case w:return"SuspenseList";case F:return"Activity"}if(typeof q=="object")switch(typeof q.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),q.$$typeof){case f:return"Portal";case O:return(q.displayName||"Context")+".Provider";case _:return(q._context.displayName||"Context")+".Consumer";case C:var X=q.render;return q=q.displayName,q||(q=X.displayName||X.name||"",q=q!==""?"ForwardRef("+q+")":"ForwardRef"),q;case A:return X=q.displayName||null,X!==null?X:e(q.type)||"Memo";case E:X=q._payload,q=q._init;try{return e(q(X))}catch{}}return null}function t(q){return""+q}function r(q){try{t(q);var X=!1}catch{X=!0}if(X){X=console;var he=X.error,Pe=typeof Symbol=="function"&&Symbol.toStringTag&&q[Symbol.toStringTag]||q.constructor.name||"Object";return he.call(X,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",Pe),t(q)}}function n(q){if(q===m)return"<>";if(typeof q=="object"&&q!==null&&q.$$typeof===E)return"<...>";try{var X=e(q);return X?"<"+X+">":"<...>"}catch{return"<...>"}}function a(){var q=T.A;return q===null?null:q.getOwner()}function o(){return Error("react-stack-top-frame")}function s(q){if(z.call(q,"key")){var X=Object.getOwnPropertyDescriptor(q,"key").get;if(X&&X.isReactWarning)return!1}return q.key!==void 0}function i(q,X){function he(){te||(te=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",X))}he.isReactWarning=!0,Object.defineProperty(q,"key",{get:he,configurable:!0})}function l(){var q=e(this.type);return Z[q]||(Z[q]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),q=this.props.ref,q!==void 0?q:null}function c(q,X,he,Pe,ze,xe,it,tt){return he=xe.ref,q={$$typeof:p,type:q,key:X,props:xe,_owner:ze},(he!==void 0?he:null)!==null?Object.defineProperty(q,"ref",{enumerable:!1,get:l}):Object.defineProperty(q,"ref",{enumerable:!1,value:null}),q._store={},Object.defineProperty(q._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(q,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(q,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:it}),Object.defineProperty(q,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:tt}),Object.freeze&&(Object.freeze(q.props),Object.freeze(q)),q}function u(q,X,he,Pe,ze,xe,it,tt){var ye=X.children;if(ye!==void 0)if(Pe)if(V(ye)){for(Pe=0;Pe<ye.length;Pe++)d(ye[Pe]);Object.freeze&&Object.freeze(ye)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else d(ye);if(z.call(X,"key")){ye=e(q);var Q=Object.keys(X).filter(function(ce){return ce!=="key"});Pe=0<Q.length?"{key: someKey, "+Q.join(": ..., ")+": ...}":"{key: someKey}",le[ye+Pe]||(Q=0<Q.length?"{"+Q.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX: let props = %s; <%s {...props} /> React keys must be passed directly to JSX without using spread: let props = %s; <%s key={someKey} {...props} />`,Pe,ye,Q,ye),le[ye+Pe]=!0)}if(ye=null,he!==void 0&&(r(he),ye=""+he),s(X)&&(r(X.key),ye=""+X.key),"key"in X){he={};for(var oe in X)oe!=="key"&&(he[oe]=X[oe])}else he=X;return ye&&i(he,typeof q=="function"?q.displayName||q.name||"Unknown":q),c(q,ye,xe,ze,a(),he,it,tt)}function d(q){typeof q=="object"&&q!==null&&q.$$typeof===p&&q._store&&(q._store.validated=1)}var h=ee,p=Symbol.for("react.transitional.element"),f=Symbol.for("react.portal"),m=Symbol.for("react.fragment"),b=Symbol.for("react.strict_mode"),x=Symbol.for("react.profiler"),_=Symbol.for("react.consumer"),O=Symbol.for("react.context"),C=Symbol.for("react.forward_ref"),P=Symbol.for("react.suspense"),w=Symbol.for("react.suspense_list"),A=Symbol.for("react.memo"),E=Symbol.for("react.lazy"),F=Symbol.for("react.activity"),y=Symbol.for("react.client.reference"),T=h.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,z=Object.prototype.hasOwnProperty,V=Array.isArray,N=console.createTask?console.createTask:function(){return null};h={"react-stack-bottom-frame":function(q){return q()}};var te,Z={},ae=h["react-stack-bottom-frame"].bind(h,o)(),re=N(n(o)),le={};Mn.Fragment=m,Mn.jsx=function(q,X,he,Pe,ze){var xe=1e4>T.recentlyCreatedOwnerStacks++;return u(q,X,he,!1,Pe,ze,xe?Error("react-stack-top-frame"):ae,xe?N(n(q)):re)},Mn.jsxs=function(q,X,he,Pe,ze){var xe=1e4>T.recentlyCreatedOwnerStacks++;return u(q,X,he,!0,Pe,ze,xe?Error("react-stack-top-frame"):ae,xe?N(n(q)):re)}}()),Mn}var Tc;function pg(){return Tc||(Tc=1,process.env.NODE_ENV==="production"?Ua.exports=dg():Ua.exports=hg()),Ua.exports}var S=pg();function mg(){return S.jsx(St.Environment,{children:S.jsx(fg,{})})}function fg({positions:e=[2,0,2,0,2,0,2,0]}){return S.jsxs(S.Fragment,{children:[S.jsx(St.Lightformer,{intensity:5,"rotation-x":Math.PI/2,position:[0,5,-9],scale:[10,10,1]}),S.jsx("group",{rotation:[0,.5,0],children:S.jsx("group",{children:e.map((t,r)=>S.jsx(St.Lightformer,{form:"circle",intensity:5,rotation:[Math.PI/2,0,0],position:[t,4,r*4],scale:[3,1,1]},r))})}),S.jsx(St.Lightformer,{intensity:40,"rotation-y":Math.PI/2,position:[-5,1,-1],scale:[20,.1,1]}),S.jsx(St.Lightformer,{intensity:20,"rotation-y":-Math.PI,position:[-5,-2,-1],scale:[20,.1,1]}),S.jsx(St.Lightformer,{"rotation-y":Math.PI/2,position:[-5,-1,-1],scale:[20,.5,1],intensity:5}),S.jsx(St.Lightformer,{"rotation-y":-Math.PI/2,position:[10,1,0],scale:[20,1,1],intensity:10}),S.jsx(St.Lightformer,{form:"ring",color:"white",intensity:5,scale:10,position:[-15,4,-18],target:[0,0,0]})]})}function gg(e){if(e.length<3)return console.log("Not enough vertices to define a plane"),{isCoplanar:!1};const t=new ke.Vector3(e[0].x,e[0].y,e[0].z),r=new ke.Vector3(e[1].x,e[1].y,e[1].z),n=new ke.Vector3(e[2].x,e[2].y,e[2].z),a=new ke.Vector3().subVectors(r,t),o=new ke.Vector3().subVectors(n,t),s=new ke.Vector3().crossVectors(a,o).normalize();for(let i=3;i<e.length;i++){const l=new ke.Vector3(e[i].x,e[i].y,e[i].z),c=new ke.Vector3().subVectors(l,t),u=s.dot(c);if(Math.abs(u)>1e-6)return console.log("Vertices are not on the same plane"),{isCoplanar:!1}}return{isCoplanar:!0,normal:s}}function yg({safetyZones:e,...t}){return S.jsx("group",{...t,children:e.map((r,n)=>{let a=[];return r.geometry&&(r.geometry.compound?a=r.geometry.compound.child_geometries:r.geometry.convex_hull&&(a=[r.geometry])),a.map((o,s)=>{if(!o.convex_hull)return null;const i=o.convex_hull.vertices.map(u=>new ke.Vector3(u.x/1e3,u.y/1e3,u.z/1e3)),l=gg(i);if(l.isCoplanar&&l.normal){const d=new ke.Vector3().addVectors(i[0],l.normal.multiplyScalar(1e-4));i.push(d)}let c;try{c=new ag.ConvexGeometry(i)}catch(u){return console.log("Error creating ConvexGeometry:",u),null}return S.jsx("mesh",{geometry:c,children:S.jsx("meshStandardMaterial",{attach:"material",color:"#009f4d",opacity:.2,depthTest:!1,depthWrite:!1,transparent:!0,polygonOffset:!0,polygonOffsetFactor:-s},n)},`${n}-${s}`)})})})}function bg({trajectory:e,...t}){var n;const r=((n=e.trajectory)==null?void 0:n.map(a=>a.tcp_pose?new ke.Vector3(a.tcp_pose.position.x/1e3,a.tcp_pose.position.z/1e3,-a.tcp_pose.position.y/1e3):null).filter(a=>a!==null))||[];return S.jsx("group",{...t,children:r.length>0&&S.jsx(St.Line,{points:r,lineWidth:3,polygonOffset:!0,polygonOffsetFactor:10,polygonOffsetUnits:10})})}function Y(){return Y=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Y.apply(null,arguments)}function or(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function vg(e,t,r=void 0){const n={};for(const a in e){const o=e[a];let s="",i=!0;for(let l=0;l<o.length;l+=1){const c=o[l];c&&(s+=(i===!0?"":" ")+t(c),i=!1,r&&r[c]&&(s+=" "+r[c]))}n[a]=s}return n}function Rh(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(r=Rh(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function Et(){for(var e,t,r=0,n="",a=arguments.length;r<a;r++)(e=arguments[r])&&(t=Rh(e))&&(n&&(n+=" "),n+=t);return n}function sr(e,...t){const r=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(n=>r.searchParams.append("args[]",n)),`Minified MUI error #${e}; visit ${r} for the full message.`}const _h="$$material";function Sg(e){for(var t=0,r,n=0,a=e.length;a>=4;++n,a-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(a){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var xg={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function Og(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var wg=/[A-Z]|^ms/g,Cg=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Vh=function(t){return t.charCodeAt(1)===45},Ac=function(t){return t!=null&&typeof t!="boolean"},Js=Og(function(e){return Vh(e)?e:e.replace(wg,"-$&").toLowerCase()}),Rc=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(Cg,function(n,a,o){return nr={name:a,styles:o,next:nr},a})}return xg[t]!==1&&!Vh(t)&&typeof r=="number"&&r!==0?r+"px":r};function Oo(e,t,r){if(r==null)return"";var n=r;if(n.__emotion_styles!==void 0)return n;switch(typeof r){case"boolean":return"";case"object":{var a=r;if(a.anim===1)return nr={name:a.name,styles:a.styles,next:nr},a.name;var o=r;if(o.styles!==void 0){var s=o.next;if(s!==void 0)for(;s!==void 0;)nr={name:s.name,styles:s.styles,next:nr},s=s.next;var i=o.styles+";";return i}return Pg(e,t,r)}}var l=r;return l}function Pg(e,t,r){var n="";if(Array.isArray(r))for(var a=0;a<r.length;a++)n+=Oo(e,t,r[a])+";";else for(var o in r){var s=r[o];if(typeof s!="object"){var i=s;Ac(i)&&(n+=Js(o)+":"+Rc(o,i)+";")}else if(Array.isArray(s)&&typeof s[0]=="string"&&t==null)for(var l=0;l<s.length;l++)Ac(s[l])&&(n+=Js(o)+":"+Rc(o,s[l])+";");else{var c=Oo(e,t,s);switch(o){case"animation":case"animationName":{n+=Js(o)+":"+c+";";break}default:n+=o+"{"+c+"}"}}}return n}var _c=/label:\s*([^\s;{]+)\s*(;|$)/g,nr;function Tg(e,t,r){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var n=!0,a="";nr=void 0;var o=e[0];if(o==null||o.raw===void 0)n=!1,a+=Oo(r,t,o);else{var s=o;a+=s[0]}for(var i=1;i<e.length;i++)if(a+=Oo(r,t,e[i]),n){var l=o;a+=l[i]}_c.lastIndex=0;for(var c="",u;(u=_c.exec(a))!==null;)c+="-"+u[1];var d=Sg(a)+c;return{name:d,styles:a,next:nr}}/** * @mui/styled-engine v7.1.1 * * @license MIT * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */function Ag(e,t){const r=lg(e,t);return process.env.NODE_ENV!=="production"?(...n)=>{const a=typeof e=="string"?`"${e}"`:"component";return n.length===0?console.error([`MUI: Seems like you called \`styled(${a})()\` without a \`style\` argument.`,'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join(` `)):n.some(o=>o===void 0)&&console.error(`MUI: the styled(${a})(...args) API requires all its args to be defined.`),r(...n)}:r}function Rg(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const Vc=[];function Ec(e){return Vc[0]=e,Tg(Vc)}var La={exports:{}},ve={};/** * @license React * react-is.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var Ic;function _g(){if(Ic)return ve;Ic=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),o=Symbol.for("react.consumer"),s=Symbol.for("react.context"),i=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),u=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),h=Symbol.for("react.view_transition"),p=Symbol.for("react.client.reference");function f(m){if(typeof m=="object"&&m!==null){var b=m.$$typeof;switch(b){case e:switch(m=m.type,m){case r:case a:case n:case l:case c:case h:return m;default:switch(m=m&&m.$$typeof,m){case s:case i:case d:case u:return m;case o:return m;default:return b}}case t:return b}}}return ve.ContextConsumer=o,ve.ContextProvider=s,ve.Element=e,ve.ForwardRef=i,ve.Fragment=r,ve.Lazy=d,ve.Memo=u,ve.Portal=t,ve.Profiler=a,ve.StrictMode=n,ve.Suspense=l,ve.SuspenseList=c,ve.isContextConsumer=function(m){return f(m)===o},ve.isContextProvider=function(m){return f(m)===s},ve.isElement=function(m){return typeof m=="object"&&m!==null&&m.$$typeof===e},ve.isForwardRef=function(m){return f(m)===i},ve.isFragment=function(m){return f(m)===r},ve.isLazy=function(m){return f(m)===d},ve.isMemo=function(m){return f(m)===u},ve.isPortal=function(m){return f(m)===t},ve.isProfiler=function(m){return f(m)===a},ve.isStrictMode=function(m){return f(m)===n},ve.isSuspense=function(m){return f(m)===l},ve.isSuspenseList=function(m){return f(m)===c},ve.isValidElementType=function(m){return typeof m=="string"||typeof m=="function"||m===r||m===a||m===n||m===l||m===c||typeof m=="object"&&m!==null&&(m.$$typeof===d||m.$$typeof===u||m.$$typeof===s||m.$$typeof===o||m.$$typeof===i||m.$$typeof===p||m.getModuleId!==void 0)},ve.typeOf=f,ve}var Se={};/** * @license React * react-is.development.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var Mc;function Vg(){return Mc||(Mc=1,process.env.NODE_ENV!=="production"&&function(){function e(m){if(typeof m=="object"&&m!==null){var b=m.$$typeof;switch(b){case t:switch(m=m.type,m){case n:case o:case a:case c:case u:case p:return m;default:switch(m=m&&m.$$typeof,m){case i:case l:case h:case d:return m;case s:return m;default:return b}}case r:return b}}}var t=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),i=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),p=Symbol.for("react.view_transition"),f=Symbol.for("react.client.reference");Se.ContextConsumer=s,Se.ContextProvider=i,Se.Element=t,Se.ForwardRef=l,Se.Fragment=n,Se.Lazy=h,Se.Memo=d,Se.Portal=r,Se.Profiler=o,Se.StrictMode=a,Se.Suspense=c,Se.SuspenseList=u,Se.isContextConsumer=function(m){return e(m)===s},Se.isContextProvider=function(m){return e(m)===i},Se.isElement=function(m){return typeof m=="object"&&m!==null&&m.$$typeof===t},Se.isForwardRef=function(m){return e(m)===l},Se.isFragment=function(m){return e(m)===n},Se.isLazy=function(m){return e(m)===h},Se.isMemo=function(m){return e(m)===d},Se.isPortal=function(m){return e(m)===r},Se.isProfiler=function(m){return e(m)===o},Se.isStrictMode=function(m){return e(m)===a},Se.isSuspense=function(m){return e(m)===c},Se.isSuspenseList=function(m){return e(m)===u},Se.isValidElementType=function(m){return typeof m=="string"||typeof m=="function"||m===n||m===o||m===a||m===c||m===u||typeof m=="object"&&m!==null&&(m.$$typeof===h||m.$$typeof===d||m.$$typeof===i||m.$$typeof===s||m.$$typeof===l||m.$$typeof===f||m.getModuleId!==void 0)},Se.typeOf=e}()),Se}var $c;function Eg(){return $c||($c=1,process.env.NODE_ENV==="production"?La.exports=_g():La.exports=Vg()),La.exports}var wo=Eg();function _t(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Eh(e){if(B.isValidElement(e)||wo.isValidElementType(e)||!_t(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=Eh(e[r])}),t}function et(e,t,r={clone:!0}){const n=r.clone?{...e}:e;return _t(e)&&_t(t)&&Object.keys(t).forEach(a=>{B.isValidElement(t[a])||wo.isValidElementType(t[a])?n[a]=t[a]:_t(t[a])&&Object.prototype.hasOwnProperty.call(e,a)&&_t(e[a])?n[a]=et(e[a],t[a],r):r.clone?n[a]=_t(t[a])?Eh(t[a]):t[a]:n[a]=t[a]}),n}const Ig=e=>{const t=Object.keys(e).map(r=>({key:r,val:e[r]}))||[];return t.sort((r,n)=>r.val-n.val),t.reduce((r,n)=>({...r,[n.key]:n.val}),{})};function Mg(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5,...a}=e,o=Ig(t),s=Object.keys(o);function i(h){return`@media (min-width:${typeof t[h]=="number"?t[h]:h}${r})`}function l(h){return`@media (max-width:${(typeof t[h]=="number"?t[h]:h)-n/100}${r})`}function c(h,p){const f=s.indexOf(p);return`@media (min-width:${typeof t[h]=="number"?t[h]:h}${r}) and (max-width:${(f!==-1&&typeof t[s[f]]=="number"?t[s[f]]:p)-n/100}${r})`}function u(h){return s.indexOf(h)+1<s.length?c(h,s[s.indexOf(h)+1]):i(h)}function d(h){const p=s.indexOf(h);return p===0?i(s[1]):p===s.length-1?l(s[p]):c(h,s[s.indexOf(h)+1]).replace("@media","@media not all and")}return{keys:s,values:o,up:i,down:l,between:c,only:u,not:d,unit:r,...a}}function $g(e,t){if(!e.containerQueries)return t;const r=Object.keys(t).filter(n=>n.startsWith("@container")).sort((n,a)=>{var s,i;const o=/min-width:\s*([0-9.]+)/;return+(((s=n.match(o))==null?void 0:s[1])||0)-+(((i=a.match(o))==null?void 0:i[1])||0)});return r.length?r.reduce((n,a)=>{const o=t[a];return delete n[a],n[a]=o,n},{...t}):t}function jg(e,t){return t==="@"||t.startsWith("@")&&(e.some(r=>t.startsWith(`@${r}`))||!!t.match(/^@\d/))}function kg(e,t){const r=t.match(/^@([^/]+)?\/?(.+)?$/);if(!r){if(process.env.NODE_ENV!=="production")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The provided shorthand ${`(${t})`} is invalid. The format should be \`@<breakpoint | number>\` or \`@<breakpoint | number>/<container>\`. For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.`:sr(18,`(${t})`));return null}const[,n,a]=r,o=Number.isNaN(+n)?n||0:+n;return e.containerQueries(a).up(o)}function Ug(e){const t=(o,s)=>o.replace("@media",s?`@container ${s}`:"@container");function r(o,s){o.up=(...i)=>t(e.breakpoints.up(...i),s),o.down=(...i)=>t(e.breakpoints.down(...i),s),o.between=(...i)=>t(e.breakpoints.between(...i),s),o.only=(...i)=>t(e.breakpoints.only(...i),s),o.not=(...i)=>{const l=t(e.breakpoints.not(...i),s);return l.includes("not all and")?l.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):l}}const n={},a=o=>(r(n,o),n);return r(a),{...e,containerQueries:a}}const Lg={borderRadius:4},cr=process.env.NODE_ENV!=="production"?g.oneOfType([g.number,g.string,g.object,g.array]):{};function Zn(e,t){return t?et(e,t,{clone:!1}):e}const Yo={xs:0,sm:600,md:900,lg:1200,xl:1536},jc={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Yo[e]}px)`},Dg={containerQueries:e=>({up:t=>{let r=typeof t=="number"?t:Yo[t]||t;return typeof r=="number"&&(r=`${r}px`),e?`@container ${e} (min-width:${r})`:`@container (min-width:${r})`}})};function wt(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const o=n.breakpoints||jc;return t.reduce((s,i,l)=>(s[o.up(o.keys[l])]=r(t[l]),s),{})}if(typeof t=="object"){const o=n.breakpoints||jc;return Object.keys(t).reduce((s,i)=>{if(jg(o.keys,i)){const l=kg(n.containerQueries?n:Dg,i);l&&(s[l]=r(t[i],i))}else if(Object.keys(o.values||Yo).includes(i)){const l=o.up(i);s[l]=r(t[i],i)}else{const l=i;s[l]=t[l]}return s},{})}return r(t)}function Ih(e={}){var r;return((r=e.keys)==null?void 0:r.reduce((n,a)=>{const o=e.up(a);return n[o]={},n},{}))||{}}function Mh(e,t){return e.reduce((r,n)=>{const a=r[n];return(!a||Object.keys(a).length===0)&&delete r[n],r},t)}function Bg(e,...t){const r=Ih(e),n=[r,...t].reduce((a,o)=>et(a,o),{});return Mh(Object.keys(r),n)}function Ng(e,t){if(typeof e!="object")return{};const r={},n=Object.keys(t);return Array.isArray(e)?n.forEach((a,o)=>{o<e.length&&(r[a]=!0)}):n.forEach(a=>{e[a]!=null&&(r[a]=!0)}),r}function Ws({values:e,breakpoints:t,base:r}){const n=r||Ng(e,t),a=Object.keys(n);if(a.length===0)return e;let o;return a.reduce((s,i,l)=>(Array.isArray(e)?(s[i]=e[l]!=null?e[l]:e[o],o=l):typeof e=="object"?(s[i]=e[i]!=null?e[i]:e[o],o=i):s[i]=e,s),{})}function Ze(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":sr(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Ko(e,t,r=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&r){const n=`vars.${t}`.split(".").reduce((a,o)=>a&&a[o]?a[o]:null,e);if(n!=null)return n}return t.split(".").reduce((n,a)=>n&&n[a]!=null?n[a]:null,e)}function Co(e,t,r,n=r){let a;return typeof e=="function"?a=e(r):Array.isArray(e)?a=e[r]||n:a=Ko(e,r)||n,t&&(a=t(a,n,e)),a}function Ue(e){const{prop:t,cssProperty:r=e.prop,themeKey:n,transform:a}=e,o=s=>{if(s[t]==null)return null;const i=s[t],l=s.theme,c=Ko(l,n)||{};return wt(s,i,d=>{let h=Co(c,a,d);return d===h&&typeof d=="string"&&(h=Co(c,a,`${t}${d==="default"?"":Ze(d)}`,d)),r===!1?h:{[r]:h}})};return o.propTypes=process.env.NODE_ENV!=="production"?{[t]:cr}:{},o.filterProps=[t],o}function Fg(e){const t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}const zg={m:"margin",p:"padding"},Gg={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},kc={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Hg=Fg(e=>{if(e.length>2)if(kc[e])e=kc[e];else return[e];const[t,r]=e.split(""),n=zg[t],a=Gg[r]||"";return Array.isArray(a)?a.map(o=>n+o):[n+a]}),Qo=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Xo=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],qg=[...Qo,...Xo];function va(e,t,r,n){const a=Ko(e,t,!0)??r;return typeof a=="number"||typeof a=="string"?o=>typeof o=="string"?o:(process.env.NODE_ENV!=="production"&&typeof o!="number"&&console.error(`MUI: Expected ${n} argument to be a number or a string, got ${o}.`),typeof a=="string"?a.startsWith("var(")&&o===0?0:a.startsWith("var(")&&o===1?a:`calc(${o} * ${a})`:a*o):Array.isArray(a)?o=>{if(typeof o=="string")return o;const s=Math.abs(o);process.env.NODE_ENV!=="production"&&(Number.isInteger(s)?s>a.length-1&&console.error([`MUI: The value provided (${s}) overflows.`,`The supported values are: ${JSON.stringify(a)}.`,`${s} > ${a.length-1}, you need to add the missing values.`].join(` `)):console.error([`MUI: The \`theme.${t}\` array type cannot be combined with non integer values.You should either use an integer value that can be used as index, or define the \`theme.${t}\` as a number.`].join(` `)));const i=a[s];return o>=0?i:typeof i=="number"?-i:typeof i=="string"&&i.startsWith("var(")?`calc(-1 * ${i})`:`-${i}`}:typeof a=="function"?a:(process.env.NODE_ENV!=="production"&&console.error([`MUI: The \`theme.${t}\` value (${a}) is invalid.`,"It should be a number, an array or a function."].join(` `)),()=>{})}function Zo(e){return va(e,"spacing",8,"spacing")}function xr(e,t){return typeof t=="string"||t==null?t:e(t)}function Jg(e,t){return r=>e.reduce((n,a)=>(n[a]=xr(t,r),n),{})}function Wg(e,t,r,n){if(!t.includes(r))return null;const a=Hg(r),o=Jg(a,n),s=e[r];return wt(e,s,o)}function $h(e,t){const r=Zo(e.theme);return Object.keys(e).map(n=>Wg(e,t,n,r)).reduce(Zn,{})}function $e(e){return $h(e,Qo)}$e.propTypes=process.env.NODE_ENV!=="production"?Qo.reduce((e,t)=>(e[t]=cr,e),{}):{};$e.filterProps=Qo;function je(e){return $h(e,Xo)}je.propTypes=process.env.NODE_ENV!=="production"?Xo.reduce((e,t)=>(e[t]=cr,e),{}):{};je.filterProps=Xo;process.env.NODE_ENV!=="production"&&qg.reduce((e,t)=>(e[t]=cr,e),{});function jh(e=8,t=Zo({spacing:e})){if(e.mui)return e;const r=(...n)=>(process.env.NODE_ENV!=="production"&&(n.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${n.length}`)),(n.length===0?[1]:n).map(o=>{const s=t(o);return typeof s=="number"?`${s}px`:s}).join(" "));return r.mui=!0,r}function es(...e){const t=e.reduce((n,a)=>(a.filterProps.forEach(o=>{n[o]=a}),n),{}),r=n=>Object.keys(n).reduce((a,o)=>t[o]?Zn(a,t[o](n)):a,{});return r.propTypes=process.env.NODE_ENV!=="production"?e.reduce((n,a)=>Object.assign(n,a.propTypes),{}):{},r.filterProps=e.reduce((n,a)=>n.concat(a.filterProps),[]),r}function pt(e){return typeof e!="number"?e:`${e}px solid`}function yt(e,t){return Ue({prop:e,themeKey:"borders",transform:t})}const Yg=yt("border",pt),Kg=yt("borderTop",pt),Qg=yt("borderRight",pt),Xg=yt("borderBottom",pt),Zg=yt("borderLeft",pt),ey=yt("borderColor"),ty=yt("borderTopColor"),ry=yt("borderRightColor"),ny=yt("borderBottomColor"),ay=yt("borderLeftColor"),oy=yt("outline",pt),sy=yt("outlineColor"),ts=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=va(e.theme,"shape.borderRadius",4,"borderRadius"),r=n=>({borderRadius:xr(t,n)});return wt(e,e.borderRadius,r)}return null};ts.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:cr}:{};ts.filterProps=["borderRadius"];es(Yg,Kg,Qg,Xg,Zg,ey,ty,ry,ny,ay,ts,oy,sy);const rs=e=>{if(e.gap!==void 0&&e.gap!==null){const t=va(e.theme,"spacing",8,"gap"),r=n=>({gap:xr(t,n)});return wt(e,e.gap,r)}return null};rs.propTypes=process.env.NODE_ENV!=="production"?{gap:cr}:{};rs.filterProps=["gap"];const ns=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=va(e.theme,"spacing",8,"columnGap"),r=n=>({columnGap:xr(t,n)});return wt(e,e.columnGap,r)}return null};ns.propTypes=process.env.NODE_ENV!=="production"?{columnGap:cr}:{};ns.filterProps=["columnGap"];const as=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=va(e.theme,"spacing",8,"rowGap"),r=n=>({rowGap:xr(t,n)});return wt(e,e.rowGap,r)}return null};as.propTypes=process.env.NODE_ENV!=="production"?{rowGap:cr}:{};as.filterProps=["rowGap"];const iy=Ue({prop:"gridColumn"}),ly=Ue({prop:"gridRow"}),cy=Ue({prop:"gridAutoFlow"}),uy=Ue({prop:"gridAutoColumns"}),dy=Ue({prop:"gridAutoRows"}),hy=Ue({prop:"gridTemplateColumns"}),py=Ue({prop:"gridTemplateRows"}),my=Ue({prop:"gridTemplateAreas"}),fy=Ue({prop:"gridArea"});es(rs,ns,as,iy,ly,cy,uy,dy,hy,py,my,fy);function nn(e,t){return t==="grey"?t:e}const gy=Ue({prop:"color",themeKey:"palette",transform:nn}),yy=Ue({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:nn}),by=Ue({prop:"backgroundColor",themeKey:"palette",transform:nn});es(gy,yy,by);function ct(e){return e<=1&&e!==0?`${e*100}%`:e}const vy=Ue({prop:"width",transform:ct}),xl=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=r=>{var a,o,s,i,l;const n=((s=(o=(a=e.theme)==null?void 0:a.breakpoints)==null?void 0:o.values)==null?void 0:s[r])||Yo[r];return n?((l=(i=e.theme)==null?void 0:i.breakpoints)==null?void 0:l.unit)!=="px"?{maxWidth:`${n}${e.theme.breakpoints.unit}`}:{maxWidth:n}:{maxWidth:ct(r)}};return wt(e,e.maxWidth,t)}return null};xl.filterProps=["maxWidth"];const Sy=Ue({prop:"minWidth",transform:ct}),xy=Ue({prop:"height",transform:ct}),Oy=Ue({prop:"maxHeight",transform:ct}),wy=Ue({prop:"minHeight",transform:ct});Ue({prop:"size",cssProperty:"width",transform:ct});Ue({prop:"size",cssProperty:"height",transform:ct});const Cy=Ue({prop:"boxSizing"});es(vy,xl,Sy,xy,Oy,wy,Cy);const Sa={border:{themeKey:"borders",transform:pt},borderTop:{themeKey:"borders",transform:pt},borderRight:{themeKey:"borders",transform:pt},borderBottom:{themeKey:"borders",transform:pt},borderLeft:{themeKey:"borders",transform:pt},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:pt},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:ts},color:{themeKey:"palette",transform:nn},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:nn},backgroundColor:{themeKey:"palette",transform:nn},p:{style:je},pt:{style:je},pr:{style:je},pb:{style:je},pl:{style:je},px:{style:je},py:{style:je},padding:{style:je},paddingTop:{style:je},paddingRight:{style:je},paddingBottom:{style:je},paddingLeft:{style:je},paddingX:{style:je},paddingY:{style:je},paddingInline:{style:je},paddingInlineStart:{style:je},paddingInlineEnd:{style:je},paddingBlock:{style:je},paddingBlockStart:{style:je},paddingBlockEnd:{style:je},m:{style:$e},mt:{style:$e},mr:{style:$e},mb:{style:$e},ml:{style:$e},mx:{style:$e},my:{style:$e},margin:{style:$e},marginTop:{style:$e},marginRight:{style:$e},marginBottom:{style:$e},marginLeft:{style:$e},marginX:{style:$e},marginY:{style:$e},marginInline:{style:$e},marginInlineStart:{style:$e},marginInlineEnd:{style:$e},marginBlock:{style:$e},marginBlockStart:{style:$e},marginBlockEnd:{style:$e},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:rs},rowGap:{style:as},columnGap:{style:ns},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:ct},maxWidth:{style:xl},minWidth:{transform:ct},height:{transform:ct},maxHeight:{transform:ct},minHeight:{transform:ct},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function Py(...e){const t=e.reduce((n,a)=>n.concat(Object.keys(a)),[]),r=new Set(t);return e.every(n=>r.size===Object.keys(n).length)}function Ty(e,t){return typeof e=="function"?e(t):e}function Ay(){function e(r,n,a,o){const s={[r]:n,theme:a},i=o[r];if(!i)return{[r]:n};const{cssProperty:l=r,themeKey:c,transform:u,style:d}=i;if(n==null)return null;if(c==="typography"&&n==="inherit")return{[r]:n};const h=Ko(a,c)||{};return d?d(s):wt(s,n,f=>{let m=Co(h,u,f);return f===m&&typeof f=="string"&&(m=Co(h,u,`${r}${f==="default"?"":Ze(f)}`,f)),l===!1?m:{[l]:m}})}function t(r){const{sx:n,theme:a={}}=r||{};if(!n)return null;const o=a.unstable_sxConfig??Sa;function s(i){let l=i;if(typeof i=="function")l=i(a);else if(typeof i!="object")return i;if(!l)return null;const c=Ih(a.breakpoints),u=Object.keys(c);let d=c;return Object.keys(l).forEach(h=>{const p=Ty(l[h],a);if(p!=null)if(typeof p=="object")if(o[h])d=Zn(d,e(h,p,a,o));else{const f=wt({theme:a},p,m=>({[h]:m}));Py(f,p)?d[h]=t({sx:p,theme:a}):d=Zn(d,f)}else d=Zn(d,e(h,p,a,o))}),$g(a,Mh(u,d))}return Array.isArray(n)?n.map(s):s(n)}return t}const cn=Ay();cn.filterProps=["sx"];function Ry(e,t){var n;const r=this;if(r.vars){if(!((n=r.colorSchemes)!=null&&n[e])||typeof r.getColorSchemeSelector!="function")return{};let a=r.getColorSchemeSelector(e);return a==="&"?t:((a.includes("data-")||a.includes("."))&&(a=`*:where(${a.replace(/\s*&$/,"")}) &`),{[a]:t})}return r.palette.mode===e?t:{}}function os(e={},...t){const{breakpoints:r={},palette:n={},spacing:a,shape:o={},...s}=e,i=Mg(r),l=jh(a);let c=et({breakpoints:i,direction:"ltr",components:{},palette:{mode:"light",...n},spacing:l,shape:{...Lg,...o}},s);return c=Ug(c),c.applyStyles=Ry,c=t.reduce((u,d)=>et(u,d),c),c.unstable_sxConfig={...Sa,...s==null?void 0:s.unstable_sxConfig},c.unstable_sx=function(d){return cn({sx:d,theme:this})},c}function _y(e){return Object.keys(e).length===0}function Vy(e=null){const t=B.useContext(ig.ThemeContext);return!t||_y(t)?e:t}const Ey=os();function Iy(e=Ey){return Vy(e)}const My=e=>{var n;const t={systemProps:{},otherProps:{}},r=((n=e==null?void 0:e.theme)==null?void 0:n.unstable_sxConfig)??Sa;return Object.keys(e).forEach(a=>{r[a]?t.systemProps[a]=e[a]:t.otherProps[a]=e[a]}),t};function $y(e){const{sx:t,...r}=e,{systemProps:n,otherProps:a}=My(r);let o;return Array.isArray(t)?o=[n,...t]:typeof t=="function"?o=(...s)=>{const i=t(...s);return _t(i)?{...n,...i}:n}:o={...n,...t},{...a,sx:o}}const Uc=e=>e,jy=()=>{let e=Uc;return{configure(t){e=t},generate(t){return e(t)},reset(){e=Uc}}},ky=jy(),Uy={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function xa(e,t,r="Mui"){const n=Uy[t];return n?`${r}-${n}`:`${ky.generate(e)}-${t}`}function kh(e,t,r="Mui"){const n={};return t.forEach(a=>{n[a]=xa(e,a,r)}),n}function Uh(e,t=""){return e.displayName||e.name||t}function Lc(e,t,r){const n=Uh(t);return e.displayName||(n!==""?`${r}(${n})`:r)}function Ly(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return Uh(e,"Component");if(typeof e=="object")switch(e.$$typeof){case wo.ForwardRef:return Lc(e,e.render,"ForwardRef");case wo.Memo:return Lc(e,e.type,"memo");default:return}}}function Lh(e){const{variants:t,...r}=e,n={variants:t,style:Ec(r),isProcessed:!0};return n.style===r||t&&t.forEach(a=>{typeof a.style!="function"&&(a.style=Ec(a.style))}),n}const Dy=os();function Ys(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function By(e){return e?(t,r)=>r[e]:null}function Ny(e,t,r){e.theme=Gy(e.theme)?r:e.theme[t]||e.theme}function ho(e,t){const r=typeof t=="function"?t(e):t;if(Array.isArray(r))return r.flatMap(n=>ho(e,n));if(Array.isArray(r==null?void 0:r.variants)){let n;if(r.isProcessed)n=r.style;else{const{variants:a,...o}=r;n=o}return Dh(e,r.variants,[n])}return r!=null&&r.isProcessed?r.style:r}function Dh(e,t,r=[]){var a;let n;e:for(let o=0;o<t.length;o+=1){const s=t[o];if(typeof s.props=="function"){if(n??(n={...e,...e.ownerState,ownerState:e.ownerState}),!s.props(n))continue}else for(const i in s.props)if(e[i]!==s.props[i]&&((a=e.ownerState)==null?void 0:a[i])!==s.props[i])continue e;typeof s.style=="function"?(n??(n={...e,...e.ownerState,ownerState:e.ownerState}),r.push(s.style(n))):r.push(s.style)}return r}function Bh(e={}){const{themeId:t,defaultTheme:r=Dy,rootShouldForwardProp:n=Ys,slotShouldForwardProp:a=Ys}=e;function o(i){Ny(i,t,r)}return(i,l={})=>{Rg(i,P=>P.filter(w=>w!==cn));const{name:c,slot:u,skipVariantsResolver:d,skipSx:h,overridesResolver:p=By(Nh(u)),...f}=l,m=d!==void 0?d:u&&u!=="Root"&&u!=="root"||!1,b=h||!1;let x=Ys;u==="Root"||u==="root"?x=n:u?x=a:Hy(i)&&(x=void 0);const _=Ag(i,{shouldForwardProp:x,label:zy(c,u),...f}),O=P=>{if(P.__emotion_real===P)return P;if(typeof P=="function")return function(A){return ho(A,P)};if(_t(P)){const w=Lh(P);return w.variants?function(E){return ho(E,w)}:w.style}return P},C=(...P)=>{const w=[],A=P.map(O),E=[];if(w.push(o),c&&p&&E.push(function(z){var Z,ae;const N=(ae=(Z=z.theme.components)==null?void 0:Z[c])==null?void 0:ae.styleOverrides;if(!N)return null;const te={};for(const re in N)te[re]=ho(z,N[re]);return p(z,te)}),c&&!m&&E.push(function(z){var te,Z;const V=z.theme,N=(Z=(te=V==null?void 0:V.components)==null?void 0:te[c])==null?void 0:Z.variants;return N?Dh(z,N):null}),b||E.push(cn),Array.isArray(A[0])){const T=A.shift(),z=new Array(w.length).fill(""),V=new Array(E.length).fill("");let N;N=[...z,...T,...V],N.raw=[...z,...T.raw,...V],w.unshift(N)}const F=[...w,...A,...E],y=_(...F);return i.muiName&&(y.muiName=i.muiName),process.env.NODE_ENV!=="production"&&(y.displayName=Fy(c,u,i)),y};return _.withConfig&&(C.withConfig=_.withConfig),C}}function Fy(e,t,r){return e?`${e}${Ze(t||"")}`:`Styled(${Ly(r)})`}function zy(e,t){let r;return process.env.NODE_ENV!=="production"&&e&&(r=`${e}-${Nh(t||"Root")}`),r}function Gy(e){for(const t in e)return!1;return!0}function Hy(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Nh(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}const qy=Bh();function Po(e,t){const r={...t};for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)){const a=n;if(a==="components"||a==="slots")r[a]={...e[a],...r[a]};else if(a==="componentsProps"||a==="slotProps"){const o=e[a],s=t[a];if(!s)r[a]=o||{};else if(!o)r[a]=s;else{r[a]={...s};for(const i in o)if(Object.prototype.hasOwnProperty.call(o,i)){const l=i;r[a][l]=Po(o[l],s[l])}}}else r[a]===void 0&&(r[a]=e[a])}return r}function Jy(e){const{theme:t,name:r,props:n}=e;return!t||!t.components||!t.components[r]||!t.components[r].defaultProps?n:Po(t.components[r].defaultProps,n)}function Fh({props:e,name:t,defaultTheme:r,themeId:n}){let a=Iy(r);return n&&(a=a[n]||a),Jy({theme:a,name:t,props:e})}const zh=typeof window<"u"?B.useLayoutEffect:B.useEffect;function Zr(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}function Ol(e,t=0,r=1){return process.env.NODE_ENV!=="production"&&(e<t||e>r)&&console.error(`MUI: The value provided ${e} is out of range [${t}, ${r}].`),Zr(e,t,r)}function Wy(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&r[0].length===1&&(r=r.map(n=>n+n)),process.env.NODE_ENV!=="production"&&e.length!==e.trim().length&&console.error(`MUI: The color: "${e}" is invalid. Make sure the color input doesn't contain leading/trailing space.`),r?`rgb${r.length===4?"a":""}(${r.map((n,a)=>a<3?parseInt(n,16):Math.round(parseInt(n,16)/255*1e3)/1e3).join(", ")})`:""}function ir(e){if(e.type)return e;if(e.charAt(0)==="#")return ir(Wy(e));const t=e.indexOf("("),r=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(r))throw new Error(process.env.NODE_ENV!=="production"?`MUI: Unsupported \`${e}\` color. The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:sr(9,e));let n=e.substring(t+1,e.length-1),a;if(r==="color"){if(n=n.split(" "),a=n.shift(),n.length===4&&n[3].charAt(0)==="/"&&(n[3]=n[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(a))throw new Error(process.env.NODE_ENV!=="production"?`MUI: unsupported \`${a}\` color space. The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:sr(10,a))}else n=n.split(",");return n=n.map(o=>parseFloat(o)),{type:r,values:n,colorSpace:a}}const Yy=e=>{const t=ir(e);return t.values.slice(0,3).map((r,n)=>t.type.includes("hsl")&&n!==0?`${r}%`:r).join(" ")},Yn=(e,t)=>{try{return Yy(e)}catch{return t&&process.env.NODE_ENV!=="production"&&console.warn(t),e}};function ss(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return t.includes("rgb")?n=n.map((a,o)=>o<3?parseInt(a,10):a):t.includes("hsl")&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),t.includes("color")?n=`${r} ${n.join(" ")}`:n=`${n.join(", ")}`,`${t}(${n})`}function Gh(e){e=ir(e);const{values:t}=e,r=t[0],n=t[1]/100,a=t[2]/100,o=n*Math.min(a,1-a),s=(c,u=(c+r/30)%12)=>a-o*Math.max(Math.min(u-3,9-u,1),-1);let i="rgb";const l=[Math.round(s(0)*255),Math.round(s(8)*255),Math.round(s(4)*255)];return e.type==="hsla"&&(i+="a",l.push(t[3])),ss({type:i,values:l})}function ki(e){e=ir(e);let t=e.type==="hsl"||e.type==="hsla"?ir(Gh(e)).values:e.values;return t=t.map(r=>(e.type!=="color"&&(r/=255),r<=.03928?r/12.92:((r+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function Dc(e,t){const r=ki(e),n=ki(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function Ui(e,t){return e=ir(e),t=Ol(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,ss(e)}function Da(e,t,r){try{return Ui(e,t)}catch{return e}}function na(e,t){if(e=ir(e),t=Ol(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let r=0;r<3;r+=1)e.values[r]*=1-t;return ss(e)}function we(e,t,r){try{return na(e,t)}catch{return e}}function aa(e,t){if(e=ir(e),t=Ol(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(e.type.includes("color"))for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return ss(e)}function Ce(e,t,r){try{return aa(e,t)}catch{return e}}function Ky(e,t=.15){return ki(e)>.5?na(e,t):aa(e,t)}function Ba(e,t,r){try{return Ky(e,t)}catch{return e}}const Qy=B.createContext();process.env.NODE_ENV!=="production"&&(g.node,g.bool);const Xy=()=>B.useContext(Qy)??!1,Zy=B.createContext(void 0);process.env.NODE_ENV!=="production"&&(g.node,g.object);function e0(e){const{theme:t,name:r,props:n}=e;if(!t||!t.components||!t.components[r])return n;const a=t.components[r];return a.defaultProps?Po(a.defaultProps,n):!a.styleOverrides&&!a.variants?Po(a,n):n}function t0({props:e,name:t}){const r=B.useContext(Zy);return e0({props:e,name:t,theme:{components:r}})}const Bc={theme:void 0};function r0(e){let t,r;return function(a){let o=t;return(o===void 0||a.theme!==r)&&(Bc.theme=a.theme,o=Lh(e(Bc)),t=o,r=a.theme),o}}function n0(e=""){function t(...n){if(!n.length)return"";const a=n[0];return typeof a=="string"&&!a.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${e?`${e}-`:""}${a}${t(...n.slice(1))})`:`, ${a}`}return(n,...a)=>`var(--${e?`${e}-`:""}${n}${t(...a)})`}const Nc=(e,t,r,n=[])=>{let a=e;t.forEach((o,s)=>{s===t.length-1?Array.isArray(a)?a[Number(o)]=r:a&&typeof a=="object"&&(a[o]=r):a&&typeof a=="object"&&(a[o]||(a[o]=n.includes(o)?[]:{}),a=a[o])})},a0=(e,t,r)=>{function n(a,o=[],s=[]){Object.entries(a).forEach(([i,l])=>{(!r||r&&!r([...o,i]))&&l!=null&&(typeof l=="object"&&Object.keys(l).length>0?n(l,[...o,i],Array.isArray(l)?[...s,i]:s):t([...o,i],l,s))})}n(e)},o0=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(n=>e.includes(n))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t;function Ks(e,t){const{prefix:r,shouldSkipGeneratingVar:n}=t||{},a={},o={},s={};return a0(e,(i,l,c)=>{if((typeof l=="string"||typeof l=="number")&&(!n||!n(i,l))){const u=`--${r?`${r}-`:""}${i.join("-")}`,d=o0(i,l);Object.assign(a,{[u]:d}),Nc(o,i,`var(${u})`,c),Nc(s,i,`var(${u}, ${d})`,c)}},i=>i[0]==="vars"),{css:a,vars:o,varsWithDefaults:s}}function s0(e,t={}){const{getSelector:r=b,disableCssColorScheme:n,colorSchemeSelector:a}=t,{colorSchemes:o={},components:s,defaultColorScheme:i="light",...l}=e,{vars:c,css:u,varsWithDefaults:d}=Ks(l,t);let h=d;const p={},{[i]:f,...m}=o;if(Object.entries(m||{}).forEach(([O,C])=>{const{vars:P,css:w,varsWithDefaults:A}=Ks(C,t);h=et(h,A),p[O]={css:w,vars:P}}),f){const{css:O,vars:C,varsWithDefaults:P}=Ks(f,t);h=et(h,P),p[i]={css:O,vars:C}}function b(O,C){var w,A;let P=a;if(a==="class"&&(P=".%s"),a==="data"&&(P="[data-%s]"),a!=null&&a.startsWith("data-")&&!a.includes("%s")&&(P=`[${a}="%s"]`),O){if(P==="media")return e.defaultColorScheme===O?":root":{[`@media (prefers-color-scheme: ${((A=(w=o[O])==null?void 0:w.palette)==null?void 0:A.mode)||O})`]:{":root":C}};if(P)return e.defaultColorScheme===O?`:root, ${P.replace("%s",String(O))}`:P.replace("%s",String(O))}return":root"}return{vars:h,generateThemeVars:()=>{let O={...c};return Object.entries(p).forEach(([,{vars:C}])=>{O=et(O,C)}),O},generateStyleSheets:()=>{var E,F;const O=[],C=e.defaultColorScheme||"light";function P(y,T){Object.keys(T).length&&O.push(typeof y=="string"?{[y]:{...T}}:y)}P(r(void 0,{...u}),u);const{[C]:w,...A}=p;if(w){const{css:y}=w,T=(F=(E=o[C])==null?void 0:E.palette)==null?void 0:F.mode,z=!n&&T?{colorScheme:T,...y}:{...y};P(r(C,{...z}),z)}return Object.entries(A).forEach(([y,{css:T}])=>{var N,te;const z=(te=(N=o[y])==null?void 0:N.palette)==null?void 0:te.mode,V=!n&&z?{colorScheme:z,...T}:{...T};P(r(y,{...V}),V)}),O}}}function i0(e){return function(r){return e==="media"?(process.env.NODE_ENV!=="production"&&r!=="light"&&r!=="dark"&&console.error(`MUI: @media (prefers-color-scheme) supports only 'light' or 'dark', but receive '${r}'.`),`@media (prefers-color-scheme: ${r})`):e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${r}"] &`:e==="class"?`.${r} &`:e==="data"?`[data-${r}] &`:`${e.replace("%s",r)} &`:"&"}}function wl(e,t,r=void 0){const n={};for(const a in e){const o=e[a];let s="",i=!0;for(let l=0;l<o.length;l+=1){const c=o[l];c&&(s+=(i===!0?"":" ")+t(c),i=!1,r&&r[c]&&(s+=" "+r[c]))}n[a]=s}return n}const l0=os(),c0=qy("div",{name:"MuiStack",slot:"Root"});function u0(e){return Fh({props:e,name:"MuiStack",defaultTheme:l0})}function d0(e,t){const r=B.Children.toArray(e).filter(Boolean);return r.reduce((n,a,o)=>(n.push(a),o<r.length-1&&n.push(B.cloneElement(t,{key:`separator-${o}`})),n),[])}const h0=e=>({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],p0=({ownerState:e,theme:t})=>{let r={display:"flex",flexDirection:"column",...wt({theme:t},Ws({values:e.direction,breakpoints:t.breakpoints.values}),n=>({flexDirection:n}))};if(e.spacing){const n=Zo(t),a=Object.keys(t.breakpoints.values).reduce((l,c)=>((typeof e.spacing=="object"&&e.spacing[c]!=null||typeof e.direction=="object"&&e.direction[c]!=null)&&(l[c]=!0),l),{}),o=Ws({values:e.direction,base:a}),s=Ws({values:e.spacing,base:a});typeof o=="object"&&Object.keys(o).forEach((l,c,u)=>{if(!o[l]){const h=c>0?o[u[c-1]]:"column";o[l]=h}}),r=et(r,wt({theme:t},s,(l,c)=>e.useFlexGap?{gap:xr(n,l)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${h0(c?o[c]:e.direction)}`]:xr(n,l)}}))}return r=Bg(t.breakpoints,r),r};function m0(e={}){const{createStyledComponent:t=c0,useThemeProps:r=u0,componentName:n="MuiStack"}=e,a=()=>wl({root:["root"]},l=>xa(n,l),{}),o=t(p0),s=B.forwardRe