UNPKG

@wandelbots/wandelbots-js-react-components

Version:

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

50 lines 660 kB
"use strict";var cg=Object.create;var Xs=Object.defineProperty;var ug=Object.getOwnPropertyDescriptor;var dg=Object.getOwnPropertyNames;var hg=Object.getPrototypeOf,pg=Object.prototype.hasOwnProperty;var mg=(e,t,r)=>t in e?Xs(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var fg=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of dg(t))!pg.call(e,a)&&a!==r&&Xs(e,a,{get:()=>t[a],enumerable:!(n=ug(t,a))||n.enumerable});return e};var Zs=(e,t,r)=>(r=e!=null?cg(hg(e)):{},fg(t||!e||!e.__esModule?Xs(r,"default",{value:e,enumerable:!0}):r,e));var Un=(e,t,r)=>mg(e,typeof t!="symbol"?t+"":t,r);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const W=require("react"),Ct=require("three"),Uh=require("three-stdlib"),ut=require("@react-three/drei"),Ao=require("@react-three/fiber"),R=require("@mui/material"),ye=require("mobx-react-lite"),Re=require("react-i18next"),gg=require("i18next"),yg=require("i18next-browser-languagedetector"),x=require("prop-types"),bg=require("@emotion/styled"),xg=require("@emotion/react"),vt=require("@mui/x-data-grid"),ke=require("mobx"),_l=require("lodash-es"),Tr=require("@wandelbots/nova-js"),zt=require("@mui/icons-material"),vg=require("react-error-boundary");function Dh(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 N=Dh(W),ve=Dh(Ct);function Sg(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ga={exports:{}},Dn={};/** * @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 jc;function wg(){if(jc)return Dn;jc=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 Dn.Fragment=t,Dn.jsx=r,Dn.jsxs=r,Dn}var Ln={};/** * @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 kc;function Cg(){return kc||(kc=1,process.env.NODE_ENV!=="production"&&function(){function e(J){if(J==null)return null;if(typeof J=="function")return J.$$typeof===y?null:J.displayName||J.name||null;if(typeof J=="string")return J;switch(J){case m:return"Fragment";case S:return"Profiler";case b:return"StrictMode";case A:return"Suspense";case C:return"SuspenseList";case V:return"Activity"}if(typeof J=="object")switch(typeof J.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),J.$$typeof){case f:return"Portal";case w:return(J.displayName||"Context")+".Provider";case _:return(J._context.displayName||"Context")+".Consumer";case O:var Z=J.render;return J=J.displayName,J||(J=Z.displayName||Z.name||"",J=J!==""?"ForwardRef("+J+")":"ForwardRef"),J;case T:return Z=J.displayName||null,Z!==null?Z:e(J.type)||"Memo";case E:Z=J._payload,J=J._init;try{return e(J(Z))}catch{}}return null}function t(J){return""+J}function r(J){try{t(J);var Z=!1}catch{Z=!0}if(Z){Z=console;var he=Z.error,Ae=typeof Symbol=="function"&&Symbol.toStringTag&&J[Symbol.toStringTag]||J.constructor.name||"Object";return he.call(Z,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",Ae),t(J)}}function n(J){if(J===m)return"<>";if(typeof J=="object"&&J!==null&&J.$$typeof===E)return"<...>";try{var Z=e(J);return Z?"<"+Z+">":"<...>"}catch{return"<...>"}}function a(){var J=P.A;return J===null?null:J.getOwner()}function o(){return Error("react-stack-top-frame")}function s(J){if(z.call(J,"key")){var Z=Object.getOwnPropertyDescriptor(J,"key").get;if(Z&&Z.isReactWarning)return!1}return J.key!==void 0}function i(J,Z){function he(){ne||(ne=!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)",Z))}he.isReactWarning=!0,Object.defineProperty(J,"key",{get:he,configurable:!0})}function l(){var J=e(this.type);return re[J]||(re[J]=!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.")),J=this.props.ref,J!==void 0?J:null}function c(J,Z,he,Ae,ze,Ce,lt,rt){return he=Ce.ref,J={$$typeof:p,type:J,key:Z,props:Ce,_owner:ze},(he!==void 0?he:null)!==null?Object.defineProperty(J,"ref",{enumerable:!1,get:l}):Object.defineProperty(J,"ref",{enumerable:!1,value:null}),J._store={},Object.defineProperty(J._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(J,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(J,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:lt}),Object.defineProperty(J,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:rt}),Object.freeze&&(Object.freeze(J.props),Object.freeze(J)),J}function u(J,Z,he,Ae,ze,Ce,lt,rt){var be=Z.children;if(be!==void 0)if(Ae)if(M(be)){for(Ae=0;Ae<be.length;Ae++)d(be[Ae]);Object.freeze&&Object.freeze(be)}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(be);if(z.call(Z,"key")){be=e(J);var X=Object.keys(Z).filter(function(ce){return ce!=="key"});Ae=0<X.length?"{key: someKey, "+X.join(": ..., ")+": ...}":"{key: someKey}",le[be+Ae]||(X=0<X.length?"{"+X.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} />`,Ae,be,X,be),le[be+Ae]=!0)}if(be=null,he!==void 0&&(r(he),be=""+he),s(Z)&&(r(Z.key),be=""+Z.key),"key"in Z){he={};for(var oe in Z)oe!=="key"&&(he[oe]=Z[oe])}else he=Z;return be&&i(he,typeof J=="function"?J.displayName||J.name||"Unknown":J),c(J,be,Ce,ze,a(),he,lt,rt)}function d(J){typeof J=="object"&&J!==null&&J.$$typeof===p&&J._store&&(J._store.validated=1)}var h=W,p=Symbol.for("react.transitional.element"),f=Symbol.for("react.portal"),m=Symbol.for("react.fragment"),b=Symbol.for("react.strict_mode"),S=Symbol.for("react.profiler"),_=Symbol.for("react.consumer"),w=Symbol.for("react.context"),O=Symbol.for("react.forward_ref"),A=Symbol.for("react.suspense"),C=Symbol.for("react.suspense_list"),T=Symbol.for("react.memo"),E=Symbol.for("react.lazy"),V=Symbol.for("react.activity"),y=Symbol.for("react.client.reference"),P=h.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,z=Object.prototype.hasOwnProperty,M=Array.isArray,G=console.createTask?console.createTask:function(){return null};h={"react-stack-bottom-frame":function(J){return J()}};var ne,re={},ae=h["react-stack-bottom-frame"].bind(h,o)(),ee=G(n(o)),le={};Ln.Fragment=m,Ln.jsx=function(J,Z,he,Ae,ze){var Ce=1e4>P.recentlyCreatedOwnerStacks++;return u(J,Z,he,!1,Ae,ze,Ce?Error("react-stack-top-frame"):ae,Ce?G(n(J)):ee)},Ln.jsxs=function(J,Z,he,Ae,ze){var Ce=1e4>P.recentlyCreatedOwnerStacks++;return u(J,Z,he,!0,Ae,ze,Ce?Error("react-stack-top-frame"):ae,Ce?G(n(J)):ee)}}()),Ln}var $c;function Og(){return $c||($c=1,process.env.NODE_ENV==="production"?Ga.exports=wg():Ga.exports=Cg()),Ga.exports}var g=Og();function Tg(e){switch(e.shape_type){case"convex_hull":return new Uh.ConvexGeometry(e.vertices.map(r=>new ve.Vector3(r[0]/1e3,r[1]/1e3,r[2]/1e3)));case"box":return new ve.BoxGeometry(e.size_x/1e3,e.size_y/1e3,e.size_z/1e3);case"sphere":return new ve.SphereGeometry(e.radius/1e3);case"capsule":return new ve.CapsuleGeometry(e.radius/1e3,e.cylinder_height/1e3);case"cylinder":return new ve.CylinderGeometry(e.radius/1e3,e.radius/1e3,e.height/1e3);case"rectangle":return new ve.BoxGeometry(e.size_x/1e3,e.size_y/1e3,0);default:return console.warn(`${e.shape_type} is not supported`),new ve.BufferGeometry}}function Pg({name:e,collider:t,children:r}){var o,s;const n=((o=t.pose)==null?void 0:o.position)??[0,0,0],a=((s=t.pose)==null?void 0:s.orientation)??[0,0,0];return t.margin&&console.warn(`${e} margin is not supported`),g.jsx("mesh",{name:e,position:new ve.Vector3(n[0],n[1],n[2]).divideScalar(1e3),rotation:new ve.Euler(a[0],a[1],a[2],"XYZ"),geometry:Tg(t.shape),children:r})}function Rg({name:e,colliders:t,meshChildrenProvider:r,...n}){return g.jsx("group",{name:e,...n,children:Object.entries(t).map(([a,o])=>g.jsx(Pg,{name:a,collider:o,children:r(a,o)},a))})}function Ag({scene:e,meshChildrenProvider:t}){const r=e.colliders;return g.jsx("group",{children:r&&g.jsx(Rg,{meshChildrenProvider:t,colliders:r})})}function Ni(){return g.jsx(ut.Environment,{children:g.jsx(_g,{})})}function _g({positions:e=[2,0,2,0,2,0,2,0]}){return g.jsxs(g.Fragment,{children:[g.jsx(ut.Lightformer,{intensity:5,"rotation-x":Math.PI/2,position:[0,5,-9],scale:[10,10,1]}),g.jsx("group",{rotation:[0,.5,0],children:g.jsx("group",{children:e.map((t,r)=>g.jsx(ut.Lightformer,{form:"circle",intensity:5,rotation:[Math.PI/2,0,0],position:[t,4,r*4],scale:[3,1,1]},r))})}),g.jsx(ut.Lightformer,{intensity:40,"rotation-y":Math.PI/2,position:[-5,1,-1],scale:[20,.1,1]}),g.jsx(ut.Lightformer,{intensity:20,"rotation-y":-Math.PI,position:[-5,-2,-1],scale:[20,.1,1]}),g.jsx(ut.Lightformer,{"rotation-y":Math.PI/2,position:[-5,-1,-1],scale:[20,.5,1],intensity:5}),g.jsx(ut.Lightformer,{"rotation-y":-Math.PI/2,position:[10,1,0],scale:[20,1,1],intensity:10}),g.jsx(ut.Lightformer,{form:"ring",color:"white",intensity:5,scale:10,position:[-15,4,-18],target:[0,0,0]})]})}function Eg(e){if(e.length<3)return console.log("Not enough vertices to define a plane"),{isCoplanar:!1};const t=new ve.Vector3(e[0].x,e[0].y,e[0].z),r=new ve.Vector3(e[1].x,e[1].y,e[1].z),n=new ve.Vector3(e[2].x,e[2].y,e[2].z),a=new ve.Vector3().subVectors(r,t),o=new ve.Vector3().subVectors(n,t),s=new ve.Vector3().crossVectors(a,o).normalize();for(let i=3;i<e.length;i++){const l=new ve.Vector3(e[i].x,e[i].y,e[i].z),c=new ve.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 Ig({safetyZones:e,...t}){return g.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 ve.Vector3(u.x/1e3,u.y/1e3,u.z/1e3)),l=Eg(i);if(l.isCoplanar&&l.normal){const d=new ve.Vector3().addVectors(i[0],l.normal.multiplyScalar(1e-4));i.push(d)}let c;try{c=new Uh.ConvexGeometry(i)}catch(u){return console.log("Error creating ConvexGeometry:",u),null}return g.jsx("mesh",{geometry:c,children:g.jsx("meshStandardMaterial",{attach:"material",color:"#009f4d",opacity:.2,depthTest:!1,depthWrite:!1,transparent:!0,polygonOffset:!0,polygonOffsetFactor:-s},n)},`${n}-${s}`)})})})}function Vg({trajectory:e,...t}){var n;const r=((n=e.trajectory)==null?void 0:n.map(a=>a.tcp_pose?new ve.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 g.jsx("group",{...t,children:r.length>0&&g.jsx(ut.Line,{points:r,lineWidth:3,polygonOffset:!0,polygonOffsetFactor:10,polygonOffsetUnits:10})})}const Mg={"Jogging.Cartesian.Translation.velocityMmPerSec.lb":"{{amount}} mm/s","Jogging.Cartesian.Rotation.velocityDegPerSec.lb":"{{amount}}°/s","Jogging.Velocity.lb":"Geschwindigkeit","General.degree.variable":"{{amount}}°","General.mm.variable":"{{amount}} mm","Jogging.Cartesian.MotionType.lb":"Bewegungstyp","Jogging.Cartesian.Translation.bt":"Translation","Jogging.Cartesian.Rotation.bt":"Rotation","Jogging.Joints.JointValues.lb":"Gelenkwerte","Jogging.Increment.Continuous.dd":"Fortlaufend","Jogging.Cartesian.Orientation.lb":"Orientierung","Jogging.JointLimitsReached.lb":"Gelenkgrenzen für Gelenk {{jointNumbers}} erreicht","Jogging.Orientation.coordsys":"Roboterbasis","Jogging.Orientation.tool":"Werkzeug","SafetyBar.ActivationToggle.Activate.bt":"Aktivieren","SafetyBar.ActivationToggle.Activated.bt":"Aktiviert","SafetyBar.ActivationToggle.Activating.bt":"Wird aktiviert…","SafetyBar.ActivationToggle.Deactivating.bt":"Wird deaktiviert…","SafetyBar.ControllerType.Physical.lb":"Physisch","SafetyBar.ControllerType.Virtual.lb":"Virtuell","SafetyBar.MotionGroup.Physical.Explanation.lb":"<code>{{motionGroupId}}</code> ist ein physische Robotersteuerung. Für die Bewegung dieses Roboters sind <strong>Sicherheitsmaßnahmen</strong> aktiv.","SafetyBar.MotionGroup.Virtual.Explanation.lb":"<1>{{motionGroupId}}</1> ist eine virtuelle Robotersteuerung ohne physisches Gegenstück. Der Roboter kann ohne Sicherheitsmaßnahmen bewegt werden.","SafetyBar.OperationMode.Auto.Explanation.lb":"Automatischer Betriebsmodus der Robotersteuerung aktiv. Automatisierte Bewegung ohne manuelle Bestätigung freigegeben.","SafetyBar.OperationMode.Automatic.ti":"Automatisch","SafetyBar.OperationMode.Error.Explanation.lb":"Fehler beim Abrufen des Betriebsmodus. Originalhandbediengerät des Roboters verwenden, um Fehler zu lösen.","SafetyBar.OperationMode.Error.lb":"Fehler","SafetyBar.OperationMode.Manual.Explanation.lb":`Die Robotersteuerung befindet sich im manuellen Betriebsmodus. Bei einem physischen Roboter bedeutet dies im Allgemeinen, dass ein Freigabeschalter gedrückt werden muss, damit sich der Roboter erfolgreich bewegen kann.`,"SafetyBar.OperationMode.Manual.lb":"Manuell","SafetyBar.OperationMode.ti":"Betriebsmodus","SafetyBar.SafetyState.Error.Explanation.lb":"Die Robotersteuerung ist in einen unerwarteten Sicherheitszustand eingetreten.","SafetyBar.SafetyState.Error.lb":"Fehler","SafetyBar.SafetyState.Estop.lb":"NOT-AUS","SafetyBar.SafetyState.ManualActionRequired.Explanation.lb":"Die Robotersteuerung ist in einen Sicherheitszustand eingetreten, der manuelle Maßnahmen zur Behebung erfordert.","SafetyBar.SafetyState.ManualActionRequired.lb":"Aktion erforderlich","SafetyBar.SafetyState.Normal.Explanation.lb":"Die Robotersteuerung befindet sich in einem sicheren Zustand. Roboterbewegungen sind möglich.","SafetyBar.SafetyState.Normal.lb":"Sicher","SafetyBar.SafetyState.Stop.Explanation.lb":"Die Robotersteuerung ist in einen Stoppzustand übergegangen. Bis der Stoppzustand aufgelöst ist, ist keine Bewegung mehr möglich.","SafetyBar.SafetyState.Stop.lb":"Stopp","SafetyBar.SafetyState.ti":"Sicherheitszustand","SafetyBar.StopState.Estop.Explanation.lb":"NOT-AUS aktiviert. NOT-AUS freischalten, um Roboter zu bewegen.","Jogging.Increment.hlb":"Schrittgröße","Jogging.CoordinateSystem.hlb":"Koordinatensystem","Jogging.Cartesian.bt":"Kartesisch","Jogging.Joints.bt":"Gelenke","Jogging.Velocity.bt":"Geschwindigkeit","CycleTimer.RemainingTime.lb":"Verbleibende Zeit","CycleTimer.OfTime.lb":"von {{time}} min.","CycleTimer.Time.lb":"{{time}} min.","CycleTimer.Error.lb":"Fehler","CycleTimer.WaitingForCycle.lb":"Warten auf Programmzyklus","CycleTimer.CycleTime.lb":"Zykluszeit","CycleTimer.Measuring.lb":"wird gemessen...","CycleTimer.Determined.lb":"bestimmt","ProgramControl.Start.bt":"Start","ProgramControl.Resume.bt":"Weiter","ProgramControl.Retry.bt":"Wiederholen","ProgramControl.Pause.bt":"Pause","ProgramControl.Stop.bt":"Stopp","ProgramStateIndicator.Running.lb":"In Betrieb","ProgramStateIndicator.Error.lb":"Fehler","ProgramStateIndicator.EStop.lb":"Not-Aus","ProgramStateIndicator.Idle.lb":"Leerlauf","ProgramStateIndicator.Paused.lb":"Pausiert","ProgramStateIndicator.Ready.lb":"Bereit","ProgramStateIndicator.Stopped.lb":"Gestoppt","ProgramStateIndicator.Auto.lb":"Auto","ProgramStateIndicator.Manual.lb":"Manuell","ProgramStateIndicator.ManualT1.lb":"Manuell T1","ProgramStateIndicator.ManualT2.lb":"Manuell T2","RobotSetupReadinessIndicator.Ready.lb":"Bereit","RobotSetupReadinessIndicator.RobotDisconnected.lb":"Roboter getrennt","RobotSetupReadinessIndicator.PreconditionNotFulfilled.lb":"Voraussetzung nicht erfüllt","RobotCard.Runtime.lb":"Laufzeit","RobotCard.DriveToHome.bt":"Zur Home-Position fahren"},jg={"Jogging.Cartesian.Translation.velocityMmPerSec.lb":"{{amount}} mm/s","Jogging.Cartesian.Rotation.velocityDegPerSec.lb":"{{amount}}°/s","Jogging.Velocity.lb":"Velocity","General.degree.variable":"{{amount}}°","General.mm.variable":"{{amount}} mm","Jogging.Cartesian.MotionType.lb":"Motion type","Jogging.Cartesian.Translation.bt":"Translation","Jogging.Cartesian.Rotation.bt":"Rotation","Jogging.Joints.JointValues.lb":"Joint values","Jogging.Increment.Continuous.dd":"Continuous","Jogging.Cartesian.Orientation.lb":"Orientation","Jogging.Activating.lb":"Activating jogging","Jogging.JointLimitsReached.lb":"Joint limit reached for joint {{jointNumbers}}","Jogging.Orientation.coordsys":"Robot base","Jogging.Orientation.tool":"Tool","SafetyBar.ActivationToggle.Activate.bt":"Activate","SafetyBar.ActivationToggle.Activated.bt":"Activated","SafetyBar.ActivationToggle.Activating.bt":"Activating","SafetyBar.ActivationToggle.Deactivating.bt":"Deactivating","SafetyBar.ControllerType.Physical.lb":"Physical","SafetyBar.ControllerType.Virtual.lb":"Virtual","SafetyBar.MotionGroup.Physical.Explanation.lb":"<code>{{motionGroupId}}</code> is a physical robot controller. <strong>Safety precautions</strong> are active for the movement of this robot.","SafetyBar.MotionGroup.Virtual.Explanation.lb":"<1>{{motionGroupId}}</1> is a virtual robot controller with no physical counterpart. It can be freely manipulated without safety precautions.","SafetyBar.OperationMode.Auto.Explanation.lb":"Automatic operation mode active. Automated movement without manual confirmation enabled.","SafetyBar.OperationMode.Automatic.ti":"Automatic","SafetyBar.OperationMode.Error.Explanation.lb":"Failed to get operation mode. Use the original control panel to resolve the error.","SafetyBar.OperationMode.Error.lb":"Error","SafetyBar.OperationMode.Manual.Explanation.lb":"The robot controller is in manual operation mode. On a physical robot, this generally indicates that an enabling switch must be held for the robot to move successfully.","SafetyBar.OperationMode.Manual.lb":"Manual","SafetyBar.OperationMode.ti":"Operation mode","SafetyBar.SafetyState.Error.Explanation.lb":"The robot controller has entered an unexpected safety state.","SafetyBar.SafetyState.Error.lb":"Error","SafetyBar.SafetyState.Estop.lb":"E-Stop","SafetyBar.SafetyState.ManualActionRequired.Explanation.lb":"The robot controller has entered a safety state requiring manual action to resolve.","SafetyBar.SafetyState.ManualActionRequired.lb":"Action required","SafetyBar.SafetyState.Normal.Explanation.lb":"The robot controller is in a safe state. Robot movement is enabled.","SafetyBar.SafetyState.Normal.lb":"Safe","SafetyBar.SafetyState.Stop.Explanation.lb":"The robot controller has entered a stop state. Movement is no longer possible until the stop state is resolved.","SafetyBar.SafetyState.Stop.lb":"Stop","SafetyBar.SafetyState.ti":"Safety state","SafetyBar.StopState.Estop.Explanation.lb":"An emergency stop of the robot controller has been triggered. Movement of the robot is no longer possible until the estop is released.","Jogging.Increment.hlb":"Increment","Jogging.CoordinateSystem.hlb":"Coordinate system","Jogging.Cartesian.bt":"Cartesian","Jogging.Joints.bt":"Joints","Jogging.Velocity.bt":"Velocity","CycleTimer.RemainingTime.lb":"Time remaining","CycleTimer.OfTime.lb":"of {{time}} min.","CycleTimer.Time.lb":"{{time}} min.","CycleTimer.Error.lb":"Error","CycleTimer.WaitingForCycle.lb":"Waiting for program cycle","CycleTimer.CycleTime.lb":"Cycle Time","CycleTimer.Measuring.lb":"measuring...","CycleTimer.Determined.lb":"determined","ProgramControl.Start.bt":"Start","ProgramControl.Resume.bt":"Resume","ProgramControl.Retry.bt":"Retry","ProgramControl.Pause.bt":"Pause","ProgramControl.Stop.bt":"Stop","ProgramStateIndicator.Running.lb":"Running","ProgramStateIndicator.Error.lb":"Error","ProgramStateIndicator.EStop.lb":"E-Stop","ProgramStateIndicator.Idle.lb":"Idle","ProgramStateIndicator.Paused.lb":"Paused","ProgramStateIndicator.Ready.lb":"Ready","ProgramStateIndicator.Stopped.lb":"Stopped","ProgramStateIndicator.Auto.lb":"Auto","ProgramStateIndicator.Manual.lb":"Manual","ProgramStateIndicator.ManualT1.lb":"Manual T1","ProgramStateIndicator.ManualT2.lb":"Manual T2","RobotSetupReadinessIndicator.Ready.lb":"Ready","RobotSetupReadinessIndicator.RobotDisconnected.lb":"Robot disconnected","RobotSetupReadinessIndicator.PreconditionNotFulfilled.lb":"Precondition not fulfilled","RobotCard.Runtime.lb":"Runtime","RobotCard.DriveToHome.bt":"Drive to Home"},El=gg.createInstance();El.use(yg).init({supportedLngs:["en","de"],resources:{en:{translations:jg},de:{translations:Mg}},ns:["translations"],defaultNS:"translations",detection:{order:["navigator","htmlTag"]}});function Ke(e){return r=>g.jsx(kg,{children:g.jsx(e,{...r})})}const kg=({children:e})=>g.jsx(Re.I18nextProvider,{i18n:El,children:e}),$g=e=>g.jsx(R.SvgIcon,{...e,viewBox:"0 0 10 8",children:g.jsx("path",{d:"M8.825 0.9125L5 4.72917L1.175 0.9125L0 2.0875L5 7.0875L10 2.0875L8.825 0.9125Z",fill:"currentColor",fillOpacity:"0.56"})}),Ug=Ke(ye.observer(e=>{const{appIcon:t,appName:r,apps:n=[],onAppSelect:a,sx:o}=e,[s,i]=W.useState(null),l=!!s,c=h=>{i(h.currentTarget)},u=()=>{i(null)},d=h=>{u(),h.onClick?h.onClick():h.href&&(window.location.href=h.href),a==null||a(h)};return g.jsxs(g.Fragment,{children:[g.jsx(R.AppBar,{position:"static",sx:{boxShadow:"none",backgroundImage:"none","& .MuiAppBar-root":{backgroundImage:"none",backgroundColor:"transparent"},...o},children:g.jsxs(R.Toolbar,{sx:{minHeight:"62px !important"},children:[g.jsx(R.Box,{sx:{mr:2,display:"flex",alignItems:"center"},children:t}),g.jsxs(R.Box,{sx:{display:"flex",alignItems:"center",flexGrow:1},children:[g.jsx(R.Typography,{variant:"h6",component:"div",sx:{fontWeight:700,fontSize:"20px",lineHeight:"24px",letterSpacing:0},children:r}),n.length>0&&g.jsx(R.IconButton,{color:"inherit","aria-label":"switch app","aria-controls":"app-menu","aria-haspopup":"true",onClick:c,sx:{ml:2,width:30,height:30,borderRadius:"8px",padding:"5px",backgroundColor:h=>R.alpha(h.palette.common.white,.1),opacity:1,"&:hover":{backgroundColor:h=>R.alpha(h.palette.common.white,.16)},"& .MuiSvgIcon-root":{fontSize:"10px",width:"10px",height:"8px"}},children:g.jsx($g,{})})]})]})}),g.jsx(R.Backdrop,{open:l,onClick:u,sx:{backdropFilter:"blur(4px)",backgroundColor:"rgba(0, 0, 0, 0.3)",zIndex:h=>h.zIndex.modal-1}}),g.jsx(R.Menu,{id:"app-menu",anchorEl:s,open:l,onClose:u,anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},sx:{zIndex:h=>h.zIndex.modal,"& .MuiPaper-root":{minWidth:200,mt:1}},children:n.map(h=>g.jsxs(R.MenuItem,{onClick:()=>d(h),sx:{display:"flex",alignItems:"center",gap:2,py:1.5,px:2},children:[g.jsx(R.Box,{sx:{display:"flex",alignItems:"center"},children:h.icon}),g.jsx(R.Typography,{variant:"body1",children:h.name})]},h.id))})]})}));function K(){return K=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},K.apply(null,arguments)}function ur(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 ts(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 Lh(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=Lh(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function Pt(){for(var e,t,r=0,n="",a=arguments.length;r<a;r++)(e=arguments[r])&&(t=Lh(e))&&(n&&(n+=" "),n+=t);return n}function dr(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 Bh="$$material";function Dg(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 Lg={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 Bg(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var Fg=/[A-Z]|^ms/g,Ng=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Fh=function(t){return t.charCodeAt(1)===45},Uc=function(t){return t!=null&&typeof t!="boolean"},ei=Bg(function(e){return Fh(e)?e:e.replace(Fg,"-$&").toLowerCase()}),Dc=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(Ng,function(n,a,o){return lr={name:a,styles:o,next:lr},a})}return Lg[t]!==1&&!Fh(t)&&typeof r=="number"&&r!==0?r+"px":r};function _o(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 lr={name:a.name,styles:a.styles,next:lr},a.name;var o=r;if(o.styles!==void 0){var s=o.next;if(s!==void 0)for(;s!==void 0;)lr={name:s.name,styles:s.styles,next:lr},s=s.next;var i=o.styles+";";return i}return zg(e,t,r)}}var l=r;return l}function zg(e,t,r){var n="";if(Array.isArray(r))for(var a=0;a<r.length;a++)n+=_o(e,t,r[a])+";";else for(var o in r){var s=r[o];if(typeof s!="object"){var i=s;Uc(i)&&(n+=ei(o)+":"+Dc(o,i)+";")}else if(Array.isArray(s)&&typeof s[0]=="string"&&t==null)for(var l=0;l<s.length;l++)Uc(s[l])&&(n+=ei(o)+":"+Dc(o,s[l])+";");else{var c=_o(e,t,s);switch(o){case"animation":case"animationName":{n+=ei(o)+":"+c+";";break}default:n+=o+"{"+c+"}"}}}return n}var Lc=/label:\s*([^\s;{]+)\s*(;|$)/g,lr;function Gg(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="";lr=void 0;var o=e[0];if(o==null||o.raw===void 0)n=!1,a+=_o(r,t,o);else{var s=o;a+=s[0]}for(var i=1;i<e.length;i++)if(a+=_o(r,t,e[i]),n){var l=o;a+=l[i]}Lc.lastIndex=0;for(var c="",u;(u=Lc.exec(a))!==null;)c+="-"+u[1];var d=Dg(a)+c;return{name:d,styles:a,next:lr}}/** * @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 Hg(e,t){const r=bg(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 qg(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const Bc=[];function Fc(e){return Bc[0]=e,Gg(Bc)}var Ha={exports:{}},Se={};/** * @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 Nc;function Wg(){if(Nc)return Se;Nc=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 Se.ContextConsumer=o,Se.ContextProvider=s,Se.Element=e,Se.ForwardRef=i,Se.Fragment=r,Se.Lazy=d,Se.Memo=u,Se.Portal=t,Se.Profiler=a,Se.StrictMode=n,Se.Suspense=l,Se.SuspenseList=c,Se.isContextConsumer=function(m){return f(m)===o},Se.isContextProvider=function(m){return f(m)===s},Se.isElement=function(m){return typeof m=="object"&&m!==null&&m.$$typeof===e},Se.isForwardRef=function(m){return f(m)===i},Se.isFragment=function(m){return f(m)===r},Se.isLazy=function(m){return f(m)===d},Se.isMemo=function(m){return f(m)===u},Se.isPortal=function(m){return f(m)===t},Se.isProfiler=function(m){return f(m)===a},Se.isStrictMode=function(m){return f(m)===n},Se.isSuspense=function(m){return f(m)===l},Se.isSuspenseList=function(m){return f(m)===c},Se.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)},Se.typeOf=f,Se}var we={};/** * @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 zc;function Jg(){return zc||(zc=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");we.ContextConsumer=s,we.ContextProvider=i,we.Element=t,we.ForwardRef=l,we.Fragment=n,we.Lazy=h,we.Memo=d,we.Portal=r,we.Profiler=o,we.StrictMode=a,we.Suspense=c,we.SuspenseList=u,we.isContextConsumer=function(m){return e(m)===s},we.isContextProvider=function(m){return e(m)===i},we.isElement=function(m){return typeof m=="object"&&m!==null&&m.$$typeof===t},we.isForwardRef=function(m){return e(m)===l},we.isFragment=function(m){return e(m)===n},we.isLazy=function(m){return e(m)===h},we.isMemo=function(m){return e(m)===d},we.isPortal=function(m){return e(m)===r},we.isProfiler=function(m){return e(m)===o},we.isStrictMode=function(m){return e(m)===a},we.isSuspense=function(m){return e(m)===c},we.isSuspenseList=function(m){return e(m)===u},we.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)},we.typeOf=e}()),we}var Gc;function Yg(){return Gc||(Gc=1,process.env.NODE_ENV==="production"?Ha.exports=Wg():Ha.exports=Jg()),Ha.exports}var Eo=Yg();function Mt(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 Nh(e){if(N.isValidElement(e)||Eo.isValidElementType(e)||!Mt(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=Nh(e[r])}),t}function tt(e,t,r={clone:!0}){const n=r.clone?{...e}:e;return Mt(e)&&Mt(t)&&Object.keys(t).forEach(a=>{N.isValidElement(t[a])||Eo.isValidElementType(t[a])?n[a]=t[a]:Mt(t[a])&&Object.prototype.hasOwnProperty.call(e,a)&&Mt(e[a])?n[a]=tt(e[a],t[a],r):r.clone?n[a]=Mt(t[a])?Nh(t[a]):t[a]:n[a]=t[a]}),n}const Kg=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 Qg(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5,...a}=e,o=Kg(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 Xg(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 Zg(e,t){return t==="@"||t.startsWith("@")&&(e.some(r=>t.startsWith(`@${r}`))||!!t.match(/^@\d/))}function ey(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\`.`:dr(18,`(${t})`));return null}const[,n,a]=r,o=Number.isNaN(+n)?n||0:+n;return e.containerQueries(a).up(o)}function ty(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 ry={borderRadius:4},mr=process.env.NODE_ENV!=="production"?x.oneOfType([x.number,x.string,x.object,x.array]):{};function oa(e,t){return t?tt(e,t,{clone:!1}):e}const rs={xs:0,sm:600,md:900,lg:1200,xl:1536},Hc={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${rs[e]}px)`},ny={containerQueries:e=>({up:t=>{let r=typeof t=="number"?t:rs[t]||t;return typeof r=="number"&&(r=`${r}px`),e?`@container ${e} (min-width:${r})`:`@container (min-width:${r})`}})};function Rt(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const o=n.breakpoints||Hc;return t.reduce((s,i,l)=>(s[o.up(o.keys[l])]=r(t[l]),s),{})}if(typeof t=="object"){const o=n.breakpoints||Hc;return Object.keys(t).reduce((s,i)=>{if(Zg(o.keys,i)){const l=ey(n.containerQueries?n:ny,i);l&&(s[l]=r(t[i],i))}else if(Object.keys(o.values||rs).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 zh(e={}){var r;return((r=e.keys)==null?void 0:r.reduce((n,a)=>{const o=e.up(a);return n[o]={},n},{}))||{}}function Gh(e,t){return e.reduce((r,n)=>{const a=r[n];return(!a||Object.keys(a).length===0)&&delete r[n],r},t)}function ay(e,...t){const r=zh(e),n=[r,...t].reduce((a,o)=>tt(a,o),{});return Gh(Object.keys(r),n)}function oy(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 ti({values:e,breakpoints:t,base:r}){const n=r||oy(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 et(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":dr(7));return e.charAt(0).toUpperCase()+e.slice(1)}function ns(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 Io(e,t,r,n=r){let a;return typeof e=="function"?a=e(r):Array.isArray(e)?a=e[r]||n:a=ns(e,r)||n,t&&(a=t(a,n,e)),a}function De(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=ns(l,n)||{};return Rt(s,i,d=>{let h=Io(c,a,d);return d===h&&typeof d=="string"&&(h=Io(c,a,`${t}${d==="default"?"":et(d)}`,d)),r===!1?h:{[r]:h}})};return o.propTypes=process.env.NODE_ENV!=="production"?{[t]:mr}:{},o.filterProps=[t],o}function sy(e){const t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}const iy={m:"margin",p:"padding"},ly={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},qc={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},cy=sy(e=>{if(e.length>2)if(qc[e])e=qc[e];else return[e];const[t,r]=e.split(""),n=iy[t],a=ly[r]||"";return Array.isArray(a)?a.map(o=>n+o):[n+a]}),as=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],os=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],uy=[...as,...os];function Pa(e,t,r,n){const a=ns(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 ss(e){return Pa(e,"spacing",8,"spacing")}function Ar(e,t){return typeof t=="string"||t==null?t:e(t)}function dy(e,t){return r=>e.reduce((n,a)=>(n[a]=Ar(t,r),n),{})}function hy(e,t,r,n){if(!t.includes(r))return null;const a=cy(r),o=dy(a,n),s=e[r];return Rt(e,s,o)}function Hh(e,t){const r=ss(e.theme);return Object.keys(e).map(n=>hy(e,t,n,r)).reduce(oa,{})}function $e(e){return Hh(e,as)}$e.propTypes=process.env.NODE_ENV!=="production"?as.reduce((e,t)=>(e[t]=mr,e),{}):{};$e.filterProps=as;function Ue(e){return Hh(e,os)}Ue.propTypes=process.env.NODE_ENV!=="production"?os.reduce((e,t)=>(e[t]=mr,e),{}):{};Ue.filterProps=os;process.env.NODE_ENV!=="production"&&uy.reduce((e,t)=>(e[t]=mr,e),{});function qh(e=8,t=ss({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 is(...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]?oa(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 ft(e){return typeof e!="number"?e:`${e}px solid`}function xt(e,t){return De({prop:e,themeKey:"borders",transform:t})}const py=xt("border",ft),my=xt("borderTop",ft),fy=xt("borderRight",ft),gy=xt("borderBottom",ft),yy=xt("borderLeft",ft),by=xt("borderColor"),xy=xt("borderTopColor"),vy=xt("borderRightColor"),Sy=xt("borderBottomColor"),wy=xt("borderLeftColor"),Cy=xt("outline",ft),Oy=xt("outlineColor"),ls=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Pa(e.theme,"shape.borderRadius",4,"borderRadius"),r=n=>({borderRadius:Ar(t,n)});return Rt(e,e.borderRadius,r)}return null};ls.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:mr}:{};ls.filterProps=["borderRadius"];is(py,my,fy,gy,yy,by,xy,vy,Sy,wy,ls,Cy,Oy);const cs=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Pa(e.theme,"spacing",8,"gap"),r=n=>({gap:Ar(t,n)});return Rt(e,e.gap,r)}return null};cs.propTypes=process.env.NODE_ENV!=="production"?{gap:mr}:{};cs.filterProps=["gap"];const us=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Pa(e.theme,"spacing",8,"columnGap"),r=n=>({columnGap:Ar(t,n)});return Rt(e,e.columnGap,r)}return null};us.propTypes=process.env.NODE_ENV!=="production"?{columnGap:mr}:{};us.filterProps=["columnGap"];const ds=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Pa(e.theme,"spacing",8,"rowGap"),r=n=>({rowGap:Ar(t,n)});return Rt(e,e.rowGap,r)}return null};ds.propTypes=process.env.NODE_ENV!=="production"?{rowGap:mr}:{};ds.filterProps=["rowGap"];const Ty=De({prop:"gridColumn"}),Py=De({prop:"gridRow"}),Ry=De({prop:"gridAutoFlow"}),Ay=De({prop:"gridAutoColumns"}),_y=De({prop:"gridAutoRows"}),Ey=De({prop:"gridTemplateColumns"}),Iy=De({prop:"gridTemplateRows"}),Vy=De({prop:"gridTemplateAreas"}),My=De({prop:"gridArea"});is(cs,us,ds,Ty,Py,Ry,Ay,_y,Ey,Iy,Vy,My);function un(e,t){return t==="grey"?t:e}const jy=De({prop:"color",themeKey:"palette",transform:un}),ky=De({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:un}),$y=De({prop:"backgroundColor",themeKey:"palette",transform:un});is(jy,ky,$y);function dt(e){return e<=1&&e!==0?`${e*100}%`:e}const Uy=De({prop:"width",transform:dt}),Il=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])||rs[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:dt(r)}};return Rt(e,e.maxWidth,t)}return null};Il.filterProps=["maxWidth"];const Dy=De({prop:"minWidth",transform:dt}),Ly=De({prop:"height",transform:dt}),By=De({prop:"maxHeight",transform:dt}),Fy=De({prop:"minHeight",transform:dt});De({prop:"size",cssProperty:"width",transform:dt});De({prop:"size",cssProperty:"height",transform:dt});const Ny=De({prop:"boxSizing"});is(Uy,Il,Dy,Ly,By,Fy,Ny);const Ra={border:{themeKey:"borders",transform:ft},borderTop:{themeKey:"borders",transform:ft},borderRight:{themeKey:"borders",transform:ft},borderBottom:{themeKey:"borders",transform:ft},borderLeft:{themeKey:"borders",transform:ft},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:ft},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:ls},color:{themeKey:"palette",transform:un},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:un},backgroundColor:{themeKey:"palette",transform:un},p:{style:Ue},pt:{style:Ue},pr:{style:Ue},pb:{style:Ue},pl:{style:Ue},px:{style:Ue},py:{style:Ue},padding:{style:Ue},paddingTop:{style:Ue},paddingRight:{style:Ue},paddingBottom:{style:Ue},paddingLeft:{style:Ue},paddingX:{style:Ue},paddingY:{style:Ue},paddingInline:{style:Ue},paddingInlineStart:{style:Ue},paddingInlineEnd:{style:Ue},paddingBlock:{style:Ue},paddingBlockStart:{style:Ue},paddingBlockEnd:{style:Ue},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:cs},rowGap:{style:ds},columnGap:{style:us},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:dt},maxWidth:{style:Il},minWidth:{transform:dt},height:{transform:dt},maxHeight:{transform:dt},minHeight:{transform:dt},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 zy(...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 Gy(e,t){return typeof e=="function"?e(t):e}function Hy(){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=ns(a,c)||{};return d?d(s):Rt(s,n,f=>{let m=Io(h,u,f);return f===m&&typeof f=="string"&&(m=Io(h,u,`${r}${f==="default"?"":et(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??Ra;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=zh(a.breakpoints),u=Object.keys(c);let d=c;return Object.keys(l).forEach(h=>{const p=Gy(l[h],a);if(p!=null)if(typeof p=="object")if(o[h])d=oa(d,e(h,p,a,o));else{const f=Rt({theme:a},p,m=>({[h]:m}));zy(f,p)?d[h]=t({sx:p,theme:a}):d=oa(d,f)}else d=oa(d,e(h,p,a,o))}),Xg(a,Gh(u,d))}return Array.isArray(n)?n.map(s):s(n)}return t}const fn=Hy();fn.filterProps=["sx"];function qy(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 hs(e={},...t){const{breakpoints:r={},palette:n={},spacing:a,shape:o={},...s}=e,i=Qg(r),l=qh(a);let c=tt({breakpoints:i,direction:"ltr",components:{},palette:{mode:"light",...n},spacing:l,shape:{...ry,...o}},s);return c=ty(c),c.applyStyles=qy,c=t.reduce((u,d)=>tt(u,d),c),c.unstable_sxConfig={...Ra,...s==null?void 0:s.unstable_sxConfig},c.unstable_sx=function(d){return fn({sx:d,theme:this})},c}function Wy(e){return Object.keys(e).length===0}function Jy(e=null){const t=N.useContext(xg.ThemeContext);return!t||Wy(t)?e:t}const Yy=hs();function Ky(e=Yy){return Jy(e)}const Qy=e=>{var n;const t={systemProps:{},otherProps:{}},r=((n=e==null?void 0:e.theme)==null?void 0:n.unstable_sxConfig)??Ra;return Object.keys(e).forEach(a=>{r[a]?t.systemProps[a]=e[a]:t.otherProps[a]=e[a]}),t};function Xy(e){const{sx:t,...r}=e,{systemProps:n,otherProps:a}=Qy(r);let o;return Array.isArray(t)?o=[n,...t]:typeof t=="function"?o=(...s)=>{const i=t(...s);return Mt(i)?{...n,...i}:n}:o={...n,...t},{...a,sx:o}}const Wc=e=>e,Zy=()=>{let e=Wc;return{configure(t){e=t},generate(t){return e(t)},reset(){e=Wc}}},e0=Zy(),t0={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly: