@wandelbots/wandelbots-js-react-components 1.29.0 → 1.29.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +24 -24
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1766 -1691
- package/dist/index.js.map +1 -1
- package/dist/src/Setup.d.ts.map +1 -0
- package/dist/src/components/3d-viewport/CoordinateSystemTransform.d.ts.map +1 -0
- package/dist/src/components/3d-viewport/PresetEnvironment.d.ts.map +1 -0
- package/dist/src/components/3d-viewport/SafetyZonesRenderer.d.ts.map +1 -0
- package/dist/src/components/ConsoleFilter.d.ts.map +1 -0
- package/dist/src/components/CopyableText.d.ts.map +1 -0
- package/dist/src/components/LoadingButton.d.ts.map +1 -0
- package/dist/src/components/LoadingCover.d.ts.map +1 -0
- package/dist/src/components/SelectableFab.d.ts.map +1 -0
- package/dist/src/components/ThemeSelect.d.ts.map +1 -0
- package/dist/src/components/TransparentOverlay.d.ts.map +1 -0
- package/dist/src/components/VelocitySlider.d.ts.map +1 -0
- package/dist/src/components/jogging/JoggingActivationRequired.d.ts.map +1 -0
- package/dist/src/components/jogging/JoggingCartesianAxisControl.d.ts.map +1 -0
- package/dist/src/components/jogging/JoggingCartesianTab.d.ts.map +1 -0
- package/dist/src/components/jogging/JoggingCartesianValues.d.ts.map +1 -0
- package/dist/src/components/jogging/JoggingFreedriveTab.d.ts.map +1 -0
- package/dist/src/components/jogging/JoggingJointLimitDetector.d.ts.map +1 -0
- package/dist/src/components/jogging/JoggingJointRotationControl.d.ts.map +1 -0
- package/dist/src/components/jogging/JoggingJointTab.d.ts.map +1 -0
- package/dist/src/components/jogging/JoggingJointValues.d.ts.map +1 -0
- package/dist/src/components/jogging/JoggingOptions.d.ts.map +1 -0
- package/dist/src/components/jogging/JoggingPanel.d.ts.map +1 -0
- package/dist/src/components/jogging/JoggingStore.d.ts.map +1 -0
- package/dist/src/components/jogging/JoggingVelocitySlider.d.ts.map +1 -0
- package/dist/src/components/modal/NoMotionGroupModal.d.ts.map +1 -0
- package/dist/src/components/robots/ABB_1200_07_7.d.ts.map +1 -0
- package/dist/src/components/robots/ABB_1300_115_10.d.ts.map +1 -0
- package/dist/src/components/robots/AxisConfig.d.ts.map +1 -0
- package/dist/src/components/robots/DHRobot.d.ts.map +1 -0
- package/dist/src/components/robots/FANUC_ARC_Mate_100iD.d.ts.map +1 -0
- package/dist/src/components/robots/FANUC_ARC_Mate_120iD.d.ts.map +1 -0
- package/dist/src/components/robots/FANUC_CRX10iA.d.ts.map +1 -0
- package/dist/src/components/robots/FANUC_CRX10iAL.d.ts.map +1 -0
- package/dist/src/components/robots/FANUC_CRX20iAL.d.ts.map +1 -0
- package/dist/src/components/robots/FANUC_CRX25iA.d.ts.map +1 -0
- package/dist/src/components/robots/FANUC_CRX25iAL.d.ts.map +1 -0
- package/dist/src/components/robots/FANUC_LR_Mate_200iD.d.ts.map +1 -0
- package/dist/src/components/robots/FANUC_LR_Mate_200iD4S.d.ts.map +1 -0
- package/dist/src/components/robots/FANUC_LR_Mate_200iD7L.d.ts.map +1 -0
- package/dist/src/components/robots/KUKA_KR16_R2010_2.d.ts.map +1 -0
- package/dist/src/components/robots/KUKA_KR210_R2700.d.ts.map +1 -0
- package/dist/src/components/robots/KUKA_KR270_R2700.d.ts.map +1 -0
- package/dist/src/components/robots/KUKA_KR6_R700_2.d.ts.map +1 -0
- package/dist/src/components/robots/Robot.d.ts.map +1 -0
- package/dist/src/components/robots/RobotAnimator.d.ts.map +1 -0
- package/dist/src/components/robots/SupportedRobot.d.ts.map +1 -0
- package/dist/src/components/robots/UniversalRobots_UR10CB.d.ts.map +1 -0
- package/dist/src/components/robots/UniversalRobots_UR10e.d.ts.map +1 -0
- package/dist/src/components/robots/UniversalRobots_UR3CB.d.ts.map +1 -0
- package/dist/src/components/robots/UniversalRobots_UR3e.d.ts.map +1 -0
- package/dist/src/components/robots/UniversalRobots_UR5CB.d.ts.map +1 -0
- package/dist/src/components/robots/UniversalRobots_UR5e.d.ts.map +1 -0
- package/dist/src/components/robots/Yaskawa_AR1440.d.ts.map +1 -0
- package/dist/src/components/robots/Yaskawa_AR1730.d.ts.map +1 -0
- package/dist/src/components/robots/Yaskawa_AR2010.d.ts.map +1 -0
- package/dist/src/components/robots/Yaskawa_AR3120.d.ts.map +1 -0
- package/dist/src/components/robots/Yaskawa_AR900.d.ts.map +1 -0
- package/dist/src/components/robots/Yaskawa_GP50.d.ts.map +1 -0
- package/dist/src/components/robots/types.d.ts.map +1 -0
- package/dist/src/components/utils/converters.d.ts.map +1 -0
- package/dist/src/components/utils/errorHandling.d.ts.map +1 -0
- package/dist/src/components/utils/hooks.d.ts.map +1 -0
- package/dist/src/components/utils/robotTreeQuery.d.ts.map +1 -0
- package/dist/src/components/wandelscript-editor/WandelscriptEditor.d.ts.map +1 -0
- package/dist/src/components/wandelscript-editor/wandelscript.tmLanguage.d.ts.map +1 -0
- package/dist/src/externalizeComponent.d.ts.map +1 -0
- package/dist/src/i18n/config.d.ts.map +1 -0
- package/dist/src/icons/index.d.ts.map +1 -0
- package/dist/src/index.d.ts.map +1 -0
- package/dist/src/themes/createDarkTheme.d.ts.map +1 -0
- package/dist/src/themes/createLightTheme.d.ts.map +1 -0
- package/dist/src/themes/themeTypes.d.ts.map +1 -0
- package/dist/src/themes/theming.d.ts.map +1 -0
- package/package.json +1 -1
- package/src/components/robots/SupportedRobot.tsx +7 -1
- package/src/components/robots/UniversalRobots_UR10e.tsx +231 -171
- package/dist/Setup.d.ts.map +0 -1
- package/dist/components/3d-viewport/CoordinateSystemTransform.d.ts.map +0 -1
- package/dist/components/3d-viewport/PresetEnvironment.d.ts.map +0 -1
- package/dist/components/3d-viewport/SafetyZonesRenderer.d.ts.map +0 -1
- package/dist/components/ConsoleFilter.d.ts.map +0 -1
- package/dist/components/CopyableText.d.ts.map +0 -1
- package/dist/components/LoadingButton.d.ts.map +0 -1
- package/dist/components/LoadingCover.d.ts.map +0 -1
- package/dist/components/SelectableFab.d.ts.map +0 -1
- package/dist/components/ThemeSelect.d.ts.map +0 -1
- package/dist/components/TransparentOverlay.d.ts.map +0 -1
- package/dist/components/VelocitySlider.d.ts.map +0 -1
- package/dist/components/jogging/JoggingActivationRequired.d.ts.map +0 -1
- package/dist/components/jogging/JoggingCartesianAxisControl.d.ts.map +0 -1
- package/dist/components/jogging/JoggingCartesianTab.d.ts.map +0 -1
- package/dist/components/jogging/JoggingCartesianValues.d.ts.map +0 -1
- package/dist/components/jogging/JoggingFreedriveTab.d.ts.map +0 -1
- package/dist/components/jogging/JoggingJointLimitDetector.d.ts.map +0 -1
- package/dist/components/jogging/JoggingJointRotationControl.d.ts.map +0 -1
- package/dist/components/jogging/JoggingJointTab.d.ts.map +0 -1
- package/dist/components/jogging/JoggingJointValues.d.ts.map +0 -1
- package/dist/components/jogging/JoggingOptions.d.ts.map +0 -1
- package/dist/components/jogging/JoggingPanel.d.ts.map +0 -1
- package/dist/components/jogging/JoggingStore.d.ts.map +0 -1
- package/dist/components/jogging/JoggingVelocitySlider.d.ts.map +0 -1
- package/dist/components/modal/NoMotionGroupModal.d.ts.map +0 -1
- package/dist/components/robots/ABB_1200_07_7.d.ts.map +0 -1
- package/dist/components/robots/ABB_1300_115_10.d.ts.map +0 -1
- package/dist/components/robots/AxisConfig.d.ts.map +0 -1
- package/dist/components/robots/DHRobot.d.ts.map +0 -1
- package/dist/components/robots/FANUC_ARC_Mate_100iD.d.ts.map +0 -1
- package/dist/components/robots/FANUC_ARC_Mate_120iD.d.ts.map +0 -1
- package/dist/components/robots/FANUC_CRX10iA.d.ts.map +0 -1
- package/dist/components/robots/FANUC_CRX10iAL.d.ts.map +0 -1
- package/dist/components/robots/FANUC_CRX20iAL.d.ts.map +0 -1
- package/dist/components/robots/FANUC_CRX25iA.d.ts.map +0 -1
- package/dist/components/robots/FANUC_CRX25iAL.d.ts.map +0 -1
- package/dist/components/robots/FANUC_LR_Mate_200iD.d.ts.map +0 -1
- package/dist/components/robots/FANUC_LR_Mate_200iD4S.d.ts.map +0 -1
- package/dist/components/robots/FANUC_LR_Mate_200iD7L.d.ts.map +0 -1
- package/dist/components/robots/KUKA_KR16_R2010_2.d.ts.map +0 -1
- package/dist/components/robots/KUKA_KR210_R2700.d.ts.map +0 -1
- package/dist/components/robots/KUKA_KR270_R2700.d.ts.map +0 -1
- package/dist/components/robots/KUKA_KR6_R700_2.d.ts.map +0 -1
- package/dist/components/robots/Robot.d.ts.map +0 -1
- package/dist/components/robots/RobotAnimator.d.ts.map +0 -1
- package/dist/components/robots/SupportedRobot.d.ts.map +0 -1
- package/dist/components/robots/UniversalRobots_UR10CB.d.ts.map +0 -1
- package/dist/components/robots/UniversalRobots_UR10e.d.ts.map +0 -1
- package/dist/components/robots/UniversalRobots_UR3CB.d.ts.map +0 -1
- package/dist/components/robots/UniversalRobots_UR3e.d.ts.map +0 -1
- package/dist/components/robots/UniversalRobots_UR5CB.d.ts.map +0 -1
- package/dist/components/robots/UniversalRobots_UR5e.d.ts.map +0 -1
- package/dist/components/robots/Yaskawa_AR1440.d.ts.map +0 -1
- package/dist/components/robots/Yaskawa_AR1730.d.ts.map +0 -1
- package/dist/components/robots/Yaskawa_AR2010.d.ts.map +0 -1
- package/dist/components/robots/Yaskawa_AR3120.d.ts.map +0 -1
- package/dist/components/robots/Yaskawa_AR900.d.ts.map +0 -1
- package/dist/components/robots/Yaskawa_GP50.d.ts.map +0 -1
- package/dist/components/robots/types.d.ts.map +0 -1
- package/dist/components/utils/converters.d.ts.map +0 -1
- package/dist/components/utils/errorHandling.d.ts.map +0 -1
- package/dist/components/utils/hooks.d.ts.map +0 -1
- package/dist/components/utils/robotTreeQuery.d.ts.map +0 -1
- package/dist/components/wandelscript-editor/WandelscriptEditor.d.ts.map +0 -1
- package/dist/components/wandelscript-editor/wandelscript.tmLanguage.d.ts.map +0 -1
- package/dist/externalizeComponent.d.ts.map +0 -1
- package/dist/i18n/config.d.ts.map +0 -1
- package/dist/icons/index.d.ts.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/themes/createDarkTheme.d.ts.map +0 -1
- package/dist/themes/createLightTheme.d.ts.map +0 -1
- package/dist/themes/themeTypes.d.ts.map +0 -1
- package/dist/themes/theming.d.ts.map +0 -1
- /package/dist/{Setup.d.ts → src/Setup.d.ts} +0 -0
- /package/dist/{components → src/components}/3d-viewport/CoordinateSystemTransform.d.ts +0 -0
- /package/dist/{components → src/components}/3d-viewport/PresetEnvironment.d.ts +0 -0
- /package/dist/{components → src/components}/3d-viewport/SafetyZonesRenderer.d.ts +0 -0
- /package/dist/{components → src/components}/ConsoleFilter.d.ts +0 -0
- /package/dist/{components → src/components}/CopyableText.d.ts +0 -0
- /package/dist/{components → src/components}/LoadingButton.d.ts +0 -0
- /package/dist/{components → src/components}/LoadingCover.d.ts +0 -0
- /package/dist/{components → src/components}/SelectableFab.d.ts +0 -0
- /package/dist/{components → src/components}/ThemeSelect.d.ts +0 -0
- /package/dist/{components → src/components}/TransparentOverlay.d.ts +0 -0
- /package/dist/{components → src/components}/VelocitySlider.d.ts +0 -0
- /package/dist/{components → src/components}/jogging/JoggingActivationRequired.d.ts +0 -0
- /package/dist/{components → src/components}/jogging/JoggingCartesianAxisControl.d.ts +0 -0
- /package/dist/{components → src/components}/jogging/JoggingCartesianTab.d.ts +0 -0
- /package/dist/{components → src/components}/jogging/JoggingCartesianValues.d.ts +0 -0
- /package/dist/{components → src/components}/jogging/JoggingFreedriveTab.d.ts +0 -0
- /package/dist/{components → src/components}/jogging/JoggingJointLimitDetector.d.ts +0 -0
- /package/dist/{components → src/components}/jogging/JoggingJointRotationControl.d.ts +0 -0
- /package/dist/{components → src/components}/jogging/JoggingJointTab.d.ts +0 -0
- /package/dist/{components → src/components}/jogging/JoggingJointValues.d.ts +0 -0
- /package/dist/{components → src/components}/jogging/JoggingOptions.d.ts +0 -0
- /package/dist/{components → src/components}/jogging/JoggingPanel.d.ts +0 -0
- /package/dist/{components → src/components}/jogging/JoggingStore.d.ts +0 -0
- /package/dist/{components → src/components}/jogging/JoggingVelocitySlider.d.ts +0 -0
- /package/dist/{components → src/components}/modal/NoMotionGroupModal.d.ts +0 -0
- /package/dist/{components → src/components}/robots/ABB_1200_07_7.d.ts +0 -0
- /package/dist/{components → src/components}/robots/ABB_1300_115_10.d.ts +0 -0
- /package/dist/{components → src/components}/robots/AxisConfig.d.ts +0 -0
- /package/dist/{components → src/components}/robots/DHRobot.d.ts +0 -0
- /package/dist/{components → src/components}/robots/FANUC_ARC_Mate_100iD.d.ts +0 -0
- /package/dist/{components → src/components}/robots/FANUC_ARC_Mate_120iD.d.ts +0 -0
- /package/dist/{components → src/components}/robots/FANUC_CRX10iA.d.ts +0 -0
- /package/dist/{components → src/components}/robots/FANUC_CRX10iAL.d.ts +0 -0
- /package/dist/{components → src/components}/robots/FANUC_CRX20iAL.d.ts +0 -0
- /package/dist/{components → src/components}/robots/FANUC_CRX25iA.d.ts +0 -0
- /package/dist/{components → src/components}/robots/FANUC_CRX25iAL.d.ts +0 -0
- /package/dist/{components → src/components}/robots/FANUC_LR_Mate_200iD.d.ts +0 -0
- /package/dist/{components → src/components}/robots/FANUC_LR_Mate_200iD4S.d.ts +0 -0
- /package/dist/{components → src/components}/robots/FANUC_LR_Mate_200iD7L.d.ts +0 -0
- /package/dist/{components → src/components}/robots/KUKA_KR16_R2010_2.d.ts +0 -0
- /package/dist/{components → src/components}/robots/KUKA_KR210_R2700.d.ts +0 -0
- /package/dist/{components → src/components}/robots/KUKA_KR270_R2700.d.ts +0 -0
- /package/dist/{components → src/components}/robots/KUKA_KR6_R700_2.d.ts +0 -0
- /package/dist/{components → src/components}/robots/Robot.d.ts +0 -0
- /package/dist/{components → src/components}/robots/RobotAnimator.d.ts +0 -0
- /package/dist/{components → src/components}/robots/SupportedRobot.d.ts +0 -0
- /package/dist/{components → src/components}/robots/UniversalRobots_UR10CB.d.ts +0 -0
- /package/dist/{components → src/components}/robots/UniversalRobots_UR10e.d.ts +0 -0
- /package/dist/{components → src/components}/robots/UniversalRobots_UR3CB.d.ts +0 -0
- /package/dist/{components → src/components}/robots/UniversalRobots_UR3e.d.ts +0 -0
- /package/dist/{components → src/components}/robots/UniversalRobots_UR5CB.d.ts +0 -0
- /package/dist/{components → src/components}/robots/UniversalRobots_UR5e.d.ts +0 -0
- /package/dist/{components → src/components}/robots/Yaskawa_AR1440.d.ts +0 -0
- /package/dist/{components → src/components}/robots/Yaskawa_AR1730.d.ts +0 -0
- /package/dist/{components → src/components}/robots/Yaskawa_AR2010.d.ts +0 -0
- /package/dist/{components → src/components}/robots/Yaskawa_AR3120.d.ts +0 -0
- /package/dist/{components → src/components}/robots/Yaskawa_AR900.d.ts +0 -0
- /package/dist/{components → src/components}/robots/Yaskawa_GP50.d.ts +0 -0
- /package/dist/{components → src/components}/robots/types.d.ts +0 -0
- /package/dist/{components → src/components}/utils/converters.d.ts +0 -0
- /package/dist/{components → src/components}/utils/errorHandling.d.ts +0 -0
- /package/dist/{components → src/components}/utils/hooks.d.ts +0 -0
- /package/dist/{components → src/components}/utils/robotTreeQuery.d.ts +0 -0
- /package/dist/{components → src/components}/wandelscript-editor/WandelscriptEditor.d.ts +0 -0
- /package/dist/{components → src/components}/wandelscript-editor/wandelscript.tmLanguage.d.ts +0 -0
- /package/dist/{externalizeComponent.d.ts → src/externalizeComponent.d.ts} +0 -0
- /package/dist/{i18n → src/i18n}/config.d.ts +0 -0
- /package/dist/{icons → src/icons}/index.d.ts +0 -0
- /package/dist/{index.d.ts → src/index.d.ts} +0 -0
- /package/dist/{themes → src/themes}/createDarkTheme.d.ts +0 -0
- /package/dist/{themes → src/themes}/createLightTheme.d.ts +0 -0
- /package/dist/{themes → src/themes}/themeTypes.d.ts +0 -0
- /package/dist/{themes → src/themes}/theming.d.ts +0 -0
package/dist/index.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var
|
|
1
|
+
"use strict";var Vu=Object.create;var Vs=Object.defineProperty;var Gu=Object.getOwnPropertyDescriptor;var zu=Object.getOwnPropertyNames;var Ku=Object.getPrototypeOf,Wu=Object.prototype.hasOwnProperty;var Hu=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of zu(t))!Wu.call(e,a)&&a!==r&&Vs(e,a,{get:()=>t[a],enumerable:!(n=Gu(t,a))||n.enumerable});return e};var wa=(e,t,r)=>(r=e!=null?Vu(Ku(e)):{},Hu(t||!e||!e.__esModule?Vs(r,"default",{value:e,enumerable:!0}):r,e));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Y=require("react"),z=require("@react-three/drei"),vt=require("three"),Xu=require("three-stdlib"),qu=require("@react-three/fiber"),Gs=require("@mui/icons-material"),T=require("@mui/material"),Te=require("mobx-react-lite"),qt=require("react-i18next"),Yu=require("i18next-browser-languagedetector"),mt=require("mobx"),h=require("prop-types"),Zu=require("@emotion/styled"),fr=require("@emotion/react"),Lt=require("@wandelbots/wandelbots-js"),Kn=require("lodash-es"),x=require("@react-spring/three"),Qu=require("react-error-boundary");function Pi(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 $=Pi(Y),Me=Pi(vt);function Rt(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var a=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,a.get?a:{enumerable:!0,get:function(){return e[n]}})}),r}var Ga={exports:{}},Or={};/**
|
|
2
2
|
* @license React
|
|
3
3
|
* react-jsx-runtime.production.min.js
|
|
4
4
|
*
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*
|
|
7
7
|
* This source code is licensed under the MIT license found in the
|
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var zs;function
|
|
9
|
+
*/var zs;function ec(){if(zs)return Or;zs=1;var e=Y,t=Symbol.for("react.element"),r=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,a=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function i(l,u,c){var m,f={},d=null,b=null;c!==void 0&&(d=""+c),u.key!==void 0&&(d=""+u.key),u.ref!==void 0&&(b=u.ref);for(m in u)n.call(u,m)&&!s.hasOwnProperty(m)&&(f[m]=u[m]);if(l&&l.defaultProps)for(m in u=l.defaultProps,u)f[m]===void 0&&(f[m]=u[m]);return{$$typeof:t,type:l,key:d,ref:b,props:f,_owner:a.current}}return Or.Fragment=r,Or.jsx=i,Or.jsxs=i,Or}var Er={};/**
|
|
10
10
|
* @license React
|
|
11
11
|
* react-jsx-runtime.development.js
|
|
12
12
|
*
|
|
@@ -14,30 +14,30 @@
|
|
|
14
14
|
*
|
|
15
15
|
* This source code is licensed under the MIT license found in the
|
|
16
16
|
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var Ks;function
|
|
18
|
-
`+He+g}}var ut=!1,ct;{var Ft=typeof WeakMap=="function"?WeakMap:Map;ct=new Ft}function bt(g,
|
|
17
|
+
*/var Ks;function tc(){return Ks||(Ks=1,process.env.NODE_ENV!=="production"&&function(){var e=Y,t=Symbol.for("react.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),l=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),m=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),b=Symbol.for("react.offscreen"),y=Symbol.iterator,_="@@iterator";function p(g){if(g===null||typeof g!="object")return null;var w=y&&g[y]||g[_];return typeof w=="function"?w:null}var j=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function R(g){{for(var w=arguments.length,E=new Array(w>1?w-1:0),N=1;N<w;N++)E[N-1]=arguments[N];C("error",g,E)}}function C(g,w,E){{var N=j.ReactDebugCurrentFrame,B=N.getStackAddendum();B!==""&&(w+="%s",E=E.concat([B]));var ne=E.map(function(V){return String(V)});ne.unshift("Warning: "+w),Function.prototype.apply.call(console[g],console,ne)}}var A=!1,S=!1,P=!1,M=!1,K=!1,le;le=Symbol.for("react.module.reference");function ce(g){return!!(typeof g=="string"||typeof g=="function"||g===n||g===s||K||g===a||g===c||g===m||M||g===b||A||S||P||typeof g=="object"&&g!==null&&(g.$$typeof===d||g.$$typeof===f||g.$$typeof===i||g.$$typeof===l||g.$$typeof===u||g.$$typeof===le||g.getModuleId!==void 0))}function D(g,w,E){var N=g.displayName;if(N)return N;var B=w.displayName||w.name||"";return B!==""?E+"("+B+")":E}function q(g){return g.displayName||"Context"}function G(g){if(g==null)return null;if(typeof g.tag=="number"&&R("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof g=="function")return g.displayName||g.name||null;if(typeof g=="string")return g;switch(g){case n:return"Fragment";case r:return"Portal";case s:return"Profiler";case a:return"StrictMode";case c:return"Suspense";case m:return"SuspenseList"}if(typeof g=="object")switch(g.$$typeof){case l:var w=g;return q(w)+".Consumer";case i:var E=g;return q(E._context)+".Provider";case u:return D(g,g.render,"ForwardRef");case f:var N=g.displayName||null;return N!==null?N:G(g.type)||"Memo";case d:{var B=g,ne=B._payload,V=B._init;try{return G(V(ne))}catch{return null}}}return null}var Z=Object.assign,X=0,je,ue,ee,we,Oe,nt,yt;function We(){}We.__reactDisabledLog=!0;function Se(){{if(X===0){je=console.log,ue=console.info,ee=console.warn,we=console.error,Oe=console.group,nt=console.groupCollapsed,yt=console.groupEnd;var g={configurable:!0,enumerable:!0,value:We,writable:!0};Object.defineProperties(console,{info:g,log:g,warn:g,error:g,group:g,groupCollapsed:g,groupEnd:g})}X++}}function Ct(){{if(X--,X===0){var g={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Z({},g,{value:je}),info:Z({},g,{value:ue}),warn:Z({},g,{value:ee}),error:Z({},g,{value:we}),group:Z({},g,{value:Oe}),groupCollapsed:Z({},g,{value:nt}),groupEnd:Z({},g,{value:yt})})}X<0&&R("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var lt=j.ReactCurrentDispatcher,He;function Ue(g,w,E){{if(He===void 0)try{throw Error()}catch(B){var N=B.stack.trim().match(/\n( *(at )?)/);He=N&&N[1]||""}return`
|
|
18
|
+
`+He+g}}var ut=!1,ct;{var Ft=typeof WeakMap=="function"?WeakMap:Map;ct=new Ft}function bt(g,w){if(!g||ut)return"";{var E=ct.get(g);if(E!==void 0)return E}var N;ut=!0;var B=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var ne;ne=lt.current,lt.current=null,Se();try{if(w){var V=function(){throw Error()};if(Object.defineProperty(V.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(V,[])}catch($e){N=$e}Reflect.construct(g,[],V)}else{try{V.call()}catch($e){N=$e}g.call(V.prototype)}}else{try{throw Error()}catch($e){N=$e}g()}}catch($e){if($e&&N&&typeof $e.stack=="string"){for(var U=$e.stack.split(`
|
|
19
19
|
`),Ie=N.stack.split(`
|
|
20
|
-
`),pe=
|
|
21
|
-
`+
|
|
20
|
+
`),pe=U.length-1,be=Ie.length-1;pe>=1&&be>=0&&U[pe]!==Ie[be];)be--;for(;pe>=1&&be>=0;pe--,be--)if(U[pe]!==Ie[be]){if(pe!==1||be!==1)do if(pe--,be--,be<0||U[pe]!==Ie[be]){var qe=`
|
|
21
|
+
`+U[pe].replace(" at new "," at ");return g.displayName&&qe.includes("<anonymous>")&&(qe=qe.replace("<anonymous>",g.displayName)),typeof g=="function"&&ct.set(g,qe),qe}while(pe>=1&&be>=0);break}}}finally{ut=!1,lt.current=ne,Ct(),Error.prepareStackTrace=B}var ar=g?g.displayName||g.name:"",Jt=ar?Ue(ar):"";return typeof g=="function"&&ct.set(g,Jt),Jt}function Je(g,w,E){return bt(g,!1)}function O(g){var w=g.prototype;return!!(w&&w.isReactComponent)}function te(g,w,E){if(g==null)return"";if(typeof g=="function")return bt(g,O(g));if(typeof g=="string")return Ue(g);switch(g){case c:return Ue("Suspense");case m:return Ue("SuspenseList")}if(typeof g=="object")switch(g.$$typeof){case u:return Je(g.render);case f:return te(g.type,w,E);case d:{var N=g,B=N._payload,ne=N._init;try{return te(ne(B),w,E)}catch{}}}return""}var fe=Object.prototype.hasOwnProperty,Ee={},Le=j.ReactDebugCurrentFrame;function Mt(g){if(g){var w=g._owner,E=te(g.type,g._source,w?w.type:null);Le.setExtraStackFrame(E)}else Le.setExtraStackFrame(null)}function Re(g,w,E,N,B){{var ne=Function.call.bind(fe);for(var V in g)if(ne(g,V)){var U=void 0;try{if(typeof g[V]!="function"){var Ie=Error((N||"React class")+": "+E+" type `"+V+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof g[V]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw Ie.name="Invariant Violation",Ie}U=g[V](w,V,N,E,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(pe){U=pe}U&&!(U instanceof Error)&&(Mt(B),R("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",N||"React class",E,V,typeof U),Mt(null)),U instanceof Error&&!(U.message in Ee)&&(Ee[U.message]=!0,Mt(B),R("Failed %s type: %s",E,U.message),Mt(null))}}}var kt=Array.isArray;function Dt(g){return kt(g)}function wr(g){{var w=typeof Symbol=="function"&&Symbol.toStringTag,E=w&&g[Symbol.toStringTag]||g.constructor.name||"Object";return E}}function Ar(g){try{return Pr(g),!1}catch{return!0}}function Pr(g){return""+g}function er(g){if(Ar(g))return R("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",wr(g)),Pr(g)}var at=j.ReactCurrentOwner,I={key:!0,ref:!0,__self:!0,__source:!0},L,F,W;W={};function Q(g){if(fe.call(g,"ref")){var w=Object.getOwnPropertyDescriptor(g,"ref").get;if(w&&w.isReactWarning)return!1}return g.ref!==void 0}function H(g){if(fe.call(g,"key")){var w=Object.getOwnPropertyDescriptor(g,"key").get;if(w&&w.isReactWarning)return!1}return g.key!==void 0}function Ve(g,w){if(typeof g.ref=="string"&&at.current&&w&&at.current.stateNode!==w){var E=G(at.current.type);W[E]||(R('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',G(at.current.type),g.ref),W[E]=!0)}}function Xe(g,w){{var E=function(){L||(L=!0,R("%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://reactjs.org/link/special-props)",w))};E.isReactWarning=!0,Object.defineProperty(g,"key",{get:E,configurable:!0})}}function re(g,w){{var E=function(){F||(F=!0,R("%s: `ref` 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://reactjs.org/link/special-props)",w))};E.isReactWarning=!0,Object.defineProperty(g,"ref",{get:E,configurable:!0})}}var Ne=function(g,w,E,N,B,ne,V){var U={$$typeof:t,type:g,key:w,ref:E,props:V,_owner:ne};return U._store={},Object.defineProperty(U._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(U,"_self",{configurable:!1,enumerable:!1,writable:!1,value:N}),Object.defineProperty(U,"_source",{configurable:!1,enumerable:!1,writable:!1,value:B}),Object.freeze&&(Object.freeze(U.props),Object.freeze(U)),U};function It(g,w,E,N,B){{var ne,V={},U=null,Ie=null;E!==void 0&&(er(E),U=""+E),H(w)&&(er(w.key),U=""+w.key),Q(w)&&(Ie=w.ref,Ve(w,B));for(ne in w)fe.call(w,ne)&&!I.hasOwnProperty(ne)&&(V[ne]=w[ne]);if(g&&g.defaultProps){var pe=g.defaultProps;for(ne in pe)V[ne]===void 0&&(V[ne]=pe[ne])}if(U||Ie){var be=typeof g=="function"?g.displayName||g.name||"Unknown":g;U&&Xe(V,be),Ie&&re(V,be)}return Ne(g,U,Ie,B,N,at.current,V)}}var tr=j.ReactCurrentOwner,Cr=j.ReactDebugCurrentFrame;function xt(g){if(g){var w=g._owner,E=te(g.type,g._source,w?w.type:null);Cr.setExtraStackFrame(E)}else Cr.setExtraStackFrame(null)}var Bt;Bt=!1;function Ut(g){return typeof g=="object"&&g!==null&&g.$$typeof===t}function Mr(){{if(tr.current){var g=G(tr.current.type);if(g)return`
|
|
22
22
|
|
|
23
|
-
Check the render method of \``+g+"`."}return""}}function kr(g){return""}var un={};function Ir(g){{var
|
|
23
|
+
Check the render method of \``+g+"`."}return""}}function kr(g){return""}var un={};function Ir(g){{var w=Mr();if(!w){var E=typeof g=="string"?g:g.displayName||g.name;E&&(w=`
|
|
24
24
|
|
|
25
|
-
Check the top-level render call using <`+E+">.")}return
|
|
25
|
+
Check the top-level render call using <`+E+">.")}return w}}function rr(g,w){{if(!g._store||g._store.validated||g.key!=null)return;g._store.validated=!0;var E=Ir(w);if(un[E])return;un[E]=!0;var N="";g&&g._owner&&g._owner!==tr.current&&(N=" It was passed a child from "+G(g._owner.type)+"."),xt(g),R('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',E,N),xt(null)}}function nr(g,w){{if(typeof g!="object")return;if(Dt(g))for(var E=0;E<g.length;E++){var N=g[E];Ut(N)&&rr(N,w)}else if(Ut(g))g._store&&(g._store.validated=!0);else if(g){var B=p(g);if(typeof B=="function"&&B!==g.entries)for(var ne=B.call(g),V;!(V=ne.next()).done;)Ut(V.value)&&rr(V.value,w)}}}function ba(g){{var w=g.type;if(w==null||typeof w=="string")return;var E;if(typeof w=="function")E=w.propTypes;else if(typeof w=="object"&&(w.$$typeof===u||w.$$typeof===f))E=w.propTypes;else return;if(E){var N=G(w);Re(E,g.props,"prop",N,g)}else if(w.PropTypes!==void 0&&!Bt){Bt=!0;var B=G(w);R("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",B||"Unknown")}typeof w.getDefaultProps=="function"&&!w.getDefaultProps.isReactClassApproved&&R("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function xa(g){{for(var w=Object.keys(g.props),E=0;E<w.length;E++){var N=w[E];if(N!=="children"&&N!=="key"){xt(g),R("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",N),xt(null);break}}g.ref!==null&&(xt(g),R("Invalid attribute `ref` supplied to `React.Fragment`."),xt(null))}}var cn={};function mn(g,w,E,N,B,ne){{var V=ce(g);if(!V){var U="";(g===void 0||typeof g=="object"&&g!==null&&Object.keys(g).length===0)&&(U+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var Ie=kr();Ie?U+=Ie:U+=Mr();var pe;g===null?pe="null":Dt(g)?pe="array":g!==void 0&&g.$$typeof===t?(pe="<"+(G(g.type)||"Unknown")+" />",U=" Did you accidentally export a JSX literal instead of a component?"):pe=typeof g,R("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",pe,U)}var be=It(g,w,E,B,ne);if(be==null)return be;if(V){var qe=w.children;if(qe!==void 0)if(N)if(Dt(qe)){for(var ar=0;ar<qe.length;ar++)nr(qe[ar],g);Object.freeze&&Object.freeze(qe)}else R("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 nr(qe,g)}if(fe.call(w,"key")){var Jt=G(g),$e=Object.keys(w).filter(function(Ju){return Ju!=="key"}),Ra=$e.length>0?"{key: someKey, "+$e.join(": ..., ")+": ...}":"{key: someKey}";if(!cn[Jt+Ra]){var Uu=$e.length>0?"{"+$e.join(": ..., ")+": ...}":"{}";R(`A props object containing a "key" prop is being spread into JSX:
|
|
26
26
|
let props = %s;
|
|
27
27
|
<%s {...props} />
|
|
28
28
|
React keys must be passed directly to JSX without using spread:
|
|
29
29
|
let props = %s;
|
|
30
|
-
<%s key={someKey} {...props} />`,Ra,Jt,Uu,Jt),cn[Jt+Ra]=!0}}return g===n?xa(be):ba(be),be}}function va(g,A,E){return mn(g,A,E,!0)}function ja(g,A,E){return mn(g,A,E,!1)}var Tr=ja,Sa=va;Er.Fragment=n,Er.jsx=Tr,Er.jsxs=Sa}()),Er}process.env.NODE_ENV==="production"?Ga.exports=Qu():Ga.exports=ec();var o=Ga.exports;function tc(){return o.jsx(z.Environment,{children:o.jsx(rc,{})})}function rc({positions:e=[2,0,2,0,2,0,2,0]}){return o.jsxs(o.Fragment,{children:[o.jsx(z.Lightformer,{intensity:5,"rotation-x":Math.PI/2,position:[0,5,-9],scale:[10,10,1]}),o.jsx("group",{rotation:[0,.5,0],children:o.jsx("group",{children:e.map((t,r)=>o.jsx(z.Lightformer,{form:"circle",intensity:5,rotation:[Math.PI/2,0,0],position:[t,4,r*4],scale:[3,1,1]},r))})}),o.jsx(z.Lightformer,{intensity:40,"rotation-y":Math.PI/2,position:[-5,1,-1],scale:[20,.1,1]}),o.jsx(z.Lightformer,{intensity:20,"rotation-y":-Math.PI,position:[-5,-2,-1],scale:[20,.1,1]}),o.jsx(z.Lightformer,{"rotation-y":Math.PI/2,position:[-5,-1,-1],scale:[20,.5,1],intensity:5}),o.jsx(z.Lightformer,{"rotation-y":-Math.PI/2,position:[10,1,0],scale:[20,1,1],intensity:10}),o.jsx(z.Lightformer,{form:"ring",color:"white",intensity:5,scale:10,position:[-15,4,-18],target:[0,0,0]})]})}function nc(e){if(e.length<3)return console.log("Not enough vertices to define a plane"),{isCoplanar:!1};const t=new Me.Vector3(e[0].x,e[0].y,e[0].z),r=new Me.Vector3(e[1].x,e[1].y,e[1].z),n=new Me.Vector3(e[2].x,e[2].y,e[2].z),a=new Me.Vector3().subVectors(r,t),s=new Me.Vector3().subVectors(n,t),i=new Me.Vector3().crossVectors(a,s).normalize();for(let l=3;l<e.length;l++){const u=new Me.Vector3(e[l].x,e[l].y,e[l].z),c=new Me.Vector3().subVectors(u,t),m=i.dot(c);if(Math.abs(m)>1e-6)return console.log("Vertices are not on the same plane"),{isCoplanar:!1}}return{isCoplanar:!0,normal:i}}function ac({safetyZones:e,...t}){return o.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((s,i)=>{if(!s.convex_hull)return null;const l=s.convex_hull.vertices.map(m=>new Me.Vector3(m.x/1e3,m.y/1e3,m.z/1e3)),u=nc(l);if(u.isCoplanar&&u.normal){const f=new Me.Vector3().addVectors(l[0],u.normal.multiplyScalar(1e-4));l.push(f)}let c;try{c=new Hu.ConvexGeometry(l)}catch(m){return console.log("Error creating ConvexGeometry:",m),null}return o.jsx(o.Fragment,{children:o.jsx("mesh",{geometry:c,children:o.jsx("meshStandardMaterial",{attach:"material",color:"#009f4d",opacity:.2,depthTest:!1,depthWrite:!1,transparent:!0,polygonOffset:!0,polygonOffsetFactor:-i},n)},`${n}-${i}`)})})})})}function Gr(e){let t="https://mui.com/production-error/?code="+e;for(let r=1;r<arguments.length;r+=1)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}const sc=Object.freeze(Object.defineProperty({__proto__:null,default:Gr},Symbol.toStringTag,{value:"Module"}));var oc=!1;function ic(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function lc(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var uc=function(){function e(r){var n=this;this._insertTag=function(a){var s;n.tags.length===0?n.insertionPoint?s=n.insertionPoint.nextSibling:n.prepend?s=n.container.firstChild:s=n.before:s=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(a,s),n.tags.push(a)},this.isSpeedy=r.speedy===void 0?!oc:r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(n){n.forEach(this._insertTag)},t.insert=function(n){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(lc(this));var a=this.tags[this.tags.length-1];if(this.isSpeedy){var s=ic(a);try{s.insertRule(n,s.cssRules.length)}catch{}}else a.appendChild(document.createTextNode(n));this.ctr++},t.flush=function(){this.tags.forEach(function(n){var a;return(a=n.parentNode)==null?void 0:a.removeChild(n)}),this.tags=[],this.ctr=0},e}(),Ce="-ms-",Tn="-moz-",ae="-webkit-",Pi="comm",ps="rule",_s="decl",cc="@import",Ci="@keyframes",mc="@layer",dc=Math.abs,Wn=String.fromCharCode,fc=Object.assign;function hc(e,t){return we(e,0)^45?(((t<<2^we(e,0))<<2^we(e,1))<<2^we(e,2))<<2^we(e,3):0}function Mi(e){return e.trim()}function gc(e,t){return(e=t.exec(e))?e[0]:e}function se(e,t,r){return e.replace(t,r)}function za(e,t){return e.indexOf(t)}function we(e,t){return e.charCodeAt(t)|0}function zr(e,t,r){return e.slice(t,r)}function dt(e){return e.length}function ys(e){return e.length}function dn(e,t){return t.push(e),e}function pc(e,t){return e.map(t).join("")}var Hn=1,yr=1,ki=0,De=0,xe=0,br="";function Xn(e,t,r,n,a,s,i){return{value:e,root:t,parent:r,type:n,props:a,children:s,line:Hn,column:yr,length:i,return:""}}function Lr(e,t){return fc(Xn("",null,null,"",null,null,0),e,{length:-e.length},t)}function _c(){return xe}function yc(){return xe=De>0?we(br,--De):0,yr--,xe===10&&(yr=1,Hn--),xe}function ze(){return xe=De<ki?we(br,De++):0,yr++,xe===10&&(yr=1,Hn++),xe}function ht(){return we(br,De)}function jn(){return De}function Zr(e,t){return zr(br,e,t)}function Kr(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Ii(e){return Hn=yr=1,ki=dt(br=e),De=0,[]}function Ti(e){return br="",e}function Sn(e){return Mi(Zr(De-1,Ka(e===91?e+2:e===40?e+1:e)))}function bc(e){for(;(xe=ht())&&xe<33;)ze();return Kr(e)>2||Kr(xe)>3?"":" "}function xc(e,t){for(;--t&&ze()&&!(xe<48||xe>102||xe>57&&xe<65||xe>70&&xe<97););return Zr(e,jn()+(t<6&&ht()==32&&ze()==32))}function Ka(e){for(;ze();)switch(xe){case e:return De;case 34:case 39:e!==34&&e!==39&&Ka(xe);break;case 40:e===41&&Ka(e);break;case 92:ze();break}return De}function vc(e,t){for(;ze()&&e+xe!==57;)if(e+xe===84&&ht()===47)break;return"/*"+Zr(t,De-1)+"*"+Wn(e===47?e:ze())}function jc(e){for(;!Kr(ht());)ze();return Zr(e,De)}function Sc(e){return Ti(Rn("",null,null,null,[""],e=Ii(e),0,[0],e))}function Rn(e,t,r,n,a,s,i,l,u){for(var c=0,m=0,f=i,d=0,x=0,y=0,_=1,p=1,j=1,R=0,C="",w=a,S=s,P=n,M=C;p;)switch(y=R,R=ze()){case 40:if(y!=108&&we(M,f-1)==58){za(M+=se(Sn(R),"&","&\f"),"&\f")!=-1&&(j=-1);break}case 34:case 39:case 91:M+=Sn(R);break;case 9:case 10:case 13:case 32:M+=bc(y);break;case 92:M+=xc(jn()-1,7);continue;case 47:switch(ht()){case 42:case 47:dn(Rc(vc(ze(),jn()),t,r),u);break;default:M+="/"}break;case 123*_:l[c++]=dt(M)*j;case 125*_:case 59:case 0:switch(R){case 0:case 125:p=0;case 59+m:j==-1&&(M=se(M,/\f/g,"")),x>0&&dt(M)-f&&dn(x>32?Hs(M+";",n,r,f-1):Hs(se(M," ","")+";",n,r,f-2),u);break;case 59:M+=";";default:if(dn(P=Ws(M,t,r,c,m,a,l,C,w=[],S=[],f),s),R===123)if(m===0)Rn(M,t,P,P,w,s,f,l,S);else switch(d===99&&we(M,3)===110?100:d){case 100:case 108:case 109:case 115:Rn(e,P,P,n&&dn(Ws(e,P,P,0,0,a,l,C,a,w=[],f),S),a,S,f,l,n?w:S);break;default:Rn(M,P,P,P,[""],S,0,l,S)}}c=m=x=0,_=j=1,C=M="",f=i;break;case 58:f=1+dt(M),x=y;default:if(_<1){if(R==123)--_;else if(R==125&&_++==0&&yc()==125)continue}switch(M+=Wn(R),R*_){case 38:j=m>0?1:(M+="\f",-1);break;case 44:l[c++]=(dt(M)-1)*j,j=1;break;case 64:ht()===45&&(M+=Sn(ze())),d=ht(),m=f=dt(C=M+=jc(jn())),R++;break;case 45:y===45&&dt(M)==2&&(_=0)}}return s}function Ws(e,t,r,n,a,s,i,l,u,c,m){for(var f=a-1,d=a===0?s:[""],x=ys(d),y=0,_=0,p=0;y<n;++y)for(var j=0,R=zr(e,f+1,f=dc(_=i[y])),C=e;j<x;++j)(C=Mi(_>0?d[j]+" "+R:se(R,/&\f/g,d[j])))&&(u[p++]=C);return Xn(e,t,r,a===0?ps:l,u,c,m)}function Rc(e,t,r){return Xn(e,t,r,Pi,Wn(_c()),zr(e,2,-2),0)}function Hs(e,t,r,n){return Xn(e,t,r,_s,zr(e,0,n),zr(e,n+1,-1),n)}function hr(e,t){for(var r="",n=ys(e),a=0;a<n;a++)r+=t(e[a],a,e,t)||"";return r}function Ac(e,t,r,n){switch(e.type){case mc:if(e.children.length)break;case cc:case _s:return e.return=e.return||e.value;case Pi:return"";case Ci:return e.return=e.value+"{"+hr(e.children,n)+"}";case ps:e.value=e.props.join(",")}return dt(r=hr(e.children,n))?e.return=e.value+"{"+r+"}":""}function wc(e){var t=ys(e);return function(r,n,a,s){for(var i="",l=0;l<t;l++)i+=e[l](r,n,a,s)||"";return i}}function Pc(e){return function(t){t.root||(t=t.return)&&e(t)}}var Cc=function(t,r,n){for(var a=0,s=0;a=s,s=ht(),a===38&&s===12&&(r[n]=1),!Kr(s);)ze();return Zr(t,De)},Mc=function(t,r){var n=-1,a=44;do switch(Kr(a)){case 0:a===38&&ht()===12&&(r[n]=1),t[n]+=Cc(De-1,r,n);break;case 2:t[n]+=Sn(a);break;case 4:if(a===44){t[++n]=ht()===58?"&\f":"",r[n]=t[n].length;break}default:t[n]+=Wn(a)}while(a=ze());return t},kc=function(t,r){return Ti(Mc(Ii(t),r))},Xs=new WeakMap,Ic=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var r=t.value,n=t.parent,a=t.column===n.column&&t.line===n.line;n.type!=="rule";)if(n=n.parent,!n)return;if(!(t.props.length===1&&r.charCodeAt(0)!==58&&!Xs.get(n))&&!a){Xs.set(t,!0);for(var s=[],i=kc(r,s),l=n.props,u=0,c=0;u<i.length;u++)for(var m=0;m<l.length;m++,c++)t.props[c]=s[u]?i[u].replace(/&\f/g,l[m]):l[m]+" "+i[u]}}},Tc=function(t){if(t.type==="decl"){var r=t.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(t.return="",t.value="")}};function Oi(e,t){switch(hc(e,t)){case 5103:return ae+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return ae+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return ae+e+Tn+e+Ce+e+e;case 6828:case 4268:return ae+e+Ce+e+e;case 6165:return ae+e+Ce+"flex-"+e+e;case 5187:return ae+e+se(e,/(\w+).+(:[^]+)/,ae+"box-$1$2"+Ce+"flex-$1$2")+e;case 5443:return ae+e+Ce+"flex-item-"+se(e,/flex-|-self/,"")+e;case 4675:return ae+e+Ce+"flex-line-pack"+se(e,/align-content|flex-|-self/,"")+e;case 5548:return ae+e+Ce+se(e,"shrink","negative")+e;case 5292:return ae+e+Ce+se(e,"basis","preferred-size")+e;case 6060:return ae+"box-"+se(e,"-grow","")+ae+e+Ce+se(e,"grow","positive")+e;case 4554:return ae+se(e,/([^-])(transform)/g,"$1"+ae+"$2")+e;case 6187:return se(se(se(e,/(zoom-|grab)/,ae+"$1"),/(image-set)/,ae+"$1"),e,"")+e;case 5495:case 3959:return se(e,/(image-set\([^]*)/,ae+"$1$`$1");case 4968:return se(se(e,/(.+:)(flex-)?(.*)/,ae+"box-pack:$3"+Ce+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+ae+e+e;case 4095:case 3583:case 4068:case 2532:return se(e,/(.+)-inline(.+)/,ae+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(dt(e)-1-t>6)switch(we(e,t+1)){case 109:if(we(e,t+4)!==45)break;case 102:return se(e,/(.+:)(.+)-([^]+)/,"$1"+ae+"$2-$3$1"+Tn+(we(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~za(e,"stretch")?Oi(se(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(we(e,t+1)!==115)break;case 6444:switch(we(e,dt(e)-3-(~za(e,"!important")&&10))){case 107:return se(e,":",":"+ae)+e;case 101:return se(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ae+(we(e,14)===45?"inline-":"")+"box$3$1"+ae+"$2$3$1"+Ce+"$2box$3")+e}break;case 5936:switch(we(e,t+11)){case 114:return ae+e+Ce+se(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ae+e+Ce+se(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ae+e+Ce+se(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return ae+e+Ce+e+e}return e}var Oc=function(t,r,n,a){if(t.length>-1&&!t.return)switch(t.type){case _s:t.return=Oi(t.value,t.length);break;case Ci:return hr([Lr(t,{value:se(t.value,"@","@"+ae)})],a);case ps:if(t.length)return pc(t.props,function(s){switch(gc(s,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return hr([Lr(t,{props:[se(s,/:(read-\w+)/,":"+Tn+"$1")]})],a);case"::placeholder":return hr([Lr(t,{props:[se(s,/:(plac\w+)/,":"+ae+"input-$1")]}),Lr(t,{props:[se(s,/:(plac\w+)/,":"+Tn+"$1")]}),Lr(t,{props:[se(s,/:(plac\w+)/,Ce+"input-$1")]})],a)}return""})}},Ec=[Oc],Lc=function(t){var r=t.key;if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(_){var p=_.getAttribute("data-emotion");p.indexOf(" ")!==-1&&(document.head.appendChild(_),_.setAttribute("data-s",""))})}var a=t.stylisPlugins||Ec,s={},i,l=[];i=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(_){for(var p=_.getAttribute("data-emotion").split(" "),j=1;j<p.length;j++)s[p[j]]=!0;l.push(_)});var u,c=[Ic,Tc];{var m,f=[Ac,Pc(function(_){m.insert(_)})],d=wc(c.concat(a,f)),x=function(p){return hr(Sc(p),d)};u=function(p,j,R,C){m=R,x(p?p+"{"+j.styles+"}":j.styles),C&&(y.inserted[j.name]=!0)}}var y={key:r,sheet:new uc({key:r,container:i,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:s,registered:{},insert:u};return y.sheet.hydrate(l),y};let Wa;typeof document=="object"&&(Wa=Lc({key:"css",prepend:!0}));function Ei(e){const{injectFirst:t,children:r}=e;return t&&Wa?o.jsx(fr.CacheProvider,{value:Wa,children:r}):r}process.env.NODE_ENV!=="production"&&(Ei.propTypes={children:h.node,injectFirst:h.bool});function Nc(e){return e==null||Object.keys(e).length===0}function Li(e){const{styles:t,defaultTheme:r={}}=e,n=typeof t=="function"?a=>t(Nc(a)?r:a):t;return o.jsx(fr.Global,{styles:n})}process.env.NODE_ENV!=="production"&&(Li.propTypes={defaultTheme:h.object,styles:h.oneOfType([h.array,h.string,h.object,h.func])});/**
|
|
30
|
+
<%s key={someKey} {...props} />`,Ra,Jt,Uu,Jt),cn[Jt+Ra]=!0}}return g===n?xa(be):ba(be),be}}function va(g,w,E){return mn(g,w,E,!0)}function ja(g,w,E){return mn(g,w,E,!1)}var Tr=ja,Sa=va;Er.Fragment=n,Er.jsx=Tr,Er.jsxs=Sa}()),Er}process.env.NODE_ENV==="production"?Ga.exports=ec():Ga.exports=tc();var o=Ga.exports;function rc(){return o.jsx(z.Environment,{children:o.jsx(nc,{})})}function nc({positions:e=[2,0,2,0,2,0,2,0]}){return o.jsxs(o.Fragment,{children:[o.jsx(z.Lightformer,{intensity:5,"rotation-x":Math.PI/2,position:[0,5,-9],scale:[10,10,1]}),o.jsx("group",{rotation:[0,.5,0],children:o.jsx("group",{children:e.map((t,r)=>o.jsx(z.Lightformer,{form:"circle",intensity:5,rotation:[Math.PI/2,0,0],position:[t,4,r*4],scale:[3,1,1]},r))})}),o.jsx(z.Lightformer,{intensity:40,"rotation-y":Math.PI/2,position:[-5,1,-1],scale:[20,.1,1]}),o.jsx(z.Lightformer,{intensity:20,"rotation-y":-Math.PI,position:[-5,-2,-1],scale:[20,.1,1]}),o.jsx(z.Lightformer,{"rotation-y":Math.PI/2,position:[-5,-1,-1],scale:[20,.5,1],intensity:5}),o.jsx(z.Lightformer,{"rotation-y":-Math.PI/2,position:[10,1,0],scale:[20,1,1],intensity:10}),o.jsx(z.Lightformer,{form:"ring",color:"white",intensity:5,scale:10,position:[-15,4,-18],target:[0,0,0]})]})}function ac(e){if(e.length<3)return console.log("Not enough vertices to define a plane"),{isCoplanar:!1};const t=new Me.Vector3(e[0].x,e[0].y,e[0].z),r=new Me.Vector3(e[1].x,e[1].y,e[1].z),n=new Me.Vector3(e[2].x,e[2].y,e[2].z),a=new Me.Vector3().subVectors(r,t),s=new Me.Vector3().subVectors(n,t),i=new Me.Vector3().crossVectors(a,s).normalize();for(let l=3;l<e.length;l++){const u=new Me.Vector3(e[l].x,e[l].y,e[l].z),c=new Me.Vector3().subVectors(u,t),m=i.dot(c);if(Math.abs(m)>1e-6)return console.log("Vertices are not on the same plane"),{isCoplanar:!1}}return{isCoplanar:!0,normal:i}}function sc({safetyZones:e,...t}){return o.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((s,i)=>{if(!s.convex_hull)return null;const l=s.convex_hull.vertices.map(m=>new Me.Vector3(m.x/1e3,m.y/1e3,m.z/1e3)),u=ac(l);if(u.isCoplanar&&u.normal){const f=new Me.Vector3().addVectors(l[0],u.normal.multiplyScalar(1e-4));l.push(f)}let c;try{c=new Xu.ConvexGeometry(l)}catch(m){return console.log("Error creating ConvexGeometry:",m),null}return o.jsx(o.Fragment,{children:o.jsx("mesh",{geometry:c,children:o.jsx("meshStandardMaterial",{attach:"material",color:"#009f4d",opacity:.2,depthTest:!1,depthWrite:!1,transparent:!0,polygonOffset:!0,polygonOffsetFactor:-i},n)},`${n}-${i}`)})})})})}function Gr(e){let t="https://mui.com/production-error/?code="+e;for(let r=1;r<arguments.length;r+=1)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}const oc=Object.freeze(Object.defineProperty({__proto__:null,default:Gr},Symbol.toStringTag,{value:"Module"}));var ic=!1;function lc(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function uc(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var cc=function(){function e(r){var n=this;this._insertTag=function(a){var s;n.tags.length===0?n.insertionPoint?s=n.insertionPoint.nextSibling:n.prepend?s=n.container.firstChild:s=n.before:s=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(a,s),n.tags.push(a)},this.isSpeedy=r.speedy===void 0?!ic:r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(n){n.forEach(this._insertTag)},t.insert=function(n){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(uc(this));var a=this.tags[this.tags.length-1];if(this.isSpeedy){var s=lc(a);try{s.insertRule(n,s.cssRules.length)}catch{}}else a.appendChild(document.createTextNode(n));this.ctr++},t.flush=function(){this.tags.forEach(function(n){var a;return(a=n.parentNode)==null?void 0:a.removeChild(n)}),this.tags=[],this.ctr=0},e}(),Ce="-ms-",Tn="-moz-",ae="-webkit-",Ci="comm",ps="rule",_s="decl",mc="@import",Mi="@keyframes",dc="@layer",fc=Math.abs,Wn=String.fromCharCode,hc=Object.assign;function gc(e,t){return Ae(e,0)^45?(((t<<2^Ae(e,0))<<2^Ae(e,1))<<2^Ae(e,2))<<2^Ae(e,3):0}function ki(e){return e.trim()}function pc(e,t){return(e=t.exec(e))?e[0]:e}function se(e,t,r){return e.replace(t,r)}function za(e,t){return e.indexOf(t)}function Ae(e,t){return e.charCodeAt(t)|0}function zr(e,t,r){return e.slice(t,r)}function dt(e){return e.length}function ys(e){return e.length}function dn(e,t){return t.push(e),e}function _c(e,t){return e.map(t).join("")}var Hn=1,yr=1,Ii=0,De=0,xe=0,br="";function Xn(e,t,r,n,a,s,i){return{value:e,root:t,parent:r,type:n,props:a,children:s,line:Hn,column:yr,length:i,return:""}}function Lr(e,t){return hc(Xn("",null,null,"",null,null,0),e,{length:-e.length},t)}function yc(){return xe}function bc(){return xe=De>0?Ae(br,--De):0,yr--,xe===10&&(yr=1,Hn--),xe}function ze(){return xe=De<Ii?Ae(br,De++):0,yr++,xe===10&&(yr=1,Hn++),xe}function ht(){return Ae(br,De)}function jn(){return De}function Zr(e,t){return zr(br,e,t)}function Kr(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Ti(e){return Hn=yr=1,Ii=dt(br=e),De=0,[]}function Oi(e){return br="",e}function Sn(e){return ki(Zr(De-1,Ka(e===91?e+2:e===40?e+1:e)))}function xc(e){for(;(xe=ht())&&xe<33;)ze();return Kr(e)>2||Kr(xe)>3?"":" "}function vc(e,t){for(;--t&&ze()&&!(xe<48||xe>102||xe>57&&xe<65||xe>70&&xe<97););return Zr(e,jn()+(t<6&&ht()==32&&ze()==32))}function Ka(e){for(;ze();)switch(xe){case e:return De;case 34:case 39:e!==34&&e!==39&&Ka(xe);break;case 40:e===41&&Ka(e);break;case 92:ze();break}return De}function jc(e,t){for(;ze()&&e+xe!==57;)if(e+xe===84&&ht()===47)break;return"/*"+Zr(t,De-1)+"*"+Wn(e===47?e:ze())}function Sc(e){for(;!Kr(ht());)ze();return Zr(e,De)}function Rc(e){return Oi(Rn("",null,null,null,[""],e=Ti(e),0,[0],e))}function Rn(e,t,r,n,a,s,i,l,u){for(var c=0,m=0,f=i,d=0,b=0,y=0,_=1,p=1,j=1,R=0,C="",A=a,S=s,P=n,M=C;p;)switch(y=R,R=ze()){case 40:if(y!=108&&Ae(M,f-1)==58){za(M+=se(Sn(R),"&","&\f"),"&\f")!=-1&&(j=-1);break}case 34:case 39:case 91:M+=Sn(R);break;case 9:case 10:case 13:case 32:M+=xc(y);break;case 92:M+=vc(jn()-1,7);continue;case 47:switch(ht()){case 42:case 47:dn(wc(jc(ze(),jn()),t,r),u);break;default:M+="/"}break;case 123*_:l[c++]=dt(M)*j;case 125*_:case 59:case 0:switch(R){case 0:case 125:p=0;case 59+m:j==-1&&(M=se(M,/\f/g,"")),b>0&&dt(M)-f&&dn(b>32?Hs(M+";",n,r,f-1):Hs(se(M," ","")+";",n,r,f-2),u);break;case 59:M+=";";default:if(dn(P=Ws(M,t,r,c,m,a,l,C,A=[],S=[],f),s),R===123)if(m===0)Rn(M,t,P,P,A,s,f,l,S);else switch(d===99&&Ae(M,3)===110?100:d){case 100:case 108:case 109:case 115:Rn(e,P,P,n&&dn(Ws(e,P,P,0,0,a,l,C,a,A=[],f),S),a,S,f,l,n?A:S);break;default:Rn(M,P,P,P,[""],S,0,l,S)}}c=m=b=0,_=j=1,C=M="",f=i;break;case 58:f=1+dt(M),b=y;default:if(_<1){if(R==123)--_;else if(R==125&&_++==0&&bc()==125)continue}switch(M+=Wn(R),R*_){case 38:j=m>0?1:(M+="\f",-1);break;case 44:l[c++]=(dt(M)-1)*j,j=1;break;case 64:ht()===45&&(M+=Sn(ze())),d=ht(),m=f=dt(C=M+=Sc(jn())),R++;break;case 45:y===45&&dt(M)==2&&(_=0)}}return s}function Ws(e,t,r,n,a,s,i,l,u,c,m){for(var f=a-1,d=a===0?s:[""],b=ys(d),y=0,_=0,p=0;y<n;++y)for(var j=0,R=zr(e,f+1,f=fc(_=i[y])),C=e;j<b;++j)(C=ki(_>0?d[j]+" "+R:se(R,/&\f/g,d[j])))&&(u[p++]=C);return Xn(e,t,r,a===0?ps:l,u,c,m)}function wc(e,t,r){return Xn(e,t,r,Ci,Wn(yc()),zr(e,2,-2),0)}function Hs(e,t,r,n){return Xn(e,t,r,_s,zr(e,0,n),zr(e,n+1,-1),n)}function hr(e,t){for(var r="",n=ys(e),a=0;a<n;a++)r+=t(e[a],a,e,t)||"";return r}function Ac(e,t,r,n){switch(e.type){case dc:if(e.children.length)break;case mc:case _s:return e.return=e.return||e.value;case Ci:return"";case Mi:return e.return=e.value+"{"+hr(e.children,n)+"}";case ps:e.value=e.props.join(",")}return dt(r=hr(e.children,n))?e.return=e.value+"{"+r+"}":""}function Pc(e){var t=ys(e);return function(r,n,a,s){for(var i="",l=0;l<t;l++)i+=e[l](r,n,a,s)||"";return i}}function Cc(e){return function(t){t.root||(t=t.return)&&e(t)}}var Mc=function(t,r,n){for(var a=0,s=0;a=s,s=ht(),a===38&&s===12&&(r[n]=1),!Kr(s);)ze();return Zr(t,De)},kc=function(t,r){var n=-1,a=44;do switch(Kr(a)){case 0:a===38&&ht()===12&&(r[n]=1),t[n]+=Mc(De-1,r,n);break;case 2:t[n]+=Sn(a);break;case 4:if(a===44){t[++n]=ht()===58?"&\f":"",r[n]=t[n].length;break}default:t[n]+=Wn(a)}while(a=ze());return t},Ic=function(t,r){return Oi(kc(Ti(t),r))},Xs=new WeakMap,Tc=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var r=t.value,n=t.parent,a=t.column===n.column&&t.line===n.line;n.type!=="rule";)if(n=n.parent,!n)return;if(!(t.props.length===1&&r.charCodeAt(0)!==58&&!Xs.get(n))&&!a){Xs.set(t,!0);for(var s=[],i=Ic(r,s),l=n.props,u=0,c=0;u<i.length;u++)for(var m=0;m<l.length;m++,c++)t.props[c]=s[u]?i[u].replace(/&\f/g,l[m]):l[m]+" "+i[u]}}},Oc=function(t){if(t.type==="decl"){var r=t.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(t.return="",t.value="")}};function Ei(e,t){switch(gc(e,t)){case 5103:return ae+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return ae+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return ae+e+Tn+e+Ce+e+e;case 6828:case 4268:return ae+e+Ce+e+e;case 6165:return ae+e+Ce+"flex-"+e+e;case 5187:return ae+e+se(e,/(\w+).+(:[^]+)/,ae+"box-$1$2"+Ce+"flex-$1$2")+e;case 5443:return ae+e+Ce+"flex-item-"+se(e,/flex-|-self/,"")+e;case 4675:return ae+e+Ce+"flex-line-pack"+se(e,/align-content|flex-|-self/,"")+e;case 5548:return ae+e+Ce+se(e,"shrink","negative")+e;case 5292:return ae+e+Ce+se(e,"basis","preferred-size")+e;case 6060:return ae+"box-"+se(e,"-grow","")+ae+e+Ce+se(e,"grow","positive")+e;case 4554:return ae+se(e,/([^-])(transform)/g,"$1"+ae+"$2")+e;case 6187:return se(se(se(e,/(zoom-|grab)/,ae+"$1"),/(image-set)/,ae+"$1"),e,"")+e;case 5495:case 3959:return se(e,/(image-set\([^]*)/,ae+"$1$`$1");case 4968:return se(se(e,/(.+:)(flex-)?(.*)/,ae+"box-pack:$3"+Ce+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+ae+e+e;case 4095:case 3583:case 4068:case 2532:return se(e,/(.+)-inline(.+)/,ae+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(dt(e)-1-t>6)switch(Ae(e,t+1)){case 109:if(Ae(e,t+4)!==45)break;case 102:return se(e,/(.+:)(.+)-([^]+)/,"$1"+ae+"$2-$3$1"+Tn+(Ae(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~za(e,"stretch")?Ei(se(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Ae(e,t+1)!==115)break;case 6444:switch(Ae(e,dt(e)-3-(~za(e,"!important")&&10))){case 107:return se(e,":",":"+ae)+e;case 101:return se(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ae+(Ae(e,14)===45?"inline-":"")+"box$3$1"+ae+"$2$3$1"+Ce+"$2box$3")+e}break;case 5936:switch(Ae(e,t+11)){case 114:return ae+e+Ce+se(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ae+e+Ce+se(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ae+e+Ce+se(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return ae+e+Ce+e+e}return e}var Ec=function(t,r,n,a){if(t.length>-1&&!t.return)switch(t.type){case _s:t.return=Ei(t.value,t.length);break;case Mi:return hr([Lr(t,{value:se(t.value,"@","@"+ae)})],a);case ps:if(t.length)return _c(t.props,function(s){switch(pc(s,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return hr([Lr(t,{props:[se(s,/:(read-\w+)/,":"+Tn+"$1")]})],a);case"::placeholder":return hr([Lr(t,{props:[se(s,/:(plac\w+)/,":"+ae+"input-$1")]}),Lr(t,{props:[se(s,/:(plac\w+)/,":"+Tn+"$1")]}),Lr(t,{props:[se(s,/:(plac\w+)/,Ce+"input-$1")]})],a)}return""})}},Lc=[Ec],Nc=function(t){var r=t.key;if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(_){var p=_.getAttribute("data-emotion");p.indexOf(" ")!==-1&&(document.head.appendChild(_),_.setAttribute("data-s",""))})}var a=t.stylisPlugins||Lc,s={},i,l=[];i=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(_){for(var p=_.getAttribute("data-emotion").split(" "),j=1;j<p.length;j++)s[p[j]]=!0;l.push(_)});var u,c=[Tc,Oc];{var m,f=[Ac,Cc(function(_){m.insert(_)})],d=Pc(c.concat(a,f)),b=function(p){return hr(Rc(p),d)};u=function(p,j,R,C){m=R,b(p?p+"{"+j.styles+"}":j.styles),C&&(y.inserted[j.name]=!0)}}var y={key:r,sheet:new cc({key:r,container:i,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:s,registered:{},insert:u};return y.sheet.hydrate(l),y};let Wa;typeof document=="object"&&(Wa=Nc({key:"css",prepend:!0}));function Li(e){const{injectFirst:t,children:r}=e;return t&&Wa?o.jsx(fr.CacheProvider,{value:Wa,children:r}):r}process.env.NODE_ENV!=="production"&&(Li.propTypes={children:h.node,injectFirst:h.bool});function $c(e){return e==null||Object.keys(e).length===0}function Ni(e){const{styles:t,defaultTheme:r={}}=e,n=typeof t=="function"?a=>t($c(a)?r:a):t;return o.jsx(fr.Global,{styles:n})}process.env.NODE_ENV!=="production"&&(Ni.propTypes={defaultTheme:h.object,styles:h.oneOfType([h.array,h.string,h.object,h.func])});/**
|
|
31
31
|
* @mui/styled-engine v5.16.6
|
|
32
32
|
*
|
|
33
33
|
* @license MIT
|
|
34
34
|
* This source code is licensed under the MIT license found in the
|
|
35
35
|
* LICENSE file in the root directory of this source tree.
|
|
36
|
-
*/function
|
|
37
|
-
`)):n.some(s=>s===void 0)&&console.error(`MUI: the styled(${a})(...args) API requires all its args to be defined.`),r(...n)}:r}const
|
|
36
|
+
*/function $i(e,t){const r=Zu(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(`
|
|
37
|
+
`)):n.some(s=>s===void 0)&&console.error(`MUI: the styled(${a})(...args) API requires all its args to be defined.`),r(...n)}:r}const Fi=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},Fc=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:Ni,StyledEngineProvider:Li,ThemeContext:fr.ThemeContext,css:fr.css,default:$i,internal_processStyles:Fi,keyframes:fr.keyframes},Symbol.toStringTag,{value:"Module"}));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 Be(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.includes(n))continue;r[n]=e[n]}return r}function jt(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 Di(e){if(!jt(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=Di(e[r])}),t}function et(e,t,r={clone:!0}){const n=r.clone?k({},e):e;return jt(e)&&jt(t)&&Object.keys(t).forEach(a=>{jt(t[a])&&Object.prototype.hasOwnProperty.call(e,a)&&jt(e[a])?n[a]=et(e[a],t[a],r):r.clone?n[a]=jt(t[a])?Di(t[a]):t[a]:n[a]=t[a]}),n}const Dc=Object.freeze(Object.defineProperty({__proto__:null,default:et,isPlainObject:jt},Symbol.toStringTag,{value:"Module"})),Bc=["values","unit","step"],Uc=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)=>k({},r,{[n.key]:n.val}),{})};function Bi(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,a=Be(e,Bc),s=Uc(t),i=Object.keys(s);function l(d){return`@media (min-width:${typeof t[d]=="number"?t[d]:d}${r})`}function u(d){return`@media (max-width:${(typeof t[d]=="number"?t[d]:d)-n/100}${r})`}function c(d,b){const y=i.indexOf(b);return`@media (min-width:${typeof t[d]=="number"?t[d]:d}${r}) and (max-width:${(y!==-1&&typeof t[i[y]]=="number"?t[i[y]]:b)-n/100}${r})`}function m(d){return i.indexOf(d)+1<i.length?c(d,i[i.indexOf(d)+1]):l(d)}function f(d){const b=i.indexOf(d);return b===0?l(i[1]):b===i.length-1?u(i[b]):c(d,i[i.indexOf(d)+1]).replace("@media","@media not all and")}return k({keys:i,values:s,up:l,down:u,between:c,only:m,not:f,unit:r},a)}const Jc={borderRadius:4},$t=process.env.NODE_ENV!=="production"?h.oneOfType([h.number,h.string,h.object,h.array]):{};function Br(e,t){return t?et(e,t,{clone:!1}):e}const bs={xs:0,sm:600,md:900,lg:1200,xl:1536},qs={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${bs[e]}px)`};function ot(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const s=n.breakpoints||qs;return t.reduce((i,l,u)=>(i[s.up(s.keys[u])]=r(t[u]),i),{})}if(typeof t=="object"){const s=n.breakpoints||qs;return Object.keys(t).reduce((i,l)=>{if(Object.keys(s.values||bs).indexOf(l)!==-1){const u=s.up(l);i[u]=r(t[l],l)}else{const u=l;i[u]=t[u]}return i},{})}return r(t)}function Ui(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((n,a)=>{const s=e.up(a);return n[s]={},n},{}))||{}}function Ji(e,t){return e.reduce((r,n)=>{const a=r[n];return(!a||Object.keys(a).length===0)&&delete r[n],r},t)}function Vc(e,...t){const r=Ui(e),n=[r,...t].reduce((a,s)=>et(a,s),{});return Ji(Object.keys(r),n)}function Gc(e,t){if(typeof e!="object")return{};const r={},n=Object.keys(t);return Array.isArray(e)?n.forEach((a,s)=>{s<e.length&&(r[a]=!0)}):n.forEach(a=>{e[a]!=null&&(r[a]=!0)}),r}function Aa({values:e,breakpoints:t,base:r}){const n=r||Gc(e,t),a=Object.keys(n);if(a.length===0)return e;let s;return a.reduce((i,l,u)=>(Array.isArray(e)?(i[l]=e[u]!=null?e[u]:e[s],s=u):typeof e=="object"?(i[l]=e[l]!=null?e[l]:e[s],s=l):i[l]=e,i),{})}function Pe(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":Gr(7));return e.charAt(0).toUpperCase()+e.slice(1)}const zc=Object.freeze(Object.defineProperty({__proto__:null,default:Pe},Symbol.toStringTag,{value:"Module"}));function qn(e,t,r=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&r){const n=`vars.${t}`.split(".").reduce((a,s)=>a&&a[s]?a[s]:null,e);if(n!=null)return n}return t.split(".").reduce((n,a)=>n&&n[a]!=null?n[a]:null,e)}function On(e,t,r,n=r){let a;return typeof e=="function"?a=e(r):Array.isArray(e)?a=e[r]||n:a=qn(e,r)||n,t&&(a=t(a,n,e)),a}function _e(e){const{prop:t,cssProperty:r=e.prop,themeKey:n,transform:a}=e,s=i=>{if(i[t]==null)return null;const l=i[t],u=i.theme,c=qn(u,n)||{};return ot(i,l,f=>{let d=On(c,a,f);return f===d&&typeof f=="string"&&(d=On(c,a,`${t}${f==="default"?"":Pe(f)}`,f)),r===!1?d:{[r]:d}})};return s.propTypes=process.env.NODE_ENV!=="production"?{[t]:$t}:{},s.filterProps=[t],s}function Kc(e){const t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}const Wc={m:"margin",p:"padding"},Hc={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Ys={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Xc=Kc(e=>{if(e.length>2)if(Ys[e])e=Ys[e];else return[e];const[t,r]=e.split(""),n=Wc[t],a=Hc[r]||"";return Array.isArray(a)?a.map(s=>n+s):[n+a]}),Yn=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Zn=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],qc=[...Yn,...Zn];function Qr(e,t,r,n){var a;const s=(a=qn(e,t,!1))!=null?a:r;return typeof s=="number"?i=>typeof i=="string"?i:(process.env.NODE_ENV!=="production"&&typeof i!="number"&&console.error(`MUI: Expected ${n} argument to be a number or a string, got ${i}.`),s*i):Array.isArray(s)?i=>typeof i=="string"?i:(process.env.NODE_ENV!=="production"&&(Number.isInteger(i)?i>s.length-1&&console.error([`MUI: The value provided (${i}) overflows.`,`The supported values are: ${JSON.stringify(s)}.`,`${i} > ${s.length-1}, you need to add the missing values.`].join(`
|
|
38
38
|
`)):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(`
|
|
39
39
|
`))),s[i]):typeof s=="function"?s:(process.env.NODE_ENV!=="production"&&console.error([`MUI: The \`theme.${t}\` value (${s}) is invalid.`,"It should be a number, an array or a function."].join(`
|
|
40
|
-
`)),()=>{})}function xs(e){return Qr(e,"spacing",8,"spacing")}function zt(e,t){if(typeof t=="string"||t==null)return t;const r=Math.abs(t),n=e(r);return t>=0?n:typeof n=="number"?-n:`-${n}`}function qc(e,t){return r=>e.reduce((n,a)=>(n[a]=zt(t,r),n),{})}function Yc(e,t,r,n){if(t.indexOf(r)===-1)return null;const a=Hc(r),s=qc(a,n),i=e[r];return ot(e,i,s)}function Ji(e,t){const r=xs(e.theme);return Object.keys(e).map(n=>Yc(e,t,n,r)).reduce(Ur,{})}function he(e){return Ji(e,Yn)}he.propTypes=process.env.NODE_ENV!=="production"?Yn.reduce((e,t)=>(e[t]=$t,e),{}):{};he.filterProps=Yn;function ge(e){return Ji(e,Zn)}ge.propTypes=process.env.NODE_ENV!=="production"?Zn.reduce((e,t)=>(e[t]=$t,e),{}):{};ge.filterProps=Zn;process.env.NODE_ENV!=="production"&&Xc.reduce((e,t)=>(e[t]=$t,e),{});function Zc(e=8){if(e.mui)return e;const t=xs({spacing:e}),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(s=>{const i=t(s);return typeof i=="number"?`${i}px`:i}).join(" "));return r.mui=!0,r}function Qn(...e){const t=e.reduce((n,a)=>(a.filterProps.forEach(s=>{n[s]=a}),n),{}),r=n=>Object.keys(n).reduce((a,s)=>t[s]?Ur(a,t[s](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 Ze(e){return typeof e!="number"?e:`${e}px solid`}function rt(e,t){return _e({prop:e,themeKey:"borders",transform:t})}const Qc=rt("border",Ze),em=rt("borderTop",Ze),tm=rt("borderRight",Ze),rm=rt("borderBottom",Ze),nm=rt("borderLeft",Ze),am=rt("borderColor"),sm=rt("borderTopColor"),om=rt("borderRightColor"),im=rt("borderBottomColor"),lm=rt("borderLeftColor"),um=rt("outline",Ze),cm=rt("outlineColor"),ea=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Qr(e.theme,"shape.borderRadius",4,"borderRadius"),r=n=>({borderRadius:zt(t,n)});return ot(e,e.borderRadius,r)}return null};ea.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:$t}:{};ea.filterProps=["borderRadius"];Qn(Qc,em,tm,rm,nm,am,sm,om,im,lm,ea,um,cm);const ta=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Qr(e.theme,"spacing",8,"gap"),r=n=>({gap:zt(t,n)});return ot(e,e.gap,r)}return null};ta.propTypes=process.env.NODE_ENV!=="production"?{gap:$t}:{};ta.filterProps=["gap"];const ra=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Qr(e.theme,"spacing",8,"columnGap"),r=n=>({columnGap:zt(t,n)});return ot(e,e.columnGap,r)}return null};ra.propTypes=process.env.NODE_ENV!=="production"?{columnGap:$t}:{};ra.filterProps=["columnGap"];const na=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Qr(e.theme,"spacing",8,"rowGap"),r=n=>({rowGap:zt(t,n)});return ot(e,e.rowGap,r)}return null};na.propTypes=process.env.NODE_ENV!=="production"?{rowGap:$t}:{};na.filterProps=["rowGap"];const mm=_e({prop:"gridColumn"}),dm=_e({prop:"gridRow"}),fm=_e({prop:"gridAutoFlow"}),hm=_e({prop:"gridAutoColumns"}),gm=_e({prop:"gridAutoRows"}),pm=_e({prop:"gridTemplateColumns"}),_m=_e({prop:"gridTemplateRows"}),ym=_e({prop:"gridTemplateAreas"}),bm=_e({prop:"gridArea"});Qn(ta,ra,na,mm,dm,fm,hm,gm,pm,_m,ym,bm);function gr(e,t){return t==="grey"?t:e}const xm=_e({prop:"color",themeKey:"palette",transform:gr}),vm=_e({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:gr}),jm=_e({prop:"backgroundColor",themeKey:"palette",transform:gr});Qn(xm,vm,jm);function Ge(e){return e<=1&&e!==0?`${e*100}%`:e}const Sm=_e({prop:"width",transform:Ge}),vs=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=r=>{var n,a;const s=((n=e.theme)==null||(n=n.breakpoints)==null||(n=n.values)==null?void 0:n[r])||bs[r];return s?((a=e.theme)==null||(a=a.breakpoints)==null?void 0:a.unit)!=="px"?{maxWidth:`${s}${e.theme.breakpoints.unit}`}:{maxWidth:s}:{maxWidth:Ge(r)}};return ot(e,e.maxWidth,t)}return null};vs.filterProps=["maxWidth"];const Rm=_e({prop:"minWidth",transform:Ge}),Am=_e({prop:"height",transform:Ge}),wm=_e({prop:"maxHeight",transform:Ge}),Pm=_e({prop:"minHeight",transform:Ge});_e({prop:"size",cssProperty:"width",transform:Ge});_e({prop:"size",cssProperty:"height",transform:Ge});const Cm=_e({prop:"boxSizing"});Qn(Sm,vs,Rm,Am,wm,Pm,Cm);const en={border:{themeKey:"borders",transform:Ze},borderTop:{themeKey:"borders",transform:Ze},borderRight:{themeKey:"borders",transform:Ze},borderBottom:{themeKey:"borders",transform:Ze},borderLeft:{themeKey:"borders",transform:Ze},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Ze},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:ea},color:{themeKey:"palette",transform:gr},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:gr},backgroundColor:{themeKey:"palette",transform:gr},p:{style:ge},pt:{style:ge},pr:{style:ge},pb:{style:ge},pl:{style:ge},px:{style:ge},py:{style:ge},padding:{style:ge},paddingTop:{style:ge},paddingRight:{style:ge},paddingBottom:{style:ge},paddingLeft:{style:ge},paddingX:{style:ge},paddingY:{style:ge},paddingInline:{style:ge},paddingInlineStart:{style:ge},paddingInlineEnd:{style:ge},paddingBlock:{style:ge},paddingBlockStart:{style:ge},paddingBlockEnd:{style:ge},m:{style:he},mt:{style:he},mr:{style:he},mb:{style:he},ml:{style:he},mx:{style:he},my:{style:he},margin:{style:he},marginTop:{style:he},marginRight:{style:he},marginBottom:{style:he},marginLeft:{style:he},marginX:{style:he},marginY:{style:he},marginInline:{style:he},marginInlineStart:{style:he},marginInlineEnd:{style:he},marginBlock:{style:he},marginBlockStart:{style:he},marginBlockEnd:{style:he},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:ta},rowGap:{style:na},columnGap:{style:ra},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Ge},maxWidth:{style:vs},minWidth:{transform:Ge},height:{transform:Ge},maxHeight:{transform:Ge},minHeight:{transform:Ge},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function Mm(...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 km(e,t){return typeof e=="function"?e(t):e}function Vi(){function e(r,n,a,s){const i={[r]:n,theme:a},l=s[r];if(!l)return{[r]:n};const{cssProperty:u=r,themeKey:c,transform:m,style:f}=l;if(n==null)return null;if(c==="typography"&&n==="inherit")return{[r]:n};const d=qn(a,c)||{};return f?f(i):ot(i,n,y=>{let _=On(d,m,y);return y===_&&typeof y=="string"&&(_=On(d,m,`${r}${y==="default"?"":Pe(y)}`,y)),u===!1?_:{[u]:_}})}function t(r){var n;const{sx:a,theme:s={}}=r||{};if(!a)return null;const i=(n=s.unstable_sxConfig)!=null?n:en;function l(u){let c=u;if(typeof u=="function")c=u(s);else if(typeof u!="object")return u;if(!c)return null;const m=Ui(s.breakpoints),f=Object.keys(m);let d=m;return Object.keys(c).forEach(x=>{const y=km(c[x],s);if(y!=null)if(typeof y=="object")if(i[x])d=Ur(d,e(x,y,s,i));else{const _=ot({theme:s},y,p=>({[x]:p}));Mm(_,y)?d[x]=t({sx:y,theme:s}):d=Ur(d,_)}else d=Ur(d,e(x,y,s,i))}),Bi(f,d)}return Array.isArray(a)?a.map(l):l(a)}return t}const tn=Vi();tn.filterProps=["sx"];function Gi(e,t){const r=this;return r.vars&&typeof r.getColorSchemeSelector=="function"?{[r.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}:r.palette.mode===e?t:{}}const Im=["breakpoints","palette","spacing","shape"];function rn(e={},...t){const{breakpoints:r={},palette:n={},spacing:a,shape:s={}}=e,i=Ue(e,Im),l=Di(r),u=Zc(a);let c=et({breakpoints:l,direction:"ltr",components:{},palette:k({mode:"light"},n),spacing:u,shape:k({},Bc,s)},i);return c.applyStyles=Gi,c=t.reduce((m,f)=>et(m,f),c),c.unstable_sxConfig=k({},en,i==null?void 0:i.unstable_sxConfig),c.unstable_sx=function(f){return tn({sx:f,theme:this})},c}const Tm=Object.freeze(Object.defineProperty({__proto__:null,default:rn,private_createBreakpoints:Di,unstable_applyStyles:Gi},Symbol.toStringTag,{value:"Module"}));function Om(e){return Object.keys(e).length===0}function Em(e=null){const t=$.useContext(fr.ThemeContext);return!t||Om(t)?e:t}const Lm=rn();function Nm(e=Lm){return Em(e)}const $m=["sx"],Fm=e=>{var t,r;const n={systemProps:{},otherProps:{}},a=(t=e==null||(r=e.theme)==null?void 0:r.unstable_sxConfig)!=null?t:en;return Object.keys(e).forEach(s=>{a[s]?n.systemProps[s]=e[s]:n.otherProps[s]=e[s]}),n};function zi(e){const{sx:t}=e,r=Ue(e,$m),{systemProps:n,otherProps:a}=Fm(r);let s;return Array.isArray(t)?s=[n,...t]:typeof t=="function"?s=(...i)=>{const l=t(...i);return jt(l)?k({},n,l):n}:s=k({},n,t),k({},a,{sx:s})}const Dm=Object.freeze(Object.defineProperty({__proto__:null,default:tn,extendSxProp:zi,unstable_createStyleFunctionSx:Vi,unstable_defaultSxConfig:en},Symbol.toStringTag,{value:"Module"})),Zs=e=>e,Um=()=>{let e=Zs;return{configure(t){e=t},generate(t){return e(t)},reset(){e=Zs}}},Ki=Um();function Wi(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=Wi(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function gt(){for(var e,t,r=0,n="",a=arguments.length;r<a;r++)(e=arguments[r])&&(t=Wi(e))&&(n&&(n+=" "),n+=t);return n}const Bm={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 nn(e,t,r="Mui"){const n=Bm[t];return n?`${r}-${n}`:`${Ki.generate(e)}-${t}`}function Hi(e,t,r="Mui"){const n={};return t.forEach(a=>{n[a]=nn(e,a,r)}),n}var Ha={exports:{}},oe={};/**
|
|
40
|
+
`)),()=>{})}function xs(e){return Qr(e,"spacing",8,"spacing")}function zt(e,t){if(typeof t=="string"||t==null)return t;const r=Math.abs(t),n=e(r);return t>=0?n:typeof n=="number"?-n:`-${n}`}function Yc(e,t){return r=>e.reduce((n,a)=>(n[a]=zt(t,r),n),{})}function Zc(e,t,r,n){if(t.indexOf(r)===-1)return null;const a=Xc(r),s=Yc(a,n),i=e[r];return ot(e,i,s)}function Vi(e,t){const r=xs(e.theme);return Object.keys(e).map(n=>Zc(e,t,n,r)).reduce(Br,{})}function he(e){return Vi(e,Yn)}he.propTypes=process.env.NODE_ENV!=="production"?Yn.reduce((e,t)=>(e[t]=$t,e),{}):{};he.filterProps=Yn;function ge(e){return Vi(e,Zn)}ge.propTypes=process.env.NODE_ENV!=="production"?Zn.reduce((e,t)=>(e[t]=$t,e),{}):{};ge.filterProps=Zn;process.env.NODE_ENV!=="production"&&qc.reduce((e,t)=>(e[t]=$t,e),{});function Qc(e=8){if(e.mui)return e;const t=xs({spacing:e}),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(s=>{const i=t(s);return typeof i=="number"?`${i}px`:i}).join(" "));return r.mui=!0,r}function Qn(...e){const t=e.reduce((n,a)=>(a.filterProps.forEach(s=>{n[s]=a}),n),{}),r=n=>Object.keys(n).reduce((a,s)=>t[s]?Br(a,t[s](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 Ze(e){return typeof e!="number"?e:`${e}px solid`}function rt(e,t){return _e({prop:e,themeKey:"borders",transform:t})}const em=rt("border",Ze),tm=rt("borderTop",Ze),rm=rt("borderRight",Ze),nm=rt("borderBottom",Ze),am=rt("borderLeft",Ze),sm=rt("borderColor"),om=rt("borderTopColor"),im=rt("borderRightColor"),lm=rt("borderBottomColor"),um=rt("borderLeftColor"),cm=rt("outline",Ze),mm=rt("outlineColor"),ea=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Qr(e.theme,"shape.borderRadius",4,"borderRadius"),r=n=>({borderRadius:zt(t,n)});return ot(e,e.borderRadius,r)}return null};ea.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:$t}:{};ea.filterProps=["borderRadius"];Qn(em,tm,rm,nm,am,sm,om,im,lm,um,ea,cm,mm);const ta=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Qr(e.theme,"spacing",8,"gap"),r=n=>({gap:zt(t,n)});return ot(e,e.gap,r)}return null};ta.propTypes=process.env.NODE_ENV!=="production"?{gap:$t}:{};ta.filterProps=["gap"];const ra=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Qr(e.theme,"spacing",8,"columnGap"),r=n=>({columnGap:zt(t,n)});return ot(e,e.columnGap,r)}return null};ra.propTypes=process.env.NODE_ENV!=="production"?{columnGap:$t}:{};ra.filterProps=["columnGap"];const na=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Qr(e.theme,"spacing",8,"rowGap"),r=n=>({rowGap:zt(t,n)});return ot(e,e.rowGap,r)}return null};na.propTypes=process.env.NODE_ENV!=="production"?{rowGap:$t}:{};na.filterProps=["rowGap"];const dm=_e({prop:"gridColumn"}),fm=_e({prop:"gridRow"}),hm=_e({prop:"gridAutoFlow"}),gm=_e({prop:"gridAutoColumns"}),pm=_e({prop:"gridAutoRows"}),_m=_e({prop:"gridTemplateColumns"}),ym=_e({prop:"gridTemplateRows"}),bm=_e({prop:"gridTemplateAreas"}),xm=_e({prop:"gridArea"});Qn(ta,ra,na,dm,fm,hm,gm,pm,_m,ym,bm,xm);function gr(e,t){return t==="grey"?t:e}const vm=_e({prop:"color",themeKey:"palette",transform:gr}),jm=_e({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:gr}),Sm=_e({prop:"backgroundColor",themeKey:"palette",transform:gr});Qn(vm,jm,Sm);function Ge(e){return e<=1&&e!==0?`${e*100}%`:e}const Rm=_e({prop:"width",transform:Ge}),vs=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=r=>{var n,a;const s=((n=e.theme)==null||(n=n.breakpoints)==null||(n=n.values)==null?void 0:n[r])||bs[r];return s?((a=e.theme)==null||(a=a.breakpoints)==null?void 0:a.unit)!=="px"?{maxWidth:`${s}${e.theme.breakpoints.unit}`}:{maxWidth:s}:{maxWidth:Ge(r)}};return ot(e,e.maxWidth,t)}return null};vs.filterProps=["maxWidth"];const wm=_e({prop:"minWidth",transform:Ge}),Am=_e({prop:"height",transform:Ge}),Pm=_e({prop:"maxHeight",transform:Ge}),Cm=_e({prop:"minHeight",transform:Ge});_e({prop:"size",cssProperty:"width",transform:Ge});_e({prop:"size",cssProperty:"height",transform:Ge});const Mm=_e({prop:"boxSizing"});Qn(Rm,vs,wm,Am,Pm,Cm,Mm);const en={border:{themeKey:"borders",transform:Ze},borderTop:{themeKey:"borders",transform:Ze},borderRight:{themeKey:"borders",transform:Ze},borderBottom:{themeKey:"borders",transform:Ze},borderLeft:{themeKey:"borders",transform:Ze},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Ze},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:ea},color:{themeKey:"palette",transform:gr},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:gr},backgroundColor:{themeKey:"palette",transform:gr},p:{style:ge},pt:{style:ge},pr:{style:ge},pb:{style:ge},pl:{style:ge},px:{style:ge},py:{style:ge},padding:{style:ge},paddingTop:{style:ge},paddingRight:{style:ge},paddingBottom:{style:ge},paddingLeft:{style:ge},paddingX:{style:ge},paddingY:{style:ge},paddingInline:{style:ge},paddingInlineStart:{style:ge},paddingInlineEnd:{style:ge},paddingBlock:{style:ge},paddingBlockStart:{style:ge},paddingBlockEnd:{style:ge},m:{style:he},mt:{style:he},mr:{style:he},mb:{style:he},ml:{style:he},mx:{style:he},my:{style:he},margin:{style:he},marginTop:{style:he},marginRight:{style:he},marginBottom:{style:he},marginLeft:{style:he},marginX:{style:he},marginY:{style:he},marginInline:{style:he},marginInlineStart:{style:he},marginInlineEnd:{style:he},marginBlock:{style:he},marginBlockStart:{style:he},marginBlockEnd:{style:he},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:ta},rowGap:{style:na},columnGap:{style:ra},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Ge},maxWidth:{style:vs},minWidth:{transform:Ge},height:{transform:Ge},maxHeight:{transform:Ge},minHeight:{transform:Ge},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function km(...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 Im(e,t){return typeof e=="function"?e(t):e}function Gi(){function e(r,n,a,s){const i={[r]:n,theme:a},l=s[r];if(!l)return{[r]:n};const{cssProperty:u=r,themeKey:c,transform:m,style:f}=l;if(n==null)return null;if(c==="typography"&&n==="inherit")return{[r]:n};const d=qn(a,c)||{};return f?f(i):ot(i,n,y=>{let _=On(d,m,y);return y===_&&typeof y=="string"&&(_=On(d,m,`${r}${y==="default"?"":Pe(y)}`,y)),u===!1?_:{[u]:_}})}function t(r){var n;const{sx:a,theme:s={}}=r||{};if(!a)return null;const i=(n=s.unstable_sxConfig)!=null?n:en;function l(u){let c=u;if(typeof u=="function")c=u(s);else if(typeof u!="object")return u;if(!c)return null;const m=Ui(s.breakpoints),f=Object.keys(m);let d=m;return Object.keys(c).forEach(b=>{const y=Im(c[b],s);if(y!=null)if(typeof y=="object")if(i[b])d=Br(d,e(b,y,s,i));else{const _=ot({theme:s},y,p=>({[b]:p}));km(_,y)?d[b]=t({sx:y,theme:s}):d=Br(d,_)}else d=Br(d,e(b,y,s,i))}),Ji(f,d)}return Array.isArray(a)?a.map(l):l(a)}return t}const tn=Gi();tn.filterProps=["sx"];function zi(e,t){const r=this;return r.vars&&typeof r.getColorSchemeSelector=="function"?{[r.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}:r.palette.mode===e?t:{}}const Tm=["breakpoints","palette","spacing","shape"];function rn(e={},...t){const{breakpoints:r={},palette:n={},spacing:a,shape:s={}}=e,i=Be(e,Tm),l=Bi(r),u=Qc(a);let c=et({breakpoints:l,direction:"ltr",components:{},palette:k({mode:"light"},n),spacing:u,shape:k({},Jc,s)},i);return c.applyStyles=zi,c=t.reduce((m,f)=>et(m,f),c),c.unstable_sxConfig=k({},en,i==null?void 0:i.unstable_sxConfig),c.unstable_sx=function(f){return tn({sx:f,theme:this})},c}const Om=Object.freeze(Object.defineProperty({__proto__:null,default:rn,private_createBreakpoints:Bi,unstable_applyStyles:zi},Symbol.toStringTag,{value:"Module"}));function Em(e){return Object.keys(e).length===0}function Lm(e=null){const t=$.useContext(fr.ThemeContext);return!t||Em(t)?e:t}const Nm=rn();function $m(e=Nm){return Lm(e)}const Fm=["sx"],Dm=e=>{var t,r;const n={systemProps:{},otherProps:{}},a=(t=e==null||(r=e.theme)==null?void 0:r.unstable_sxConfig)!=null?t:en;return Object.keys(e).forEach(s=>{a[s]?n.systemProps[s]=e[s]:n.otherProps[s]=e[s]}),n};function Ki(e){const{sx:t}=e,r=Be(e,Fm),{systemProps:n,otherProps:a}=Dm(r);let s;return Array.isArray(t)?s=[n,...t]:typeof t=="function"?s=(...i)=>{const l=t(...i);return jt(l)?k({},n,l):n}:s=k({},n,t),k({},a,{sx:s})}const Bm=Object.freeze(Object.defineProperty({__proto__:null,default:tn,extendSxProp:Ki,unstable_createStyleFunctionSx:Gi,unstable_defaultSxConfig:en},Symbol.toStringTag,{value:"Module"})),Zs=e=>e,Um=()=>{let e=Zs;return{configure(t){e=t},generate(t){return e(t)},reset(){e=Zs}}},Wi=Um();function Hi(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=Hi(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function gt(){for(var e,t,r=0,n="",a=arguments.length;r<a;r++)(e=arguments[r])&&(t=Hi(e))&&(n&&(n+=" "),n+=t);return n}const Jm={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 nn(e,t,r="Mui"){const n=Jm[t];return n?`${r}-${n}`:`${Wi.generate(e)}-${t}`}function Xi(e,t,r="Mui"){const n={};return t.forEach(a=>{n[a]=nn(e,a,r)}),n}var Ha={exports:{}},oe={};/**
|
|
41
41
|
* @license React
|
|
42
42
|
* react-is.production.min.js
|
|
43
43
|
*
|
|
@@ -45,7 +45,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
45
45
|
*
|
|
46
46
|
* This source code is licensed under the MIT license found in the
|
|
47
47
|
* LICENSE file in the root directory of this source tree.
|
|
48
|
-
*/var Qs;function
|
|
48
|
+
*/var Qs;function Vm(){if(Qs)return oe;Qs=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),i=Symbol.for("react.context"),l=Symbol.for("react.server_context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),m=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),b=Symbol.for("react.offscreen"),y;y=Symbol.for("react.module.reference");function _(p){if(typeof p=="object"&&p!==null){var j=p.$$typeof;switch(j){case e:switch(p=p.type,p){case r:case a:case n:case c:case m:return p;default:switch(p=p&&p.$$typeof,p){case l:case i:case u:case d:case f:case s:return p;default:return j}}case t:return j}}}return oe.ContextConsumer=i,oe.ContextProvider=s,oe.Element=e,oe.ForwardRef=u,oe.Fragment=r,oe.Lazy=d,oe.Memo=f,oe.Portal=t,oe.Profiler=a,oe.StrictMode=n,oe.Suspense=c,oe.SuspenseList=m,oe.isAsyncMode=function(){return!1},oe.isConcurrentMode=function(){return!1},oe.isContextConsumer=function(p){return _(p)===i},oe.isContextProvider=function(p){return _(p)===s},oe.isElement=function(p){return typeof p=="object"&&p!==null&&p.$$typeof===e},oe.isForwardRef=function(p){return _(p)===u},oe.isFragment=function(p){return _(p)===r},oe.isLazy=function(p){return _(p)===d},oe.isMemo=function(p){return _(p)===f},oe.isPortal=function(p){return _(p)===t},oe.isProfiler=function(p){return _(p)===a},oe.isStrictMode=function(p){return _(p)===n},oe.isSuspense=function(p){return _(p)===c},oe.isSuspenseList=function(p){return _(p)===m},oe.isValidElementType=function(p){return typeof p=="string"||typeof p=="function"||p===r||p===a||p===n||p===c||p===m||p===b||typeof p=="object"&&p!==null&&(p.$$typeof===d||p.$$typeof===f||p.$$typeof===s||p.$$typeof===i||p.$$typeof===u||p.$$typeof===y||p.getModuleId!==void 0)},oe.typeOf=_,oe}var ie={};/**
|
|
49
49
|
* @license React
|
|
50
50
|
* react-is.development.js
|
|
51
51
|
*
|
|
@@ -53,11 +53,11 @@ React keys must be passed directly to JSX without using spread:
|
|
|
53
53
|
*
|
|
54
54
|
* This source code is licensed under the MIT license found in the
|
|
55
55
|
* LICENSE file in the root directory of this source tree.
|
|
56
|
-
*/var eo;function
|
|
56
|
+
*/var eo;function Gm(){return eo||(eo=1,process.env.NODE_ENV!=="production"&&function(){var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),i=Symbol.for("react.context"),l=Symbol.for("react.server_context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),m=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),b=Symbol.for("react.offscreen"),y=!1,_=!1,p=!1,j=!1,R=!1,C;C=Symbol.for("react.module.reference");function A(O){return!!(typeof O=="string"||typeof O=="function"||O===r||O===a||R||O===n||O===c||O===m||j||O===b||y||_||p||typeof O=="object"&&O!==null&&(O.$$typeof===d||O.$$typeof===f||O.$$typeof===s||O.$$typeof===i||O.$$typeof===u||O.$$typeof===C||O.getModuleId!==void 0))}function S(O){if(typeof O=="object"&&O!==null){var te=O.$$typeof;switch(te){case e:var fe=O.type;switch(fe){case r:case a:case n:case c:case m:return fe;default:var Ee=fe&&fe.$$typeof;switch(Ee){case l:case i:case u:case d:case f:case s:return Ee;default:return te}}case t:return te}}}var P=i,M=s,K=e,le=u,ce=r,D=d,q=f,G=t,Z=a,X=n,je=c,ue=m,ee=!1,we=!1;function Oe(O){return ee||(ee=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function nt(O){return we||(we=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function yt(O){return S(O)===i}function We(O){return S(O)===s}function Se(O){return typeof O=="object"&&O!==null&&O.$$typeof===e}function Ct(O){return S(O)===u}function lt(O){return S(O)===r}function He(O){return S(O)===d}function Ue(O){return S(O)===f}function ut(O){return S(O)===t}function ct(O){return S(O)===a}function Ft(O){return S(O)===n}function bt(O){return S(O)===c}function Je(O){return S(O)===m}ie.ContextConsumer=P,ie.ContextProvider=M,ie.Element=K,ie.ForwardRef=le,ie.Fragment=ce,ie.Lazy=D,ie.Memo=q,ie.Portal=G,ie.Profiler=Z,ie.StrictMode=X,ie.Suspense=je,ie.SuspenseList=ue,ie.isAsyncMode=Oe,ie.isConcurrentMode=nt,ie.isContextConsumer=yt,ie.isContextProvider=We,ie.isElement=Se,ie.isForwardRef=Ct,ie.isFragment=lt,ie.isLazy=He,ie.isMemo=Ue,ie.isPortal=ut,ie.isProfiler=ct,ie.isStrictMode=Ft,ie.isSuspense=bt,ie.isSuspenseList=Je,ie.isValidElementType=A,ie.typeOf=S}()),ie}process.env.NODE_ENV==="production"?Ha.exports=Vm():Ha.exports=Gm();var to=Ha.exports;const zm=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function qi(e){const t=`${e}`.match(zm);return t&&t[1]||""}function Yi(e,t=""){return e.displayName||e.name||qi(e)||t}function ro(e,t,r){const n=Yi(t);return e.displayName||(n!==""?`${r}(${n})`:r)}function Zi(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return Yi(e,"Component");if(typeof e=="object")switch(e.$$typeof){case to.ForwardRef:return ro(e,e.render,"ForwardRef");case to.Memo:return ro(e,e.type,"memo");default:return}}}const Km=Object.freeze(Object.defineProperty({__proto__:null,default:Zi,getFunctionName:qi},Symbol.toStringTag,{value:"Module"})),Wm=["ownerState"],Hm=["variants"],Xm=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function qm(e){return Object.keys(e).length===0}function Ym(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Pa(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Zm=rn(),no=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function fn({defaultTheme:e,theme:t,themeId:r}){return qm(t)?e:t[r]||t}function Qm(e){return e?(t,r)=>r[e]:null}function wn(e,t){let{ownerState:r}=t,n=Be(t,Wm);const a=typeof e=="function"?e(k({ownerState:r},n)):e;if(Array.isArray(a))return a.flatMap(s=>wn(s,k({ownerState:r},n)));if(a&&typeof a=="object"&&Array.isArray(a.variants)){const{variants:s=[]}=a;let l=Be(a,Hm);return s.forEach(u=>{let c=!0;typeof u.props=="function"?c=u.props(k({ownerState:r},n,r)):Object.keys(u.props).forEach(m=>{(r==null?void 0:r[m])!==u.props[m]&&n[m]!==u.props[m]&&(c=!1)}),c&&(Array.isArray(l)||(l=[l]),l.push(typeof u.style=="function"?u.style(k({ownerState:r},n,r)):u.style))}),l}return a}function ed(e={}){const{themeId:t,defaultTheme:r=Zm,rootShouldForwardProp:n=Pa,slotShouldForwardProp:a=Pa}=e,s=i=>tn(k({},i,{theme:fn(k({},i,{defaultTheme:r,themeId:t}))}));return s.__mui_systemSx=!0,(i,l={})=>{Fi(i,S=>S.filter(P=>!(P!=null&&P.__mui_systemSx)));const{name:u,slot:c,skipVariantsResolver:m,skipSx:f,overridesResolver:d=Qm(no(c))}=l,b=Be(l,Xm),y=m!==void 0?m:c&&c!=="Root"&&c!=="root"||!1,_=f||!1;let p;process.env.NODE_ENV!=="production"&&u&&(p=`${u}-${no(c||"Root")}`);let j=Pa;c==="Root"||c==="root"?j=n:c?j=a:Ym(i)&&(j=void 0);const R=$i(i,k({shouldForwardProp:j,label:p},b)),C=S=>typeof S=="function"&&S.__emotion_real!==S||jt(S)?P=>wn(S,k({},P,{theme:fn({theme:P.theme,defaultTheme:r,themeId:t})})):S,A=(S,...P)=>{let M=C(S);const K=P?P.map(C):[];u&&d&&K.push(D=>{const q=fn(k({},D,{defaultTheme:r,themeId:t}));if(!q.components||!q.components[u]||!q.components[u].styleOverrides)return null;const G=q.components[u].styleOverrides,Z={};return Object.entries(G).forEach(([X,je])=>{Z[X]=wn(je,k({},D,{theme:q}))}),d(D,Z)}),u&&!y&&K.push(D=>{var q;const G=fn(k({},D,{defaultTheme:r,themeId:t})),Z=G==null||(q=G.components)==null||(q=q[u])==null?void 0:q.variants;return wn({variants:Z},k({},D,{theme:G}))}),_||K.push(s);const le=K.length-P.length;if(Array.isArray(S)&&le>0){const D=new Array(le).fill("");M=[...S,...D],M.raw=[...S.raw,...D]}const ce=R(M,...K);if(process.env.NODE_ENV!=="production"){let D;u&&(D=`${u}${Pe(c||"")}`),D===void 0&&(D=`Styled(${Zi(i)})`),ce.displayName=D}return i.muiName&&(ce.muiName=i.muiName),ce};return R.withConfig&&(A.withConfig=R.withConfig),A}}const td=ed();function En(e,t){const r=k({},t);return Object.keys(e).forEach(n=>{if(n.toString().match(/^(components|slots)$/))r[n]=k({},e[n],r[n]);else if(n.toString().match(/^(componentsProps|slotProps)$/)){const a=e[n]||{},s=t[n];r[n]={},!s||!Object.keys(s)?r[n]=a:!a||!Object.keys(a)?r[n]=s:(r[n]=k({},s),Object.keys(a).forEach(i=>{r[n][i]=En(a[i],s[i])}))}else r[n]===void 0&&(r[n]=e[n])}),r}function rd(e){const{theme:t,name:r,props:n}=e;return!t||!t.components||!t.components[r]||!t.components[r].defaultProps?n:En(t.components[r].defaultProps,n)}function nd({props:e,name:t,defaultTheme:r,themeId:n}){let a=$m(r);return n&&(a=a[n]||a),rd({theme:a,name:t,props:e})}const js=typeof window<"u"?$.useLayoutEffect:$.useEffect;function dr(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}const ad=Object.freeze(Object.defineProperty({__proto__:null,default:dr},Symbol.toStringTag,{value:"Module"}));function ao(e,t){return process.env.NODE_ENV==="production"?()=>null:function(...n){return e(...n)||t(...n)}}function sd(...e){return e.reduce((t,r)=>r==null?t:function(...a){t.apply(this,a),r.apply(this,a)},()=>{})}function od(e,t=166){let r;function n(...a){const s=()=>{e.apply(this,a)};clearTimeout(r),r=setTimeout(s,t)}return n.clear=()=>{clearTimeout(r)},n}function id(e,t){return process.env.NODE_ENV==="production"?()=>null:(r,n,a,s,i)=>{const l=a||"<<anonymous>>",u=i||n;return typeof r[n]<"u"?new Error(`The ${s} \`${u}\` of \`${l}\` is deprecated. ${t}`):null}}function ld(e,t){var r,n;return $.isValidElement(e)&&t.indexOf((r=e.type.muiName)!=null?r:(n=e.type)==null||(n=n._payload)==null||(n=n.value)==null?void 0:n.muiName)!==-1}function pr(e){return e&&e.ownerDocument||document}function ud(e){return pr(e).defaultView||window}function cd(e,t){if(process.env.NODE_ENV==="production")return()=>null;const r=t?k({},t.propTypes):null;return a=>(s,i,l,u,c,...m)=>{const f=c||i,d=r==null?void 0:r[f];if(d){const b=d(s,i,l,u,c,...m);if(b)return b}return typeof s[i]<"u"&&!s[a]?new Error(`The prop \`${f}\` of \`${e}\` can only be used together with the \`${a}\` prop.`):null}}function Qi(e,t){typeof e=="function"?e(t):e&&(e.current=t)}let so=0;function md(e){const[t,r]=$.useState(e),n=e||t;return $.useEffect(()=>{t==null&&(so+=1,r(`mui-${so}`))},[t]),n}const oo=$.useId;function dd(e){if(oo!==void 0){const t=oo();return e??t}return md(e)}function fd(e,t,r,n,a){if(process.env.NODE_ENV==="production")return null;const s=a||t;return typeof e[t]<"u"?new Error(`The prop \`${s}\` is not supported. Please remove it.`):null}function el({controlled:e,default:t,name:r,state:n="value"}){const{current:a}=$.useRef(e!==void 0),[s,i]=$.useState(t),l=a?e:s;if(process.env.NODE_ENV!=="production"){$.useEffect(()=>{a!==(e!==void 0)&&console.error([`MUI: A component is changing the ${a?"":"un"}controlled ${n} state of ${r} to be ${a?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${r} element for the lifetime of the component.`,"The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.","More info: https://fb.me/react-controlled-components"].join(`
|
|
57
57
|
`))},[n,r,e]);const{current:c}=$.useRef(t);$.useEffect(()=>{!a&&!Object.is(c,t)&&console.error([`MUI: A component is changing the default ${n} state of an uncontrolled ${r} after being initialized. To suppress this warning opt to use a controlled ${r}.`].join(`
|
|
58
|
-
`))},[JSON.stringify(t)])}const u=$.useCallback(c=>{a||i(c)},[]);return[l,u]}function wn(e){const t=$.useRef(e);return js(()=>{t.current=e}),$.useRef((...r)=>(0,t.current)(...r)).current}function Ln(...e){return $.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(r=>{Zi(r,t)})},e)}class Ss{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new Ss}start(t,r){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,r()},t)}}let aa=!0,Xa=!1;const fd=new Ss,hd={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function gd(e){const{type:t,tagName:r}=e;return!!(r==="INPUT"&&hd[t]&&!e.readOnly||r==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function pd(e){e.metaKey||e.altKey||e.ctrlKey||(aa=!0)}function Ca(){aa=!1}function _d(){this.visibilityState==="hidden"&&Xa&&(aa=!0)}function yd(e){e.addEventListener("keydown",pd,!0),e.addEventListener("mousedown",Ca,!0),e.addEventListener("pointerdown",Ca,!0),e.addEventListener("touchstart",Ca,!0),e.addEventListener("visibilitychange",_d,!0)}function bd(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return aa||gd(t)}function el(){const e=$.useCallback(a=>{a!=null&&yd(a.ownerDocument)},[]),t=$.useRef(!1);function r(){return t.current?(Xa=!0,fd.start(100,()=>{Xa=!1}),t.current=!1,!0):!1}function n(a){return bd(a)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:n,onBlur:r,ref:e}}const xd={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function Rs(e,t,r=void 0){const n={};return Object.keys(e).forEach(a=>{n[a]=e[a].reduce((s,i)=>{if(i){const l=t(i);l!==""&&s.push(l),r&&r[i]&&s.push(r[i])}return s},[]).join(" ")}),n}function Br(e){return typeof e=="string"}function vd(e,t,r){return e===void 0||Br(e)?t:k({},t,{ownerState:k({},t.ownerState,r)})}function Pn(e,t=[]){if(e===void 0)return{};const r={};return Object.keys(e).filter(n=>n.match(/^on[A-Z]/)&&typeof e[n]=="function"&&!t.includes(n)).forEach(n=>{r[n]=e[n]}),r}function io(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(r=>!(r.match(/^on[A-Z]/)&&typeof e[r]=="function")).forEach(r=>{t[r]=e[r]}),t}function jd(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:n,externalForwardedProps:a,className:s}=e;if(!t){const x=gt(r==null?void 0:r.className,s,a==null?void 0:a.className,n==null?void 0:n.className),y=k({},r==null?void 0:r.style,a==null?void 0:a.style,n==null?void 0:n.style),_=k({},r,a,n);return x.length>0&&(_.className=x),Object.keys(y).length>0&&(_.style=y),{props:_,internalRef:void 0}}const i=Pn(k({},a,n)),l=io(n),u=io(a),c=t(i),m=gt(c==null?void 0:c.className,r==null?void 0:r.className,s,a==null?void 0:a.className,n==null?void 0:n.className),f=k({},c==null?void 0:c.style,r==null?void 0:r.style,a==null?void 0:a.style,n==null?void 0:n.style),d=k({},c,r,u,l);return m.length>0&&(d.className=m),Object.keys(f).length>0&&(d.style=f),{props:d,internalRef:c.ref}}function Sd(e,t,r){return typeof e=="function"?e(t,r):e}const Rd=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Tt(e){var t;const{elementType:r,externalSlotProps:n,ownerState:a,skipResolvingSlotProps:s=!1}=e,i=Ue(e,Rd),l=s?{}:Sd(n,a),{props:u,internalRef:c}=jd(k({},i,{externalSlotProps:l})),m=Ln(c,l==null?void 0:l.ref,(t=e.additionalProps)==null?void 0:t.ref);return vd(r,k({},u,{ref:m}),a)}const Ad=$.createContext();process.env.NODE_ENV!=="production"&&(h.node,h.bool);const wd=()=>{const e=$.useContext(Ad);return e??!1},Pd=$.createContext(void 0);process.env.NODE_ENV!=="production"&&(h.node,h.object);function Cd(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?En(a.defaultProps,n):!a.styleOverrides&&!a.variants?En(a,n):n}function Md({props:e,name:t}){const r=$.useContext(Pd);return Cd({props:e,name:t,theme:{components:r}})}const kd=["component","direction","spacing","divider","children","className","useFlexGap"],Id=rn(),Td=ed("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function Od(e){return rd({props:e,name:"MuiStack",defaultTheme:Id})}function Ed(e,t){const r=$.Children.toArray(e).filter(Boolean);return r.reduce((n,a,s)=>(n.push(a),s<r.length-1&&n.push($.cloneElement(t,{key:`separator-${s}`})),n),[])}const Ld=e=>({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],Nd=({ownerState:e,theme:t})=>{let r=k({display:"flex",flexDirection:"column"},ot({theme:t},wa({values:e.direction,breakpoints:t.breakpoints.values}),n=>({flexDirection:n})));if(e.spacing){const n=xs(t),a=Object.keys(t.breakpoints.values).reduce((u,c)=>((typeof e.spacing=="object"&&e.spacing[c]!=null||typeof e.direction=="object"&&e.direction[c]!=null)&&(u[c]=!0),u),{}),s=wa({values:e.direction,base:a}),i=wa({values:e.spacing,base:a});typeof s=="object"&&Object.keys(s).forEach((u,c,m)=>{if(!s[u]){const d=c>0?s[m[c-1]]:"column";s[u]=d}}),r=et(r,ot({theme:t},i,(u,c)=>e.useFlexGap?{gap:zt(n,u)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${Ld(c?s[c]:e.direction)}`]:zt(n,u)}}))}return r=Jc(t.breakpoints,r),r};function $d(e={}){const{createStyledComponent:t=Td,useThemeProps:r=Od,componentName:n="MuiStack"}=e,a=()=>Rs({root:["root"]},u=>nn(n,u),{}),s=t(Nd),i=$.forwardRef(function(u,c){const m=r(u),f=zi(m),{component:d="div",direction:x="column",spacing:y=0,divider:_,children:p,className:j,useFlexGap:R=!1}=f,C=Ue(f,kd),w={direction:x,spacing:y,useFlexGap:R},S=a();return o.jsx(s,k({as:d,ownerState:w,ref:c,className:gt(S.root,j)},C,{children:_?Ed(p,_):p}))});return process.env.NODE_ENV!=="production"&&(i.propTypes={children:h.node,direction:h.oneOfType([h.oneOf(["column-reverse","column","row-reverse","row"]),h.arrayOf(h.oneOf(["column-reverse","column","row-reverse","row"])),h.object]),divider:h.node,spacing:h.oneOfType([h.arrayOf(h.oneOfType([h.number,h.string])),h.number,h.object,h.string]),sx:h.oneOfType([h.arrayOf(h.oneOfType([h.func,h.object,h.bool])),h.func,h.object])}),i}var an={},tl={exports:{}};(function(e){function t(r){return r&&r.__esModule?r:{default:r}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(tl);var sa=tl.exports,Ma={exports:{}},lo;function Fd(){return lo||(lo=1,function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(r){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var s in a)({}).hasOwnProperty.call(a,s)&&(r[s]=a[s])}return r},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(null,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(Ma)),Ma.exports}var ka={exports:{}},uo;function Dd(){return uo||(uo=1,function(e){function t(r,n){if(r==null)return{};var a={};for(var s in r)if({}.hasOwnProperty.call(r,s)){if(n.includes(s))continue;a[s]=r[s]}return a}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(ka)),ka.exports}const Ud=Rt($c),Bd=Rt(Fc),Jd=Rt(Gc),Vd=Rt(zm),Gd=Rt(Tm),zd=Rt(Dm);var xr=sa;Object.defineProperty(an,"__esModule",{value:!0});var Kd=an.default=of;an.shouldForwardProp=Cn;an.systemDefaultTheme=void 0;var Ye=xr(Fd()),qa=xr(Dd()),co=tf(Ud),Wd=Bd,Hd=xr(Jd),Xd=xr(Vd),qd=xr(Gd),Yd=xr(zd);const Zd=["ownerState"],Qd=["variants"],ef=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function rl(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(rl=function(n){return n?r:t})(e)}function tf(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=rl(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if(s!=="default"&&Object.prototype.hasOwnProperty.call(e,s)){var i=a?Object.getOwnPropertyDescriptor(e,s):null;i&&(i.get||i.set)?Object.defineProperty(n,s,i):n[s]=e[s]}return n.default=e,r&&r.set(e,n),n}function rf(e){return Object.keys(e).length===0}function nf(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Cn(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const af=an.systemDefaultTheme=(0,qd.default)(),mo=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function hn({defaultTheme:e,theme:t,themeId:r}){return rf(t)?e:t[r]||t}function sf(e){return e?(t,r)=>r[e]:null}function Mn(e,t){let{ownerState:r}=t,n=(0,qa.default)(t,Zd);const a=typeof e=="function"?e((0,Ye.default)({ownerState:r},n)):e;if(Array.isArray(a))return a.flatMap(s=>Mn(s,(0,Ye.default)({ownerState:r},n)));if(a&&typeof a=="object"&&Array.isArray(a.variants)){const{variants:s=[]}=a;let l=(0,qa.default)(a,Qd);return s.forEach(u=>{let c=!0;typeof u.props=="function"?c=u.props((0,Ye.default)({ownerState:r},n,r)):Object.keys(u.props).forEach(m=>{(r==null?void 0:r[m])!==u.props[m]&&n[m]!==u.props[m]&&(c=!1)}),c&&(Array.isArray(l)||(l=[l]),l.push(typeof u.style=="function"?u.style((0,Ye.default)({ownerState:r},n,r)):u.style))}),l}return a}function of(e={}){const{themeId:t,defaultTheme:r=af,rootShouldForwardProp:n=Cn,slotShouldForwardProp:a=Cn}=e,s=i=>(0,Yd.default)((0,Ye.default)({},i,{theme:hn((0,Ye.default)({},i,{defaultTheme:r,themeId:t}))}));return s.__mui_systemSx=!0,(i,l={})=>{(0,co.internal_processStyles)(i,S=>S.filter(P=>!(P!=null&&P.__mui_systemSx)));const{name:u,slot:c,skipVariantsResolver:m,skipSx:f,overridesResolver:d=sf(mo(c))}=l,x=(0,qa.default)(l,ef),y=m!==void 0?m:c&&c!=="Root"&&c!=="root"||!1,_=f||!1;let p;process.env.NODE_ENV!=="production"&&u&&(p=`${u}-${mo(c||"Root")}`);let j=Cn;c==="Root"||c==="root"?j=n:c?j=a:nf(i)&&(j=void 0);const R=(0,co.default)(i,(0,Ye.default)({shouldForwardProp:j,label:p},x)),C=S=>typeof S=="function"&&S.__emotion_real!==S||(0,Wd.isPlainObject)(S)?P=>Mn(S,(0,Ye.default)({},P,{theme:hn({theme:P.theme,defaultTheme:r,themeId:t})})):S,w=(S,...P)=>{let M=C(S);const K=P?P.map(C):[];u&&d&&K.push(D=>{const q=hn((0,Ye.default)({},D,{defaultTheme:r,themeId:t}));if(!q.components||!q.components[u]||!q.components[u].styleOverrides)return null;const G=q.components[u].styleOverrides,Z={};return Object.entries(G).forEach(([X,je])=>{Z[X]=Mn(je,(0,Ye.default)({},D,{theme:q}))}),d(D,Z)}),u&&!y&&K.push(D=>{var q;const G=hn((0,Ye.default)({},D,{defaultTheme:r,themeId:t})),Z=G==null||(q=G.components)==null||(q=q[u])==null?void 0:q.variants;return Mn({variants:Z},(0,Ye.default)({},D,{theme:G}))}),_||K.push(s);const le=K.length-P.length;if(Array.isArray(S)&&le>0){const D=new Array(le).fill("");M=[...S,...D],M.raw=[...S.raw,...D]}const ce=R(M,...K);if(process.env.NODE_ENV!=="production"){let D;u&&(D=`${u}${(0,Hd.default)(c||"")}`),D===void 0&&(D=`Styled(${(0,Xd.default)(i)})`),ce.displayName=D}return i.muiName&&(ce.muiName=i.muiName),ce};return R.withConfig&&(w.withConfig=R.withConfig),w}}function lf(e,t){return k({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var ye={};const uf=Rt(sc),cf=Rt(nd);var nl=sa;Object.defineProperty(ye,"__esModule",{value:!0});var fo=ye.alpha=il;ye.blend=xf;ye.colorChannel=void 0;var Ya=ye.darken=ws;ye.decomposeColor=tt;ye.emphasize=ll;var ho=ye.getContrastRatio=gf;ye.getLuminance=Nn;ye.hexToRgb=al;ye.hslToRgb=ol;var Za=ye.lighten=Ps;ye.private_safeAlpha=pf;ye.private_safeColorChannel=void 0;ye.private_safeDarken=_f;ye.private_safeEmphasize=bf;ye.private_safeLighten=yf;ye.recomposeColor=vr;ye.rgbToHex=hf;var go=nl(uf),mf=nl(cf);function As(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}].`),(0,mf.default)(e,t,r)}function al(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)),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 df(e){const t=e.toString(16);return t.length===1?`0${t}`:t}function tt(e){if(e.type)return e;if(e.charAt(0)==="#")return tt(al(e));const t=e.indexOf("("),r=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(r)===-1)throw new Error(process.env.NODE_ENV!=="production"?`MUI: Unsupported \`${e}\` color.
|
|
58
|
+
`))},[JSON.stringify(t)])}const u=$.useCallback(c=>{a||i(c)},[]);return[l,u]}function An(e){const t=$.useRef(e);return js(()=>{t.current=e}),$.useRef((...r)=>(0,t.current)(...r)).current}function Ln(...e){return $.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(r=>{Qi(r,t)})},e)}class Ss{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new Ss}start(t,r){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,r()},t)}}let aa=!0,Xa=!1;const hd=new Ss,gd={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function pd(e){const{type:t,tagName:r}=e;return!!(r==="INPUT"&&gd[t]&&!e.readOnly||r==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function _d(e){e.metaKey||e.altKey||e.ctrlKey||(aa=!0)}function Ca(){aa=!1}function yd(){this.visibilityState==="hidden"&&Xa&&(aa=!0)}function bd(e){e.addEventListener("keydown",_d,!0),e.addEventListener("mousedown",Ca,!0),e.addEventListener("pointerdown",Ca,!0),e.addEventListener("touchstart",Ca,!0),e.addEventListener("visibilitychange",yd,!0)}function xd(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return aa||pd(t)}function tl(){const e=$.useCallback(a=>{a!=null&&bd(a.ownerDocument)},[]),t=$.useRef(!1);function r(){return t.current?(Xa=!0,hd.start(100,()=>{Xa=!1}),t.current=!1,!0):!1}function n(a){return xd(a)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:n,onBlur:r,ref:e}}const vd={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function Rs(e,t,r=void 0){const n={};return Object.keys(e).forEach(a=>{n[a]=e[a].reduce((s,i)=>{if(i){const l=t(i);l!==""&&s.push(l),r&&r[i]&&s.push(r[i])}return s},[]).join(" ")}),n}function Ur(e){return typeof e=="string"}function jd(e,t,r){return e===void 0||Ur(e)?t:k({},t,{ownerState:k({},t.ownerState,r)})}function Pn(e,t=[]){if(e===void 0)return{};const r={};return Object.keys(e).filter(n=>n.match(/^on[A-Z]/)&&typeof e[n]=="function"&&!t.includes(n)).forEach(n=>{r[n]=e[n]}),r}function io(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(r=>!(r.match(/^on[A-Z]/)&&typeof e[r]=="function")).forEach(r=>{t[r]=e[r]}),t}function Sd(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:n,externalForwardedProps:a,className:s}=e;if(!t){const b=gt(r==null?void 0:r.className,s,a==null?void 0:a.className,n==null?void 0:n.className),y=k({},r==null?void 0:r.style,a==null?void 0:a.style,n==null?void 0:n.style),_=k({},r,a,n);return b.length>0&&(_.className=b),Object.keys(y).length>0&&(_.style=y),{props:_,internalRef:void 0}}const i=Pn(k({},a,n)),l=io(n),u=io(a),c=t(i),m=gt(c==null?void 0:c.className,r==null?void 0:r.className,s,a==null?void 0:a.className,n==null?void 0:n.className),f=k({},c==null?void 0:c.style,r==null?void 0:r.style,a==null?void 0:a.style,n==null?void 0:n.style),d=k({},c,r,u,l);return m.length>0&&(d.className=m),Object.keys(f).length>0&&(d.style=f),{props:d,internalRef:c.ref}}function Rd(e,t,r){return typeof e=="function"?e(t,r):e}const wd=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Tt(e){var t;const{elementType:r,externalSlotProps:n,ownerState:a,skipResolvingSlotProps:s=!1}=e,i=Be(e,wd),l=s?{}:Rd(n,a),{props:u,internalRef:c}=Sd(k({},i,{externalSlotProps:l})),m=Ln(c,l==null?void 0:l.ref,(t=e.additionalProps)==null?void 0:t.ref);return jd(r,k({},u,{ref:m}),a)}const Ad=$.createContext();process.env.NODE_ENV!=="production"&&(h.node,h.bool);const Pd=()=>{const e=$.useContext(Ad);return e??!1},Cd=$.createContext(void 0);process.env.NODE_ENV!=="production"&&(h.node,h.object);function Md(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?En(a.defaultProps,n):!a.styleOverrides&&!a.variants?En(a,n):n}function kd({props:e,name:t}){const r=$.useContext(Cd);return Md({props:e,name:t,theme:{components:r}})}const Id=["component","direction","spacing","divider","children","className","useFlexGap"],Td=rn(),Od=td("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function Ed(e){return nd({props:e,name:"MuiStack",defaultTheme:Td})}function Ld(e,t){const r=$.Children.toArray(e).filter(Boolean);return r.reduce((n,a,s)=>(n.push(a),s<r.length-1&&n.push($.cloneElement(t,{key:`separator-${s}`})),n),[])}const Nd=e=>({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],$d=({ownerState:e,theme:t})=>{let r=k({display:"flex",flexDirection:"column"},ot({theme:t},Aa({values:e.direction,breakpoints:t.breakpoints.values}),n=>({flexDirection:n})));if(e.spacing){const n=xs(t),a=Object.keys(t.breakpoints.values).reduce((u,c)=>((typeof e.spacing=="object"&&e.spacing[c]!=null||typeof e.direction=="object"&&e.direction[c]!=null)&&(u[c]=!0),u),{}),s=Aa({values:e.direction,base:a}),i=Aa({values:e.spacing,base:a});typeof s=="object"&&Object.keys(s).forEach((u,c,m)=>{if(!s[u]){const d=c>0?s[m[c-1]]:"column";s[u]=d}}),r=et(r,ot({theme:t},i,(u,c)=>e.useFlexGap?{gap:zt(n,u)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${Nd(c?s[c]:e.direction)}`]:zt(n,u)}}))}return r=Vc(t.breakpoints,r),r};function Fd(e={}){const{createStyledComponent:t=Od,useThemeProps:r=Ed,componentName:n="MuiStack"}=e,a=()=>Rs({root:["root"]},u=>nn(n,u),{}),s=t($d),i=$.forwardRef(function(u,c){const m=r(u),f=Ki(m),{component:d="div",direction:b="column",spacing:y=0,divider:_,children:p,className:j,useFlexGap:R=!1}=f,C=Be(f,Id),A={direction:b,spacing:y,useFlexGap:R},S=a();return o.jsx(s,k({as:d,ownerState:A,ref:c,className:gt(S.root,j)},C,{children:_?Ld(p,_):p}))});return process.env.NODE_ENV!=="production"&&(i.propTypes={children:h.node,direction:h.oneOfType([h.oneOf(["column-reverse","column","row-reverse","row"]),h.arrayOf(h.oneOf(["column-reverse","column","row-reverse","row"])),h.object]),divider:h.node,spacing:h.oneOfType([h.arrayOf(h.oneOfType([h.number,h.string])),h.number,h.object,h.string]),sx:h.oneOfType([h.arrayOf(h.oneOfType([h.func,h.object,h.bool])),h.func,h.object])}),i}var an={},rl={exports:{}};(function(e){function t(r){return r&&r.__esModule?r:{default:r}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(rl);var sa=rl.exports,Ma={exports:{}},lo;function Dd(){return lo||(lo=1,function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(r){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var s in a)({}).hasOwnProperty.call(a,s)&&(r[s]=a[s])}return r},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(null,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(Ma)),Ma.exports}var ka={exports:{}},uo;function Bd(){return uo||(uo=1,function(e){function t(r,n){if(r==null)return{};var a={};for(var s in r)if({}.hasOwnProperty.call(r,s)){if(n.includes(s))continue;a[s]=r[s]}return a}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(ka)),ka.exports}const Ud=Rt(Fc),Jd=Rt(Dc),Vd=Rt(zc),Gd=Rt(Km),zd=Rt(Om),Kd=Rt(Bm);var xr=sa;Object.defineProperty(an,"__esModule",{value:!0});var Wd=an.default=lf;an.shouldForwardProp=Cn;an.systemDefaultTheme=void 0;var Ye=xr(Dd()),qa=xr(Bd()),co=rf(Ud),Hd=Jd,Xd=xr(Vd),qd=xr(Gd),Yd=xr(zd),Zd=xr(Kd);const Qd=["ownerState"],ef=["variants"],tf=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function nl(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(nl=function(n){return n?r:t})(e)}function rf(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=nl(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if(s!=="default"&&Object.prototype.hasOwnProperty.call(e,s)){var i=a?Object.getOwnPropertyDescriptor(e,s):null;i&&(i.get||i.set)?Object.defineProperty(n,s,i):n[s]=e[s]}return n.default=e,r&&r.set(e,n),n}function nf(e){return Object.keys(e).length===0}function af(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Cn(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const sf=an.systemDefaultTheme=(0,Yd.default)(),mo=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function hn({defaultTheme:e,theme:t,themeId:r}){return nf(t)?e:t[r]||t}function of(e){return e?(t,r)=>r[e]:null}function Mn(e,t){let{ownerState:r}=t,n=(0,qa.default)(t,Qd);const a=typeof e=="function"?e((0,Ye.default)({ownerState:r},n)):e;if(Array.isArray(a))return a.flatMap(s=>Mn(s,(0,Ye.default)({ownerState:r},n)));if(a&&typeof a=="object"&&Array.isArray(a.variants)){const{variants:s=[]}=a;let l=(0,qa.default)(a,ef);return s.forEach(u=>{let c=!0;typeof u.props=="function"?c=u.props((0,Ye.default)({ownerState:r},n,r)):Object.keys(u.props).forEach(m=>{(r==null?void 0:r[m])!==u.props[m]&&n[m]!==u.props[m]&&(c=!1)}),c&&(Array.isArray(l)||(l=[l]),l.push(typeof u.style=="function"?u.style((0,Ye.default)({ownerState:r},n,r)):u.style))}),l}return a}function lf(e={}){const{themeId:t,defaultTheme:r=sf,rootShouldForwardProp:n=Cn,slotShouldForwardProp:a=Cn}=e,s=i=>(0,Zd.default)((0,Ye.default)({},i,{theme:hn((0,Ye.default)({},i,{defaultTheme:r,themeId:t}))}));return s.__mui_systemSx=!0,(i,l={})=>{(0,co.internal_processStyles)(i,S=>S.filter(P=>!(P!=null&&P.__mui_systemSx)));const{name:u,slot:c,skipVariantsResolver:m,skipSx:f,overridesResolver:d=of(mo(c))}=l,b=(0,qa.default)(l,tf),y=m!==void 0?m:c&&c!=="Root"&&c!=="root"||!1,_=f||!1;let p;process.env.NODE_ENV!=="production"&&u&&(p=`${u}-${mo(c||"Root")}`);let j=Cn;c==="Root"||c==="root"?j=n:c?j=a:af(i)&&(j=void 0);const R=(0,co.default)(i,(0,Ye.default)({shouldForwardProp:j,label:p},b)),C=S=>typeof S=="function"&&S.__emotion_real!==S||(0,Hd.isPlainObject)(S)?P=>Mn(S,(0,Ye.default)({},P,{theme:hn({theme:P.theme,defaultTheme:r,themeId:t})})):S,A=(S,...P)=>{let M=C(S);const K=P?P.map(C):[];u&&d&&K.push(D=>{const q=hn((0,Ye.default)({},D,{defaultTheme:r,themeId:t}));if(!q.components||!q.components[u]||!q.components[u].styleOverrides)return null;const G=q.components[u].styleOverrides,Z={};return Object.entries(G).forEach(([X,je])=>{Z[X]=Mn(je,(0,Ye.default)({},D,{theme:q}))}),d(D,Z)}),u&&!y&&K.push(D=>{var q;const G=hn((0,Ye.default)({},D,{defaultTheme:r,themeId:t})),Z=G==null||(q=G.components)==null||(q=q[u])==null?void 0:q.variants;return Mn({variants:Z},(0,Ye.default)({},D,{theme:G}))}),_||K.push(s);const le=K.length-P.length;if(Array.isArray(S)&&le>0){const D=new Array(le).fill("");M=[...S,...D],M.raw=[...S.raw,...D]}const ce=R(M,...K);if(process.env.NODE_ENV!=="production"){let D;u&&(D=`${u}${(0,Xd.default)(c||"")}`),D===void 0&&(D=`Styled(${(0,qd.default)(i)})`),ce.displayName=D}return i.muiName&&(ce.muiName=i.muiName),ce};return R.withConfig&&(A.withConfig=R.withConfig),A}}function uf(e,t){return k({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var ye={};const cf=Rt(oc),mf=Rt(ad);var al=sa;Object.defineProperty(ye,"__esModule",{value:!0});var fo=ye.alpha=ll;ye.blend=vf;ye.colorChannel=void 0;var Ya=ye.darken=As;ye.decomposeColor=tt;ye.emphasize=ul;var ho=ye.getContrastRatio=pf;ye.getLuminance=Nn;ye.hexToRgb=sl;ye.hslToRgb=il;var Za=ye.lighten=Ps;ye.private_safeAlpha=_f;ye.private_safeColorChannel=void 0;ye.private_safeDarken=yf;ye.private_safeEmphasize=xf;ye.private_safeLighten=bf;ye.recomposeColor=vr;ye.rgbToHex=gf;var go=al(cf),df=al(mf);function ws(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}].`),(0,df.default)(e,t,r)}function sl(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)),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 ff(e){const t=e.toString(16);return t.length===1?`0${t}`:t}function tt(e){if(e.type)return e;if(e.charAt(0)==="#")return tt(sl(e));const t=e.indexOf("("),r=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(r)===-1)throw new Error(process.env.NODE_ENV!=="production"?`MUI: Unsupported \`${e}\` color.
|
|
59
59
|
The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:(0,go.default)(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"].indexOf(a)===-1)throw new Error(process.env.NODE_ENV!=="production"?`MUI: unsupported \`${a}\` color space.
|
|
60
|
-
The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:(0,go.default)(10,a))}else n=n.split(",");return n=n.map(s=>parseFloat(s)),{type:r,values:n,colorSpace:a}}const
|
|
60
|
+
The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:(0,go.default)(10,a))}else n=n.split(",");return n=n.map(s=>parseFloat(s)),{type:r,values:n,colorSpace:a}}const ol=e=>{const t=tt(e);return t.values.slice(0,3).map((r,n)=>t.type.indexOf("hsl")!==-1&&n!==0?`${r}%`:r).join(" ")};ye.colorChannel=ol;const hf=(e,t)=>{try{return ol(e)}catch{return t&&process.env.NODE_ENV!=="production"&&console.warn(t),e}};ye.private_safeColorChannel=hf;function vr(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return t.indexOf("rgb")!==-1?n=n.map((a,s)=>s<3?parseInt(a,10):a):t.indexOf("hsl")!==-1&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),t.indexOf("color")!==-1?n=`${r} ${n.join(" ")}`:n=`${n.join(", ")}`,`${t}(${n})`}function gf(e){if(e.indexOf("#")===0)return e;const{values:t}=tt(e);return`#${t.map((r,n)=>ff(n===3?Math.round(255*r):r)).join("")}`}function il(e){e=tt(e);const{values:t}=e,r=t[0],n=t[1]/100,a=t[2]/100,s=n*Math.min(a,1-a),i=(c,m=(c+r/30)%12)=>a-s*Math.max(Math.min(m-3,9-m,1),-1);let l="rgb";const u=[Math.round(i(0)*255),Math.round(i(8)*255),Math.round(i(4)*255)];return e.type==="hsla"&&(l+="a",u.push(t[3])),vr({type:l,values:u})}function Nn(e){e=tt(e);let t=e.type==="hsl"||e.type==="hsla"?tt(il(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 pf(e,t){const r=Nn(e),n=Nn(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function ll(e,t){return e=tt(e),t=ws(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,vr(e)}function _f(e,t,r){try{return ll(e,t)}catch{return r&&process.env.NODE_ENV!=="production"&&console.warn(r),e}}function As(e,t){if(e=tt(e),t=ws(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let r=0;r<3;r+=1)e.values[r]*=1-t;return vr(e)}function yf(e,t,r){try{return As(e,t)}catch{return r&&process.env.NODE_ENV!=="production"&&console.warn(r),e}}function Ps(e,t){if(e=tt(e),t=ws(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(e.type.indexOf("color")!==-1)for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return vr(e)}function bf(e,t,r){try{return Ps(e,t)}catch{return r&&process.env.NODE_ENV!=="production"&&console.warn(r),e}}function ul(e,t=.15){return Nn(e)>.5?As(e,t):Ps(e,t)}function xf(e,t,r){try{return ul(e,t)}catch{return r&&process.env.NODE_ENV!=="production"&&console.warn(r),e}}function vf(e,t,r,n=1){const a=(u,c)=>Math.round((u**(1/n)*(1-r)+c**(1/n)*r)**n),s=tt(e),i=tt(t),l=[a(s.values[0],i.values[0]),a(s.values[1],i.values[1]),a(s.values[2],i.values[2])];return vr({type:"rgb",values:l})}const Wr={black:"#000",white:"#fff"},jf={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},sr={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},or={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},Nr={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},ir={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},lr={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},ur={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},Sf=["mode","contrastThreshold","tonalOffset"],po={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:Wr.white,default:Wr.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},Ia={text:{primary:Wr.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:Wr.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function _o(e,t,r,n){const a=n.light||n,s=n.dark||n*1.5;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:t==="light"?e.light=Za(e.main,a):t==="dark"&&(e.dark=Ya(e.main,s)))}function Rf(e="light"){return e==="dark"?{main:ir[200],light:ir[50],dark:ir[400]}:{main:ir[700],light:ir[400],dark:ir[800]}}function wf(e="light"){return e==="dark"?{main:sr[200],light:sr[50],dark:sr[400]}:{main:sr[500],light:sr[300],dark:sr[700]}}function Af(e="light"){return e==="dark"?{main:or[500],light:or[300],dark:or[700]}:{main:or[700],light:or[400],dark:or[800]}}function Pf(e="light"){return e==="dark"?{main:lr[400],light:lr[300],dark:lr[700]}:{main:lr[700],light:lr[500],dark:lr[900]}}function Cf(e="light"){return e==="dark"?{main:ur[400],light:ur[300],dark:ur[700]}:{main:ur[800],light:ur[500],dark:ur[900]}}function Mf(e="light"){return e==="dark"?{main:Nr[400],light:Nr[300],dark:Nr[700]}:{main:"#ed6c02",light:Nr[500],dark:Nr[900]}}function kf(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,a=Be(e,Sf),s=e.primary||Rf(t),i=e.secondary||wf(t),l=e.error||Af(t),u=e.info||Pf(t),c=e.success||Cf(t),m=e.warning||Mf(t);function f(_){const p=ho(_,Ia.text.primary)>=r?Ia.text.primary:po.text.primary;if(process.env.NODE_ENV!=="production"){const j=ho(_,p);j<3&&console.error([`MUI: The contrast ratio of ${j}:1 for ${p} on ${_}`,"falls below the WCAG recommended absolute minimum contrast ratio of 3:1.","https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast"].join(`
|
|
61
61
|
`))}return p}const d=({color:_,name:p,mainShade:j=500,lightShade:R=300,darkShade:C=700})=>{if(_=k({},_),!_.main&&_[j]&&(_.main=_[j]),!_.hasOwnProperty("main"))throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${p?` (${p})`:""} provided to augmentColor(color) is invalid.
|
|
62
62
|
The color object needs to have a \`main\` property or a \`${j}\` property.`:Gr(11,p?` (${p})`:"",j));if(typeof _.main!="string")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${p?` (${p})`:""} provided to augmentColor(color) is invalid.
|
|
63
63
|
\`color.main\` should be a string, but \`${JSON.stringify(_.main)}\` was provided instead.
|
|
@@ -72,13 +72,13 @@ const theme1 = createTheme({ palette: {
|
|
|
72
72
|
|
|
73
73
|
const theme2 = createTheme({ palette: {
|
|
74
74
|
primary: { main: green[500] },
|
|
75
|
-
} });`:Gr(12,p?` (${p})`:"",JSON.stringify(_.main)));return _o(_,"light",R,n),_o(_,"dark",C,n),_.contrastText||(_.contrastText=f(_.main)),_},
|
|
76
|
-
`)),Object.keys(c).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(c).join(",")}].`)}return(Array.isArray(a)?a:[a]).map(m=>`${m} ${typeof i=="string"?i:xo(i)} ${l} ${typeof u=="string"?u:xo(u)}`).join(",")}},e,{easing:t,duration:r})}const
|
|
77
|
-
`))}d[y]={}}}};Object.keys(c.components).forEach(d=>{const x=c.components[d].styleOverrides;x&&d.indexOf("Mui")===0&&f(x,d)})}return c.unstable_sxConfig=k({},en,i==null?void 0:i.unstable_sxConfig),c.unstable_sx=function(f){return tn({sx:f,theme:this})},c}const zf=Gf(),Kf="$$material";function Cs(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Wf=e=>Cs(e)&&e!=="classes",At=Kd({themeId:Kf,defaultTheme:zf,rootShouldForwardProp:Wf});process.env.NODE_ENV!=="production"&&(h.node,h.object.isRequired);function Ms(e){return Md(e)}const _r=$d({createStyledComponent:At("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>Ms({props:e,name:"MuiStack"})});process.env.NODE_ENV!=="production"&&(_r.propTypes={children:h.node,component:h.elementType,direction:h.oneOfType([h.oneOf(["column-reverse","column","row-reverse","row"]),h.arrayOf(h.oneOf(["column-reverse","column","row-reverse","row"])),h.object]),divider:h.node,spacing:h.oneOfType([h.arrayOf(h.oneOfType([h.number,h.string])),h.number,h.object,h.string]),sx:h.oneOfType([h.arrayOf(h.oneOfType([h.func,h.object,h.bool])),h.func,h.object]),useFlexGap:h.bool});const Hf={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console&&console[e]&&console[e].apply(console,t)}};class $n{constructor(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(t,r)}init(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=r.prefix||"i18next:",this.logger=t||Hf,this.options=r,this.debug=r.debug}log(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return this.forward(r,"log","",!0)}warn(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return this.forward(r,"warn","",!0)}error(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return this.forward(r,"error","")}deprecate(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return this.forward(r,"warn","WARNING DEPRECATED: ",!0)}forward(t,r,n,a){return a&&!this.debug?null:(typeof t[0]=="string"&&(t[0]=`${n}${this.prefix} ${t[0]}`),this.logger[r](t))}create(t){return new $n(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new $n(this.logger,t)}}var ft=new $n;class oa{constructor(){this.observers={}}on(t,r){return t.split(" ").forEach(n=>{this.observers[n]||(this.observers[n]=new Map);const a=this.observers[n].get(r)||0;this.observers[n].set(r,a+1)}),this}off(t,r){if(this.observers[t]){if(!r){delete this.observers[t];return}this.observers[t].delete(r)}}emit(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),a=1;a<r;a++)n[a-1]=arguments[a];this.observers[t]&&Array.from(this.observers[t].entries()).forEach(i=>{let[l,u]=i;for(let c=0;c<u;c++)l(...n)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(i=>{let[l,u]=i;for(let c=0;c<u;c++)l.apply(l,[t,...n])})}}const $r=()=>{let e,t;const r=new Promise((n,a)=>{e=n,t=a});return r.resolve=e,r.reject=t,r},vo=e=>e==null?"":""+e,Xf=(e,t,r)=>{e.forEach(n=>{t[n]&&(r[n]=t[n])})},qf=/###/g,jo=e=>e&&e.indexOf("###")>-1?e.replace(qf,"."):e,So=e=>!e||typeof e=="string",Jr=(e,t,r)=>{const n=typeof t!="string"?t:t.split(".");let a=0;for(;a<n.length-1;){if(So(e))return{};const s=jo(n[a]);!e[s]&&r&&(e[s]=new r),Object.prototype.hasOwnProperty.call(e,s)?e=e[s]:e={},++a}return So(e)?{}:{obj:e,k:jo(n[a])}},Ro=(e,t,r)=>{const{obj:n,k:a}=Jr(e,t,Object);if(n!==void 0||t.length===1){n[a]=r;return}let s=t[t.length-1],i=t.slice(0,t.length-1),l=Jr(e,i,Object);for(;l.obj===void 0&&i.length;)s=`${i[i.length-1]}.${s}`,i=i.slice(0,i.length-1),l=Jr(e,i,Object),l&&l.obj&&typeof l.obj[`${l.k}.${s}`]<"u"&&(l.obj=void 0);l.obj[`${l.k}.${s}`]=r},Yf=(e,t,r,n)=>{const{obj:a,k:s}=Jr(e,t,Object);a[s]=a[s]||[],a[s].push(r)},Fn=(e,t)=>{const{obj:r,k:n}=Jr(e,t);if(r)return r[n]},Zf=(e,t,r)=>{const n=Fn(e,r);return n!==void 0?n:Fn(t,r)},ul=(e,t,r)=>{for(const n in t)n!=="__proto__"&&n!=="constructor"&&(n in e?typeof e[n]=="string"||e[n]instanceof String||typeof t[n]=="string"||t[n]instanceof String?r&&(e[n]=t[n]):ul(e[n],t[n],r):e[n]=t[n]);return e},cr=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var Qf={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};const e0=e=>typeof e=="string"?e.replace(/[&<>"'\/]/g,t=>Qf[t]):e;class t0{constructor(t){this.capacity=t,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(t){const r=this.regExpMap.get(t);if(r!==void 0)return r;const n=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,n),this.regExpQueue.push(t),n}}const r0=[" ",",","?","!",";"],n0=new t0(20),a0=(e,t,r)=>{t=t||"",r=r||"";const n=r0.filter(i=>t.indexOf(i)<0&&r.indexOf(i)<0);if(n.length===0)return!0;const a=n0.getRegExp(`(${n.map(i=>i==="?"?"\\?":i).join("|")})`);let s=!a.test(e);if(!s){const i=e.indexOf(r);i>0&&!a.test(e.substring(0,i))&&(s=!0)}return s},Qa=function(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!e)return;if(e[t])return e[t];const n=t.split(r);let a=e;for(let s=0;s<n.length;){if(!a||typeof a!="object")return;let i,l="";for(let u=s;u<n.length;++u)if(u!==s&&(l+=r),l+=n[u],i=a[l],i!==void 0){if(["string","number","boolean"].indexOf(typeof i)>-1&&u<n.length-1)continue;s+=u-s+1;break}a=i}return a},Dn=e=>e&&e.indexOf("_")>0?e.replace("_","-"):e;class Ao extends oa{constructor(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=t||{},this.options=r,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){const r=this.options.ns.indexOf(t);r>-1&&this.options.ns.splice(r,1)}getResource(t,r,n){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const s=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator,i=a.ignoreJSONStructure!==void 0?a.ignoreJSONStructure:this.options.ignoreJSONStructure;let l;t.indexOf(".")>-1?l=t.split("."):(l=[t,r],n&&(Array.isArray(n)?l.push(...n):typeof n=="string"&&s?l.push(...n.split(s)):l.push(n)));const u=Fn(this.data,l);return!u&&!r&&!n&&t.indexOf(".")>-1&&(t=l[0],r=l[1],n=l.slice(2).join(".")),u||!i||typeof n!="string"?u:Qa(this.data&&this.data[t]&&this.data[t][r],n,s)}addResource(t,r,n,a){let s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const i=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator;let l=[t,r];n&&(l=l.concat(i?n.split(i):n)),t.indexOf(".")>-1&&(l=t.split("."),a=r,r=l[1]),this.addNamespaces(r),Ro(this.data,l,a),s.silent||this.emit("added",t,r,n,a)}addResources(t,r,n){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const s in n)(typeof n[s]=="string"||Array.isArray(n[s]))&&this.addResource(t,r,s,n[s],{silent:!0});a.silent||this.emit("added",t,r,n)}addResourceBundle(t,r,n,a,s){let i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},l=[t,r];t.indexOf(".")>-1&&(l=t.split("."),a=n,n=r,r=l[1]),this.addNamespaces(r);let u=Fn(this.data,l)||{};i.skipCopy||(n=JSON.parse(JSON.stringify(n))),a?ul(u,n,s):u={...u,...n},Ro(this.data,l,u),i.silent||this.emit("added",t,r,n)}removeResourceBundle(t,r){this.hasResourceBundle(t,r)&&delete this.data[t][r],this.removeNamespaces(r),this.emit("removed",t,r)}hasResourceBundle(t,r){return this.getResource(t,r)!==void 0}getResourceBundle(t,r){return r||(r=this.options.defaultNS),this.options.compatibilityAPI==="v1"?{...this.getResource(t,r)}:this.getResource(t,r)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){const r=this.getDataByLanguage(t);return!!(r&&Object.keys(r)||[]).find(a=>r[a]&&Object.keys(r[a]).length>0)}toJSON(){return this.data}}var cl={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,r,n,a){return e.forEach(s=>{this.processors[s]&&(t=this.processors[s].process(t,r,n,a))}),t}};const wo={};class Un extends oa{constructor(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),Xf(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=r,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=ft.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(t==null)return!1;const n=this.resolve(t,r);return n&&n.res!==void 0}extractFromKey(t,r){let n=r.nsSeparator!==void 0?r.nsSeparator:this.options.nsSeparator;n===void 0&&(n=":");const a=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator;let s=r.ns||this.options.defaultNS||[];const i=n&&t.indexOf(n)>-1,l=!this.options.userDefinedKeySeparator&&!r.keySeparator&&!this.options.userDefinedNsSeparator&&!r.nsSeparator&&!a0(t,n,a);if(i&&!l){const u=t.match(this.interpolator.nestingRegexp);if(u&&u.length>0)return{key:t,namespaces:s};const c=t.split(n);(n!==a||n===a&&this.options.ns.indexOf(c[0])>-1)&&(s=c.shift()),t=c.join(a)}return typeof s=="string"&&(s=[s]),{key:t,namespaces:s}}translate(t,r,n){if(typeof r!="object"&&this.options.overloadTranslationOptionHandler&&(r=this.options.overloadTranslationOptionHandler(arguments)),typeof r=="object"&&(r={...r}),r||(r={}),t==null)return"";Array.isArray(t)||(t=[String(t)]);const a=r.returnDetails!==void 0?r.returnDetails:this.options.returnDetails,s=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator,{key:i,namespaces:l}=this.extractFromKey(t[t.length-1],r),u=l[l.length-1],c=r.lng||this.language,m=r.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(c&&c.toLowerCase()==="cimode"){if(m){const w=r.nsSeparator||this.options.nsSeparator;return a?{res:`${u}${w}${i}`,usedKey:i,exactUsedKey:i,usedLng:c,usedNS:u,usedParams:this.getUsedParamsDetails(r)}:`${u}${w}${i}`}return a?{res:i,usedKey:i,exactUsedKey:i,usedLng:c,usedNS:u,usedParams:this.getUsedParamsDetails(r)}:i}const f=this.resolve(t,r);let d=f&&f.res;const x=f&&f.usedKey||i,y=f&&f.exactUsedKey||i,_=Object.prototype.toString.apply(d),p=["[object Number]","[object Function]","[object RegExp]"],j=r.joinArrays!==void 0?r.joinArrays:this.options.joinArrays,R=!this.i18nFormat||this.i18nFormat.handleAsObject;if(R&&d&&(typeof d!="string"&&typeof d!="boolean"&&typeof d!="number")&&p.indexOf(_)<0&&!(typeof j=="string"&&Array.isArray(d))){if(!r.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const w=this.options.returnedObjectHandler?this.options.returnedObjectHandler(x,d,{...r,ns:l}):`key '${i} (${this.language})' returned an object instead of string.`;return a?(f.res=w,f.usedParams=this.getUsedParamsDetails(r),f):w}if(s){const w=Array.isArray(d),S=w?[]:{},P=w?y:x;for(const M in d)if(Object.prototype.hasOwnProperty.call(d,M)){const K=`${P}${s}${M}`;S[M]=this.translate(K,{...r,joinArrays:!1,ns:l}),S[M]===K&&(S[M]=d[M])}d=S}}else if(R&&typeof j=="string"&&Array.isArray(d))d=d.join(j),d&&(d=this.extendTranslation(d,t,r,n));else{let w=!1,S=!1;const P=r.count!==void 0&&typeof r.count!="string",M=Un.hasDefaultValue(r),K=P?this.pluralResolver.getSuffix(c,r.count,r):"",le=r.ordinal&&P?this.pluralResolver.getSuffix(c,r.count,{ordinal:!1}):"",ce=P&&!r.ordinal&&r.count===0&&this.pluralResolver.shouldUseIntlApi(),D=ce&&r[`defaultValue${this.options.pluralSeparator}zero`]||r[`defaultValue${K}`]||r[`defaultValue${le}`]||r.defaultValue;!this.isValidLookup(d)&&M&&(w=!0,d=D),this.isValidLookup(d)||(S=!0,d=i);const G=(r.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&S?void 0:d,Z=M&&D!==d&&this.options.updateMissing;if(S||w||Z){if(this.logger.log(Z?"updateKey":"missingKey",c,u,i,Z?D:d),s){const ee=this.resolve(i,{...r,keySeparator:!1});ee&&ee.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let X=[];const je=this.languageUtils.getFallbackCodes(this.options.fallbackLng,r.lng||this.language);if(this.options.saveMissingTo==="fallback"&&je&&je[0])for(let ee=0;ee<je.length;ee++)X.push(je[ee]);else this.options.saveMissingTo==="all"?X=this.languageUtils.toResolveHierarchy(r.lng||this.language):X.push(r.lng||this.language);const ue=(ee,Ae,Oe)=>{const nt=M&&Oe!==d?Oe:G;this.options.missingKeyHandler?this.options.missingKeyHandler(ee,u,Ae,nt,Z,r):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(ee,u,Ae,nt,Z,r),this.emit("missingKey",ee,u,Ae,d)};this.options.saveMissing&&(this.options.saveMissingPlurals&&P?X.forEach(ee=>{const Ae=this.pluralResolver.getSuffixes(ee,r);ce&&r[`defaultValue${this.options.pluralSeparator}zero`]&&Ae.indexOf(`${this.options.pluralSeparator}zero`)<0&&Ae.push(`${this.options.pluralSeparator}zero`),Ae.forEach(Oe=>{ue([ee],i+Oe,r[`defaultValue${Oe}`]||D)})}):ue(X,i,D))}d=this.extendTranslation(d,t,r,f,n),S&&d===i&&this.options.appendNamespaceToMissingKey&&(d=`${u}:${i}`),(S||w)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?d=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${u}:${i}`:i,w?d:void 0):d=this.options.parseMissingKeyHandler(d))}return a?(f.res=d,f.usedParams=this.getUsedParamsDetails(r),f):d}extendTranslation(t,r,n,a,s){var i=this;if(this.i18nFormat&&this.i18nFormat.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...n},n.lng||this.language||a.usedLng,a.usedNS,a.usedKey,{resolved:a});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init({...n,interpolation:{...this.options.interpolation,...n.interpolation}});const c=typeof t=="string"&&(n&&n.interpolation&&n.interpolation.skipOnVariables!==void 0?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let m;if(c){const d=t.match(this.interpolator.nestingRegexp);m=d&&d.length}let f=n.replace&&typeof n.replace!="string"?n.replace:n;if(this.options.interpolation.defaultVariables&&(f={...this.options.interpolation.defaultVariables,...f}),t=this.interpolator.interpolate(t,f,n.lng||this.language||a.usedLng,n),c){const d=t.match(this.interpolator.nestingRegexp),x=d&&d.length;m<x&&(n.nest=!1)}!n.lng&&this.options.compatibilityAPI!=="v1"&&a&&a.res&&(n.lng=this.language||a.usedLng),n.nest!==!1&&(t=this.interpolator.nest(t,function(){for(var d=arguments.length,x=new Array(d),y=0;y<d;y++)x[y]=arguments[y];return s&&s[0]===x[0]&&!n.context?(i.logger.warn(`It seems you are nesting recursively key: ${x[0]} in key: ${r[0]}`),null):i.translate(...x,r)},n)),n.interpolation&&this.interpolator.reset()}const l=n.postProcess||this.options.postProcess,u=typeof l=="string"?[l]:l;return t!=null&&u&&u.length&&n.applyPostProcessor!==!1&&(t=cl.handle(u,t,r,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...a,usedParams:this.getUsedParamsDetails(n)},...n}:n,this)),t}resolve(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n,a,s,i,l;return typeof t=="string"&&(t=[t]),t.forEach(u=>{if(this.isValidLookup(n))return;const c=this.extractFromKey(u,r),m=c.key;a=m;let f=c.namespaces;this.options.fallbackNS&&(f=f.concat(this.options.fallbackNS));const d=r.count!==void 0&&typeof r.count!="string",x=d&&!r.ordinal&&r.count===0&&this.pluralResolver.shouldUseIntlApi(),y=r.context!==void 0&&(typeof r.context=="string"||typeof r.context=="number")&&r.context!=="",_=r.lngs?r.lngs:this.languageUtils.toResolveHierarchy(r.lng||this.language,r.fallbackLng);f.forEach(p=>{this.isValidLookup(n)||(l=p,!wo[`${_[0]}-${p}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(l)&&(wo[`${_[0]}-${p}`]=!0,this.logger.warn(`key "${a}" for languages "${_.join(", ")}" won't get resolved as namespace "${l}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),_.forEach(j=>{if(this.isValidLookup(n))return;i=j;const R=[m];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(R,m,j,p,r);else{let w;d&&(w=this.pluralResolver.getSuffix(j,r.count,r));const S=`${this.options.pluralSeparator}zero`,P=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(d&&(R.push(m+w),r.ordinal&&w.indexOf(P)===0&&R.push(m+w.replace(P,this.options.pluralSeparator)),x&&R.push(m+S)),y){const M=`${m}${this.options.contextSeparator}${r.context}`;R.push(M),d&&(R.push(M+w),r.ordinal&&w.indexOf(P)===0&&R.push(M+w.replace(P,this.options.pluralSeparator)),x&&R.push(M+S))}}let C;for(;C=R.pop();)this.isValidLookup(n)||(s=C,n=this.getResource(j,p,C,r))}))})}),{res:n,usedKey:a,exactUsedKey:s,usedLng:i,usedNS:l}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,r,n){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(t,r,n,a):this.resourceStore.getResource(t,r,n,a)}getUsedParamsDetails(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const r=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],n=t.replace&&typeof t.replace!="string";let a=n?t.replace:t;if(n&&typeof t.count<"u"&&(a.count=t.count),this.options.interpolation.defaultVariables&&(a={...this.options.interpolation.defaultVariables,...a}),!n){a={...a};for(const s of r)delete a[s]}return a}static hasDefaultValue(t){const r="defaultValue";for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&r===n.substring(0,r.length)&&t[n]!==void 0)return!0;return!1}}const Ta=e=>e.charAt(0).toUpperCase()+e.slice(1);class Po{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=ft.create("languageUtils")}getScriptPartFromCode(t){if(t=Dn(t),!t||t.indexOf("-")<0)return null;const r=t.split("-");return r.length===2||(r.pop(),r[r.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(r.join("-"))}getLanguagePartFromCode(t){if(t=Dn(t),!t||t.indexOf("-")<0)return t;const r=t.split("-");return this.formatLanguageCode(r[0])}formatLanguageCode(t){if(typeof t=="string"&&t.indexOf("-")>-1){const r=["hans","hant","latn","cyrl","cans","mong","arab"];let n=t.split("-");return this.options.lowerCaseLng?n=n.map(a=>a.toLowerCase()):n.length===2?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),r.indexOf(n[1].toLowerCase())>-1&&(n[1]=Ta(n[1].toLowerCase()))):n.length===3&&(n[0]=n[0].toLowerCase(),n[1].length===2&&(n[1]=n[1].toUpperCase()),n[0]!=="sgn"&&n[2].length===2&&(n[2]=n[2].toUpperCase()),r.indexOf(n[1].toLowerCase())>-1&&(n[1]=Ta(n[1].toLowerCase())),r.indexOf(n[2].toLowerCase())>-1&&(n[2]=Ta(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let r;return t.forEach(n=>{if(r)return;const a=this.formatLanguageCode(n);(!this.options.supportedLngs||this.isSupportedCode(a))&&(r=a)}),!r&&this.options.supportedLngs&&t.forEach(n=>{if(r)return;const a=this.getLanguagePartFromCode(n);if(this.isSupportedCode(a))return r=a;r=this.options.supportedLngs.find(s=>{if(s===a)return s;if(!(s.indexOf("-")<0&&a.indexOf("-")<0)&&(s.indexOf("-")>0&&a.indexOf("-")<0&&s.substring(0,s.indexOf("-"))===a||s.indexOf(a)===0&&a.length>1))return s})}),r||(r=this.getFallbackCodes(this.options.fallbackLng)[0]),r}getFallbackCodes(t,r){if(!t)return[];if(typeof t=="function"&&(t=t(r)),typeof t=="string"&&(t=[t]),Array.isArray(t))return t;if(!r)return t.default||[];let n=t[r];return n||(n=t[this.getScriptPartFromCode(r)]),n||(n=t[this.formatLanguageCode(r)]),n||(n=t[this.getLanguagePartFromCode(r)]),n||(n=t.default),n||[]}toResolveHierarchy(t,r){const n=this.getFallbackCodes(r||this.options.fallbackLng||[],t),a=[],s=i=>{i&&(this.isSupportedCode(i)?a.push(i):this.logger.warn(`rejecting language code not found in supportedLngs: ${i}`))};return typeof t=="string"&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&s(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&s(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&s(this.getLanguagePartFromCode(t))):typeof t=="string"&&s(this.formatLanguageCode(t)),n.forEach(i=>{a.indexOf(i)<0&&s(this.formatLanguageCode(i))}),a}}let s0=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],o0={1:e=>+(e>1),2:e=>+(e!=1),3:e=>0,4:e=>e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2,5:e=>e==0?0:e==1?1:e==2?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5,6:e=>e==1?0:e>=2&&e<=4?1:2,7:e=>e==1?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2,8:e=>e==1?0:e==2?1:e!=8&&e!=11?2:3,9:e=>+(e>=2),10:e=>e==1?0:e==2?1:e<7?2:e<11?3:4,11:e=>e==1||e==11?0:e==2||e==12?1:e>2&&e<20?2:3,12:e=>+(e%10!=1||e%100==11),13:e=>+(e!==0),14:e=>e==1?0:e==2?1:e==3?2:3,15:e=>e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2,16:e=>e%10==1&&e%100!=11?0:e!==0?1:2,17:e=>e==1||e%10==1&&e%100!=11?0:1,18:e=>e==0?0:e==1?1:2,19:e=>e==1?0:e==0||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3,20:e=>e==1?0:e==0||e%100>0&&e%100<20?1:2,21:e=>e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0,22:e=>e==1?0:e==2?1:(e<0||e>10)&&e%10==0?2:3};const i0=["v1","v2","v3"],l0=["v4"],Co={zero:0,one:1,two:2,few:3,many:4,other:5},u0=()=>{const e={};return s0.forEach(t=>{t.lngs.forEach(r=>{e[r]={numbers:t.nr,plurals:o0[t.fc]}})}),e};class c0{constructor(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=t,this.options=r,this.logger=ft.create("pluralResolver"),(!this.options.compatibilityJSON||l0.includes(this.options.compatibilityJSON))&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=u0()}addRule(t,r){this.rules[t]=r}getRule(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(Dn(t==="dev"?"en":t),{type:r.ordinal?"ordinal":"cardinal"})}catch{return}return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}needsPlural(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const n=this.getRule(t,r);return this.shouldUseIntlApi()?n&&n.resolvedOptions().pluralCategories.length>1:n&&n.numbers.length>1}getPluralFormsOfKey(t,r){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(t,n).map(a=>`${r}${a}`)}getSuffixes(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const n=this.getRule(t,r);return n?this.shouldUseIntlApi()?n.resolvedOptions().pluralCategories.sort((a,s)=>Co[a]-Co[s]).map(a=>`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${a}`):n.numbers.map(a=>this.getSuffix(t,a,r)):[]}getSuffix(t,r){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const a=this.getRule(t,n);return a?this.shouldUseIntlApi()?`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${a.select(r)}`:this.getSuffixRetroCompatible(a,r):(this.logger.warn(`no plural rule found for: ${t}`),"")}getSuffixRetroCompatible(t,r){const n=t.noAbs?t.plurals(r):t.plurals(Math.abs(r));let a=t.numbers[n];this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1&&(a===2?a="plural":a===1&&(a=""));const s=()=>this.options.prepend&&a.toString()?this.options.prepend+a.toString():a.toString();return this.options.compatibilityJSON==="v1"?a===1?"":typeof a=="number"?`_plural_${a.toString()}`:s():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1?s():this.options.prepend&&n.toString()?this.options.prepend+n.toString():n.toString()}shouldUseIntlApi(){return!i0.includes(this.options.compatibilityJSON)}}const Mo=function(e,t,r){let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,s=Zf(e,t,r);return!s&&a&&typeof r=="string"&&(s=Qa(e,r,n),s===void 0&&(s=Qa(t,r,n))),s},Oa=e=>e.replace(/\$/g,"$$$$");class m0{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=ft.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||(r=>r),this.init(t)}init(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});const{escape:r,escapeValue:n,useRawValueToEscape:a,prefix:s,prefixEscaped:i,suffix:l,suffixEscaped:u,formatSeparator:c,unescapeSuffix:m,unescapePrefix:f,nestingPrefix:d,nestingPrefixEscaped:x,nestingSuffix:y,nestingSuffixEscaped:_,nestingOptionsSeparator:p,maxReplaces:j,alwaysFormat:R}=t.interpolation;this.escape=r!==void 0?r:e0,this.escapeValue=n!==void 0?n:!0,this.useRawValueToEscape=a!==void 0?a:!1,this.prefix=s?cr(s):i||"{{",this.suffix=l?cr(l):u||"}}",this.formatSeparator=c||",",this.unescapePrefix=m?"":f||"-",this.unescapeSuffix=this.unescapePrefix?"":m||"",this.nestingPrefix=d?cr(d):x||cr("$t("),this.nestingSuffix=y?cr(y):_||cr(")"),this.nestingOptionsSeparator=p||",",this.maxReplaces=j||1e3,this.alwaysFormat=R!==void 0?R:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=(r,n)=>r&&r.source===n?(r.lastIndex=0,r):new RegExp(n,"g");this.regexp=t(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=t(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=t(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(t,r,n,a){let s,i,l;const u=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},c=x=>{if(x.indexOf(this.formatSeparator)<0){const j=Mo(r,u,x,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(j,void 0,n,{...a,...r,interpolationkey:x}):j}const y=x.split(this.formatSeparator),_=y.shift().trim(),p=y.join(this.formatSeparator).trim();return this.format(Mo(r,u,_,this.options.keySeparator,this.options.ignoreJSONStructure),p,n,{...a,...r,interpolationkey:_})};this.resetRegExp();const m=a&&a.missingInterpolationHandler||this.options.missingInterpolationHandler,f=a&&a.interpolation&&a.interpolation.skipOnVariables!==void 0?a.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:x=>Oa(x)},{regex:this.regexp,safeValue:x=>this.escapeValue?Oa(this.escape(x)):Oa(x)}].forEach(x=>{for(l=0;s=x.regex.exec(t);){const y=s[1].trim();if(i=c(y),i===void 0)if(typeof m=="function"){const p=m(t,s,a);i=typeof p=="string"?p:""}else if(a&&Object.prototype.hasOwnProperty.call(a,y))i="";else if(f){i=s[0];continue}else this.logger.warn(`missed to pass in variable ${y} for interpolating ${t}`),i="";else typeof i!="string"&&!this.useRawValueToEscape&&(i=vo(i));const _=x.safeValue(i);if(t=t.replace(s[0],_),f?(x.regex.lastIndex+=i.length,x.regex.lastIndex-=s[0].length):x.regex.lastIndex=0,l++,l>=this.maxReplaces)break}}),t}nest(t,r){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a,s,i;const l=(u,c)=>{const m=this.nestingOptionsSeparator;if(u.indexOf(m)<0)return u;const f=u.split(new RegExp(`${m}[ ]*{`));let d=`{${f[1]}`;u=f[0],d=this.interpolate(d,i);const x=d.match(/'/g),y=d.match(/"/g);(x&&x.length%2===0&&!y||y.length%2!==0)&&(d=d.replace(/'/g,'"'));try{i=JSON.parse(d),c&&(i={...c,...i})}catch(_){return this.logger.warn(`failed parsing options string in nesting for key ${u}`,_),`${u}${m}${d}`}return i.defaultValue&&i.defaultValue.indexOf(this.prefix)>-1&&delete i.defaultValue,u};for(;a=this.nestingRegexp.exec(t);){let u=[];i={...n},i=i.replace&&typeof i.replace!="string"?i.replace:i,i.applyPostProcessor=!1,delete i.defaultValue;let c=!1;if(a[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(a[1])){const m=a[1].split(this.formatSeparator).map(f=>f.trim());a[1]=m.shift(),u=m,c=!0}if(s=r(l.call(this,a[1].trim(),i),i),s&&a[0]===t&&typeof s!="string")return s;typeof s!="string"&&(s=vo(s)),s||(this.logger.warn(`missed to resolve ${a[1]} for nesting ${t}`),s=""),c&&(s=u.reduce((m,f)=>this.format(m,f,n.lng,{...n,interpolationkey:a[1].trim()}),s.trim())),t=t.replace(a[0],s),this.regexp.lastIndex=0}return t}}const d0=e=>{let t=e.toLowerCase().trim();const r={};if(e.indexOf("(")>-1){const n=e.split("(");t=n[0].toLowerCase().trim();const a=n[1].substring(0,n[1].length-1);t==="currency"&&a.indexOf(":")<0?r.currency||(r.currency=a.trim()):t==="relativetime"&&a.indexOf(":")<0?r.range||(r.range=a.trim()):a.split(";").forEach(i=>{if(i){const[l,...u]=i.split(":"),c=u.join(":").trim().replace(/^'+|'+$/g,""),m=l.trim();r[m]||(r[m]=c),c==="false"&&(r[m]=!1),c==="true"&&(r[m]=!0),isNaN(c)||(r[m]=parseInt(c,10))}})}return{formatName:t,formatOptions:r}},mr=e=>{const t={};return(r,n,a)=>{let s=a;a&&a.interpolationkey&&a.formatParams&&a.formatParams[a.interpolationkey]&&a[a.interpolationkey]&&(s={formatParams:{[a.interpolationkey]:a.formatParams[a.interpolationkey]},interpolationKey:a.interpolationkey});const i=n+JSON.stringify(s);let l=t[i];return l||(l=e(Dn(n),a),t[i]=l),l(r)}};class f0{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=ft.create("formatter"),this.options=t,this.formats={number:mr((r,n)=>{const a=new Intl.NumberFormat(r,{...n});return s=>a.format(s)}),currency:mr((r,n)=>{const a=new Intl.NumberFormat(r,{...n,style:"currency"});return s=>a.format(s)}),datetime:mr((r,n)=>{const a=new Intl.DateTimeFormat(r,{...n});return s=>a.format(s)}),relativetime:mr((r,n)=>{const a=new Intl.RelativeTimeFormat(r,{...n});return s=>a.format(s,n.range||"day")}),list:mr((r,n)=>{const a=new Intl.ListFormat(r,{...n});return s=>a.format(s)})},this.init(t)}init(t){const n=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}}).interpolation;this.formatSeparator=n.formatSeparator?n.formatSeparator:n.formatSeparator||","}add(t,r){this.formats[t.toLowerCase().trim()]=r}addCached(t,r){this.formats[t.toLowerCase().trim()]=mr(r)}format(t,r,n){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const s=r.split(this.formatSeparator);if(s.length>1&&s[0].indexOf("(")>1&&s[0].indexOf(")")<0&&s.find(l=>l.indexOf(")")>-1)){const l=s.findIndex(u=>u.indexOf(")")>-1);s[0]=[s[0],...s.splice(1,l)].join(this.formatSeparator)}return s.reduce((l,u)=>{const{formatName:c,formatOptions:m}=d0(u);if(this.formats[c]){let f=l;try{const d=a&&a.formatParams&&a.formatParams[a.interpolationkey]||{},x=d.locale||d.lng||a.locale||a.lng||n;f=this.formats[c](l,x,{...m,...a,...d})}catch(d){this.logger.warn(d)}return f}else this.logger.warn(`there was no format function for ${c}`);return l},t)}}const h0=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)};class g0 extends oa{constructor(t,r,n){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=t,this.store=r,this.services=n,this.languageUtils=n.languageUtils,this.options=a,this.logger=ft.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=a.maxParallelReads||10,this.readingCalls=0,this.maxRetries=a.maxRetries>=0?a.maxRetries:5,this.retryTimeout=a.retryTimeout>=1?a.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(n,a.backend,a)}queueLoad(t,r,n,a){const s={},i={},l={},u={};return t.forEach(c=>{let m=!0;r.forEach(f=>{const d=`${c}|${f}`;!n.reload&&this.store.hasResourceBundle(c,f)?this.state[d]=2:this.state[d]<0||(this.state[d]===1?i[d]===void 0&&(i[d]=!0):(this.state[d]=1,m=!1,i[d]===void 0&&(i[d]=!0),s[d]===void 0&&(s[d]=!0),u[f]===void 0&&(u[f]=!0)))}),m||(l[c]=!0)}),(Object.keys(s).length||Object.keys(i).length)&&this.queue.push({pending:i,pendingCount:Object.keys(i).length,loaded:{},errors:[],callback:a}),{toLoad:Object.keys(s),pending:Object.keys(i),toLoadLanguages:Object.keys(l),toLoadNamespaces:Object.keys(u)}}loaded(t,r,n){const a=t.split("|"),s=a[0],i=a[1];r&&this.emit("failedLoading",s,i,r),n&&this.store.addResourceBundle(s,i,n,void 0,void 0,{skipCopy:!0}),this.state[t]=r?-1:2;const l={};this.queue.forEach(u=>{Yf(u.loaded,[s],i),h0(u,t),r&&u.errors.push(r),u.pendingCount===0&&!u.done&&(Object.keys(u.loaded).forEach(c=>{l[c]||(l[c]={});const m=u.loaded[c];m.length&&m.forEach(f=>{l[c][f]===void 0&&(l[c][f]=!0)})}),u.done=!0,u.errors.length?u.callback(u.errors):u.callback())}),this.emit("loaded",l),this.queue=this.queue.filter(u=>!u.done)}read(t,r,n){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,i=arguments.length>5?arguments[5]:void 0;if(!t.length)return i(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:r,fcName:n,tried:a,wait:s,callback:i});return}this.readingCalls++;const l=(c,m)=>{if(this.readingCalls--,this.waitingReads.length>0){const f=this.waitingReads.shift();this.read(f.lng,f.ns,f.fcName,f.tried,f.wait,f.callback)}if(c&&m&&a<this.maxRetries){setTimeout(()=>{this.read.call(this,t,r,n,a+1,s*2,i)},s);return}i(c,m)},u=this.backend[n].bind(this.backend);if(u.length===2){try{const c=u(t,r);c&&typeof c.then=="function"?c.then(m=>l(null,m)).catch(l):l(null,c)}catch(c){l(c)}return}return u(t,r,l)}prepareLoading(t,r){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),a&&a();typeof t=="string"&&(t=this.languageUtils.toResolveHierarchy(t)),typeof r=="string"&&(r=[r]);const s=this.queueLoad(t,r,n,a);if(!s.toLoad.length)return s.pending.length||a(),null;s.toLoad.forEach(i=>{this.loadOne(i)})}load(t,r,n){this.prepareLoading(t,r,{},n)}reload(t,r,n){this.prepareLoading(t,r,{reload:!0},n)}loadOne(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const n=t.split("|"),a=n[0],s=n[1];this.read(a,s,"read",void 0,void 0,(i,l)=>{i&&this.logger.warn(`${r}loading namespace ${s} for language ${a} failed`,i),!i&&l&&this.logger.log(`${r}loaded namespace ${s} for language ${a}`,l),this.loaded(t,i,l)})}saveMissing(t,r,n,a,s){let i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},l=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(r)){this.logger.warn(`did not save key "${n}" as the namespace "${r}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(n==null||n==="")){if(this.backend&&this.backend.create){const u={...i,isUpdate:s},c=this.backend.create.bind(this.backend);if(c.length<6)try{let m;c.length===5?m=c(t,r,n,a,u):m=c(t,r,n,a),m&&typeof m.then=="function"?m.then(f=>l(null,f)).catch(l):l(null,m)}catch(m){l(m)}else c(t,r,n,a,l,u)}!t||!t[0]||this.store.addResource(t[0],r,n,a)}}}const ko=()=>({debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if(typeof e[1]=="object"&&(t=e[1]),typeof e[1]=="string"&&(t.defaultValue=e[1]),typeof e[2]=="string"&&(t.tDescription=e[2]),typeof e[2]=="object"||typeof e[3]=="object"){const r=e[3]||e[2];Object.keys(r).forEach(n=>{t[n]=r[n]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),Io=e=>(typeof e.ns=="string"&&(e.ns=[e.ns]),typeof e.fallbackLng=="string"&&(e.fallbackLng=[e.fallbackLng]),typeof e.fallbackNS=="string"&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e),gn=()=>{},p0=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(r=>{typeof e[r]=="function"&&(e[r]=e[r].bind(e))})};class Hr extends oa{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;if(super(),this.options=Io(t),this.services={},this.logger=ft,this.modules={external:[]},p0(this),r&&!this.isInitialized&&!t.isClone){if(!this.options.initImmediate)return this.init(t,r),this;setTimeout(()=>{this.init(t,r)},0)}}init(){var t=this;let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof r=="function"&&(n=r,r={}),!r.defaultNS&&r.defaultNS!==!1&&r.ns&&(typeof r.ns=="string"?r.defaultNS=r.ns:r.ns.indexOf("translation")<0&&(r.defaultNS=r.ns[0]));const a=ko();this.options={...a,...this.options,...Io(r)},this.options.compatibilityAPI!=="v1"&&(this.options.interpolation={...a.interpolation,...this.options.interpolation}),r.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=r.keySeparator),r.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=r.nsSeparator);const s=m=>m?typeof m=="function"?new m:m:null;if(!this.options.isClone){this.modules.logger?ft.init(s(this.modules.logger),this.options):ft.init(null,this.options);let m;this.modules.formatter?m=this.modules.formatter:typeof Intl<"u"&&(m=f0);const f=new Po(this.options);this.store=new Ao(this.options.resources,this.options);const d=this.services;d.logger=ft,d.resourceStore=this.store,d.languageUtils=f,d.pluralResolver=new c0(f,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),m&&(!this.options.interpolation.format||this.options.interpolation.format===a.interpolation.format)&&(d.formatter=s(m),d.formatter.init(d,this.options),this.options.interpolation.format=d.formatter.format.bind(d.formatter)),d.interpolator=new m0(this.options),d.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},d.backendConnector=new g0(s(this.modules.backend),d.resourceStore,d,this.options),d.backendConnector.on("*",function(x){for(var y=arguments.length,_=new Array(y>1?y-1:0),p=1;p<y;p++)_[p-1]=arguments[p];t.emit(x,..._)}),this.modules.languageDetector&&(d.languageDetector=s(this.modules.languageDetector),d.languageDetector.init&&d.languageDetector.init(d,this.options.detection,this.options)),this.modules.i18nFormat&&(d.i18nFormat=s(this.modules.i18nFormat),d.i18nFormat.init&&d.i18nFormat.init(this)),this.translator=new Un(this.services,this.options),this.translator.on("*",function(x){for(var y=arguments.length,_=new Array(y>1?y-1:0),p=1;p<y;p++)_[p-1]=arguments[p];t.emit(x,..._)}),this.modules.external.forEach(x=>{x.init&&x.init(this)})}if(this.format=this.options.interpolation.format,n||(n=gn),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const m=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);m.length>0&&m[0]!=="dev"&&(this.options.lng=m[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(m=>{this[m]=function(){return t.store[m](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(m=>{this[m]=function(){return t.store[m](...arguments),t}});const u=$r(),c=()=>{const m=(f,d)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),u.resolve(d),n(f,d)};if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return m(null,this.t.bind(this));this.changeLanguage(this.options.lng,m)};return this.options.resources||!this.options.initImmediate?c():setTimeout(c,0),u}loadResources(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:gn;const a=typeof t=="string"?t:this.language;if(typeof t=="function"&&(n=t),!this.options.resources||this.options.partialBundledLanguages){if(a&&a.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return n();const s=[],i=l=>{if(!l||l==="cimode")return;this.services.languageUtils.toResolveHierarchy(l).forEach(c=>{c!=="cimode"&&s.indexOf(c)<0&&s.push(c)})};a?i(a):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(u=>i(u)),this.options.preload&&this.options.preload.forEach(l=>i(l)),this.services.backendConnector.load(s,this.options.ns,l=>{!l&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),n(l)})}else n(null)}reloadResources(t,r,n){const a=$r();return t||(t=this.languages),r||(r=this.options.ns),n||(n=gn),this.services.backendConnector.reload(t,r,s=>{a.resolve(),n(s)}),a}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return t.type==="backend"&&(this.modules.backend=t),(t.type==="logger"||t.log&&t.warn&&t.error)&&(this.modules.logger=t),t.type==="languageDetector"&&(this.modules.languageDetector=t),t.type==="i18nFormat"&&(this.modules.i18nFormat=t),t.type==="postProcessor"&&cl.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}setResolvedLanguage(t){if(!(!t||!this.languages)&&!(["cimode","dev"].indexOf(t)>-1))for(let r=0;r<this.languages.length;r++){const n=this.languages[r];if(!(["cimode","dev"].indexOf(n)>-1)&&this.store.hasLanguageSomeTranslations(n)){this.resolvedLanguage=n;break}}}changeLanguage(t,r){var n=this;this.isLanguageChangingTo=t;const a=$r();this.emit("languageChanging",t);const s=u=>{this.language=u,this.languages=this.services.languageUtils.toResolveHierarchy(u),this.resolvedLanguage=void 0,this.setResolvedLanguage(u)},i=(u,c)=>{c?(s(c),this.translator.changeLanguage(c),this.isLanguageChangingTo=void 0,this.emit("languageChanged",c),this.logger.log("languageChanged",c)):this.isLanguageChangingTo=void 0,a.resolve(function(){return n.t(...arguments)}),r&&r(u,function(){return n.t(...arguments)})},l=u=>{!t&&!u&&this.services.languageDetector&&(u=[]);const c=typeof u=="string"?u:this.services.languageUtils.getBestMatchFromCodes(u);c&&(this.language||s(c),this.translator.language||this.translator.changeLanguage(c),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(c)),this.loadResources(c,m=>{i(m,c)})};return!t&&this.services.languageDetector&&!this.services.languageDetector.async?l(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(l):this.services.languageDetector.detect(l):l(t),a}getFixedT(t,r,n){var a=this;const s=function(i,l){let u;if(typeof l!="object"){for(var c=arguments.length,m=new Array(c>2?c-2:0),f=2;f<c;f++)m[f-2]=arguments[f];u=a.options.overloadTranslationOptionHandler([i,l].concat(m))}else u={...l};u.lng=u.lng||s.lng,u.lngs=u.lngs||s.lngs,u.ns=u.ns||s.ns,u.keyPrefix!==""&&(u.keyPrefix=u.keyPrefix||n||s.keyPrefix);const d=a.options.keySeparator||".";let x;return u.keyPrefix&&Array.isArray(i)?x=i.map(y=>`${u.keyPrefix}${d}${y}`):x=u.keyPrefix?`${u.keyPrefix}${d}${i}`:i,a.t(x,u)};return typeof t=="string"?s.lng=t:s.lngs=t,s.ns=r,s.keyPrefix=n,s}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const n=r.lng||this.resolvedLanguage||this.languages[0],a=this.options?this.options.fallbackLng:!1,s=this.languages[this.languages.length-1];if(n.toLowerCase()==="cimode")return!0;const i=(l,u)=>{const c=this.services.backendConnector.state[`${l}|${u}`];return c===-1||c===2};if(r.precheck){const l=r.precheck(this,i);if(l!==void 0)return l}return!!(this.hasResourceBundle(n,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||i(n,t)&&(!a||i(s,t)))}loadNamespaces(t,r){const n=$r();return this.options.ns?(typeof t=="string"&&(t=[t]),t.forEach(a=>{this.options.ns.indexOf(a)<0&&this.options.ns.push(a)}),this.loadResources(a=>{n.resolve(),r&&r(a)}),n):(r&&r(),Promise.resolve())}loadLanguages(t,r){const n=$r();typeof t=="string"&&(t=[t]);const a=this.options.preload||[],s=t.filter(i=>a.indexOf(i)<0&&this.services.languageUtils.isSupportedCode(i));return s.length?(this.options.preload=a.concat(s),this.loadResources(i=>{n.resolve(),r&&r(i)}),n):(r&&r(),Promise.resolve())}dir(t){if(t||(t=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!t)return"rtl";const r=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],n=this.services&&this.services.languageUtils||new Po(ko());return r.indexOf(n.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;return new Hr(t,r)}cloneInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:gn;const n=t.forkResourceStore;n&&delete t.forkResourceStore;const a={...this.options,...t,isClone:!0},s=new Hr(a);return(t.debug!==void 0||t.prefix!==void 0)&&(s.logger=s.logger.clone(t)),["store","services","language"].forEach(l=>{s[l]=this[l]}),s.services={...this.services},s.services.utils={hasLoadedNamespace:s.hasLoadedNamespace.bind(s)},n&&(s.store=new Ao(this.store.data,a),s.services.resourceStore=s.store),s.translator=new Un(s.services,a),s.translator.on("*",function(l){for(var u=arguments.length,c=new Array(u>1?u-1:0),m=1;m<u;m++)c[m-1]=arguments[m];s.emit(l,...c)}),s.init(a,r),s.translator.options=a,s.translator.backendConnector.services.utils={hasLoadedNamespace:s.hasLoadedNamespace.bind(s)},s}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const ke=Hr.createInstance();ke.createInstance=Hr.createInstance;ke.createInstance;ke.dir;ke.init;ke.loadResources;ke.reloadResources;ke.use;ke.changeLanguage;ke.getFixedT;ke.t;ke.exists;ke.setDefaultNamespace;ke.hasLoadedNamespace;ke.loadNamespaces;ke.loadLanguages;const _0={"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.Activate.bt":"Jogging aktivieren","Jogging.Activating.lb":"Jogging wird aktiviert","Jogging.JointLimitsReached.lb":"Joint-Limit für Joint {{jointNumbers}} erreicht"},y0={"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.Activate.bt":"Activate jogging","Jogging.Activating.lb":"Activating jogging","Jogging.JointLimitsReached.lb":"Joint limit reached for joint {{jointNumbers}}"},ml=ke.createInstance();ml.use(qu).init({supportedLngs:["en","de"],resources:{en:{translations:y0},de:{translations:_0}},ns:["translations"],defaultNS:"translations",detection:{order:["navigator","htmlTag"]}});function sn(e){return r=>o.jsx(b0,{children:o.jsx(e,{...r})})}const b0=({children:e})=>o.jsx(qt.I18nextProvider,{i18n:ml,children:e});function ia(e){Y.useEffect(e,[])}function dl(e){ia(()=>mt.autorun(e))}function ks(e,t,r){ia(()=>mt.reaction(e,t,r))}function jr(e){return ia(()=>{let t;function r(){e(),t=requestAnimationFrame(r)}return t=requestAnimationFrame(r),()=>{cancelAnimationFrame(t)}})}const es=sn(Te.observer(({colors:e,label:t,getDisplayedValue:r,startJogging:n,stopJogging:a,disabled:s,...i})=>{jr(()=>{const m=r(),f=l.current;f&&(f.textContent=m)});const l=Y.useRef(null);function u(m){s||m.button===0&&n("-")}function c(m){s||m.button===0&&n("+")}return e||(e={color:"#fff",backgroundColor:"#000",borderColor:"#000",buttonBackgroundColor:"#000"}),o.jsxs(_r,{height:"72px",direction:"row",justifyContent:"center",...i,children:[o.jsx(T.IconButton,{onPointerDown:u,onPointerUp:a,onPointerOut:a,size:"large",sx:{width:"55px",backgroundColor:e.buttonBackgroundColor,color:e.color,alignContent:"center",fontSize:"37px",borderRadius:"16px 0px 0px 16px",borderLeft:`2px solid ${e.borderColor??"#fff"}`,borderBottom:`2px solid ${e.borderColor??"#fff"}`,borderTop:`2px solid ${e.borderColor??"#fff"}`,":hover":{backgroundColor:e.buttonBackgroundColor}},children:o.jsx(Gs.Remove,{})}),o.jsxs(_r,{spacing:"6px",sx:{width:"150px",backgroundColor:e.backgroundColor,alignItems:"center",justifyContent:"center",opacity:"0.9"},children:[o.jsx(_r,{height:"22px",direction:"row",alignItems:"center",justifyItems:"center",spacing:1,sx:{userSelect:"none",color:"white"},children:t}),o.jsx(T.Typography,{height:"22px",sx:{fontSize:"15px",color:e.color},ref:l,children:r()})]}),o.jsx(T.IconButton,{onPointerDown:c,onPointerUp:a,onPointerOut:a,size:"large",sx:{width:"55px",backgroundColor:e.buttonBackgroundColor,color:e.color,alignContent:"center",fontSize:"37px",borderRadius:"0px 16px 16px 0px",borderRight:`2px solid ${e.borderColor??"#fff"}`,borderBottom:`2px solid ${e.borderColor??"#fff"}`,borderTop:`2px solid ${e.borderColor??"#fff"}`,":hover":{backgroundColor:e.buttonBackgroundColor}},children:o.jsx(Gs.Add,{})})]})}));var Is={},Ea={};function x0(e){return nn("MuiSvgIcon",e)}Hi("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const v0=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],j0=e=>{const{color:t,fontSize:r,classes:n}=e,a={root:["root",t!=="inherit"&&`color${Pe(t)}`,`fontSize${Pe(r)}`]};return Rs(a,x0,n)},S0=At("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="inherit"&&t[`color${Pe(r.color)}`],t[`fontSize${Pe(r.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var r,n,a,s,i,l,u,c,m,f,d,x,y;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(r=e.transitions)==null||(n=r.create)==null?void 0:n.call(r,"fill",{duration:(a=e.transitions)==null||(a=a.duration)==null?void 0:a.shorter}),fontSize:{inherit:"inherit",small:((s=e.typography)==null||(i=s.pxToRem)==null?void 0:i.call(s,20))||"1.25rem",medium:((l=e.typography)==null||(u=l.pxToRem)==null?void 0:u.call(l,24))||"1.5rem",large:((c=e.typography)==null||(m=c.pxToRem)==null?void 0:m.call(c,35))||"2.1875rem"}[t.fontSize],color:(f=(d=(e.vars||e).palette)==null||(d=d[t.color])==null?void 0:d.main)!=null?f:{action:(x=(e.vars||e).palette)==null||(x=x.action)==null?void 0:x.active,disabled:(y=(e.vars||e).palette)==null||(y=y.action)==null?void 0:y.disabled,inherit:void 0}[t.color]}}),Bn=$.forwardRef(function(t,r){const n=Ms({props:t,name:"MuiSvgIcon"}),{children:a,className:s,color:i="inherit",component:l="svg",fontSize:u="medium",htmlColor:c,inheritViewBox:m=!1,titleAccess:f,viewBox:d="0 0 24 24"}=n,x=Ue(n,v0),y=$.isValidElement(a)&&a.type==="svg",_=k({},n,{color:i,component:l,fontSize:u,instanceFontSize:t.fontSize,inheritViewBox:m,viewBox:d,hasSvgAsChild:y}),p={};m||(p.viewBox=d);const j=j0(_);return o.jsxs(S0,k({as:l,className:gt(j.root,s),focusable:"false",color:c,"aria-hidden":f?void 0:!0,role:f?"img":void 0,ref:r},p,x,y&&a.props,{ownerState:_,children:[y?a.props.children:a,f?o.jsx("title",{children:f}):null]}))});process.env.NODE_ENV!=="production"&&(Bn.propTypes={children:h.node,classes:h.object,className:h.string,color:h.oneOfType([h.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),h.string]),component:h.elementType,fontSize:h.oneOfType([h.oneOf(["inherit","large","medium","small"]),h.string]),htmlColor:h.string,inheritViewBox:h.bool,shapeRendering:h.string,sx:h.oneOfType([h.arrayOf(h.oneOfType([h.func,h.object,h.bool])),h.func,h.object]),titleAccess:h.string,viewBox:h.string});Bn.muiName="SvgIcon";function R0(e,t){function r(n,a){return o.jsx(Bn,k({"data-testid":`${t}Icon`,ref:a},n,{children:e}))}return process.env.NODE_ENV!=="production"&&(r.displayName=`${t}Icon`),r.muiName=Bn.muiName,$.memo($.forwardRef(r))}const A0={configure:e=>{process.env.NODE_ENV!=="production"&&console.warn(["MUI: `ClassNameGenerator` import from `@mui/material/utils` is outdated and might cause unexpected issues.","","You should use `import { unstable_ClassNameGenerator } from '@mui/material/className'` instead","","The detail of the issue: https://github.com/mui/material-ui/issues/30011#issuecomment-1024993401","","The updated documentation: https://mui.com/guides/classname-generator/"].join(`
|
|
78
|
-
`)),Ki.configure(e)}},w0=Object.freeze(Object.defineProperty({__proto__:null,capitalize:Pe,createChainedFunction:ad,createSvgIcon:R0,debounce:sd,deprecatedPropType:od,isMuiElement:id,ownerDocument:pr,ownerWindow:ld,requirePropFactory:ud,setRef:Zi,unstable_ClassNameGenerator:A0,unstable_useEnhancedEffect:js,unstable_useId:md,unsupportedProp:dd,useControlled:Qi,useEventCallback:wn,useForkRef:Ln,useIsFocusVisible:el},Symbol.toStringTag,{value:"Module"})),P0=Rt(w0);var To;function fl(){return To||(To=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=P0}(Ea)),Ea}var C0=sa;Object.defineProperty(Is,"__esModule",{value:!0});var hl=Is.default=void 0,M0=C0(fl()),k0=o;hl=Is.default=(0,M0.default)((0,k0.jsx)("path",{d:"M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"ChevronLeft");var Ts={},I0=sa;Object.defineProperty(Ts,"__esModule",{value:!0});var gl=Ts.default=void 0,T0=I0(fl()),O0=o;gl=Ts.default=(0,T0.default)((0,O0.jsx)("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"ChevronRight");function Kt(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var pl=typeof global=="object"&&global&&global.Object===Object&&global,E0=typeof self=="object"&&self&&self.Object===Object&&self,_t=pl||E0||Function("return this")(),La=function(){return _t.Date.now()},L0=/\s/;function N0(e){for(var t=e.length;t--&&L0.test(e.charAt(t)););return t}var $0=/^\s+/;function F0(e){return e&&e.slice(0,N0(e)+1).replace($0,"")}var Nt=_t.Symbol,_l=Object.prototype,D0=_l.hasOwnProperty,U0=_l.toString,Fr=Nt?Nt.toStringTag:void 0;function B0(e){var t=D0.call(e,Fr),r=e[Fr];try{e[Fr]=void 0;var n=!0}catch{}var a=U0.call(e);return n&&(t?e[Fr]=r:delete e[Fr]),a}var J0=Object.prototype,V0=J0.toString;function G0(e){return V0.call(e)}var z0="[object Null]",K0="[object Undefined]",Oo=Nt?Nt.toStringTag:void 0;function Yt(e){return e==null?e===void 0?K0:z0:Oo&&Oo in Object(e)?B0(e):G0(e)}function Wt(e){return e!=null&&typeof e=="object"}var W0="[object Symbol]";function la(e){return typeof e=="symbol"||Wt(e)&&Yt(e)==W0}var Eo=NaN,H0=/^[-+]0x[0-9a-f]+$/i,X0=/^0b[01]+$/i,q0=/^0o[0-7]+$/i,Y0=parseInt;function Lo(e){if(typeof e=="number")return e;if(la(e))return Eo;if(Kt(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Kt(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=F0(e);var r=X0.test(e);return r||q0.test(e)?Y0(e.slice(2),r?2:8):H0.test(e)?Eo:+e}var Z0="Expected a function",Q0=Math.max,eh=Math.min;function th(e,t,r){var n,a,s,i,l,u,c=0,m=!1,f=!1,d=!0;if(typeof e!="function")throw new TypeError(Z0);t=Lo(t)||0,Kt(r)&&(m=!!r.leading,f="maxWait"in r,s=f?Q0(Lo(r.maxWait)||0,t):s,d="trailing"in r?!!r.trailing:d);function x(P){var M=n,K=a;return n=a=void 0,c=P,i=e.apply(K,M),i}function y(P){return c=P,l=setTimeout(j,t),m?x(P):i}function _(P){var M=P-u,K=P-c,le=t-M;return f?eh(le,s-K):le}function p(P){var M=P-u,K=P-c;return u===void 0||M>=t||M<0||f&&K>=s}function j(){var P=La();if(p(P))return R(P);l=setTimeout(j,_(P))}function R(P){return l=void 0,d&&n?x(P):(n=a=void 0,i)}function C(){l!==void 0&&clearTimeout(l),c=0,n=u=a=l=void 0}function w(){return l===void 0?i:R(La())}function S(){var P=La(),M=p(P);if(n=arguments,a=this,u=P,M){if(l===void 0)return y(u);if(f)return clearTimeout(l),l=setTimeout(j,t),x(u)}return l===void 0&&(l=setTimeout(j,t)),i}return S.cancel=C,S.flush=w,S}var rh="Expected a function";function nh(e,t,r){var n=!0,a=!0;if(typeof e!="function")throw new TypeError(rh);return Kt(r)&&(n="leading"in r?!!r.leading:n,a="trailing"in r?!!r.trailing:a),th(e,t,{leading:n,maxWait:t,trailing:a})}const yl=sn(Te.observer(({startJogging:e,stopJogging:t,lowerLimitDegs:r,upperLimitDegs:n,getValueDegs:a,disabled:s,...i})=>{const{t:l}=qt.useTranslation(),[u,c]=Y.useState(),m=Te.useLocalObservable(()=>({activeJoggingDir:null,startJogging(j){this.activeJoggingDir=j,e(j)},stopJogging(){this.activeJoggingDir=null,t()}})),f=nh(()=>{c(a())},50);jr(f);function d(j){j.button===0&&m.startJogging("-")}function x(j){j.button===0&&m.startJogging("+")}function y(j){m.stopJogging()}function _(j){j.target===j.currentTarget&&m.stopJogging()}function p(j,R=1){if(j===void 0||isNaN(j))return"";const C=l("General.degree.variable",{amount:j.toFixed(R)});return j>0&&R===0?`+${C}`:C}return o.jsxs(_r,{height:"64px",width:"100%",maxWidth:"300px",direction:"row",...i,sx:{"& .MuiIconButton-root":{width:"52px",color:"white",alignContent:"center",backgroundColor:"#38445A","&:disabled":{opacity:.5,backgroundColor:"#38445A"},"& svg":{width:"42px",height:"42px"}}},children:[o.jsx(T.IconButton,{onPointerDown:d,onPointerUp:y,onPointerOut:_,disabled:s,sx:{borderRadius:"16px 0px 0px 16px",backgroundColor:m.activeJoggingDir==="-"?"#495975":void 0},children:o.jsx(hl,{})}),o.jsxs(_r,{flexGrow:1,alignItems:"center",justifyContent:"center",sx:{borderStyle:"solid",borderLeftWidth:0,borderRightWidth:0,borderTopWidth:"4px",borderBottomWidth:"4px",backgroundColor:"#38445A",borderColor:"#38445A",paddingLeft:"20px",paddingRight:"20px",zIndex:1},children:[o.jsx(T.Typography,{sx:{fontSize:"15px",position:"relative",top:"5px",color:"white"},children:p(u)}),o.jsx(T.Slider,{disabled:!0,"aria-label":"Joint position",min:r,max:n,value:u||0,track:!1,sx:{"& .MuiSlider-mark":{display:"none"},"& .MuiSlider-thumb":{width:"5px",height:"10px",borderRadius:"2px"},"& .MuiSlider-markLabel":{top:"20px",fontSize:"12px",color:"white"},"& .MuiSlider-rail":{backgroundColor:"#1F283A",opacity:1}},marks:r!==void 0&&n!==void 0&&[{value:r,label:p(r,0)},{value:n,label:p(n,0)}]})]}),o.jsx(T.IconButton,{onPointerDown:x,onPointerUp:y,onPointerOut:_,disabled:s,sx:{borderRadius:"0px 16px 16px 0px",backgroundColor:m.activeJoggingDir==="+"?"#495975 !important":"#38445A"},children:o.jsx(gl,{})})]})}));function bl(e,t){return function(){return e.apply(t,arguments)}}const{toString:ah}=Object.prototype,{getPrototypeOf:Os}=Object,ua=(e=>t=>{const r=ah.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),it=e=>(e=e.toLowerCase(),t=>ua(t)===e),ca=e=>t=>typeof t===e,{isArray:Sr}=Array,Xr=ca("undefined");function sh(e){return e!==null&&!Xr(e)&&e.constructor!==null&&!Xr(e.constructor)&&Ke(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const xl=it("ArrayBuffer");function oh(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&xl(e.buffer),t}const ih=ca("string"),Ke=ca("function"),vl=ca("number"),ma=e=>e!==null&&typeof e=="object",lh=e=>e===!0||e===!1,kn=e=>{if(ua(e)!=="object")return!1;const t=Os(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},uh=it("Date"),ch=it("File"),mh=it("Blob"),dh=it("FileList"),fh=e=>ma(e)&&Ke(e.pipe),hh=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Ke(e.append)&&((t=ua(e))==="formdata"||t==="object"&&Ke(e.toString)&&e.toString()==="[object FormData]"))},gh=it("URLSearchParams"),[ph,_h,yh,bh]=["ReadableStream","Request","Response","Headers"].map(it),xh=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function on(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,a;if(typeof e!="object"&&(e=[e]),Sr(e))for(n=0,a=e.length;n<a;n++)t.call(null,e[n],n,e);else{const s=r?Object.getOwnPropertyNames(e):Object.keys(e),i=s.length;let l;for(n=0;n<i;n++)l=s[n],t.call(null,e[l],l,e)}}function jl(e,t){t=t.toLowerCase();const r=Object.keys(e);let n=r.length,a;for(;n-- >0;)if(a=r[n],t===a.toLowerCase())return a;return null}const Vt=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Sl=e=>!Xr(e)&&e!==Vt;function ts(){const{caseless:e}=Sl(this)&&this||{},t={},r=(n,a)=>{const s=e&&jl(t,a)||a;kn(t[s])&&kn(n)?t[s]=ts(t[s],n):kn(n)?t[s]=ts({},n):Sr(n)?t[s]=n.slice():t[s]=n};for(let n=0,a=arguments.length;n<a;n++)arguments[n]&&on(arguments[n],r);return t}const vh=(e,t,r,{allOwnKeys:n}={})=>(on(t,(a,s)=>{r&&Ke(a)?e[s]=bl(a,r):e[s]=a},{allOwnKeys:n}),e),jh=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Sh=(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},Rh=(e,t,r,n)=>{let a,s,i;const l={};if(t=t||{},e==null)return t;do{for(a=Object.getOwnPropertyNames(e),s=a.length;s-- >0;)i=a[s],(!n||n(i,e,t))&&!l[i]&&(t[i]=e[i],l[i]=!0);e=r!==!1&&Os(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},Ah=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return n!==-1&&n===r},wh=e=>{if(!e)return null;if(Sr(e))return e;let t=e.length;if(!vl(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},Ph=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Os(Uint8Array)),Ch=(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let a;for(;(a=n.next())&&!a.done;){const s=a.value;t.call(e,s[0],s[1])}},Mh=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},kh=it("HTMLFormElement"),Ih=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,a){return n.toUpperCase()+a}),No=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),Th=it("RegExp"),Rl=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};on(r,(a,s)=>{let i;(i=t(a,s,e))!==!1&&(n[s]=i||a)}),Object.defineProperties(e,n)},Oh=e=>{Rl(e,(t,r)=>{if(Ke(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(Ke(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},Eh=(e,t)=>{const r={},n=a=>{a.forEach(s=>{r[s]=!0})};return Sr(e)?n(e):n(String(e).split(t)),r},Lh=()=>{},Nh=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,Na="abcdefghijklmnopqrstuvwxyz",$o="0123456789",Al={DIGIT:$o,ALPHA:Na,ALPHA_DIGIT:Na+Na.toUpperCase()+$o},$h=(e=16,t=Al.ALPHA_DIGIT)=>{let r="";const{length:n}=t;for(;e--;)r+=t[Math.random()*n|0];return r};function Fh(e){return!!(e&&Ke(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const Dh=e=>{const t=new Array(10),r=(n,a)=>{if(ma(n)){if(t.indexOf(n)>=0)return;if(!("toJSON"in n)){t[a]=n;const s=Sr(n)?[]:{};return on(n,(i,l)=>{const u=r(i,a+1);!Xr(u)&&(s[l]=u)}),t[a]=void 0,s}}return n};return r(e,0)},Uh=it("AsyncFunction"),Bh=e=>e&&(ma(e)||Ke(e))&&Ke(e.then)&&Ke(e.catch),wl=((e,t)=>e?setImmediate:t?((r,n)=>(Vt.addEventListener("message",({source:a,data:s})=>{a===Vt&&s===r&&n.length&&n.shift()()},!1),a=>{n.push(a),Vt.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",Ke(Vt.postMessage)),Jh=typeof queueMicrotask<"u"?queueMicrotask.bind(Vt):typeof process<"u"&&process.nextTick||wl,v={isArray:Sr,isArrayBuffer:xl,isBuffer:sh,isFormData:hh,isArrayBufferView:oh,isString:ih,isNumber:vl,isBoolean:lh,isObject:ma,isPlainObject:kn,isReadableStream:ph,isRequest:_h,isResponse:yh,isHeaders:bh,isUndefined:Xr,isDate:uh,isFile:ch,isBlob:mh,isRegExp:Th,isFunction:Ke,isStream:fh,isURLSearchParams:gh,isTypedArray:Ph,isFileList:dh,forEach:on,merge:ts,extend:vh,trim:xh,stripBOM:jh,inherits:Sh,toFlatObject:Rh,kindOf:ua,kindOfTest:it,endsWith:Ah,toArray:wh,forEachEntry:Ch,matchAll:Mh,isHTMLForm:kh,hasOwnProperty:No,hasOwnProp:No,reduceDescriptors:Rl,freezeMethods:Oh,toObjectSet:Eh,toCamelCase:Ih,noop:Lh,toFiniteNumber:Nh,findKey:jl,global:Vt,isContextDefined:Sl,ALPHABET:Al,generateString:$h,isSpecCompliantForm:Fh,toJSONObject:Dh,isAsyncFn:Uh,isThenable:Bh,setImmediate:wl,asap:Jh};function J(e,t,r,n,a){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),a&&(this.response=a)}v.inherits(J,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:v.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Pl=J.prototype,Cl={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Cl[e]={value:e}});Object.defineProperties(J,Cl);Object.defineProperty(Pl,"isAxiosError",{value:!0});J.from=(e,t,r,n,a,s)=>{const i=Object.create(Pl);return v.toFlatObject(e,i,function(u){return u!==Error.prototype},l=>l!=="isAxiosError"),J.call(i,e.message,t,r,n,a),i.cause=e,i.name=e.name,s&&Object.assign(i,s),i};const Vh=null;function rs(e){return v.isPlainObject(e)||v.isArray(e)}function Ml(e){return v.endsWith(e,"[]")?e.slice(0,-2):e}function Fo(e,t,r){return e?e.concat(t).map(function(a,s){return a=Ml(a),!r&&s?"["+a+"]":a}).join(r?".":""):t}function Gh(e){return v.isArray(e)&&!e.some(rs)}const zh=v.toFlatObject(v,{},null,function(t){return/^is[A-Z]/.test(t)});function da(e,t,r){if(!v.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=v.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(_,p){return!v.isUndefined(p[_])});const n=r.metaTokens,a=r.visitor||m,s=r.dots,i=r.indexes,u=(r.Blob||typeof Blob<"u"&&Blob)&&v.isSpecCompliantForm(t);if(!v.isFunction(a))throw new TypeError("visitor must be a function");function c(y){if(y===null)return"";if(v.isDate(y))return y.toISOString();if(!u&&v.isBlob(y))throw new J("Blob is not supported. Use a Buffer instead.");return v.isArrayBuffer(y)||v.isTypedArray(y)?u&&typeof Blob=="function"?new Blob([y]):Buffer.from(y):y}function m(y,_,p){let j=y;if(y&&!p&&typeof y=="object"){if(v.endsWith(_,"{}"))_=n?_:_.slice(0,-2),y=JSON.stringify(y);else if(v.isArray(y)&&Gh(y)||(v.isFileList(y)||v.endsWith(_,"[]"))&&(j=v.toArray(y)))return _=Ml(_),j.forEach(function(C,w){!(v.isUndefined(C)||C===null)&&t.append(i===!0?Fo([_],w,s):i===null?_:_+"[]",c(C))}),!1}return rs(y)?!0:(t.append(Fo(p,_,s),c(y)),!1)}const f=[],d=Object.assign(zh,{defaultVisitor:m,convertValue:c,isVisitable:rs});function x(y,_){if(!v.isUndefined(y)){if(f.indexOf(y)!==-1)throw Error("Circular reference detected in "+_.join("."));f.push(y),v.forEach(y,function(j,R){(!(v.isUndefined(j)||j===null)&&a.call(t,j,v.isString(R)?R.trim():R,_,d))===!0&&x(j,_?_.concat(R):[R])}),f.pop()}}if(!v.isObject(e))throw new TypeError("data must be an object");return x(e),t}function Do(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function Es(e,t){this._pairs=[],e&&da(e,this,t)}const kl=Es.prototype;kl.append=function(t,r){this._pairs.push([t,r])};kl.toString=function(t){const r=t?function(n){return t.call(this,n,Do)}:Do;return this._pairs.map(function(a){return r(a[0])+"="+r(a[1])},"").join("&")};function Kh(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Il(e,t,r){if(!t)return e;const n=r&&r.encode||Kh,a=r&&r.serialize;let s;if(a?s=a(t,r):s=v.isURLSearchParams(t)?t.toString():new Es(t,r).toString(n),s){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+s}return e}class Uo{constructor(){this.handlers=[]}use(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){v.forEach(this.handlers,function(n){n!==null&&t(n)})}}const Tl={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Wh=typeof URLSearchParams<"u"?URLSearchParams:Es,Hh=typeof FormData<"u"?FormData:null,Xh=typeof Blob<"u"?Blob:null,qh={isBrowser:!0,classes:{URLSearchParams:Wh,FormData:Hh,Blob:Xh},protocols:["http","https","file","blob","url","data"]},Ls=typeof window<"u"&&typeof document<"u",Yh=(e=>Ls&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),Zh=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Qh=Ls&&window.location.href||"http://localhost",eg=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Ls,hasStandardBrowserEnv:Yh,hasStandardBrowserWebWorkerEnv:Zh,origin:Qh},Symbol.toStringTag,{value:"Module"})),st={...eg,...qh};function tg(e,t){return da(e,new st.classes.URLSearchParams,Object.assign({visitor:function(r,n,a,s){return st.isNode&&v.isBuffer(r)?(this.append(n,r.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},t))}function rg(e){return v.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function ng(e){const t={},r=Object.keys(e);let n;const a=r.length;let s;for(n=0;n<a;n++)s=r[n],t[s]=e[s];return t}function Ol(e){function t(r,n,a,s){let i=r[s++];if(i==="__proto__")return!0;const l=Number.isFinite(+i),u=s>=r.length;return i=!i&&v.isArray(a)?a.length:i,u?(v.hasOwnProp(a,i)?a[i]=[a[i],n]:a[i]=n,!l):((!a[i]||!v.isObject(a[i]))&&(a[i]=[]),t(r,n,a[i],s)&&v.isArray(a[i])&&(a[i]=ng(a[i])),!l)}if(v.isFormData(e)&&v.isFunction(e.entries)){const r={};return v.forEachEntry(e,(n,a)=>{t(rg(n),a,r,0)}),r}return null}function ag(e,t,r){if(v.isString(e))try{return(t||JSON.parse)(e),v.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}const ln={transitional:Tl,adapter:["xhr","http","fetch"],transformRequest:[function(t,r){const n=r.getContentType()||"",a=n.indexOf("application/json")>-1,s=v.isObject(t);if(s&&v.isHTMLForm(t)&&(t=new FormData(t)),v.isFormData(t))return a?JSON.stringify(Ol(t)):t;if(v.isArrayBuffer(t)||v.isBuffer(t)||v.isStream(t)||v.isFile(t)||v.isBlob(t)||v.isReadableStream(t))return t;if(v.isArrayBufferView(t))return t.buffer;if(v.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(s){if(n.indexOf("application/x-www-form-urlencoded")>-1)return tg(t,this.formSerializer).toString();if((l=v.isFileList(t))||n.indexOf("multipart/form-data")>-1){const u=this.env&&this.env.FormData;return da(l?{"files[]":t}:t,u&&new u,this.formSerializer)}}return s||a?(r.setContentType("application/json",!1),ag(t)):t}],transformResponse:[function(t){const r=this.transitional||ln.transitional,n=r&&r.forcedJSONParsing,a=this.responseType==="json";if(v.isResponse(t)||v.isReadableStream(t))return t;if(t&&v.isString(t)&&(n&&!this.responseType||a)){const i=!(r&&r.silentJSONParsing)&&a;try{return JSON.parse(t)}catch(l){if(i)throw l.name==="SyntaxError"?J.from(l,J.ERR_BAD_RESPONSE,this,null,this.response):l}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:st.classes.FormData,Blob:st.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};v.forEach(["delete","get","head","post","put","patch"],e=>{ln.headers[e]={}});const sg=v.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),og=e=>{const t={};let r,n,a;return e&&e.split(`
|
|
79
|
-
`).forEach(function(i){a=i.indexOf(":"),r=i.substring(0,a).trim().toLowerCase(),n=i.substring(a+1).trim(),!(!r||t[r]&&
|
|
80
|
-
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){const n=new this(t);return r.forEach(a=>n.set(a)),n}static accessor(t){const n=(this[Bo]=this[Bo]={accessors:{}}).accessors,a=this.prototype;function s(i){const l=Dr(i);n[l]||(cg(a,i),n[l]=!0)}return v.isArray(t)?t.forEach(s):s(t),this}};Fe.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);v.reduceDescriptors(Fe.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}});v.freezeMethods(Fe);function Fa(e,t){const r=this||ln,n=t||r,a=Fe.from(n.headers);let s=n.data;return v.forEach(e,function(l){s=l.call(r,s,a.normalize(),t?t.status:void 0)}),a.normalize(),s}function El(e){return!!(e&&e.__CANCEL__)}function Rr(e,t,r){J.call(this,e??"canceled",J.ERR_CANCELED,t,r),this.name="CanceledError"}v.inherits(Rr,J,{__CANCEL__:!0});function Ll(e,t,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new J("Request failed with status code "+r.status,[J.ERR_BAD_REQUEST,J.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function mg(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function dg(e,t){e=e||10;const r=new Array(e),n=new Array(e);let a=0,s=0,i;return t=t!==void 0?t:1e3,function(u){const c=Date.now(),m=n[s];i||(i=c),r[a]=u,n[a]=c;let f=s,d=0;for(;f!==a;)d+=r[f++],f=f%e;if(a=(a+1)%e,a===s&&(s=(s+1)%e),c-i<t)return;const x=m&&c-m;return x?Math.round(d*1e3/x):void 0}}function fg(e,t){let r=0,n=1e3/t,a,s;const i=(c,m=Date.now())=>{r=m,a=null,s&&(clearTimeout(s),s=null),e.apply(null,c)};return[(...c)=>{const m=Date.now(),f=m-r;f>=n?i(c,m):(a=c,s||(s=setTimeout(()=>{s=null,i(a)},n-f)))},()=>a&&i(a)]}const Jn=(e,t,r=3)=>{let n=0;const a=dg(50,250);return fg(s=>{const i=s.loaded,l=s.lengthComputable?s.total:void 0,u=i-n,c=a(u),m=i<=l;n=i;const f={loaded:i,total:l,progress:l?i/l:void 0,bytes:u,rate:c||void 0,estimated:c&&l&&m?(l-i)/c:void 0,event:s,lengthComputable:l!=null,[t?"download":"upload"]:!0};e(f)},r)},Jo=(e,t)=>{const r=e!=null;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},Vo=e=>(...t)=>v.asap(()=>e(...t)),hg=st.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");let n;function a(s){let i=s;return t&&(r.setAttribute("href",i),i=r.href),r.setAttribute("href",i),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:r.pathname.charAt(0)==="/"?r.pathname:"/"+r.pathname}}return n=a(window.location.href),function(i){const l=v.isString(i)?a(i):i;return l.protocol===n.protocol&&l.host===n.host}}():function(){return function(){return!0}}(),gg=st.hasStandardBrowserEnv?{write(e,t,r,n,a,s){const i=[e+"="+encodeURIComponent(t)];v.isNumber(r)&&i.push("expires="+new Date(r).toGMTString()),v.isString(n)&&i.push("path="+n),v.isString(a)&&i.push("domain="+a),s===!0&&i.push("secure"),document.cookie=i.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function pg(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function _g(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Nl(e,t){return e&&!pg(t)?_g(e,t):t}const Go=e=>e instanceof Fe?{...e}:e;function Ht(e,t){t=t||{};const r={};function n(c,m,f){return v.isPlainObject(c)&&v.isPlainObject(m)?v.merge.call({caseless:f},c,m):v.isPlainObject(m)?v.merge({},m):v.isArray(m)?m.slice():m}function a(c,m,f){if(v.isUndefined(m)){if(!v.isUndefined(c))return n(void 0,c,f)}else return n(c,m,f)}function s(c,m){if(!v.isUndefined(m))return n(void 0,m)}function i(c,m){if(v.isUndefined(m)){if(!v.isUndefined(c))return n(void 0,c)}else return n(void 0,m)}function l(c,m,f){if(f in t)return n(c,m);if(f in e)return n(void 0,c)}const u={url:s,method:s,data:s,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:l,headers:(c,m)=>a(Go(c),Go(m),!0)};return v.forEach(Object.keys(Object.assign({},e,t)),function(m){const f=u[m]||a,d=f(e[m],t[m],m);v.isUndefined(d)&&f!==l||(r[m]=d)}),r}const $l=e=>{const t=Ht({},e);let{data:r,withXSRFToken:n,xsrfHeaderName:a,xsrfCookieName:s,headers:i,auth:l}=t;t.headers=i=Fe.from(i),t.url=Il(Nl(t.baseURL,t.url),e.params,e.paramsSerializer),l&&i.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):"")));let u;if(v.isFormData(r)){if(st.hasStandardBrowserEnv||st.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if((u=i.getContentType())!==!1){const[c,...m]=u?u.split(";").map(f=>f.trim()).filter(Boolean):[];i.setContentType([c||"multipart/form-data",...m].join("; "))}}if(st.hasStandardBrowserEnv&&(n&&v.isFunction(n)&&(n=n(t)),n||n!==!1&&hg(t.url))){const c=a&&s&&gg.read(s);c&&i.set(a,c)}return t},yg=typeof XMLHttpRequest<"u",bg=yg&&function(e){return new Promise(function(r,n){const a=$l(e);let s=a.data;const i=Fe.from(a.headers).normalize();let{responseType:l,onUploadProgress:u,onDownloadProgress:c}=a,m,f,d,x,y;function _(){x&&x(),y&&y(),a.cancelToken&&a.cancelToken.unsubscribe(m),a.signal&&a.signal.removeEventListener("abort",m)}let p=new XMLHttpRequest;p.open(a.method.toUpperCase(),a.url,!0),p.timeout=a.timeout;function j(){if(!p)return;const C=Fe.from("getAllResponseHeaders"in p&&p.getAllResponseHeaders()),S={data:!l||l==="text"||l==="json"?p.responseText:p.response,status:p.status,statusText:p.statusText,headers:C,config:e,request:p};Ll(function(M){r(M),_()},function(M){n(M),_()},S),p=null}"onloadend"in p?p.onloadend=j:p.onreadystatechange=function(){!p||p.readyState!==4||p.status===0&&!(p.responseURL&&p.responseURL.indexOf("file:")===0)||setTimeout(j)},p.onabort=function(){p&&(n(new J("Request aborted",J.ECONNABORTED,e,p)),p=null)},p.onerror=function(){n(new J("Network Error",J.ERR_NETWORK,e,p)),p=null},p.ontimeout=function(){let w=a.timeout?"timeout of "+a.timeout+"ms exceeded":"timeout exceeded";const S=a.transitional||Tl;a.timeoutErrorMessage&&(w=a.timeoutErrorMessage),n(new J(w,S.clarifyTimeoutError?J.ETIMEDOUT:J.ECONNABORTED,e,p)),p=null},s===void 0&&i.setContentType(null),"setRequestHeader"in p&&v.forEach(i.toJSON(),function(w,S){p.setRequestHeader(S,w)}),v.isUndefined(a.withCredentials)||(p.withCredentials=!!a.withCredentials),l&&l!=="json"&&(p.responseType=a.responseType),c&&([d,y]=Jn(c,!0),p.addEventListener("progress",d)),u&&p.upload&&([f,x]=Jn(u),p.upload.addEventListener("progress",f),p.upload.addEventListener("loadend",x)),(a.cancelToken||a.signal)&&(m=C=>{p&&(n(!C||C.type?new Rr(null,e,p):C),p.abort(),p=null)},a.cancelToken&&a.cancelToken.subscribe(m),a.signal&&(a.signal.aborted?m():a.signal.addEventListener("abort",m)));const R=mg(a.url);if(R&&st.protocols.indexOf(R)===-1){n(new J("Unsupported protocol "+R+":",J.ERR_BAD_REQUEST,e));return}p.send(s||null)})},xg=(e,t)=>{let r=new AbortController,n;const a=function(u){if(!n){n=!0,i();const c=u instanceof Error?u:this.reason;r.abort(c instanceof J?c:new Rr(c instanceof Error?c.message:c))}};let s=t&&setTimeout(()=>{a(new J(`timeout ${t} of ms exceeded`,J.ETIMEDOUT))},t);const i=()=>{e&&(s&&clearTimeout(s),s=null,e.forEach(u=>{u&&(u.removeEventListener?u.removeEventListener("abort",a):u.unsubscribe(a))}),e=null)};e.forEach(u=>u&&u.addEventListener&&u.addEventListener("abort",a));const{signal:l}=r;return l.unsubscribe=i,[l,()=>{s&&clearTimeout(s),s=null}]},vg=function*(e,t){let r=e.byteLength;if(!t||r<t){yield e;return}let n=0,a;for(;n<r;)a=n+t,yield e.slice(n,a),n=a},jg=async function*(e,t,r){for await(const n of e)yield*vg(ArrayBuffer.isView(n)?n:await r(String(n)),t)},zo=(e,t,r,n,a)=>{const s=jg(e,t,a);let i=0,l,u=c=>{l||(l=!0,n&&n(c))};return new ReadableStream({async pull(c){try{const{done:m,value:f}=await s.next();if(m){u(),c.close();return}let d=f.byteLength;if(r){let x=i+=d;r(x)}c.enqueue(new Uint8Array(f))}catch(m){throw u(m),m}},cancel(c){return u(c),s.return()}},{highWaterMark:2})},fa=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Fl=fa&&typeof ReadableStream=="function",ns=fa&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Dl=(e,...t)=>{try{return!!e(...t)}catch{return!1}},Sg=Fl&&Dl(()=>{let e=!1;const t=new Request(st.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),Ko=64*1024,as=Fl&&Dl(()=>v.isReadableStream(new Response("").body)),Vn={stream:as&&(e=>e.body)};fa&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!Vn[t]&&(Vn[t]=v.isFunction(e[t])?r=>r[t]():(r,n)=>{throw new J(`Response type '${t}' is not supported`,J.ERR_NOT_SUPPORT,n)})})})(new Response);const Rg=async e=>{if(e==null)return 0;if(v.isBlob(e))return e.size;if(v.isSpecCompliantForm(e))return(await new Request(e).arrayBuffer()).byteLength;if(v.isArrayBufferView(e)||v.isArrayBuffer(e))return e.byteLength;if(v.isURLSearchParams(e)&&(e=e+""),v.isString(e))return(await ns(e)).byteLength},Ag=async(e,t)=>{const r=v.toFiniteNumber(e.getContentLength());return r??Rg(t)},wg=fa&&(async e=>{let{url:t,method:r,data:n,signal:a,cancelToken:s,timeout:i,onDownloadProgress:l,onUploadProgress:u,responseType:c,headers:m,withCredentials:f="same-origin",fetchOptions:d}=$l(e);c=c?(c+"").toLowerCase():"text";let[x,y]=a||s||i?xg([a,s],i):[],_,p;const j=()=>{!_&&setTimeout(()=>{x&&x.unsubscribe()}),_=!0};let R;try{if(u&&Sg&&r!=="get"&&r!=="head"&&(R=await Ag(m,n))!==0){let P=new Request(t,{method:"POST",body:n,duplex:"half"}),M;if(v.isFormData(n)&&(M=P.headers.get("content-type"))&&m.setContentType(M),P.body){const[K,le]=Jo(R,Jn(Vo(u)));n=zo(P.body,Ko,K,le,ns)}}v.isString(f)||(f=f?"include":"omit"),p=new Request(t,{...d,signal:x,method:r.toUpperCase(),headers:m.normalize().toJSON(),body:n,duplex:"half",credentials:f});let C=await fetch(p);const w=as&&(c==="stream"||c==="response");if(as&&(l||w)){const P={};["status","statusText","headers"].forEach(ce=>{P[ce]=C[ce]});const M=v.toFiniteNumber(C.headers.get("content-length")),[K,le]=l&&Jo(M,Jn(Vo(l),!0))||[];C=new Response(zo(C.body,Ko,K,()=>{le&&le(),w&&j()},ns),P)}c=c||"text";let S=await Vn[v.findKey(Vn,c)||"text"](C,e);return!w&&j(),y&&y(),await new Promise((P,M)=>{Ll(P,M,{data:S,headers:Fe.from(C.headers),status:C.status,statusText:C.statusText,config:e,request:p})})}catch(C){throw j(),C&&C.name==="TypeError"&&/fetch/i.test(C.message)?Object.assign(new J("Network Error",J.ERR_NETWORK,e,p),{cause:C.cause||C}):J.from(C,C&&C.code,e,p)}}),ss={http:Vh,xhr:bg,fetch:wg};v.forEach(ss,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Wo=e=>`- ${e}`,Pg=e=>v.isFunction(e)||e===null||e===!1,Ul={getAdapter:e=>{e=v.isArray(e)?e:[e];const{length:t}=e;let r,n;const a={};for(let s=0;s<t;s++){r=e[s];let i;if(n=r,!Pg(r)&&(n=ss[(i=String(r)).toLowerCase()],n===void 0))throw new J(`Unknown adapter '${i}'`);if(n)break;a[i||"#"+s]=n}if(!n){const s=Object.entries(a).map(([l,u])=>`adapter ${l} `+(u===!1?"is not supported by the environment":"is not available in the build"));let i=t?s.length>1?`since :
|
|
75
|
+
} });`:Gr(12,p?` (${p})`:"",JSON.stringify(_.main)));return _o(_,"light",R,n),_o(_,"dark",C,n),_.contrastText||(_.contrastText=f(_.main)),_},b={dark:Ia,light:po};return process.env.NODE_ENV!=="production"&&(b[t]||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),et(k({common:k({},Wr),mode:t,primary:d({color:s,name:"primary"}),secondary:d({color:i,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:d({color:l,name:"error"}),warning:d({color:m,name:"warning"}),info:d({color:u,name:"info"}),success:d({color:c,name:"success"}),grey:jf,contrastThreshold:r,getContrastText:f,augmentColor:d,tonalOffset:n},b[t]),a)}const If=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function Tf(e){return Math.round(e*1e5)/1e5}const yo={textTransform:"uppercase"},bo='"Roboto", "Helvetica", "Arial", sans-serif';function Of(e,t){const r=typeof t=="function"?t(e):t,{fontFamily:n=bo,fontSize:a=14,fontWeightLight:s=300,fontWeightRegular:i=400,fontWeightMedium:l=500,fontWeightBold:u=700,htmlFontSize:c=16,allVariants:m,pxToRem:f}=r,d=Be(r,If);process.env.NODE_ENV!=="production"&&(typeof a!="number"&&console.error("MUI: `fontSize` is required to be a number."),typeof c!="number"&&console.error("MUI: `htmlFontSize` is required to be a number."));const b=a/14,y=f||(j=>`${j/c*b}rem`),_=(j,R,C,A,S)=>k({fontFamily:n,fontWeight:j,fontSize:y(R),lineHeight:C},n===bo?{letterSpacing:`${Tf(A/R)}em`}:{},S,m),p={h1:_(s,96,1.167,-1.5),h2:_(s,60,1.2,-.5),h3:_(i,48,1.167,0),h4:_(i,34,1.235,.25),h5:_(i,24,1.334,0),h6:_(l,20,1.6,.15),subtitle1:_(i,16,1.75,.15),subtitle2:_(l,14,1.57,.1),body1:_(i,16,1.5,.15),body2:_(i,14,1.43,.15),button:_(l,14,1.75,.4,yo),caption:_(i,12,1.66,.4),overline:_(i,12,2.66,1,yo),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return et(k({htmlFontSize:c,pxToRem:y,fontFamily:n,fontSize:a,fontWeightLight:s,fontWeightRegular:i,fontWeightMedium:l,fontWeightBold:u},p),d,{clone:!1})}const Ef=.2,Lf=.14,Nf=.12;function de(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${Ef})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${Lf})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${Nf})`].join(",")}const $f=["none",de(0,2,1,-1,0,1,1,0,0,1,3,0),de(0,3,1,-2,0,2,2,0,0,1,5,0),de(0,3,3,-2,0,3,4,0,0,1,8,0),de(0,2,4,-1,0,4,5,0,0,1,10,0),de(0,3,5,-1,0,5,8,0,0,1,14,0),de(0,3,5,-1,0,6,10,0,0,1,18,0),de(0,4,5,-2,0,7,10,1,0,2,16,1),de(0,5,5,-3,0,8,10,1,0,3,14,2),de(0,5,6,-3,0,9,12,1,0,3,16,2),de(0,6,6,-3,0,10,14,1,0,4,18,3),de(0,6,7,-4,0,11,15,1,0,4,20,3),de(0,7,8,-4,0,12,17,2,0,5,22,4),de(0,7,8,-4,0,13,19,2,0,5,24,4),de(0,7,9,-4,0,14,21,2,0,5,26,4),de(0,8,9,-5,0,15,22,2,0,6,28,5),de(0,8,10,-5,0,16,24,2,0,6,30,5),de(0,8,11,-5,0,17,26,2,0,6,32,5),de(0,9,11,-5,0,18,28,2,0,7,34,6),de(0,9,12,-6,0,19,29,2,0,7,36,6),de(0,10,13,-6,0,20,31,3,0,8,38,7),de(0,10,13,-6,0,21,33,3,0,8,40,7),de(0,10,14,-6,0,22,35,3,0,8,42,7),de(0,11,14,-7,0,23,36,3,0,9,44,8),de(0,11,15,-7,0,24,38,3,0,9,46,8)],Ff=["duration","easing","delay"],Df={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},Bf={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function xo(e){return`${Math.round(e)}ms`}function Uf(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function Jf(e){const t=k({},Df,e.easing),r=k({},Bf,e.duration);return k({getAutoHeightDuration:Uf,create:(a=["all"],s={})=>{const{duration:i=r.standard,easing:l=t.easeInOut,delay:u=0}=s,c=Be(s,Ff);if(process.env.NODE_ENV!=="production"){const m=d=>typeof d=="string",f=d=>!isNaN(parseFloat(d));!m(a)&&!Array.isArray(a)&&console.error('MUI: Argument "props" must be a string or Array.'),!f(i)&&!m(i)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${i}.`),m(l)||console.error('MUI: Argument "easing" must be a string.'),!f(u)&&!m(u)&&console.error('MUI: Argument "delay" must be a number or a string.'),typeof s!="object"&&console.error(["MUI: Secong argument of transition.create must be an object.","Arguments should be either `create('prop1', options)` or `create(['prop1', 'prop2'], options)`"].join(`
|
|
76
|
+
`)),Object.keys(c).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(c).join(",")}].`)}return(Array.isArray(a)?a:[a]).map(m=>`${m} ${typeof i=="string"?i:xo(i)} ${l} ${typeof u=="string"?u:xo(u)}`).join(",")}},e,{easing:t,duration:r})}const Vf={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},Gf=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function zf(e={},...t){const{mixins:r={},palette:n={},transitions:a={},typography:s={}}=e,i=Be(e,Gf);if(e.vars)throw new Error(process.env.NODE_ENV!=="production"?"MUI: `vars` is a private field used for CSS variables support.\nPlease use another name.":Gr(18));const l=kf(n),u=rn(e);let c=et(u,{mixins:uf(u.breakpoints,r),palette:l,shadows:$f.slice(),typography:Of(l,s),transitions:Jf(a),zIndex:k({},Vf)});if(c=et(c,i),c=t.reduce((m,f)=>et(m,f),c),process.env.NODE_ENV!=="production"){const m=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],f=(d,b)=>{let y;for(y in d){const _=d[y];if(m.indexOf(y)!==-1&&Object.keys(_).length>0){if(process.env.NODE_ENV!=="production"){const p=nn("",y);console.error([`MUI: The \`${b}\` component increases the CSS specificity of the \`${y}\` internal state.`,"You can not override it like this: ",JSON.stringify(d,null,2),"",`Instead, you need to use the '&.${p}' syntax:`,JSON.stringify({root:{[`&.${p}`]:_}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
|
|
77
|
+
`))}d[y]={}}}};Object.keys(c.components).forEach(d=>{const b=c.components[d].styleOverrides;b&&d.indexOf("Mui")===0&&f(b,d)})}return c.unstable_sxConfig=k({},en,i==null?void 0:i.unstable_sxConfig),c.unstable_sx=function(f){return tn({sx:f,theme:this})},c}const Kf=zf(),Wf="$$material";function Cs(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Hf=e=>Cs(e)&&e!=="classes",wt=Wd({themeId:Wf,defaultTheme:Kf,rootShouldForwardProp:Hf});process.env.NODE_ENV!=="production"&&(h.node,h.object.isRequired);function Ms(e){return kd(e)}const _r=Fd({createStyledComponent:wt("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>Ms({props:e,name:"MuiStack"})});process.env.NODE_ENV!=="production"&&(_r.propTypes={children:h.node,component:h.elementType,direction:h.oneOfType([h.oneOf(["column-reverse","column","row-reverse","row"]),h.arrayOf(h.oneOf(["column-reverse","column","row-reverse","row"])),h.object]),divider:h.node,spacing:h.oneOfType([h.arrayOf(h.oneOfType([h.number,h.string])),h.number,h.object,h.string]),sx:h.oneOfType([h.arrayOf(h.oneOfType([h.func,h.object,h.bool])),h.func,h.object]),useFlexGap:h.bool});const Xf={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console&&console[e]&&console[e].apply(console,t)}};class $n{constructor(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(t,r)}init(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=r.prefix||"i18next:",this.logger=t||Xf,this.options=r,this.debug=r.debug}log(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return this.forward(r,"log","",!0)}warn(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return this.forward(r,"warn","",!0)}error(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return this.forward(r,"error","")}deprecate(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return this.forward(r,"warn","WARNING DEPRECATED: ",!0)}forward(t,r,n,a){return a&&!this.debug?null:(typeof t[0]=="string"&&(t[0]=`${n}${this.prefix} ${t[0]}`),this.logger[r](t))}create(t){return new $n(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new $n(this.logger,t)}}var ft=new $n;class oa{constructor(){this.observers={}}on(t,r){return t.split(" ").forEach(n=>{this.observers[n]||(this.observers[n]=new Map);const a=this.observers[n].get(r)||0;this.observers[n].set(r,a+1)}),this}off(t,r){if(this.observers[t]){if(!r){delete this.observers[t];return}this.observers[t].delete(r)}}emit(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),a=1;a<r;a++)n[a-1]=arguments[a];this.observers[t]&&Array.from(this.observers[t].entries()).forEach(i=>{let[l,u]=i;for(let c=0;c<u;c++)l(...n)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(i=>{let[l,u]=i;for(let c=0;c<u;c++)l.apply(l,[t,...n])})}}const $r=()=>{let e,t;const r=new Promise((n,a)=>{e=n,t=a});return r.resolve=e,r.reject=t,r},vo=e=>e==null?"":""+e,qf=(e,t,r)=>{e.forEach(n=>{t[n]&&(r[n]=t[n])})},Yf=/###/g,jo=e=>e&&e.indexOf("###")>-1?e.replace(Yf,"."):e,So=e=>!e||typeof e=="string",Jr=(e,t,r)=>{const n=typeof t!="string"?t:t.split(".");let a=0;for(;a<n.length-1;){if(So(e))return{};const s=jo(n[a]);!e[s]&&r&&(e[s]=new r),Object.prototype.hasOwnProperty.call(e,s)?e=e[s]:e={},++a}return So(e)?{}:{obj:e,k:jo(n[a])}},Ro=(e,t,r)=>{const{obj:n,k:a}=Jr(e,t,Object);if(n!==void 0||t.length===1){n[a]=r;return}let s=t[t.length-1],i=t.slice(0,t.length-1),l=Jr(e,i,Object);for(;l.obj===void 0&&i.length;)s=`${i[i.length-1]}.${s}`,i=i.slice(0,i.length-1),l=Jr(e,i,Object),l&&l.obj&&typeof l.obj[`${l.k}.${s}`]<"u"&&(l.obj=void 0);l.obj[`${l.k}.${s}`]=r},Zf=(e,t,r,n)=>{const{obj:a,k:s}=Jr(e,t,Object);a[s]=a[s]||[],a[s].push(r)},Fn=(e,t)=>{const{obj:r,k:n}=Jr(e,t);if(r)return r[n]},Qf=(e,t,r)=>{const n=Fn(e,r);return n!==void 0?n:Fn(t,r)},cl=(e,t,r)=>{for(const n in t)n!=="__proto__"&&n!=="constructor"&&(n in e?typeof e[n]=="string"||e[n]instanceof String||typeof t[n]=="string"||t[n]instanceof String?r&&(e[n]=t[n]):cl(e[n],t[n],r):e[n]=t[n]);return e},cr=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var e0={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};const t0=e=>typeof e=="string"?e.replace(/[&<>"'\/]/g,t=>e0[t]):e;class r0{constructor(t){this.capacity=t,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(t){const r=this.regExpMap.get(t);if(r!==void 0)return r;const n=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,n),this.regExpQueue.push(t),n}}const n0=[" ",",","?","!",";"],a0=new r0(20),s0=(e,t,r)=>{t=t||"",r=r||"";const n=n0.filter(i=>t.indexOf(i)<0&&r.indexOf(i)<0);if(n.length===0)return!0;const a=a0.getRegExp(`(${n.map(i=>i==="?"?"\\?":i).join("|")})`);let s=!a.test(e);if(!s){const i=e.indexOf(r);i>0&&!a.test(e.substring(0,i))&&(s=!0)}return s},Qa=function(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!e)return;if(e[t])return e[t];const n=t.split(r);let a=e;for(let s=0;s<n.length;){if(!a||typeof a!="object")return;let i,l="";for(let u=s;u<n.length;++u)if(u!==s&&(l+=r),l+=n[u],i=a[l],i!==void 0){if(["string","number","boolean"].indexOf(typeof i)>-1&&u<n.length-1)continue;s+=u-s+1;break}a=i}return a},Dn=e=>e&&e.indexOf("_")>0?e.replace("_","-"):e;class wo extends oa{constructor(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=t||{},this.options=r,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){const r=this.options.ns.indexOf(t);r>-1&&this.options.ns.splice(r,1)}getResource(t,r,n){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const s=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator,i=a.ignoreJSONStructure!==void 0?a.ignoreJSONStructure:this.options.ignoreJSONStructure;let l;t.indexOf(".")>-1?l=t.split("."):(l=[t,r],n&&(Array.isArray(n)?l.push(...n):typeof n=="string"&&s?l.push(...n.split(s)):l.push(n)));const u=Fn(this.data,l);return!u&&!r&&!n&&t.indexOf(".")>-1&&(t=l[0],r=l[1],n=l.slice(2).join(".")),u||!i||typeof n!="string"?u:Qa(this.data&&this.data[t]&&this.data[t][r],n,s)}addResource(t,r,n,a){let s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const i=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator;let l=[t,r];n&&(l=l.concat(i?n.split(i):n)),t.indexOf(".")>-1&&(l=t.split("."),a=r,r=l[1]),this.addNamespaces(r),Ro(this.data,l,a),s.silent||this.emit("added",t,r,n,a)}addResources(t,r,n){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const s in n)(typeof n[s]=="string"||Array.isArray(n[s]))&&this.addResource(t,r,s,n[s],{silent:!0});a.silent||this.emit("added",t,r,n)}addResourceBundle(t,r,n,a,s){let i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},l=[t,r];t.indexOf(".")>-1&&(l=t.split("."),a=n,n=r,r=l[1]),this.addNamespaces(r);let u=Fn(this.data,l)||{};i.skipCopy||(n=JSON.parse(JSON.stringify(n))),a?cl(u,n,s):u={...u,...n},Ro(this.data,l,u),i.silent||this.emit("added",t,r,n)}removeResourceBundle(t,r){this.hasResourceBundle(t,r)&&delete this.data[t][r],this.removeNamespaces(r),this.emit("removed",t,r)}hasResourceBundle(t,r){return this.getResource(t,r)!==void 0}getResourceBundle(t,r){return r||(r=this.options.defaultNS),this.options.compatibilityAPI==="v1"?{...this.getResource(t,r)}:this.getResource(t,r)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){const r=this.getDataByLanguage(t);return!!(r&&Object.keys(r)||[]).find(a=>r[a]&&Object.keys(r[a]).length>0)}toJSON(){return this.data}}var ml={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,r,n,a){return e.forEach(s=>{this.processors[s]&&(t=this.processors[s].process(t,r,n,a))}),t}};const Ao={};class Bn extends oa{constructor(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),qf(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=r,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=ft.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(t==null)return!1;const n=this.resolve(t,r);return n&&n.res!==void 0}extractFromKey(t,r){let n=r.nsSeparator!==void 0?r.nsSeparator:this.options.nsSeparator;n===void 0&&(n=":");const a=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator;let s=r.ns||this.options.defaultNS||[];const i=n&&t.indexOf(n)>-1,l=!this.options.userDefinedKeySeparator&&!r.keySeparator&&!this.options.userDefinedNsSeparator&&!r.nsSeparator&&!s0(t,n,a);if(i&&!l){const u=t.match(this.interpolator.nestingRegexp);if(u&&u.length>0)return{key:t,namespaces:s};const c=t.split(n);(n!==a||n===a&&this.options.ns.indexOf(c[0])>-1)&&(s=c.shift()),t=c.join(a)}return typeof s=="string"&&(s=[s]),{key:t,namespaces:s}}translate(t,r,n){if(typeof r!="object"&&this.options.overloadTranslationOptionHandler&&(r=this.options.overloadTranslationOptionHandler(arguments)),typeof r=="object"&&(r={...r}),r||(r={}),t==null)return"";Array.isArray(t)||(t=[String(t)]);const a=r.returnDetails!==void 0?r.returnDetails:this.options.returnDetails,s=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator,{key:i,namespaces:l}=this.extractFromKey(t[t.length-1],r),u=l[l.length-1],c=r.lng||this.language,m=r.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(c&&c.toLowerCase()==="cimode"){if(m){const A=r.nsSeparator||this.options.nsSeparator;return a?{res:`${u}${A}${i}`,usedKey:i,exactUsedKey:i,usedLng:c,usedNS:u,usedParams:this.getUsedParamsDetails(r)}:`${u}${A}${i}`}return a?{res:i,usedKey:i,exactUsedKey:i,usedLng:c,usedNS:u,usedParams:this.getUsedParamsDetails(r)}:i}const f=this.resolve(t,r);let d=f&&f.res;const b=f&&f.usedKey||i,y=f&&f.exactUsedKey||i,_=Object.prototype.toString.apply(d),p=["[object Number]","[object Function]","[object RegExp]"],j=r.joinArrays!==void 0?r.joinArrays:this.options.joinArrays,R=!this.i18nFormat||this.i18nFormat.handleAsObject;if(R&&d&&(typeof d!="string"&&typeof d!="boolean"&&typeof d!="number")&&p.indexOf(_)<0&&!(typeof j=="string"&&Array.isArray(d))){if(!r.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const A=this.options.returnedObjectHandler?this.options.returnedObjectHandler(b,d,{...r,ns:l}):`key '${i} (${this.language})' returned an object instead of string.`;return a?(f.res=A,f.usedParams=this.getUsedParamsDetails(r),f):A}if(s){const A=Array.isArray(d),S=A?[]:{},P=A?y:b;for(const M in d)if(Object.prototype.hasOwnProperty.call(d,M)){const K=`${P}${s}${M}`;S[M]=this.translate(K,{...r,joinArrays:!1,ns:l}),S[M]===K&&(S[M]=d[M])}d=S}}else if(R&&typeof j=="string"&&Array.isArray(d))d=d.join(j),d&&(d=this.extendTranslation(d,t,r,n));else{let A=!1,S=!1;const P=r.count!==void 0&&typeof r.count!="string",M=Bn.hasDefaultValue(r),K=P?this.pluralResolver.getSuffix(c,r.count,r):"",le=r.ordinal&&P?this.pluralResolver.getSuffix(c,r.count,{ordinal:!1}):"",ce=P&&!r.ordinal&&r.count===0&&this.pluralResolver.shouldUseIntlApi(),D=ce&&r[`defaultValue${this.options.pluralSeparator}zero`]||r[`defaultValue${K}`]||r[`defaultValue${le}`]||r.defaultValue;!this.isValidLookup(d)&&M&&(A=!0,d=D),this.isValidLookup(d)||(S=!0,d=i);const G=(r.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&S?void 0:d,Z=M&&D!==d&&this.options.updateMissing;if(S||A||Z){if(this.logger.log(Z?"updateKey":"missingKey",c,u,i,Z?D:d),s){const ee=this.resolve(i,{...r,keySeparator:!1});ee&&ee.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let X=[];const je=this.languageUtils.getFallbackCodes(this.options.fallbackLng,r.lng||this.language);if(this.options.saveMissingTo==="fallback"&&je&&je[0])for(let ee=0;ee<je.length;ee++)X.push(je[ee]);else this.options.saveMissingTo==="all"?X=this.languageUtils.toResolveHierarchy(r.lng||this.language):X.push(r.lng||this.language);const ue=(ee,we,Oe)=>{const nt=M&&Oe!==d?Oe:G;this.options.missingKeyHandler?this.options.missingKeyHandler(ee,u,we,nt,Z,r):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(ee,u,we,nt,Z,r),this.emit("missingKey",ee,u,we,d)};this.options.saveMissing&&(this.options.saveMissingPlurals&&P?X.forEach(ee=>{const we=this.pluralResolver.getSuffixes(ee,r);ce&&r[`defaultValue${this.options.pluralSeparator}zero`]&&we.indexOf(`${this.options.pluralSeparator}zero`)<0&&we.push(`${this.options.pluralSeparator}zero`),we.forEach(Oe=>{ue([ee],i+Oe,r[`defaultValue${Oe}`]||D)})}):ue(X,i,D))}d=this.extendTranslation(d,t,r,f,n),S&&d===i&&this.options.appendNamespaceToMissingKey&&(d=`${u}:${i}`),(S||A)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?d=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${u}:${i}`:i,A?d:void 0):d=this.options.parseMissingKeyHandler(d))}return a?(f.res=d,f.usedParams=this.getUsedParamsDetails(r),f):d}extendTranslation(t,r,n,a,s){var i=this;if(this.i18nFormat&&this.i18nFormat.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...n},n.lng||this.language||a.usedLng,a.usedNS,a.usedKey,{resolved:a});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init({...n,interpolation:{...this.options.interpolation,...n.interpolation}});const c=typeof t=="string"&&(n&&n.interpolation&&n.interpolation.skipOnVariables!==void 0?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let m;if(c){const d=t.match(this.interpolator.nestingRegexp);m=d&&d.length}let f=n.replace&&typeof n.replace!="string"?n.replace:n;if(this.options.interpolation.defaultVariables&&(f={...this.options.interpolation.defaultVariables,...f}),t=this.interpolator.interpolate(t,f,n.lng||this.language||a.usedLng,n),c){const d=t.match(this.interpolator.nestingRegexp),b=d&&d.length;m<b&&(n.nest=!1)}!n.lng&&this.options.compatibilityAPI!=="v1"&&a&&a.res&&(n.lng=this.language||a.usedLng),n.nest!==!1&&(t=this.interpolator.nest(t,function(){for(var d=arguments.length,b=new Array(d),y=0;y<d;y++)b[y]=arguments[y];return s&&s[0]===b[0]&&!n.context?(i.logger.warn(`It seems you are nesting recursively key: ${b[0]} in key: ${r[0]}`),null):i.translate(...b,r)},n)),n.interpolation&&this.interpolator.reset()}const l=n.postProcess||this.options.postProcess,u=typeof l=="string"?[l]:l;return t!=null&&u&&u.length&&n.applyPostProcessor!==!1&&(t=ml.handle(u,t,r,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...a,usedParams:this.getUsedParamsDetails(n)},...n}:n,this)),t}resolve(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n,a,s,i,l;return typeof t=="string"&&(t=[t]),t.forEach(u=>{if(this.isValidLookup(n))return;const c=this.extractFromKey(u,r),m=c.key;a=m;let f=c.namespaces;this.options.fallbackNS&&(f=f.concat(this.options.fallbackNS));const d=r.count!==void 0&&typeof r.count!="string",b=d&&!r.ordinal&&r.count===0&&this.pluralResolver.shouldUseIntlApi(),y=r.context!==void 0&&(typeof r.context=="string"||typeof r.context=="number")&&r.context!=="",_=r.lngs?r.lngs:this.languageUtils.toResolveHierarchy(r.lng||this.language,r.fallbackLng);f.forEach(p=>{this.isValidLookup(n)||(l=p,!Ao[`${_[0]}-${p}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(l)&&(Ao[`${_[0]}-${p}`]=!0,this.logger.warn(`key "${a}" for languages "${_.join(", ")}" won't get resolved as namespace "${l}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),_.forEach(j=>{if(this.isValidLookup(n))return;i=j;const R=[m];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(R,m,j,p,r);else{let A;d&&(A=this.pluralResolver.getSuffix(j,r.count,r));const S=`${this.options.pluralSeparator}zero`,P=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(d&&(R.push(m+A),r.ordinal&&A.indexOf(P)===0&&R.push(m+A.replace(P,this.options.pluralSeparator)),b&&R.push(m+S)),y){const M=`${m}${this.options.contextSeparator}${r.context}`;R.push(M),d&&(R.push(M+A),r.ordinal&&A.indexOf(P)===0&&R.push(M+A.replace(P,this.options.pluralSeparator)),b&&R.push(M+S))}}let C;for(;C=R.pop();)this.isValidLookup(n)||(s=C,n=this.getResource(j,p,C,r))}))})}),{res:n,usedKey:a,exactUsedKey:s,usedLng:i,usedNS:l}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,r,n){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(t,r,n,a):this.resourceStore.getResource(t,r,n,a)}getUsedParamsDetails(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const r=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],n=t.replace&&typeof t.replace!="string";let a=n?t.replace:t;if(n&&typeof t.count<"u"&&(a.count=t.count),this.options.interpolation.defaultVariables&&(a={...this.options.interpolation.defaultVariables,...a}),!n){a={...a};for(const s of r)delete a[s]}return a}static hasDefaultValue(t){const r="defaultValue";for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&r===n.substring(0,r.length)&&t[n]!==void 0)return!0;return!1}}const Ta=e=>e.charAt(0).toUpperCase()+e.slice(1);class Po{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=ft.create("languageUtils")}getScriptPartFromCode(t){if(t=Dn(t),!t||t.indexOf("-")<0)return null;const r=t.split("-");return r.length===2||(r.pop(),r[r.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(r.join("-"))}getLanguagePartFromCode(t){if(t=Dn(t),!t||t.indexOf("-")<0)return t;const r=t.split("-");return this.formatLanguageCode(r[0])}formatLanguageCode(t){if(typeof t=="string"&&t.indexOf("-")>-1){const r=["hans","hant","latn","cyrl","cans","mong","arab"];let n=t.split("-");return this.options.lowerCaseLng?n=n.map(a=>a.toLowerCase()):n.length===2?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),r.indexOf(n[1].toLowerCase())>-1&&(n[1]=Ta(n[1].toLowerCase()))):n.length===3&&(n[0]=n[0].toLowerCase(),n[1].length===2&&(n[1]=n[1].toUpperCase()),n[0]!=="sgn"&&n[2].length===2&&(n[2]=n[2].toUpperCase()),r.indexOf(n[1].toLowerCase())>-1&&(n[1]=Ta(n[1].toLowerCase())),r.indexOf(n[2].toLowerCase())>-1&&(n[2]=Ta(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let r;return t.forEach(n=>{if(r)return;const a=this.formatLanguageCode(n);(!this.options.supportedLngs||this.isSupportedCode(a))&&(r=a)}),!r&&this.options.supportedLngs&&t.forEach(n=>{if(r)return;const a=this.getLanguagePartFromCode(n);if(this.isSupportedCode(a))return r=a;r=this.options.supportedLngs.find(s=>{if(s===a)return s;if(!(s.indexOf("-")<0&&a.indexOf("-")<0)&&(s.indexOf("-")>0&&a.indexOf("-")<0&&s.substring(0,s.indexOf("-"))===a||s.indexOf(a)===0&&a.length>1))return s})}),r||(r=this.getFallbackCodes(this.options.fallbackLng)[0]),r}getFallbackCodes(t,r){if(!t)return[];if(typeof t=="function"&&(t=t(r)),typeof t=="string"&&(t=[t]),Array.isArray(t))return t;if(!r)return t.default||[];let n=t[r];return n||(n=t[this.getScriptPartFromCode(r)]),n||(n=t[this.formatLanguageCode(r)]),n||(n=t[this.getLanguagePartFromCode(r)]),n||(n=t.default),n||[]}toResolveHierarchy(t,r){const n=this.getFallbackCodes(r||this.options.fallbackLng||[],t),a=[],s=i=>{i&&(this.isSupportedCode(i)?a.push(i):this.logger.warn(`rejecting language code not found in supportedLngs: ${i}`))};return typeof t=="string"&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&s(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&s(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&s(this.getLanguagePartFromCode(t))):typeof t=="string"&&s(this.formatLanguageCode(t)),n.forEach(i=>{a.indexOf(i)<0&&s(this.formatLanguageCode(i))}),a}}let o0=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],i0={1:e=>+(e>1),2:e=>+(e!=1),3:e=>0,4:e=>e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2,5:e=>e==0?0:e==1?1:e==2?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5,6:e=>e==1?0:e>=2&&e<=4?1:2,7:e=>e==1?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2,8:e=>e==1?0:e==2?1:e!=8&&e!=11?2:3,9:e=>+(e>=2),10:e=>e==1?0:e==2?1:e<7?2:e<11?3:4,11:e=>e==1||e==11?0:e==2||e==12?1:e>2&&e<20?2:3,12:e=>+(e%10!=1||e%100==11),13:e=>+(e!==0),14:e=>e==1?0:e==2?1:e==3?2:3,15:e=>e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2,16:e=>e%10==1&&e%100!=11?0:e!==0?1:2,17:e=>e==1||e%10==1&&e%100!=11?0:1,18:e=>e==0?0:e==1?1:2,19:e=>e==1?0:e==0||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3,20:e=>e==1?0:e==0||e%100>0&&e%100<20?1:2,21:e=>e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0,22:e=>e==1?0:e==2?1:(e<0||e>10)&&e%10==0?2:3};const l0=["v1","v2","v3"],u0=["v4"],Co={zero:0,one:1,two:2,few:3,many:4,other:5},c0=()=>{const e={};return o0.forEach(t=>{t.lngs.forEach(r=>{e[r]={numbers:t.nr,plurals:i0[t.fc]}})}),e};class m0{constructor(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=t,this.options=r,this.logger=ft.create("pluralResolver"),(!this.options.compatibilityJSON||u0.includes(this.options.compatibilityJSON))&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=c0()}addRule(t,r){this.rules[t]=r}getRule(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(Dn(t==="dev"?"en":t),{type:r.ordinal?"ordinal":"cardinal"})}catch{return}return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}needsPlural(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const n=this.getRule(t,r);return this.shouldUseIntlApi()?n&&n.resolvedOptions().pluralCategories.length>1:n&&n.numbers.length>1}getPluralFormsOfKey(t,r){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(t,n).map(a=>`${r}${a}`)}getSuffixes(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const n=this.getRule(t,r);return n?this.shouldUseIntlApi()?n.resolvedOptions().pluralCategories.sort((a,s)=>Co[a]-Co[s]).map(a=>`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${a}`):n.numbers.map(a=>this.getSuffix(t,a,r)):[]}getSuffix(t,r){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const a=this.getRule(t,n);return a?this.shouldUseIntlApi()?`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${a.select(r)}`:this.getSuffixRetroCompatible(a,r):(this.logger.warn(`no plural rule found for: ${t}`),"")}getSuffixRetroCompatible(t,r){const n=t.noAbs?t.plurals(r):t.plurals(Math.abs(r));let a=t.numbers[n];this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1&&(a===2?a="plural":a===1&&(a=""));const s=()=>this.options.prepend&&a.toString()?this.options.prepend+a.toString():a.toString();return this.options.compatibilityJSON==="v1"?a===1?"":typeof a=="number"?`_plural_${a.toString()}`:s():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1?s():this.options.prepend&&n.toString()?this.options.prepend+n.toString():n.toString()}shouldUseIntlApi(){return!l0.includes(this.options.compatibilityJSON)}}const Mo=function(e,t,r){let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,s=Qf(e,t,r);return!s&&a&&typeof r=="string"&&(s=Qa(e,r,n),s===void 0&&(s=Qa(t,r,n))),s},Oa=e=>e.replace(/\$/g,"$$$$");class d0{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=ft.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||(r=>r),this.init(t)}init(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});const{escape:r,escapeValue:n,useRawValueToEscape:a,prefix:s,prefixEscaped:i,suffix:l,suffixEscaped:u,formatSeparator:c,unescapeSuffix:m,unescapePrefix:f,nestingPrefix:d,nestingPrefixEscaped:b,nestingSuffix:y,nestingSuffixEscaped:_,nestingOptionsSeparator:p,maxReplaces:j,alwaysFormat:R}=t.interpolation;this.escape=r!==void 0?r:t0,this.escapeValue=n!==void 0?n:!0,this.useRawValueToEscape=a!==void 0?a:!1,this.prefix=s?cr(s):i||"{{",this.suffix=l?cr(l):u||"}}",this.formatSeparator=c||",",this.unescapePrefix=m?"":f||"-",this.unescapeSuffix=this.unescapePrefix?"":m||"",this.nestingPrefix=d?cr(d):b||cr("$t("),this.nestingSuffix=y?cr(y):_||cr(")"),this.nestingOptionsSeparator=p||",",this.maxReplaces=j||1e3,this.alwaysFormat=R!==void 0?R:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=(r,n)=>r&&r.source===n?(r.lastIndex=0,r):new RegExp(n,"g");this.regexp=t(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=t(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=t(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(t,r,n,a){let s,i,l;const u=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},c=b=>{if(b.indexOf(this.formatSeparator)<0){const j=Mo(r,u,b,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(j,void 0,n,{...a,...r,interpolationkey:b}):j}const y=b.split(this.formatSeparator),_=y.shift().trim(),p=y.join(this.formatSeparator).trim();return this.format(Mo(r,u,_,this.options.keySeparator,this.options.ignoreJSONStructure),p,n,{...a,...r,interpolationkey:_})};this.resetRegExp();const m=a&&a.missingInterpolationHandler||this.options.missingInterpolationHandler,f=a&&a.interpolation&&a.interpolation.skipOnVariables!==void 0?a.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:b=>Oa(b)},{regex:this.regexp,safeValue:b=>this.escapeValue?Oa(this.escape(b)):Oa(b)}].forEach(b=>{for(l=0;s=b.regex.exec(t);){const y=s[1].trim();if(i=c(y),i===void 0)if(typeof m=="function"){const p=m(t,s,a);i=typeof p=="string"?p:""}else if(a&&Object.prototype.hasOwnProperty.call(a,y))i="";else if(f){i=s[0];continue}else this.logger.warn(`missed to pass in variable ${y} for interpolating ${t}`),i="";else typeof i!="string"&&!this.useRawValueToEscape&&(i=vo(i));const _=b.safeValue(i);if(t=t.replace(s[0],_),f?(b.regex.lastIndex+=i.length,b.regex.lastIndex-=s[0].length):b.regex.lastIndex=0,l++,l>=this.maxReplaces)break}}),t}nest(t,r){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a,s,i;const l=(u,c)=>{const m=this.nestingOptionsSeparator;if(u.indexOf(m)<0)return u;const f=u.split(new RegExp(`${m}[ ]*{`));let d=`{${f[1]}`;u=f[0],d=this.interpolate(d,i);const b=d.match(/'/g),y=d.match(/"/g);(b&&b.length%2===0&&!y||y.length%2!==0)&&(d=d.replace(/'/g,'"'));try{i=JSON.parse(d),c&&(i={...c,...i})}catch(_){return this.logger.warn(`failed parsing options string in nesting for key ${u}`,_),`${u}${m}${d}`}return i.defaultValue&&i.defaultValue.indexOf(this.prefix)>-1&&delete i.defaultValue,u};for(;a=this.nestingRegexp.exec(t);){let u=[];i={...n},i=i.replace&&typeof i.replace!="string"?i.replace:i,i.applyPostProcessor=!1,delete i.defaultValue;let c=!1;if(a[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(a[1])){const m=a[1].split(this.formatSeparator).map(f=>f.trim());a[1]=m.shift(),u=m,c=!0}if(s=r(l.call(this,a[1].trim(),i),i),s&&a[0]===t&&typeof s!="string")return s;typeof s!="string"&&(s=vo(s)),s||(this.logger.warn(`missed to resolve ${a[1]} for nesting ${t}`),s=""),c&&(s=u.reduce((m,f)=>this.format(m,f,n.lng,{...n,interpolationkey:a[1].trim()}),s.trim())),t=t.replace(a[0],s),this.regexp.lastIndex=0}return t}}const f0=e=>{let t=e.toLowerCase().trim();const r={};if(e.indexOf("(")>-1){const n=e.split("(");t=n[0].toLowerCase().trim();const a=n[1].substring(0,n[1].length-1);t==="currency"&&a.indexOf(":")<0?r.currency||(r.currency=a.trim()):t==="relativetime"&&a.indexOf(":")<0?r.range||(r.range=a.trim()):a.split(";").forEach(i=>{if(i){const[l,...u]=i.split(":"),c=u.join(":").trim().replace(/^'+|'+$/g,""),m=l.trim();r[m]||(r[m]=c),c==="false"&&(r[m]=!1),c==="true"&&(r[m]=!0),isNaN(c)||(r[m]=parseInt(c,10))}})}return{formatName:t,formatOptions:r}},mr=e=>{const t={};return(r,n,a)=>{let s=a;a&&a.interpolationkey&&a.formatParams&&a.formatParams[a.interpolationkey]&&a[a.interpolationkey]&&(s={formatParams:{[a.interpolationkey]:a.formatParams[a.interpolationkey]},interpolationKey:a.interpolationkey});const i=n+JSON.stringify(s);let l=t[i];return l||(l=e(Dn(n),a),t[i]=l),l(r)}};class h0{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=ft.create("formatter"),this.options=t,this.formats={number:mr((r,n)=>{const a=new Intl.NumberFormat(r,{...n});return s=>a.format(s)}),currency:mr((r,n)=>{const a=new Intl.NumberFormat(r,{...n,style:"currency"});return s=>a.format(s)}),datetime:mr((r,n)=>{const a=new Intl.DateTimeFormat(r,{...n});return s=>a.format(s)}),relativetime:mr((r,n)=>{const a=new Intl.RelativeTimeFormat(r,{...n});return s=>a.format(s,n.range||"day")}),list:mr((r,n)=>{const a=new Intl.ListFormat(r,{...n});return s=>a.format(s)})},this.init(t)}init(t){const n=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}}).interpolation;this.formatSeparator=n.formatSeparator?n.formatSeparator:n.formatSeparator||","}add(t,r){this.formats[t.toLowerCase().trim()]=r}addCached(t,r){this.formats[t.toLowerCase().trim()]=mr(r)}format(t,r,n){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const s=r.split(this.formatSeparator);if(s.length>1&&s[0].indexOf("(")>1&&s[0].indexOf(")")<0&&s.find(l=>l.indexOf(")")>-1)){const l=s.findIndex(u=>u.indexOf(")")>-1);s[0]=[s[0],...s.splice(1,l)].join(this.formatSeparator)}return s.reduce((l,u)=>{const{formatName:c,formatOptions:m}=f0(u);if(this.formats[c]){let f=l;try{const d=a&&a.formatParams&&a.formatParams[a.interpolationkey]||{},b=d.locale||d.lng||a.locale||a.lng||n;f=this.formats[c](l,b,{...m,...a,...d})}catch(d){this.logger.warn(d)}return f}else this.logger.warn(`there was no format function for ${c}`);return l},t)}}const g0=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)};class p0 extends oa{constructor(t,r,n){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=t,this.store=r,this.services=n,this.languageUtils=n.languageUtils,this.options=a,this.logger=ft.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=a.maxParallelReads||10,this.readingCalls=0,this.maxRetries=a.maxRetries>=0?a.maxRetries:5,this.retryTimeout=a.retryTimeout>=1?a.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(n,a.backend,a)}queueLoad(t,r,n,a){const s={},i={},l={},u={};return t.forEach(c=>{let m=!0;r.forEach(f=>{const d=`${c}|${f}`;!n.reload&&this.store.hasResourceBundle(c,f)?this.state[d]=2:this.state[d]<0||(this.state[d]===1?i[d]===void 0&&(i[d]=!0):(this.state[d]=1,m=!1,i[d]===void 0&&(i[d]=!0),s[d]===void 0&&(s[d]=!0),u[f]===void 0&&(u[f]=!0)))}),m||(l[c]=!0)}),(Object.keys(s).length||Object.keys(i).length)&&this.queue.push({pending:i,pendingCount:Object.keys(i).length,loaded:{},errors:[],callback:a}),{toLoad:Object.keys(s),pending:Object.keys(i),toLoadLanguages:Object.keys(l),toLoadNamespaces:Object.keys(u)}}loaded(t,r,n){const a=t.split("|"),s=a[0],i=a[1];r&&this.emit("failedLoading",s,i,r),n&&this.store.addResourceBundle(s,i,n,void 0,void 0,{skipCopy:!0}),this.state[t]=r?-1:2;const l={};this.queue.forEach(u=>{Zf(u.loaded,[s],i),g0(u,t),r&&u.errors.push(r),u.pendingCount===0&&!u.done&&(Object.keys(u.loaded).forEach(c=>{l[c]||(l[c]={});const m=u.loaded[c];m.length&&m.forEach(f=>{l[c][f]===void 0&&(l[c][f]=!0)})}),u.done=!0,u.errors.length?u.callback(u.errors):u.callback())}),this.emit("loaded",l),this.queue=this.queue.filter(u=>!u.done)}read(t,r,n){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,i=arguments.length>5?arguments[5]:void 0;if(!t.length)return i(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:r,fcName:n,tried:a,wait:s,callback:i});return}this.readingCalls++;const l=(c,m)=>{if(this.readingCalls--,this.waitingReads.length>0){const f=this.waitingReads.shift();this.read(f.lng,f.ns,f.fcName,f.tried,f.wait,f.callback)}if(c&&m&&a<this.maxRetries){setTimeout(()=>{this.read.call(this,t,r,n,a+1,s*2,i)},s);return}i(c,m)},u=this.backend[n].bind(this.backend);if(u.length===2){try{const c=u(t,r);c&&typeof c.then=="function"?c.then(m=>l(null,m)).catch(l):l(null,c)}catch(c){l(c)}return}return u(t,r,l)}prepareLoading(t,r){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),a&&a();typeof t=="string"&&(t=this.languageUtils.toResolveHierarchy(t)),typeof r=="string"&&(r=[r]);const s=this.queueLoad(t,r,n,a);if(!s.toLoad.length)return s.pending.length||a(),null;s.toLoad.forEach(i=>{this.loadOne(i)})}load(t,r,n){this.prepareLoading(t,r,{},n)}reload(t,r,n){this.prepareLoading(t,r,{reload:!0},n)}loadOne(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const n=t.split("|"),a=n[0],s=n[1];this.read(a,s,"read",void 0,void 0,(i,l)=>{i&&this.logger.warn(`${r}loading namespace ${s} for language ${a} failed`,i),!i&&l&&this.logger.log(`${r}loaded namespace ${s} for language ${a}`,l),this.loaded(t,i,l)})}saveMissing(t,r,n,a,s){let i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},l=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(r)){this.logger.warn(`did not save key "${n}" as the namespace "${r}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(n==null||n==="")){if(this.backend&&this.backend.create){const u={...i,isUpdate:s},c=this.backend.create.bind(this.backend);if(c.length<6)try{let m;c.length===5?m=c(t,r,n,a,u):m=c(t,r,n,a),m&&typeof m.then=="function"?m.then(f=>l(null,f)).catch(l):l(null,m)}catch(m){l(m)}else c(t,r,n,a,l,u)}!t||!t[0]||this.store.addResource(t[0],r,n,a)}}}const ko=()=>({debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if(typeof e[1]=="object"&&(t=e[1]),typeof e[1]=="string"&&(t.defaultValue=e[1]),typeof e[2]=="string"&&(t.tDescription=e[2]),typeof e[2]=="object"||typeof e[3]=="object"){const r=e[3]||e[2];Object.keys(r).forEach(n=>{t[n]=r[n]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),Io=e=>(typeof e.ns=="string"&&(e.ns=[e.ns]),typeof e.fallbackLng=="string"&&(e.fallbackLng=[e.fallbackLng]),typeof e.fallbackNS=="string"&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e),gn=()=>{},_0=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(r=>{typeof e[r]=="function"&&(e[r]=e[r].bind(e))})};class Hr extends oa{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;if(super(),this.options=Io(t),this.services={},this.logger=ft,this.modules={external:[]},_0(this),r&&!this.isInitialized&&!t.isClone){if(!this.options.initImmediate)return this.init(t,r),this;setTimeout(()=>{this.init(t,r)},0)}}init(){var t=this;let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof r=="function"&&(n=r,r={}),!r.defaultNS&&r.defaultNS!==!1&&r.ns&&(typeof r.ns=="string"?r.defaultNS=r.ns:r.ns.indexOf("translation")<0&&(r.defaultNS=r.ns[0]));const a=ko();this.options={...a,...this.options,...Io(r)},this.options.compatibilityAPI!=="v1"&&(this.options.interpolation={...a.interpolation,...this.options.interpolation}),r.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=r.keySeparator),r.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=r.nsSeparator);const s=m=>m?typeof m=="function"?new m:m:null;if(!this.options.isClone){this.modules.logger?ft.init(s(this.modules.logger),this.options):ft.init(null,this.options);let m;this.modules.formatter?m=this.modules.formatter:typeof Intl<"u"&&(m=h0);const f=new Po(this.options);this.store=new wo(this.options.resources,this.options);const d=this.services;d.logger=ft,d.resourceStore=this.store,d.languageUtils=f,d.pluralResolver=new m0(f,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),m&&(!this.options.interpolation.format||this.options.interpolation.format===a.interpolation.format)&&(d.formatter=s(m),d.formatter.init(d,this.options),this.options.interpolation.format=d.formatter.format.bind(d.formatter)),d.interpolator=new d0(this.options),d.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},d.backendConnector=new p0(s(this.modules.backend),d.resourceStore,d,this.options),d.backendConnector.on("*",function(b){for(var y=arguments.length,_=new Array(y>1?y-1:0),p=1;p<y;p++)_[p-1]=arguments[p];t.emit(b,..._)}),this.modules.languageDetector&&(d.languageDetector=s(this.modules.languageDetector),d.languageDetector.init&&d.languageDetector.init(d,this.options.detection,this.options)),this.modules.i18nFormat&&(d.i18nFormat=s(this.modules.i18nFormat),d.i18nFormat.init&&d.i18nFormat.init(this)),this.translator=new Bn(this.services,this.options),this.translator.on("*",function(b){for(var y=arguments.length,_=new Array(y>1?y-1:0),p=1;p<y;p++)_[p-1]=arguments[p];t.emit(b,..._)}),this.modules.external.forEach(b=>{b.init&&b.init(this)})}if(this.format=this.options.interpolation.format,n||(n=gn),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const m=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);m.length>0&&m[0]!=="dev"&&(this.options.lng=m[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(m=>{this[m]=function(){return t.store[m](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(m=>{this[m]=function(){return t.store[m](...arguments),t}});const u=$r(),c=()=>{const m=(f,d)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),u.resolve(d),n(f,d)};if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return m(null,this.t.bind(this));this.changeLanguage(this.options.lng,m)};return this.options.resources||!this.options.initImmediate?c():setTimeout(c,0),u}loadResources(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:gn;const a=typeof t=="string"?t:this.language;if(typeof t=="function"&&(n=t),!this.options.resources||this.options.partialBundledLanguages){if(a&&a.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return n();const s=[],i=l=>{if(!l||l==="cimode")return;this.services.languageUtils.toResolveHierarchy(l).forEach(c=>{c!=="cimode"&&s.indexOf(c)<0&&s.push(c)})};a?i(a):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(u=>i(u)),this.options.preload&&this.options.preload.forEach(l=>i(l)),this.services.backendConnector.load(s,this.options.ns,l=>{!l&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),n(l)})}else n(null)}reloadResources(t,r,n){const a=$r();return t||(t=this.languages),r||(r=this.options.ns),n||(n=gn),this.services.backendConnector.reload(t,r,s=>{a.resolve(),n(s)}),a}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return t.type==="backend"&&(this.modules.backend=t),(t.type==="logger"||t.log&&t.warn&&t.error)&&(this.modules.logger=t),t.type==="languageDetector"&&(this.modules.languageDetector=t),t.type==="i18nFormat"&&(this.modules.i18nFormat=t),t.type==="postProcessor"&&ml.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}setResolvedLanguage(t){if(!(!t||!this.languages)&&!(["cimode","dev"].indexOf(t)>-1))for(let r=0;r<this.languages.length;r++){const n=this.languages[r];if(!(["cimode","dev"].indexOf(n)>-1)&&this.store.hasLanguageSomeTranslations(n)){this.resolvedLanguage=n;break}}}changeLanguage(t,r){var n=this;this.isLanguageChangingTo=t;const a=$r();this.emit("languageChanging",t);const s=u=>{this.language=u,this.languages=this.services.languageUtils.toResolveHierarchy(u),this.resolvedLanguage=void 0,this.setResolvedLanguage(u)},i=(u,c)=>{c?(s(c),this.translator.changeLanguage(c),this.isLanguageChangingTo=void 0,this.emit("languageChanged",c),this.logger.log("languageChanged",c)):this.isLanguageChangingTo=void 0,a.resolve(function(){return n.t(...arguments)}),r&&r(u,function(){return n.t(...arguments)})},l=u=>{!t&&!u&&this.services.languageDetector&&(u=[]);const c=typeof u=="string"?u:this.services.languageUtils.getBestMatchFromCodes(u);c&&(this.language||s(c),this.translator.language||this.translator.changeLanguage(c),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(c)),this.loadResources(c,m=>{i(m,c)})};return!t&&this.services.languageDetector&&!this.services.languageDetector.async?l(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(l):this.services.languageDetector.detect(l):l(t),a}getFixedT(t,r,n){var a=this;const s=function(i,l){let u;if(typeof l!="object"){for(var c=arguments.length,m=new Array(c>2?c-2:0),f=2;f<c;f++)m[f-2]=arguments[f];u=a.options.overloadTranslationOptionHandler([i,l].concat(m))}else u={...l};u.lng=u.lng||s.lng,u.lngs=u.lngs||s.lngs,u.ns=u.ns||s.ns,u.keyPrefix!==""&&(u.keyPrefix=u.keyPrefix||n||s.keyPrefix);const d=a.options.keySeparator||".";let b;return u.keyPrefix&&Array.isArray(i)?b=i.map(y=>`${u.keyPrefix}${d}${y}`):b=u.keyPrefix?`${u.keyPrefix}${d}${i}`:i,a.t(b,u)};return typeof t=="string"?s.lng=t:s.lngs=t,s.ns=r,s.keyPrefix=n,s}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const n=r.lng||this.resolvedLanguage||this.languages[0],a=this.options?this.options.fallbackLng:!1,s=this.languages[this.languages.length-1];if(n.toLowerCase()==="cimode")return!0;const i=(l,u)=>{const c=this.services.backendConnector.state[`${l}|${u}`];return c===-1||c===2};if(r.precheck){const l=r.precheck(this,i);if(l!==void 0)return l}return!!(this.hasResourceBundle(n,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||i(n,t)&&(!a||i(s,t)))}loadNamespaces(t,r){const n=$r();return this.options.ns?(typeof t=="string"&&(t=[t]),t.forEach(a=>{this.options.ns.indexOf(a)<0&&this.options.ns.push(a)}),this.loadResources(a=>{n.resolve(),r&&r(a)}),n):(r&&r(),Promise.resolve())}loadLanguages(t,r){const n=$r();typeof t=="string"&&(t=[t]);const a=this.options.preload||[],s=t.filter(i=>a.indexOf(i)<0&&this.services.languageUtils.isSupportedCode(i));return s.length?(this.options.preload=a.concat(s),this.loadResources(i=>{n.resolve(),r&&r(i)}),n):(r&&r(),Promise.resolve())}dir(t){if(t||(t=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!t)return"rtl";const r=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],n=this.services&&this.services.languageUtils||new Po(ko());return r.indexOf(n.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;return new Hr(t,r)}cloneInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:gn;const n=t.forkResourceStore;n&&delete t.forkResourceStore;const a={...this.options,...t,isClone:!0},s=new Hr(a);return(t.debug!==void 0||t.prefix!==void 0)&&(s.logger=s.logger.clone(t)),["store","services","language"].forEach(l=>{s[l]=this[l]}),s.services={...this.services},s.services.utils={hasLoadedNamespace:s.hasLoadedNamespace.bind(s)},n&&(s.store=new wo(this.store.data,a),s.services.resourceStore=s.store),s.translator=new Bn(s.services,a),s.translator.on("*",function(l){for(var u=arguments.length,c=new Array(u>1?u-1:0),m=1;m<u;m++)c[m-1]=arguments[m];s.emit(l,...c)}),s.init(a,r),s.translator.options=a,s.translator.backendConnector.services.utils={hasLoadedNamespace:s.hasLoadedNamespace.bind(s)},s}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const ke=Hr.createInstance();ke.createInstance=Hr.createInstance;ke.createInstance;ke.dir;ke.init;ke.loadResources;ke.reloadResources;ke.use;ke.changeLanguage;ke.getFixedT;ke.t;ke.exists;ke.setDefaultNamespace;ke.hasLoadedNamespace;ke.loadNamespaces;ke.loadLanguages;const y0={"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.Activate.bt":"Jogging aktivieren","Jogging.Activating.lb":"Jogging wird aktiviert","Jogging.JointLimitsReached.lb":"Joint-Limit für Joint {{jointNumbers}} erreicht"},b0={"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.Activate.bt":"Activate jogging","Jogging.Activating.lb":"Activating jogging","Jogging.JointLimitsReached.lb":"Joint limit reached for joint {{jointNumbers}}"},dl=ke.createInstance();dl.use(Yu).init({supportedLngs:["en","de"],resources:{en:{translations:b0},de:{translations:y0}},ns:["translations"],defaultNS:"translations",detection:{order:["navigator","htmlTag"]}});function sn(e){return r=>o.jsx(x0,{children:o.jsx(e,{...r})})}const x0=({children:e})=>o.jsx(qt.I18nextProvider,{i18n:dl,children:e});function ia(e){Y.useEffect(e,[])}function fl(e){ia(()=>mt.autorun(e))}function ks(e,t,r){ia(()=>mt.reaction(e,t,r))}function jr(e){return ia(()=>{let t;function r(){e(),t=requestAnimationFrame(r)}return t=requestAnimationFrame(r),()=>{cancelAnimationFrame(t)}})}const es=sn(Te.observer(({colors:e,label:t,getDisplayedValue:r,startJogging:n,stopJogging:a,disabled:s,...i})=>{jr(()=>{const m=r(),f=l.current;f&&(f.textContent=m)});const l=Y.useRef(null);function u(m){s||m.button===0&&n("-")}function c(m){s||m.button===0&&n("+")}return e||(e={color:"#fff",backgroundColor:"#000",borderColor:"#000",buttonBackgroundColor:"#000"}),o.jsxs(_r,{height:"72px",direction:"row",justifyContent:"center",...i,children:[o.jsx(T.IconButton,{onPointerDown:u,onPointerUp:a,onPointerOut:a,size:"large",sx:{width:"55px",backgroundColor:e.buttonBackgroundColor,color:e.color,alignContent:"center",fontSize:"37px",borderRadius:"16px 0px 0px 16px",borderLeft:`2px solid ${e.borderColor??"#fff"}`,borderBottom:`2px solid ${e.borderColor??"#fff"}`,borderTop:`2px solid ${e.borderColor??"#fff"}`,":hover":{backgroundColor:e.buttonBackgroundColor}},children:o.jsx(Gs.Remove,{})}),o.jsxs(_r,{spacing:"6px",sx:{width:"150px",backgroundColor:e.backgroundColor,alignItems:"center",justifyContent:"center",opacity:"0.9"},children:[o.jsx(_r,{height:"22px",direction:"row",alignItems:"center",justifyItems:"center",spacing:1,sx:{userSelect:"none",color:"white"},children:t}),o.jsx(T.Typography,{height:"22px",sx:{fontSize:"15px",color:e.color},ref:l,children:r()})]}),o.jsx(T.IconButton,{onPointerDown:c,onPointerUp:a,onPointerOut:a,size:"large",sx:{width:"55px",backgroundColor:e.buttonBackgroundColor,color:e.color,alignContent:"center",fontSize:"37px",borderRadius:"0px 16px 16px 0px",borderRight:`2px solid ${e.borderColor??"#fff"}`,borderBottom:`2px solid ${e.borderColor??"#fff"}`,borderTop:`2px solid ${e.borderColor??"#fff"}`,":hover":{backgroundColor:e.buttonBackgroundColor}},children:o.jsx(Gs.Add,{})})]})}));var Is={},Ea={};function v0(e){return nn("MuiSvgIcon",e)}Xi("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const j0=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],S0=e=>{const{color:t,fontSize:r,classes:n}=e,a={root:["root",t!=="inherit"&&`color${Pe(t)}`,`fontSize${Pe(r)}`]};return Rs(a,v0,n)},R0=wt("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="inherit"&&t[`color${Pe(r.color)}`],t[`fontSize${Pe(r.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var r,n,a,s,i,l,u,c,m,f,d,b,y;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(r=e.transitions)==null||(n=r.create)==null?void 0:n.call(r,"fill",{duration:(a=e.transitions)==null||(a=a.duration)==null?void 0:a.shorter}),fontSize:{inherit:"inherit",small:((s=e.typography)==null||(i=s.pxToRem)==null?void 0:i.call(s,20))||"1.25rem",medium:((l=e.typography)==null||(u=l.pxToRem)==null?void 0:u.call(l,24))||"1.5rem",large:((c=e.typography)==null||(m=c.pxToRem)==null?void 0:m.call(c,35))||"2.1875rem"}[t.fontSize],color:(f=(d=(e.vars||e).palette)==null||(d=d[t.color])==null?void 0:d.main)!=null?f:{action:(b=(e.vars||e).palette)==null||(b=b.action)==null?void 0:b.active,disabled:(y=(e.vars||e).palette)==null||(y=y.action)==null?void 0:y.disabled,inherit:void 0}[t.color]}}),Un=$.forwardRef(function(t,r){const n=Ms({props:t,name:"MuiSvgIcon"}),{children:a,className:s,color:i="inherit",component:l="svg",fontSize:u="medium",htmlColor:c,inheritViewBox:m=!1,titleAccess:f,viewBox:d="0 0 24 24"}=n,b=Be(n,j0),y=$.isValidElement(a)&&a.type==="svg",_=k({},n,{color:i,component:l,fontSize:u,instanceFontSize:t.fontSize,inheritViewBox:m,viewBox:d,hasSvgAsChild:y}),p={};m||(p.viewBox=d);const j=S0(_);return o.jsxs(R0,k({as:l,className:gt(j.root,s),focusable:"false",color:c,"aria-hidden":f?void 0:!0,role:f?"img":void 0,ref:r},p,b,y&&a.props,{ownerState:_,children:[y?a.props.children:a,f?o.jsx("title",{children:f}):null]}))});process.env.NODE_ENV!=="production"&&(Un.propTypes={children:h.node,classes:h.object,className:h.string,color:h.oneOfType([h.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),h.string]),component:h.elementType,fontSize:h.oneOfType([h.oneOf(["inherit","large","medium","small"]),h.string]),htmlColor:h.string,inheritViewBox:h.bool,shapeRendering:h.string,sx:h.oneOfType([h.arrayOf(h.oneOfType([h.func,h.object,h.bool])),h.func,h.object]),titleAccess:h.string,viewBox:h.string});Un.muiName="SvgIcon";function w0(e,t){function r(n,a){return o.jsx(Un,k({"data-testid":`${t}Icon`,ref:a},n,{children:e}))}return process.env.NODE_ENV!=="production"&&(r.displayName=`${t}Icon`),r.muiName=Un.muiName,$.memo($.forwardRef(r))}const A0={configure:e=>{process.env.NODE_ENV!=="production"&&console.warn(["MUI: `ClassNameGenerator` import from `@mui/material/utils` is outdated and might cause unexpected issues.","","You should use `import { unstable_ClassNameGenerator } from '@mui/material/className'` instead","","The detail of the issue: https://github.com/mui/material-ui/issues/30011#issuecomment-1024993401","","The updated documentation: https://mui.com/guides/classname-generator/"].join(`
|
|
78
|
+
`)),Wi.configure(e)}},P0=Object.freeze(Object.defineProperty({__proto__:null,capitalize:Pe,createChainedFunction:sd,createSvgIcon:w0,debounce:od,deprecatedPropType:id,isMuiElement:ld,ownerDocument:pr,ownerWindow:ud,requirePropFactory:cd,setRef:Qi,unstable_ClassNameGenerator:A0,unstable_useEnhancedEffect:js,unstable_useId:dd,unsupportedProp:fd,useControlled:el,useEventCallback:An,useForkRef:Ln,useIsFocusVisible:tl},Symbol.toStringTag,{value:"Module"})),C0=Rt(P0);var To;function hl(){return To||(To=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=C0}(Ea)),Ea}var M0=sa;Object.defineProperty(Is,"__esModule",{value:!0});var gl=Is.default=void 0,k0=M0(hl()),I0=o;gl=Is.default=(0,k0.default)((0,I0.jsx)("path",{d:"M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"ChevronLeft");var Ts={},T0=sa;Object.defineProperty(Ts,"__esModule",{value:!0});var pl=Ts.default=void 0,O0=T0(hl()),E0=o;pl=Ts.default=(0,O0.default)((0,E0.jsx)("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"ChevronRight");function Kt(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var _l=typeof global=="object"&&global&&global.Object===Object&&global,L0=typeof self=="object"&&self&&self.Object===Object&&self,_t=_l||L0||Function("return this")(),La=function(){return _t.Date.now()},N0=/\s/;function $0(e){for(var t=e.length;t--&&N0.test(e.charAt(t)););return t}var F0=/^\s+/;function D0(e){return e&&e.slice(0,$0(e)+1).replace(F0,"")}var Nt=_t.Symbol,yl=Object.prototype,B0=yl.hasOwnProperty,U0=yl.toString,Fr=Nt?Nt.toStringTag:void 0;function J0(e){var t=B0.call(e,Fr),r=e[Fr];try{e[Fr]=void 0;var n=!0}catch{}var a=U0.call(e);return n&&(t?e[Fr]=r:delete e[Fr]),a}var V0=Object.prototype,G0=V0.toString;function z0(e){return G0.call(e)}var K0="[object Null]",W0="[object Undefined]",Oo=Nt?Nt.toStringTag:void 0;function Yt(e){return e==null?e===void 0?W0:K0:Oo&&Oo in Object(e)?J0(e):z0(e)}function Wt(e){return e!=null&&typeof e=="object"}var H0="[object Symbol]";function la(e){return typeof e=="symbol"||Wt(e)&&Yt(e)==H0}var Eo=NaN,X0=/^[-+]0x[0-9a-f]+$/i,q0=/^0b[01]+$/i,Y0=/^0o[0-7]+$/i,Z0=parseInt;function Lo(e){if(typeof e=="number")return e;if(la(e))return Eo;if(Kt(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Kt(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=D0(e);var r=q0.test(e);return r||Y0.test(e)?Z0(e.slice(2),r?2:8):X0.test(e)?Eo:+e}var Q0="Expected a function",eh=Math.max,th=Math.min;function rh(e,t,r){var n,a,s,i,l,u,c=0,m=!1,f=!1,d=!0;if(typeof e!="function")throw new TypeError(Q0);t=Lo(t)||0,Kt(r)&&(m=!!r.leading,f="maxWait"in r,s=f?eh(Lo(r.maxWait)||0,t):s,d="trailing"in r?!!r.trailing:d);function b(P){var M=n,K=a;return n=a=void 0,c=P,i=e.apply(K,M),i}function y(P){return c=P,l=setTimeout(j,t),m?b(P):i}function _(P){var M=P-u,K=P-c,le=t-M;return f?th(le,s-K):le}function p(P){var M=P-u,K=P-c;return u===void 0||M>=t||M<0||f&&K>=s}function j(){var P=La();if(p(P))return R(P);l=setTimeout(j,_(P))}function R(P){return l=void 0,d&&n?b(P):(n=a=void 0,i)}function C(){l!==void 0&&clearTimeout(l),c=0,n=u=a=l=void 0}function A(){return l===void 0?i:R(La())}function S(){var P=La(),M=p(P);if(n=arguments,a=this,u=P,M){if(l===void 0)return y(u);if(f)return clearTimeout(l),l=setTimeout(j,t),b(u)}return l===void 0&&(l=setTimeout(j,t)),i}return S.cancel=C,S.flush=A,S}var nh="Expected a function";function ah(e,t,r){var n=!0,a=!0;if(typeof e!="function")throw new TypeError(nh);return Kt(r)&&(n="leading"in r?!!r.leading:n,a="trailing"in r?!!r.trailing:a),rh(e,t,{leading:n,maxWait:t,trailing:a})}const bl=sn(Te.observer(({startJogging:e,stopJogging:t,lowerLimitDegs:r,upperLimitDegs:n,getValueDegs:a,disabled:s,...i})=>{const{t:l}=qt.useTranslation(),[u,c]=Y.useState(),m=Te.useLocalObservable(()=>({activeJoggingDir:null,startJogging(j){this.activeJoggingDir=j,e(j)},stopJogging(){this.activeJoggingDir=null,t()}})),f=ah(()=>{c(a())},50);jr(f);function d(j){j.button===0&&m.startJogging("-")}function b(j){j.button===0&&m.startJogging("+")}function y(j){m.stopJogging()}function _(j){j.target===j.currentTarget&&m.stopJogging()}function p(j,R=1){if(j===void 0||isNaN(j))return"";const C=l("General.degree.variable",{amount:j.toFixed(R)});return j>0&&R===0?`+${C}`:C}return o.jsxs(_r,{height:"64px",width:"100%",maxWidth:"300px",direction:"row",...i,sx:{"& .MuiIconButton-root":{width:"52px",color:"white",alignContent:"center",backgroundColor:"#38445A","&:disabled":{opacity:.5,backgroundColor:"#38445A"},"& svg":{width:"42px",height:"42px"}}},children:[o.jsx(T.IconButton,{onPointerDown:d,onPointerUp:y,onPointerOut:_,disabled:s,sx:{borderRadius:"16px 0px 0px 16px",backgroundColor:m.activeJoggingDir==="-"?"#495975":void 0},children:o.jsx(gl,{})}),o.jsxs(_r,{flexGrow:1,alignItems:"center",justifyContent:"center",sx:{borderStyle:"solid",borderLeftWidth:0,borderRightWidth:0,borderTopWidth:"4px",borderBottomWidth:"4px",backgroundColor:"#38445A",borderColor:"#38445A",paddingLeft:"20px",paddingRight:"20px",zIndex:1},children:[o.jsx(T.Typography,{sx:{fontSize:"15px",position:"relative",top:"5px",color:"white"},children:p(u)}),o.jsx(T.Slider,{disabled:!0,"aria-label":"Joint position",min:r,max:n,value:u||0,track:!1,sx:{"& .MuiSlider-mark":{display:"none"},"& .MuiSlider-thumb":{width:"5px",height:"10px",borderRadius:"2px"},"& .MuiSlider-markLabel":{top:"20px",fontSize:"12px",color:"white"},"& .MuiSlider-rail":{backgroundColor:"#1F283A",opacity:1}},marks:r!==void 0&&n!==void 0&&[{value:r,label:p(r,0)},{value:n,label:p(n,0)}]})]}),o.jsx(T.IconButton,{onPointerDown:b,onPointerUp:y,onPointerOut:_,disabled:s,sx:{borderRadius:"0px 16px 16px 0px",backgroundColor:m.activeJoggingDir==="+"?"#495975 !important":"#38445A"},children:o.jsx(pl,{})})]})}));function xl(e,t){return function(){return e.apply(t,arguments)}}const{toString:sh}=Object.prototype,{getPrototypeOf:Os}=Object,ua=(e=>t=>{const r=sh.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),it=e=>(e=e.toLowerCase(),t=>ua(t)===e),ca=e=>t=>typeof t===e,{isArray:Sr}=Array,Xr=ca("undefined");function oh(e){return e!==null&&!Xr(e)&&e.constructor!==null&&!Xr(e.constructor)&&Ke(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const vl=it("ArrayBuffer");function ih(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&vl(e.buffer),t}const lh=ca("string"),Ke=ca("function"),jl=ca("number"),ma=e=>e!==null&&typeof e=="object",uh=e=>e===!0||e===!1,kn=e=>{if(ua(e)!=="object")return!1;const t=Os(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},ch=it("Date"),mh=it("File"),dh=it("Blob"),fh=it("FileList"),hh=e=>ma(e)&&Ke(e.pipe),gh=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Ke(e.append)&&((t=ua(e))==="formdata"||t==="object"&&Ke(e.toString)&&e.toString()==="[object FormData]"))},ph=it("URLSearchParams"),[_h,yh,bh,xh]=["ReadableStream","Request","Response","Headers"].map(it),vh=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function on(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,a;if(typeof e!="object"&&(e=[e]),Sr(e))for(n=0,a=e.length;n<a;n++)t.call(null,e[n],n,e);else{const s=r?Object.getOwnPropertyNames(e):Object.keys(e),i=s.length;let l;for(n=0;n<i;n++)l=s[n],t.call(null,e[l],l,e)}}function Sl(e,t){t=t.toLowerCase();const r=Object.keys(e);let n=r.length,a;for(;n-- >0;)if(a=r[n],t===a.toLowerCase())return a;return null}const Vt=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Rl=e=>!Xr(e)&&e!==Vt;function ts(){const{caseless:e}=Rl(this)&&this||{},t={},r=(n,a)=>{const s=e&&Sl(t,a)||a;kn(t[s])&&kn(n)?t[s]=ts(t[s],n):kn(n)?t[s]=ts({},n):Sr(n)?t[s]=n.slice():t[s]=n};for(let n=0,a=arguments.length;n<a;n++)arguments[n]&&on(arguments[n],r);return t}const jh=(e,t,r,{allOwnKeys:n}={})=>(on(t,(a,s)=>{r&&Ke(a)?e[s]=xl(a,r):e[s]=a},{allOwnKeys:n}),e),Sh=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Rh=(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},wh=(e,t,r,n)=>{let a,s,i;const l={};if(t=t||{},e==null)return t;do{for(a=Object.getOwnPropertyNames(e),s=a.length;s-- >0;)i=a[s],(!n||n(i,e,t))&&!l[i]&&(t[i]=e[i],l[i]=!0);e=r!==!1&&Os(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},Ah=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return n!==-1&&n===r},Ph=e=>{if(!e)return null;if(Sr(e))return e;let t=e.length;if(!jl(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},Ch=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Os(Uint8Array)),Mh=(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let a;for(;(a=n.next())&&!a.done;){const s=a.value;t.call(e,s[0],s[1])}},kh=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},Ih=it("HTMLFormElement"),Th=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,a){return n.toUpperCase()+a}),No=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),Oh=it("RegExp"),wl=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};on(r,(a,s)=>{let i;(i=t(a,s,e))!==!1&&(n[s]=i||a)}),Object.defineProperties(e,n)},Eh=e=>{wl(e,(t,r)=>{if(Ke(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(Ke(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},Lh=(e,t)=>{const r={},n=a=>{a.forEach(s=>{r[s]=!0})};return Sr(e)?n(e):n(String(e).split(t)),r},Nh=()=>{},$h=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,Na="abcdefghijklmnopqrstuvwxyz",$o="0123456789",Al={DIGIT:$o,ALPHA:Na,ALPHA_DIGIT:Na+Na.toUpperCase()+$o},Fh=(e=16,t=Al.ALPHA_DIGIT)=>{let r="";const{length:n}=t;for(;e--;)r+=t[Math.random()*n|0];return r};function Dh(e){return!!(e&&Ke(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const Bh=e=>{const t=new Array(10),r=(n,a)=>{if(ma(n)){if(t.indexOf(n)>=0)return;if(!("toJSON"in n)){t[a]=n;const s=Sr(n)?[]:{};return on(n,(i,l)=>{const u=r(i,a+1);!Xr(u)&&(s[l]=u)}),t[a]=void 0,s}}return n};return r(e,0)},Uh=it("AsyncFunction"),Jh=e=>e&&(ma(e)||Ke(e))&&Ke(e.then)&&Ke(e.catch),Pl=((e,t)=>e?setImmediate:t?((r,n)=>(Vt.addEventListener("message",({source:a,data:s})=>{a===Vt&&s===r&&n.length&&n.shift()()},!1),a=>{n.push(a),Vt.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",Ke(Vt.postMessage)),Vh=typeof queueMicrotask<"u"?queueMicrotask.bind(Vt):typeof process<"u"&&process.nextTick||Pl,v={isArray:Sr,isArrayBuffer:vl,isBuffer:oh,isFormData:gh,isArrayBufferView:ih,isString:lh,isNumber:jl,isBoolean:uh,isObject:ma,isPlainObject:kn,isReadableStream:_h,isRequest:yh,isResponse:bh,isHeaders:xh,isUndefined:Xr,isDate:ch,isFile:mh,isBlob:dh,isRegExp:Oh,isFunction:Ke,isStream:hh,isURLSearchParams:ph,isTypedArray:Ch,isFileList:fh,forEach:on,merge:ts,extend:jh,trim:vh,stripBOM:Sh,inherits:Rh,toFlatObject:wh,kindOf:ua,kindOfTest:it,endsWith:Ah,toArray:Ph,forEachEntry:Mh,matchAll:kh,isHTMLForm:Ih,hasOwnProperty:No,hasOwnProp:No,reduceDescriptors:wl,freezeMethods:Eh,toObjectSet:Lh,toCamelCase:Th,noop:Nh,toFiniteNumber:$h,findKey:Sl,global:Vt,isContextDefined:Rl,ALPHABET:Al,generateString:Fh,isSpecCompliantForm:Dh,toJSONObject:Bh,isAsyncFn:Uh,isThenable:Jh,setImmediate:Pl,asap:Vh};function J(e,t,r,n,a){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),a&&(this.response=a)}v.inherits(J,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:v.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Cl=J.prototype,Ml={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Ml[e]={value:e}});Object.defineProperties(J,Ml);Object.defineProperty(Cl,"isAxiosError",{value:!0});J.from=(e,t,r,n,a,s)=>{const i=Object.create(Cl);return v.toFlatObject(e,i,function(u){return u!==Error.prototype},l=>l!=="isAxiosError"),J.call(i,e.message,t,r,n,a),i.cause=e,i.name=e.name,s&&Object.assign(i,s),i};const Gh=null;function rs(e){return v.isPlainObject(e)||v.isArray(e)}function kl(e){return v.endsWith(e,"[]")?e.slice(0,-2):e}function Fo(e,t,r){return e?e.concat(t).map(function(a,s){return a=kl(a),!r&&s?"["+a+"]":a}).join(r?".":""):t}function zh(e){return v.isArray(e)&&!e.some(rs)}const Kh=v.toFlatObject(v,{},null,function(t){return/^is[A-Z]/.test(t)});function da(e,t,r){if(!v.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=v.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(_,p){return!v.isUndefined(p[_])});const n=r.metaTokens,a=r.visitor||m,s=r.dots,i=r.indexes,u=(r.Blob||typeof Blob<"u"&&Blob)&&v.isSpecCompliantForm(t);if(!v.isFunction(a))throw new TypeError("visitor must be a function");function c(y){if(y===null)return"";if(v.isDate(y))return y.toISOString();if(!u&&v.isBlob(y))throw new J("Blob is not supported. Use a Buffer instead.");return v.isArrayBuffer(y)||v.isTypedArray(y)?u&&typeof Blob=="function"?new Blob([y]):Buffer.from(y):y}function m(y,_,p){let j=y;if(y&&!p&&typeof y=="object"){if(v.endsWith(_,"{}"))_=n?_:_.slice(0,-2),y=JSON.stringify(y);else if(v.isArray(y)&&zh(y)||(v.isFileList(y)||v.endsWith(_,"[]"))&&(j=v.toArray(y)))return _=kl(_),j.forEach(function(C,A){!(v.isUndefined(C)||C===null)&&t.append(i===!0?Fo([_],A,s):i===null?_:_+"[]",c(C))}),!1}return rs(y)?!0:(t.append(Fo(p,_,s),c(y)),!1)}const f=[],d=Object.assign(Kh,{defaultVisitor:m,convertValue:c,isVisitable:rs});function b(y,_){if(!v.isUndefined(y)){if(f.indexOf(y)!==-1)throw Error("Circular reference detected in "+_.join("."));f.push(y),v.forEach(y,function(j,R){(!(v.isUndefined(j)||j===null)&&a.call(t,j,v.isString(R)?R.trim():R,_,d))===!0&&b(j,_?_.concat(R):[R])}),f.pop()}}if(!v.isObject(e))throw new TypeError("data must be an object");return b(e),t}function Do(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function Es(e,t){this._pairs=[],e&&da(e,this,t)}const Il=Es.prototype;Il.append=function(t,r){this._pairs.push([t,r])};Il.toString=function(t){const r=t?function(n){return t.call(this,n,Do)}:Do;return this._pairs.map(function(a){return r(a[0])+"="+r(a[1])},"").join("&")};function Wh(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Tl(e,t,r){if(!t)return e;const n=r&&r.encode||Wh,a=r&&r.serialize;let s;if(a?s=a(t,r):s=v.isURLSearchParams(t)?t.toString():new Es(t,r).toString(n),s){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+s}return e}class Bo{constructor(){this.handlers=[]}use(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){v.forEach(this.handlers,function(n){n!==null&&t(n)})}}const Ol={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Hh=typeof URLSearchParams<"u"?URLSearchParams:Es,Xh=typeof FormData<"u"?FormData:null,qh=typeof Blob<"u"?Blob:null,Yh={isBrowser:!0,classes:{URLSearchParams:Hh,FormData:Xh,Blob:qh},protocols:["http","https","file","blob","url","data"]},Ls=typeof window<"u"&&typeof document<"u",Zh=(e=>Ls&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),Qh=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",eg=Ls&&window.location.href||"http://localhost",tg=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Ls,hasStandardBrowserEnv:Zh,hasStandardBrowserWebWorkerEnv:Qh,origin:eg},Symbol.toStringTag,{value:"Module"})),st={...tg,...Yh};function rg(e,t){return da(e,new st.classes.URLSearchParams,Object.assign({visitor:function(r,n,a,s){return st.isNode&&v.isBuffer(r)?(this.append(n,r.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},t))}function ng(e){return v.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function ag(e){const t={},r=Object.keys(e);let n;const a=r.length;let s;for(n=0;n<a;n++)s=r[n],t[s]=e[s];return t}function El(e){function t(r,n,a,s){let i=r[s++];if(i==="__proto__")return!0;const l=Number.isFinite(+i),u=s>=r.length;return i=!i&&v.isArray(a)?a.length:i,u?(v.hasOwnProp(a,i)?a[i]=[a[i],n]:a[i]=n,!l):((!a[i]||!v.isObject(a[i]))&&(a[i]=[]),t(r,n,a[i],s)&&v.isArray(a[i])&&(a[i]=ag(a[i])),!l)}if(v.isFormData(e)&&v.isFunction(e.entries)){const r={};return v.forEachEntry(e,(n,a)=>{t(ng(n),a,r,0)}),r}return null}function sg(e,t,r){if(v.isString(e))try{return(t||JSON.parse)(e),v.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}const ln={transitional:Ol,adapter:["xhr","http","fetch"],transformRequest:[function(t,r){const n=r.getContentType()||"",a=n.indexOf("application/json")>-1,s=v.isObject(t);if(s&&v.isHTMLForm(t)&&(t=new FormData(t)),v.isFormData(t))return a?JSON.stringify(El(t)):t;if(v.isArrayBuffer(t)||v.isBuffer(t)||v.isStream(t)||v.isFile(t)||v.isBlob(t)||v.isReadableStream(t))return t;if(v.isArrayBufferView(t))return t.buffer;if(v.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(s){if(n.indexOf("application/x-www-form-urlencoded")>-1)return rg(t,this.formSerializer).toString();if((l=v.isFileList(t))||n.indexOf("multipart/form-data")>-1){const u=this.env&&this.env.FormData;return da(l?{"files[]":t}:t,u&&new u,this.formSerializer)}}return s||a?(r.setContentType("application/json",!1),sg(t)):t}],transformResponse:[function(t){const r=this.transitional||ln.transitional,n=r&&r.forcedJSONParsing,a=this.responseType==="json";if(v.isResponse(t)||v.isReadableStream(t))return t;if(t&&v.isString(t)&&(n&&!this.responseType||a)){const i=!(r&&r.silentJSONParsing)&&a;try{return JSON.parse(t)}catch(l){if(i)throw l.name==="SyntaxError"?J.from(l,J.ERR_BAD_RESPONSE,this,null,this.response):l}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:st.classes.FormData,Blob:st.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};v.forEach(["delete","get","head","post","put","patch"],e=>{ln.headers[e]={}});const og=v.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),ig=e=>{const t={};let r,n,a;return e&&e.split(`
|
|
79
|
+
`).forEach(function(i){a=i.indexOf(":"),r=i.substring(0,a).trim().toLowerCase(),n=i.substring(a+1).trim(),!(!r||t[r]&&og[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t},Uo=Symbol("internals");function Dr(e){return e&&String(e).trim().toLowerCase()}function In(e){return e===!1||e==null?e:v.isArray(e)?e.map(In):String(e)}function lg(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}const ug=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function $a(e,t,r,n,a){if(v.isFunction(n))return n.call(this,t,r);if(a&&(t=r),!!v.isString(t)){if(v.isString(n))return t.indexOf(n)!==-1;if(v.isRegExp(n))return n.test(t)}}function cg(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function mg(e,t){const r=v.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(a,s,i){return this[n].call(this,t,a,s,i)},configurable:!0})})}let Fe=class{constructor(t){t&&this.set(t)}set(t,r,n){const a=this;function s(l,u,c){const m=Dr(u);if(!m)throw new Error("header name must be a non-empty string");const f=v.findKey(a,m);(!f||a[f]===void 0||c===!0||c===void 0&&a[f]!==!1)&&(a[f||u]=In(l))}const i=(l,u)=>v.forEach(l,(c,m)=>s(c,m,u));if(v.isPlainObject(t)||t instanceof this.constructor)i(t,r);else if(v.isString(t)&&(t=t.trim())&&!ug(t))i(ig(t),r);else if(v.isHeaders(t))for(const[l,u]of t.entries())s(u,l,n);else t!=null&&s(r,t,n);return this}get(t,r){if(t=Dr(t),t){const n=v.findKey(this,t);if(n){const a=this[n];if(!r)return a;if(r===!0)return lg(a);if(v.isFunction(r))return r.call(this,a,n);if(v.isRegExp(r))return r.exec(a);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=Dr(t),t){const n=v.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||$a(this,this[n],n,r)))}return!1}delete(t,r){const n=this;let a=!1;function s(i){if(i=Dr(i),i){const l=v.findKey(n,i);l&&(!r||$a(n,n[l],l,r))&&(delete n[l],a=!0)}}return v.isArray(t)?t.forEach(s):s(t),a}clear(t){const r=Object.keys(this);let n=r.length,a=!1;for(;n--;){const s=r[n];(!t||$a(this,this[s],s,t,!0))&&(delete this[s],a=!0)}return a}normalize(t){const r=this,n={};return v.forEach(this,(a,s)=>{const i=v.findKey(n,s);if(i){r[i]=In(a),delete r[s];return}const l=t?cg(s):String(s).trim();l!==s&&delete r[s],r[l]=In(a),n[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const r=Object.create(null);return v.forEach(this,(n,a)=>{n!=null&&n!==!1&&(r[a]=t&&v.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,r])=>t+": "+r).join(`
|
|
80
|
+
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){const n=new this(t);return r.forEach(a=>n.set(a)),n}static accessor(t){const n=(this[Uo]=this[Uo]={accessors:{}}).accessors,a=this.prototype;function s(i){const l=Dr(i);n[l]||(mg(a,i),n[l]=!0)}return v.isArray(t)?t.forEach(s):s(t),this}};Fe.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);v.reduceDescriptors(Fe.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}});v.freezeMethods(Fe);function Fa(e,t){const r=this||ln,n=t||r,a=Fe.from(n.headers);let s=n.data;return v.forEach(e,function(l){s=l.call(r,s,a.normalize(),t?t.status:void 0)}),a.normalize(),s}function Ll(e){return!!(e&&e.__CANCEL__)}function Rr(e,t,r){J.call(this,e??"canceled",J.ERR_CANCELED,t,r),this.name="CanceledError"}v.inherits(Rr,J,{__CANCEL__:!0});function Nl(e,t,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new J("Request failed with status code "+r.status,[J.ERR_BAD_REQUEST,J.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function dg(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function fg(e,t){e=e||10;const r=new Array(e),n=new Array(e);let a=0,s=0,i;return t=t!==void 0?t:1e3,function(u){const c=Date.now(),m=n[s];i||(i=c),r[a]=u,n[a]=c;let f=s,d=0;for(;f!==a;)d+=r[f++],f=f%e;if(a=(a+1)%e,a===s&&(s=(s+1)%e),c-i<t)return;const b=m&&c-m;return b?Math.round(d*1e3/b):void 0}}function hg(e,t){let r=0,n=1e3/t,a,s;const i=(c,m=Date.now())=>{r=m,a=null,s&&(clearTimeout(s),s=null),e.apply(null,c)};return[(...c)=>{const m=Date.now(),f=m-r;f>=n?i(c,m):(a=c,s||(s=setTimeout(()=>{s=null,i(a)},n-f)))},()=>a&&i(a)]}const Jn=(e,t,r=3)=>{let n=0;const a=fg(50,250);return hg(s=>{const i=s.loaded,l=s.lengthComputable?s.total:void 0,u=i-n,c=a(u),m=i<=l;n=i;const f={loaded:i,total:l,progress:l?i/l:void 0,bytes:u,rate:c||void 0,estimated:c&&l&&m?(l-i)/c:void 0,event:s,lengthComputable:l!=null,[t?"download":"upload"]:!0};e(f)},r)},Jo=(e,t)=>{const r=e!=null;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},Vo=e=>(...t)=>v.asap(()=>e(...t)),gg=st.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");let n;function a(s){let i=s;return t&&(r.setAttribute("href",i),i=r.href),r.setAttribute("href",i),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:r.pathname.charAt(0)==="/"?r.pathname:"/"+r.pathname}}return n=a(window.location.href),function(i){const l=v.isString(i)?a(i):i;return l.protocol===n.protocol&&l.host===n.host}}():function(){return function(){return!0}}(),pg=st.hasStandardBrowserEnv?{write(e,t,r,n,a,s){const i=[e+"="+encodeURIComponent(t)];v.isNumber(r)&&i.push("expires="+new Date(r).toGMTString()),v.isString(n)&&i.push("path="+n),v.isString(a)&&i.push("domain="+a),s===!0&&i.push("secure"),document.cookie=i.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function _g(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function yg(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function $l(e,t){return e&&!_g(t)?yg(e,t):t}const Go=e=>e instanceof Fe?{...e}:e;function Ht(e,t){t=t||{};const r={};function n(c,m,f){return v.isPlainObject(c)&&v.isPlainObject(m)?v.merge.call({caseless:f},c,m):v.isPlainObject(m)?v.merge({},m):v.isArray(m)?m.slice():m}function a(c,m,f){if(v.isUndefined(m)){if(!v.isUndefined(c))return n(void 0,c,f)}else return n(c,m,f)}function s(c,m){if(!v.isUndefined(m))return n(void 0,m)}function i(c,m){if(v.isUndefined(m)){if(!v.isUndefined(c))return n(void 0,c)}else return n(void 0,m)}function l(c,m,f){if(f in t)return n(c,m);if(f in e)return n(void 0,c)}const u={url:s,method:s,data:s,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:l,headers:(c,m)=>a(Go(c),Go(m),!0)};return v.forEach(Object.keys(Object.assign({},e,t)),function(m){const f=u[m]||a,d=f(e[m],t[m],m);v.isUndefined(d)&&f!==l||(r[m]=d)}),r}const Fl=e=>{const t=Ht({},e);let{data:r,withXSRFToken:n,xsrfHeaderName:a,xsrfCookieName:s,headers:i,auth:l}=t;t.headers=i=Fe.from(i),t.url=Tl($l(t.baseURL,t.url),e.params,e.paramsSerializer),l&&i.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):"")));let u;if(v.isFormData(r)){if(st.hasStandardBrowserEnv||st.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if((u=i.getContentType())!==!1){const[c,...m]=u?u.split(";").map(f=>f.trim()).filter(Boolean):[];i.setContentType([c||"multipart/form-data",...m].join("; "))}}if(st.hasStandardBrowserEnv&&(n&&v.isFunction(n)&&(n=n(t)),n||n!==!1&&gg(t.url))){const c=a&&s&&pg.read(s);c&&i.set(a,c)}return t},bg=typeof XMLHttpRequest<"u",xg=bg&&function(e){return new Promise(function(r,n){const a=Fl(e);let s=a.data;const i=Fe.from(a.headers).normalize();let{responseType:l,onUploadProgress:u,onDownloadProgress:c}=a,m,f,d,b,y;function _(){b&&b(),y&&y(),a.cancelToken&&a.cancelToken.unsubscribe(m),a.signal&&a.signal.removeEventListener("abort",m)}let p=new XMLHttpRequest;p.open(a.method.toUpperCase(),a.url,!0),p.timeout=a.timeout;function j(){if(!p)return;const C=Fe.from("getAllResponseHeaders"in p&&p.getAllResponseHeaders()),S={data:!l||l==="text"||l==="json"?p.responseText:p.response,status:p.status,statusText:p.statusText,headers:C,config:e,request:p};Nl(function(M){r(M),_()},function(M){n(M),_()},S),p=null}"onloadend"in p?p.onloadend=j:p.onreadystatechange=function(){!p||p.readyState!==4||p.status===0&&!(p.responseURL&&p.responseURL.indexOf("file:")===0)||setTimeout(j)},p.onabort=function(){p&&(n(new J("Request aborted",J.ECONNABORTED,e,p)),p=null)},p.onerror=function(){n(new J("Network Error",J.ERR_NETWORK,e,p)),p=null},p.ontimeout=function(){let A=a.timeout?"timeout of "+a.timeout+"ms exceeded":"timeout exceeded";const S=a.transitional||Ol;a.timeoutErrorMessage&&(A=a.timeoutErrorMessage),n(new J(A,S.clarifyTimeoutError?J.ETIMEDOUT:J.ECONNABORTED,e,p)),p=null},s===void 0&&i.setContentType(null),"setRequestHeader"in p&&v.forEach(i.toJSON(),function(A,S){p.setRequestHeader(S,A)}),v.isUndefined(a.withCredentials)||(p.withCredentials=!!a.withCredentials),l&&l!=="json"&&(p.responseType=a.responseType),c&&([d,y]=Jn(c,!0),p.addEventListener("progress",d)),u&&p.upload&&([f,b]=Jn(u),p.upload.addEventListener("progress",f),p.upload.addEventListener("loadend",b)),(a.cancelToken||a.signal)&&(m=C=>{p&&(n(!C||C.type?new Rr(null,e,p):C),p.abort(),p=null)},a.cancelToken&&a.cancelToken.subscribe(m),a.signal&&(a.signal.aborted?m():a.signal.addEventListener("abort",m)));const R=dg(a.url);if(R&&st.protocols.indexOf(R)===-1){n(new J("Unsupported protocol "+R+":",J.ERR_BAD_REQUEST,e));return}p.send(s||null)})},vg=(e,t)=>{let r=new AbortController,n;const a=function(u){if(!n){n=!0,i();const c=u instanceof Error?u:this.reason;r.abort(c instanceof J?c:new Rr(c instanceof Error?c.message:c))}};let s=t&&setTimeout(()=>{a(new J(`timeout ${t} of ms exceeded`,J.ETIMEDOUT))},t);const i=()=>{e&&(s&&clearTimeout(s),s=null,e.forEach(u=>{u&&(u.removeEventListener?u.removeEventListener("abort",a):u.unsubscribe(a))}),e=null)};e.forEach(u=>u&&u.addEventListener&&u.addEventListener("abort",a));const{signal:l}=r;return l.unsubscribe=i,[l,()=>{s&&clearTimeout(s),s=null}]},jg=function*(e,t){let r=e.byteLength;if(!t||r<t){yield e;return}let n=0,a;for(;n<r;)a=n+t,yield e.slice(n,a),n=a},Sg=async function*(e,t,r){for await(const n of e)yield*jg(ArrayBuffer.isView(n)?n:await r(String(n)),t)},zo=(e,t,r,n,a)=>{const s=Sg(e,t,a);let i=0,l,u=c=>{l||(l=!0,n&&n(c))};return new ReadableStream({async pull(c){try{const{done:m,value:f}=await s.next();if(m){u(),c.close();return}let d=f.byteLength;if(r){let b=i+=d;r(b)}c.enqueue(new Uint8Array(f))}catch(m){throw u(m),m}},cancel(c){return u(c),s.return()}},{highWaterMark:2})},fa=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Dl=fa&&typeof ReadableStream=="function",ns=fa&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Bl=(e,...t)=>{try{return!!e(...t)}catch{return!1}},Rg=Dl&&Bl(()=>{let e=!1;const t=new Request(st.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),Ko=64*1024,as=Dl&&Bl(()=>v.isReadableStream(new Response("").body)),Vn={stream:as&&(e=>e.body)};fa&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!Vn[t]&&(Vn[t]=v.isFunction(e[t])?r=>r[t]():(r,n)=>{throw new J(`Response type '${t}' is not supported`,J.ERR_NOT_SUPPORT,n)})})})(new Response);const wg=async e=>{if(e==null)return 0;if(v.isBlob(e))return e.size;if(v.isSpecCompliantForm(e))return(await new Request(e).arrayBuffer()).byteLength;if(v.isArrayBufferView(e)||v.isArrayBuffer(e))return e.byteLength;if(v.isURLSearchParams(e)&&(e=e+""),v.isString(e))return(await ns(e)).byteLength},Ag=async(e,t)=>{const r=v.toFiniteNumber(e.getContentLength());return r??wg(t)},Pg=fa&&(async e=>{let{url:t,method:r,data:n,signal:a,cancelToken:s,timeout:i,onDownloadProgress:l,onUploadProgress:u,responseType:c,headers:m,withCredentials:f="same-origin",fetchOptions:d}=Fl(e);c=c?(c+"").toLowerCase():"text";let[b,y]=a||s||i?vg([a,s],i):[],_,p;const j=()=>{!_&&setTimeout(()=>{b&&b.unsubscribe()}),_=!0};let R;try{if(u&&Rg&&r!=="get"&&r!=="head"&&(R=await Ag(m,n))!==0){let P=new Request(t,{method:"POST",body:n,duplex:"half"}),M;if(v.isFormData(n)&&(M=P.headers.get("content-type"))&&m.setContentType(M),P.body){const[K,le]=Jo(R,Jn(Vo(u)));n=zo(P.body,Ko,K,le,ns)}}v.isString(f)||(f=f?"include":"omit"),p=new Request(t,{...d,signal:b,method:r.toUpperCase(),headers:m.normalize().toJSON(),body:n,duplex:"half",credentials:f});let C=await fetch(p);const A=as&&(c==="stream"||c==="response");if(as&&(l||A)){const P={};["status","statusText","headers"].forEach(ce=>{P[ce]=C[ce]});const M=v.toFiniteNumber(C.headers.get("content-length")),[K,le]=l&&Jo(M,Jn(Vo(l),!0))||[];C=new Response(zo(C.body,Ko,K,()=>{le&&le(),A&&j()},ns),P)}c=c||"text";let S=await Vn[v.findKey(Vn,c)||"text"](C,e);return!A&&j(),y&&y(),await new Promise((P,M)=>{Nl(P,M,{data:S,headers:Fe.from(C.headers),status:C.status,statusText:C.statusText,config:e,request:p})})}catch(C){throw j(),C&&C.name==="TypeError"&&/fetch/i.test(C.message)?Object.assign(new J("Network Error",J.ERR_NETWORK,e,p),{cause:C.cause||C}):J.from(C,C&&C.code,e,p)}}),ss={http:Gh,xhr:xg,fetch:Pg};v.forEach(ss,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Wo=e=>`- ${e}`,Cg=e=>v.isFunction(e)||e===null||e===!1,Ul={getAdapter:e=>{e=v.isArray(e)?e:[e];const{length:t}=e;let r,n;const a={};for(let s=0;s<t;s++){r=e[s];let i;if(n=r,!Cg(r)&&(n=ss[(i=String(r)).toLowerCase()],n===void 0))throw new J(`Unknown adapter '${i}'`);if(n)break;a[i||"#"+s]=n}if(!n){const s=Object.entries(a).map(([l,u])=>`adapter ${l} `+(u===!1?"is not supported by the environment":"is not available in the build"));let i=t?s.length>1?`since :
|
|
81
81
|
`+s.map(Wo).join(`
|
|
82
|
-
`):" "+Wo(s[0]):"as no adapter specified";throw new J("There is no suitable adapter to dispatch the request "+i,"ERR_NOT_SUPPORT")}return n},adapters:ss};function Da(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Rr(null,e)}function Ho(e){return Da(e),e.headers=Fe.from(e.headers),e.data=Fa.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Ul.getAdapter(e.adapter||ln.adapter)(e).then(function(n){return Da(e),n.data=Fa.call(e,e.transformResponse,n),n.headers=Fe.from(n.headers),n},function(n){return
|
|
83
|
-
`+s):n.stack=s}catch{}}throw n}}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=Ht(this.defaults,r);const{transitional:n,paramsSerializer:a,headers:s}=r;n!==void 0&&os.assertOptions(n,{silentJSONParsing:Ot.transitional(Ot.boolean),forcedJSONParsing:Ot.transitional(Ot.boolean),clarifyTimeoutError:Ot.transitional(Ot.boolean)},!1),a!=null&&(v.isFunction(a)?r.paramsSerializer={serialize:a}:os.assertOptions(a,{encode:Ot.function,serialize:Ot.function},!0)),r.method=(r.method||this.defaults.method||"get").toLowerCase();let i=s&&v.merge(s.common,s[r.method]);s&&v.forEach(["delete","get","head","post","put","patch","common"],y=>{delete s[y]}),r.headers=Fe.concat(i,s);const l=[];let u=!0;this.interceptors.request.forEach(function(_){typeof _.runWhen=="function"&&_.runWhen(r)===!1||(u=u&&_.synchronous,l.unshift(_.fulfilled,_.rejected))});const c=[];this.interceptors.response.forEach(function(_){c.push(_.fulfilled,_.rejected)});let m,f=0,d;if(!u){const y=[Ho.bind(this),void 0];for(y.unshift.apply(y,l),y.push.apply(y,c),d=y.length,m=Promise.resolve(r);f<d;)m=m.then(y[f++],y[f++]);return m}d=l.length;let x=r;for(f=0;f<d;){const y=l[f++],_=l[f++];try{x=y(x)}catch(p){_.call(this,p);break}}try{m=Ho.call(this,x)}catch(y){return Promise.reject(y)}for(f=0,d=c.length;f<d;)m=m.then(c[f++],c[f++]);return m}getUri(t){t=Ht(this.defaults,t);const r=Nl(t.baseURL,t.url);return Il(r,t.params,t.paramsSerializer)}};v.forEach(["delete","get","head","options"],function(t){Gt.prototype[t]=function(r,n){return this.request(Ht(n||{},{method:t,url:r,data:(n||{}).data}))}});v.forEach(["post","put","patch"],function(t){function r(n){return function(s,i,l){return this.request(Ht(l||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:s,data:i}))}}Gt.prototype[t]=r(),Gt.prototype[t+"Form"]=r(!0)});let Mg=class Jl{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(s){r=s});const n=this;this.promise.then(a=>{if(!n._listeners)return;let s=n._listeners.length;for(;s-- >0;)n._listeners[s](a);n._listeners=null}),this.promise.then=a=>{let s;const i=new Promise(l=>{n.subscribe(l),s=l}).then(a);return i.cancel=function(){n.unsubscribe(s)},i},t(function(s,i,l){n.reason||(n.reason=new Rr(s,i,l),r(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}static source(){let t;return{token:new Jl(function(a){t=a}),cancel:t}}};function kg(e){return function(r){return e.apply(null,r)}}function Ig(e){return v.isObject(e)&&e.isAxiosError===!0}const is={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(is).forEach(([e,t])=>{is[t]=e});function Vl(e){const t=new Gt(e),r=bl(Gt.prototype.request,t);return v.extend(r,Gt.prototype,t,{allOwnKeys:!0}),v.extend(r,t,null,{allOwnKeys:!0}),r.create=function(a){return Vl(Ht(e,a))},r}const ve=Vl(ln);ve.Axios=Gt;ve.CanceledError=Rr;ve.CancelToken=Mg;ve.isCancel=El;ve.VERSION=Bl;ve.toFormData=da;ve.AxiosError=J;ve.Cancel=ve.CanceledError;ve.all=function(t){return Promise.all(t)};ve.spread=kg;ve.isAxiosError=Ig;ve.mergeConfig=Ht;ve.AxiosHeaders=Fe;ve.formToJSON=e=>Ol(v.isHTMLForm(e)?new FormData(e):e);ve.getAdapter=Ul.getAdapter;ve.HttpStatusCode=is;ve.default=ve;const{Axios:ob,AxiosError:qo,CanceledError:ib,isCancel:lb,CancelToken:ub,VERSION:cb,all:mb,Cancel:db,isAxiosError:fb,spread:hb,toFormData:gb,AxiosHeaders:pb,HttpStatusCode:_b,formToJSON:yb,getAdapter:bb,mergeConfig:xb}=ve;function Tg(e){try{return JSON.stringify(e)}catch{return}}function Og(e){var t,r,n,a;return e instanceof qo&&e.code==="ERR_NETWORK"?"Failed to connect to the server. Please check your internet connection.":e instanceof qo&&e.response?`${(t=e.response)==null?void 0:t.status} ${(r=e.response)==null?void 0:r.statusText} from ${(n=e.response)==null?void 0:n.config.url}: ${JSON.stringify((a=e.response)==null?void 0:a.data)}`:e instanceof Error?e.message:`Unexpected error: ${Tg(e)||e}`}const ha=e=>{const t=e.softTimeout||3e3,[r,n]=Y.useState(!1);return Y.useEffect(()=>{const a=setTimeout(()=>{n(!0)},t);return()=>clearTimeout(a)}),o.jsx(T.Stack,{width:"100%",height:"100%",alignItems:"center",justifyContent:"center",children:e.error?o.jsx(Gl,{loadingMessage:e.message,error:e.error}):o.jsxs(o.Fragment,{children:[o.jsx(T.CircularProgress,{sx:{marginBottom:"24px"}}),!!e.message&&o.jsx("div",{children:e.message}),o.jsx(T.Stack,{sx:{visibility:r?"visible":"hidden",marginTop:"1rem",color:"gray"},children:"This is taking longer than expected..."})]})})},Gl=e=>{const t=Og(e.error),r=e.error instanceof Error?e.error.stack:null,n=T.useTheme();return o.jsxs(T.Stack,{sx:{maxHeight:"100%",maxWidth:"min(100%, 800px)",padding:2,overflow:"auto",color:n.palette.error.main,"& pre":{whiteSpace:"pre-wrap",wordBreak:"break-word",paddingBottom:"3rem"}},children:[(e.loadingMessage?`Error while ${Kn.lowerFirst(T.capitalize(e.loadingMessage))} - `:"")+t,o.jsx("br",{}),r&&o.jsx("pre",{children:r})]})},Eg=({title:e,titleId:t,...r},n)=>$.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:19,height:10,fill:"none",ref:n,"aria-labelledby":t,...r},e?$.createElement("title",{id:t},e):null,$.createElement("path",{fill:"#fff",fillRule:"evenodd",d:"M5.131.312a.9.9 0 0 1 0 1.272L3.07 3.645h12.44l-2.06-2.061A.9.9 0 0 1 14.72.313l3.596 3.596a.9.9 0 0 1 0 1.271l-3.596 3.597a.9.9 0 0 1-1.271-1.272l2.061-2.062H3.07L5.13 7.505A.9.9 0 0 1 3.86 8.777L.263 5.18a.9.9 0 0 1 0-1.271L3.86.312a.9.9 0 0 1 1.271 0",clipRule:"evenodd"})),Lg=Y.forwardRef(Eg),Ng=({title:e,titleId:t,...r},n)=>$.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:19,height:10,fill:"none",ref:n,"aria-labelledby":t,...r},e?$.createElement("title",{id:t},e):null,$.createElement("path",{fill:"#fff",fillRule:"evenodd",d:"M5.131.312a.9.9 0 0 1 0 1.272L3.07 3.645h12.44l-2.06-2.061A.9.9 0 0 1 14.72.313l3.596 3.596a.9.9 0 0 1 0 1.271l-3.596 3.597a.9.9 0 0 1-1.271-1.272l2.061-2.062H3.07L5.13 7.505A.9.9 0 0 1 3.86 8.777L.263 5.18a.9.9 0 0 1 0-1.271L3.86.312a.9.9 0 0 1 1.271 0",clipRule:"evenodd"})),$g=Y.forwardRef(Ng),Fg=({title:e,titleId:t,...r},n)=>$.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:10,height:19,fill:"none",ref:n,"aria-labelledby":t,...r},e?$.createElement("title",{id:t},e):null,$.createElement("path",{fill:"#fff",fillRule:"evenodd",d:"M9.522 14.811A.899.899 0 1 0 8.25 13.54L6.19 15.601V3.16L8.25 5.221A.9.9 0 0 0 9.522 3.95L5.926.354a.9.9 0 0 0-1.272 0L1.058 3.95a.9.9 0 1 0 1.271 1.271L4.391 3.16v12.442L2.329 13.54a.899.899 0 1 0-1.271 1.271l3.596 3.597a.9.9 0 0 0 1.272 0z",clipRule:"evenodd"})),Dg=Y.forwardRef(Fg),Ug=({title:e,titleId:t,...r},n)=>$.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:25,height:24,fill:"none",ref:n,"aria-labelledby":t,...r},e?$.createElement("title",{id:t},e):null,$.createElement("path",{stroke:"#fff",strokeLinecap:"round",strokeWidth:1.5,d:"M18.5 12a6 6 0 1 0-6 6"}),$.createElement("path",{stroke:"#fff",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"m16.5 11 2 2.5 2-2.5"})),Bg=Y.forwardRef(Ug),Yo=e=>o.jsx(T.Stack,{position:"absolute",left:0,top:0,width:"100%",height:"100%",alignItems:"center",justifyContent:"center",sx:{backgroundColor:"rgba(0, 0, 0, 0.6)",backdropFilter:"blur(2px)",zIndex:100,...e.sx||{}},...Kn.omit(e,"sx")}),zl=Te.observer(({store:e,children:t})=>{const{t:r}=qt.useTranslation(),n=T.useTheme();function a(){var s,i;if(e.activationState==="inactive"&&!e.activationError)return o.jsx(Yo,{sx:{borderRadius:"6px",backgroundColor:`color-mix(in srgb, ${(s=n.palette.backgroundPaperElevation)==null?void 0:s[5]}, transparent)`},children:o.jsx(T.Button,{color:"primary",variant:"contained",onClick:()=>e.activate({manual:!0}),disabled:e.isLocked,children:r("Jogging.Activate.bt")})});if(e.activationState==="loading"||e.activationError)return o.jsx(Yo,{sx:{backgroundColor:`color-mix(in srgb, ${(i=n.palette.backgroundPaperElevation)==null?void 0:i[5]}, transparent)`},children:o.jsx(ha,{message:r("Jogging.Activating.lb"),error:e.activationError})})}return o.jsxs(T.Stack,{sx:{position:"relative",padding:"6px"},children:[a(),t]})}),Kl=Y.forwardRef(({label:e,value:t},r)=>o.jsxs(o.Fragment,{children:[e&&o.jsx(T.InputLabel,{children:e}),o.jsx(T.Chip,{ref:r,sx:{fontSize:"14px",opacity:.8,marginTop:"4px !important"},value:t})]})),Jg=Te.observer(({store:e})=>{const t=Y.useRef(null);function r(){const n=e.jogger.motionStream.rapidlyChangingMotionState.tcp_pose;return n?Lt.poseToWandelscriptString(n):""}return jr(()=>{t.current&&(t.current.textContent=r())}),o.jsx(T.Stack,{alignItems:"left",spacing:2,sx:{padding:"8px 16px",paddingTop:"16px","& label":{opacity:.7,fontSize:"12px",marginBottom:"4px"}},children:o.jsx(Kl,{label:"Pose",value:r(),ref:t})})});function Vg(){this.__data__=[],this.size=0}function Wl(e,t){return e===t||e!==e&&t!==t}function ga(e,t){for(var r=e.length;r--;)if(Wl(e[r][0],t))return r;return-1}var Gg=Array.prototype,zg=Gg.splice;function Kg(e){var t=this.__data__,r=ga(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():zg.call(t,r,1),--this.size,!0}function Wg(e){var t=this.__data__,r=ga(t,e);return r<0?void 0:t[r][1]}function Hg(e){return ga(this.__data__,e)>-1}function Xg(e,t){var r=this.__data__,n=ga(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}function wt(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}wt.prototype.clear=Vg;wt.prototype.delete=Kg;wt.prototype.get=Wg;wt.prototype.has=Hg;wt.prototype.set=Xg;function qg(){this.__data__=new wt,this.size=0}function Yg(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function Zg(e){return this.__data__.get(e)}function Qg(e){return this.__data__.has(e)}var ep="[object AsyncFunction]",tp="[object Function]",rp="[object GeneratorFunction]",np="[object Proxy]";function Hl(e){if(!Kt(e))return!1;var t=Yt(e);return t==tp||t==rp||t==ep||t==np}var Ua=_t["__core-js_shared__"],Zo=function(){var e=/[^.]+$/.exec(Ua&&Ua.keys&&Ua.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function ap(e){return!!Zo&&Zo in e}var sp=Function.prototype,op=sp.toString;function Zt(e){if(e!=null){try{return op.call(e)}catch{}try{return e+""}catch{}}return""}var ip=/[\\^$.*+?()[\]{}|]/g,lp=/^\[object .+?Constructor\]$/,up=Function.prototype,cp=Object.prototype,mp=up.toString,dp=cp.hasOwnProperty,fp=RegExp("^"+mp.call(dp).replace(ip,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function hp(e){if(!Kt(e)||ap(e))return!1;var t=Hl(e)?fp:lp;return t.test(Zt(e))}function gp(e,t){return e==null?void 0:e[t]}function Qt(e,t){var r=gp(e,t);return hp(r)?r:void 0}var qr=Qt(_t,"Map"),Yr=Qt(Object,"create");function pp(){this.__data__=Yr?Yr(null):{},this.size=0}function _p(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var yp="__lodash_hash_undefined__",bp=Object.prototype,xp=bp.hasOwnProperty;function vp(e){var t=this.__data__;if(Yr){var r=t[e];return r===yp?void 0:r}return xp.call(t,e)?t[e]:void 0}var jp=Object.prototype,Sp=jp.hasOwnProperty;function Rp(e){var t=this.__data__;return Yr?t[e]!==void 0:Sp.call(t,e)}var Ap="__lodash_hash_undefined__";function wp(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Yr&&t===void 0?Ap:t,this}function Xt(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Xt.prototype.clear=pp;Xt.prototype.delete=_p;Xt.prototype.get=vp;Xt.prototype.has=Rp;Xt.prototype.set=wp;function Pp(){this.size=0,this.__data__={hash:new Xt,map:new(qr||wt),string:new Xt}}function Cp(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function pa(e,t){var r=e.__data__;return Cp(t)?r[typeof t=="string"?"string":"hash"]:r.map}function Mp(e){var t=pa(this,e).delete(e);return this.size-=t?1:0,t}function kp(e){return pa(this,e).get(e)}function Ip(e){return pa(this,e).has(e)}function Tp(e,t){var r=pa(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}function Pt(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Pt.prototype.clear=Pp;Pt.prototype.delete=Mp;Pt.prototype.get=kp;Pt.prototype.has=Ip;Pt.prototype.set=Tp;var Op=200;function Ep(e,t){var r=this.__data__;if(r instanceof wt){var n=r.__data__;if(!qr||n.length<Op-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new Pt(n)}return r.set(e,t),this.size=r.size,this}function St(e){var t=this.__data__=new wt(e);this.size=t.size}St.prototype.clear=qg;St.prototype.delete=Yg;St.prototype.get=Zg;St.prototype.has=Qg;St.prototype.set=Ep;var Lp="__lodash_hash_undefined__";function Np(e){return this.__data__.set(e,Lp),this}function $p(e){return this.__data__.has(e)}function Gn(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new Pt;++t<r;)this.add(e[t])}Gn.prototype.add=Gn.prototype.push=Np;Gn.prototype.has=$p;function Fp(e,t){for(var r=-1,n=e==null?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}function Dp(e,t){return e.has(t)}var Up=1,Bp=2;function Xl(e,t,r,n,a,s){var i=r&Up,l=e.length,u=t.length;if(l!=u&&!(i&&u>l))return!1;var c=s.get(e),m=s.get(t);if(c&&m)return c==t&&m==e;var f=-1,d=!0,x=r&Bp?new Gn:void 0;for(s.set(e,t),s.set(t,e);++f<l;){var y=e[f],_=t[f];if(n)var p=i?n(_,y,f,t,e,s):n(y,_,f,e,t,s);if(p!==void 0){if(p)continue;d=!1;break}if(x){if(!Fp(t,function(j,R){if(!Dp(x,R)&&(y===j||a(y,j,r,n,s)))return x.push(R)})){d=!1;break}}else if(!(y===_||a(y,_,r,n,s))){d=!1;break}}return s.delete(e),s.delete(t),d}var Qo=_t.Uint8Array;function Jp(e){var t=-1,r=Array(e.size);return e.forEach(function(n,a){r[++t]=[a,n]}),r}function Vp(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var Gp=1,zp=2,Kp="[object Boolean]",Wp="[object Date]",Hp="[object Error]",Xp="[object Map]",qp="[object Number]",Yp="[object RegExp]",Zp="[object Set]",Qp="[object String]",e_="[object Symbol]",t_="[object ArrayBuffer]",r_="[object DataView]",ei=Nt?Nt.prototype:void 0,Ba=ei?ei.valueOf:void 0;function n_(e,t,r,n,a,s,i){switch(r){case r_:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case t_:return!(e.byteLength!=t.byteLength||!s(new Qo(e),new Qo(t)));case Kp:case Wp:case qp:return Wl(+e,+t);case Hp:return e.name==t.name&&e.message==t.message;case Yp:case Qp:return e==t+"";case Xp:var l=Jp;case Zp:var u=n&Gp;if(l||(l=Vp),e.size!=t.size&&!u)return!1;var c=i.get(e);if(c)return c==t;n|=zp,i.set(e,t);var m=Xl(l(e),l(t),n,a,s,i);return i.delete(e),m;case e_:if(Ba)return Ba.call(e)==Ba.call(t)}return!1}function a_(e,t){for(var r=-1,n=t.length,a=e.length;++r<n;)e[a+r]=t[r];return e}var pt=Array.isArray;function s_(e,t,r){var n=t(e);return pt(e)?n:a_(n,r(e))}function o_(e,t){for(var r=-1,n=e==null?0:e.length,a=0,s=[];++r<n;){var i=e[r];t(i,r,e)&&(s[a++]=i)}return s}function i_(){return[]}var l_=Object.prototype,u_=l_.propertyIsEnumerable,ti=Object.getOwnPropertySymbols,c_=ti?function(e){return e==null?[]:(e=Object(e),o_(ti(e),function(t){return u_.call(e,t)}))}:i_;function m_(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var d_="[object Arguments]";function ri(e){return Wt(e)&&Yt(e)==d_}var ql=Object.prototype,f_=ql.hasOwnProperty,h_=ql.propertyIsEnumerable,Yl=ri(function(){return arguments}())?ri:function(e){return Wt(e)&&f_.call(e,"callee")&&!h_.call(e,"callee")};function g_(){return!1}var Zl=typeof exports=="object"&&exports&&!exports.nodeType&&exports,ni=Zl&&typeof module=="object"&&module&&!module.nodeType&&module,p_=ni&&ni.exports===Zl,ai=p_?_t.Buffer:void 0,__=ai?ai.isBuffer:void 0,ls=__||g_,y_=9007199254740991,b_=/^(?:0|[1-9]\d*)$/;function Ql(e,t){var r=typeof e;return t=t??y_,!!t&&(r=="number"||r!="symbol"&&b_.test(e))&&e>-1&&e%1==0&&e<t}var x_=9007199254740991;function $s(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=x_}var v_="[object Arguments]",j_="[object Array]",S_="[object Boolean]",R_="[object Date]",A_="[object Error]",w_="[object Function]",P_="[object Map]",C_="[object Number]",M_="[object Object]",k_="[object RegExp]",I_="[object Set]",T_="[object String]",O_="[object WeakMap]",E_="[object ArrayBuffer]",L_="[object DataView]",N_="[object Float32Array]",$_="[object Float64Array]",F_="[object Int8Array]",D_="[object Int16Array]",U_="[object Int32Array]",B_="[object Uint8Array]",J_="[object Uint8ClampedArray]",V_="[object Uint16Array]",G_="[object Uint32Array]",me={};me[N_]=me[$_]=me[F_]=me[D_]=me[U_]=me[B_]=me[J_]=me[V_]=me[G_]=!0;me[v_]=me[j_]=me[E_]=me[S_]=me[L_]=me[R_]=me[A_]=me[w_]=me[P_]=me[C_]=me[M_]=me[k_]=me[I_]=me[T_]=me[O_]=!1;function z_(e){return Wt(e)&&$s(e.length)&&!!me[Yt(e)]}function K_(e){return function(t){return e(t)}}var eu=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Vr=eu&&typeof module=="object"&&module&&!module.nodeType&&module,W_=Vr&&Vr.exports===eu,Ja=W_&&pl.process,si=function(){try{var e=Vr&&Vr.require&&Vr.require("util").types;return e||Ja&&Ja.binding&&Ja.binding("util")}catch{}}(),oi=si&&si.isTypedArray,tu=oi?K_(oi):z_,H_=Object.prototype,X_=H_.hasOwnProperty;function q_(e,t){var r=pt(e),n=!r&&Yl(e),a=!r&&!n&&ls(e),s=!r&&!n&&!a&&tu(e),i=r||n||a||s,l=i?m_(e.length,String):[],u=l.length;for(var c in e)X_.call(e,c)&&!(i&&(c=="length"||a&&(c=="offset"||c=="parent")||s&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||Ql(c,u)))&&l.push(c);return l}var Y_=Object.prototype;function Z_(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||Y_;return e===r}function Q_(e,t){return function(r){return e(t(r))}}var ey=Q_(Object.keys,Object),ty=Object.prototype,ry=ty.hasOwnProperty;function ny(e){if(!Z_(e))return ey(e);var t=[];for(var r in Object(e))ry.call(e,r)&&r!="constructor"&&t.push(r);return t}function ru(e){return e!=null&&$s(e.length)&&!Hl(e)}function Fs(e){return ru(e)?q_(e):ny(e)}function ii(e){return s_(e,Fs,c_)}var ay=1,sy=Object.prototype,oy=sy.hasOwnProperty;function iy(e,t,r,n,a,s){var i=r&ay,l=ii(e),u=l.length,c=ii(t),m=c.length;if(u!=m&&!i)return!1;for(var f=u;f--;){var d=l[f];if(!(i?d in t:oy.call(t,d)))return!1}var x=s.get(e),y=s.get(t);if(x&&y)return x==t&&y==e;var _=!0;s.set(e,t),s.set(t,e);for(var p=i;++f<u;){d=l[f];var j=e[d],R=t[d];if(n)var C=i?n(R,j,d,t,e,s):n(j,R,d,e,t,s);if(!(C===void 0?j===R||a(j,R,r,n,s):C)){_=!1;break}p||(p=d=="constructor")}if(_&&!p){var w=e.constructor,S=t.constructor;w!=S&&"constructor"in e&&"constructor"in t&&!(typeof w=="function"&&w instanceof w&&typeof S=="function"&&S instanceof S)&&(_=!1)}return s.delete(e),s.delete(t),_}var us=Qt(_t,"DataView"),cs=Qt(_t,"Promise"),ms=Qt(_t,"Set"),ds=Qt(_t,"WeakMap"),li="[object Map]",ly="[object Object]",ui="[object Promise]",ci="[object Set]",mi="[object WeakMap]",di="[object DataView]",uy=Zt(us),cy=Zt(qr),my=Zt(cs),dy=Zt(ms),fy=Zt(ds),Et=Yt;(us&&Et(new us(new ArrayBuffer(1)))!=di||qr&&Et(new qr)!=li||cs&&Et(cs.resolve())!=ui||ms&&Et(new ms)!=ci||ds&&Et(new ds)!=mi)&&(Et=function(e){var t=Yt(e),r=t==ly?e.constructor:void 0,n=r?Zt(r):"";if(n)switch(n){case uy:return di;case cy:return li;case my:return ui;case dy:return ci;case fy:return mi}return t});var hy=1,fi="[object Arguments]",hi="[object Array]",pn="[object Object]",gy=Object.prototype,gi=gy.hasOwnProperty;function py(e,t,r,n,a,s){var i=pt(e),l=pt(t),u=i?hi:Et(e),c=l?hi:Et(t);u=u==fi?pn:u,c=c==fi?pn:c;var m=u==pn,f=c==pn,d=u==c;if(d&&ls(e)){if(!ls(t))return!1;i=!0,m=!1}if(d&&!m)return s||(s=new St),i||tu(e)?Xl(e,t,r,n,a,s):n_(e,t,u,r,n,a,s);if(!(r&hy)){var x=m&&gi.call(e,"__wrapped__"),y=f&&gi.call(t,"__wrapped__");if(x||y){var _=x?e.value():e,p=y?t.value():t;return s||(s=new St),a(_,p,r,n,s)}}return d?(s||(s=new St),iy(e,t,r,n,a,s)):!1}function _a(e,t,r,n,a){return e===t?!0:e==null||t==null||!Wt(e)&&!Wt(t)?e!==e&&t!==t:py(e,t,r,n,_a,a)}function _y(e,t){return _a(e,t)}const nu=({store:e})=>{const{t}=qt.useTranslation(),[r,n]=Y.useState(e.jogger.motionStream.rapidlyChangingMotionState.state.joint_limit_reached.limit_reached),a=Y.useRef(r);jr(()=>{const i=e.jogger.motionStream.rapidlyChangingMotionState.state.joint_limit_reached.limit_reached;_y(a.current,i)||(a.current=i,n(i))});const s=[];for(const[i,l]of r.entries())l&&s.push(i);return o.jsx(T.Typography,{color:"error",sx:{margin:"0.5rem 1rem",textAlign:"center",visibility:s.length?"visible":"hidden"},children:t("Jogging.JointLimitsReached.lb",{jointNumbers:s.map(i=>i+1).join(", ")})})},yy=({title:e,titleId:t,...r},n)=>$.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:21,height:21,fill:"none",viewBox:"0 0 23 22",ref:n,"aria-labelledby":t,...r},e?$.createElement("title",{id:t},e):null,$.createElement("path",{fill:"currentColor",d:"m21.71 16.262-1.09.346.66 2.071-2.923-1.461V9.857l-6.285-3.143V2.893L13.38 4.21l.812-.806-2.674-2.69-2.706 2.687.805.812L10.93 2.91v3.803L4.643 9.857v7.36l-2.914 1.458.657-2.067-1.09-.346-1.225 3.88 3.826 1.144.346-1.09-1.836-.583 2.874-1.436 6.22 3.109 6.217-3.11 2.877 1.439-1.831.581.345 1.09 3.82-1.143zM11.5 12.646l-4.94-2.47 4.94-2.47 4.94 2.47zm.572.993 5.143-2.572v6.083l-5.143 2.572zm-6.286-2.572 5.143 2.572v6.083L5.786 17.15z"})),by=Y.forwardRef(yy),xy=({title:e,titleId:t,...r},n)=>$.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:15,height:17,fill:"none",ref:n,"aria-labelledby":t,...r},e?$.createElement("title",{id:t},e):null,$.createElement("path",{fill:"currentColor",d:"M12.9 7.667c-.133-.534-.533-1-1-1.134L10.367 6l-.4 1.267L11.5 7.8c.067 0 .133.067.133.2l1.067 4.867a.32.32 0 0 1-.133.4l-2.267 1.8c-.267.2-.333.666-.133.933s.666.333.933.133l2.267-1.8c.533-.4.733-1.133.6-1.733zM12.5 0H1.833A1.65 1.65 0 0 0 .167 1.667v1.4c0 .866.733 1.6 1.666 1.6h10.734c.866 0 1.6-.734 1.6-1.667V1.667A1.65 1.65 0 0 0 12.5 0M1.633 12.8 2.7 8c0-.067.067-.133.133-.2l1.534-.533-.4-1.2-1.534.466c-.533.2-.933.6-1 1.134L.367 12.533c-.134.667.066 1.334.6 1.734l2.266 1.8c.267.266.734.2.934-.067s.2-.733-.134-.933l-2.266-1.8c-.134-.134-.2-.267-.134-.467"})),vy=Y.forwardRef(xy),jy=Te.observer(({store:e})=>{var n;const{t}=qt.useTranslation();function r(a,s){(s==="coordsys"||s==="tool")&&e.setSelectedOrientation(s)}return o.jsxs(o.Fragment,{children:[o.jsxs(T.Stack,{direction:"row",alignItems:"center",spacing:2,sx:{padding:"6px 16px","& label":{opacity:.7,fontSize:"12px",marginBottom:"4px"}},children:[o.jsxs(T.Stack,{width:"50%",children:[o.jsx(T.InputLabel,{id:"jogging-coord-select",children:"Coordinate Sys."}),o.jsx(T.Select,{labelId:"jogging-coord-select",value:e.selectedCoordSystemId,size:"small",variant:"filled",displayEmpty:!0,onChange:a=>{e.setSelectedCoordSystemId(a.target.value)},disabled:e.isLocked,children:e.coordSystems.map(a=>o.jsx(T.MenuItem,{value:a.coordinate_system,children:a.name&&e.coordSystemCountByName[a.name]>1?`${a.name} / ${a.coordinate_system}`:a.name||a.coordinate_system},a.coordinate_system))})]}),o.jsxs(T.Stack,{width:"50%",children:[o.jsx(T.InputLabel,{id:"jogging-tcp-select",children:"TCP"}),o.jsx(T.Select,{labelId:"jogging-tcp-select",value:e.selectedTcpId,size:"small",variant:"filled",onChange:a=>{e.setSelectedTcpId(a.target.value)},disabled:e.isLocked,children:e.tcps.map(a=>o.jsx(T.MenuItem,{value:a.id,children:a.id},a.id))})]})]}),o.jsxs(T.Stack,{direction:"row",alignItems:"center",spacing:2,sx:{padding:"6px 16px","& label":{opacity:.7,fontSize:"12px",marginBottom:"4px"}},children:[o.jsxs(T.Stack,{width:"50%",children:[o.jsx(T.InputLabel,{id:"orientation-select",children:t("Jogging.Cartesian.Orientation.lb")}),o.jsxs(T.ToggleButtonGroup,{value:e.selectedOrientation,onChange:r,exclusive:!0,"aria-labelledby":"orientation-select",disabled:e.isLocked,children:[o.jsx(T.ToggleButton,{value:"coordsys",sx:{flexGrow:1},children:o.jsx(by,{})}),o.jsx(T.ToggleButton,{value:"tool",sx:{flexGrow:1},children:o.jsx(vy,{})})]})]}),o.jsxs(T.Stack,{width:"50%",children:[o.jsx(T.InputLabel,{id:"jogging-increment-select",children:"Increment"}),o.jsxs(T.Select,{labelId:"jogging-increment-select",size:"small",variant:"filled",value:((n=e.activeDiscreteIncrement)==null?void 0:n.id)||"continuous",onChange:a=>{e.setSelectedIncrementId(a.target.value)},disabled:e.isLocked,children:[o.jsx(T.MenuItem,{value:"continuous",children:t("Jogging.Increment.Continuous.dd")},"continuous"),e.selectedOrientation==="tool"?null:e.discreteIncrementOptions.map(a=>o.jsx(T.MenuItem,{value:a.id,children:e.currentMotionType==="translate"?`${a.mm}mm`:`${a.degrees}°`},a.id))]})]})]})]})});function Sy(e,t,r=(n,a)=>n===a){return e.length===t.length&&e.every((n,a)=>r(n,t[a]))}const Ry=2;function au(e,t){return e-t}function pi(e,t){var r;const{index:n}=(r=e.reduce((a,s,i)=>{const l=Math.abs(t-s);return a===null||l<a.distance||l===a.distance?{distance:l,index:i}:a},null))!=null?r:{};return n}function _n(e,t){if(t.current!==void 0&&e.changedTouches){const r=e;for(let n=0;n<r.changedTouches.length;n+=1){const a=r.changedTouches[n];if(a.identifier===t.current)return{x:a.clientX,y:a.clientY}}return!1}return{x:e.clientX,y:e.clientY}}function zn(e,t,r){return(e-t)*100/(r-t)}function Ay(e,t,r){return(r-t)*e+t}function wy(e){if(Math.abs(e)<1){const r=e.toExponential().split("e-"),n=r[0].split(".")[1];return(n?n.length:0)+parseInt(r[1],10)}const t=e.toString().split(".")[1];return t?t.length:0}function Py(e,t,r){const n=Math.round((e-r)/t)*t+r;return Number(n.toFixed(wy(t)))}function _i({values:e,newValue:t,index:r}){const n=e.slice();return n[r]=t,n.sort(au)}function yn({sliderRef:e,activeIndex:t,setActive:r}){var n,a;const s=pr(e.current);if(!((n=e.current)!=null&&n.contains(s.activeElement))||Number(s==null||(a=s.activeElement)==null?void 0:a.getAttribute("data-index"))!==t){var i;(i=e.current)==null||i.querySelector(`[type="range"][data-index="${t}"]`).focus()}r&&r(t)}function bn(e,t){return typeof e=="number"&&typeof t=="number"?e===t:typeof e=="object"&&typeof t=="object"?Sy(e,t):!1}const Cy={horizontal:{offset:e=>({left:`${e}%`}),leap:e=>({width:`${e}%`})},"horizontal-reverse":{offset:e=>({right:`${e}%`}),leap:e=>({width:`${e}%`})},vertical:{offset:e=>({bottom:`${e}%`}),leap:e=>({height:`${e}%`})}},My=e=>e;let xn;function yi(){return xn===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?xn=CSS.supports("touch-action","none"):xn=!0),xn}function ky(e){const{"aria-labelledby":t,defaultValue:r,disabled:n=!1,disableSwap:a=!1,isRtl:s=!1,marks:i=!1,max:l=100,min:u=0,name:c,onChange:m,onChangeCommitted:f,orientation:d="horizontal",rootRef:x,scale:y=My,step:_=1,shiftStep:p=10,tabIndex:j,value:R}=e,C=$.useRef(),[w,S]=$.useState(-1),[P,M]=$.useState(-1),[K,le]=$.useState(!1),ce=$.useRef(0),[D,q]=Qi({controlled:R,default:r??u,name:"Slider"}),G=m&&((I,L,F)=>{const W=I.nativeEvent||I,Q=new W.constructor(W.type,W);Object.defineProperty(Q,"target",{writable:!0,value:{value:L,name:c}}),m(Q,L,F)}),Z=Array.isArray(D);let X=Z?D.slice().sort(au):[D];X=X.map(I=>I==null?u:dr(I,u,l));const je=i===!0&&_!==null?[...Array(Math.floor((l-u)/_)+1)].map((I,L)=>({value:u+_*L})):i||[],ue=je.map(I=>I.value),{isFocusVisibleRef:ee,onBlur:Ae,onFocus:Oe,ref:nt}=el(),[yt,We]=$.useState(-1),Se=$.useRef(),Ct=Ln(nt,Se),lt=Ln(x,Ct),He=I=>L=>{var F;const W=Number(L.currentTarget.getAttribute("data-index"));Oe(L),ee.current===!0&&We(W),M(W),I==null||(F=I.onFocus)==null||F.call(I,L)},Be=I=>L=>{var F;Ae(L),ee.current===!1&&We(-1),M(-1),I==null||(F=I.onBlur)==null||F.call(I,L)},ut=(I,L)=>{const F=Number(I.currentTarget.getAttribute("data-index")),W=X[F],Q=ue.indexOf(W);let H=L;if(je&&_==null){const Ve=ue[ue.length-1];H>Ve?H=Ve:H<ue[0]?H=ue[0]:H=H<W?ue[Q-1]:ue[Q+1]}if(H=dr(H,u,l),Z){a&&(H=dr(H,X[F-1]||-1/0,X[F+1]||1/0));const Ve=H;H=_i({values:X,newValue:H,index:F});let Xe=F;a||(Xe=H.indexOf(Ve)),yn({sliderRef:Se,activeIndex:Xe})}q(H),We(F),G&&!bn(H,D)&&G(I,H,F),f&&f(I,H)},ct=I=>L=>{var F;if(_!==null){const W=Number(L.currentTarget.getAttribute("data-index")),Q=X[W];let H=null;(L.key==="ArrowLeft"||L.key==="ArrowDown")&&L.shiftKey||L.key==="PageDown"?H=Math.max(Q-p,u):((L.key==="ArrowRight"||L.key==="ArrowUp")&&L.shiftKey||L.key==="PageUp")&&(H=Math.min(Q+p,l)),H!==null&&(ut(L,H),L.preventDefault())}I==null||(F=I.onKeyDown)==null||F.call(I,L)};js(()=>{if(n&&Se.current.contains(document.activeElement)){var I;(I=document.activeElement)==null||I.blur()}},[n]),n&&w!==-1&&S(-1),n&&yt!==-1&&We(-1);const Ft=I=>L=>{var F;(F=I.onChange)==null||F.call(I,L),ut(L,L.target.valueAsNumber)},bt=$.useRef();let Je=d;s&&d==="horizontal"&&(Je+="-reverse");const O=({finger:I,move:L=!1})=>{const{current:F}=Se,{width:W,height:Q,bottom:H,left:Ve}=F.getBoundingClientRect();let Xe;Je.indexOf("vertical")===0?Xe=(H-I.y)/Q:Xe=(I.x-Ve)/W,Je.indexOf("-reverse")!==-1&&(Xe=1-Xe);let re;if(re=Ay(Xe,u,l),_)re=Py(re,_,u);else{const It=pi(ue,re);re=ue[It]}re=dr(re,u,l);let Ne=0;if(Z){L?Ne=bt.current:Ne=pi(X,re),a&&(re=dr(re,X[Ne-1]||-1/0,X[Ne+1]||1/0));const It=re;re=_i({values:X,newValue:re,index:Ne}),a&&L||(Ne=re.indexOf(It),bt.current=Ne)}return{newValue:re,activeIndex:Ne}},te=wn(I=>{const L=_n(I,C);if(!L)return;if(ce.current+=1,I.type==="mousemove"&&I.buttons===0){fe(I);return}const{newValue:F,activeIndex:W}=O({finger:L,move:!0});yn({sliderRef:Se,activeIndex:W,setActive:S}),q(F),!K&&ce.current>Ry&&le(!0),G&&!bn(F,D)&&G(I,F,W)}),fe=wn(I=>{const L=_n(I,C);if(le(!1),!L)return;const{newValue:F}=O({finger:L,move:!0});S(-1),I.type==="touchend"&&M(-1),f&&f(I,F),C.current=void 0,Le()}),Ee=wn(I=>{if(n)return;yi()||I.preventDefault();const L=I.changedTouches[0];L!=null&&(C.current=L.identifier);const F=_n(I,C);if(F!==!1){const{newValue:Q,activeIndex:H}=O({finger:F});yn({sliderRef:Se,activeIndex:H,setActive:S}),q(Q),G&&!bn(Q,D)&&G(I,Q,H)}ce.current=0;const W=pr(Se.current);W.addEventListener("touchmove",te,{passive:!0}),W.addEventListener("touchend",fe,{passive:!0})}),Le=$.useCallback(()=>{const I=pr(Se.current);I.removeEventListener("mousemove",te),I.removeEventListener("mouseup",fe),I.removeEventListener("touchmove",te),I.removeEventListener("touchend",fe)},[fe,te]);$.useEffect(()=>{const{current:I}=Se;return I.addEventListener("touchstart",Ee,{passive:yi()}),()=>{I.removeEventListener("touchstart",Ee),Le()}},[Le,Ee]),$.useEffect(()=>{n&&Le()},[n,Le]);const Mt=I=>L=>{var F;if((F=I.onMouseDown)==null||F.call(I,L),n||L.defaultPrevented||L.button!==0)return;L.preventDefault();const W=_n(L,C);if(W!==!1){const{newValue:H,activeIndex:Ve}=O({finger:W});yn({sliderRef:Se,activeIndex:Ve,setActive:S}),q(H),G&&!bn(H,D)&&G(L,H,Ve)}ce.current=0;const Q=pr(Se.current);Q.addEventListener("mousemove",te,{passive:!0}),Q.addEventListener("mouseup",fe)},Re=zn(Z?X[0]:u,u,l),kt=zn(X[X.length-1],u,l)-Re,Dt=(I={})=>{const L=Pn(I),F={onMouseDown:Mt(L||{})},W=k({},L,F);return k({},I,{ref:lt},W)},Ar=I=>L=>{var F;(F=I.onMouseOver)==null||F.call(I,L);const W=Number(L.currentTarget.getAttribute("data-index"));M(W)},wr=I=>L=>{var F;(F=I.onMouseLeave)==null||F.call(I,L),M(-1)};return{active:w,axis:Je,axisProps:Cy,dragging:K,focusedThumbIndex:yt,getHiddenInputProps:(I={})=>{var L;const F=Pn(I),W={onChange:Ft(F||{}),onFocus:He(F||{}),onBlur:Be(F||{}),onKeyDown:ct(F||{})},Q=k({},F,W);return k({tabIndex:j,"aria-labelledby":t,"aria-orientation":d,"aria-valuemax":y(l),"aria-valuemin":y(u),name:c,type:"range",min:e.min,max:e.max,step:e.step===null&&e.marks?"any":(L=e.step)!=null?L:void 0,disabled:n},I,Q,{style:k({},xd,{direction:s?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:Dt,getThumbProps:(I={})=>{const L=Pn(I),F={onMouseOver:Ar(L||{}),onMouseLeave:wr(L||{})};return k({},I,L,F)},marks:je,open:P,range:Z,rootRef:lt,trackLeap:kt,trackOffset:Re,values:X,getThumbStyle:I=>({pointerEvents:w!==-1&&w!==I?"none":void 0})}}const Iy=e=>!e||!Br(e);function Ty(e){return nn("MuiSlider",e)}const Qe=Hi("MuiSlider",["root","active","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","disabled","dragging","focusVisible","mark","markActive","marked","markLabel","markLabelActive","rail","sizeSmall","thumb","thumbColorPrimary","thumbColorSecondary","thumbColorError","thumbColorSuccess","thumbColorInfo","thumbColorWarning","track","trackInverted","trackFalse","thumbSizeSmall","valueLabel","valueLabelOpen","valueLabelCircle","valueLabelLabel","vertical"]),Oy=e=>{const{open:t}=e;return{offset:gt(t&&Qe.valueLabelOpen),circle:Qe.valueLabelCircle,label:Qe.valueLabelLabel}};function su(e){const{children:t,className:r,value:n}=e,a=Oy(e);return t?$.cloneElement(t,{className:gt(t.props.className)},o.jsxs($.Fragment,{children:[t.props.children,o.jsx("span",{className:gt(a.offset,r),"aria-hidden":!0,children:o.jsx("span",{className:a.circle,children:o.jsx("span",{className:a.label,children:n})})})]})):null}process.env.NODE_ENV!=="production"&&(su.propTypes={children:h.element.isRequired,className:h.string,value:h.node});const Ey=["aria-label","aria-valuetext","aria-labelledby","component","components","componentsProps","color","classes","className","disableSwap","disabled","getAriaLabel","getAriaValueText","marks","max","min","name","onChange","onChangeCommitted","orientation","shiftStep","size","step","scale","slotProps","slots","tabIndex","track","value","valueLabelDisplay","valueLabelFormat"];function bi(e){return e}const Ly=At("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`color${Pe(r.color)}`],r.size!=="medium"&&t[`size${Pe(r.size)}`],r.marked&&t.marked,r.orientation==="vertical"&&t.vertical,r.track==="inverted"&&t.trackInverted,r.track===!1&&t.trackFalse]}})(({theme:e})=>{var t;return{borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",WebkitTapHighlightColor:"transparent","@media print":{colorAdjust:"exact"},[`&.${Qe.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${Qe.dragging}`]:{[`& .${Qe.thumb}, & .${Qe.track}`]:{transition:"none"}},variants:[...Object.keys(((t=e.vars)!=null?t:e).palette).filter(r=>{var n;return((n=e.vars)!=null?n:e).palette[r].main}).map(r=>({props:{color:r},style:{color:(e.vars||e).palette[r].main}})),{props:{orientation:"horizontal"},style:{height:4,width:"100%",padding:"13px 0","@media (pointer: coarse)":{padding:"20px 0"}}},{props:{orientation:"horizontal",size:"small"},style:{height:2}},{props:{orientation:"horizontal",marked:!0},style:{marginBottom:20}},{props:{orientation:"vertical"},style:{height:"100%",width:4,padding:"0 13px","@media (pointer: coarse)":{padding:"0 20px"}}},{props:{orientation:"vertical",size:"small"},style:{width:2}},{props:{orientation:"vertical",marked:!0},style:{marginRight:44}}]}}),Ny=At("span",{name:"MuiSlider",slot:"Rail",overridesResolver:(e,t)=>t.rail})({display:"block",position:"absolute",borderRadius:"inherit",backgroundColor:"currentColor",opacity:.38,variants:[{props:{orientation:"horizontal"},style:{width:"100%",height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{height:"100%",width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:"inverted"},style:{opacity:1}}]}),$y=At("span",{name:"MuiSlider",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e})=>{var t;return{display:"block",position:"absolute",borderRadius:"inherit",border:"1px solid currentColor",backgroundColor:"currentColor",transition:e.transitions.create(["left","width","bottom","height"],{duration:e.transitions.duration.shortest}),variants:[{props:{size:"small"},style:{border:"none"}},{props:{orientation:"horizontal"},style:{height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:!1},style:{display:"none"}},...Object.keys(((t=e.vars)!=null?t:e).palette).filter(r=>{var n;return((n=e.vars)!=null?n:e).palette[r].main}).map(r=>({props:{color:r,track:"inverted"},style:k({},e.vars?{backgroundColor:e.vars.palette.Slider[`${r}Track`],borderColor:e.vars.palette.Slider[`${r}Track`]}:k({backgroundColor:Za(e.palette[r].main,.62),borderColor:Za(e.palette[r].main,.62)},e.applyStyles("dark",{backgroundColor:Ya(e.palette[r].main,.5)}),e.applyStyles("dark",{borderColor:Ya(e.palette[r].main,.5)})))}))]}}),Fy=At("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.thumb,t[`thumbColor${Pe(r.color)}`],r.size!=="medium"&&t[`thumbSize${Pe(r.size)}`]]}})(({theme:e})=>{var t;return{position:"absolute",width:20,height:20,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:e.transitions.create(["box-shadow","left","bottom"],{duration:e.transitions.duration.shortest}),"&::before":{position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:(e.vars||e).shadows[2]},"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,height:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"},[`&.${Qe.disabled}`]:{"&:hover":{boxShadow:"none"}},variants:[{props:{size:"small"},style:{width:12,height:12,"&::before":{boxShadow:"none"}}},{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-50%, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 50%)"}},...Object.keys(((t=e.vars)!=null?t:e).palette).filter(r=>{var n;return((n=e.vars)!=null?n:e).palette[r].main}).map(r=>({props:{color:r},style:{[`&:hover, &.${Qe.focusVisible}`]:k({},e.vars?{boxShadow:`0px 0px 0px 8px rgba(${e.vars.palette[r].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 8px ${fo(e.palette[r].main,.16)}`},{"@media (hover: none)":{boxShadow:"none"}}),[`&.${Qe.active}`]:k({},e.vars?{boxShadow:`0px 0px 0px 14px rgba(${e.vars.palette[r].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 14px ${fo(e.palette[r].main,.16)}`})}}))]}}),Dy=At(su,{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(e,t)=>t.valueLabel})(({theme:e})=>k({zIndex:1,whiteSpace:"nowrap"},e.typography.body2,{fontWeight:500,transition:e.transitions.create(["transform"],{duration:e.transitions.duration.shortest}),position:"absolute",backgroundColor:(e.vars||e).palette.grey[600],borderRadius:2,color:(e.vars||e).palette.common.white,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.25rem 0.75rem",variants:[{props:{orientation:"horizontal"},style:{transform:"translateY(-100%) scale(0)",top:"-10px",transformOrigin:"bottom center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, 50%) rotate(45deg)",backgroundColor:"inherit",bottom:0,left:"50%"},[`&.${Qe.valueLabelOpen}`]:{transform:"translateY(-100%) scale(1)"}}},{props:{orientation:"vertical"},style:{transform:"translateY(-50%) scale(0)",right:"30px",top:"50%",transformOrigin:"right center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, -50%) rotate(45deg)",backgroundColor:"inherit",right:-8,top:"50%"},[`&.${Qe.valueLabelOpen}`]:{transform:"translateY(-50%) scale(1)"}}},{props:{size:"small"},style:{fontSize:e.typography.pxToRem(12),padding:"0.25rem 0.5rem"}},{props:{orientation:"vertical",size:"small"},style:{right:"20px"}}]})),Uy=At("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>Cs(e)&&e!=="markActive",overridesResolver:(e,t)=>{const{markActive:r}=e;return[t.mark,r&&t.markActive]}})(({theme:e})=>({position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor",variants:[{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-1px, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 1px)"}},{props:{markActive:!0},style:{backgroundColor:(e.vars||e).palette.background.paper,opacity:.8}}]})),By=At("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>Cs(e)&&e!=="markLabelActive",overridesResolver:(e,t)=>t.markLabel})(({theme:e})=>k({},e.typography.body2,{color:(e.vars||e).palette.text.secondary,position:"absolute",whiteSpace:"nowrap",variants:[{props:{orientation:"horizontal"},style:{top:30,transform:"translateX(-50%)","@media (pointer: coarse)":{top:40}}},{props:{orientation:"vertical"},style:{left:36,transform:"translateY(50%)","@media (pointer: coarse)":{left:44}}},{props:{markLabelActive:!0},style:{color:(e.vars||e).palette.text.primary}}]})),Jy=e=>{const{disabled:t,dragging:r,marked:n,orientation:a,track:s,classes:i,color:l,size:u}=e,c={root:["root",t&&"disabled",r&&"dragging",n&&"marked",a==="vertical"&&"vertical",s==="inverted"&&"trackInverted",s===!1&&"trackFalse",l&&`color${Pe(l)}`,u&&`size${Pe(u)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",u&&`thumbSize${Pe(u)}`,l&&`thumbColor${Pe(l)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return Rs(c,Ty,i)},Vy=({children:e})=>e,ou=$.forwardRef(function(t,r){var n,a,s,i,l,u,c,m,f,d,x,y,_,p,j,R,C,w,S,P,M,K,le,ce;const D=Ms({props:t,name:"MuiSlider"}),q=wd(),{"aria-label":G,"aria-valuetext":Z,"aria-labelledby":X,component:je="span",components:ue={},componentsProps:ee={},color:Ae="primary",classes:Oe,className:nt,disableSwap:yt=!1,disabled:We=!1,getAriaLabel:Se,getAriaValueText:Ct,marks:lt=!1,max:He=100,min:Be=0,orientation:ut="horizontal",shiftStep:ct=10,size:Ft="medium",step:bt=1,scale:Je=bi,slotProps:O,slots:te,track:fe="normal",valueLabelDisplay:Ee="off",valueLabelFormat:Le=bi}=D,Mt=Ue(D,Ey),Re=k({},D,{isRtl:q,max:He,min:Be,classes:Oe,disabled:We,disableSwap:yt,orientation:ut,marks:lt,color:Ae,size:Ft,step:bt,shiftStep:ct,scale:Je,track:fe,valueLabelDisplay:Ee,valueLabelFormat:Le}),{axisProps:kt,getRootProps:Dt,getHiddenInputProps:Ar,getThumbProps:wr,open:Pr,active:er,axis:at,focusedThumbIndex:I,range:L,dragging:F,marks:W,values:Q,trackOffset:H,trackLeap:Ve,getThumbStyle:Xe}=ky(k({},Re,{rootRef:r}));Re.marked=W.length>0&&W.some(N=>N.label),Re.dragging=F,Re.focusedThumbIndex=I;const re=Jy(Re),Ne=(n=(a=te==null?void 0:te.root)!=null?a:ue.Root)!=null?n:Ly,It=(s=(i=te==null?void 0:te.rail)!=null?i:ue.Rail)!=null?s:Ny,tr=(l=(u=te==null?void 0:te.track)!=null?u:ue.Track)!=null?l:$y,Cr=(c=(m=te==null?void 0:te.thumb)!=null?m:ue.Thumb)!=null?c:Fy,xt=(f=(d=te==null?void 0:te.valueLabel)!=null?d:ue.ValueLabel)!=null?f:Dy,Ut=(x=(y=te==null?void 0:te.mark)!=null?y:ue.Mark)!=null?x:Uy,Bt=(_=(p=te==null?void 0:te.markLabel)!=null?p:ue.MarkLabel)!=null?_:By,Mr=(j=(R=te==null?void 0:te.input)!=null?R:ue.Input)!=null?j:"input",kr=(C=O==null?void 0:O.root)!=null?C:ee.root,un=(w=O==null?void 0:O.rail)!=null?w:ee.rail,Ir=(S=O==null?void 0:O.track)!=null?S:ee.track,rr=(P=O==null?void 0:O.thumb)!=null?P:ee.thumb,nr=(M=O==null?void 0:O.valueLabel)!=null?M:ee.valueLabel,ba=(K=O==null?void 0:O.mark)!=null?K:ee.mark,xa=(le=O==null?void 0:O.markLabel)!=null?le:ee.markLabel,cn=(ce=O==null?void 0:O.input)!=null?ce:ee.input,mn=Tt({elementType:Ne,getSlotProps:Dt,externalSlotProps:kr,externalForwardedProps:Mt,additionalProps:k({},Iy(Ne)&&{as:je}),ownerState:k({},Re,kr==null?void 0:kr.ownerState),className:[re.root,nt]}),va=Tt({elementType:It,externalSlotProps:un,ownerState:Re,className:re.rail}),ja=Tt({elementType:tr,externalSlotProps:Ir,additionalProps:{style:k({},kt[at].offset(H),kt[at].leap(Ve))},ownerState:k({},Re,Ir==null?void 0:Ir.ownerState),className:re.track}),Tr=Tt({elementType:Cr,getSlotProps:wr,externalSlotProps:rr,ownerState:k({},Re,rr==null?void 0:rr.ownerState),className:re.thumb}),Sa=Tt({elementType:xt,externalSlotProps:nr,ownerState:k({},Re,nr==null?void 0:nr.ownerState),className:re.valueLabel}),g=Tt({elementType:Ut,externalSlotProps:ba,ownerState:Re,className:re.mark}),A=Tt({elementType:Bt,externalSlotProps:xa,ownerState:Re,className:re.markLabel}),E=Tt({elementType:Mr,getSlotProps:Ar,externalSlotProps:cn,ownerState:Re});return o.jsxs(Ne,k({},mn,{children:[o.jsx(It,k({},va)),o.jsx(tr,k({},ja)),W.filter(N=>N.value>=Be&&N.value<=He).map((N,U)=>{const ne=zn(N.value,Be,He),V=kt[at].offset(ne);let B;return fe===!1?B=Q.indexOf(N.value)!==-1:B=fe==="normal"&&(L?N.value>=Q[0]&&N.value<=Q[Q.length-1]:N.value<=Q[0])||fe==="inverted"&&(L?N.value<=Q[0]||N.value>=Q[Q.length-1]:N.value>=Q[0]),o.jsxs($.Fragment,{children:[o.jsx(Ut,k({"data-index":U},g,!Br(Ut)&&{markActive:B},{style:k({},V,g.style),className:gt(g.className,B&&re.markActive)})),N.label!=null?o.jsx(Bt,k({"aria-hidden":!0,"data-index":U},A,!Br(Bt)&&{markLabelActive:B},{style:k({},V,A.style),className:gt(re.markLabel,A.className,B&&re.markLabelActive),children:N.label})):null]},U)}),Q.map((N,U)=>{const ne=zn(N,Be,He),V=kt[at].offset(ne),B=Ee==="off"?Vy:xt;return o.jsx(B,k({},!Br(B)&&{valueLabelFormat:Le,valueLabelDisplay:Ee,value:typeof Le=="function"?Le(Je(N),U):Le,index:U,open:Pr===U||er===U||Ee==="on",disabled:We},Sa,{children:o.jsx(Cr,k({"data-index":U},Tr,{className:gt(re.thumb,Tr.className,er===U&&re.active,I===U&&re.focusVisible),style:k({},V,Xe(U),Tr.style),children:o.jsx(Mr,k({"data-index":U,"aria-label":Se?Se(U):G,"aria-valuenow":Je(N),"aria-labelledby":X,"aria-valuetext":Ct?Ct(Je(N),U):Z,value:Q[U]},E))}))}),U)})]}))});process.env.NODE_ENV!=="production"&&(ou.propTypes={"aria-label":ao(h.string,e=>Array.isArray(e.value||e.defaultValue)&&e["aria-label"]!=null?new Error("MUI: You need to use the `getAriaLabel` prop instead of `aria-label` when using a range slider."):null),"aria-labelledby":h.string,"aria-valuetext":ao(h.string,e=>Array.isArray(e.value||e.defaultValue)&&e["aria-valuetext"]!=null?new Error("MUI: You need to use the `getAriaValueText` prop instead of `aria-valuetext` when using a range slider."):null),children:h.node,classes:h.object,className:h.string,color:h.oneOfType([h.oneOf(["primary","secondary","error","info","success","warning"]),h.string]),components:h.shape({Input:h.elementType,Mark:h.elementType,MarkLabel:h.elementType,Rail:h.elementType,Root:h.elementType,Thumb:h.elementType,Track:h.elementType,ValueLabel:h.elementType}),componentsProps:h.shape({input:h.oneOfType([h.func,h.object]),mark:h.oneOfType([h.func,h.object]),markLabel:h.oneOfType([h.func,h.object]),rail:h.oneOfType([h.func,h.object]),root:h.oneOfType([h.func,h.object]),thumb:h.oneOfType([h.func,h.object]),track:h.oneOfType([h.func,h.object]),valueLabel:h.oneOfType([h.func,h.shape({children:h.element,className:h.string,open:h.bool,style:h.object,value:h.number,valueLabelDisplay:h.oneOf(["auto","off","on"])})])}),defaultValue:h.oneOfType([h.arrayOf(h.number),h.number]),disabled:h.bool,disableSwap:h.bool,getAriaLabel:h.func,getAriaValueText:h.func,marks:h.oneOfType([h.arrayOf(h.shape({label:h.node,value:h.number.isRequired})),h.bool]),max:h.number,min:h.number,name:h.string,onChange:h.func,onChangeCommitted:h.func,orientation:h.oneOf(["horizontal","vertical"]),scale:h.func,shiftStep:h.number,size:h.oneOfType([h.oneOf(["small","medium"]),h.string]),slotProps:h.shape({input:h.oneOfType([h.func,h.object]),mark:h.oneOfType([h.func,h.object]),markLabel:h.oneOfType([h.func,h.object]),rail:h.oneOfType([h.func,h.object]),root:h.oneOfType([h.func,h.object]),thumb:h.oneOfType([h.func,h.object]),track:h.oneOfType([h.func,h.object]),valueLabel:h.oneOfType([h.func,h.shape({children:h.element,className:h.string,open:h.bool,style:h.object,value:h.number,valueLabelDisplay:h.oneOf(["auto","off","on"])})])}),slots:h.shape({input:h.elementType,mark:h.elementType,markLabel:h.elementType,rail:h.elementType,root:h.elementType,thumb:h.elementType,track:h.elementType,valueLabel:h.elementType}),step:h.number,sx:h.oneOfType([h.arrayOf(h.oneOfType([h.func,h.object,h.bool])),h.func,h.object]),tabIndex:h.number,track:h.oneOf(["inverted","normal",!1]),value:h.oneOfType([h.arrayOf(h.number),h.number]),valueLabelDisplay:h.oneOf(["auto","off","on"]),valueLabelFormat:h.oneOfType([h.func,h.string])});var Gy="[object Number]";function zy(e){return typeof e=="number"||Wt(e)&&Yt(e)==Gy}const iu=Te.observer(e=>{const t=T.useTheme(),r=e.valueLabelFormat||(a=>`${a}`);function n(a,s){s===e.velocity||!zy(s)||e.onVelocityChange(s)}return o.jsxs(o.Fragment,{children:[o.jsx(T.Typography,{sx:{textAlign:"center",fontSize:"14px",opacity:.8,lineHeight:1,color:t.palette.text.primary},children:r(e.velocity)}),o.jsx(ou,{value:e.velocity,color:"secondary",onChange:n,min:e.min,max:e.max,"aria-labelledby":"input-slider",disabled:e.disabled,sx:{"& .MuiSlider-valueLabelOpen":{zIndex:100,backgroundColor:"transparent",top:"0px"}}})]})}),lu=Te.observer(({store:e})=>{const{t}=qt.useTranslation(),r=Te.useLocalObservable(()=>({get valueLabelFormat(){return e.currentMotionType==="translate"?n=>`v=${t("Jogging.Cartesian.Translation.velocityMmPerSec.lb",{amount:n})}`:n=>`v=${t("Jogging.Cartesian.Rotation.velocityDegPerSec.lb",{amount:n})}`}}));return o.jsx(T.Stack,{sx:{margin:"0px 20px",marginBottom:"6px"},children:o.jsx(T.Stack,{sx:{width:"380px",maxWidth:"90%",margin:"auto"},children:o.jsx(iu,{velocity:e.velocityInCurrentUnits,min:e.minVelocityInCurrentUnits,max:e.maxVelocityInCurrentUnits,onVelocityChange:e.setVelocityFromSlider,disabled:e.isLocked,valueLabelFormat:r.valueLabelFormat})})})}),Ky=Te.observer(({store:e,children:t})=>{var f,d,x,y,_,p,j,R,C;const{t:r}=qt.useTranslation(),n=T.useTheme();function a(w,S){(S==="translate"||S==="rotate")&&e.setSelectedCartesianMotionType(S)}ks(()=>[e.selectedCoordSystemId,e.selectedTcpId],()=>{e.jogger.motionStream.motionStateSocket.changeUrl(e.jogger.nova.makeWebsocketURL(`/motion-groups/${e.jogger.motionGroupId}/state-stream?tcp=${e.selectedTcpId}&response_coordinate_system=${e.selectedCoordSystemId}`))},{fireImmediately:!0});async function s(w,S){const P=e.jogger.motionStream.rapidlyChangingMotionState.tcp_pose,M=e.jogger.motionStream.rapidlyChangingMotionState.state.joint_position;P&&await e.withMotionLock(async()=>{await e.jogger.runIncrementalCartesianMotion({currentTcpPose:P,currentJoints:M,coordSystemId:e.activeCoordSystemId,velocityInRelevantUnits:e.velocityInCurrentUnits,axis:w.axis,direction:w.direction,motion:e.selectedCartesianMotionType==="translate"?{type:"translate",distanceMm:S.mm}:{type:"rotate",distanceRads:Lt.degreesToRadians(S.degrees)}})})}async function i(w){if(!e.isLocked){if(e.activeDiscreteIncrement)return s(w,e.activeDiscreteIncrement);w.motionType==="translate"?await e.jogger.startTCPTranslation({axis:w.axis,direction:w.direction,velocityMmPerSec:e.translationVelocityMmPerSec}):await e.jogger.startTCPRotation({axis:w.axis,direction:w.direction,velocityRadsPerSec:e.rotationVelocityRadsPerSec})}}async function l(){e.isLocked||e.activeDiscreteIncrement||await e.jogger.stop()}const u=[{id:"x",colors:(x=(d=(f=n.componentsExt)==null?void 0:f.JoggingCartesian)==null?void 0:d.Axis)==null?void 0:x.X,icon:o.jsx(Lg,{})},{id:"y",colors:(p=(_=(y=n.componentsExt)==null?void 0:y.JoggingCartesian)==null?void 0:_.Axis)==null?void 0:p.Y,icon:o.jsx($g,{})},{id:"z",colors:(C=(R=(j=n.componentsExt)==null?void 0:j.JoggingCartesian)==null?void 0:R.Axis)==null?void 0:C.Z,icon:o.jsx(Dg,{})}];function c(w){return r("General.mm.variable",{amount:w.toFixed(1)})}function m(w){return r("General.degree.variable",{amount:Lt.radiansToDegrees(w).toFixed(1)})}return o.jsxs(T.Stack,{flexGrow:1,gap:4,children:[o.jsxs(T.Stack,{children:[o.jsx(Jg,{store:e}),o.jsx(jy,{store:e})]}),o.jsx(T.Stack,{width:"80%",maxWidth:"296px",marginLeft:"auto",marginRight:"auto",marginTop:"8px",marginBottom:"8px",gap:"12px",children:o.jsxs(T.ToggleButtonGroup,{value:e.selectedCartesianMotionType,onChange:a,exclusive:!0,"aria-label":r("Jogging.Cartesian.MotionType.lb"),sx:{justifyContent:"center"},children:[o.jsx(T.ToggleButton,{value:"translate",children:r("Jogging.Cartesian.Translation.bt")}),o.jsx(T.ToggleButton,{value:"rotate",children:r("Jogging.Cartesian.Rotation.bt")})]})}),o.jsx(zl,{store:e,children:o.jsxs(T.Stack,{width:"80%",maxWidth:"296px",marginLeft:"auto",marginRight:"auto",marginTop:"8px",marginBottom:"8px",gap:"12px",children:[e.selectedCartesianMotionType==="translate"&&u.map(w=>o.jsx(es,{colors:w.colors,disabled:e.isLocked,label:o.jsxs(o.Fragment,{children:[w.icon,o.jsx(T.Typography,{sx:{fontSize:"24px",color:"white"},children:w.id.toUpperCase()})]}),getDisplayedValue:()=>{var S;return c(((S=e.jogger.motionStream.rapidlyChangingMotionState.tcp_pose)==null?void 0:S.position[w.id])||0)},startJogging:S=>i({axis:w.id,motionType:"translate",direction:S}),stopJogging:l},w.id)),e.selectedCartesianMotionType==="rotate"&&u.map(w=>o.jsx(es,{colors:w.colors,disabled:e.isLocked,label:o.jsxs(o.Fragment,{children:[o.jsx(Bg,{}),o.jsx(T.Typography,{sx:{fontSize:"24px",color:"white"},children:w.id.toUpperCase()})]}),getDisplayedValue:()=>{var S,P;return m(((P=(S=e.jogger.motionStream.rapidlyChangingMotionState.tcp_pose)==null?void 0:S.orientation)==null?void 0:P[w.id])||0)},startJogging:S=>i({axis:w.id,motionType:"rotate",direction:S}),stopJogging:l},w.id))]})}),o.jsxs(T.Stack,{children:[o.jsx(nu,{store:e}),o.jsx(lu,{store:e}),t]})]})}),Wy=Te.observer(({store:e})=>{const t=Y.useRef(null);function r(){const{joints:n}=e.jogger.motionStream.rapidlyChangingMotionState.state.joint_position;return`[${n.map(a=>parseFloat(a.toFixed(4))).join(", ")}]`}return jr(()=>{t.current&&(t.current.textContent=r())}),o.jsx(T.Stack,{alignItems:"left",spacing:2,sx:{padding:"16px","& label":{opacity:.7,fontSize:"12px",marginBottom:"4px"}},children:o.jsx(Kl,{value:r(),ref:t})})}),Hy=Te.observer(({store:e,children:t})=>{async function r(a){await e.jogger.startJointRotation({joint:a.joint,direction:a.direction,velocityRadsPerSec:e.rotationVelocityRadsPerSec})}async function n(){await e.jogger.stop()}return o.jsxs(T.Stack,{flexGrow:1,justifyContent:"space-between",children:[o.jsx(Wy,{store:e}),o.jsx(zl,{store:e,children:o.jsx(T.Stack,{gap:"0.8rem",children:e.jogger.motionStream.joints.map(a=>{var u;const s=(u=e.motionGroupSpec.mechanical_joint_limits)==null?void 0:u[a.index],i=(s==null?void 0:s.lower_limit)!==void 0?Lt.radiansToDegrees(s.lower_limit):void 0,l=(s==null?void 0:s.upper_limit)!==void 0?Lt.radiansToDegrees(s.upper_limit):void 0;return o.jsxs(T.Stack,{direction:"row",alignItems:"center",gap:2,children:[o.jsx(T.Typography,{sx:{flexGrow:1,textAlign:"right"},children:`J${a.index+1}`}),o.jsx(yl,{disabled:e.isLocked,lowerLimitDegs:i,upperLimitDegs:l,getValueDegs:()=>{const c=e.jogger.motionStream.rapidlyChangingMotionState.state.joint_position.joints[a.index];return c!==void 0?Lt.radiansToDegrees(c):void 0},startJogging:c=>r({joint:a.index,direction:c}),stopJogging:n},a.index),o.jsx(T.Typography,{sx:{flexGrow:1}})]},`joint-${a.index}`)})})}),o.jsx(nu,{store:e}),o.jsx(lu,{store:e}),t]})});var xi=function(){try{var e=Qt(Object,"defineProperty");return e({},"",{}),e}catch{}}();function Xy(e,t,r){t=="__proto__"&&xi?xi(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function qy(e,t,r,n){for(var a=-1,s=e==null?0:e.length;++a<s;){var i=e[a];t(n,i,r(i),e)}return n}function Yy(e){return function(t,r,n){for(var a=-1,s=Object(t),i=n(t),l=i.length;l--;){var u=i[++a];if(r(s[u],u,s)===!1)break}return t}}var Zy=Yy();function Qy(e,t){return e&&Zy(e,t,Fs)}function e1(e,t){return function(r,n){if(r==null)return r;if(!ru(r))return e(r,n);for(var a=r.length,s=-1,i=Object(r);++s<a&&n(i[s],s,i)!==!1;);return r}}var t1=e1(Qy);function r1(e,t,r,n){return t1(e,function(a,s,i){t(n,a,r(a),i)}),n}var n1=1,a1=2;function s1(e,t,r,n){var a=r.length,s=a;if(e==null)return!s;for(e=Object(e);a--;){var i=r[a];if(i[2]?i[1]!==e[i[0]]:!(i[0]in e))return!1}for(;++a<s;){i=r[a];var l=i[0],u=e[l],c=i[1];if(i[2]){if(u===void 0&&!(l in e))return!1}else{var m=new St,f;if(!(f===void 0?_a(c,u,n1|a1,n,m):f))return!1}}return!0}function uu(e){return e===e&&!Kt(e)}function o1(e){for(var t=Fs(e),r=t.length;r--;){var n=t[r],a=e[n];t[r]=[n,a,uu(a)]}return t}function cu(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}function i1(e){var t=o1(e);return t.length==1&&t[0][2]?cu(t[0][0],t[0][1]):function(r){return r===e||s1(r,e,t)}}var l1=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,u1=/^\w*$/;function Ds(e,t){if(pt(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||la(e)?!0:u1.test(e)||!l1.test(e)||t!=null&&e in Object(t)}var c1="Expected a function";function Us(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(c1);var r=function(){var n=arguments,a=t?t.apply(this,n):n[0],s=r.cache;if(s.has(a))return s.get(a);var i=e.apply(this,n);return r.cache=s.set(a,i)||s,i};return r.cache=new(Us.Cache||Pt),r}Us.Cache=Pt;var m1=500;function d1(e){var t=Us(e,function(n){return r.size===m1&&r.clear(),n}),r=t.cache;return t}var f1=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,h1=/\\(\\)?/g,g1=d1(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(f1,function(r,n,a,s){t.push(a?s.replace(h1,"$1"):n||r)}),t});function p1(e,t){for(var r=-1,n=e==null?0:e.length,a=Array(n);++r<n;)a[r]=t(e[r],r,e);return a}var _1=1/0,vi=Nt?Nt.prototype:void 0,ji=vi?vi.toString:void 0;function mu(e){if(typeof e=="string")return e;if(pt(e))return p1(e,mu)+"";if(la(e))return ji?ji.call(e):"";var t=e+"";return t=="0"&&1/e==-_1?"-0":t}function du(e){return e==null?"":mu(e)}function fu(e,t){return pt(e)?e:Ds(e,t)?[e]:g1(du(e))}var y1=1/0;function ya(e){if(typeof e=="string"||la(e))return e;var t=e+"";return t=="0"&&1/e==-y1?"-0":t}function hu(e,t){t=fu(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[ya(t[r++])];return r&&r==n?e:void 0}function b1(e,t,r){var n=e==null?void 0:hu(e,t);return n===void 0?r:n}function x1(e,t){return e!=null&&t in Object(e)}function v1(e,t,r){t=fu(t,e);for(var n=-1,a=t.length,s=!1;++n<a;){var i=ya(t[n]);if(!(s=e!=null&&r(e,i)))break;e=e[i]}return s||++n!=a?s:(a=e==null?0:e.length,!!a&&$s(a)&&Ql(i,a)&&(pt(e)||Yl(e)))}function j1(e,t){return e!=null&&v1(e,t,x1)}var S1=1,R1=2;function A1(e,t){return Ds(e)&&uu(t)?cu(ya(e),t):function(r){var n=b1(r,e);return n===void 0&&n===t?j1(r,e):_a(t,n,S1|R1)}}function w1(e){return e}function P1(e){return function(t){return t==null?void 0:t[e]}}function C1(e){return function(t){return hu(t,e)}}function M1(e){return Ds(e)?P1(ya(e)):C1(e)}function k1(e){return typeof e=="function"?e:e==null?w1:typeof e=="object"?pt(e)?A1(e[0],e[1]):i1(e):M1(e)}function I1(e,t){return function(r,n){var a=pt(r)?qy:r1,s={};return a(r,e,k1(n),s)}}var vn=I1(function(e,t,r){Xy(e,r,t)}),T1=0;function O1(e){var t=++T1;return du(e)+t}const fs=[{id:"0.1",mm:.1,degrees:.05},{id:"1",mm:1,degrees:.5},{id:"5",mm:5,degrees:2.5},{id:"10",mm:10,degrees:5}],E1=[{id:"continuous"},...fs];class Bs{constructor(t,r,n,a){var s,i;this.jogger=t,this.motionGroupSpec=r,this.coordSystems=n,this.tcps=a,this.selectedTabId="cartesian",this.manualActivationRequired=!0,this.activationState="inactive",this.activationError=null,this.activationCounter=0,this.locks=new Set,this.selectedCoordSystemId="world",this.selectedTcpId="",this.selectedOrientation="coordsys",this.selectedIncrementId="continuous",this.selectedCartesianMotionType="translate",this.incrementJoggingInProgress=!1,this.translationVelocityMmPerSec=10,this.rotationVelocityDegPerSec=1,this.minTranslationVelocityMmPerSec=5,this.maxTranslationVelocityMmPerSec=250,this.minRotationVelocityDegPerSec=1,this.maxRotationVelocityDegPerSec=60,this.disposers=[];for(const l of n)if(l.coordinate_system===""){l.coordinate_system="world";break}this.selectedCoordSystemId=((s=n[0])==null?void 0:s.coordinate_system)||"world",this.selectedTcpId=((i=a[0])==null?void 0:i.id)||"",mt.makeAutoObservable(this,{},{autoBind:!0}),this.loadFromLocalStorage(),this.disposers.push(mt.autorun(()=>this.saveToLocalStorage())),window.joggingStore=this}static async loadFor(t){const{nova:r}=t,[n,{coordinatesystems:a},{tcps:s}]=await Promise.all([r.api.motionGroupInfos.getMotionGroupSpecification(t.motionGroupId),r.api.coordinateSystems.listCoordinateSystems("ROTATION_VECTOR"),r.api.motionGroupInfos.listTcps(t.motionGroupId,"ROTATION_VECTOR")]);return new Bs(t,n,a||[],s||[])}dispose(){for(const t of this.disposers)t();this.jogger.dispose()}get coordSystemCountByName(){return Kn.countBy(this.coordSystems,t=>t.name)}async deactivate(t={}){if(this.activationState==="inactive")return;const r=this.jogger.activeWebsocket;this.activationState="inactive",this.jogger.setJoggingMode("increment"),r&&await r.closed();try{await this.jogger.nova.api.motionGroupJogging.stopJogging(this.jogger.motionGroupId)}catch(n){console.error(n)}t.requireManualReactivation&&mt.runInAction(()=>{this.manualActivationRequired=!0})}async activate(t={}){if(!(this.manualActivationRequired&&!t.manual)){mt.runInAction(()=>{this.activationState="loading",this.activationError=null});try{await this.jogger.nova.api.controller.setDefaultMode(this.jogger.motionStream.controllerId,"MODE_CONTROL")}catch(r){console.error(r)}if(this.currentTab.id==="cartesian"){const r={tcpId:this.selectedTcpId,coordSystemId:this.activeCoordSystemId};this.activeDiscreteIncrement?this.jogger.setJoggingMode("increment",r):this.jogger.setJoggingMode("cartesian",r)}else this.jogger.setJoggingMode("joint");if(this.jogger.activeWebsocket)try{this.jogger.stop(),await this.jogger.activeWebsocket.nextMessage()}catch(r){mt.runInAction(()=>{this.activationState="inactive",this.activationError=r});return}mt.runInAction(()=>{this.activationState="active",t.manual&&(this.manualActivationRequired=!1)})}}loadFromLocalStorage(){const t=Lt.tryParseJson(localStorage.getItem("joggingToolStore"));t&&(this.tabsById[t.selectedTabId]&&(this.selectedTabId=t.selectedTabId),this.coordSystemsById[t.selectedCoordSystemId]&&(this.selectedCoordSystemId=t.selectedCoordSystemId),this.tcpsById[t.selectedTcpId]&&(this.selectedTcpId=t.selectedTcpId),this.incrementOptionsById[t.selectedIncrementId]&&(this.selectedIncrementId=t.selectedIncrementId),["translate","rotate"].includes(t.selectedCartesianMotionType)&&(this.selectedCartesianMotionType=t.selectedCartesianMotionType),["coordsys","tool"].includes(t.selectedOrientation)&&(this.selectedOrientation=t.selectedOrientation))}saveToLocalStorage(){localStorage.setItem("joggingToolStore",JSON.stringify(this.localStorageSave))}get isLocked(){return this.locks.size>0}get localStorageSave(){return{selectedTabId:this.selectedTabId,selectedCoordSystemId:this.selectedCoordSystemId,selectedTcpId:this.selectedTcpId,selectedOrientation:this.selectedOrientation,selectedIncrementId:this.selectedIncrementId,selectedCartesianMotionType:this.selectedCartesianMotionType}}get tabs(){return[{id:"cartesian",label:"Cartesian"},{id:"joint",label:"Joint"}]}get incrementOptions(){return E1}get discreteIncrementOptions(){return fs}get incrementOptionsById(){return vn(this.incrementOptions,t=>t.id)}get tabsById(){return vn(this.tabs,t=>t.id)}get currentTab(){return this.tabsById[this.selectedTabId]||this.tabs[0]}get tabIndex(){return this.tabs.indexOf(this.currentTab)}get coordSystemsById(){return vn(this.coordSystems,t=>t.coordinate_system)}get selectedCoordSystem(){return this.coordSystemsById[this.selectedCoordSystemId]}get activeCoordSystemId(){return this.selectedOrientation==="tool"?"tool":this.selectedCoordSystemId}get tcpsById(){return vn(this.tcps,t=>t.id)}get activeDiscreteIncrement(){return this.selectedOrientation==="tool"?void 0:fs.find(t=>t.id===this.selectedIncrementId)}get rotationVelocityRadsPerSec(){return this.rotationVelocityDegPerSec*Math.PI/180}get velocityInCurrentUnits(){return this.currentMotionType==="translate"?this.translationVelocityMmPerSec:this.rotationVelocityDegPerSec}get minVelocityInCurrentUnits(){return this.currentMotionType==="translate"?this.minTranslationVelocityMmPerSec:this.minRotationVelocityDegPerSec}get maxVelocityInCurrentUnits(){return this.currentMotionType==="translate"?this.maxTranslationVelocityMmPerSec:this.maxRotationVelocityDegPerSec}get currentMotionType(){return this.selectedTabId==="cartesian"&&this.selectedCartesianMotionType==="translate"?"translate":"rotate"}onTabChange(t,r){const n=this.tabs[r]||this.tabs[0];this.selectedTabId=n.id}setSelectedCoordSystemId(t){this.selectedCoordSystemId=t}setSelectedTcpId(t){this.selectedTcpId=t}setSelectedOrientation(t){this.selectedOrientation=t}setSelectedIncrementId(t){this.selectedIncrementId=t}setIncrementJoggingInProgress(t){this.incrementJoggingInProgress=t}setVelocityFromSlider(t){this.currentMotionType==="translate"?this.translationVelocityMmPerSec=t:this.rotationVelocityDegPerSec=t}setSelectedCartesianMotionType(t){this.selectedCartesianMotionType=t}async withMotionLock(t){const r=O1();this.locks.add(r);try{return await t()}finally{this.locks.delete(r)}}}const L1=sn(Te.observer(e=>{const t=Kn.isString(e.nova)?new Lt.NovaClient({instanceUrl:e.nova}):e.nova,r=Te.useLocalObservable(()=>({joggingStore:null,loadingError:null}));async function n(){mt.runInAction(()=>{r.loadingError=null,r.joggingStore=null});try{const a=await t.connectJogger(e.motionGroupId),s=await Bs.loadFor(a);mt.runInAction(()=>{r.joggingStore=s}),e.onSetup&&e.onSetup(s)}catch(a){r.loadingError=a}}return Y.useEffect(()=>(n(),()=>{var a;(a=r.joggingStore)==null||a.dispose()}),[e.nova,e.motionGroupId]),Y.useEffect(()=>{const a=r.joggingStore;a&&(e.locked?a.locks.add("external"):a.locks.delete("external"))},[e.locked]),o.jsx(T.Stack,{sx:{maxWidth:"460px",minWidth:"350px",overflowY:"auto",position:"relative",height:"100%"},children:r.joggingStore?o.jsx(N1,{store:r.joggingStore,children:e.children}):o.jsx(ha,{message:"Loading jogging",error:r.loadingError})})})),N1=Te.observer(({store:e,children:t})=>{Y.useEffect(()=>{function n(){e.deactivate()}function a(){e.activate()}return window.addEventListener("blur",n),window.addEventListener("focus",a),()=>{window.removeEventListener("blur",n),window.removeEventListener("focus",a)}}),ks(()=>[e.currentTab.id,e.selectedTcpId,e.activeCoordSystemId,e.activeDiscreteIncrement],()=>{e.activationState!=="inactive"&&e.activate()});function r(){if(e.currentTab.id==="cartesian")return o.jsx(o.Fragment,{children:o.jsx(Ky,{store:e,children:t})});if(e.currentTab.id==="joint")return o.jsx(o.Fragment,{children:o.jsx(Hy,{store:e,children:t})})}return o.jsxs(T.Stack,{flexGrow:1,height:"100%",children:[o.jsx(T.Tabs,{value:e.tabIndex,onChange:e.onTabChange,variant:"fullWidth",children:e.tabs.map(n=>o.jsx(T.Tab,{label:n.label,id:`jogging-tab-${n.id}`,"aria-controls":`jogging-tab-${n.id}`},n.id))}),o.jsx(T.Stack,{flexGrow:1,position:"relative",children:r()})]})});function $1(){const e=window.location.href;return e.substring(0,e.indexOf("/",e.indexOf("//")+2))}function F1({baseUrl:e=$1(),...t}){return o.jsxs(T.Dialog,{"aria-labelledby":"no-motion-group-modal-title",open:!0,fullWidth:!0,sx:{"& .MuiModal-backdrop":{backdropFilter:"blur(10px)"},"& .MuiDialog-paper":{"::before":{content:'""',height:"8px",width:"100%",background:"linear-gradient(90deg, #FF0E65 0%, #47D3FF 100%)"},background:"#101629"}},children:[o.jsx(T.DialogTitle,{id:"no-motion-group-modal-title",children:"No motion group found"}),o.jsxs(T.DialogContent,{sx:{marginTop:"3rem",marginBottom:"1.5rem",textAlign:"center"},children:[o.jsx(T.Typography,{color:"#fff",children:"Found no devices to connect to."}),o.jsx(T.Typography,{color:"#fff",children:"Please ensure a motion group has been created."})]}),o.jsx(T.DialogActions,{children:o.jsxs(T.Stack,{width:"100%",maxWidth:"300px",margin:"auto",marginBottom:"2rem",children:[o.jsx(T.Button,{href:`${e}/settings`,variant:"contained",sx:{borderRadius:"8px",width:"100%"},children:"Go to settings app"}),o.jsx(T.Button,{href:`${e}`,variant:"text",sx:{marginTop:"1rem",color:"#fff",textDecoration:"underline",fontSize:"0.75rem"},children:"Back to Homescreen"})]})})]})}const D1=Array(6).fill(2*Math.PI);gu.config={rotationOffsets:[0,-Math.PI/2,0,0,0,0]};function gu({modelURL:e,flangeRef:t,...r}){const n=z.useGLTF(e),a=n.nodes,s=n.materials;return o.jsx("group",{...r,dispose:null,children:o.jsxs("group",{name:"Empty",children:[o.jsxs("group",{name:"visuals",children:[o.jsx("mesh",{name:"visuals_1",geometry:a.visuals_1.geometry,material:s.abb_metal_polished}),o.jsx("mesh",{name:"visuals_2",geometry:a.visuals_2.geometry,material:s.abb_white})]}),o.jsxs(b.animated.group,{name:"ABB_IRB1200_J00",children:[o.jsxs("group",{name:"ABB_IRB1200_J01",position:[0,.399,0],rotation:[-Math.PI/2,-Math.PI/2,0],children:[o.jsxs(b.animated.group,{name:"ABB_IRB1200_J02",position:[.35,0,0],children:[o.jsxs(b.animated.group,{name:"ABB_IRB1200_J03",position:[.042,0,0],rotation:[-Math.PI/2,0,0],children:[o.jsxs(b.animated.group,{name:"ABB_IRB1200_J04",position:[0,.351,0],rotation:[Math.PI/2,0,0],children:[o.jsxs(b.animated.group,{name:"ABB_IRB1200_J05",rotation:[Math.PI/2,0,-Math.PI],children:[o.jsx("group",{ref:t,name:"ABB_IRB1200_FLG",position:[0,.082,0]}),o.jsx("mesh",{name:"visuals006",geometry:a.visuals006.geometry,material:s.abb_metal_black,position:[.791,-.351,0],rotation:[0,0,Math.PI/2]})]}),o.jsxs("group",{name:"visuals005",position:[-.791,0,.351],rotation:[Math.PI/2,0,-Math.PI/2],children:[o.jsx("mesh",{name:"visuals005_1",geometry:a.visuals005_1.geometry,material:s.abb_metal_polished}),o.jsx("mesh",{name:"visuals005_2",geometry:a.visuals005_2.geometry,material:s.abb_white})]})]}),o.jsxs("group",{name:"visuals004",position:[-.791,0,0],rotation:[-Math.PI,0,-Math.PI/2],children:[o.jsx("mesh",{name:"visuals004_1",geometry:a.visuals004_1.geometry,material:s.abb_metal_polished}),o.jsx("mesh",{name:"visuals004_2",geometry:a.visuals004_2.geometry,material:s.abb_white}),o.jsx("mesh",{name:"visuals004_3",geometry:a.visuals004_3.geometry,material:s.abb_red})]})]}),o.jsxs("group",{name:"visuals003",position:[-.749,0,0],rotation:[Math.PI/2,0,-Math.PI/2],children:[o.jsx("mesh",{name:"visuals003_1",geometry:a.visuals003_1.geometry,material:s.abb_white}),o.jsx("mesh",{name:"visuals003_2",geometry:a.visuals003_2.geometry,material:s.abb_red}),o.jsx("mesh",{name:"visuals003_3",geometry:a.visuals003_3.geometry,material:s.abb_metal_polished})]})]}),o.jsxs("group",{name:"visuals002",position:[-.399,0,0],rotation:[Math.PI/2,0,-Math.PI/2],children:[o.jsx("mesh",{name:"visuals002_1",geometry:a.visuals002_1.geometry,material:s.abb_white}),o.jsx("mesh",{name:"visuals002_2",geometry:a.visuals002_2.geometry,material:s.abb_metal_polished})]})]}),o.jsxs("group",{name:"visuals001",children:[o.jsx("mesh",{name:"visuals001_1",geometry:a.visuals001_1.geometry,material:s.abb_white}),o.jsx("mesh",{name:"visuals001_2",geometry:a.visuals001_2.geometry,material:s.abb_metal_polished})]})]})]})})}pu.config={rotationOffsets:[0,-Math.PI/2,0,0,0,0]};function pu({modelURL:e,flangeRef:t,...r}){const n=z.useGLTF(e),a=n.nodes,s=n.materials;return o.jsx("group",{...r,dispose:null,children:o.jsxs("group",{name:"Scene",children:[o.jsxs("group",{name:"link_0",children:[o.jsx("mesh",{name:"visuals_0",geometry:a.visuals_0.geometry,material:s.abb_metal_black}),o.jsx("mesh",{name:"visuals_0_1",geometry:a.visuals_0_1.geometry,material:s.abb_white}),o.jsx("mesh",{name:"visuals_0_2",geometry:a.visuals_0_2.geometry,material:s.abb_metal_polished}),o.jsx("mesh",{name:"visuals_0_3",geometry:a.visuals_0_3.geometry,material:s.abb_red})]}),o.jsxs(b.animated.group,{name:"ABB_IRB1300_115_10_J00",children:[o.jsxs(b.animated.group,{name:"ABB_IRB1300_115_10_J01",position:[.15,.544,0],rotation:[-Math.PI/2,-Math.PI/2,0],children:[o.jsxs(b.animated.group,{name:"ABB_IRB1300_115_10_J02",position:[.575,0,0],children:[o.jsxs(b.animated.group,{name:"ABB_IRB1300_115_10_J03",position:[.04,0,0],rotation:[-Math.PI/2,0,0],children:[o.jsxs(b.animated.group,{name:"ABB_IRB1300_115_10_J04",position:[0,.425,0],rotation:[Math.PI/2,0,0],children:[o.jsxs(b.animated.group,{name:"ABB_IRB1300_115_10_J05",rotation:[Math.PI/2,0,-Math.PI],children:[o.jsx("group",{ref:t,name:"ABB_IRB1300_115_10_FLG",position:[0,.092,0]}),o.jsx("mesh",{name:"link_6",geometry:a.link_6.geometry,material:s.abb_metal_polished,position:[1.159,-.575,0],rotation:[0,0,Math.PI/2]})]}),o.jsxs("group",{name:"link_5",position:[-1.159,0,.575],rotation:[Math.PI/2,0,-Math.PI/2],children:[o.jsx("mesh",{name:"visuals_5",geometry:a.visuals_5.geometry,material:s.abb_white}),o.jsx("mesh",{name:"visuals_5_1",geometry:a.visuals_5_1.geometry,material:s.abb_metal_black})]})]}),o.jsxs("group",{name:"link_4",position:[-1.159,-.15,0],rotation:[-Math.PI,0,-Math.PI/2],children:[o.jsx("mesh",{name:"visuals_4",geometry:a.visuals_4.geometry,material:s.abb_metal_polished}),o.jsx("mesh",{name:"visuals_4_1",geometry:a.visuals_4_1.geometry,material:s.abb_white}),o.jsx("mesh",{name:"visuals_4_2",geometry:a.visuals_4_2.geometry,material:s.abb_red}),o.jsx("mesh",{name:"visuals_4_3",geometry:a.visuals_4_3.geometry,material:s.abb_metal_black})]})]}),o.jsxs("group",{name:"link_3",position:[-1.119,0,.15],rotation:[Math.PI/2,0,-Math.PI/2],children:[o.jsx("mesh",{name:"visuals_3",geometry:a.visuals_3.geometry,material:s.abb_white}),o.jsx("mesh",{name:"visuals_3_1",geometry:a.visuals_3_1.geometry,material:s.abb_red}),o.jsx("mesh",{name:"visuals_3_2",geometry:a.visuals_3_2.geometry,material:s.abb_metal_black})]})]}),o.jsxs("group",{name:"link_2",position:[-.544,0,.15],rotation:[Math.PI/2,0,-Math.PI/2],children:[o.jsx("mesh",{name:"visuals_2",geometry:a.visuals_2.geometry,material:s.abb_white}),o.jsx("mesh",{name:"visuals_2_1",geometry:a.visuals_2_1.geometry,material:s.abb_metal_black})]})]}),o.jsxs("group",{name:"link_1",children:[o.jsx("mesh",{name:"visuals_1",geometry:a.visuals_1.geometry,material:s.abb_white}),o.jsx("mesh",{name:"visuals_1_1",geometry:a.visuals_1_1.geometry,material:s.abb_metal_black})]})]})]})})}_u.config={rotationOffsets:[0,Math.PI/2,0,0,0,0]};function _u({modelURL:e,flangeRef:t,...r}){const n=z.useGLTF(e),a=n.nodes,s=n.materials;return o.jsx(o.Fragment,{children:o.jsx("group",{...r,dispose:null,children:o.jsx("group",{name:"Scene",children:o.jsxs("group",{name:"M10iD",rotation:[Math.PI/2,0,0],children:[o.jsxs(b.animated.group,{name:"M10iD_J01",rotation:[-Math.PI/2,0,0],children:[o.jsxs(b.animated.group,{name:"M10iD_J02",position:[.075,0,0],rotation:[Math.PI/2,Math.PI/2,0],children:[o.jsxs(b.animated.group,{name:"M10iD_J03",position:[.64,0,0],children:[o.jsxs(b.animated.group,{name:"M10iD_J04",position:[.195,0,0],rotation:[-Math.PI/2,0,0],children:[o.jsxs(b.animated.group,{name:"M10iD_J05",position:[0,-.7,0],rotation:[Math.PI/2,0,0],children:[o.jsxs(b.animated.group,{name:"M10iD_J06",rotation:[-Math.PI/2,0,0],children:[o.jsx("group",{ref:t,name:"M10iD_FLG",position:[0,-.075,0],rotation:[-Math.PI,0,0]}),o.jsx("mesh",{name:"M10iD_L06",geometry:a.M10iD_L06.geometry,material:s.Fanuc_BlackMetal_AO,position:[-.835,.775,0],rotation:[0,0,-Math.PI/2]})]}),o.jsx("mesh",{name:"M10iD_L05",geometry:a.M10iD_L05.geometry,material:s.Fanuc_BlackMetal_AO,position:[-.835,0,-.775],rotation:[-Math.PI/2,0,-Math.PI/2]})]}),o.jsxs("group",{name:"M10iD_L04",position:[-.835,.075,0],rotation:[0,0,-Math.PI/2],children:[o.jsx("mesh",{name:"Mesh_654",geometry:a.Mesh_654.geometry,material:s.Fanuc_Yellow_Textured_AO}),o.jsx("mesh",{name:"Mesh_654_1",geometry:a.Mesh_654_1.geometry,material:s.Fanuc_BlackMetal_AO})]})]}),o.jsxs("group",{name:"M10iD_L03",position:[-.64,0,-.075],rotation:[-Math.PI/2,0,-Math.PI/2],children:[o.jsx("mesh",{name:"Mesh_378",geometry:a.Mesh_378.geometry,material:s.Material_1_AO}),o.jsx("mesh",{name:"Mesh_378_1",geometry:a.Mesh_378_1.geometry,material:s.Fanuc_Yellow_Textured_AO}),o.jsx("mesh",{name:"Mesh_378_2",geometry:a.Mesh_378_2.geometry,material:s.Fanuc_BlackMetal_AO})]})]}),o.jsxs("group",{name:"M10iD_L02",position:[0,0,-.075],rotation:[-Math.PI/2,0,-Math.PI/2],children:[o.jsx("mesh",{name:"Mesh_358",geometry:a.Mesh_358.geometry,material:s.Fanuc_Yellow_Textured_AO}),o.jsx("mesh",{name:"Mesh_358_1",geometry:a.Mesh_358_1.geometry,material:s.Fanuc_BlackMetal_AO})]})]}),o.jsxs("group",{name:"M10iD_L01",children:[o.jsx("mesh",{name:"Mesh_356",geometry:a.Mesh_356.geometry,material:s.Fanuc_Yellow_Textured_AO}),o.jsx("mesh",{name:"Mesh_356_1",geometry:a.Mesh_356_1.geometry,material:s.Material_1_AO}),o.jsx("mesh",{name:"Mesh_356_2",geometry:a.Mesh_356_2.geometry,material:s.Fanuc_BlackMetal_AO})]})]}),o.jsx("mesh",{name:"M10iD_L00",geometry:a.M10iD_L00.geometry,material:s.Fanuc_BlackMetal_AO,rotation:[-Math.PI/2,0,0]})]})})})})}hs.config={rotationOffsets:[0,Math.PI/2,0,0,0,0]};function hs({modelURL:e,flangeRef:t,...r}){const n=z.useGLTF(e),a=n.nodes,s=n.materials;return o.jsx(o.Fragment,{children:o.jsx("group",{...r,dispose:null,children:o.jsx("group",{name:"Scene",children:o.jsxs("group",{name:"M10iD",rotation:[0,0,0],children:[o.jsxs(b.animated.group,{name:"M20iD25_J00",children:[o.jsxs(b.animated.group,{name:"M20iD25_J01",position:[.075,0,0],rotation:[Math.PI/2,Math.PI/2,0],children:[o.jsxs(b.animated.group,{name:"M20iD25_J02",position:[.84,0,0],children:[o.jsxs(b.animated.group,{name:"M20iD25_J03",position:[.215,0,0],rotation:[-Math.PI/2,0,0],children:[o.jsxs(b.animated.group,{name:"M20iD25_J04",position:[0,-.89,0],rotation:[Math.PI/2,0,0],children:[o.jsxs(b.animated.group,{name:"M20iD25_J05",rotation:[-Math.PI/2,0,0],children:[o.jsx("group",{ref:t,name:"M20iD25_FLG",position:[0,-.09,0],rotation:[-Math.PI,0,0]}),o.jsx("mesh",{name:"M20iD25_L06",geometry:a.M20iD25_L06.geometry,material:s.Fanuc_BlackMetal_AO,position:[0,-.09,0],rotation:[Math.PI/2,0,Math.PI]})]}),o.jsx("mesh",{name:"M20iD25_L05",geometry:a.M20iD25_L05.geometry,material:s.Fanuc_BlackMetal_AO,rotation:[Math.PI,Math.PI/2,0]})]}),o.jsxs("group",{name:"M20iD25_L04",position:[0,-.286,0],rotation:[-Math.PI/2,Math.PI/2,0],children:[o.jsx("mesh",{name:"Mesh_2",geometry:a.Mesh_2.geometry,material:s.Fanuc_Yellow_Textured_AO}),o.jsx("mesh",{name:"Mesh_2_1",geometry:a.Mesh_2_1.geometry,material:s.Fanuc_BlackMetal_AO})]})]}),o.jsxs("group",{name:"M20iD25_L03",position:[0,.406,0],rotation:[Math.PI,Math.PI/2,0],children:[o.jsx("mesh",{name:"Mesh_15",geometry:a.Mesh_15.geometry,material:s.Fanuc_BlackMetal_AO}),o.jsx("mesh",{name:"Mesh_15_1",geometry:a.Mesh_15_1.geometry,material:s.Fanuc_Yellow_Textured_AO}),o.jsx("mesh",{name:"Mesh_15_2",geometry:a.Mesh_15_2.geometry,material:s.Material_9_AO})]})]}),o.jsxs("group",{name:"M20iD25_L02",position:[0,.505,-.055],rotation:[-Math.PI,Math.PI/2,0],children:[o.jsx("mesh",{name:"Mesh_37",geometry:a.Mesh_37.geometry,material:s.Fanuc_BlackMetal_AO}),o.jsx("mesh",{name:"Mesh_37_1",geometry:a.Mesh_37_1.geometry,material:s.Fanuc_Yellow_Textured_AO})]})]}),o.jsxs("group",{name:"M20iD25_L01",rotation:[-Math.PI/2,0,0],children:[o.jsx("mesh",{name:"Mesh_45",geometry:a.Mesh_45.geometry,material:s.Material_9_AO}),o.jsx("mesh",{name:"Mesh_45_1",geometry:a.Mesh_45_1.geometry,material:s.Fanuc_Yellow_Textured_AO}),o.jsx("mesh",{name:"Mesh_45_2",geometry:a.Mesh_45_2.geometry,material:s.Fanuc_BlackMetal_AO})]})]}),o.jsx("mesh",{name:"M20iD25_L00",geometry:a.M20iD25_L00.geometry,material:s.Fanuc_BlackMetal_AO,position:[0,-.425,0],rotation:[-Math.PI/2,0,0]})]})})})})}yu.config={rotationOffsets:[0,Math.PI/2,0,0,0,0]};function yu({modelURL:e,flangeRef:t,...r}){const n=z.useGLTF(e),a=n.nodes,s=n.materials;return o.jsx(o.Fragment,{children:o.jsx("group",{...r,dispose:null,children:o.jsxs("group",{name:"Scene",children:[o.jsxs(b.animated.group,{name:"CRX10iA_J00",children:[o.jsxs(b.animated.group,{name:"CRX10iA_J01",rotation:[Math.PI/2,Math.PI/2,0],children:[o.jsxs(b.animated.group,{name:"CRX10iA_J02",position:[.54,0,0],children:[o.jsxs(b.animated.group,{name:"CRX10iA_J03",rotation:[-Math.PI/2,0,0],children:[o.jsxs(b.animated.group,{name:"CRX10iA_J04",position:[0,-.54,0],rotation:[Math.PI/2,0,0],children:[o.jsxs(b.animated.group,{name:"CRX10iA_J05",position:[0,.15,0],rotation:[-Math.PI/2,0,0],children:[o.jsx("group",{ref:t,name:"CRX10iA_FLG",position:[0,-.16,0],rotation:[-Math.PI,0,0]}),o.jsx("mesh",{name:"CRX10iA_L06",geometry:a.CRX10iA_L06.geometry,material:s.Fanuc_BlackMetal,position:[0,-.16,0],rotation:[0,0,-Math.PI/2]})]}),o.jsxs("group",{name:"CRX10iA_L05",position:[0,.15,0],rotation:[-Math.PI/2,0,-Math.PI/2],children:[o.jsx("mesh",{name:"J5CASING_UNIT001",geometry:a.J5CASING_UNIT001.geometry,material:s.Fanuc_WhitePlastic}),o.jsx("mesh",{name:"J5CASING_UNIT001_1",geometry:a.J5CASING_UNIT001_1.geometry,material:s.Fanuc_Green})]})]}),o.jsxs("group",{name:"CRX10iA_L04",position:[0,-.54,0],rotation:[0,0,-Math.PI/2],children:[o.jsx("mesh",{name:"NAME_LABEL_CRX_10iA",geometry:a.NAME_LABEL_CRX_10iA.geometry,material:s.Fanuc_RedPlastic}),o.jsx("mesh",{name:"NAME_LABEL_CRX_10iA_1",geometry:a.NAME_LABEL_CRX_10iA_1.geometry,material:s.Fanuc_BlackPlastic}),o.jsx("mesh",{name:"NAME_LABEL_CRX_10iA_2",geometry:a.NAME_LABEL_CRX_10iA_2.geometry,material:s.Fanuc_WhitePlastic})]})]}),o.jsx("mesh",{name:"CRX10iA_L03",geometry:a.CRX10iA_L03.geometry,material:s.Fanuc_WhitePlastic,rotation:[-Math.PI/2,0,-Math.PI/2]})]}),o.jsx("mesh",{name:"CRX10iA_L02",geometry:a.CRX10iA_L02.geometry,material:s.Fanuc_WhitePlastic,rotation:[-Math.PI/2,0,-Math.PI/2]})]}),o.jsxs("group",{name:"CRX10iA_L01",position:[0,-.117,0],children:[o.jsx("mesh",{name:"J2BASE_UNIT001",geometry:a.J2BASE_UNIT001.geometry,material:s.Fanuc_Green}),o.jsx("mesh",{name:"J2BASE_UNIT001_1",geometry:a.J2BASE_UNIT001_1.geometry,material:s.Fanuc_WhitePlastic}),o.jsx("mesh",{name:"J2BASE_UNIT001_2",geometry:a.J2BASE_UNIT001_2.geometry,material:s.Fanuc_GreenLED})]})]}),o.jsx("mesh",{name:"CRX10iA_L00",geometry:a.CRX10iA_L00.geometry,material:s.Fanuc_BlackMetal,position:[0,-.245,0]})]})})})}bu.config={rotationOffsets:[0,Math.PI/2,0,0,0,0]};function bu({modelURL:e,flangeRef:t,...r}){const n=z.useGLTF(e),a=n.nodes,s=n.materials;return o.jsx(o.Fragment,{children:o.jsx("group",{...r,dispose:null,children:o.jsxs("group",{name:"Scene",children:[o.jsx("mesh",{name:"link_0",geometry:a.link_0.geometry,material:s.fanuc_metal_black}),o.jsxs(b.animated.group,{name:"FANUC_CRX20iAL_J00",position:[0,-.245,0],children:[o.jsxs(b.animated.group,{name:"FANUC_CRX20iAL_J01",position:[0,.245,0],rotation:[Math.PI/2,Math.PI/2,0],children:[o.jsxs(b.animated.group,{name:"FANUC_CRX20iAL_J02",position:[.71,0,0],children:[o.jsxs(b.animated.group,{name:"FANUC_CRX20iAL_J03",rotation:[-Math.PI/2,0,0],children:[o.jsxs(b.animated.group,{name:"FANUC_CRX20iAL_J04",position:[0,-.54,0],rotation:[Math.PI/2,0,0],children:[o.jsxs(b.animated.group,{name:"FANUC_CRX20iAL_J05",position:[0,.15,0],rotation:[-Math.PI/2,0,0],children:[o.jsx(b.animated.group,{ref:t,name:"FANUC_CRX20iAL_FLG",position:[0,-.16,0],rotation:[-Math.PI,0,0]}),o.jsx("mesh",{name:"link_6",geometry:a.link_6.geometry,material:s.fanuc_metal_black,position:[-.71,.54,-.15],rotation:[0,0,-Math.PI/2]})]}),o.jsxs(b.animated.group,{name:"link_5",position:[-.71,0,-.54],rotation:[-Math.PI/2,0,-Math.PI/2],children:[o.jsx("mesh",{name:"shape053",geometry:a.shape053.geometry,material:s.fanuc_white}),o.jsx("mesh",{name:"shape053_1",geometry:a.shape053_1.geometry,material:s.fanuc_green})]})]}),o.jsxs(b.animated.group,{name:"link_4",position:[-.71,0,0],rotation:[0,0,-Math.PI/2],children:[o.jsx("mesh",{name:"shape054",geometry:a.shape054.geometry,material:s.fanuc_white}),o.jsx("mesh",{name:"shape054_1",geometry:a.shape054_1.geometry,material:s.fanuc_red}),o.jsx("mesh",{name:"shape054_2",geometry:a.shape054_2.geometry,material:s.fanuc_metal_black})]})]}),o.jsxs(b.animated.group,{name:"link_3",position:[-.71,0,0],rotation:[-Math.PI/2,0,-Math.PI/2],children:[o.jsx("mesh",{name:"shape009",geometry:a.shape009.geometry,material:s.fanuc_green}),o.jsx("mesh",{name:"shape009_1",geometry:a.shape009_1.geometry,material:s.fanuc_white})]})]}),o.jsx("mesh",{name:"link_2",geometry:a.link_2.geometry,material:s.fanuc_white,rotation:[-Math.PI/2,0,-Math.PI/2]})]}),o.jsxs("group",{name:"link_1",position:[0,.245,0],children:[o.jsx("mesh",{name:"shape005",geometry:a.shape005.geometry,material:s.fanuc_white}),o.jsx("mesh",{name:"shape005_1",geometry:a.shape005_1.geometry,material:s.fanuc_green})]})]})]})})})}xu.config={rotationOffsets:[0,Math.PI/2,0,0,0,0]};function xu({modelURL:e,flangeRef:t,...r}){const n=z.useGLTF(e),a=n.nodes,s=n.materials;return o.jsx(o.Fragment,{children:o.jsx("group",{...r,dispose:null,children:o.jsxs("group",{name:"Scene",position:[0,-.37,0],children:[o.jsxs("group",{name:"CRX25iA_L00",children:[o.jsx("mesh",{name:"J1BASE_NetGen_Coarse",geometry:a.J1BASE_NetGen_Coarse.geometry,material:s.Fanuc_BlackMetal}),o.jsx("mesh",{name:"J1BASE_NetGen_Coarse_1",geometry:a.J1BASE_NetGen_Coarse_1.geometry,material:s.Fanuc_GreenPlastic})]}),o.jsxs(b.animated.group,{name:"CRX25iA_J00",children:[o.jsxs(b.animated.group,{name:"CRX25iA_J01",position:[0,.37,0],rotation:[Math.PI/2,Math.PI/2,0],children:[o.jsxs(b.animated.group,{name:"CRX25iA_J02",position:[.95,0,0],children:[o.jsxs(b.animated.group,{name:"CRX25iA_J03",rotation:[-Math.PI/2,0,0],children:[o.jsxs(b.animated.group,{name:"CRX25iA_J04",position:[0,-.75,0],rotation:[Math.PI/2,0,0],children:[o.jsxs(b.animated.group,{name:"CRX25iA_J05",position:[0,.185,0],rotation:[-Math.PI/2,0,0],children:[o.jsx("group",{ref:t,name:"CRX25iA_FLG",position:[0,-.18,0],rotation:[-Math.PI,0,0]}),o.jsx("mesh",{name:"CRX25iA_L06",geometry:a.CRX25iA_L06.geometry,material:s.Fanuc_BlackMetal,position:[0,-.18,0]})]}),o.jsxs("group",{name:"CRX25iA_L05",position:[0,.185,0],children:[o.jsx("mesh",{name:"J6CASING_NetGen_Coarse",geometry:a.J6CASING_NetGen_Coarse.geometry,material:s.Fanuc_WhitePlastic}),o.jsx("mesh",{name:"J6CASING_NetGen_Coarse_1",geometry:a.J6CASING_NetGen_Coarse_1.geometry,material:s.Fanuc_GreenPlastic})]})]}),o.jsxs("group",{name:"CRX25iA_L04",position:[0,-.75,0],children:[o.jsx("mesh",{name:"J3ARM_NetGen_Coarse",geometry:a.J3ARM_NetGen_Coarse.geometry,material:s.Fanuc_WhitePlastic}),o.jsx("mesh",{name:"J3ARM_NetGen_Coarse_1",geometry:a.J3ARM_NetGen_Coarse_1.geometry,material:s.Fanuc_RedPlastic}),o.jsx("mesh",{name:"J3ARM_NetGen_Coarse_2",geometry:a.J3ARM_NetGen_Coarse_2.geometry,material:s.Fanuc_BlackPlastic})]})]}),o.jsxs("group",{name:"CRX25iA_L03",children:[o.jsx("mesh",{name:"J3CASING_NetGen_Coarse",geometry:a.J3CASING_NetGen_Coarse.geometry,material:s.Fanuc_WhitePlastic}),o.jsx("mesh",{name:"J3CASING_NetGen_Coarse_1",geometry:a.J3CASING_NetGen_Coarse_1.geometry,material:s.Fanuc_GreenPlastic})]})]}),o.jsx("mesh",{name:"CRX25iA_L02",geometry:a.CRX25iA_L02.geometry,material:s.Fanuc_WhitePlastic})]}),o.jsxs("group",{name:"CRX25iA_L01",position:[0,.18,0],children:[o.jsx("mesh",{name:"J2BASE_NetGen_Coarse",geometry:a.J2BASE_NetGen_Coarse.geometry,material:s.Fanuc_WhitePlastic}),o.jsx("mesh",{name:"J2BASE_NetGen_Coarse_1",geometry:a.J2BASE_NetGen_Coarse_1.geometry,material:s.Fanuc_GreenLED})]})]})]})})})}vu.config={rotationOffsets:[0,Math.PI/2,0,0,0,0]};function vu({modelURL:e,flangeRef:t,...r}){const n=z.useGLTF(e),a=n.nodes,s=n.materials;return o.jsx(o.Fragment,{children:o.jsx("group",{...r,dispose:null,children:o.jsxs("group",{name:"Scene",children:[o.jsxs(b.animated.group,{name:"CRX10iA_J00",children:[o.jsxs(b.animated.group,{name:"CRX10iA_J01",position:[0,.245,0],rotation:[Math.PI/2,Math.PI/2,0],children:[o.jsxs(b.animated.group,{name:"CRX10iA_J02",position:[.71,0,0],children:[o.jsxs(b.animated.group,{name:"CRX10iA_J03",rotation:[-Math.PI/2,0,0],children:[o.jsxs(b.animated.group,{name:"CRX10iA_J04",position:[0,-.54,0],rotation:[Math.PI/2,0,0],children:[o.jsxs(b.animated.group,{name:"CRX10iA_J05",position:[0,.15,0],rotation:[-Math.PI/2,0,0],children:[o.jsx("group",{ref:t,name:"CRX10iA_FLG",position:[0,-.16,0],rotation:[-Math.PI,0,0]}),o.jsx("mesh",{name:"CRX10iA_L06",geometry:a.CRX10iA_L06.geometry,material:s["Fanuc_BlackMetal.001"],position:[0,-.16,0],rotation:[0,0,-Math.PI/2]})]}),o.jsxs("group",{name:"CRX10iA_L05",position:[0,.15,0],rotation:[-Math.PI/2,0,-Math.PI/2],children:[o.jsx("mesh",{name:"J5CASING_UNIT001",geometry:a.J5CASING_UNIT001.geometry,material:s["Fanuc_WhitePlastic.001"]}),o.jsx("mesh",{name:"J5CASING_UNIT001_1",geometry:a.J5CASING_UNIT001_1.geometry,material:s["Fanuc_Green.001"]})]})]}),o.jsxs("group",{name:"CRX10iA_L04",position:[0,-.54,0],rotation:[0,0,-Math.PI/2],children:[o.jsx("mesh",{name:"NAME_LABEL_CRX_10iA_L001",geometry:a.NAME_LABEL_CRX_10iA_L001.geometry,material:s["Fanuc_WhitePlastic.001"]}),o.jsx("mesh",{name:"NAME_LABEL_CRX_10iA_L001_1",geometry:a.NAME_LABEL_CRX_10iA_L001_1.geometry,material:s["Fanuc_RedPlastic.001"]}),o.jsx("mesh",{name:"NAME_LABEL_CRX_10iA_L001_2",geometry:a.NAME_LABEL_CRX_10iA_L001_2.geometry,material:s["Fanuc_BlackPlastic.001"]})]})]}),o.jsxs("group",{name:"CRX10iA_L03",rotation:[-Math.PI/2,0,-Math.PI/2],children:[o.jsx("mesh",{name:"J3CASING_UNIT001",geometry:a.J3CASING_UNIT001.geometry,material:s["Fanuc_WhitePlastic.001"]}),o.jsx("mesh",{name:"J3CASING_UNIT001_1",geometry:a.J3CASING_UNIT001_1.geometry,material:s["Fanuc_Green.001"]})]})]}),o.jsx("mesh",{name:"CRX10iA_L02",geometry:a.CRX10iA_L02.geometry,material:s["Fanuc_WhitePlastic.001"],rotation:[-Math.PI/2,0,-Math.PI/2]})]}),o.jsxs("group",{name:"CRX10iA_L01",position:[0,.128,0],children:[o.jsx("mesh",{name:"J2BASE_UNIT001",geometry:a.J2BASE_UNIT001.geometry,material:s["Fanuc_WhitePlastic.001"]}),o.jsx("mesh",{name:"J2BASE_UNIT001_1",geometry:a.J2BASE_UNIT001_1.geometry,material:s["Fanuc_Green.001"]}),o.jsx("mesh",{name:"J2BASE_UNIT001_2",geometry:a.J2BASE_UNIT001_2.geometry,material:s["Fanuc_GreenLED.001"]})]})]}),o.jsx("mesh",{name:"CRX10iA_L00",geometry:a.CRX10iA_L00.geometry,material:s["Fanuc_BlackMetal.001"]})]})})})}ju.config={rotationOffsets:[0,Math.PI/2,0,0,0,0]};function ju({modelURL:e,flangeRef:t,...r}){const{nodes:n,materials:a}=z.useGLTF(e);return o.jsx("group",{...r,dispose:null,children:o.jsxs("group",{name:"Empty",children:[o.jsxs("group",{name:"link_0",children:[o.jsx("mesh",{name:"shape002",geometry:n.shape002.geometry,material:a.fanuc_metal_black_AO}),o.jsx("mesh",{name:"shape002_1",geometry:n.shape002_1.geometry,material:a.fanuc_stainless_steel_AO})]}),o.jsxs(b.animated.group,{name:"FANUC_LRMATE-200ID_J00",children:[o.jsxs(b.animated.group,{name:"FANUC_LRMATE-200ID_J01",position:[.05,0,0],rotation:[Math.PI/2,Math.PI/2,0],children:[o.jsxs(b.animated.group,{name:"FANUC_LRMATE-200ID_J02",position:[.33,0,0],children:[o.jsxs(b.animated.group,{name:"FANUC_LRMATE-200ID_J03",position:[.035,0,0],rotation:[-Math.PI/2,0,0],children:[o.jsxs(b.animated.group,{name:"FANUC_LRMATE-200ID_J04",position:[0,-.335,0],rotation:[Math.PI/2,0,0],children:[o.jsxs(b.animated.group,{name:"FANUC_LRMATE-200ID_J05",rotation:[-Math.PI/2,0,0],children:[o.jsx("group",{ref:t,name:"FANUC_LRMATE-200ID_FLG",position:[0,-.08,0],rotation:[-Math.PI,0,0]}),o.jsx("mesh",{name:"link_6",geometry:n.link_6.geometry,material:a.fanuc_metal_black_AO,position:[-.365,.385,0],rotation:[0,0,-Math.PI/2]})]}),o.jsx("mesh",{name:"link_5",geometry:n.link_5.geometry,material:a.fanuc_yellow_AO,position:[-.365,0,-.385],rotation:[-Math.PI/2,0,-Math.PI/2]})]}),o.jsxs("group",{name:"link_4",position:[-.365,.05,0],rotation:[0,0,-Math.PI/2],children:[o.jsx("mesh",{name:"shape010",geometry:n.shape010.geometry,material:a.fanuc_yellow_AO}),o.jsx("mesh",{name:"shape010_1",geometry:n.shape010_1.geometry,material:a.fanuc_aluminium_black_AO})]})]}),o.jsx("mesh",{name:"link_3",geometry:n.link_3.geometry,material:a.fanuc_yellow_AO,position:[-.33,0,-.05],rotation:[-Math.PI/2,0,-Math.PI/2]})]}),o.jsx("mesh",{name:"link_2",geometry:n.link_2.geometry,material:a.fanuc_yellow_AO,position:[0,0,-.05],rotation:[-Math.PI/2,0,-Math.PI/2]})]}),o.jsx("mesh",{name:"link_1",geometry:n.link_1.geometry,material:a.fanuc_yellow_AO})]})]})})}Su.config={rotationOffsets:[0,Math.PI/2,0,0,0,0]};function Su({modelURL:e,flangeRef:t,...r}){const{nodes:n,materials:a}=z.useGLTF(e);return o.jsx("group",{...r,dispose:null,children:o.jsxs("group",{name:"Empty",children:[o.jsx("mesh",{name:"link_0",geometry:n.link_0.geometry,material:a.fanuc_metal_black}),o.jsxs(b.animated.group,{name:"FANUC_LRMATE200ID4S_J00",children:[o.jsxs(b.animated.group,{name:"FANUC_LRMATE200ID4S_J01",rotation:[Math.PI/2,Math.PI/2,0],children:[o.jsxs(b.animated.group,{name:"FANUC_LRMATE200ID4S_J02",position:[.26,0,0],children:[o.jsxs(b.animated.group,{name:"FANUC_LRMATE200ID4S_J03",position:[.02,0,0],rotation:[-Math.PI/2,0,0],children:[o.jsxs(b.animated.group,{name:"FANUC_LRMATE200ID4S_J04",position:[0,-.29,0],rotation:[Math.PI/2,0,0],children:[o.jsxs(b.animated.group,{name:"FANUC_LRMATE200ID4S_J05",rotation:[-Math.PI/2,0,0],children:[o.jsx("group",{name:"FANUC_LRMATE200ID4S_FLG",position:[0,-.07,0],rotation:[-Math.PI,0,0]}),o.jsx("mesh",{name:"link_6",geometry:n.link_6.geometry,material:a.fanuc_metal_black,position:[-.28,.29,0],rotation:[0,0,-Math.PI/2]})]}),o.jsx("mesh",{name:"link_5",geometry:n.link_5.geometry,material:a.fanuc_yellow,position:[-.28,0,-.29],rotation:[-Math.PI/2,0,-Math.PI/2]})]}),o.jsxs("group",{name:"link_4",position:[-.28,0,0],rotation:[0,0,-Math.PI/2],children:[o.jsx("mesh",{name:"J3ARM_UNIT",geometry:n.J3ARM_UNIT.geometry,material:a.fanuc_yellow}),o.jsx("mesh",{name:"J3ARM_UNIT_1",geometry:n.J3ARM_UNIT_1.geometry,material:a.fanuc_aluminium_black})]})]}),o.jsx("mesh",{name:"link_3",geometry:n.link_3.geometry,material:a.fanuc_yellow,position:[-.26,0,0],rotation:[-Math.PI/2,0,-Math.PI/2]})]}),o.jsx("mesh",{name:"link_2",geometry:n.link_2.geometry,material:a.fanuc_yellow,rotation:[-Math.PI/2,0,-Math.PI/2]})]}),o.jsx("mesh",{name:"link_1",geometry:n.link_1.geometry,material:a.fanuc_yellow})]})]})})}Ru.config={rotationOffsets:[0,Math.PI/2,0,0,0,0]};function Ru({modelURL:e,flangeRef:t,...r}){const{nodes:n,materials:a}=z.useGLTF(e);return o.jsx("group",{...r,dispose:null,children:o.jsxs("group",{name:"Scene",children:[o.jsxs("group",{name:"link_0",children:[o.jsx("mesh",{name:"visuals_0",geometry:n.visuals_0.geometry,material:a.fanuc_metal_black}),o.jsx("mesh",{name:"visuals_0_1",geometry:n.visuals_0_1.geometry,material:a.fanuc_metal_black}),o.jsx("mesh",{name:"visuals_0_2",geometry:n.visuals_0_2.geometry,material:a.fanuc_aluminium_black})]}),o.jsxs(b.animated.group,{name:"FANUC_LRMATE200ID7L_J00",children:[o.jsxs(b.animated.group,{name:"FANUC_LRMATE200ID7L_J01",position:[.05,0,0],rotation:[Math.PI/2,Math.PI/2,0],children:[o.jsxs(b.animated.group,{name:"FANUC_LRMATE200ID7L_J02",position:[.44,0,0],children:[o.jsxs(b.animated.group,{name:"FANUC_LRMATE200ID7L_J03",position:[.035,0,0],rotation:[-Math.PI/2,0,0],children:[o.jsxs(b.animated.group,{name:"FANUC_LRMATE200ID7L_J04",position:[0,-.42,0],rotation:[Math.PI/2,0,0],children:[o.jsxs(b.animated.group,{name:"FANUC_LRMATE200ID7L_J05",rotation:[-Math.PI/2,0,0],children:[o.jsx(b.animated.group,{ref:t,name:"FANUC_LRMATE200ID7L_FLG",position:[0,-.08,0],rotation:[-Math.PI,0,0]}),o.jsx("mesh",{name:"link_6",geometry:n.link_6.geometry,material:a.fanuc_metal_black,position:[-.475,.47,0],rotation:[0,0,-Math.PI/2]})]}),o.jsxs("group",{name:"link_5",position:[-.475,0,-.47],rotation:[-Math.PI/2,0,-Math.PI/2],children:[o.jsx("mesh",{name:"visuals_5",geometry:n.visuals_5.geometry,material:a.fanuc_yellow}),o.jsx("mesh",{name:"visuals_5_1",geometry:n.visuals_5_1.geometry,material:a.fanuc_stainless_steel}),o.jsx("mesh",{name:"visuals_5_2",geometry:n.visuals_5_2.geometry,material:a.fanuc_metal_black})]})]}),o.jsxs("group",{name:"link_4",position:[-.475,.05,0],rotation:[0,0,-Math.PI/2],children:[o.jsx("mesh",{name:"visuals_4",geometry:n.visuals_4.geometry,material:a.fanuc_yellow}),o.jsx("mesh",{name:"visuals_4_1",geometry:n.visuals_4_1.geometry,material:a.fanuc_aluminium_black})]})]}),o.jsxs("group",{name:"link_3",position:[-.44,0,-.05],rotation:[-Math.PI/2,0,-Math.PI/2],children:[o.jsx("mesh",{name:"visuals_3",geometry:n.visuals_3.geometry,material:a.fanuc_yellow}),o.jsx("mesh",{name:"visuals_3_1",geometry:n.visuals_3_1.geometry,material:a.fanuc_stainless_steel})]})]}),o.jsx("mesh",{name:"link_2",geometry:n.link_2.geometry,material:a.fanuc_yellow,position:[0,0,-.05],rotation:[-Math.PI/2,0,-Math.PI/2]})]}),o.jsxs("group",{name:"link_1",children:[o.jsx("mesh",{name:"visuals_1",geometry:n.visuals_1.geometry,material:a.fanuc_yellow}),o.jsx("mesh",{name:"visuals_1_1",geometry:n.visuals_1_1.geometry,material:a.fanuc_stainless_steel})]})]})]})})}Au.config={rotationOffsets:[0,0,-Math.PI/2,0,0,0]};function Au({modelURL:e,flangeRef:t,...r}){const{nodes:n,materials:a}=z.useGLTF(e);return o.jsx(o.Fragment,{children:o.jsx("group",{...r,dispose:null,children:o.jsxs("group",{name:"Scene",children:[o.jsxs("group",{name:"link_0",children:[o.jsx("mesh",{name:"visuals_0",geometry:n.visuals_0.geometry,material:a.material_Material_Metall}),o.jsx("mesh",{name:"visuals_0_1",geometry:n.visuals_0_1.geometry,material:a.material_Material_Farbe__2_}),o.jsx("mesh",{name:"visuals_0_2",geometry:n.visuals_0_2.geometry,material:a.material_Material_Metall})]}),o.jsxs(b.animated.group,{name:"KUKA_KR16R2010_2_J00",children:[o.jsxs(b.animated.group,{name:"KUKA_KR16R2010_2_J01",position:[.16,.52,0],rotation:[-Math.PI/2,0,0],children:[o.jsxs(b.animated.group,{name:"KUKA_KR16R2010_2_J02",position:[.98,0,0],rotation:[0,-Math.PI/2,0],children:[o.jsxs(b.animated.group,{name:"KUKA_KR16R2010_2_J03",position:[.15,0,0],rotation:[Math.PI/2,0,0],children:[o.jsxs(b.animated.group,{name:"KUKA_KR16R2010_2_J04",position:[0,-.86,0],rotation:[-Math.PI/2,0,0],children:[o.jsx(b.animated.group,{ref:t,name:"KUKA_KR16R2010_2_J05",rotation:[-Math.PI/2,0,-Math.PI],children:o.jsx("mesh",{name:"link_6",geometry:n.link_6.geometry,material:a.material_Material_Farbe__2_,position:[.67,2,0],rotation:[-Math.PI,0,Math.PI/2]})}),o.jsx("mesh",{name:"link_5",geometry:n.link_5.geometry,material:a.material_Material_Farbe,position:[-.67,0,2],rotation:[Math.PI/2,0,-Math.PI/2]})]}),o.jsx("mesh",{name:"link_4",geometry:n.link_4.geometry,material:a.material_Material_Farbe,position:[-.67,1.14,0],rotation:[0,0,-Math.PI/2]})]}),o.jsxs("group",{name:"link_3",position:[-.52,0,1.14],rotation:[Math.PI/2,0,-Math.PI/2],children:[o.jsx("mesh",{name:"visuals_3",geometry:n.visuals_3.geometry,material:a.material_Material_Farbe}),o.jsx("mesh",{name:"visuals_3_1",geometry:n.visuals_3_1.geometry,material:a.material_Material_Metall}),o.jsx("mesh",{name:"visuals_3_2",geometry:n.visuals_3_2.geometry,material:a.material_Material_Farbe__2_})]})]}),o.jsxs("group",{name:"link_2",position:[-.16,0,-.52],rotation:[Math.PI/2,0,0],children:[o.jsx("mesh",{name:"visuals_2",geometry:n.visuals_2.geometry,material:a.material_Material_Farbe}),o.jsx("mesh",{name:"visuals_2_1",geometry:n.visuals_2_1.geometry,material:a.material_Material_Metall})]})]}),o.jsxs("group",{name:"link_1",children:[o.jsx("mesh",{name:"visuals_1",geometry:n.visuals_1.geometry,material:a.material_Material_Farbe}),o.jsx("mesh",{name:"visuals_1_1",geometry:n.visuals_1_1.geometry,material:a.material_Material_Farbe__2_}),o.jsx("mesh",{name:"visuals_1_2",geometry:n.visuals_1_2.geometry,material:a.material_Material_Metall})]})]})]})})})}wu.config={rotationOffsets:[0,0,-Math.PI/2,0,0,0]};function wu({modelURL:e,flangeRef:t,...r}){const n=z.useGLTF(e),a=n.nodes,s=n.materials;return o.jsx(o.Fragment,{children:o.jsx("group",{...r,dispose:null,children:o.jsx("group",{name:"Scene",children:o.jsxs("group",{name:"kuka_kr210_2700",children:[o.jsxs(b.animated.group,{name:"joint_01",children:[o.jsxs(b.animated.group,{name:"joint_02",position:[.33,.645,0],rotation:[-Math.PI/2,0,0],children:[o.jsxs(b.animated.group,{name:"joint_03",position:[1.15,0,0],rotation:[0,-Math.PI/2,0],children:[o.jsxs(b.animated.group,{name:"joint_04",position:[.115,0,0],rotation:[Math.PI/2,0,0],children:[o.jsxs(b.animated.group,{name:"joint_05",position:[0,-1.22,0],rotation:[-Math.PI/2,0,0],children:[o.jsxs(b.animated.group,{name:"joint_06",rotation:[Math.PI/2,0,0],children:[o.jsx("group",{ref:t,name:"flange",position:[0,-.215,0],rotation:[-Math.PI,0,0]}),o.jsx("group",{name:"link_6",position:[0,-.17,0],rotation:[0,0,-Math.PI/2],children:o.jsx("mesh",{name:"visuals006",geometry:a.visuals006.geometry,material:s.material_Material_Metall_black})})]}),o.jsx("group",{name:"link_5",position:[0,.059,0],rotation:[Math.PI/2,0,-Math.PI/2],children:o.jsxs("group",{name:"visuals005",children:[o.jsx("mesh",{name:"visuals005_1",geometry:a.visuals005_1.geometry,material:s.material_Material_metal_black}),o.jsx("mesh",{name:"visuals005_2",geometry:a.visuals005_2.geometry,material:s.material_Material_kuka_orange})]})})]}),o.jsx("group",{name:"link_4",position:[0,-.869,0],rotation:[0,0,-Math.PI/2],children:o.jsxs("group",{name:"visuals004",children:[o.jsx("mesh",{name:"visuals004_1",geometry:a.visuals004_1.geometry,material:s.material_Material_metal_black}),o.jsx("mesh",{name:"visuals004_2",geometry:a.visuals004_2.geometry,material:s.material_Material_kuka_orange})]})})]}),o.jsx("group",{name:"link_3",position:[0,-.105,0],rotation:[Math.PI/2,0,-Math.PI/2],children:o.jsxs("group",{name:"visuals003",children:[o.jsx("mesh",{name:"visuals003_1",geometry:a.visuals003_1.geometry,material:s.material_Material_rubber}),o.jsx("mesh",{name:"visuals003_2",geometry:a.visuals003_2.geometry,material:s.material_Material_aluminium}),o.jsx("mesh",{name:"visuals003_3",geometry:a.visuals003_3.geometry,material:s.material_Material_metal_black}),o.jsx("mesh",{name:"visuals003_4",geometry:a.visuals003_4.geometry,material:s.material_Material_kuka_black}),o.jsx("mesh",{name:"visuals003_5",geometry:a.visuals003_5.geometry,material:s.material_Material_Rubber_black}),o.jsx("mesh",{name:"visuals003_6",geometry:a.visuals003_6.geometry,material:s.material_Material_kuka_orange}),o.jsx("mesh",{name:"visuals003_7",geometry:a.visuals003_7.geometry,material:s.material_Material_stainless_steel})]})})]}),o.jsx("group",{name:"link_2",position:[0,.009,0],rotation:[Math.PI/2,0,0],children:o.jsxs("group",{name:"visuals002",children:[o.jsx("mesh",{name:"visuals002_1",geometry:a.visuals002_1.geometry,material:s.material_Material_metal_black}),o.jsx("mesh",{name:"visuals002_2",geometry:a.visuals002_2.geometry,material:s.material_Material_Rubber_black}),o.jsx("mesh",{name:"visuals002_3",geometry:a.visuals002_3.geometry,material:s.material_Material_kuka_orange})]})})]}),o.jsx("group",{name:"link_1",position:[0,.236,0],children:o.jsxs("group",{name:"visuals001",children:[o.jsx("mesh",{name:"visuals001_1",geometry:a.visuals001_1.geometry,material:s.material_Material_kuka_black}),o.jsx("mesh",{name:"visuals001_2",geometry:a.visuals001_2.geometry,material:s.material_Material_kuka_orange}),o.jsx("mesh",{name:"visuals001_3",geometry:a.visuals001_3.geometry,material:s.material_Material_rubber}),o.jsx("mesh",{name:"visuals001_4",geometry:a.visuals001_4.geometry,material:s.material_Material_metal_black}),o.jsx("mesh",{name:"visuals001_5",geometry:a.visuals001_5.geometry,material:s.material_Material_aluminium}),o.jsx("mesh",{name:"visuals001_6",geometry:a.visuals001_6.geometry,material:s.material_Material_rubber_black}),o.jsx("mesh",{name:"visuals001_7",geometry:a.visuals001_7.geometry,material:s.material_Material_stainless_steel})]})})]}),o.jsx("group",{name:"link_0",children:o.jsxs("group",{name:"visuals",children:[o.jsx("mesh",{name:"visuals_1",geometry:a.visuals_1.geometry,material:s.material_Material_kuka_black}),o.jsx("mesh",{name:"visuals_2",geometry:a.visuals_2.geometry,material:s.material_Material_metal_black})]})})]})})})})}Pu.config={rotationOffsets:[0,0,-Math.PI/2,0,0,0]};function Pu({modelURL:e,flangeRef:t,...r}){const n=z.useGLTF(e),a=n.nodes,s=n.materials;return o.jsx(o.Fragment,{children:o.jsx("group",{...r,dispose:null,children:o.jsxs("group",{name:"Scene",children:[o.jsxs(b.animated.group,{name:"joint_01",children:[o.jsxs(b.animated.group,{name:"joint_02",position:[.35,.675,0],rotation:[-Math.PI/2,0,0],children:[o.jsxs(b.animated.group,{name:"joint_03",position:[1.15,0,0],rotation:[0,-Math.PI/2,0],children:[o.jsxs(b.animated.group,{name:"joint_04",position:[-.041,0,0],rotation:[Math.PI/2,0,0],children:[o.jsxs(b.animated.group,{name:"joint_05",position:[0,-1.2,0],rotation:[-Math.PI/2,0,0],children:[o.jsxs(b.animated.group,{name:"joint_06",rotation:[Math.PI/2,0,0],children:[o.jsx("group",{ref:t,name:"flange",position:[0,-.24,0],rotation:[-Math.PI,0,0]}),o.jsx("group",{name:"link_6",position:[0,-.213,0],rotation:[0,0,-Math.PI/2],children:o.jsxs("group",{name:"visuals006",children:[o.jsx("mesh",{name:"visuals006_1",geometry:a.visuals006_1.geometry,material:s.material_Material_Farbe__1_}),o.jsx("mesh",{name:"visuals006_2",geometry:a.visuals006_2.geometry,material:s.material_Material_Metall})]})})]}),o.jsx("group",{name:"link_5",position:[0,.044,0],rotation:[Math.PI/2,0,-Math.PI/2],children:o.jsx("mesh",{name:"visuals005",geometry:a.visuals005.geometry,material:s.material_Material_Farbe})})]}),o.jsx("group",{name:"link_4",position:[0,-.954,0],rotation:[0,0,-Math.PI/2],children:o.jsx("mesh",{name:"visuals004",geometry:a.visuals004.geometry,material:s.material_Material_Farbe})})]}),o.jsx("group",{name:"link_3",position:[0,-.178,0],rotation:[Math.PI/2,0,-Math.PI/2],children:o.jsxs("group",{name:"visuals003",children:[o.jsx("mesh",{name:"visuals003_1",geometry:a.visuals003_1.geometry,material:s.material_Material_Farbe__1_}),o.jsx("mesh",{name:"visuals003_2",geometry:a.visuals003_2.geometry,material:s.material_Material_Farbe__2_}),o.jsx("mesh",{name:"visuals003_3",geometry:a.visuals003_3.geometry,material:s.material_Material_Metall}),o.jsx("mesh",{name:"visuals003_4",geometry:a.visuals003_4.geometry,material:s.material_Material_Farbe})]})})]}),o.jsx("group",{name:"link_2",rotation:[Math.PI/2,0,0],children:o.jsxs("group",{name:"visuals002",children:[o.jsx("mesh",{name:"visuals002_1",geometry:a.visuals002_1.geometry,material:s.material_Material_Farbe}),o.jsx("mesh",{name:"visuals002_2",geometry:a.visuals002_2.geometry,material:s.material_Material_Farbe__1_}),o.jsx("mesh",{name:"visuals002_3",geometry:a.visuals002_3.geometry,material:s.material_Material_Metall}),o.jsx("mesh",{name:"visuals002_4",geometry:a.visuals002_4.geometry,material:s.material_Material_Farbe__2_})]})})]}),o.jsx("group",{name:"link_1",position:[0,.226,0],children:o.jsxs("group",{name:"visuals001",children:[o.jsx("mesh",{name:"visuals001_1",geometry:a.visuals001_1.geometry,material:s.material_Material_Metall}),o.jsx("mesh",{name:"visuals001_2",geometry:a.visuals001_2.geometry,material:s.material_Material_Farbe__1_}),o.jsx("mesh",{name:"visuals001_3",geometry:a.visuals001_3.geometry,material:s.material_Material_Farbe__2_}),o.jsx("mesh",{name:"visuals001_4",geometry:a.visuals001_4.geometry,material:s.material_Material_Farbe})]})})]}),o.jsx("group",{name:"link_0-base",children:o.jsxs("group",{name:"visuals",children:[o.jsx("mesh",{name:"visuals_1",geometry:a.visuals_1.geometry,material:s.material_Material_Metall}),o.jsx("mesh",{name:"visuals_2",geometry:a.visuals_2.geometry,material:s.material_Material_Farbe__1_})]})})]})})})}Cu.config={rotationOffsets:[0,0,-Math.PI/2,0,0,0],rotationSign:[-1,1,1,1,1,1]};function Cu({modelURL:e,flangeRef:t,...r}){const{nodes:n,materials:a}=z.useGLTF(e);return o.jsx("group",{...r,dispose:null,children:o.jsxs("group",{name:"Scene",children:[o.jsxs("group",{name:"link_0",children:[o.jsx("mesh",{name:"visuals_0",geometry:n.visuals_0.geometry,material:a.kuka_metal}),o.jsx("mesh",{name:"visuals_0_1",geometry:n.visuals_0_1.geometry,material:a.kuka_black})]}),o.jsxs(b.animated.group,{name:"KUKA_KR6R700-2_J00",children:[o.jsxs(b.animated.group,{name:"KUKA_KR6R700-2_J01",position:[.025,.4,0],rotation:[-Math.PI/2,0,0],children:[o.jsxs(b.animated.group,{name:"KUKA_KR6R700-2_J02",position:[.335,0,0],rotation:[0,-Math.PI/2,0],children:[o.jsxs(b.animated.group,{name:"KUKA_KR6R700-2_J03",position:[.025,0,0],rotation:[Math.PI/2,0,0],children:[o.jsxs(b.animated.group,{name:"KUKA_KR6R700-2_J04",position:[0,-.365,0],rotation:[-Math.PI/2,0,0],children:[o.jsxs(b.animated.group,{name:"KUKA_KR6R700-2_J05",rotation:[-Math.PI/2,0,-Math.PI],children:[o.jsx("group",{ref:t,name:"KUKA_KR6R700-2_FLG",position:[0,-.09,0],rotation:[-Math.PI,0,0]}),o.jsx("mesh",{name:"link_6",geometry:n.link_6.geometry,material:a.kuka_black,position:[.425,.725,0],rotation:[-Math.PI,0,Math.PI/2]})]}),o.jsx("mesh",{name:"link_5",geometry:n.link_5.geometry,material:a.kuka_white,position:[-.425,0,.725],rotation:[Math.PI/2,0,-Math.PI/2]})]}),o.jsxs("group",{name:"link_4",position:[-.425,.36,0],rotation:[0,0,-Math.PI/2],children:[o.jsx("mesh",{name:"visuals_4",geometry:n.visuals_4.geometry,material:a.kuka_white}),o.jsx("mesh",{name:"visuals_4_1",geometry:n.visuals_4_1.geometry,material:a.kuka_orange})]})]}),o.jsx("mesh",{name:"link_3",geometry:n.link_3.geometry,material:a.kuka_white,position:[-.4,0,.36],rotation:[Math.PI/2,0,-Math.PI/2]})]}),o.jsxs("group",{name:"link_2",position:[-.025,0,-.4],rotation:[Math.PI/2,0,0],children:[o.jsx("mesh",{name:"visuals_2",geometry:n.visuals_2.geometry,material:a.kuka_white}),o.jsx("mesh",{name:"visuals_2_1",geometry:n.visuals_2_1.geometry,material:a.kuka_orange})]})]}),o.jsx("mesh",{name:"link_1",geometry:n.link_1.geometry,material:a.kuka_white})]})]})})}function U1({modelURL:e,flangeRef:t,...r}){const n=z.useGLTF(e),a=n.nodes,s=n.materials;return o.jsx("group",{...r,dispose:null,children:o.jsx("group",{name:"Scene",children:o.jsxs(b.animated.group,{name:"UNIVERSALROBOTS_UR10CB_J00",children:[o.jsxs("group",{name:"link_0",children:[o.jsx("mesh",{name:"visuals_0",geometry:a.visuals_0.geometry,material:s.universalrobots_aluminum}),o.jsx("mesh",{name:"visuals_0_1",geometry:a.visuals_0_1.geometry,material:s.universalrobots_aluminum})]}),o.jsxs(b.animated.group,{name:"UNIVERSALROBOTS_UR10CB_J01",position:[0,.127,0],rotation:[Math.PI/2,0,0],children:[o.jsxs("group",{name:"link_1",position:[0,0,.127],rotation:[-Math.PI/2,0,0],children:[o.jsx("mesh",{name:"visuals_1",geometry:a.visuals_1.geometry,material:s.universalrobots_darkgrey}),o.jsx("mesh",{name:"visuals_1_1",geometry:a.visuals_1_1.geometry,material:s.universalrobots_stainlesssteel}),o.jsx("mesh",{name:"visuals_1_2",geometry:a.visuals_1_2.geometry,material:s.universalrobots_stainlesssteel}),o.jsx("mesh",{name:"visuals_1_3",geometry:a.visuals_1_3.geometry,material:s.universalrobots_stainlesssteel}),o.jsx("mesh",{name:"visuals_1_4",geometry:a.visuals_1_4.geometry,material:s.universalrobots_black}),o.jsx("mesh",{name:"visuals_1_5",geometry:a.visuals_1_5.geometry,material:s.universalrobots_lightblue})]}),o.jsxs(b.animated.group,{name:"UNIVERSALROBOTS_UR10CB_J02",position:[-.612,0,0],children:[o.jsxs("group",{name:"link_2",position:[.612,0,.127],rotation:[-Math.PI/2,0,0],children:[o.jsx("mesh",{name:"visuals_2",geometry:a.visuals_2.geometry,material:s.universalrobots_aluminum}),o.jsx("mesh",{name:"visuals_2_1",geometry:a.visuals_2_1.geometry,material:s.universalrobots_stainlesssteel}),o.jsx("mesh",{name:"visuals_2_2",geometry:a.visuals_2_2.geometry,material:s.universalrobots_darkgrey}),o.jsx("mesh",{name:"visuals_2_3",geometry:a.visuals_2_3.geometry,material:s.universalrobots_black}),o.jsx("mesh",{name:"visuals_2_4",geometry:a.visuals_2_4.geometry,material:s.universalrobots_stainlesssteel}),o.jsx("mesh",{name:"visuals_2_5",geometry:a.visuals_2_5.geometry,material:s.universalrobots_lightblue})]}),o.jsxs(b.animated.group,{name:"UNIVERSALROBOTS_UR10CB_J03",position:[-.572,0,0],children:[o.jsxs("group",{name:"link_3",position:[1.184,0,.127],rotation:[-Math.PI/2,0,0],children:[o.jsx("mesh",{name:"visuals_3",geometry:a.visuals_3.geometry,material:s.universalrobots_aluminum}),o.jsx("mesh",{name:"visuals_3_1",geometry:a.visuals_3_1.geometry,material:s.universalrobots_stainlesssteel}),o.jsx("mesh",{name:"visuals_3_2",geometry:a.visuals_3_2.geometry,material:s.universalrobots_darkgrey}),o.jsx("mesh",{name:"visuals_3_3",geometry:a.visuals_3_3.geometry,material:s.universalrobots_black}),o.jsx("mesh",{name:"visuals_3_4",geometry:a.visuals_3_4.geometry,material:s.universalrobots_lightblue})]}),o.jsxs(b.animated.group,{name:"UNIVERSALROBOTS_UR10CB_J04",position:[0,.164,0],rotation:[Math.PI/2,0,0],children:[o.jsxs("group",{name:"link_4",position:[1.184,.127,.164],rotation:[Math.PI,0,0],children:[o.jsx("mesh",{name:"visuals_4",geometry:a.visuals_4.geometry,material:s.universalrobots_darkgrey}),o.jsx("mesh",{name:"visuals_4_1",geometry:a.visuals_4_1.geometry,material:s.universalrobots_stainlesssteel}),o.jsx("mesh",{name:"visuals_4_2",geometry:a.visuals_4_2.geometry,material:s.universalrobots_black}),o.jsx("mesh",{name:"visuals_4_3",geometry:a.visuals_4_3.geometry,material:s.universalrobots_stainlesssteel}),o.jsx("mesh",{name:"visuals_4_4",geometry:a.visuals_4_4.geometry,material:s.universalrobots_lightblue})]}),o.jsxs(b.animated.group,{name:"UNIVERSALROBOTS_UR10CB_J05",position:[0,.116,0],rotation:[-Math.PI/2,0,0],children:[o.jsxs("group",{name:"link_5",position:[1.184,-.164,.012],rotation:[-Math.PI/2,0,0],children:[o.jsx("mesh",{name:"visuals_5",geometry:a.visuals_5.geometry,material:s.universalrobots_darkgrey}),o.jsx("mesh",{name:"visuals_5_1",geometry:a.visuals_5_1.geometry,material:s.universalrobots_stainlesssteel}),o.jsx("mesh",{name:"visuals_5_2",geometry:a.visuals_5_2.geometry,material:s.universalrobots_black}),o.jsx("mesh",{name:"visuals_5_3",geometry:a.visuals_5_3.geometry,material:s.universalrobots_aluminum}),o.jsx("mesh",{name:"visuals_5_4",geometry:a.visuals_5_4.geometry,material:s.universalrobots_lightblue})]}),o.jsx("group",{ref:t,name:"UNIVERSALROBOTS_UR10CB_FLG",position:[0,.116,0],rotation:[-Math.PI/2,0,0],children:o.jsxs("group",{name:"link_6",position:[1.184,-.012,-.28],children:[o.jsx("mesh",{name:"visuals_6",geometry:a.visuals_6.geometry,material:s.universalrobots_aluminum}),o.jsx("mesh",{name:"visuals_6_1",geometry:a.visuals_6_1.geometry,material:s.universalrobots_aluminum})]})})]})]})]})]})]})]})})})}function B1({modelURL:e,flangeRef:t,...r}){const n=z.useGLTF(e),a=n.nodes,s=n.materials;return o.jsx(o.Fragment,{children:o.jsx("group",{...r,dispose:null,children:o.jsx("group",{name:"Scene",children:o.jsxs("group",{name:"UR10e",rotation:[Math.PI/2,0,0],children:[o.jsxs(b.animated.group,{name:"UR10e_J01",rotation:[-Math.PI/2,0,0],children:[o.jsxs(b.animated.group,{name:"UR10e_J02",position:[0,.181,0],rotation:[Math.PI/2,0,0],children:[o.jsxs(b.animated.group,{name:"UR10e_J03",position:[-.613,0,0],children:[o.jsxs(b.animated.group,{name:"UR10e_J04",position:[-.572,0,0],children:[o.jsxs(b.animated.group,{name:"UR10e_J05",position:[0,.174,0],rotation:[Math.PI/2,0,0],children:[o.jsxs(b.animated.group,{name:"UR10e_J06",position:[0,.12,0],rotation:[-Math.PI/2,0,0],children:[o.jsxs(b.animated.group,{ref:t,name:"UR10e_FLG",position:[1.184,-.174,.061],rotation:[-Math.PI/2,0,0],children:[o.jsx("mesh",{name:"C-1000493",geometry:a["C-1000493"].geometry,material:s.Black}),o.jsx("mesh",{name:"C-1000493_1",geometry:a["C-1000493_1"].geometry,material:s.Metal})]}),o.jsx("group",{name:"UR10e_L07",position:[0,.117,0]})]}),o.jsxs("group",{name:"UR10e_L06",position:[1.184,.181,.174],rotation:[Math.PI,0,0],children:[o.jsx("mesh",{name:"C-1000492",geometry:a["C-1000492"].geometry,material:s.DarkGray}),o.jsx("mesh",{name:"C-1000492_1",geometry:a["C-1000492_1"].geometry,material:s.Black}),o.jsx("mesh",{name:"C-1000492_2",geometry:a["C-1000492_2"].geometry,material:s.Blue}),o.jsx("mesh",{name:"C-1000492_3",geometry:a["C-1000492_3"].geometry,material:s.Screw})]})]}),o.jsxs("group",{name:"UR10e_L05",position:[1.184,0,.181],rotation:[-Math.PI/2,0,0],children:[o.jsx("mesh",{name:"C-1000491",geometry:a["C-1000491"].geometry,material:s.DarkGray}),o.jsx("mesh",{name:"C-1000491_1",geometry:a["C-1000491_1"].geometry,material:s.Blue}),o.jsx("mesh",{name:"C-1000491_2",geometry:a["C-1000491_2"].geometry,material:s.Black}),o.jsx("mesh",{name:"C-1000491_3",geometry:a["C-1000491_3"].geometry,material:s.Screw})]})]}),o.jsxs("group",{name:"UR10e_L04",position:[.613,0,.181],rotation:[-Math.PI/2,0,0],children:[o.jsx("mesh",{name:"C-1000490",geometry:a["C-1000490"].geometry,material:s.Metal}),o.jsx("mesh",{name:"C-1000490_1",geometry:a["C-1000490_1"].geometry,material:s.Black}),o.jsx("mesh",{name:"C-1000490_2",geometry:a["C-1000490_2"].geometry,material:s.DarkGray}),o.jsx("mesh",{name:"C-1000490_3",geometry:a["C-1000490_3"].geometry,material:s.Blue})]})]}),o.jsxs(b.animated.group,{name:"UR10e_L03",position:[0,0,.181],rotation:[-Math.PI/2,0,0],children:[o.jsx("mesh",{name:"C-1000489",geometry:a["C-1000489"].geometry,material:s.Blue}),o.jsx("mesh",{name:"C-1000489_1",geometry:a["C-1000489_1"].geometry,material:s.Black}),o.jsx("mesh",{name:"C-1000489_2",geometry:a["C-1000489_2"].geometry,material:s.DarkGray}),o.jsx("mesh",{name:"C-1000489_3",geometry:a["C-1000489_3"].geometry,material:s.Screw}),o.jsx("mesh",{name:"C-1000489_4",geometry:a["C-1000489_4"].geometry,material:s.Metal})]})]}),o.jsxs("group",{name:"UR10e_L02",children:[o.jsx("mesh",{name:"C-1000488",geometry:a["C-1000488"].geometry,material:s.Black}),o.jsx("mesh",{name:"C-1000488_1",geometry:a["C-1000488_1"].geometry,material:s.Blue}),o.jsx("mesh",{name:"C-1000488_2",geometry:a["C-1000488_2"].geometry,material:s.Screw}),o.jsx("mesh",{name:"C-1000488_3",geometry:a["C-1000488_3"].geometry,material:s.DarkGray})]})]}),o.jsxs("group",{name:"UR10e_L01",rotation:[-Math.PI/2,0,0],children:[o.jsx("mesh",{name:"C-1000487",geometry:a["C-1000487"].geometry,material:s.Black}),o.jsx("mesh",{name:"C-1000487_1",geometry:a["C-1000487_1"].geometry,material:s.Metal})]})]})})})})}function J1({modelURL:e,flangeRef:t,...r}){const n=z.useGLTF(e),a=n.nodes,s=n.materials;return o.jsx(o.Fragment,{children:o.jsx("group",{...r,dispose:null,children:o.jsx("group",{name:"Scene",children:o.jsxs("group",{name:"UR3",rotation:[Math.PI/2,0,0],children:[o.jsxs(b.animated.group,{name:"UR3_J01",rotation:[-Math.PI/2,0,0],children:[o.jsxs(b.animated.group,{name:"UR3_J02",position:[0,.152,0],rotation:[Math.PI/2,0,0],children:[o.jsxs(b.animated.group,{name:"UR3_J03",position:[-.244,0,0],children:[o.jsxs(b.animated.group,{name:"UR3_J04",position:[-.213,0,0],children:[o.jsxs(b.animated.group,{name:"UR3_J05",position:[0,.112,0],rotation:[Math.PI/2,0,0],children:[o.jsx("mesh",{name:"UR3_05",geometry:a.UR3_05.geometry,material:s.Standard}),o.jsxs(b.animated.group,{name:"UR3_J06",position:[0,.085,0],rotation:[-Math.PI/2,0,0],children:[o.jsx("group",{ref:t,name:"UR3_FLG",position:[0,.082,0]}),o.jsx("mesh",{name:"UR3_L06",geometry:a.UR3_L06.geometry,material:s.Standard})]})]}),o.jsx("mesh",{name:"UR3_L04",geometry:a.UR3_L04.geometry,material:s.Standard})]}),o.jsx("mesh",{name:"UR3_L03",geometry:a.UR3_L03.geometry,material:s.Standard})]}),o.jsx("mesh",{name:"UR3_L02",geometry:a.UR3_L02.geometry,material:s.Standard})]}),o.jsx("mesh",{name:"UR3_L01",geometry:a.UR3_L01.geometry,material:s.Standard})]}),o.jsx("mesh",{name:"UR3_L00",geometry:a.UR3_L00.geometry,material:s.Standard,rotation:[-Math.PI/2,0,0]})]})})})})}function V1({modelURL:e,flangeRef:t,...r}){const n=z.useGLTF(e),a=n.nodes,s=n.materials;return o.jsx("group",{...r,dispose:null,children:o.jsxs("group",{name:"Empty",children:[o.jsxs("group",{name:"link_0",children:[o.jsx("mesh",{name:"visuals_0",geometry:a.visuals_0.geometry,material:s.universalrobots_black}),o.jsx("mesh",{name:"visuals_0_1",geometry:a.visuals_0_1.geometry,material:s.universalrobots_aluminum})]}),o.jsxs(b.animated.group,{name:"UNIVERSALROBOTS_UR3E_J00",children:[o.jsxs("group",{name:"link_1",children:[o.jsx("mesh",{name:"visuals_1",geometry:a.visuals_1.geometry,material:s.universalrobots_black}),o.jsx("mesh",{name:"visuals_1_1",geometry:a.visuals_1_1.geometry,material:s.universalrobots_darkgrey}),o.jsx("mesh",{name:"visuals_1_2",geometry:a.visuals_1_2.geometry,material:s.universalrobots_lightblue}),o.jsx("mesh",{name:"visuals_1_3",geometry:a.visuals_1_3.geometry,material:s.universalrobots_black}),o.jsx("mesh",{name:"visuals_1_4",geometry:a.visuals_1_4.geometry,material:s.universalrobots_stainlesssteel})]}),o.jsxs(b.animated.group,{name:"UNIVERSALROBOTS_UR3E_J01",position:[0,.152,0],rotation:[Math.PI/2,0,0],children:[o.jsxs("group",{name:"link_2",position:[0,0,.152],rotation:[-Math.PI/2,0,0],children:[o.jsx("mesh",{name:"visuals_2",geometry:a.visuals_2.geometry,material:s.universalrobots_black}),o.jsx("mesh",{name:"visuals_2_1",geometry:a.visuals_2_1.geometry,material:s.universalrobots_aluminum}),o.jsx("mesh",{name:"visuals_2_2",geometry:a.visuals_2_2.geometry,material:s.universalrobots_darkgrey}),o.jsx("mesh",{name:"visuals_2_3",geometry:a.visuals_2_3.geometry,material:s.universalrobots_lightblue})]}),o.jsxs(b.animated.group,{name:"UNIVERSALROBOTS_UR3E_J02",position:[-.244,0,0],children:[o.jsxs("group",{name:"link_3",position:[.244,0,.152],rotation:[-Math.PI/2,0,0],children:[o.jsx("mesh",{name:"visuals_3",geometry:a.visuals_3.geometry,material:s.universalrobots_black}),o.jsx("mesh",{name:"visuals_3_1",geometry:a.visuals_3_1.geometry,material:s.universalrobots_aluminum}),o.jsx("mesh",{name:"visuals_3_2",geometry:a.visuals_3_2.geometry,material:s.universalrobots_darkgrey}),o.jsx("mesh",{name:"visuals_3_3",geometry:a.visuals_3_3.geometry,material:s.universalrobots_lightblue})]}),o.jsxs(b.animated.group,{name:"UNIVERSALROBOTS_UR3E_J03",position:[-.213,0,0],children:[o.jsxs("group",{name:"link_4",position:[.457,0,.152],rotation:[-Math.PI/2,0,0],children:[o.jsx("mesh",{name:"visuals_4",geometry:a.visuals_4.geometry,material:s.universalrobots_black}),o.jsx("mesh",{name:"visuals_4_1",geometry:a.visuals_4_1.geometry,material:s.universalrobots_darkgrey}),o.jsx("mesh",{name:"visuals_4_2",geometry:a.visuals_4_2.geometry,material:s.universalrobots_lightblue})]}),o.jsxs(b.animated.group,{name:"UNIVERSALROBOTS_UR3E_J04",position:[0,.131,0],rotation:[Math.PI/2,0,0],children:[o.jsxs("group",{name:"link_5",position:[.457,.152,.131],rotation:[Math.PI,0,0],children:[o.jsx("mesh",{name:"visuals_5",geometry:a.visuals_5.geometry,material:s.universalrobots_black}),o.jsx("mesh",{name:"visuals_5_1",geometry:a.visuals_5_1.geometry,material:s.universalrobots_darkgrey}),o.jsx("mesh",{name:"visuals_5_2",geometry:a.visuals_5_2.geometry,material:s.universalrobots_lightblue})]}),o.jsxs(b.animated.group,{name:"UNIVERSALROBOTS_UR3E_J05",position:[0,.085,0],rotation:[-Math.PI/2,0,0],children:[o.jsxs("group",{name:"link_6",position:[.457,-.131,.067],rotation:[-Math.PI/2,0,0],children:[o.jsx("mesh",{name:"visuals_6",geometry:a.visuals_6.geometry,material:s.universalrobots_stainlesssteel}),o.jsx("mesh",{name:"visuals_6_1",geometry:a.visuals_6_1.geometry,material:s.universalrobots_black}),o.jsx("mesh",{name:"visuals_6_2",geometry:a.visuals_6_2.geometry,material:s.universalrobots_aluminum})]}),o.jsx("group",{ref:t,name:"UNIVERSALROBOTS_UR3E_FLG",position:[0,.092,0]})]})]})]})]})]})]})]})})}function Si({modelURL:e,flangeRef:t,...r}){const n=z.useGLTF(e),a=n.nodes,s=n.materials;return o.jsx("group",{...r,dispose:null,children:o.jsxs("group",{name:"Scene",children:[o.jsxs(b.animated.group,{name:"UNIVERSALROBOTS_UR5CB_J00",children:[o.jsxs("group",{name:"link_1",children:[o.jsx("mesh",{name:"visuals_1",geometry:a.visuals_1.geometry,material:s.universalrobots_darkgrey}),o.jsx("mesh",{name:"visuals_1_1",geometry:a.visuals_1_1.geometry,material:s.universalrobots_black}),o.jsx("mesh",{name:"visuals_1_2",geometry:a.visuals_1_2.geometry,material:s.universalrobots_aluminum}),o.jsx("mesh",{name:"visuals_1_3",geometry:a.visuals_1_3.geometry,material:s.universalrobots_lightblue})]}),o.jsxs(b.animated.group,{name:"UNIVERSALROBOTS_UR5CB_J01",position:[0,.089,0],rotation:[Math.PI/2,0,0],children:[o.jsxs("group",{name:"link_2",position:[0,0,.089],rotation:[-Math.PI/2,0,0],children:[o.jsx("mesh",{name:"visuals_2",geometry:a.visuals_2.geometry,material:s.universalrobots_stainlesssteel}),o.jsx("mesh",{name:"visuals_2_1",geometry:a.visuals_2_1.geometry,material:s.universalrobots_lightblue}),o.jsx("mesh",{name:"visuals_2_2",geometry:a.visuals_2_2.geometry,material:s.universalrobots_aluminum}),o.jsx("mesh",{name:"visuals_2_3",geometry:a.visuals_2_3.geometry,material:s.universalrobots_black}),o.jsx("mesh",{name:"visuals_2_4",geometry:a.visuals_2_4.geometry,material:s.universalrobots_darkgrey})]}),o.jsxs(b.animated.group,{name:"UNIVERSALROBOTS_UR5CB_J02",position:[-.425,0,0],children:[o.jsxs("group",{name:"link_3",position:[.425,0,.089],rotation:[-Math.PI/2,0,0],children:[o.jsx("mesh",{name:"visuals_3",geometry:a.visuals_3.geometry,material:s.universalrobots_lightblue}),o.jsx("mesh",{name:"visuals_3_1",geometry:a.visuals_3_1.geometry,material:s.universalrobots_black}),o.jsx("mesh",{name:"visuals_3_2",geometry:a.visuals_3_2.geometry,material:s.universalrobots_aluminum}),o.jsx("mesh",{name:"visuals_3_3",geometry:a.visuals_3_3.geometry,material:s.universalrobots_darkgrey}),o.jsx("mesh",{name:"visuals_3_4",geometry:a.visuals_3_4.geometry,material:s.universalrobots_stainlesssteel})]}),o.jsxs(b.animated.group,{name:"UNIVERSALROBOTS_UR5CB_J03",position:[-.392,0,0],children:[o.jsxs("group",{name:"link_4",position:[.817,0,.089],rotation:[-Math.PI/2,0,0],children:[o.jsx("mesh",{name:"visuals_4",geometry:a.visuals_4.geometry,material:s.universalrobots_darkgrey}),o.jsx("mesh",{name:"visuals_4_1",geometry:a.visuals_4_1.geometry,material:s.universalrobots_aluminum}),o.jsx("mesh",{name:"visuals_4_2",geometry:a.visuals_4_2.geometry,material:s.universalrobots_lightblue}),o.jsx("mesh",{name:"visuals_4_3",geometry:a.visuals_4_3.geometry,material:s.universalrobots_black})]}),o.jsxs(b.animated.group,{name:"UNIVERSALROBOTS_UR5CB_J04",position:[0,.109,0],rotation:[Math.PI/2,0,0],children:[o.jsxs("group",{name:"link_5",position:[.817,.089,.109],rotation:[Math.PI,0,0],children:[o.jsx("mesh",{name:"visuals_5",geometry:a.visuals_5.geometry,material:s.universalrobots_darkgrey}),o.jsx("mesh",{name:"visuals_5_1",geometry:a.visuals_5_1.geometry,material:s.universalrobots_lightblue}),o.jsx("mesh",{name:"visuals_5_2",geometry:a.visuals_5_2.geometry,material:s.universalrobots_aluminum}),o.jsx("mesh",{name:"visuals_5_3",geometry:a.visuals_5_3.geometry,material:s.universalrobots_black})]}),o.jsxs(b.animated.group,{name:"UNIVERSALROBOTS_UR5CB_J05",position:[0,.095,0],rotation:[-Math.PI/2,0,0],children:[o.jsx("mesh",{name:"link_6",geometry:a.link_6.geometry,material:s.universalrobots_stainlesssteel,position:[.817,-.109,-.005],rotation:[-Math.PI/2,0,0]}),o.jsx("group",{ref:t,name:"UNIVERSALROBOTS_UR5CB_FLG",position:[0,.082,0]})]})]})]})]})]})]}),o.jsx("mesh",{name:"link_0",geometry:a.link_0.geometry,material:s.universalrobots_aluminum})]})})}function G1({modelURL:e,flangeRef:t,...r}){const n=z.useGLTF(e),a=n.nodes,s=n.materials;return o.jsx(o.Fragment,{children:o.jsx("group",{...r,dispose:null,children:o.jsx("group",{name:"Scene",children:o.jsxs("group",{name:"UR5e",rotation:[Math.PI/2,0,0],children:[o.jsxs(b.animated.group,{name:"UR5e_J01",rotation:[-Math.PI/2,0,0],children:[o.jsxs(b.animated.group,{name:"UR5e_J02",position:[0,.162,0],rotation:[Math.PI/2,0,0],children:[o.jsxs(b.animated.group,{name:"UR5e_J03",position:[-.425,0,0],children:[o.jsxs(b.animated.group,{name:"UR5e_J04",position:[-.392,0,0],children:[o.jsxs(b.animated.group,{name:"UR5e_J05",position:[0,.133,0],rotation:[Math.PI/2,0,0],children:[o.jsxs(b.animated.group,{name:"UR5e_J06",position:[0,.1,0],rotation:[-Math.PI/2,0,0],children:[o.jsx("group",{ref:t,name:"UR5e_FLG",position:[0,.1,0]}),o.jsx("group",{name:"UR5e_L06",position:[0,.1,0],rotation:[0,0,-Math.PI],children:o.jsxs(o.Fragment,{children:[o.jsx("mesh",{name:"C-1000255",geometry:a["C-1000255"].geometry,material:s.Black}),o.jsx("mesh",{name:"C-1000255_1",geometry:a["C-1000255_1"].geometry,material:s.Metal})]})})]}),o.jsx("group",{name:"UR5e_L05",rotation:[-Math.PI/2,-Math.PI/3,0],children:o.jsxs(o.Fragment,{children:[o.jsx("mesh",{name:"C-1000253",geometry:a["C-1000253"].geometry,material:s.Blue}),o.jsx("mesh",{name:"C-1000253_1",geometry:a["C-1000253_1"].geometry,material:s.Black}),o.jsx("mesh",{name:"C-1000253_2",geometry:a["C-1000253_2"].geometry,material:s.Metal}),o.jsx("mesh",{name:"C-1000253_3",geometry:a["C-1000253_3"].geometry,material:s.DarkGray})]})})]}),o.jsx("group",{name:"UR5e_L04",rotation:[0,-Math.PI/3,0],children:o.jsxs(o.Fragment,{children:[o.jsx("mesh",{name:"C-1000251",geometry:a["C-1000251"].geometry,material:s.Blue}),o.jsx("mesh",{name:"C-1000251_1",geometry:a["C-1000251_1"].geometry,material:s.Black}),o.jsx("mesh",{name:"C-1000251_2",geometry:a["C-1000251_2"].geometry,material:s.Metal}),o.jsx("mesh",{name:"C-1000251_3",geometry:a["C-1000251_3"].geometry,material:s.DarkGray})]})})]}),o.jsx("group",{name:"UR5e_L03",children:o.jsxs(o.Fragment,{children:[o.jsx("mesh",{name:"C-1000250",geometry:a["C-1000250"].geometry,material:s.Black}),o.jsx("mesh",{name:"C-1000250_1",geometry:a["C-1000250_1"].geometry,material:s.DarkGray}),o.jsx("mesh",{name:"C-1000250_2",geometry:a["C-1000250_2"].geometry,material:s.Blue}),o.jsx("mesh",{name:"C-1000250_3",geometry:a["C-1000250_3"].geometry,material:s.Metal}),o.jsx("mesh",{name:"C-1000250_4",geometry:a["C-1000250_4"].geometry,material:s.Metal})]})})]}),o.jsx("group",{name:"UR5e_L02",rotation:[0,-Math.PI/2,0],children:o.jsxs(o.Fragment,{children:[o.jsx("mesh",{name:"C-1000249",geometry:a["C-1000249"].geometry,material:s.Metal}),o.jsx("mesh",{name:"C-1000249_1",geometry:a["C-1000249_1"].geometry,material:s.Black}),o.jsx("mesh",{name:"C-1000249_2",geometry:a["C-1000249_2"].geometry,material:s.DarkGray}),o.jsx("mesh",{name:"C-1000249_3",geometry:a["C-1000249_3"].geometry,material:s.Blue}),o.jsx("mesh",{name:"C-1000249_4",geometry:a["C-1000249_4"].geometry,material:s.Metal})]})})]}),o.jsx("group",{name:"UR5e_L01",rotation:[Math.PI/2,0,0],children:o.jsxs(o.Fragment,{children:[o.jsx("mesh",{name:"C-1000248",geometry:a["C-1000248"].geometry,material:s.DarkGray}),o.jsx("mesh",{name:"C-1000248_1",geometry:a["C-1000248_1"].geometry,material:s.Black}),o.jsx("mesh",{name:"C-1000248_2",geometry:a["C-1000248_2"].geometry,material:s.Blue}),o.jsx("mesh",{name:"C-1000248_3",geometry:a["C-1000248_3"].geometry,material:s.Metal})]})})]}),o.jsx("group",{name:"UR5e_L00",children:o.jsxs(o.Fragment,{children:[o.jsx("mesh",{name:"C-1000257",geometry:a["C-1000257"].geometry,material:s.Black}),o.jsx("mesh",{name:"C-1000257_1",geometry:a["C-1000257_1"].geometry,material:s.Metal})]})})]})})})})}Mu.config={rotationOffsets:[0,-Math.PI/2,0,0,0,0],rotationSign:[1,-1,1,1,1,1]};function Mu({modelURL:e,flangeRef:t,...r}){const n=z.useGLTF(e),a=n.nodes,s=n.materials;return o.jsx(o.Fragment,{children:o.jsx("group",{...r,dispose:null,children:o.jsx("group",{name:"Scene",children:o.jsxs("group",{name:"AR1440",rotation:[Math.PI/2,0,0],children:[o.jsxs(b.animated.group,{name:"AR1440_J01",rotation:[-Math.PI/2,0,0],children:[o.jsxs(b.animated.group,{name:"AR1440_J02",position:[.155,0,0],rotation:[Math.PI/2,0,Math.PI],children:[o.jsxs(b.animated.group,{name:"AR1440_J03",position:[.614,0,0],rotation:[Math.PI,0,0],children:[o.jsxs(b.animated.group,{name:"AR1440_J04",position:[.2,0,0],rotation:[-Math.PI/2,0,0],children:[o.jsxs(b.animated.group,{name:"AR1440_J05",position:[0,-.64,0],rotation:[Math.PI/2,0,0],children:[o.jsxs(b.animated.group,{name:"AR1440_J06",rotation:[-Math.PI/2,0,0],children:[o.jsx("group",{ref:t,name:"AR1440_FLG",position:[0,-.1,0],rotation:[-Math.PI,0,0]}),o.jsx("mesh",{name:"AR1440_L06_CAD",geometry:a.AR1440_L06_CAD.geometry,material:s.metall})]}),o.jsx("mesh",{name:"AR1440_L05_CAD",geometry:a.AR1440_L05_CAD.geometry,material:s.yaskawaBlueMetall})]}),o.jsxs("group",{name:"AR1440_L04_CAD",children:[o.jsx("mesh",{name:"AR1440_L04_CAD001",geometry:a.AR1440_L04_CAD001.geometry,material:s.yaskawaBlueMetall}),o.jsx("mesh",{name:"AR1440_L04_CAD001_1",geometry:a.AR1440_L04_CAD001_1.geometry,material:s.white})]})]}),o.jsxs("group",{name:"AR1440_L03_CAD",children:[o.jsx("mesh",{name:"AR1440_L03_CAD001",geometry:a.AR1440_L03_CAD001.geometry,material:s.yaskawaBlueMetall}),o.jsx("mesh",{name:"AR1440_L03_CAD001_1",geometry:a.AR1440_L03_CAD001_1.geometry,material:s.blackMetall})]})]}),o.jsx("mesh",{name:"AR1440_L02_CAD",geometry:a.AR1440_L02_CAD.geometry,material:s.yaskawaBlueMetall})]}),o.jsxs("group",{name:"AR1440_L01_CAD",children:[o.jsx("mesh",{name:"AR1440_L01_CAD001",geometry:a.AR1440_L01_CAD001.geometry,material:s.yaskawaBlueMetall}),o.jsx("mesh",{name:"AR1440_L01_CAD001_1",geometry:a.AR1440_L01_CAD001_1.geometry,material:s.blackMetall})]})]}),o.jsx("mesh",{name:"AR1440_L00_CAD",geometry:a.AR1440_L00_CAD.geometry,material:s.yaskawaBlueMetall,position:[0,0,.45],rotation:[-Math.PI/2,0,0]})]})})})})}ku.config={rotationOffsets:[0,-Math.PI/2,0,0,0,0],rotationSign:[1,-1,1,1,1,1]};function ku({modelURL:e,flangeRef:t,...r}){const n=z.useGLTF(e),a=n.nodes,s=n.materials;return o.jsx(o.Fragment,{children:o.jsx("group",{...r,dispose:null,children:o.jsxs("group",{name:"Scene",children:[o.jsxs(b.animated.group,{name:"AR1730_J00",children:[o.jsxs(b.animated.group,{name:"AR1730_J01",position:[.15,0,0],rotation:[-Math.PI/2,-Math.PI/2,0],children:[o.jsxs(b.animated.group,{name:"AR1730_J02",position:[.76,0,0],rotation:[-Math.PI,0,0],children:[o.jsxs(b.animated.group,{name:"AR1730_J03",position:[.2,0,0],rotation:[-Math.PI/2,0,0],children:[o.jsxs(b.animated.group,{name:"AR1730_J04",position:[0,-.795,0],rotation:[Math.PI/2,0,0],children:[o.jsxs(b.animated.group,{name:"AR1730_J05",rotation:[-Math.PI/2,0,0],children:[o.jsx("group",{ref:t,name:"AR1730_FLG",position:[0,-.1,0],rotation:[-Math.PI,0,0]}),o.jsx("mesh",{name:"AR1730_L06",geometry:a.AR1730_L06.geometry,material:s.Metal,rotation:[Math.PI/2,-Math.PI/2,0]})]}),o.jsx("mesh",{name:"AR1730_L05",geometry:a.AR1730_L05.geometry,material:s.Blue,rotation:[Math.PI/2,0,Math.PI/2]})]}),o.jsxs("group",{name:"AR1730_L04",position:[0,-.302,0],rotation:[0,0,-Math.PI/2],children:[o.jsx("mesh",{name:"_R_AXIS_SW0001002",geometry:a._R_AXIS_SW0001002.geometry,material:s.Blue}),o.jsx("mesh",{name:"_R_AXIS_SW0001002_1",geometry:a._R_AXIS_SW0001002_1.geometry,material:s.White})]})]}),o.jsxs("group",{name:"AR1730_L03",rotation:[Math.PI/2,0,-Math.PI/2],children:[o.jsx("mesh",{name:"_U_AXIS_SW0001002",geometry:a._U_AXIS_SW0001002.geometry,material:s.Blue}),o.jsx("mesh",{name:"_U_AXIS_SW0001002_1",geometry:a._U_AXIS_SW0001002_1.geometry,material:s.Black})]})]}),o.jsx("mesh",{name:"AR1730_L02",geometry:a.AR1730_L02.geometry,material:s.Blue,position:[0,-.157,0],rotation:[-Math.PI,-1.571,0]})]}),o.jsxs("group",{name:"AR1730_L01",position:[0,-.336,0],rotation:[Math.PI/2,0,-Math.PI/2],children:[o.jsx("mesh",{name:"_S_AXIS_SW0001002",geometry:a._S_AXIS_SW0001002.geometry,material:s.Blue}),o.jsx("mesh",{name:"_S_AXIS_SW0001002_1",geometry:a._S_AXIS_SW0001002_1.geometry,material:s.Black})]})]}),o.jsx("mesh",{name:"AR1730_L00",geometry:a.AR1730_L00.geometry,material:s.Blue,position:[0,-.505,0],rotation:[Math.PI/2,0,-Math.PI/2]})]})})})}Iu.config={rotationOffsets:[0,-Math.PI/2,0,0,0,0]};function Iu({modelURL:e,flangeRef:t,...r}){const n=z.useGLTF(e),a=n.nodes,s=n.materials;return o.jsx("group",{...r,dispose:null,children:o.jsxs("group",{name:"Scene",children:[o.jsxs("group",{name:"link_0",children:[o.jsx("mesh",{name:"shape",geometry:a.shape.geometry,material:s.yaskawa_black}),o.jsx("mesh",{name:"shape_1",geometry:a.shape_1.geometry,material:s.yaskawa_metalsilver}),o.jsx("mesh",{name:"shape_2",geometry:a.shape_2.geometry,material:s.yaskawa_blue}),o.jsx("mesh",{name:"shape_3",geometry:a.shape_3.geometry,material:s.yaskawa_metalsilver})]}),o.jsxs(b.animated.group,{name:"YASKAWA_AR2010_J00",children:[o.jsxs("group",{name:"link_1",children:[o.jsx("mesh",{name:"shape001",geometry:a.shape001.geometry,material:s.yaskawa_black}),o.jsx("mesh",{name:"shape001_1",geometry:a.shape001_1.geometry,material:s.yaskawa_blue})]}),o.jsxs(b.animated.group,{name:"YASKAWA_AR2010_J01",position:[.15,0,0],rotation:[-Math.PI/2,-Math.PI/2,0],children:[o.jsx("mesh",{name:"link_2",geometry:a.link_2.geometry,material:s.yaskawa_blue,position:[0,0,.15],rotation:[Math.PI/2,0,-Math.PI/2]}),o.jsxs(b.animated.group,{name:"YASKAWA_AR2010_J02",position:[.76,0,0],rotation:[-Math.PI,0,0],children:[o.jsxs("group",{name:"link_3",position:[-.76,0,-.15],rotation:[-Math.PI/2,0,-Math.PI/2],children:[o.jsx("mesh",{name:"shape003",geometry:a.shape003.geometry,material:s.yaskawa_black}),o.jsx("mesh",{name:"shape003_1",geometry:a.shape003_1.geometry,material:s.yaskawa_blue})]}),o.jsxs(b.animated.group,{name:"YASKAWA_AR2010_J03",position:[.2,0,0],rotation:[-Math.PI/2,0,0],children:[o.jsx("mesh",{name:"link_4",geometry:a.link_4.geometry,material:s.yaskawa_blue,position:[-.96,.15,0],rotation:[0,0,-Math.PI/2]}),o.jsxs(b.animated.group,{name:"YASKAWA_AR2010_J04",position:[0,-1.082,0],rotation:[Math.PI/2,0,0],children:[o.jsx("mesh",{name:"link_5",geometry:a.link_5.geometry,material:s.yaskawa_blue,position:[-.96,0,-1.232],rotation:[-Math.PI/2,0,-Math.PI/2]}),o.jsxs(b.animated.group,{name:"YASKAWA_AR2010_J05",rotation:[-Math.PI/2,0,0],children:[o.jsx("mesh",{name:"link_6",geometry:a.link_6.geometry,material:s.yaskawa_metalsilver,position:[-.96,1.232,0],rotation:[0,0,-Math.PI/2]}),o.jsx("group",{ref:t,name:"YASKAWA_AR2010_FLG",position:[0,-.1,0],rotation:[-Math.PI,0,0]})]})]})]})]})]})]})]})})}Tu.config={rotationOffsets:[0,-Math.PI/2,0,0,0,0],rotationSign:[1,-1,1,1,1,1]};function Tu({modelURL:e,flangeRef:t,...r}){const n=z.useGLTF(e),a=n.nodes,s=n.materials;return o.jsx(o.Fragment,{children:o.jsx("group",{...r,dispose:null,children:o.jsxs("group",{name:"Scene",children:[o.jsxs(b.animated.group,{name:"AR3120_J00",children:[o.jsxs(b.animated.group,{name:"AR3120_J01",position:[.145,0,0],rotation:[-Math.PI/2,-Math.PI/2,0],children:[o.jsxs(b.animated.group,{name:"AR3120_J02",position:[1.15,0,0],rotation:[-Math.PI,0,0],children:[o.jsxs(b.animated.group,{name:"AR3120_J03",position:[.25,0,0],rotation:[-Math.PI/2,0,0],children:[o.jsxs(b.animated.group,{name:"AR3120_J04",position:[0,-1.812,0],rotation:[Math.PI/2,0,0],children:[o.jsxs(b.animated.group,{name:"AR3120_J05",rotation:[-Math.PI/2,0,0],children:[o.jsx("group",{ref:t,name:"AR3120_FLG",position:[0,-.1,0],rotation:[-Math.PI,0,0]}),o.jsx("mesh",{name:"AR3120_L06",geometry:a.AR3120_L06.geometry,material:s["Metal.001"],rotation:[Math.PI/2,-Math.PI/2,0]})]}),o.jsx("mesh",{name:"AR3120_L05",geometry:a.AR3120_L05.geometry,material:s["Blue.001"],rotation:[Math.PI/2,0,Math.PI/2]})]}),o.jsxs("group",{name:"AR3120_L04",rotation:[Math.PI/2,-Math.PI/2,0],children:[o.jsx("mesh",{name:"R_AXIS_GP20HL001",geometry:a.R_AXIS_GP20HL001.geometry,material:s["Blue.001"]}),o.jsx("mesh",{name:"R_AXIS_GP20HL001_1",geometry:a.R_AXIS_GP20HL001_1.geometry,material:s["White.001"]})]})]}),o.jsxs("group",{name:"AR3120_L03",rotation:[Math.PI,0,-Math.PI/2],children:[o.jsx("mesh",{name:"Mesh_3001",geometry:a.Mesh_3001.geometry,material:s["Blue.001"]}),o.jsx("mesh",{name:"Mesh_3001_1",geometry:a.Mesh_3001_1.geometry,material:s["Black.001"]})]})]}),o.jsx("mesh",{name:"AR3120_L02",geometry:a.AR3120_L02.geometry,material:s["Blue.001"],position:[0,-.146,0],rotation:[Math.PI,0,0]})]}),o.jsxs("group",{name:"AR3120_L01",position:[0,-.228,0],rotation:[0,-1.571,0],children:[o.jsx("mesh",{name:"S_AXIS_GP20HL001",geometry:a.S_AXIS_GP20HL001.geometry,material:s["Blue.001"]}),o.jsx("mesh",{name:"S_AXIS_GP20HL001_1",geometry:a.S_AXIS_GP20HL001_1.geometry,material:s["Black.001"]})]})]}),o.jsx("mesh",{name:"AR3120_L00",geometry:a.AR3120_L00.geometry,material:s["Blue.001"],position:[0,-.54,0]})]})})})}gs.config={rotationOffsets:[0,-Math.PI/2,0,0,0,0]};function gs({modelURL:e,flangeRef:t,...r}){const n=z.useGLTF(e),a=n.nodes,s=n.materials;return o.jsx(o.Fragment,{children:o.jsx("group",{...r,dispose:null,children:o.jsxs("group",{name:"Scene",children:[o.jsxs("group",{name:"link_0",children:[o.jsx("mesh",{name:"visuals",geometry:a.visuals.geometry,material:s.yaskawa_blue}),o.jsx("mesh",{name:"visuals_1",geometry:a.visuals_1.geometry,material:s.yaskawa_black}),o.jsx("mesh",{name:"visuals_2",geometry:a.visuals_2.geometry,material:s.yaskawa_metalsilver})]}),o.jsxs(b.animated.group,{name:"YASKAWA_GP7_J00",children:[o.jsx("mesh",{name:"link_1",geometry:a.link_1.geometry,material:s.yaskawa_blue}),o.jsxs(b.animated.group,{name:"YASKAWA_GP7_J01",position:[.04,0,0],rotation:[-Math.PI/2,-Math.PI/2,0],children:[o.jsx("mesh",{name:"link_2",geometry:a.link_2.geometry,material:s.yaskawa_blue,position:[0,0,.04],rotation:[Math.PI/2,0,-Math.PI/2]}),o.jsxs(b.animated.group,{name:"YASKAWA_GP7_J02",position:[.445,0,0],rotation:[-Math.PI,0,0],children:[o.jsxs("group",{name:"link_3",position:[-.445,0,-.04],rotation:[-Math.PI/2,0,-Math.PI/2],children:[o.jsx("mesh",{name:"visuals003",geometry:a.visuals003.geometry,material:s.yaskawa_blue}),o.jsx("mesh",{name:"visuals003_1",geometry:a.visuals003_1.geometry,material:s.material_Material_Metall__1_}),o.jsx("mesh",{name:"visuals003_2",geometry:a.visuals003_2.geometry,material:s.yaskawa_black})]}),o.jsxs(b.animated.group,{name:"YASKAWA_GP7_J03",position:[.04,0,0],rotation:[-Math.PI/2,0,0],children:[o.jsxs("group",{name:"link_4",position:[-.485,.04,0],rotation:[0,0,-Math.PI/2],children:[o.jsx("mesh",{name:"visuals004",geometry:a.visuals004.geometry,material:s.yaskawa_white}),o.jsx("mesh",{name:"visuals004_1",geometry:a.visuals004_1.geometry,material:s.yaskawa_black}),o.jsx("mesh",{name:"visuals004_2",geometry:a.visuals004_2.geometry,material:s.yaskawa_blue})]}),o.jsxs(b.animated.group,{name:"YASKAWA_GP7_J04",position:[0,-.44,0],rotation:[Math.PI/2,0,0],children:[o.jsx("mesh",{name:"link_5",geometry:a.link_5.geometry,material:s.yaskawa_blue,position:[-.485,0,-.48],rotation:[-Math.PI/2,0,-Math.PI/2]}),o.jsxs(b.animated.group,{name:"YASKAWA_GP7_J05",rotation:[-Math.PI/2,0,0],children:[o.jsx("mesh",{name:"link_6",geometry:a.link_6.geometry,material:s.yaskawa_metalgold,position:[-.485,.48,0],rotation:[0,0,-Math.PI/2]}),o.jsx("group",{ref:t,name:"YASKAWA_GP7_FLG",position:[0,-.08,0],rotation:[-Math.PI,0,0]})]})]})]})]})]})]})]})})})}Ou.config={rotationOffsets:[0,-Math.PI/2,0,0,0,0]};function Ou({modelURL:e,flangeRef:t,...r}){const n=z.useGLTF(e),a=n.nodes,s=n.materials;return o.jsx(o.Fragment,{children:o.jsx("group",{...r,dispose:null,children:o.jsxs("group",{name:"Scene",children:[o.jsxs("group",{name:"link_0",children:[o.jsx("mesh",{name:"shape439",geometry:a.shape439.geometry,material:s.yaskawa_blue}),o.jsx("mesh",{name:"shape439_1",geometry:a.shape439_1.geometry,material:s.yaskawa_metalsilver}),o.jsx("mesh",{name:"shape439_2",geometry:a.shape439_2.geometry,material:s.yaskawa_black})]}),o.jsxs(b.animated.group,{name:"YASKAWA_GP50_J00",position:[0,-.54,0],children:[o.jsxs("group",{name:"link_1",position:[0,.54,0],children:[o.jsx("mesh",{name:"shape320",geometry:a.shape320.geometry,material:s.yaskawa_blue}),o.jsx("mesh",{name:"shape320_1",geometry:a.shape320_1.geometry,material:s.yaskawa_black}),o.jsx("mesh",{name:"shape320_2",geometry:a.shape320_2.geometry,material:s.yaskawa_metalsilver}),o.jsx("mesh",{name:"shape320_3",geometry:a.shape320_3.geometry,material:s.yaskawa_black}),o.jsx("mesh",{name:"shape320_4",geometry:a.shape320_4.geometry,material:s.yaskawa_white}),o.jsx("mesh",{name:"shape320_5",geometry:a.shape320_5.geometry,material:s.yaskawa_black})]}),o.jsxs(b.animated.group,{name:"YASKAWA_GP50_J01",position:[.145,.54,0],rotation:[-Math.PI/2,-Math.PI/2,0],children:[o.jsxs("group",{name:"link_2",position:[0,0,.145],rotation:[Math.PI/2,0,-Math.PI/2],children:[o.jsx("mesh",{name:"shape440",geometry:a.shape440.geometry,material:s.yaskawa_blue}),o.jsx("mesh",{name:"shape440_1",geometry:a.shape440_1.geometry,material:s.yaskawa_white}),o.jsx("mesh",{name:"shape440_2",geometry:a.shape440_2.geometry,material:s.yaskawa_metalsilver}),o.jsx("mesh",{name:"shape440_3",geometry:a.shape440_3.geometry,material:s.yaskawa_black})]}),o.jsxs(b.animated.group,{name:"YASKAWA_GP50_J02",position:[.87,0,0],rotation:[-Math.PI,0,0],children:[o.jsxs("group",{name:"link_3",position:[-.87,0,-.145],rotation:[-Math.PI/2,0,-Math.PI/2],children:[o.jsx("mesh",{name:"shape341",geometry:a.shape341.geometry,material:s.yaskawa_blue}),o.jsx("mesh",{name:"shape341_1",geometry:a.shape341_1.geometry,material:s.yaskawa_white}),o.jsx("mesh",{name:"shape341_2",geometry:a.shape341_2.geometry,material:s.yaskawa_black}),o.jsx("mesh",{name:"shape341_3",geometry:a.shape341_3.geometry,material:s.yaskawa_black}),o.jsx("mesh",{name:"shape341_4",geometry:a.shape341_4.geometry,material:s.yaskawa_metalsilver}),o.jsx("mesh",{name:"shape341_5",geometry:a.shape341_5.geometry,material:s.yaskawa_metalsilver})]}),o.jsxs(b.animated.group,{name:"YASKAWA_GP50_J03",position:[.21,0,0],rotation:[-Math.PI/2,0,0],children:[o.jsx("mesh",{name:"link_4",geometry:a.link_4.geometry,material:s.yaskawa_blue,position:[-1.08,.145,0],rotation:[0,0,-Math.PI/2]}),o.jsxs(b.animated.group,{name:"YASKAWA_GP50_J04",position:[0,-1.025,0],rotation:[Math.PI/2,0,0],children:[o.jsx("mesh",{name:"link_5",geometry:a.link_5.geometry,material:s.yaskawa_blue,position:[-1.08,0,-1.17],rotation:[-Math.PI/2,0,-Math.PI/2]}),o.jsxs(b.animated.group,{name:"YASKAWA_GP50_J05",rotation:[-Math.PI/2,0,0],children:[o.jsx("mesh",{name:"link_6",geometry:a.link_6.geometry,material:s.yaskawa_metalsilver,position:[-1.08,1.17,0],rotation:[0,0,-Math.PI/2]}),o.jsx("group",{ref:t,name:"YASKAWA_GP50_FLG",position:[0,-.175,0],rotation:[-Math.PI,0,0]})]})]})]})]})]})]})]})})})}const z1="(^joint_[0-9]+$)|(_J[0-9]+$)";function Eu(e){return e.children.length===0?[e]:[e,...e.children.flatMap(t=>Eu(t))]}function K1(e,t){return new RegExp(t??z1).test(e)}function Lu(e,t){return Eu(e).filter(r=>K1(r.name,t))}function Nu({rapidlyChangingMotionState:e,jointCollector:t,onRotationChanged:r,robotConfig:n,children:a}){b.Globals.assign({frameLoop:"always"});const s=Y.useRef([]),i=Y.useRef([]),{invalidate:l}=Xu.useThree();function u(_){_&&(i.current=t?t(_):Lu(_),d(),l())}function c(_){s.current=_,y.start(Object.assign({},s.current))}const m=(n==null?void 0:n.rotationSign)||[1,1,1,1,1,1],f=(n==null?void 0:n.rotationOffsets)||[0,0,0,0,0,0];function d(){const _=i.current.map((p,j)=>x[j].get());if(r)r(i.current,_);else for(const[p,j]of i.current.entries())j.rotation.y=m[p]*_[p]+f[p]}dl(()=>{const _=e.state.joint_position.joints.filter(p=>p!==void 0);requestAnimationFrame(()=>c(_))});const[x,y]=b.useSpring(()=>({...Object.assign({},e.state.joint_position.joints),onChange:()=>{d(),l()},onResolve:()=>{d()}}));return o.jsx("group",{ref:u,children:a})}const Ri="line",Ai="mesh";function Va({rapidlyChangingMotionState:e,dhParameters:t,...r}){const n=new vt.Matrix4;function a(u,c){const m=new vt.Vector3,f=new vt.Quaternion,d=new vt.Vector3;n.decompose(m,f,d);const x=m.clone(),y=new vt.Matrix4().makeRotationY(u.theta+c*(u.reverse_rotation_direction?-1:1)).multiply(new vt.Matrix4().makeTranslation(0,u.d/1e3,0)).multiply(new vt.Matrix4().makeTranslation(u.a/1e3,0,0)).multiply(new vt.Matrix4().makeRotationX(u.alpha));return n.multiply(y),n.decompose(m,f,d),{a:x,b:m}}function s(u,c,m,f){if(!t)return;const d=t[u];if(!d)return;const{a:x,b:y}=a(d,f);c.geometry.setPositions([x.toArray(),y.toArray()].flat()),m.position.set(y.x,y.y,y.z)}function i(u,c){n.identity(),u.forEach((m,f)=>{s(f,m.getObjectByName(Ri),m.getObjectByName(Ai),c[f])})}function l(u){return Lu(u,"^group_[0-9]+$")}return o.jsx(o.Fragment,{children:o.jsx(Nu,{rapidlyChangingMotionState:e,jointCollector:l,onRotationChanged:i,children:o.jsxs("group",{...r,name:"Scene",children:[o.jsxs("mesh",{children:[o.jsx("sphereGeometry",{args:[.01,32,32]}),o.jsx("meshStandardMaterial",{color:"black",depthTest:!0})]}),t.map((u,c)=>{const{a:m,b:f}=a(u,e.state.joint_position.joints[c]??0);return o.jsxs("group",{name:`group_${c}`,children:[o.jsx(z.Line,{name:Ri,points:[m,f],color:"white",lineWidth:5}),o.jsxs("mesh",{name:Ai,position:f,children:[o.jsx("sphereGeometry",{args:[.01,32,32]}),o.jsx("meshStandardMaterial",{color:"black",depthTest:!0})]},"mesh_"+c)]},"group_"+c)})]})})})}const W1=console.warn;function H1(){return Y.useEffect(()=>{console.warn=e=>{e!=="Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"&&W1(e)}},[]),o.jsx(o.Fragment,{})}$u.config={rotationOffsets:[0,Math.PI/2,0,0,0,0]};function $u({modelURL:e,flangeRef:t,...r}){const n=z.useGLTF(e),a=n.nodes,s=n.materials;return o.jsx("group",{...r,dispose:null,children:o.jsxs("group",{name:"Scene",children:[o.jsxs("group",{name:"link_0",children:[o.jsx("mesh",{name:"visuals_0",geometry:a.visuals_0.geometry,material:s.fanuc_metal_black}),o.jsx("mesh",{name:"visuals_0_1",geometry:a.visuals_0_1.geometry,material:s.fanuc_stainless_steel}),o.jsx("mesh",{name:"visuals_0_2",geometry:a.visuals_0_2.geometry,material:s.fanuc_metal_black}),o.jsx("mesh",{name:"visuals_0_3",geometry:a.visuals_0_3.geometry,material:s.fanuc_stainless_steel}),o.jsx("mesh",{name:"visuals_0_4",geometry:a.visuals_0_4.geometry,material:s.fanuc_aluminium_black}),o.jsx("mesh",{name:"visuals_0_5",geometry:a.visuals_0_5.geometry,material:s.fanuc_aluminium_black}),o.jsx("mesh",{name:"visuals_0_6",geometry:a.visuals_0_6.geometry,material:s.fanuc_rubber})]}),o.jsxs(b.animated.group,{name:"FANUC_CRX10IAL_J00",children:[o.jsxs(b.animated.group,{name:"FANUC_CRX10IAL_J01",rotation:[Math.PI/2,Math.PI/2,0],children:[o.jsxs(b.animated.group,{name:"FANUC_CRX10IAL_J02",position:[.71,0,0],children:[o.jsxs(b.animated.group,{name:"FANUC_CRX10IAL_J03",rotation:[-Math.PI/2,0,0],children:[o.jsxs(b.animated.group,{name:"FANUC_CRX10IAL_J04",position:[0,-.54,0],rotation:[Math.PI/2,0,0],children:[o.jsxs(b.animated.group,{name:"FANUC_CRX10IAL_J05",position:[0,.15,0],rotation:[-Math.PI/2,0,0],children:[o.jsx("group",{ref:t,name:"FANUC_CRX10IAL_FLG",position:[0,-.16,0],rotation:[-Math.PI,0,0]}),o.jsxs("group",{name:"link_6",position:[-.71,.54,-.15],rotation:[0,0,-Math.PI/2],children:[o.jsx("mesh",{name:"visuals_6",geometry:a.visuals_6.geometry,material:s.fanuc_metal_black}),o.jsx("mesh",{name:"visuals_6_1",geometry:a.visuals_6_1.geometry,material:s.fanuc_stainless_steel}),o.jsx("mesh",{name:"visuals_6_2",geometry:a.visuals_6_2.geometry,material:s.fanuc_aluminium_black}),o.jsx("mesh",{name:"visuals_6_3",geometry:a.visuals_6_3.geometry,material:s.fanuc_aluminium_black})]})]}),o.jsxs("group",{name:"link_5",position:[-.71,0,-.54],rotation:[-Math.PI/2,0,-Math.PI/2],children:[o.jsx("mesh",{name:"visuals_5",geometry:a.visuals_5.geometry,material:s.fanuc_white}),o.jsx("mesh",{name:"visuals_5_1",geometry:a.visuals_5_1.geometry,material:s.fanuc_green}),o.jsx("mesh",{name:"visuals_5_2",geometry:a.visuals_5_2.geometry,material:s.fanuc_stainless_steel})]})]}),o.jsxs("group",{name:"link_4",position:[-.71,0,0],rotation:[0,0,-Math.PI/2],children:[o.jsx("mesh",{name:"visuals_4",geometry:a.visuals_4.geometry,material:s.fanuc_white}),o.jsx("mesh",{name:"visuals_4_1",geometry:a.visuals_4_1.geometry,material:s.fanuc_white}),o.jsx("mesh",{name:"visuals_4_2",geometry:a.visuals_4_2.geometry,material:s.fanuc_metal_black}),o.jsx("mesh",{name:"visuals_4_3",geometry:a.visuals_4_3.geometry,material:s.fanuc_red})]})]}),o.jsxs("group",{name:"link_3",position:[-.71,0,0],rotation:[-Math.PI/2,0,-Math.PI/2],children:[o.jsx("mesh",{name:"visuals_3",geometry:a.visuals_3.geometry,material:s.fanuc_white}),o.jsx("mesh",{name:"visuals_3_1",geometry:a.visuals_3_1.geometry,material:s.fanuc_green})]})]}),o.jsx("mesh",{name:"link_2",geometry:a.link_2.geometry,material:s.fanuc_white,rotation:[-Math.PI/2,0,-Math.PI/2]})]}),o.jsxs("group",{name:"link_1",children:[o.jsx("mesh",{name:"visuals_1",geometry:a.visuals_1.geometry,material:s.fanuc_green}),o.jsx("mesh",{name:"visuals_1_1",geometry:a.visuals_1_1.geometry,material:s.fanuc_white}),o.jsx("mesh",{name:"visuals_1_2",geometry:a.visuals_1_2.geometry,material:s.fanuc_green})]})]})]})})}function Js(e){return`https://cdn.jsdelivr.net/gh/wandelbotsgmbh/wandelbots-js-react-components/public/models/${e}.glb`}const Fu=sn(({rapidlyChangingMotionState:e,modelFromController:t,dhParameters:r,getModel:n=Js,isGhost:a=!1,flangeRef:s,...i})=>{let l=null;const u=Y.useRef(),c=Y.useCallback(d=>{d&&(u.current=d,a&&m())},[a]),m=()=>{!u.current||u.current.userData.isGhost||(u.current.traverse(d=>{if(d instanceof Me.Mesh){d.material instanceof Me.Material&&(d.material.colorWrite=!0);const x=d.clone(),y=d.clone();x.material=new Me.MeshStandardMaterial({depthTest:!0,depthWrite:!0,colorWrite:!1,polygonOffset:!0,polygonOffsetFactor:1}),x.userData.isGhost=!0,y.material=new Me.MeshStandardMaterial({color:"#D91433",opacity:.3,depthTest:!0,depthWrite:!1,transparent:!0,polygonOffset:!0,polygonOffsetFactor:-1}),y.userData.isGhost=!0,d.parent&&(d.parent.add(x),d.parent.add(y))}}),u.current.userData.isGhost=!0)},f=()=>{if(!u.current||!u.current.userData.isGhost)return;const d=[];u.current.traverse(x=>{var y;x instanceof Me.Mesh&&((y=x.userData)!=null&&y.isGhost?d.push(x):x.material instanceof Me.Material&&(x.material.colorWrite=!0))}),d.forEach(x=>{x.parent&&x.parent.remove(x)}),u.current.userData.isGhost=!0};switch(Y.useEffect(()=>{a?m():f()},[a]),t){case"UniversalRobots_UR3CB":l=J1;break;case"UniversalRobots_UR3e":l=V1;break;case"UniversalRobots_UR5":l=Si;break;case"UniversalRobots_UR5CB":l=Si;break;case"UniversalRobots_UR5e":l=G1;break;case"UniversalRobots_UR10CB":l=U1;break;case"UniversalRobots_UR10e":l=B1;break;case"Yaskawa_AR900":l=gs;break;case"Yaskawa_GP7":l=gs;break;case"Yaskawa_AR1440":l=Mu;break;case"Yaskawa_AR1730":l=ku;break;case"Yaskawa_AR2010":l=Iu;break;case"Yaskawa_AR3120":l=Tu;break;case"Yaskawa_GP50":l=Ou;break;case"FANUC_CRX10iA":l=yu;break;case"FANUC_CRX10iAL":l=$u;break;case"FANUC_CRX20iAL":l=bu;break;case"FANUC_CRX25iA":l=xu;break;case"FANUC_CRX25iAL":l=vu;break;case"FANUC_LR_Mate_200iD":l=ju;break;case"FANUC_LR_Mate_200iD4S":l=Su;break;case"FANUC_LR_Mate_200iD7L":l=Ru;break;case"FANUC_ARC_Mate_120iD":l=hs;break;case"FANUC_ARC_Mate_120iD35":l=hs;break;case"FANUC_ARC_Mate_100iD":l=_u;break;case"KUKA_KR210_R2700":l=wu;break;case"KUKA_KR270_R2700":l=Pu;break;case"KUKA_KR16_R2010_2":l=Au;break;case"KUKA_KR6_R700_2":l=Cu;break;case"ABB_1200_07_7":l=gu;break;case"ABB_1300_115_10":l=pu;break;default:console.warn(`Unknown robot type: ${t}`),l=null}return o.jsxs(Zu.ErrorBoundary,{fallback:o.jsx(Va,{rapidlyChangingMotionState:e,dhParameters:r,...i}),children:[o.jsx(Y.Suspense,{fallback:o.jsx(Va,{rapidlyChangingMotionState:e,dhParameters:r,...i}),children:o.jsx("group",{ref:c,children:l?o.jsx(Nu,{rapidlyChangingMotionState:e,robotConfig:l.config,children:o.jsx(l,{modelURL:n(t),flangeRef:s,...i})}):o.jsx(Va,{rapidlyChangingMotionState:e,dhParameters:r})})}),o.jsx(H1,{})]})});function X1({connectedMotionGroup:e,getModel:t=Js,isGhost:r=!1,flangeRef:n,...a}){return e.dhParameters?o.jsx(Fu,{rapidlyChangingMotionState:e.rapidlyChangingMotionState,modelFromController:e.modelFromController||"",dhParameters:e.dhParameters,getModel:t,isGhost:r,flangeRef:n,...a}):null}const q1=T.styled(T.Fab,{shouldForwardProp:e=>e!=="selected"})(({theme:e})=>{var t,r,n;return{borderRadius:"20px","&:hover":{background:(t=e.palette.backgroundPaperElevation)==null?void 0:t[7]},variants:[{props:({selected:a})=>!a,style:{background:(r=e.palette.backgroundPaperElevation)==null?void 0:r[0],color:e.palette.action.disabled,"> img":{opacity:.4}}},{props:({selected:a})=>a,style:{background:(n=e.palette.backgroundPaperElevation)==null?void 0:n[11],border:`1px solid ${e.palette.divider}`,color:e.palette.primary.contrastText}}]}}),Y1=Y.forwardRef((e,t)=>o.jsx(q1,{ref:t,selected:e.selected,...e,color:"secondary",variant:"circular"})),Z1={$schema:"https://raw.githubusercontent.com/martinring/tmlanguage/master/tmlanguage.json",name:"wandelscript",patterns:[{include:"#keywords"},{include:"#strings"},{include:"#comments"},{include:"#functions"}],repository:{keywords:{patterns:[{name:"keyword.control.flow.wandelscript",match:"\\b(move|via|to|interrupt|def|False|True|for|if|else|elif|while|return|switch|activate|deactivate|print)\\b"}]},strings:{name:"string.quoted.double.wandelscript",begin:'"',end:'"',patterns:[{name:"constant.character.escape.wandelscript",match:"\\\\."}]},comments:{patterns:[{begin:"#",beginCaptures:{0:{name:"punctuation.definition.comment.wandelscript"}},end:"$",name:"comment.line.number-sign.wandelscript"}]},functions:{patterns:[{match:"[a-zA-Z_-]+\\(",name:"entity.name.function.wandelscript"}]}},scopeName:"source.wandelscript"},Q1=Y.lazy(()=>import("@monaco-editor/react")),eb=sn(e=>{const t=T.useTheme(),r=Y.useRef(null),[n,a]=Y.useState("dark-plus"),s=t.palette.mode==="dark"?"dark-plus":"light-plus";async function i(l){const[{createHighlighter:u},{shikiToMonaco:c}]=await Promise.all([import("shiki"),import("@shikijs/monaco")]);l.languages.register({id:"wandelscript"}),l.languages.setLanguageConfiguration("wandelscript",{comments:{lineComment:"#"},brackets:[["(",")"],["[","]"]],autoClosingPairs:[{open:"[",close:"]"},{open:"(",close:")"}],surroundingPairs:[{open:"[",close:"]"},{open:"(",close:")"}]}),r.current||(r.current=await u({langs:[Z1],themes:["dark-plus","light-plus"]})),c(r.current,l),l.editor.defineTheme(s,{base:t.palette.mode==="dark"?"vs-dark":"vs",inherit:!0,rules:[],colors:t.palette.mode==="dark"?{"editor.background":"#262F42","editorLineNumber.foreground":"#797979","editorLineNumber.activeForeground":"#e9e9e9","editor.lineHighlightBorder":"#494949"}:{}}),e.monacoSetup&&e.monacoSetup(l),a(s)}return o.jsx(Y.Suspense,{fallback:o.jsx(ha,{}),children:o.jsx(Q1,{value:e.code,onMount:(l,u)=>{i(u)},onChange:e.onChange,defaultLanguage:"wandelscript",theme:n,options:{minimap:{enabled:!1},wordWrap:"on",automaticLayout:!0,...e.monacoOptions}})})});function Du(){var t,r,n,a,s,i;const e=T.createTheme({palette:{mode:"dark",text:{primary:"rgba(255, 255, 255, 1)",secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.38)"},primary:{main:"rgba(142, 86, 252, 1)",dark:"rgba(136, 58, 255, 1)",light:"rgba(157, 131, 246, 1)",contrastText:"rgba(255, 255, 255, 0.87)"},secondary:{main:"rgba(255, 255, 255, 1)",dark:"rgba(255, 255, 255, 0.06)",contrastText:"rgba(255, 255, 255, 0.87)"},tertiary:{main:"rgba(100, 255, 218, 1)",dark:"rgba(38, 166, 154, 1)",light:"rgba(167, 255, 235, 1)",contrastText:"rgba(0, 0, 0, 1)"},error:{main:"rgba(239, 83, 80, 1)",dark:"rgba(229, 57, 53, 1)",light:"rgba(239, 154, 154, 1)",contrastText:"rgba(255, 255, 255, 1)"},warning:{main:"rgba(255, 171, 64, 1)",dark:"rgba(255, 145, 0, 1)",light:"rgba(255, 209, 128, 1)",contrastText:"rgba(0, 0, 0, 0.87)"},success:{main:"rgba(38, 166, 154, 1)",dark:"rgba(0, 121, 107, 1)",light:"rgba(128, 203, 196, 1)",contrastText:"rgba(255, 255, 255, 0.87)"},background:{default:"rgba(2, 6, 23, 1)",paper:"rgba(17, 19, 31, 1)"},action:{active:"rgba(255, 255, 255, 0.56)",hover:"rgba(255, 255, 255, 0.08)",selected:"rgba(255, 255, 255, 0.16)",disabledBackground:"rgba(255, 255, 255, 0.12)",focus:"rgba(255, 255, 255, 0.12)",disabled:"rgba(255, 255, 255, 0.38)"},common:{white:"rgba(255, 255, 255, 1)",black:"rgba(0, 0, 0, 1)"},divider:"rgba(255, 255, 255, 0.12)",backgroundPaperElevation:{0:"rgba(17,19,31,1.0)",1:"rgba(20,22,35,1.0)",2:"rgba(23,25,39,1.0)",3:"rgba(26,28,43,1.0)",4:"rgba(29,31,47,1.0)",5:"rgba(32,34,51,1.0)",6:"rgba(35,37,55,1.0)",7:"rgba(38,40,59,1.0)",8:"rgba(41,43,63,1.0)",9:"rgba(44,46,67,1.0)",10:"rgba(47,49,71,1.0)",11:"rgba(50,52,75,1.0)",12:"rgba(53,55,79,1.0)",13:"rgba(56,58,83,1.0)",14:"rgba(59,61,87,1.0)",15:"rgba(62,64,91,1.0)",16:"rgba(57,63,87,1.0)"}},paletteExt:{primary:{hover:"rgba(142, 86, 252, 0.08)",selected:"rgba(142, 86, 252, 0.16)",focus:"rgba(142, 86, 252, 0.12)",focusVisible:"rgba(142, 86, 252, 0.3)",outlineBorder:"rgba(142, 86, 252, 0.5)"},secondary:{tonal:"rgba(255,255,255,0.1)"}}});return{...e,components:{MuiButton:{styleOverrides:{root:{textTransform:"none",borderRadius:"10px"}},variants:[{props:{color:"secondary",variant:"contained"},style:{border:`1px solid ${e.palette.divider}`,background:(n=(r=(t=e.paletteExt)==null?void 0:t.secondary)==null?void 0:r.tonal)==null?void 0:n.toString()}},{props:{color:"secondary",variant:"outlined"},style:{border:`1px solid ${e.palette.divider}`}}]},MuiDivider:{styleOverrides:{root:{border:"1px solid"}}},MuiTab:{styleOverrides:{root:{textTransform:"none",color:e.palette.text.secondary,"&.Mui-selected":{color:e.palette.text.primary}}}},MuiTabs:{styleOverrides:{root:{background:(a=e.palette.backgroundPaperElevation)==null?void 0:a[1]}}},MuiToggleButtonGroup:{styleOverrides:{root:{".MuiToggleButtonGroup-firstButton":{borderRadius:"10px 0 0 10px"},".MuiToggleButtonGroup-lastButton":{borderRadius:"0 10px 10px 0"}}}},MuiToggleButton:{styleOverrides:{root:{textTransform:"none",padding:"6px 16px"}}},MuiSelect:{variants:[{props:{variant:"filled"},style:{borderRadius:"10px","::before, ::after":{visibility:"collapse"},".MuiInputBase-input":{padding:"6px 16px",borderRadius:"10px"}}}]},MuiFab:{styleOverrides:{root:{background:(i=(s=e.paletteExt)==null?void 0:s.secondary)==null?void 0:i.tonal}},variants:[{props:{color:"primary"},style:{background:e.palette.primary.main}}]}},componentsExt:{JoggingCartesian:{Axis:{X:{backgroundColor:"rgba(215, 66, 56, 1)",borderColor:"rgba(215, 66, 56, 1)",buttonBackgroundColor:"rgba(241, 77, 66, 1)",color:"rgba(255, 255, 255, 1)"},Y:{backgroundColor:"rgba(20, 151, 108, 1)",borderColor:"rgba(20, 151, 108, 1)",buttonBackgroundColor:"rgba(28, 188, 135, 1)",color:"rgba(255, 255, 255, 1)"},Z:{backgroundColor:"rgba(1, 87, 155, 1)",borderColor:"rgba(1, 87, 155, 1)",buttonBackgroundColor:"rgba(2, 136, 209, 1)",color:"rgba(255, 255, 255, 1)"}}}}}}function tb(){const e=Du();return e.palette.mode="light",e}function rb(e){var r,n,a,s;let t=!0;return((r=e.palette)==null?void 0:r.mode)==="light"?t=!1:((n=e.palette)==null?void 0:n.mode)!=="dark"&&(t=!(typeof window<"u"&&((s=(a=window.matchMedia)==null?void 0:a.call(window,"(prefers-color-scheme: light)"))==null?void 0:s.matches))),t?Du():tb()}exports.JoggingCartesianAxisControl=es;exports.JoggingJointRotationControl=yl;exports.JoggingPanel=L1;exports.LoadingCover=ha;exports.LoadingErrorMessage=Gl;exports.NoMotionGroupModal=F1;exports.PresetEnvironment=tc;exports.Robot=X1;exports.SafetyZonesRenderer=ac;exports.SelectableFab=Y1;exports.SupportedRobot=Fu;exports.VelocitySlider=iu;exports.WandelscriptEditor=eb;exports.createNovaMuiTheme=rb;exports.defaultAxisConfig=D1;exports.defaultGetModel=Js;exports.useAnimationFrame=jr;exports.useAutorun=dl;exports.useMounted=ia;exports.useReaction=ks;
|
|
82
|
+
`):" "+Wo(s[0]):"as no adapter specified";throw new J("There is no suitable adapter to dispatch the request "+i,"ERR_NOT_SUPPORT")}return n},adapters:ss};function Da(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Rr(null,e)}function Ho(e){return Da(e),e.headers=Fe.from(e.headers),e.data=Fa.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Ul.getAdapter(e.adapter||ln.adapter)(e).then(function(n){return Da(e),n.data=Fa.call(e,e.transformResponse,n),n.headers=Fe.from(n.headers),n},function(n){return Ll(n)||(Da(e),n&&n.response&&(n.response.data=Fa.call(e,e.transformResponse,n.response),n.response.headers=Fe.from(n.response.headers))),Promise.reject(n)})}const Jl="1.7.4",Ns={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Ns[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const Xo={};Ns.transitional=function(t,r,n){function a(s,i){return"[Axios v"+Jl+"] Transitional option '"+s+"'"+i+(n?". "+n:"")}return(s,i,l)=>{if(t===!1)throw new J(a(i," has been removed"+(r?" in "+r:"")),J.ERR_DEPRECATED);return r&&!Xo[i]&&(Xo[i]=!0,console.warn(a(i," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(s,i,l):!0}};function Mg(e,t,r){if(typeof e!="object")throw new J("options must be an object",J.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let a=n.length;for(;a-- >0;){const s=n[a],i=t[s];if(i){const l=e[s],u=l===void 0||i(l,s,e);if(u!==!0)throw new J("option "+s+" must be "+u,J.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new J("Unknown option "+s,J.ERR_BAD_OPTION)}}const os={assertOptions:Mg,validators:Ns},Ot=os.validators;let Gt=class{constructor(t){this.defaults=t,this.interceptors={request:new Bo,response:new Bo}}async request(t,r){try{return await this._request(t,r)}catch(n){if(n instanceof Error){let a;Error.captureStackTrace?Error.captureStackTrace(a={}):a=new Error;const s=a.stack?a.stack.replace(/^.+\n/,""):"";try{n.stack?s&&!String(n.stack).endsWith(s.replace(/^.+\n.+\n/,""))&&(n.stack+=`
|
|
83
|
+
`+s):n.stack=s}catch{}}throw n}}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=Ht(this.defaults,r);const{transitional:n,paramsSerializer:a,headers:s}=r;n!==void 0&&os.assertOptions(n,{silentJSONParsing:Ot.transitional(Ot.boolean),forcedJSONParsing:Ot.transitional(Ot.boolean),clarifyTimeoutError:Ot.transitional(Ot.boolean)},!1),a!=null&&(v.isFunction(a)?r.paramsSerializer={serialize:a}:os.assertOptions(a,{encode:Ot.function,serialize:Ot.function},!0)),r.method=(r.method||this.defaults.method||"get").toLowerCase();let i=s&&v.merge(s.common,s[r.method]);s&&v.forEach(["delete","get","head","post","put","patch","common"],y=>{delete s[y]}),r.headers=Fe.concat(i,s);const l=[];let u=!0;this.interceptors.request.forEach(function(_){typeof _.runWhen=="function"&&_.runWhen(r)===!1||(u=u&&_.synchronous,l.unshift(_.fulfilled,_.rejected))});const c=[];this.interceptors.response.forEach(function(_){c.push(_.fulfilled,_.rejected)});let m,f=0,d;if(!u){const y=[Ho.bind(this),void 0];for(y.unshift.apply(y,l),y.push.apply(y,c),d=y.length,m=Promise.resolve(r);f<d;)m=m.then(y[f++],y[f++]);return m}d=l.length;let b=r;for(f=0;f<d;){const y=l[f++],_=l[f++];try{b=y(b)}catch(p){_.call(this,p);break}}try{m=Ho.call(this,b)}catch(y){return Promise.reject(y)}for(f=0,d=c.length;f<d;)m=m.then(c[f++],c[f++]);return m}getUri(t){t=Ht(this.defaults,t);const r=$l(t.baseURL,t.url);return Tl(r,t.params,t.paramsSerializer)}};v.forEach(["delete","get","head","options"],function(t){Gt.prototype[t]=function(r,n){return this.request(Ht(n||{},{method:t,url:r,data:(n||{}).data}))}});v.forEach(["post","put","patch"],function(t){function r(n){return function(s,i,l){return this.request(Ht(l||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:s,data:i}))}}Gt.prototype[t]=r(),Gt.prototype[t+"Form"]=r(!0)});let kg=class Vl{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(s){r=s});const n=this;this.promise.then(a=>{if(!n._listeners)return;let s=n._listeners.length;for(;s-- >0;)n._listeners[s](a);n._listeners=null}),this.promise.then=a=>{let s;const i=new Promise(l=>{n.subscribe(l),s=l}).then(a);return i.cancel=function(){n.unsubscribe(s)},i},t(function(s,i,l){n.reason||(n.reason=new Rr(s,i,l),r(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}static source(){let t;return{token:new Vl(function(a){t=a}),cancel:t}}};function Ig(e){return function(r){return e.apply(null,r)}}function Tg(e){return v.isObject(e)&&e.isAxiosError===!0}const is={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(is).forEach(([e,t])=>{is[t]=e});function Gl(e){const t=new Gt(e),r=xl(Gt.prototype.request,t);return v.extend(r,Gt.prototype,t,{allOwnKeys:!0}),v.extend(r,t,null,{allOwnKeys:!0}),r.create=function(a){return Gl(Ht(e,a))},r}const ve=Gl(ln);ve.Axios=Gt;ve.CanceledError=Rr;ve.CancelToken=kg;ve.isCancel=Ll;ve.VERSION=Jl;ve.toFormData=da;ve.AxiosError=J;ve.Cancel=ve.CanceledError;ve.all=function(t){return Promise.all(t)};ve.spread=Ig;ve.isAxiosError=Tg;ve.mergeConfig=Ht;ve.AxiosHeaders=Fe;ve.formToJSON=e=>El(v.isHTMLForm(e)?new FormData(e):e);ve.getAdapter=Ul.getAdapter;ve.HttpStatusCode=is;ve.default=ve;const{Axios:ib,AxiosError:qo,CanceledError:lb,isCancel:ub,CancelToken:cb,VERSION:mb,all:db,Cancel:fb,isAxiosError:hb,spread:gb,toFormData:pb,AxiosHeaders:_b,HttpStatusCode:yb,formToJSON:bb,getAdapter:xb,mergeConfig:vb}=ve;function Og(e){try{return JSON.stringify(e)}catch{return}}function Eg(e){var t,r,n,a;return e instanceof qo&&e.code==="ERR_NETWORK"?"Failed to connect to the server. Please check your internet connection.":e instanceof qo&&e.response?`${(t=e.response)==null?void 0:t.status} ${(r=e.response)==null?void 0:r.statusText} from ${(n=e.response)==null?void 0:n.config.url}: ${JSON.stringify((a=e.response)==null?void 0:a.data)}`:e instanceof Error?e.message:`Unexpected error: ${Og(e)||e}`}const ha=e=>{const t=e.softTimeout||3e3,[r,n]=Y.useState(!1);return Y.useEffect(()=>{const a=setTimeout(()=>{n(!0)},t);return()=>clearTimeout(a)}),o.jsx(T.Stack,{width:"100%",height:"100%",alignItems:"center",justifyContent:"center",children:e.error?o.jsx(zl,{loadingMessage:e.message,error:e.error}):o.jsxs(o.Fragment,{children:[o.jsx(T.CircularProgress,{sx:{marginBottom:"24px"}}),!!e.message&&o.jsx("div",{children:e.message}),o.jsx(T.Stack,{sx:{visibility:r?"visible":"hidden",marginTop:"1rem",color:"gray"},children:"This is taking longer than expected..."})]})})},zl=e=>{const t=Eg(e.error),r=e.error instanceof Error?e.error.stack:null,n=T.useTheme();return o.jsxs(T.Stack,{sx:{maxHeight:"100%",maxWidth:"min(100%, 800px)",padding:2,overflow:"auto",color:n.palette.error.main,"& pre":{whiteSpace:"pre-wrap",wordBreak:"break-word",paddingBottom:"3rem"}},children:[(e.loadingMessage?`Error while ${Kn.lowerFirst(T.capitalize(e.loadingMessage))} - `:"")+t,o.jsx("br",{}),r&&o.jsx("pre",{children:r})]})},Lg=({title:e,titleId:t,...r},n)=>$.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:19,height:10,fill:"none",ref:n,"aria-labelledby":t,...r},e?$.createElement("title",{id:t},e):null,$.createElement("path",{fill:"#fff",fillRule:"evenodd",d:"M5.131.312a.9.9 0 0 1 0 1.272L3.07 3.645h12.44l-2.06-2.061A.9.9 0 0 1 14.72.313l3.596 3.596a.9.9 0 0 1 0 1.271l-3.596 3.597a.9.9 0 0 1-1.271-1.272l2.061-2.062H3.07L5.13 7.505A.9.9 0 0 1 3.86 8.777L.263 5.18a.9.9 0 0 1 0-1.271L3.86.312a.9.9 0 0 1 1.271 0",clipRule:"evenodd"})),Ng=Y.forwardRef(Lg),$g=({title:e,titleId:t,...r},n)=>$.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:19,height:10,fill:"none",ref:n,"aria-labelledby":t,...r},e?$.createElement("title",{id:t},e):null,$.createElement("path",{fill:"#fff",fillRule:"evenodd",d:"M5.131.312a.9.9 0 0 1 0 1.272L3.07 3.645h12.44l-2.06-2.061A.9.9 0 0 1 14.72.313l3.596 3.596a.9.9 0 0 1 0 1.271l-3.596 3.597a.9.9 0 0 1-1.271-1.272l2.061-2.062H3.07L5.13 7.505A.9.9 0 0 1 3.86 8.777L.263 5.18a.9.9 0 0 1 0-1.271L3.86.312a.9.9 0 0 1 1.271 0",clipRule:"evenodd"})),Fg=Y.forwardRef($g),Dg=({title:e,titleId:t,...r},n)=>$.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:10,height:19,fill:"none",ref:n,"aria-labelledby":t,...r},e?$.createElement("title",{id:t},e):null,$.createElement("path",{fill:"#fff",fillRule:"evenodd",d:"M9.522 14.811A.899.899 0 1 0 8.25 13.54L6.19 15.601V3.16L8.25 5.221A.9.9 0 0 0 9.522 3.95L5.926.354a.9.9 0 0 0-1.272 0L1.058 3.95a.9.9 0 1 0 1.271 1.271L4.391 3.16v12.442L2.329 13.54a.899.899 0 1 0-1.271 1.271l3.596 3.597a.9.9 0 0 0 1.272 0z",clipRule:"evenodd"})),Bg=Y.forwardRef(Dg),Ug=({title:e,titleId:t,...r},n)=>$.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:25,height:24,fill:"none",ref:n,"aria-labelledby":t,...r},e?$.createElement("title",{id:t},e):null,$.createElement("path",{stroke:"#fff",strokeLinecap:"round",strokeWidth:1.5,d:"M18.5 12a6 6 0 1 0-6 6"}),$.createElement("path",{stroke:"#fff",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"m16.5 11 2 2.5 2-2.5"})),Jg=Y.forwardRef(Ug),Yo=e=>o.jsx(T.Stack,{position:"absolute",left:0,top:0,width:"100%",height:"100%",alignItems:"center",justifyContent:"center",sx:{backgroundColor:"rgba(0, 0, 0, 0.6)",backdropFilter:"blur(2px)",zIndex:100,...e.sx||{}},...Kn.omit(e,"sx")}),Kl=Te.observer(({store:e,children:t})=>{const{t:r}=qt.useTranslation(),n=T.useTheme();function a(){var s,i;if(e.activationState==="inactive"&&!e.activationError)return o.jsx(Yo,{sx:{borderRadius:"6px",backgroundColor:`color-mix(in srgb, ${(s=n.palette.backgroundPaperElevation)==null?void 0:s[5]}, transparent)`},children:o.jsx(T.Button,{color:"primary",variant:"contained",onClick:()=>e.activate({manual:!0}),disabled:e.isLocked,children:r("Jogging.Activate.bt")})});if(e.activationState==="loading"||e.activationError)return o.jsx(Yo,{sx:{backgroundColor:`color-mix(in srgb, ${(i=n.palette.backgroundPaperElevation)==null?void 0:i[5]}, transparent)`},children:o.jsx(ha,{message:r("Jogging.Activating.lb"),error:e.activationError})})}return o.jsxs(T.Stack,{sx:{position:"relative",padding:"6px"},children:[a(),t]})}),Wl=Y.forwardRef(({label:e,value:t},r)=>o.jsxs(o.Fragment,{children:[e&&o.jsx(T.InputLabel,{children:e}),o.jsx(T.Chip,{ref:r,sx:{fontSize:"14px",opacity:.8,marginTop:"4px !important"},value:t})]})),Vg=Te.observer(({store:e})=>{const t=Y.useRef(null);function r(){const n=e.jogger.motionStream.rapidlyChangingMotionState.tcp_pose;return n?Lt.poseToWandelscriptString(n):""}return jr(()=>{t.current&&(t.current.textContent=r())}),o.jsx(T.Stack,{alignItems:"left",spacing:2,sx:{padding:"8px 16px",paddingTop:"16px","& label":{opacity:.7,fontSize:"12px",marginBottom:"4px"}},children:o.jsx(Wl,{label:"Pose",value:r(),ref:t})})});function Gg(){this.__data__=[],this.size=0}function Hl(e,t){return e===t||e!==e&&t!==t}function ga(e,t){for(var r=e.length;r--;)if(Hl(e[r][0],t))return r;return-1}var zg=Array.prototype,Kg=zg.splice;function Wg(e){var t=this.__data__,r=ga(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():Kg.call(t,r,1),--this.size,!0}function Hg(e){var t=this.__data__,r=ga(t,e);return r<0?void 0:t[r][1]}function Xg(e){return ga(this.__data__,e)>-1}function qg(e,t){var r=this.__data__,n=ga(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}function At(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}At.prototype.clear=Gg;At.prototype.delete=Wg;At.prototype.get=Hg;At.prototype.has=Xg;At.prototype.set=qg;function Yg(){this.__data__=new At,this.size=0}function Zg(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function Qg(e){return this.__data__.get(e)}function ep(e){return this.__data__.has(e)}var tp="[object AsyncFunction]",rp="[object Function]",np="[object GeneratorFunction]",ap="[object Proxy]";function Xl(e){if(!Kt(e))return!1;var t=Yt(e);return t==rp||t==np||t==tp||t==ap}var Ba=_t["__core-js_shared__"],Zo=function(){var e=/[^.]+$/.exec(Ba&&Ba.keys&&Ba.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function sp(e){return!!Zo&&Zo in e}var op=Function.prototype,ip=op.toString;function Zt(e){if(e!=null){try{return ip.call(e)}catch{}try{return e+""}catch{}}return""}var lp=/[\\^$.*+?()[\]{}|]/g,up=/^\[object .+?Constructor\]$/,cp=Function.prototype,mp=Object.prototype,dp=cp.toString,fp=mp.hasOwnProperty,hp=RegExp("^"+dp.call(fp).replace(lp,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function gp(e){if(!Kt(e)||sp(e))return!1;var t=Xl(e)?hp:up;return t.test(Zt(e))}function pp(e,t){return e==null?void 0:e[t]}function Qt(e,t){var r=pp(e,t);return gp(r)?r:void 0}var qr=Qt(_t,"Map"),Yr=Qt(Object,"create");function _p(){this.__data__=Yr?Yr(null):{},this.size=0}function yp(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var bp="__lodash_hash_undefined__",xp=Object.prototype,vp=xp.hasOwnProperty;function jp(e){var t=this.__data__;if(Yr){var r=t[e];return r===bp?void 0:r}return vp.call(t,e)?t[e]:void 0}var Sp=Object.prototype,Rp=Sp.hasOwnProperty;function wp(e){var t=this.__data__;return Yr?t[e]!==void 0:Rp.call(t,e)}var Ap="__lodash_hash_undefined__";function Pp(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Yr&&t===void 0?Ap:t,this}function Xt(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Xt.prototype.clear=_p;Xt.prototype.delete=yp;Xt.prototype.get=jp;Xt.prototype.has=wp;Xt.prototype.set=Pp;function Cp(){this.size=0,this.__data__={hash:new Xt,map:new(qr||At),string:new Xt}}function Mp(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function pa(e,t){var r=e.__data__;return Mp(t)?r[typeof t=="string"?"string":"hash"]:r.map}function kp(e){var t=pa(this,e).delete(e);return this.size-=t?1:0,t}function Ip(e){return pa(this,e).get(e)}function Tp(e){return pa(this,e).has(e)}function Op(e,t){var r=pa(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}function Pt(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Pt.prototype.clear=Cp;Pt.prototype.delete=kp;Pt.prototype.get=Ip;Pt.prototype.has=Tp;Pt.prototype.set=Op;var Ep=200;function Lp(e,t){var r=this.__data__;if(r instanceof At){var n=r.__data__;if(!qr||n.length<Ep-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new Pt(n)}return r.set(e,t),this.size=r.size,this}function St(e){var t=this.__data__=new At(e);this.size=t.size}St.prototype.clear=Yg;St.prototype.delete=Zg;St.prototype.get=Qg;St.prototype.has=ep;St.prototype.set=Lp;var Np="__lodash_hash_undefined__";function $p(e){return this.__data__.set(e,Np),this}function Fp(e){return this.__data__.has(e)}function Gn(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new Pt;++t<r;)this.add(e[t])}Gn.prototype.add=Gn.prototype.push=$p;Gn.prototype.has=Fp;function Dp(e,t){for(var r=-1,n=e==null?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}function Bp(e,t){return e.has(t)}var Up=1,Jp=2;function ql(e,t,r,n,a,s){var i=r&Up,l=e.length,u=t.length;if(l!=u&&!(i&&u>l))return!1;var c=s.get(e),m=s.get(t);if(c&&m)return c==t&&m==e;var f=-1,d=!0,b=r&Jp?new Gn:void 0;for(s.set(e,t),s.set(t,e);++f<l;){var y=e[f],_=t[f];if(n)var p=i?n(_,y,f,t,e,s):n(y,_,f,e,t,s);if(p!==void 0){if(p)continue;d=!1;break}if(b){if(!Dp(t,function(j,R){if(!Bp(b,R)&&(y===j||a(y,j,r,n,s)))return b.push(R)})){d=!1;break}}else if(!(y===_||a(y,_,r,n,s))){d=!1;break}}return s.delete(e),s.delete(t),d}var Qo=_t.Uint8Array;function Vp(e){var t=-1,r=Array(e.size);return e.forEach(function(n,a){r[++t]=[a,n]}),r}function Gp(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var zp=1,Kp=2,Wp="[object Boolean]",Hp="[object Date]",Xp="[object Error]",qp="[object Map]",Yp="[object Number]",Zp="[object RegExp]",Qp="[object Set]",e_="[object String]",t_="[object Symbol]",r_="[object ArrayBuffer]",n_="[object DataView]",ei=Nt?Nt.prototype:void 0,Ua=ei?ei.valueOf:void 0;function a_(e,t,r,n,a,s,i){switch(r){case n_:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case r_:return!(e.byteLength!=t.byteLength||!s(new Qo(e),new Qo(t)));case Wp:case Hp:case Yp:return Hl(+e,+t);case Xp:return e.name==t.name&&e.message==t.message;case Zp:case e_:return e==t+"";case qp:var l=Vp;case Qp:var u=n&zp;if(l||(l=Gp),e.size!=t.size&&!u)return!1;var c=i.get(e);if(c)return c==t;n|=Kp,i.set(e,t);var m=ql(l(e),l(t),n,a,s,i);return i.delete(e),m;case t_:if(Ua)return Ua.call(e)==Ua.call(t)}return!1}function s_(e,t){for(var r=-1,n=t.length,a=e.length;++r<n;)e[a+r]=t[r];return e}var pt=Array.isArray;function o_(e,t,r){var n=t(e);return pt(e)?n:s_(n,r(e))}function i_(e,t){for(var r=-1,n=e==null?0:e.length,a=0,s=[];++r<n;){var i=e[r];t(i,r,e)&&(s[a++]=i)}return s}function l_(){return[]}var u_=Object.prototype,c_=u_.propertyIsEnumerable,ti=Object.getOwnPropertySymbols,m_=ti?function(e){return e==null?[]:(e=Object(e),i_(ti(e),function(t){return c_.call(e,t)}))}:l_;function d_(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var f_="[object Arguments]";function ri(e){return Wt(e)&&Yt(e)==f_}var Yl=Object.prototype,h_=Yl.hasOwnProperty,g_=Yl.propertyIsEnumerable,Zl=ri(function(){return arguments}())?ri:function(e){return Wt(e)&&h_.call(e,"callee")&&!g_.call(e,"callee")};function p_(){return!1}var Ql=typeof exports=="object"&&exports&&!exports.nodeType&&exports,ni=Ql&&typeof module=="object"&&module&&!module.nodeType&&module,__=ni&&ni.exports===Ql,ai=__?_t.Buffer:void 0,y_=ai?ai.isBuffer:void 0,ls=y_||p_,b_=9007199254740991,x_=/^(?:0|[1-9]\d*)$/;function eu(e,t){var r=typeof e;return t=t??b_,!!t&&(r=="number"||r!="symbol"&&x_.test(e))&&e>-1&&e%1==0&&e<t}var v_=9007199254740991;function $s(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=v_}var j_="[object Arguments]",S_="[object Array]",R_="[object Boolean]",w_="[object Date]",A_="[object Error]",P_="[object Function]",C_="[object Map]",M_="[object Number]",k_="[object Object]",I_="[object RegExp]",T_="[object Set]",O_="[object String]",E_="[object WeakMap]",L_="[object ArrayBuffer]",N_="[object DataView]",$_="[object Float32Array]",F_="[object Float64Array]",D_="[object Int8Array]",B_="[object Int16Array]",U_="[object Int32Array]",J_="[object Uint8Array]",V_="[object Uint8ClampedArray]",G_="[object Uint16Array]",z_="[object Uint32Array]",me={};me[$_]=me[F_]=me[D_]=me[B_]=me[U_]=me[J_]=me[V_]=me[G_]=me[z_]=!0;me[j_]=me[S_]=me[L_]=me[R_]=me[N_]=me[w_]=me[A_]=me[P_]=me[C_]=me[M_]=me[k_]=me[I_]=me[T_]=me[O_]=me[E_]=!1;function K_(e){return Wt(e)&&$s(e.length)&&!!me[Yt(e)]}function W_(e){return function(t){return e(t)}}var tu=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Vr=tu&&typeof module=="object"&&module&&!module.nodeType&&module,H_=Vr&&Vr.exports===tu,Ja=H_&&_l.process,si=function(){try{var e=Vr&&Vr.require&&Vr.require("util").types;return e||Ja&&Ja.binding&&Ja.binding("util")}catch{}}(),oi=si&&si.isTypedArray,ru=oi?W_(oi):K_,X_=Object.prototype,q_=X_.hasOwnProperty;function Y_(e,t){var r=pt(e),n=!r&&Zl(e),a=!r&&!n&&ls(e),s=!r&&!n&&!a&&ru(e),i=r||n||a||s,l=i?d_(e.length,String):[],u=l.length;for(var c in e)q_.call(e,c)&&!(i&&(c=="length"||a&&(c=="offset"||c=="parent")||s&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||eu(c,u)))&&l.push(c);return l}var Z_=Object.prototype;function Q_(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||Z_;return e===r}function ey(e,t){return function(r){return e(t(r))}}var ty=ey(Object.keys,Object),ry=Object.prototype,ny=ry.hasOwnProperty;function ay(e){if(!Q_(e))return ty(e);var t=[];for(var r in Object(e))ny.call(e,r)&&r!="constructor"&&t.push(r);return t}function nu(e){return e!=null&&$s(e.length)&&!Xl(e)}function Fs(e){return nu(e)?Y_(e):ay(e)}function ii(e){return o_(e,Fs,m_)}var sy=1,oy=Object.prototype,iy=oy.hasOwnProperty;function ly(e,t,r,n,a,s){var i=r&sy,l=ii(e),u=l.length,c=ii(t),m=c.length;if(u!=m&&!i)return!1;for(var f=u;f--;){var d=l[f];if(!(i?d in t:iy.call(t,d)))return!1}var b=s.get(e),y=s.get(t);if(b&&y)return b==t&&y==e;var _=!0;s.set(e,t),s.set(t,e);for(var p=i;++f<u;){d=l[f];var j=e[d],R=t[d];if(n)var C=i?n(R,j,d,t,e,s):n(j,R,d,e,t,s);if(!(C===void 0?j===R||a(j,R,r,n,s):C)){_=!1;break}p||(p=d=="constructor")}if(_&&!p){var A=e.constructor,S=t.constructor;A!=S&&"constructor"in e&&"constructor"in t&&!(typeof A=="function"&&A instanceof A&&typeof S=="function"&&S instanceof S)&&(_=!1)}return s.delete(e),s.delete(t),_}var us=Qt(_t,"DataView"),cs=Qt(_t,"Promise"),ms=Qt(_t,"Set"),ds=Qt(_t,"WeakMap"),li="[object Map]",uy="[object Object]",ui="[object Promise]",ci="[object Set]",mi="[object WeakMap]",di="[object DataView]",cy=Zt(us),my=Zt(qr),dy=Zt(cs),fy=Zt(ms),hy=Zt(ds),Et=Yt;(us&&Et(new us(new ArrayBuffer(1)))!=di||qr&&Et(new qr)!=li||cs&&Et(cs.resolve())!=ui||ms&&Et(new ms)!=ci||ds&&Et(new ds)!=mi)&&(Et=function(e){var t=Yt(e),r=t==uy?e.constructor:void 0,n=r?Zt(r):"";if(n)switch(n){case cy:return di;case my:return li;case dy:return ui;case fy:return ci;case hy:return mi}return t});var gy=1,fi="[object Arguments]",hi="[object Array]",pn="[object Object]",py=Object.prototype,gi=py.hasOwnProperty;function _y(e,t,r,n,a,s){var i=pt(e),l=pt(t),u=i?hi:Et(e),c=l?hi:Et(t);u=u==fi?pn:u,c=c==fi?pn:c;var m=u==pn,f=c==pn,d=u==c;if(d&&ls(e)){if(!ls(t))return!1;i=!0,m=!1}if(d&&!m)return s||(s=new St),i||ru(e)?ql(e,t,r,n,a,s):a_(e,t,u,r,n,a,s);if(!(r&gy)){var b=m&&gi.call(e,"__wrapped__"),y=f&&gi.call(t,"__wrapped__");if(b||y){var _=b?e.value():e,p=y?t.value():t;return s||(s=new St),a(_,p,r,n,s)}}return d?(s||(s=new St),ly(e,t,r,n,a,s)):!1}function _a(e,t,r,n,a){return e===t?!0:e==null||t==null||!Wt(e)&&!Wt(t)?e!==e&&t!==t:_y(e,t,r,n,_a,a)}function yy(e,t){return _a(e,t)}const au=({store:e})=>{const{t}=qt.useTranslation(),[r,n]=Y.useState(e.jogger.motionStream.rapidlyChangingMotionState.state.joint_limit_reached.limit_reached),a=Y.useRef(r);jr(()=>{const i=e.jogger.motionStream.rapidlyChangingMotionState.state.joint_limit_reached.limit_reached;yy(a.current,i)||(a.current=i,n(i))});const s=[];for(const[i,l]of r.entries())l&&s.push(i);return o.jsx(T.Typography,{color:"error",sx:{margin:"0.5rem 1rem",textAlign:"center",visibility:s.length?"visible":"hidden"},children:t("Jogging.JointLimitsReached.lb",{jointNumbers:s.map(i=>i+1).join(", ")})})},by=({title:e,titleId:t,...r},n)=>$.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:21,height:21,fill:"none",viewBox:"0 0 23 22",ref:n,"aria-labelledby":t,...r},e?$.createElement("title",{id:t},e):null,$.createElement("path",{fill:"currentColor",d:"m21.71 16.262-1.09.346.66 2.071-2.923-1.461V9.857l-6.285-3.143V2.893L13.38 4.21l.812-.806-2.674-2.69-2.706 2.687.805.812L10.93 2.91v3.803L4.643 9.857v7.36l-2.914 1.458.657-2.067-1.09-.346-1.225 3.88 3.826 1.144.346-1.09-1.836-.583 2.874-1.436 6.22 3.109 6.217-3.11 2.877 1.439-1.831.581.345 1.09 3.82-1.143zM11.5 12.646l-4.94-2.47 4.94-2.47 4.94 2.47zm.572.993 5.143-2.572v6.083l-5.143 2.572zm-6.286-2.572 5.143 2.572v6.083L5.786 17.15z"})),xy=Y.forwardRef(by),vy=({title:e,titleId:t,...r},n)=>$.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:15,height:17,fill:"none",ref:n,"aria-labelledby":t,...r},e?$.createElement("title",{id:t},e):null,$.createElement("path",{fill:"currentColor",d:"M12.9 7.667c-.133-.534-.533-1-1-1.134L10.367 6l-.4 1.267L11.5 7.8c.067 0 .133.067.133.2l1.067 4.867a.32.32 0 0 1-.133.4l-2.267 1.8c-.267.2-.333.666-.133.933s.666.333.933.133l2.267-1.8c.533-.4.733-1.133.6-1.733zM12.5 0H1.833A1.65 1.65 0 0 0 .167 1.667v1.4c0 .866.733 1.6 1.666 1.6h10.734c.866 0 1.6-.734 1.6-1.667V1.667A1.65 1.65 0 0 0 12.5 0M1.633 12.8 2.7 8c0-.067.067-.133.133-.2l1.534-.533-.4-1.2-1.534.466c-.533.2-.933.6-1 1.134L.367 12.533c-.134.667.066 1.334.6 1.734l2.266 1.8c.267.266.734.2.934-.067s.2-.733-.134-.933l-2.266-1.8c-.134-.134-.2-.267-.134-.467"})),jy=Y.forwardRef(vy),Sy=Te.observer(({store:e})=>{var n;const{t}=qt.useTranslation();function r(a,s){(s==="coordsys"||s==="tool")&&e.setSelectedOrientation(s)}return o.jsxs(o.Fragment,{children:[o.jsxs(T.Stack,{direction:"row",alignItems:"center",spacing:2,sx:{padding:"6px 16px","& label":{opacity:.7,fontSize:"12px",marginBottom:"4px"}},children:[o.jsxs(T.Stack,{width:"50%",children:[o.jsx(T.InputLabel,{id:"jogging-coord-select",children:"Coordinate Sys."}),o.jsx(T.Select,{labelId:"jogging-coord-select",value:e.selectedCoordSystemId,size:"small",variant:"filled",displayEmpty:!0,onChange:a=>{e.setSelectedCoordSystemId(a.target.value)},disabled:e.isLocked,children:e.coordSystems.map(a=>o.jsx(T.MenuItem,{value:a.coordinate_system,children:a.name&&e.coordSystemCountByName[a.name]>1?`${a.name} / ${a.coordinate_system}`:a.name||a.coordinate_system},a.coordinate_system))})]}),o.jsxs(T.Stack,{width:"50%",children:[o.jsx(T.InputLabel,{id:"jogging-tcp-select",children:"TCP"}),o.jsx(T.Select,{labelId:"jogging-tcp-select",value:e.selectedTcpId,size:"small",variant:"filled",onChange:a=>{e.setSelectedTcpId(a.target.value)},disabled:e.isLocked,children:e.tcps.map(a=>o.jsx(T.MenuItem,{value:a.id,children:a.id},a.id))})]})]}),o.jsxs(T.Stack,{direction:"row",alignItems:"center",spacing:2,sx:{padding:"6px 16px","& label":{opacity:.7,fontSize:"12px",marginBottom:"4px"}},children:[o.jsxs(T.Stack,{width:"50%",children:[o.jsx(T.InputLabel,{id:"orientation-select",children:t("Jogging.Cartesian.Orientation.lb")}),o.jsxs(T.ToggleButtonGroup,{value:e.selectedOrientation,onChange:r,exclusive:!0,"aria-labelledby":"orientation-select",disabled:e.isLocked,children:[o.jsx(T.ToggleButton,{value:"coordsys",sx:{flexGrow:1},children:o.jsx(xy,{})}),o.jsx(T.ToggleButton,{value:"tool",sx:{flexGrow:1},children:o.jsx(jy,{})})]})]}),o.jsxs(T.Stack,{width:"50%",children:[o.jsx(T.InputLabel,{id:"jogging-increment-select",children:"Increment"}),o.jsxs(T.Select,{labelId:"jogging-increment-select",size:"small",variant:"filled",value:((n=e.activeDiscreteIncrement)==null?void 0:n.id)||"continuous",onChange:a=>{e.setSelectedIncrementId(a.target.value)},disabled:e.isLocked,children:[o.jsx(T.MenuItem,{value:"continuous",children:t("Jogging.Increment.Continuous.dd")},"continuous"),e.selectedOrientation==="tool"?null:e.discreteIncrementOptions.map(a=>o.jsx(T.MenuItem,{value:a.id,children:e.currentMotionType==="translate"?`${a.mm}mm`:`${a.degrees}°`},a.id))]})]})]})]})});function Ry(e,t,r=(n,a)=>n===a){return e.length===t.length&&e.every((n,a)=>r(n,t[a]))}const wy=2;function su(e,t){return e-t}function pi(e,t){var r;const{index:n}=(r=e.reduce((a,s,i)=>{const l=Math.abs(t-s);return a===null||l<a.distance||l===a.distance?{distance:l,index:i}:a},null))!=null?r:{};return n}function _n(e,t){if(t.current!==void 0&&e.changedTouches){const r=e;for(let n=0;n<r.changedTouches.length;n+=1){const a=r.changedTouches[n];if(a.identifier===t.current)return{x:a.clientX,y:a.clientY}}return!1}return{x:e.clientX,y:e.clientY}}function zn(e,t,r){return(e-t)*100/(r-t)}function Ay(e,t,r){return(r-t)*e+t}function Py(e){if(Math.abs(e)<1){const r=e.toExponential().split("e-"),n=r[0].split(".")[1];return(n?n.length:0)+parseInt(r[1],10)}const t=e.toString().split(".")[1];return t?t.length:0}function Cy(e,t,r){const n=Math.round((e-r)/t)*t+r;return Number(n.toFixed(Py(t)))}function _i({values:e,newValue:t,index:r}){const n=e.slice();return n[r]=t,n.sort(su)}function yn({sliderRef:e,activeIndex:t,setActive:r}){var n,a;const s=pr(e.current);if(!((n=e.current)!=null&&n.contains(s.activeElement))||Number(s==null||(a=s.activeElement)==null?void 0:a.getAttribute("data-index"))!==t){var i;(i=e.current)==null||i.querySelector(`[type="range"][data-index="${t}"]`).focus()}r&&r(t)}function bn(e,t){return typeof e=="number"&&typeof t=="number"?e===t:typeof e=="object"&&typeof t=="object"?Ry(e,t):!1}const My={horizontal:{offset:e=>({left:`${e}%`}),leap:e=>({width:`${e}%`})},"horizontal-reverse":{offset:e=>({right:`${e}%`}),leap:e=>({width:`${e}%`})},vertical:{offset:e=>({bottom:`${e}%`}),leap:e=>({height:`${e}%`})}},ky=e=>e;let xn;function yi(){return xn===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?xn=CSS.supports("touch-action","none"):xn=!0),xn}function Iy(e){const{"aria-labelledby":t,defaultValue:r,disabled:n=!1,disableSwap:a=!1,isRtl:s=!1,marks:i=!1,max:l=100,min:u=0,name:c,onChange:m,onChangeCommitted:f,orientation:d="horizontal",rootRef:b,scale:y=ky,step:_=1,shiftStep:p=10,tabIndex:j,value:R}=e,C=$.useRef(),[A,S]=$.useState(-1),[P,M]=$.useState(-1),[K,le]=$.useState(!1),ce=$.useRef(0),[D,q]=el({controlled:R,default:r??u,name:"Slider"}),G=m&&((I,L,F)=>{const W=I.nativeEvent||I,Q=new W.constructor(W.type,W);Object.defineProperty(Q,"target",{writable:!0,value:{value:L,name:c}}),m(Q,L,F)}),Z=Array.isArray(D);let X=Z?D.slice().sort(su):[D];X=X.map(I=>I==null?u:dr(I,u,l));const je=i===!0&&_!==null?[...Array(Math.floor((l-u)/_)+1)].map((I,L)=>({value:u+_*L})):i||[],ue=je.map(I=>I.value),{isFocusVisibleRef:ee,onBlur:we,onFocus:Oe,ref:nt}=tl(),[yt,We]=$.useState(-1),Se=$.useRef(),Ct=Ln(nt,Se),lt=Ln(b,Ct),He=I=>L=>{var F;const W=Number(L.currentTarget.getAttribute("data-index"));Oe(L),ee.current===!0&&We(W),M(W),I==null||(F=I.onFocus)==null||F.call(I,L)},Ue=I=>L=>{var F;we(L),ee.current===!1&&We(-1),M(-1),I==null||(F=I.onBlur)==null||F.call(I,L)},ut=(I,L)=>{const F=Number(I.currentTarget.getAttribute("data-index")),W=X[F],Q=ue.indexOf(W);let H=L;if(je&&_==null){const Ve=ue[ue.length-1];H>Ve?H=Ve:H<ue[0]?H=ue[0]:H=H<W?ue[Q-1]:ue[Q+1]}if(H=dr(H,u,l),Z){a&&(H=dr(H,X[F-1]||-1/0,X[F+1]||1/0));const Ve=H;H=_i({values:X,newValue:H,index:F});let Xe=F;a||(Xe=H.indexOf(Ve)),yn({sliderRef:Se,activeIndex:Xe})}q(H),We(F),G&&!bn(H,D)&&G(I,H,F),f&&f(I,H)},ct=I=>L=>{var F;if(_!==null){const W=Number(L.currentTarget.getAttribute("data-index")),Q=X[W];let H=null;(L.key==="ArrowLeft"||L.key==="ArrowDown")&&L.shiftKey||L.key==="PageDown"?H=Math.max(Q-p,u):((L.key==="ArrowRight"||L.key==="ArrowUp")&&L.shiftKey||L.key==="PageUp")&&(H=Math.min(Q+p,l)),H!==null&&(ut(L,H),L.preventDefault())}I==null||(F=I.onKeyDown)==null||F.call(I,L)};js(()=>{if(n&&Se.current.contains(document.activeElement)){var I;(I=document.activeElement)==null||I.blur()}},[n]),n&&A!==-1&&S(-1),n&&yt!==-1&&We(-1);const Ft=I=>L=>{var F;(F=I.onChange)==null||F.call(I,L),ut(L,L.target.valueAsNumber)},bt=$.useRef();let Je=d;s&&d==="horizontal"&&(Je+="-reverse");const O=({finger:I,move:L=!1})=>{const{current:F}=Se,{width:W,height:Q,bottom:H,left:Ve}=F.getBoundingClientRect();let Xe;Je.indexOf("vertical")===0?Xe=(H-I.y)/Q:Xe=(I.x-Ve)/W,Je.indexOf("-reverse")!==-1&&(Xe=1-Xe);let re;if(re=Ay(Xe,u,l),_)re=Cy(re,_,u);else{const It=pi(ue,re);re=ue[It]}re=dr(re,u,l);let Ne=0;if(Z){L?Ne=bt.current:Ne=pi(X,re),a&&(re=dr(re,X[Ne-1]||-1/0,X[Ne+1]||1/0));const It=re;re=_i({values:X,newValue:re,index:Ne}),a&&L||(Ne=re.indexOf(It),bt.current=Ne)}return{newValue:re,activeIndex:Ne}},te=An(I=>{const L=_n(I,C);if(!L)return;if(ce.current+=1,I.type==="mousemove"&&I.buttons===0){fe(I);return}const{newValue:F,activeIndex:W}=O({finger:L,move:!0});yn({sliderRef:Se,activeIndex:W,setActive:S}),q(F),!K&&ce.current>wy&&le(!0),G&&!bn(F,D)&&G(I,F,W)}),fe=An(I=>{const L=_n(I,C);if(le(!1),!L)return;const{newValue:F}=O({finger:L,move:!0});S(-1),I.type==="touchend"&&M(-1),f&&f(I,F),C.current=void 0,Le()}),Ee=An(I=>{if(n)return;yi()||I.preventDefault();const L=I.changedTouches[0];L!=null&&(C.current=L.identifier);const F=_n(I,C);if(F!==!1){const{newValue:Q,activeIndex:H}=O({finger:F});yn({sliderRef:Se,activeIndex:H,setActive:S}),q(Q),G&&!bn(Q,D)&&G(I,Q,H)}ce.current=0;const W=pr(Se.current);W.addEventListener("touchmove",te,{passive:!0}),W.addEventListener("touchend",fe,{passive:!0})}),Le=$.useCallback(()=>{const I=pr(Se.current);I.removeEventListener("mousemove",te),I.removeEventListener("mouseup",fe),I.removeEventListener("touchmove",te),I.removeEventListener("touchend",fe)},[fe,te]);$.useEffect(()=>{const{current:I}=Se;return I.addEventListener("touchstart",Ee,{passive:yi()}),()=>{I.removeEventListener("touchstart",Ee),Le()}},[Le,Ee]),$.useEffect(()=>{n&&Le()},[n,Le]);const Mt=I=>L=>{var F;if((F=I.onMouseDown)==null||F.call(I,L),n||L.defaultPrevented||L.button!==0)return;L.preventDefault();const W=_n(L,C);if(W!==!1){const{newValue:H,activeIndex:Ve}=O({finger:W});yn({sliderRef:Se,activeIndex:Ve,setActive:S}),q(H),G&&!bn(H,D)&&G(L,H,Ve)}ce.current=0;const Q=pr(Se.current);Q.addEventListener("mousemove",te,{passive:!0}),Q.addEventListener("mouseup",fe)},Re=zn(Z?X[0]:u,u,l),kt=zn(X[X.length-1],u,l)-Re,Dt=(I={})=>{const L=Pn(I),F={onMouseDown:Mt(L||{})},W=k({},L,F);return k({},I,{ref:lt},W)},wr=I=>L=>{var F;(F=I.onMouseOver)==null||F.call(I,L);const W=Number(L.currentTarget.getAttribute("data-index"));M(W)},Ar=I=>L=>{var F;(F=I.onMouseLeave)==null||F.call(I,L),M(-1)};return{active:A,axis:Je,axisProps:My,dragging:K,focusedThumbIndex:yt,getHiddenInputProps:(I={})=>{var L;const F=Pn(I),W={onChange:Ft(F||{}),onFocus:He(F||{}),onBlur:Ue(F||{}),onKeyDown:ct(F||{})},Q=k({},F,W);return k({tabIndex:j,"aria-labelledby":t,"aria-orientation":d,"aria-valuemax":y(l),"aria-valuemin":y(u),name:c,type:"range",min:e.min,max:e.max,step:e.step===null&&e.marks?"any":(L=e.step)!=null?L:void 0,disabled:n},I,Q,{style:k({},vd,{direction:s?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:Dt,getThumbProps:(I={})=>{const L=Pn(I),F={onMouseOver:wr(L||{}),onMouseLeave:Ar(L||{})};return k({},I,L,F)},marks:je,open:P,range:Z,rootRef:lt,trackLeap:kt,trackOffset:Re,values:X,getThumbStyle:I=>({pointerEvents:A!==-1&&A!==I?"none":void 0})}}const Ty=e=>!e||!Ur(e);function Oy(e){return nn("MuiSlider",e)}const Qe=Xi("MuiSlider",["root","active","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","disabled","dragging","focusVisible","mark","markActive","marked","markLabel","markLabelActive","rail","sizeSmall","thumb","thumbColorPrimary","thumbColorSecondary","thumbColorError","thumbColorSuccess","thumbColorInfo","thumbColorWarning","track","trackInverted","trackFalse","thumbSizeSmall","valueLabel","valueLabelOpen","valueLabelCircle","valueLabelLabel","vertical"]),Ey=e=>{const{open:t}=e;return{offset:gt(t&&Qe.valueLabelOpen),circle:Qe.valueLabelCircle,label:Qe.valueLabelLabel}};function ou(e){const{children:t,className:r,value:n}=e,a=Ey(e);return t?$.cloneElement(t,{className:gt(t.props.className)},o.jsxs($.Fragment,{children:[t.props.children,o.jsx("span",{className:gt(a.offset,r),"aria-hidden":!0,children:o.jsx("span",{className:a.circle,children:o.jsx("span",{className:a.label,children:n})})})]})):null}process.env.NODE_ENV!=="production"&&(ou.propTypes={children:h.element.isRequired,className:h.string,value:h.node});const Ly=["aria-label","aria-valuetext","aria-labelledby","component","components","componentsProps","color","classes","className","disableSwap","disabled","getAriaLabel","getAriaValueText","marks","max","min","name","onChange","onChangeCommitted","orientation","shiftStep","size","step","scale","slotProps","slots","tabIndex","track","value","valueLabelDisplay","valueLabelFormat"];function bi(e){return e}const Ny=wt("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`color${Pe(r.color)}`],r.size!=="medium"&&t[`size${Pe(r.size)}`],r.marked&&t.marked,r.orientation==="vertical"&&t.vertical,r.track==="inverted"&&t.trackInverted,r.track===!1&&t.trackFalse]}})(({theme:e})=>{var t;return{borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",WebkitTapHighlightColor:"transparent","@media print":{colorAdjust:"exact"},[`&.${Qe.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${Qe.dragging}`]:{[`& .${Qe.thumb}, & .${Qe.track}`]:{transition:"none"}},variants:[...Object.keys(((t=e.vars)!=null?t:e).palette).filter(r=>{var n;return((n=e.vars)!=null?n:e).palette[r].main}).map(r=>({props:{color:r},style:{color:(e.vars||e).palette[r].main}})),{props:{orientation:"horizontal"},style:{height:4,width:"100%",padding:"13px 0","@media (pointer: coarse)":{padding:"20px 0"}}},{props:{orientation:"horizontal",size:"small"},style:{height:2}},{props:{orientation:"horizontal",marked:!0},style:{marginBottom:20}},{props:{orientation:"vertical"},style:{height:"100%",width:4,padding:"0 13px","@media (pointer: coarse)":{padding:"0 20px"}}},{props:{orientation:"vertical",size:"small"},style:{width:2}},{props:{orientation:"vertical",marked:!0},style:{marginRight:44}}]}}),$y=wt("span",{name:"MuiSlider",slot:"Rail",overridesResolver:(e,t)=>t.rail})({display:"block",position:"absolute",borderRadius:"inherit",backgroundColor:"currentColor",opacity:.38,variants:[{props:{orientation:"horizontal"},style:{width:"100%",height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{height:"100%",width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:"inverted"},style:{opacity:1}}]}),Fy=wt("span",{name:"MuiSlider",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e})=>{var t;return{display:"block",position:"absolute",borderRadius:"inherit",border:"1px solid currentColor",backgroundColor:"currentColor",transition:e.transitions.create(["left","width","bottom","height"],{duration:e.transitions.duration.shortest}),variants:[{props:{size:"small"},style:{border:"none"}},{props:{orientation:"horizontal"},style:{height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:!1},style:{display:"none"}},...Object.keys(((t=e.vars)!=null?t:e).palette).filter(r=>{var n;return((n=e.vars)!=null?n:e).palette[r].main}).map(r=>({props:{color:r,track:"inverted"},style:k({},e.vars?{backgroundColor:e.vars.palette.Slider[`${r}Track`],borderColor:e.vars.palette.Slider[`${r}Track`]}:k({backgroundColor:Za(e.palette[r].main,.62),borderColor:Za(e.palette[r].main,.62)},e.applyStyles("dark",{backgroundColor:Ya(e.palette[r].main,.5)}),e.applyStyles("dark",{borderColor:Ya(e.palette[r].main,.5)})))}))]}}),Dy=wt("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.thumb,t[`thumbColor${Pe(r.color)}`],r.size!=="medium"&&t[`thumbSize${Pe(r.size)}`]]}})(({theme:e})=>{var t;return{position:"absolute",width:20,height:20,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:e.transitions.create(["box-shadow","left","bottom"],{duration:e.transitions.duration.shortest}),"&::before":{position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:(e.vars||e).shadows[2]},"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,height:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"},[`&.${Qe.disabled}`]:{"&:hover":{boxShadow:"none"}},variants:[{props:{size:"small"},style:{width:12,height:12,"&::before":{boxShadow:"none"}}},{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-50%, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 50%)"}},...Object.keys(((t=e.vars)!=null?t:e).palette).filter(r=>{var n;return((n=e.vars)!=null?n:e).palette[r].main}).map(r=>({props:{color:r},style:{[`&:hover, &.${Qe.focusVisible}`]:k({},e.vars?{boxShadow:`0px 0px 0px 8px rgba(${e.vars.palette[r].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 8px ${fo(e.palette[r].main,.16)}`},{"@media (hover: none)":{boxShadow:"none"}}),[`&.${Qe.active}`]:k({},e.vars?{boxShadow:`0px 0px 0px 14px rgba(${e.vars.palette[r].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 14px ${fo(e.palette[r].main,.16)}`})}}))]}}),By=wt(ou,{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(e,t)=>t.valueLabel})(({theme:e})=>k({zIndex:1,whiteSpace:"nowrap"},e.typography.body2,{fontWeight:500,transition:e.transitions.create(["transform"],{duration:e.transitions.duration.shortest}),position:"absolute",backgroundColor:(e.vars||e).palette.grey[600],borderRadius:2,color:(e.vars||e).palette.common.white,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.25rem 0.75rem",variants:[{props:{orientation:"horizontal"},style:{transform:"translateY(-100%) scale(0)",top:"-10px",transformOrigin:"bottom center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, 50%) rotate(45deg)",backgroundColor:"inherit",bottom:0,left:"50%"},[`&.${Qe.valueLabelOpen}`]:{transform:"translateY(-100%) scale(1)"}}},{props:{orientation:"vertical"},style:{transform:"translateY(-50%) scale(0)",right:"30px",top:"50%",transformOrigin:"right center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, -50%) rotate(45deg)",backgroundColor:"inherit",right:-8,top:"50%"},[`&.${Qe.valueLabelOpen}`]:{transform:"translateY(-50%) scale(1)"}}},{props:{size:"small"},style:{fontSize:e.typography.pxToRem(12),padding:"0.25rem 0.5rem"}},{props:{orientation:"vertical",size:"small"},style:{right:"20px"}}]})),Uy=wt("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>Cs(e)&&e!=="markActive",overridesResolver:(e,t)=>{const{markActive:r}=e;return[t.mark,r&&t.markActive]}})(({theme:e})=>({position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor",variants:[{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-1px, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 1px)"}},{props:{markActive:!0},style:{backgroundColor:(e.vars||e).palette.background.paper,opacity:.8}}]})),Jy=wt("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>Cs(e)&&e!=="markLabelActive",overridesResolver:(e,t)=>t.markLabel})(({theme:e})=>k({},e.typography.body2,{color:(e.vars||e).palette.text.secondary,position:"absolute",whiteSpace:"nowrap",variants:[{props:{orientation:"horizontal"},style:{top:30,transform:"translateX(-50%)","@media (pointer: coarse)":{top:40}}},{props:{orientation:"vertical"},style:{left:36,transform:"translateY(50%)","@media (pointer: coarse)":{left:44}}},{props:{markLabelActive:!0},style:{color:(e.vars||e).palette.text.primary}}]})),Vy=e=>{const{disabled:t,dragging:r,marked:n,orientation:a,track:s,classes:i,color:l,size:u}=e,c={root:["root",t&&"disabled",r&&"dragging",n&&"marked",a==="vertical"&&"vertical",s==="inverted"&&"trackInverted",s===!1&&"trackFalse",l&&`color${Pe(l)}`,u&&`size${Pe(u)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",u&&`thumbSize${Pe(u)}`,l&&`thumbColor${Pe(l)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return Rs(c,Oy,i)},Gy=({children:e})=>e,iu=$.forwardRef(function(t,r){var n,a,s,i,l,u,c,m,f,d,b,y,_,p,j,R,C,A,S,P,M,K,le,ce;const D=Ms({props:t,name:"MuiSlider"}),q=Pd(),{"aria-label":G,"aria-valuetext":Z,"aria-labelledby":X,component:je="span",components:ue={},componentsProps:ee={},color:we="primary",classes:Oe,className:nt,disableSwap:yt=!1,disabled:We=!1,getAriaLabel:Se,getAriaValueText:Ct,marks:lt=!1,max:He=100,min:Ue=0,orientation:ut="horizontal",shiftStep:ct=10,size:Ft="medium",step:bt=1,scale:Je=bi,slotProps:O,slots:te,track:fe="normal",valueLabelDisplay:Ee="off",valueLabelFormat:Le=bi}=D,Mt=Be(D,Ly),Re=k({},D,{isRtl:q,max:He,min:Ue,classes:Oe,disabled:We,disableSwap:yt,orientation:ut,marks:lt,color:we,size:Ft,step:bt,shiftStep:ct,scale:Je,track:fe,valueLabelDisplay:Ee,valueLabelFormat:Le}),{axisProps:kt,getRootProps:Dt,getHiddenInputProps:wr,getThumbProps:Ar,open:Pr,active:er,axis:at,focusedThumbIndex:I,range:L,dragging:F,marks:W,values:Q,trackOffset:H,trackLeap:Ve,getThumbStyle:Xe}=Iy(k({},Re,{rootRef:r}));Re.marked=W.length>0&&W.some(N=>N.label),Re.dragging=F,Re.focusedThumbIndex=I;const re=Vy(Re),Ne=(n=(a=te==null?void 0:te.root)!=null?a:ue.Root)!=null?n:Ny,It=(s=(i=te==null?void 0:te.rail)!=null?i:ue.Rail)!=null?s:$y,tr=(l=(u=te==null?void 0:te.track)!=null?u:ue.Track)!=null?l:Fy,Cr=(c=(m=te==null?void 0:te.thumb)!=null?m:ue.Thumb)!=null?c:Dy,xt=(f=(d=te==null?void 0:te.valueLabel)!=null?d:ue.ValueLabel)!=null?f:By,Bt=(b=(y=te==null?void 0:te.mark)!=null?y:ue.Mark)!=null?b:Uy,Ut=(_=(p=te==null?void 0:te.markLabel)!=null?p:ue.MarkLabel)!=null?_:Jy,Mr=(j=(R=te==null?void 0:te.input)!=null?R:ue.Input)!=null?j:"input",kr=(C=O==null?void 0:O.root)!=null?C:ee.root,un=(A=O==null?void 0:O.rail)!=null?A:ee.rail,Ir=(S=O==null?void 0:O.track)!=null?S:ee.track,rr=(P=O==null?void 0:O.thumb)!=null?P:ee.thumb,nr=(M=O==null?void 0:O.valueLabel)!=null?M:ee.valueLabel,ba=(K=O==null?void 0:O.mark)!=null?K:ee.mark,xa=(le=O==null?void 0:O.markLabel)!=null?le:ee.markLabel,cn=(ce=O==null?void 0:O.input)!=null?ce:ee.input,mn=Tt({elementType:Ne,getSlotProps:Dt,externalSlotProps:kr,externalForwardedProps:Mt,additionalProps:k({},Ty(Ne)&&{as:je}),ownerState:k({},Re,kr==null?void 0:kr.ownerState),className:[re.root,nt]}),va=Tt({elementType:It,externalSlotProps:un,ownerState:Re,className:re.rail}),ja=Tt({elementType:tr,externalSlotProps:Ir,additionalProps:{style:k({},kt[at].offset(H),kt[at].leap(Ve))},ownerState:k({},Re,Ir==null?void 0:Ir.ownerState),className:re.track}),Tr=Tt({elementType:Cr,getSlotProps:Ar,externalSlotProps:rr,ownerState:k({},Re,rr==null?void 0:rr.ownerState),className:re.thumb}),Sa=Tt({elementType:xt,externalSlotProps:nr,ownerState:k({},Re,nr==null?void 0:nr.ownerState),className:re.valueLabel}),g=Tt({elementType:Bt,externalSlotProps:ba,ownerState:Re,className:re.mark}),w=Tt({elementType:Ut,externalSlotProps:xa,ownerState:Re,className:re.markLabel}),E=Tt({elementType:Mr,getSlotProps:wr,externalSlotProps:cn,ownerState:Re});return o.jsxs(Ne,k({},mn,{children:[o.jsx(It,k({},va)),o.jsx(tr,k({},ja)),W.filter(N=>N.value>=Ue&&N.value<=He).map((N,B)=>{const ne=zn(N.value,Ue,He),V=kt[at].offset(ne);let U;return fe===!1?U=Q.indexOf(N.value)!==-1:U=fe==="normal"&&(L?N.value>=Q[0]&&N.value<=Q[Q.length-1]:N.value<=Q[0])||fe==="inverted"&&(L?N.value<=Q[0]||N.value>=Q[Q.length-1]:N.value>=Q[0]),o.jsxs($.Fragment,{children:[o.jsx(Bt,k({"data-index":B},g,!Ur(Bt)&&{markActive:U},{style:k({},V,g.style),className:gt(g.className,U&&re.markActive)})),N.label!=null?o.jsx(Ut,k({"aria-hidden":!0,"data-index":B},w,!Ur(Ut)&&{markLabelActive:U},{style:k({},V,w.style),className:gt(re.markLabel,w.className,U&&re.markLabelActive),children:N.label})):null]},B)}),Q.map((N,B)=>{const ne=zn(N,Ue,He),V=kt[at].offset(ne),U=Ee==="off"?Gy:xt;return o.jsx(U,k({},!Ur(U)&&{valueLabelFormat:Le,valueLabelDisplay:Ee,value:typeof Le=="function"?Le(Je(N),B):Le,index:B,open:Pr===B||er===B||Ee==="on",disabled:We},Sa,{children:o.jsx(Cr,k({"data-index":B},Tr,{className:gt(re.thumb,Tr.className,er===B&&re.active,I===B&&re.focusVisible),style:k({},V,Xe(B),Tr.style),children:o.jsx(Mr,k({"data-index":B,"aria-label":Se?Se(B):G,"aria-valuenow":Je(N),"aria-labelledby":X,"aria-valuetext":Ct?Ct(Je(N),B):Z,value:Q[B]},E))}))}),B)})]}))});process.env.NODE_ENV!=="production"&&(iu.propTypes={"aria-label":ao(h.string,e=>Array.isArray(e.value||e.defaultValue)&&e["aria-label"]!=null?new Error("MUI: You need to use the `getAriaLabel` prop instead of `aria-label` when using a range slider."):null),"aria-labelledby":h.string,"aria-valuetext":ao(h.string,e=>Array.isArray(e.value||e.defaultValue)&&e["aria-valuetext"]!=null?new Error("MUI: You need to use the `getAriaValueText` prop instead of `aria-valuetext` when using a range slider."):null),children:h.node,classes:h.object,className:h.string,color:h.oneOfType([h.oneOf(["primary","secondary","error","info","success","warning"]),h.string]),components:h.shape({Input:h.elementType,Mark:h.elementType,MarkLabel:h.elementType,Rail:h.elementType,Root:h.elementType,Thumb:h.elementType,Track:h.elementType,ValueLabel:h.elementType}),componentsProps:h.shape({input:h.oneOfType([h.func,h.object]),mark:h.oneOfType([h.func,h.object]),markLabel:h.oneOfType([h.func,h.object]),rail:h.oneOfType([h.func,h.object]),root:h.oneOfType([h.func,h.object]),thumb:h.oneOfType([h.func,h.object]),track:h.oneOfType([h.func,h.object]),valueLabel:h.oneOfType([h.func,h.shape({children:h.element,className:h.string,open:h.bool,style:h.object,value:h.number,valueLabelDisplay:h.oneOf(["auto","off","on"])})])}),defaultValue:h.oneOfType([h.arrayOf(h.number),h.number]),disabled:h.bool,disableSwap:h.bool,getAriaLabel:h.func,getAriaValueText:h.func,marks:h.oneOfType([h.arrayOf(h.shape({label:h.node,value:h.number.isRequired})),h.bool]),max:h.number,min:h.number,name:h.string,onChange:h.func,onChangeCommitted:h.func,orientation:h.oneOf(["horizontal","vertical"]),scale:h.func,shiftStep:h.number,size:h.oneOfType([h.oneOf(["small","medium"]),h.string]),slotProps:h.shape({input:h.oneOfType([h.func,h.object]),mark:h.oneOfType([h.func,h.object]),markLabel:h.oneOfType([h.func,h.object]),rail:h.oneOfType([h.func,h.object]),root:h.oneOfType([h.func,h.object]),thumb:h.oneOfType([h.func,h.object]),track:h.oneOfType([h.func,h.object]),valueLabel:h.oneOfType([h.func,h.shape({children:h.element,className:h.string,open:h.bool,style:h.object,value:h.number,valueLabelDisplay:h.oneOf(["auto","off","on"])})])}),slots:h.shape({input:h.elementType,mark:h.elementType,markLabel:h.elementType,rail:h.elementType,root:h.elementType,thumb:h.elementType,track:h.elementType,valueLabel:h.elementType}),step:h.number,sx:h.oneOfType([h.arrayOf(h.oneOfType([h.func,h.object,h.bool])),h.func,h.object]),tabIndex:h.number,track:h.oneOf(["inverted","normal",!1]),value:h.oneOfType([h.arrayOf(h.number),h.number]),valueLabelDisplay:h.oneOf(["auto","off","on"]),valueLabelFormat:h.oneOfType([h.func,h.string])});var zy="[object Number]";function Ky(e){return typeof e=="number"||Wt(e)&&Yt(e)==zy}const lu=Te.observer(e=>{const t=T.useTheme(),r=e.valueLabelFormat||(a=>`${a}`);function n(a,s){s===e.velocity||!Ky(s)||e.onVelocityChange(s)}return o.jsxs(o.Fragment,{children:[o.jsx(T.Typography,{sx:{textAlign:"center",fontSize:"14px",opacity:.8,lineHeight:1,color:t.palette.text.primary},children:r(e.velocity)}),o.jsx(iu,{value:e.velocity,color:"secondary",onChange:n,min:e.min,max:e.max,"aria-labelledby":"input-slider",disabled:e.disabled,sx:{"& .MuiSlider-valueLabelOpen":{zIndex:100,backgroundColor:"transparent",top:"0px"}}})]})}),uu=Te.observer(({store:e})=>{const{t}=qt.useTranslation(),r=Te.useLocalObservable(()=>({get valueLabelFormat(){return e.currentMotionType==="translate"?n=>`v=${t("Jogging.Cartesian.Translation.velocityMmPerSec.lb",{amount:n})}`:n=>`v=${t("Jogging.Cartesian.Rotation.velocityDegPerSec.lb",{amount:n})}`}}));return o.jsx(T.Stack,{sx:{margin:"0px 20px",marginBottom:"6px"},children:o.jsx(T.Stack,{sx:{width:"380px",maxWidth:"90%",margin:"auto"},children:o.jsx(lu,{velocity:e.velocityInCurrentUnits,min:e.minVelocityInCurrentUnits,max:e.maxVelocityInCurrentUnits,onVelocityChange:e.setVelocityFromSlider,disabled:e.isLocked,valueLabelFormat:r.valueLabelFormat})})})}),Wy=Te.observer(({store:e,children:t})=>{var f,d,b,y,_,p,j,R,C;const{t:r}=qt.useTranslation(),n=T.useTheme();function a(A,S){(S==="translate"||S==="rotate")&&e.setSelectedCartesianMotionType(S)}ks(()=>[e.selectedCoordSystemId,e.selectedTcpId],()=>{e.jogger.motionStream.motionStateSocket.changeUrl(e.jogger.nova.makeWebsocketURL(`/motion-groups/${e.jogger.motionGroupId}/state-stream?tcp=${e.selectedTcpId}&response_coordinate_system=${e.selectedCoordSystemId}`))},{fireImmediately:!0});async function s(A,S){const P=e.jogger.motionStream.rapidlyChangingMotionState.tcp_pose,M=e.jogger.motionStream.rapidlyChangingMotionState.state.joint_position;P&&await e.withMotionLock(async()=>{await e.jogger.runIncrementalCartesianMotion({currentTcpPose:P,currentJoints:M,coordSystemId:e.activeCoordSystemId,velocityInRelevantUnits:e.velocityInCurrentUnits,axis:A.axis,direction:A.direction,motion:e.selectedCartesianMotionType==="translate"?{type:"translate",distanceMm:S.mm}:{type:"rotate",distanceRads:Lt.degreesToRadians(S.degrees)}})})}async function i(A){if(!e.isLocked){if(e.activeDiscreteIncrement)return s(A,e.activeDiscreteIncrement);A.motionType==="translate"?await e.jogger.startTCPTranslation({axis:A.axis,direction:A.direction,velocityMmPerSec:e.translationVelocityMmPerSec}):await e.jogger.startTCPRotation({axis:A.axis,direction:A.direction,velocityRadsPerSec:e.rotationVelocityRadsPerSec})}}async function l(){e.isLocked||e.activeDiscreteIncrement||await e.jogger.stop()}const u=[{id:"x",colors:(b=(d=(f=n.componentsExt)==null?void 0:f.JoggingCartesian)==null?void 0:d.Axis)==null?void 0:b.X,icon:o.jsx(Ng,{})},{id:"y",colors:(p=(_=(y=n.componentsExt)==null?void 0:y.JoggingCartesian)==null?void 0:_.Axis)==null?void 0:p.Y,icon:o.jsx(Fg,{})},{id:"z",colors:(C=(R=(j=n.componentsExt)==null?void 0:j.JoggingCartesian)==null?void 0:R.Axis)==null?void 0:C.Z,icon:o.jsx(Bg,{})}];function c(A){return r("General.mm.variable",{amount:A.toFixed(1)})}function m(A){return r("General.degree.variable",{amount:Lt.radiansToDegrees(A).toFixed(1)})}return o.jsxs(T.Stack,{flexGrow:1,gap:4,children:[o.jsxs(T.Stack,{children:[o.jsx(Vg,{store:e}),o.jsx(Sy,{store:e})]}),o.jsx(T.Stack,{width:"80%",maxWidth:"296px",marginLeft:"auto",marginRight:"auto",marginTop:"8px",marginBottom:"8px",gap:"12px",children:o.jsxs(T.ToggleButtonGroup,{value:e.selectedCartesianMotionType,onChange:a,exclusive:!0,"aria-label":r("Jogging.Cartesian.MotionType.lb"),sx:{justifyContent:"center"},children:[o.jsx(T.ToggleButton,{value:"translate",children:r("Jogging.Cartesian.Translation.bt")}),o.jsx(T.ToggleButton,{value:"rotate",children:r("Jogging.Cartesian.Rotation.bt")})]})}),o.jsx(Kl,{store:e,children:o.jsxs(T.Stack,{width:"80%",maxWidth:"296px",marginLeft:"auto",marginRight:"auto",marginTop:"8px",marginBottom:"8px",gap:"12px",children:[e.selectedCartesianMotionType==="translate"&&u.map(A=>o.jsx(es,{colors:A.colors,disabled:e.isLocked,label:o.jsxs(o.Fragment,{children:[A.icon,o.jsx(T.Typography,{sx:{fontSize:"24px",color:"white"},children:A.id.toUpperCase()})]}),getDisplayedValue:()=>{var S;return c(((S=e.jogger.motionStream.rapidlyChangingMotionState.tcp_pose)==null?void 0:S.position[A.id])||0)},startJogging:S=>i({axis:A.id,motionType:"translate",direction:S}),stopJogging:l},A.id)),e.selectedCartesianMotionType==="rotate"&&u.map(A=>o.jsx(es,{colors:A.colors,disabled:e.isLocked,label:o.jsxs(o.Fragment,{children:[o.jsx(Jg,{}),o.jsx(T.Typography,{sx:{fontSize:"24px",color:"white"},children:A.id.toUpperCase()})]}),getDisplayedValue:()=>{var S,P;return m(((P=(S=e.jogger.motionStream.rapidlyChangingMotionState.tcp_pose)==null?void 0:S.orientation)==null?void 0:P[A.id])||0)},startJogging:S=>i({axis:A.id,motionType:"rotate",direction:S}),stopJogging:l},A.id))]})}),o.jsxs(T.Stack,{children:[o.jsx(au,{store:e}),o.jsx(uu,{store:e}),t]})]})}),Hy=Te.observer(({store:e})=>{const t=Y.useRef(null);function r(){const{joints:n}=e.jogger.motionStream.rapidlyChangingMotionState.state.joint_position;return`[${n.map(a=>parseFloat(a.toFixed(4))).join(", ")}]`}return jr(()=>{t.current&&(t.current.textContent=r())}),o.jsx(T.Stack,{alignItems:"left",spacing:2,sx:{padding:"16px","& label":{opacity:.7,fontSize:"12px",marginBottom:"4px"}},children:o.jsx(Wl,{value:r(),ref:t})})}),Xy=Te.observer(({store:e,children:t})=>{async function r(a){await e.jogger.startJointRotation({joint:a.joint,direction:a.direction,velocityRadsPerSec:e.rotationVelocityRadsPerSec})}async function n(){await e.jogger.stop()}return o.jsxs(T.Stack,{flexGrow:1,justifyContent:"space-between",children:[o.jsx(Hy,{store:e}),o.jsx(Kl,{store:e,children:o.jsx(T.Stack,{gap:"0.8rem",children:e.jogger.motionStream.joints.map(a=>{var u;const s=(u=e.motionGroupSpec.mechanical_joint_limits)==null?void 0:u[a.index],i=(s==null?void 0:s.lower_limit)!==void 0?Lt.radiansToDegrees(s.lower_limit):void 0,l=(s==null?void 0:s.upper_limit)!==void 0?Lt.radiansToDegrees(s.upper_limit):void 0;return o.jsxs(T.Stack,{direction:"row",alignItems:"center",gap:2,children:[o.jsx(T.Typography,{sx:{flexGrow:1,textAlign:"right"},children:`J${a.index+1}`}),o.jsx(bl,{disabled:e.isLocked,lowerLimitDegs:i,upperLimitDegs:l,getValueDegs:()=>{const c=e.jogger.motionStream.rapidlyChangingMotionState.state.joint_position.joints[a.index];return c!==void 0?Lt.radiansToDegrees(c):void 0},startJogging:c=>r({joint:a.index,direction:c}),stopJogging:n},a.index),o.jsx(T.Typography,{sx:{flexGrow:1}})]},`joint-${a.index}`)})})}),o.jsx(au,{store:e}),o.jsx(uu,{store:e}),t]})});var xi=function(){try{var e=Qt(Object,"defineProperty");return e({},"",{}),e}catch{}}();function qy(e,t,r){t=="__proto__"&&xi?xi(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function Yy(e,t,r,n){for(var a=-1,s=e==null?0:e.length;++a<s;){var i=e[a];t(n,i,r(i),e)}return n}function Zy(e){return function(t,r,n){for(var a=-1,s=Object(t),i=n(t),l=i.length;l--;){var u=i[++a];if(r(s[u],u,s)===!1)break}return t}}var Qy=Zy();function e1(e,t){return e&&Qy(e,t,Fs)}function t1(e,t){return function(r,n){if(r==null)return r;if(!nu(r))return e(r,n);for(var a=r.length,s=-1,i=Object(r);++s<a&&n(i[s],s,i)!==!1;);return r}}var r1=t1(e1);function n1(e,t,r,n){return r1(e,function(a,s,i){t(n,a,r(a),i)}),n}var a1=1,s1=2;function o1(e,t,r,n){var a=r.length,s=a;if(e==null)return!s;for(e=Object(e);a--;){var i=r[a];if(i[2]?i[1]!==e[i[0]]:!(i[0]in e))return!1}for(;++a<s;){i=r[a];var l=i[0],u=e[l],c=i[1];if(i[2]){if(u===void 0&&!(l in e))return!1}else{var m=new St,f;if(!(f===void 0?_a(c,u,a1|s1,n,m):f))return!1}}return!0}function cu(e){return e===e&&!Kt(e)}function i1(e){for(var t=Fs(e),r=t.length;r--;){var n=t[r],a=e[n];t[r]=[n,a,cu(a)]}return t}function mu(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}function l1(e){var t=i1(e);return t.length==1&&t[0][2]?mu(t[0][0],t[0][1]):function(r){return r===e||o1(r,e,t)}}var u1=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,c1=/^\w*$/;function Ds(e,t){if(pt(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||la(e)?!0:c1.test(e)||!u1.test(e)||t!=null&&e in Object(t)}var m1="Expected a function";function Bs(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(m1);var r=function(){var n=arguments,a=t?t.apply(this,n):n[0],s=r.cache;if(s.has(a))return s.get(a);var i=e.apply(this,n);return r.cache=s.set(a,i)||s,i};return r.cache=new(Bs.Cache||Pt),r}Bs.Cache=Pt;var d1=500;function f1(e){var t=Bs(e,function(n){return r.size===d1&&r.clear(),n}),r=t.cache;return t}var h1=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,g1=/\\(\\)?/g,p1=f1(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(h1,function(r,n,a,s){t.push(a?s.replace(g1,"$1"):n||r)}),t});function _1(e,t){for(var r=-1,n=e==null?0:e.length,a=Array(n);++r<n;)a[r]=t(e[r],r,e);return a}var y1=1/0,vi=Nt?Nt.prototype:void 0,ji=vi?vi.toString:void 0;function du(e){if(typeof e=="string")return e;if(pt(e))return _1(e,du)+"";if(la(e))return ji?ji.call(e):"";var t=e+"";return t=="0"&&1/e==-y1?"-0":t}function fu(e){return e==null?"":du(e)}function hu(e,t){return pt(e)?e:Ds(e,t)?[e]:p1(fu(e))}var b1=1/0;function ya(e){if(typeof e=="string"||la(e))return e;var t=e+"";return t=="0"&&1/e==-b1?"-0":t}function gu(e,t){t=hu(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[ya(t[r++])];return r&&r==n?e:void 0}function x1(e,t,r){var n=e==null?void 0:gu(e,t);return n===void 0?r:n}function v1(e,t){return e!=null&&t in Object(e)}function j1(e,t,r){t=hu(t,e);for(var n=-1,a=t.length,s=!1;++n<a;){var i=ya(t[n]);if(!(s=e!=null&&r(e,i)))break;e=e[i]}return s||++n!=a?s:(a=e==null?0:e.length,!!a&&$s(a)&&eu(i,a)&&(pt(e)||Zl(e)))}function S1(e,t){return e!=null&&j1(e,t,v1)}var R1=1,w1=2;function A1(e,t){return Ds(e)&&cu(t)?mu(ya(e),t):function(r){var n=x1(r,e);return n===void 0&&n===t?S1(r,e):_a(t,n,R1|w1)}}function P1(e){return e}function C1(e){return function(t){return t==null?void 0:t[e]}}function M1(e){return function(t){return gu(t,e)}}function k1(e){return Ds(e)?C1(ya(e)):M1(e)}function I1(e){return typeof e=="function"?e:e==null?P1:typeof e=="object"?pt(e)?A1(e[0],e[1]):l1(e):k1(e)}function T1(e,t){return function(r,n){var a=pt(r)?Yy:n1,s={};return a(r,e,I1(n),s)}}var vn=T1(function(e,t,r){qy(e,r,t)}),O1=0;function E1(e){var t=++O1;return fu(e)+t}const fs=[{id:"0.1",mm:.1,degrees:.05},{id:"1",mm:1,degrees:.5},{id:"5",mm:5,degrees:2.5},{id:"10",mm:10,degrees:5}],L1=[{id:"continuous"},...fs];class Us{constructor(t,r,n,a){var s,i;this.jogger=t,this.motionGroupSpec=r,this.coordSystems=n,this.tcps=a,this.selectedTabId="cartesian",this.manualActivationRequired=!0,this.activationState="inactive",this.activationError=null,this.activationCounter=0,this.locks=new Set,this.selectedCoordSystemId="world",this.selectedTcpId="",this.selectedOrientation="coordsys",this.selectedIncrementId="continuous",this.selectedCartesianMotionType="translate",this.incrementJoggingInProgress=!1,this.translationVelocityMmPerSec=10,this.rotationVelocityDegPerSec=1,this.minTranslationVelocityMmPerSec=5,this.maxTranslationVelocityMmPerSec=250,this.minRotationVelocityDegPerSec=1,this.maxRotationVelocityDegPerSec=60,this.disposers=[];for(const l of n)if(l.coordinate_system===""){l.coordinate_system="world";break}this.selectedCoordSystemId=((s=n[0])==null?void 0:s.coordinate_system)||"world",this.selectedTcpId=((i=a[0])==null?void 0:i.id)||"",mt.makeAutoObservable(this,{},{autoBind:!0}),this.loadFromLocalStorage(),this.disposers.push(mt.autorun(()=>this.saveToLocalStorage())),window.joggingStore=this}static async loadFor(t){const{nova:r}=t,[n,{coordinatesystems:a},{tcps:s}]=await Promise.all([r.api.motionGroupInfos.getMotionGroupSpecification(t.motionGroupId),r.api.coordinateSystems.listCoordinateSystems("ROTATION_VECTOR"),r.api.motionGroupInfos.listTcps(t.motionGroupId,"ROTATION_VECTOR")]);return new Us(t,n,a||[],s||[])}dispose(){for(const t of this.disposers)t();this.jogger.dispose()}get coordSystemCountByName(){return Kn.countBy(this.coordSystems,t=>t.name)}async deactivate(t={}){if(this.activationState==="inactive")return;const r=this.jogger.activeWebsocket;this.activationState="inactive",this.jogger.setJoggingMode("increment"),r&&await r.closed();try{await this.jogger.nova.api.motionGroupJogging.stopJogging(this.jogger.motionGroupId)}catch(n){console.error(n)}t.requireManualReactivation&&mt.runInAction(()=>{this.manualActivationRequired=!0})}async activate(t={}){if(!(this.manualActivationRequired&&!t.manual)){mt.runInAction(()=>{this.activationState="loading",this.activationError=null});try{await this.jogger.nova.api.controller.setDefaultMode(this.jogger.motionStream.controllerId,"MODE_CONTROL")}catch(r){console.error(r)}if(this.currentTab.id==="cartesian"){const r={tcpId:this.selectedTcpId,coordSystemId:this.activeCoordSystemId};this.activeDiscreteIncrement?this.jogger.setJoggingMode("increment",r):this.jogger.setJoggingMode("cartesian",r)}else this.jogger.setJoggingMode("joint");if(this.jogger.activeWebsocket)try{this.jogger.stop(),await this.jogger.activeWebsocket.nextMessage()}catch(r){mt.runInAction(()=>{this.activationState="inactive",this.activationError=r});return}mt.runInAction(()=>{this.activationState="active",t.manual&&(this.manualActivationRequired=!1)})}}loadFromLocalStorage(){const t=Lt.tryParseJson(localStorage.getItem("joggingToolStore"));t&&(this.tabsById[t.selectedTabId]&&(this.selectedTabId=t.selectedTabId),this.coordSystemsById[t.selectedCoordSystemId]&&(this.selectedCoordSystemId=t.selectedCoordSystemId),this.tcpsById[t.selectedTcpId]&&(this.selectedTcpId=t.selectedTcpId),this.incrementOptionsById[t.selectedIncrementId]&&(this.selectedIncrementId=t.selectedIncrementId),["translate","rotate"].includes(t.selectedCartesianMotionType)&&(this.selectedCartesianMotionType=t.selectedCartesianMotionType),["coordsys","tool"].includes(t.selectedOrientation)&&(this.selectedOrientation=t.selectedOrientation))}saveToLocalStorage(){localStorage.setItem("joggingToolStore",JSON.stringify(this.localStorageSave))}get isLocked(){return this.locks.size>0}get localStorageSave(){return{selectedTabId:this.selectedTabId,selectedCoordSystemId:this.selectedCoordSystemId,selectedTcpId:this.selectedTcpId,selectedOrientation:this.selectedOrientation,selectedIncrementId:this.selectedIncrementId,selectedCartesianMotionType:this.selectedCartesianMotionType}}get tabs(){return[{id:"cartesian",label:"Cartesian"},{id:"joint",label:"Joint"}]}get incrementOptions(){return L1}get discreteIncrementOptions(){return fs}get incrementOptionsById(){return vn(this.incrementOptions,t=>t.id)}get tabsById(){return vn(this.tabs,t=>t.id)}get currentTab(){return this.tabsById[this.selectedTabId]||this.tabs[0]}get tabIndex(){return this.tabs.indexOf(this.currentTab)}get coordSystemsById(){return vn(this.coordSystems,t=>t.coordinate_system)}get selectedCoordSystem(){return this.coordSystemsById[this.selectedCoordSystemId]}get activeCoordSystemId(){return this.selectedOrientation==="tool"?"tool":this.selectedCoordSystemId}get tcpsById(){return vn(this.tcps,t=>t.id)}get activeDiscreteIncrement(){return this.selectedOrientation==="tool"?void 0:fs.find(t=>t.id===this.selectedIncrementId)}get rotationVelocityRadsPerSec(){return this.rotationVelocityDegPerSec*Math.PI/180}get velocityInCurrentUnits(){return this.currentMotionType==="translate"?this.translationVelocityMmPerSec:this.rotationVelocityDegPerSec}get minVelocityInCurrentUnits(){return this.currentMotionType==="translate"?this.minTranslationVelocityMmPerSec:this.minRotationVelocityDegPerSec}get maxVelocityInCurrentUnits(){return this.currentMotionType==="translate"?this.maxTranslationVelocityMmPerSec:this.maxRotationVelocityDegPerSec}get currentMotionType(){return this.selectedTabId==="cartesian"&&this.selectedCartesianMotionType==="translate"?"translate":"rotate"}onTabChange(t,r){const n=this.tabs[r]||this.tabs[0];this.selectedTabId=n.id}setSelectedCoordSystemId(t){this.selectedCoordSystemId=t}setSelectedTcpId(t){this.selectedTcpId=t}setSelectedOrientation(t){this.selectedOrientation=t}setSelectedIncrementId(t){this.selectedIncrementId=t}setIncrementJoggingInProgress(t){this.incrementJoggingInProgress=t}setVelocityFromSlider(t){this.currentMotionType==="translate"?this.translationVelocityMmPerSec=t:this.rotationVelocityDegPerSec=t}setSelectedCartesianMotionType(t){this.selectedCartesianMotionType=t}async withMotionLock(t){const r=E1();this.locks.add(r);try{return await t()}finally{this.locks.delete(r)}}}const N1=sn(Te.observer(e=>{const t=Kn.isString(e.nova)?new Lt.NovaClient({instanceUrl:e.nova}):e.nova,r=Te.useLocalObservable(()=>({joggingStore:null,loadingError:null}));async function n(){mt.runInAction(()=>{r.loadingError=null,r.joggingStore=null});try{const a=await t.connectJogger(e.motionGroupId),s=await Us.loadFor(a);mt.runInAction(()=>{r.joggingStore=s}),e.onSetup&&e.onSetup(s)}catch(a){r.loadingError=a}}return Y.useEffect(()=>(n(),()=>{var a;(a=r.joggingStore)==null||a.dispose()}),[e.nova,e.motionGroupId]),Y.useEffect(()=>{const a=r.joggingStore;a&&(e.locked?a.locks.add("external"):a.locks.delete("external"))},[e.locked]),o.jsx(T.Stack,{sx:{maxWidth:"460px",minWidth:"350px",overflowY:"auto",position:"relative",height:"100%"},children:r.joggingStore?o.jsx($1,{store:r.joggingStore,children:e.children}):o.jsx(ha,{message:"Loading jogging",error:r.loadingError})})})),$1=Te.observer(({store:e,children:t})=>{Y.useEffect(()=>{function n(){e.deactivate()}function a(){e.activate()}return window.addEventListener("blur",n),window.addEventListener("focus",a),()=>{window.removeEventListener("blur",n),window.removeEventListener("focus",a)}}),ks(()=>[e.currentTab.id,e.selectedTcpId,e.activeCoordSystemId,e.activeDiscreteIncrement],()=>{e.activationState!=="inactive"&&e.activate()});function r(){if(e.currentTab.id==="cartesian")return o.jsx(o.Fragment,{children:o.jsx(Wy,{store:e,children:t})});if(e.currentTab.id==="joint")return o.jsx(o.Fragment,{children:o.jsx(Xy,{store:e,children:t})})}return o.jsxs(T.Stack,{flexGrow:1,height:"100%",children:[o.jsx(T.Tabs,{value:e.tabIndex,onChange:e.onTabChange,variant:"fullWidth",children:e.tabs.map(n=>o.jsx(T.Tab,{label:n.label,id:`jogging-tab-${n.id}`,"aria-controls":`jogging-tab-${n.id}`},n.id))}),o.jsx(T.Stack,{flexGrow:1,position:"relative",children:r()})]})});function F1(){const e=window.location.href;return e.substring(0,e.indexOf("/",e.indexOf("//")+2))}function D1({baseUrl:e=F1(),...t}){return o.jsxs(T.Dialog,{"aria-labelledby":"no-motion-group-modal-title",open:!0,fullWidth:!0,sx:{"& .MuiModal-backdrop":{backdropFilter:"blur(10px)"},"& .MuiDialog-paper":{"::before":{content:'""',height:"8px",width:"100%",background:"linear-gradient(90deg, #FF0E65 0%, #47D3FF 100%)"},background:"#101629"}},children:[o.jsx(T.DialogTitle,{id:"no-motion-group-modal-title",children:"No motion group found"}),o.jsxs(T.DialogContent,{sx:{marginTop:"3rem",marginBottom:"1.5rem",textAlign:"center"},children:[o.jsx(T.Typography,{color:"#fff",children:"Found no devices to connect to."}),o.jsx(T.Typography,{color:"#fff",children:"Please ensure a motion group has been created."})]}),o.jsx(T.DialogActions,{children:o.jsxs(T.Stack,{width:"100%",maxWidth:"300px",margin:"auto",marginBottom:"2rem",children:[o.jsx(T.Button,{href:`${e}/settings`,variant:"contained",sx:{borderRadius:"8px",width:"100%"},children:"Go to settings app"}),o.jsx(T.Button,{href:`${e}`,variant:"text",sx:{marginTop:"1rem",color:"#fff",textDecoration:"underline",fontSize:"0.75rem"},children:"Back to Homescreen"})]})})]})}const B1=Array(6).fill(2*Math.PI);pu.config={rotationOffsets:[0,-Math.PI/2,0,0,0,0]};function pu({modelURL:e,flangeRef:t,...r}){const n=z.useGLTF(e),a=n.nodes,s=n.materials;return o.jsx("group",{...r,dispose:null,children:o.jsxs("group",{name:"Empty",children:[o.jsxs("group",{name:"visuals",children:[o.jsx("mesh",{name:"visuals_1",geometry:a.visuals_1.geometry,material:s.abb_metal_polished}),o.jsx("mesh",{name:"visuals_2",geometry:a.visuals_2.geometry,material:s.abb_white})]}),o.jsxs(x.animated.group,{name:"ABB_IRB1200_J00",children:[o.jsxs("group",{name:"ABB_IRB1200_J01",position:[0,.399,0],rotation:[-Math.PI/2,-Math.PI/2,0],children:[o.jsxs(x.animated.group,{name:"ABB_IRB1200_J02",position:[.35,0,0],children:[o.jsxs(x.animated.group,{name:"ABB_IRB1200_J03",position:[.042,0,0],rotation:[-Math.PI/2,0,0],children:[o.jsxs(x.animated.group,{name:"ABB_IRB1200_J04",position:[0,.351,0],rotation:[Math.PI/2,0,0],children:[o.jsxs(x.animated.group,{name:"ABB_IRB1200_J05",rotation:[Math.PI/2,0,-Math.PI],children:[o.jsx("group",{ref:t,name:"ABB_IRB1200_FLG",position:[0,.082,0]}),o.jsx("mesh",{name:"visuals006",geometry:a.visuals006.geometry,material:s.abb_metal_black,position:[.791,-.351,0],rotation:[0,0,Math.PI/2]})]}),o.jsxs("group",{name:"visuals005",position:[-.791,0,.351],rotation:[Math.PI/2,0,-Math.PI/2],children:[o.jsx("mesh",{name:"visuals005_1",geometry:a.visuals005_1.geometry,material:s.abb_metal_polished}),o.jsx("mesh",{name:"visuals005_2",geometry:a.visuals005_2.geometry,material:s.abb_white})]})]}),o.jsxs("group",{name:"visuals004",position:[-.791,0,0],rotation:[-Math.PI,0,-Math.PI/2],children:[o.jsx("mesh",{name:"visuals004_1",geometry:a.visuals004_1.geometry,material:s.abb_metal_polished}),o.jsx("mesh",{name:"visuals004_2",geometry:a.visuals004_2.geometry,material:s.abb_white}),o.jsx("mesh",{name:"visuals004_3",geometry:a.visuals004_3.geometry,material:s.abb_red})]})]}),o.jsxs("group",{name:"visuals003",position:[-.749,0,0],rotation:[Math.PI/2,0,-Math.PI/2],children:[o.jsx("mesh",{name:"visuals003_1",geometry:a.visuals003_1.geometry,material:s.abb_white}),o.jsx("mesh",{name:"visuals003_2",geometry:a.visuals003_2.geometry,material:s.abb_red}),o.jsx("mesh",{name:"visuals003_3",geometry:a.visuals003_3.geometry,material:s.abb_metal_polished})]})]}),o.jsxs("group",{name:"visuals002",position:[-.399,0,0],rotation:[Math.PI/2,0,-Math.PI/2],children:[o.jsx("mesh",{name:"visuals002_1",geometry:a.visuals002_1.geometry,material:s.abb_white}),o.jsx("mesh",{name:"visuals002_2",geometry:a.visuals002_2.geometry,material:s.abb_metal_polished})]})]}),o.jsxs("group",{name:"visuals001",children:[o.jsx("mesh",{name:"visuals001_1",geometry:a.visuals001_1.geometry,material:s.abb_white}),o.jsx("mesh",{name:"visuals001_2",geometry:a.visuals001_2.geometry,material:s.abb_metal_polished})]})]})]})})}_u.config={rotationOffsets:[0,-Math.PI/2,0,0,0,0]};function _u({modelURL:e,flangeRef:t,...r}){const n=z.useGLTF(e),a=n.nodes,s=n.materials;return o.jsx("group",{...r,dispose:null,children:o.jsxs("group",{name:"Scene",children:[o.jsxs("group",{name:"link_0",children:[o.jsx("mesh",{name:"visuals_0",geometry:a.visuals_0.geometry,material:s.abb_metal_black}),o.jsx("mesh",{name:"visuals_0_1",geometry:a.visuals_0_1.geometry,material:s.abb_white}),o.jsx("mesh",{name:"visuals_0_2",geometry:a.visuals_0_2.geometry,material:s.abb_metal_polished}),o.jsx("mesh",{name:"visuals_0_3",geometry:a.visuals_0_3.geometry,material:s.abb_red})]}),o.jsxs(x.animated.group,{name:"ABB_IRB1300_115_10_J00",children:[o.jsxs(x.animated.group,{name:"ABB_IRB1300_115_10_J01",position:[.15,.544,0],rotation:[-Math.PI/2,-Math.PI/2,0],children:[o.jsxs(x.animated.group,{name:"ABB_IRB1300_115_10_J02",position:[.575,0,0],children:[o.jsxs(x.animated.group,{name:"ABB_IRB1300_115_10_J03",position:[.04,0,0],rotation:[-Math.PI/2,0,0],children:[o.jsxs(x.animated.group,{name:"ABB_IRB1300_115_10_J04",position:[0,.425,0],rotation:[Math.PI/2,0,0],children:[o.jsxs(x.animated.group,{name:"ABB_IRB1300_115_10_J05",rotation:[Math.PI/2,0,-Math.PI],children:[o.jsx("group",{ref:t,name:"ABB_IRB1300_115_10_FLG",position:[0,.092,0]}),o.jsx("mesh",{name:"link_6",geometry:a.link_6.geometry,material:s.abb_metal_polished,position:[1.159,-.575,0],rotation:[0,0,Math.PI/2]})]}),o.jsxs("group",{name:"link_5",position:[-1.159,0,.575],rotation:[Math.PI/2,0,-Math.PI/2],children:[o.jsx("mesh",{name:"visuals_5",geometry:a.visuals_5.geometry,material:s.abb_white}),o.jsx("mesh",{name:"visuals_5_1",geometry:a.visuals_5_1.geometry,material:s.abb_metal_black})]})]}),o.jsxs("group",{name:"link_4",position:[-1.159,-.15,0],rotation:[-Math.PI,0,-Math.PI/2],children:[o.jsx("mesh",{name:"visuals_4",geometry:a.visuals_4.geometry,material:s.abb_metal_polished}),o.jsx("mesh",{name:"visuals_4_1",geometry:a.visuals_4_1.geometry,material:s.abb_white}),o.jsx("mesh",{name:"visuals_4_2",geometry:a.visuals_4_2.geometry,material:s.abb_red}),o.jsx("mesh",{name:"visuals_4_3",geometry:a.visuals_4_3.geometry,material:s.abb_metal_black})]})]}),o.jsxs("group",{name:"link_3",position:[-1.119,0,.15],rotation:[Math.PI/2,0,-Math.PI/2],children:[o.jsx("mesh",{name:"visuals_3",geometry:a.visuals_3.geometry,material:s.abb_white}),o.jsx("mesh",{name:"visuals_3_1",geometry:a.visuals_3_1.geometry,material:s.abb_red}),o.jsx("mesh",{name:"visuals_3_2",geometry:a.visuals_3_2.geometry,material:s.abb_metal_black})]})]}),o.jsxs("group",{name:"link_2",position:[-.544,0,.15],rotation:[Math.PI/2,0,-Math.PI/2],children:[o.jsx("mesh",{name:"visuals_2",geometry:a.visuals_2.geometry,material:s.abb_white}),o.jsx("mesh",{name:"visuals_2_1",geometry:a.visuals_2_1.geometry,material:s.abb_metal_black})]})]}),o.jsxs("group",{name:"link_1",children:[o.jsx("mesh",{name:"visuals_1",geometry:a.visuals_1.geometry,material:s.abb_white}),o.jsx("mesh",{name:"visuals_1_1",geometry:a.visuals_1_1.geometry,material:s.abb_metal_black})]})]})]})})}yu.config={rotationOffsets:[0,Math.PI/2,0,0,0,0]};function yu({modelURL:e,flangeRef:t,...r}){const n=z.useGLTF(e),a=n.nodes,s=n.materials;return o.jsx(o.Fragment,{children:o.jsx("group",{...r,dispose:null,children:o.jsx("group",{name:"Scene",children:o.jsxs("group",{name:"M10iD",rotation:[Math.PI/2,0,0],children:[o.jsxs(x.animated.group,{name:"M10iD_J01",rotation:[-Math.PI/2,0,0],children:[o.jsxs(x.animated.group,{name:"M10iD_J02",position:[.075,0,0],rotation:[Math.PI/2,Math.PI/2,0],children:[o.jsxs(x.animated.group,{name:"M10iD_J03",position:[.64,0,0],children:[o.jsxs(x.animated.group,{name:"M10iD_J04",position:[.195,0,0],rotation:[-Math.PI/2,0,0],children:[o.jsxs(x.animated.group,{name:"M10iD_J05",position:[0,-.7,0],rotation:[Math.PI/2,0,0],children:[o.jsxs(x.animated.group,{name:"M10iD_J06",rotation:[-Math.PI/2,0,0],children:[o.jsx("group",{ref:t,name:"M10iD_FLG",position:[0,-.075,0],rotation:[-Math.PI,0,0]}),o.jsx("mesh",{name:"M10iD_L06",geometry:a.M10iD_L06.geometry,material:s.Fanuc_BlackMetal_AO,position:[-.835,.775,0],rotation:[0,0,-Math.PI/2]})]}),o.jsx("mesh",{name:"M10iD_L05",geometry:a.M10iD_L05.geometry,material:s.Fanuc_BlackMetal_AO,position:[-.835,0,-.775],rotation:[-Math.PI/2,0,-Math.PI/2]})]}),o.jsxs("group",{name:"M10iD_L04",position:[-.835,.075,0],rotation:[0,0,-Math.PI/2],children:[o.jsx("mesh",{name:"Mesh_654",geometry:a.Mesh_654.geometry,material:s.Fanuc_Yellow_Textured_AO}),o.jsx("mesh",{name:"Mesh_654_1",geometry:a.Mesh_654_1.geometry,material:s.Fanuc_BlackMetal_AO})]})]}),o.jsxs("group",{name:"M10iD_L03",position:[-.64,0,-.075],rotation:[-Math.PI/2,0,-Math.PI/2],children:[o.jsx("mesh",{name:"Mesh_378",geometry:a.Mesh_378.geometry,material:s.Material_1_AO}),o.jsx("mesh",{name:"Mesh_378_1",geometry:a.Mesh_378_1.geometry,material:s.Fanuc_Yellow_Textured_AO}),o.jsx("mesh",{name:"Mesh_378_2",geometry:a.Mesh_378_2.geometry,material:s.Fanuc_BlackMetal_AO})]})]}),o.jsxs("group",{name:"M10iD_L02",position:[0,0,-.075],rotation:[-Math.PI/2,0,-Math.PI/2],children:[o.jsx("mesh",{name:"Mesh_358",geometry:a.Mesh_358.geometry,material:s.Fanuc_Yellow_Textured_AO}),o.jsx("mesh",{name:"Mesh_358_1",geometry:a.Mesh_358_1.geometry,material:s.Fanuc_BlackMetal_AO})]})]}),o.jsxs("group",{name:"M10iD_L01",children:[o.jsx("mesh",{name:"Mesh_356",geometry:a.Mesh_356.geometry,material:s.Fanuc_Yellow_Textured_AO}),o.jsx("mesh",{name:"Mesh_356_1",geometry:a.Mesh_356_1.geometry,material:s.Material_1_AO}),o.jsx("mesh",{name:"Mesh_356_2",geometry:a.Mesh_356_2.geometry,material:s.Fanuc_BlackMetal_AO})]})]}),o.jsx("mesh",{name:"M10iD_L00",geometry:a.M10iD_L00.geometry,material:s.Fanuc_BlackMetal_AO,rotation:[-Math.PI/2,0,0]})]})})})})}hs.config={rotationOffsets:[0,Math.PI/2,0,0,0,0]};function hs({modelURL:e,flangeRef:t,...r}){const n=z.useGLTF(e),a=n.nodes,s=n.materials;return o.jsx(o.Fragment,{children:o.jsx("group",{...r,dispose:null,children:o.jsx("group",{name:"Scene",children:o.jsxs("group",{name:"M10iD",rotation:[0,0,0],children:[o.jsxs(x.animated.group,{name:"M20iD25_J00",children:[o.jsxs(x.animated.group,{name:"M20iD25_J01",position:[.075,0,0],rotation:[Math.PI/2,Math.PI/2,0],children:[o.jsxs(x.animated.group,{name:"M20iD25_J02",position:[.84,0,0],children:[o.jsxs(x.animated.group,{name:"M20iD25_J03",position:[.215,0,0],rotation:[-Math.PI/2,0,0],children:[o.jsxs(x.animated.group,{name:"M20iD25_J04",position:[0,-.89,0],rotation:[Math.PI/2,0,0],children:[o.jsxs(x.animated.group,{name:"M20iD25_J05",rotation:[-Math.PI/2,0,0],children:[o.jsx("group",{ref:t,name:"M20iD25_FLG",position:[0,-.09,0],rotation:[-Math.PI,0,0]}),o.jsx("mesh",{name:"M20iD25_L06",geometry:a.M20iD25_L06.geometry,material:s.Fanuc_BlackMetal_AO,position:[0,-.09,0],rotation:[Math.PI/2,0,Math.PI]})]}),o.jsx("mesh",{name:"M20iD25_L05",geometry:a.M20iD25_L05.geometry,material:s.Fanuc_BlackMetal_AO,rotation:[Math.PI,Math.PI/2,0]})]}),o.jsxs("group",{name:"M20iD25_L04",position:[0,-.286,0],rotation:[-Math.PI/2,Math.PI/2,0],children:[o.jsx("mesh",{name:"Mesh_2",geometry:a.Mesh_2.geometry,material:s.Fanuc_Yellow_Textured_AO}),o.jsx("mesh",{name:"Mesh_2_1",geometry:a.Mesh_2_1.geometry,material:s.Fanuc_BlackMetal_AO})]})]}),o.jsxs("group",{name:"M20iD25_L03",position:[0,.406,0],rotation:[Math.PI,Math.PI/2,0],children:[o.jsx("mesh",{name:"Mesh_15",geometry:a.Mesh_15.geometry,material:s.Fanuc_BlackMetal_AO}),o.jsx("mesh",{name:"Mesh_15_1",geometry:a.Mesh_15_1.geometry,material:s.Fanuc_Yellow_Textured_AO}),o.jsx("mesh",{name:"Mesh_15_2",geometry:a.Mesh_15_2.geometry,material:s.Material_9_AO})]})]}),o.jsxs("group",{name:"M20iD25_L02",position:[0,.505,-.055],rotation:[-Math.PI,Math.PI/2,0],children:[o.jsx("mesh",{name:"Mesh_37",geometry:a.Mesh_37.geometry,material:s.Fanuc_BlackMetal_AO}),o.jsx("mesh",{name:"Mesh_37_1",geometry:a.Mesh_37_1.geometry,material:s.Fanuc_Yellow_Textured_AO})]})]}),o.jsxs("group",{name:"M20iD25_L01",rotation:[-Math.PI/2,0,0],children:[o.jsx("mesh",{name:"Mesh_45",geometry:a.Mesh_45.geometry,material:s.Material_9_AO}),o.jsx("mesh",{name:"Mesh_45_1",geometry:a.Mesh_45_1.geometry,material:s.Fanuc_Yellow_Textured_AO}),o.jsx("mesh",{name:"Mesh_45_2",geometry:a.Mesh_45_2.geometry,material:s.Fanuc_BlackMetal_AO})]})]}),o.jsx("mesh",{name:"M20iD25_L00",geometry:a.M20iD25_L00.geometry,material:s.Fanuc_BlackMetal_AO,position:[0,-.425,0],rotation:[-Math.PI/2,0,0]})]})})})})}bu.config={rotationOffsets:[0,Math.PI/2,0,0,0,0]};function bu({modelURL:e,flangeRef:t,...r}){const n=z.useGLTF(e),a=n.nodes,s=n.materials;return o.jsx(o.Fragment,{children:o.jsx("group",{...r,dispose:null,children:o.jsxs("group",{name:"Scene",children:[o.jsxs(x.animated.group,{name:"CRX10iA_J00",children:[o.jsxs(x.animated.group,{name:"CRX10iA_J01",rotation:[Math.PI/2,Math.PI/2,0],children:[o.jsxs(x.animated.group,{name:"CRX10iA_J02",position:[.54,0,0],children:[o.jsxs(x.animated.group,{name:"CRX10iA_J03",rotation:[-Math.PI/2,0,0],children:[o.jsxs(x.animated.group,{name:"CRX10iA_J04",position:[0,-.54,0],rotation:[Math.PI/2,0,0],children:[o.jsxs(x.animated.group,{name:"CRX10iA_J05",position:[0,.15,0],rotation:[-Math.PI/2,0,0],children:[o.jsx("group",{ref:t,name:"CRX10iA_FLG",position:[0,-.16,0],rotation:[-Math.PI,0,0]}),o.jsx("mesh",{name:"CRX10iA_L06",geometry:a.CRX10iA_L06.geometry,material:s.Fanuc_BlackMetal,position:[0,-.16,0],rotation:[0,0,-Math.PI/2]})]}),o.jsxs("group",{name:"CRX10iA_L05",position:[0,.15,0],rotation:[-Math.PI/2,0,-Math.PI/2],children:[o.jsx("mesh",{name:"J5CASING_UNIT001",geometry:a.J5CASING_UNIT001.geometry,material:s.Fanuc_WhitePlastic}),o.jsx("mesh",{name:"J5CASING_UNIT001_1",geometry:a.J5CASING_UNIT001_1.geometry,material:s.Fanuc_Green})]})]}),o.jsxs("group",{name:"CRX10iA_L04",position:[0,-.54,0],rotation:[0,0,-Math.PI/2],children:[o.jsx("mesh",{name:"NAME_LABEL_CRX_10iA",geometry:a.NAME_LABEL_CRX_10iA.geometry,material:s.Fanuc_RedPlastic}),o.jsx("mesh",{name:"NAME_LABEL_CRX_10iA_1",geometry:a.NAME_LABEL_CRX_10iA_1.geometry,material:s.Fanuc_BlackPlastic}),o.jsx("mesh",{name:"NAME_LABEL_CRX_10iA_2",geometry:a.NAME_LABEL_CRX_10iA_2.geometry,material:s.Fanuc_WhitePlastic})]})]}),o.jsx("mesh",{name:"CRX10iA_L03",geometry:a.CRX10iA_L03.geometry,material:s.Fanuc_WhitePlastic,rotation:[-Math.PI/2,0,-Math.PI/2]})]}),o.jsx("mesh",{name:"CRX10iA_L02",geometry:a.CRX10iA_L02.geometry,material:s.Fanuc_WhitePlastic,rotation:[-Math.PI/2,0,-Math.PI/2]})]}),o.jsxs("group",{name:"CRX10iA_L01",position:[0,-.117,0],children:[o.jsx("mesh",{name:"J2BASE_UNIT001",geometry:a.J2BASE_UNIT001.geometry,material:s.Fanuc_Green}),o.jsx("mesh",{name:"J2BASE_UNIT001_1",geometry:a.J2BASE_UNIT001_1.geometry,material:s.Fanuc_WhitePlastic}),o.jsx("mesh",{name:"J2BASE_UNIT001_2",geometry:a.J2BASE_UNIT001_2.geometry,material:s.Fanuc_GreenLED})]})]}),o.jsx("mesh",{name:"CRX10iA_L00",geometry:a.CRX10iA_L00.geometry,material:s.Fanuc_BlackMetal,position:[0,-.245,0]})]})})})}xu.config={rotationOffsets:[0,Math.PI/2,0,0,0,0]};function xu({modelURL:e,flangeRef:t,...r}){const n=z.useGLTF(e),a=n.nodes,s=n.materials;return o.jsx(o.Fragment,{children:o.jsx("group",{...r,dispose:null,children:o.jsxs("group",{name:"Scene",children:[o.jsx("mesh",{name:"link_0",geometry:a.link_0.geometry,material:s.fanuc_metal_black}),o.jsxs(x.animated.group,{name:"FANUC_CRX20iAL_J00",position:[0,-.245,0],children:[o.jsxs(x.animated.group,{name:"FANUC_CRX20iAL_J01",position:[0,.245,0],rotation:[Math.PI/2,Math.PI/2,0],children:[o.jsxs(x.animated.group,{name:"FANUC_CRX20iAL_J02",position:[.71,0,0],children:[o.jsxs(x.animated.group,{name:"FANUC_CRX20iAL_J03",rotation:[-Math.PI/2,0,0],children:[o.jsxs(x.animated.group,{name:"FANUC_CRX20iAL_J04",position:[0,-.54,0],rotation:[Math.PI/2,0,0],children:[o.jsxs(x.animated.group,{name:"FANUC_CRX20iAL_J05",position:[0,.15,0],rotation:[-Math.PI/2,0,0],children:[o.jsx(x.animated.group,{ref:t,name:"FANUC_CRX20iAL_FLG",position:[0,-.16,0],rotation:[-Math.PI,0,0]}),o.jsx("mesh",{name:"link_6",geometry:a.link_6.geometry,material:s.fanuc_metal_black,position:[-.71,.54,-.15],rotation:[0,0,-Math.PI/2]})]}),o.jsxs(x.animated.group,{name:"link_5",position:[-.71,0,-.54],rotation:[-Math.PI/2,0,-Math.PI/2],children:[o.jsx("mesh",{name:"shape053",geometry:a.shape053.geometry,material:s.fanuc_white}),o.jsx("mesh",{name:"shape053_1",geometry:a.shape053_1.geometry,material:s.fanuc_green})]})]}),o.jsxs(x.animated.group,{name:"link_4",position:[-.71,0,0],rotation:[0,0,-Math.PI/2],children:[o.jsx("mesh",{name:"shape054",geometry:a.shape054.geometry,material:s.fanuc_white}),o.jsx("mesh",{name:"shape054_1",geometry:a.shape054_1.geometry,material:s.fanuc_red}),o.jsx("mesh",{name:"shape054_2",geometry:a.shape054_2.geometry,material:s.fanuc_metal_black})]})]}),o.jsxs(x.animated.group,{name:"link_3",position:[-.71,0,0],rotation:[-Math.PI/2,0,-Math.PI/2],children:[o.jsx("mesh",{name:"shape009",geometry:a.shape009.geometry,material:s.fanuc_green}),o.jsx("mesh",{name:"shape009_1",geometry:a.shape009_1.geometry,material:s.fanuc_white})]})]}),o.jsx("mesh",{name:"link_2",geometry:a.link_2.geometry,material:s.fanuc_white,rotation:[-Math.PI/2,0,-Math.PI/2]})]}),o.jsxs("group",{name:"link_1",position:[0,.245,0],children:[o.jsx("mesh",{name:"shape005",geometry:a.shape005.geometry,material:s.fanuc_white}),o.jsx("mesh",{name:"shape005_1",geometry:a.shape005_1.geometry,material:s.fanuc_green})]})]})]})})})}vu.config={rotationOffsets:[0,Math.PI/2,0,0,0,0]};function vu({modelURL:e,flangeRef:t,...r}){const n=z.useGLTF(e),a=n.nodes,s=n.materials;return o.jsx(o.Fragment,{children:o.jsx("group",{...r,dispose:null,children:o.jsxs("group",{name:"Scene",position:[0,-.37,0],children:[o.jsxs("group",{name:"CRX25iA_L00",children:[o.jsx("mesh",{name:"J1BASE_NetGen_Coarse",geometry:a.J1BASE_NetGen_Coarse.geometry,material:s.Fanuc_BlackMetal}),o.jsx("mesh",{name:"J1BASE_NetGen_Coarse_1",geometry:a.J1BASE_NetGen_Coarse_1.geometry,material:s.Fanuc_GreenPlastic})]}),o.jsxs(x.animated.group,{name:"CRX25iA_J00",children:[o.jsxs(x.animated.group,{name:"CRX25iA_J01",position:[0,.37,0],rotation:[Math.PI/2,Math.PI/2,0],children:[o.jsxs(x.animated.group,{name:"CRX25iA_J02",position:[.95,0,0],children:[o.jsxs(x.animated.group,{name:"CRX25iA_J03",rotation:[-Math.PI/2,0,0],children:[o.jsxs(x.animated.group,{name:"CRX25iA_J04",position:[0,-.75,0],rotation:[Math.PI/2,0,0],children:[o.jsxs(x.animated.group,{name:"CRX25iA_J05",position:[0,.185,0],rotation:[-Math.PI/2,0,0],children:[o.jsx("group",{ref:t,name:"CRX25iA_FLG",position:[0,-.18,0],rotation:[-Math.PI,0,0]}),o.jsx("mesh",{name:"CRX25iA_L06",geometry:a.CRX25iA_L06.geometry,material:s.Fanuc_BlackMetal,position:[0,-.18,0]})]}),o.jsxs("group",{name:"CRX25iA_L05",position:[0,.185,0],children:[o.jsx("mesh",{name:"J6CASING_NetGen_Coarse",geometry:a.J6CASING_NetGen_Coarse.geometry,material:s.Fanuc_WhitePlastic}),o.jsx("mesh",{name:"J6CASING_NetGen_Coarse_1",geometry:a.J6CASING_NetGen_Coarse_1.geometry,material:s.Fanuc_GreenPlastic})]})]}),o.jsxs("group",{name:"CRX25iA_L04",position:[0,-.75,0],children:[o.jsx("mesh",{name:"J3ARM_NetGen_Coarse",geometry:a.J3ARM_NetGen_Coarse.geometry,material:s.Fanuc_WhitePlastic}),o.jsx("mesh",{name:"J3ARM_NetGen_Coarse_1",geometry:a.J3ARM_NetGen_Coarse_1.geometry,material:s.Fanuc_RedPlastic}),o.jsx("mesh",{name:"J3ARM_NetGen_Coarse_2",geometry:a.J3ARM_NetGen_Coarse_2.geometry,material:s.Fanuc_BlackPlastic})]})]}),o.jsxs("group",{name:"CRX25iA_L03",children:[o.jsx("mesh",{name:"J3CASING_NetGen_Coarse",geometry:a.J3CASING_NetGen_Coarse.geometry,material:s.Fanuc_WhitePlastic}),o.jsx("mesh",{name:"J3CASING_NetGen_Coarse_1",geometry:a.J3CASING_NetGen_Coarse_1.geometry,material:s.Fanuc_GreenPlastic})]})]}),o.jsx("mesh",{name:"CRX25iA_L02",geometry:a.CRX25iA_L02.geometry,material:s.Fanuc_WhitePlastic})]}),o.jsxs("group",{name:"CRX25iA_L01",position:[0,.18,0],children:[o.jsx("mesh",{name:"J2BASE_NetGen_Coarse",geometry:a.J2BASE_NetGen_Coarse.geometry,material:s.Fanuc_WhitePlastic}),o.jsx("mesh",{name:"J2BASE_NetGen_Coarse_1",geometry:a.J2BASE_NetGen_Coarse_1.geometry,material:s.Fanuc_GreenLED})]})]})]})})})}ju.config={rotationOffsets:[0,Math.PI/2,0,0,0,0]};function ju({modelURL:e,flangeRef:t,...r}){const n=z.useGLTF(e),a=n.nodes,s=n.materials;return o.jsx(o.Fragment,{children:o.jsx("group",{...r,dispose:null,children:o.jsxs("group",{name:"Scene",children:[o.jsxs(x.animated.group,{name:"CRX10iA_J00",children:[o.jsxs(x.animated.group,{name:"CRX10iA_J01",position:[0,.245,0],rotation:[Math.PI/2,Math.PI/2,0],children:[o.jsxs(x.animated.group,{name:"CRX10iA_J02",position:[.71,0,0],children:[o.jsxs(x.animated.group,{name:"CRX10iA_J03",rotation:[-Math.PI/2,0,0],children:[o.jsxs(x.animated.group,{name:"CRX10iA_J04",position:[0,-.54,0],rotation:[Math.PI/2,0,0],children:[o.jsxs(x.animated.group,{name:"CRX10iA_J05",position:[0,.15,0],rotation:[-Math.PI/2,0,0],children:[o.jsx("group",{ref:t,name:"CRX10iA_FLG",position:[0,-.16,0],rotation:[-Math.PI,0,0]}),o.jsx("mesh",{name:"CRX10iA_L06",geometry:a.CRX10iA_L06.geometry,material:s["Fanuc_BlackMetal.001"],position:[0,-.16,0],rotation:[0,0,-Math.PI/2]})]}),o.jsxs("group",{name:"CRX10iA_L05",position:[0,.15,0],rotation:[-Math.PI/2,0,-Math.PI/2],children:[o.jsx("mesh",{name:"J5CASING_UNIT001",geometry:a.J5CASING_UNIT001.geometry,material:s["Fanuc_WhitePlastic.001"]}),o.jsx("mesh",{name:"J5CASING_UNIT001_1",geometry:a.J5CASING_UNIT001_1.geometry,material:s["Fanuc_Green.001"]})]})]}),o.jsxs("group",{name:"CRX10iA_L04",position:[0,-.54,0],rotation:[0,0,-Math.PI/2],children:[o.jsx("mesh",{name:"NAME_LABEL_CRX_10iA_L001",geometry:a.NAME_LABEL_CRX_10iA_L001.geometry,material:s["Fanuc_WhitePlastic.001"]}),o.jsx("mesh",{name:"NAME_LABEL_CRX_10iA_L001_1",geometry:a.NAME_LABEL_CRX_10iA_L001_1.geometry,material:s["Fanuc_RedPlastic.001"]}),o.jsx("mesh",{name:"NAME_LABEL_CRX_10iA_L001_2",geometry:a.NAME_LABEL_CRX_10iA_L001_2.geometry,material:s["Fanuc_BlackPlastic.001"]})]})]}),o.jsxs("group",{name:"CRX10iA_L03",rotation:[-Math.PI/2,0,-Math.PI/2],children:[o.jsx("mesh",{name:"J3CASING_UNIT001",geometry:a.J3CASING_UNIT001.geometry,material:s["Fanuc_WhitePlastic.001"]}),o.jsx("mesh",{name:"J3CASING_UNIT001_1",geometry:a.J3CASING_UNIT001_1.geometry,material:s["Fanuc_Green.001"]})]})]}),o.jsx("mesh",{name:"CRX10iA_L02",geometry:a.CRX10iA_L02.geometry,material:s["Fanuc_WhitePlastic.001"],rotation:[-Math.PI/2,0,-Math.PI/2]})]}),o.jsxs("group",{name:"CRX10iA_L01",position:[0,.128,0],children:[o.jsx("mesh",{name:"J2BASE_UNIT001",geometry:a.J2BASE_UNIT001.geometry,material:s["Fanuc_WhitePlastic.001"]}),o.jsx("mesh",{name:"J2BASE_UNIT001_1",geometry:a.J2BASE_UNIT001_1.geometry,material:s["Fanuc_Green.001"]}),o.jsx("mesh",{name:"J2BASE_UNIT001_2",geometry:a.J2BASE_UNIT001_2.geometry,material:s["Fanuc_GreenLED.001"]})]})]}),o.jsx("mesh",{name:"CRX10iA_L00",geometry:a.CRX10iA_L00.geometry,material:s["Fanuc_BlackMetal.001"]})]})})})}Su.config={rotationOffsets:[0,Math.PI/2,0,0,0,0]};function Su({modelURL:e,flangeRef:t,...r}){const{nodes:n,materials:a}=z.useGLTF(e);return o.jsx("group",{...r,dispose:null,children:o.jsxs("group",{name:"Empty",children:[o.jsxs("group",{name:"link_0",children:[o.jsx("mesh",{name:"shape002",geometry:n.shape002.geometry,material:a.fanuc_metal_black_AO}),o.jsx("mesh",{name:"shape002_1",geometry:n.shape002_1.geometry,material:a.fanuc_stainless_steel_AO})]}),o.jsxs(x.animated.group,{name:"FANUC_LRMATE-200ID_J00",children:[o.jsxs(x.animated.group,{name:"FANUC_LRMATE-200ID_J01",position:[.05,0,0],rotation:[Math.PI/2,Math.PI/2,0],children:[o.jsxs(x.animated.group,{name:"FANUC_LRMATE-200ID_J02",position:[.33,0,0],children:[o.jsxs(x.animated.group,{name:"FANUC_LRMATE-200ID_J03",position:[.035,0,0],rotation:[-Math.PI/2,0,0],children:[o.jsxs(x.animated.group,{name:"FANUC_LRMATE-200ID_J04",position:[0,-.335,0],rotation:[Math.PI/2,0,0],children:[o.jsxs(x.animated.group,{name:"FANUC_LRMATE-200ID_J05",rotation:[-Math.PI/2,0,0],children:[o.jsx("group",{ref:t,name:"FANUC_LRMATE-200ID_FLG",position:[0,-.08,0],rotation:[-Math.PI,0,0]}),o.jsx("mesh",{name:"link_6",geometry:n.link_6.geometry,material:a.fanuc_metal_black_AO,position:[-.365,.385,0],rotation:[0,0,-Math.PI/2]})]}),o.jsx("mesh",{name:"link_5",geometry:n.link_5.geometry,material:a.fanuc_yellow_AO,position:[-.365,0,-.385],rotation:[-Math.PI/2,0,-Math.PI/2]})]}),o.jsxs("group",{name:"link_4",position:[-.365,.05,0],rotation:[0,0,-Math.PI/2],children:[o.jsx("mesh",{name:"shape010",geometry:n.shape010.geometry,material:a.fanuc_yellow_AO}),o.jsx("mesh",{name:"shape010_1",geometry:n.shape010_1.geometry,material:a.fanuc_aluminium_black_AO})]})]}),o.jsx("mesh",{name:"link_3",geometry:n.link_3.geometry,material:a.fanuc_yellow_AO,position:[-.33,0,-.05],rotation:[-Math.PI/2,0,-Math.PI/2]})]}),o.jsx("mesh",{name:"link_2",geometry:n.link_2.geometry,material:a.fanuc_yellow_AO,position:[0,0,-.05],rotation:[-Math.PI/2,0,-Math.PI/2]})]}),o.jsx("mesh",{name:"link_1",geometry:n.link_1.geometry,material:a.fanuc_yellow_AO})]})]})})}Ru.config={rotationOffsets:[0,Math.PI/2,0,0,0,0]};function Ru({modelURL:e,flangeRef:t,...r}){const{nodes:n,materials:a}=z.useGLTF(e);return o.jsx("group",{...r,dispose:null,children:o.jsxs("group",{name:"Empty",children:[o.jsx("mesh",{name:"link_0",geometry:n.link_0.geometry,material:a.fanuc_metal_black}),o.jsxs(x.animated.group,{name:"FANUC_LRMATE200ID4S_J00",children:[o.jsxs(x.animated.group,{name:"FANUC_LRMATE200ID4S_J01",rotation:[Math.PI/2,Math.PI/2,0],children:[o.jsxs(x.animated.group,{name:"FANUC_LRMATE200ID4S_J02",position:[.26,0,0],children:[o.jsxs(x.animated.group,{name:"FANUC_LRMATE200ID4S_J03",position:[.02,0,0],rotation:[-Math.PI/2,0,0],children:[o.jsxs(x.animated.group,{name:"FANUC_LRMATE200ID4S_J04",position:[0,-.29,0],rotation:[Math.PI/2,0,0],children:[o.jsxs(x.animated.group,{name:"FANUC_LRMATE200ID4S_J05",rotation:[-Math.PI/2,0,0],children:[o.jsx("group",{name:"FANUC_LRMATE200ID4S_FLG",position:[0,-.07,0],rotation:[-Math.PI,0,0]}),o.jsx("mesh",{name:"link_6",geometry:n.link_6.geometry,material:a.fanuc_metal_black,position:[-.28,.29,0],rotation:[0,0,-Math.PI/2]})]}),o.jsx("mesh",{name:"link_5",geometry:n.link_5.geometry,material:a.fanuc_yellow,position:[-.28,0,-.29],rotation:[-Math.PI/2,0,-Math.PI/2]})]}),o.jsxs("group",{name:"link_4",position:[-.28,0,0],rotation:[0,0,-Math.PI/2],children:[o.jsx("mesh",{name:"J3ARM_UNIT",geometry:n.J3ARM_UNIT.geometry,material:a.fanuc_yellow}),o.jsx("mesh",{name:"J3ARM_UNIT_1",geometry:n.J3ARM_UNIT_1.geometry,material:a.fanuc_aluminium_black})]})]}),o.jsx("mesh",{name:"link_3",geometry:n.link_3.geometry,material:a.fanuc_yellow,position:[-.26,0,0],rotation:[-Math.PI/2,0,-Math.PI/2]})]}),o.jsx("mesh",{name:"link_2",geometry:n.link_2.geometry,material:a.fanuc_yellow,rotation:[-Math.PI/2,0,-Math.PI/2]})]}),o.jsx("mesh",{name:"link_1",geometry:n.link_1.geometry,material:a.fanuc_yellow})]})]})})}wu.config={rotationOffsets:[0,Math.PI/2,0,0,0,0]};function wu({modelURL:e,flangeRef:t,...r}){const{nodes:n,materials:a}=z.useGLTF(e);return o.jsx("group",{...r,dispose:null,children:o.jsxs("group",{name:"Scene",children:[o.jsxs("group",{name:"link_0",children:[o.jsx("mesh",{name:"visuals_0",geometry:n.visuals_0.geometry,material:a.fanuc_metal_black}),o.jsx("mesh",{name:"visuals_0_1",geometry:n.visuals_0_1.geometry,material:a.fanuc_metal_black}),o.jsx("mesh",{name:"visuals_0_2",geometry:n.visuals_0_2.geometry,material:a.fanuc_aluminium_black})]}),o.jsxs(x.animated.group,{name:"FANUC_LRMATE200ID7L_J00",children:[o.jsxs(x.animated.group,{name:"FANUC_LRMATE200ID7L_J01",position:[.05,0,0],rotation:[Math.PI/2,Math.PI/2,0],children:[o.jsxs(x.animated.group,{name:"FANUC_LRMATE200ID7L_J02",position:[.44,0,0],children:[o.jsxs(x.animated.group,{name:"FANUC_LRMATE200ID7L_J03",position:[.035,0,0],rotation:[-Math.PI/2,0,0],children:[o.jsxs(x.animated.group,{name:"FANUC_LRMATE200ID7L_J04",position:[0,-.42,0],rotation:[Math.PI/2,0,0],children:[o.jsxs(x.animated.group,{name:"FANUC_LRMATE200ID7L_J05",rotation:[-Math.PI/2,0,0],children:[o.jsx(x.animated.group,{ref:t,name:"FANUC_LRMATE200ID7L_FLG",position:[0,-.08,0],rotation:[-Math.PI,0,0]}),o.jsx("mesh",{name:"link_6",geometry:n.link_6.geometry,material:a.fanuc_metal_black,position:[-.475,.47,0],rotation:[0,0,-Math.PI/2]})]}),o.jsxs("group",{name:"link_5",position:[-.475,0,-.47],rotation:[-Math.PI/2,0,-Math.PI/2],children:[o.jsx("mesh",{name:"visuals_5",geometry:n.visuals_5.geometry,material:a.fanuc_yellow}),o.jsx("mesh",{name:"visuals_5_1",geometry:n.visuals_5_1.geometry,material:a.fanuc_stainless_steel}),o.jsx("mesh",{name:"visuals_5_2",geometry:n.visuals_5_2.geometry,material:a.fanuc_metal_black})]})]}),o.jsxs("group",{name:"link_4",position:[-.475,.05,0],rotation:[0,0,-Math.PI/2],children:[o.jsx("mesh",{name:"visuals_4",geometry:n.visuals_4.geometry,material:a.fanuc_yellow}),o.jsx("mesh",{name:"visuals_4_1",geometry:n.visuals_4_1.geometry,material:a.fanuc_aluminium_black})]})]}),o.jsxs("group",{name:"link_3",position:[-.44,0,-.05],rotation:[-Math.PI/2,0,-Math.PI/2],children:[o.jsx("mesh",{name:"visuals_3",geometry:n.visuals_3.geometry,material:a.fanuc_yellow}),o.jsx("mesh",{name:"visuals_3_1",geometry:n.visuals_3_1.geometry,material:a.fanuc_stainless_steel})]})]}),o.jsx("mesh",{name:"link_2",geometry:n.link_2.geometry,material:a.fanuc_yellow,position:[0,0,-.05],rotation:[-Math.PI/2,0,-Math.PI/2]})]}),o.jsxs("group",{name:"link_1",children:[o.jsx("mesh",{name:"visuals_1",geometry:n.visuals_1.geometry,material:a.fanuc_yellow}),o.jsx("mesh",{name:"visuals_1_1",geometry:n.visuals_1_1.geometry,material:a.fanuc_stainless_steel})]})]})]})})}Au.config={rotationOffsets:[0,0,-Math.PI/2,0,0,0]};function Au({modelURL:e,flangeRef:t,...r}){const{nodes:n,materials:a}=z.useGLTF(e);return o.jsx(o.Fragment,{children:o.jsx("group",{...r,dispose:null,children:o.jsxs("group",{name:"Scene",children:[o.jsxs("group",{name:"link_0",children:[o.jsx("mesh",{name:"visuals_0",geometry:n.visuals_0.geometry,material:a.material_Material_Metall}),o.jsx("mesh",{name:"visuals_0_1",geometry:n.visuals_0_1.geometry,material:a.material_Material_Farbe__2_}),o.jsx("mesh",{name:"visuals_0_2",geometry:n.visuals_0_2.geometry,material:a.material_Material_Metall})]}),o.jsxs(x.animated.group,{name:"KUKA_KR16R2010_2_J00",children:[o.jsxs(x.animated.group,{name:"KUKA_KR16R2010_2_J01",position:[.16,.52,0],rotation:[-Math.PI/2,0,0],children:[o.jsxs(x.animated.group,{name:"KUKA_KR16R2010_2_J02",position:[.98,0,0],rotation:[0,-Math.PI/2,0],children:[o.jsxs(x.animated.group,{name:"KUKA_KR16R2010_2_J03",position:[.15,0,0],rotation:[Math.PI/2,0,0],children:[o.jsxs(x.animated.group,{name:"KUKA_KR16R2010_2_J04",position:[0,-.86,0],rotation:[-Math.PI/2,0,0],children:[o.jsx(x.animated.group,{ref:t,name:"KUKA_KR16R2010_2_J05",rotation:[-Math.PI/2,0,-Math.PI],children:o.jsx("mesh",{name:"link_6",geometry:n.link_6.geometry,material:a.material_Material_Farbe__2_,position:[.67,2,0],rotation:[-Math.PI,0,Math.PI/2]})}),o.jsx("mesh",{name:"link_5",geometry:n.link_5.geometry,material:a.material_Material_Farbe,position:[-.67,0,2],rotation:[Math.PI/2,0,-Math.PI/2]})]}),o.jsx("mesh",{name:"link_4",geometry:n.link_4.geometry,material:a.material_Material_Farbe,position:[-.67,1.14,0],rotation:[0,0,-Math.PI/2]})]}),o.jsxs("group",{name:"link_3",position:[-.52,0,1.14],rotation:[Math.PI/2,0,-Math.PI/2],children:[o.jsx("mesh",{name:"visuals_3",geometry:n.visuals_3.geometry,material:a.material_Material_Farbe}),o.jsx("mesh",{name:"visuals_3_1",geometry:n.visuals_3_1.geometry,material:a.material_Material_Metall}),o.jsx("mesh",{name:"visuals_3_2",geometry:n.visuals_3_2.geometry,material:a.material_Material_Farbe__2_})]})]}),o.jsxs("group",{name:"link_2",position:[-.16,0,-.52],rotation:[Math.PI/2,0,0],children:[o.jsx("mesh",{name:"visuals_2",geometry:n.visuals_2.geometry,material:a.material_Material_Farbe}),o.jsx("mesh",{name:"visuals_2_1",geometry:n.visuals_2_1.geometry,material:a.material_Material_Metall})]})]}),o.jsxs("group",{name:"link_1",children:[o.jsx("mesh",{name:"visuals_1",geometry:n.visuals_1.geometry,material:a.material_Material_Farbe}),o.jsx("mesh",{name:"visuals_1_1",geometry:n.visuals_1_1.geometry,material:a.material_Material_Farbe__2_}),o.jsx("mesh",{name:"visuals_1_2",geometry:n.visuals_1_2.geometry,material:a.material_Material_Metall})]})]})]})})})}Pu.config={rotationOffsets:[0,0,-Math.PI/2,0,0,0]};function Pu({modelURL:e,flangeRef:t,...r}){const n=z.useGLTF(e),a=n.nodes,s=n.materials;return o.jsx(o.Fragment,{children:o.jsx("group",{...r,dispose:null,children:o.jsx("group",{name:"Scene",children:o.jsxs("group",{name:"kuka_kr210_2700",children:[o.jsxs(x.animated.group,{name:"joint_01",children:[o.jsxs(x.animated.group,{name:"joint_02",position:[.33,.645,0],rotation:[-Math.PI/2,0,0],children:[o.jsxs(x.animated.group,{name:"joint_03",position:[1.15,0,0],rotation:[0,-Math.PI/2,0],children:[o.jsxs(x.animated.group,{name:"joint_04",position:[.115,0,0],rotation:[Math.PI/2,0,0],children:[o.jsxs(x.animated.group,{name:"joint_05",position:[0,-1.22,0],rotation:[-Math.PI/2,0,0],children:[o.jsxs(x.animated.group,{name:"joint_06",rotation:[Math.PI/2,0,0],children:[o.jsx("group",{ref:t,name:"flange",position:[0,-.215,0],rotation:[-Math.PI,0,0]}),o.jsx("group",{name:"link_6",position:[0,-.17,0],rotation:[0,0,-Math.PI/2],children:o.jsx("mesh",{name:"visuals006",geometry:a.visuals006.geometry,material:s.material_Material_Metall_black})})]}),o.jsx("group",{name:"link_5",position:[0,.059,0],rotation:[Math.PI/2,0,-Math.PI/2],children:o.jsxs("group",{name:"visuals005",children:[o.jsx("mesh",{name:"visuals005_1",geometry:a.visuals005_1.geometry,material:s.material_Material_metal_black}),o.jsx("mesh",{name:"visuals005_2",geometry:a.visuals005_2.geometry,material:s.material_Material_kuka_orange})]})})]}),o.jsx("group",{name:"link_4",position:[0,-.869,0],rotation:[0,0,-Math.PI/2],children:o.jsxs("group",{name:"visuals004",children:[o.jsx("mesh",{name:"visuals004_1",geometry:a.visuals004_1.geometry,material:s.material_Material_metal_black}),o.jsx("mesh",{name:"visuals004_2",geometry:a.visuals004_2.geometry,material:s.material_Material_kuka_orange})]})})]}),o.jsx("group",{name:"link_3",position:[0,-.105,0],rotation:[Math.PI/2,0,-Math.PI/2],children:o.jsxs("group",{name:"visuals003",children:[o.jsx("mesh",{name:"visuals003_1",geometry:a.visuals003_1.geometry,material:s.material_Material_rubber}),o.jsx("mesh",{name:"visuals003_2",geometry:a.visuals003_2.geometry,material:s.material_Material_aluminium}),o.jsx("mesh",{name:"visuals003_3",geometry:a.visuals003_3.geometry,material:s.material_Material_metal_black}),o.jsx("mesh",{name:"visuals003_4",geometry:a.visuals003_4.geometry,material:s.material_Material_kuka_black}),o.jsx("mesh",{name:"visuals003_5",geometry:a.visuals003_5.geometry,material:s.material_Material_Rubber_black}),o.jsx("mesh",{name:"visuals003_6",geometry:a.visuals003_6.geometry,material:s.material_Material_kuka_orange}),o.jsx("mesh",{name:"visuals003_7",geometry:a.visuals003_7.geometry,material:s.material_Material_stainless_steel})]})})]}),o.jsx("group",{name:"link_2",position:[0,.009,0],rotation:[Math.PI/2,0,0],children:o.jsxs("group",{name:"visuals002",children:[o.jsx("mesh",{name:"visuals002_1",geometry:a.visuals002_1.geometry,material:s.material_Material_metal_black}),o.jsx("mesh",{name:"visuals002_2",geometry:a.visuals002_2.geometry,material:s.material_Material_Rubber_black}),o.jsx("mesh",{name:"visuals002_3",geometry:a.visuals002_3.geometry,material:s.material_Material_kuka_orange})]})})]}),o.jsx("group",{name:"link_1",position:[0,.236,0],children:o.jsxs("group",{name:"visuals001",children:[o.jsx("mesh",{name:"visuals001_1",geometry:a.visuals001_1.geometry,material:s.material_Material_kuka_black}),o.jsx("mesh",{name:"visuals001_2",geometry:a.visuals001_2.geometry,material:s.material_Material_kuka_orange}),o.jsx("mesh",{name:"visuals001_3",geometry:a.visuals001_3.geometry,material:s.material_Material_rubber}),o.jsx("mesh",{name:"visuals001_4",geometry:a.visuals001_4.geometry,material:s.material_Material_metal_black}),o.jsx("mesh",{name:"visuals001_5",geometry:a.visuals001_5.geometry,material:s.material_Material_aluminium}),o.jsx("mesh",{name:"visuals001_6",geometry:a.visuals001_6.geometry,material:s.material_Material_rubber_black}),o.jsx("mesh",{name:"visuals001_7",geometry:a.visuals001_7.geometry,material:s.material_Material_stainless_steel})]})})]}),o.jsx("group",{name:"link_0",children:o.jsxs("group",{name:"visuals",children:[o.jsx("mesh",{name:"visuals_1",geometry:a.visuals_1.geometry,material:s.material_Material_kuka_black}),o.jsx("mesh",{name:"visuals_2",geometry:a.visuals_2.geometry,material:s.material_Material_metal_black})]})})]})})})})}Cu.config={rotationOffsets:[0,0,-Math.PI/2,0,0,0]};function Cu({modelURL:e,flangeRef:t,...r}){const n=z.useGLTF(e),a=n.nodes,s=n.materials;return o.jsx(o.Fragment,{children:o.jsx("group",{...r,dispose:null,children:o.jsxs("group",{name:"Scene",children:[o.jsxs(x.animated.group,{name:"joint_01",children:[o.jsxs(x.animated.group,{name:"joint_02",position:[.35,.675,0],rotation:[-Math.PI/2,0,0],children:[o.jsxs(x.animated.group,{name:"joint_03",position:[1.15,0,0],rotation:[0,-Math.PI/2,0],children:[o.jsxs(x.animated.group,{name:"joint_04",position:[-.041,0,0],rotation:[Math.PI/2,0,0],children:[o.jsxs(x.animated.group,{name:"joint_05",position:[0,-1.2,0],rotation:[-Math.PI/2,0,0],children:[o.jsxs(x.animated.group,{name:"joint_06",rotation:[Math.PI/2,0,0],children:[o.jsx("group",{ref:t,name:"flange",position:[0,-.24,0],rotation:[-Math.PI,0,0]}),o.jsx("group",{name:"link_6",position:[0,-.213,0],rotation:[0,0,-Math.PI/2],children:o.jsxs("group",{name:"visuals006",children:[o.jsx("mesh",{name:"visuals006_1",geometry:a.visuals006_1.geometry,material:s.material_Material_Farbe__1_}),o.jsx("mesh",{name:"visuals006_2",geometry:a.visuals006_2.geometry,material:s.material_Material_Metall})]})})]}),o.jsx("group",{name:"link_5",position:[0,.044,0],rotation:[Math.PI/2,0,-Math.PI/2],children:o.jsx("mesh",{name:"visuals005",geometry:a.visuals005.geometry,material:s.material_Material_Farbe})})]}),o.jsx("group",{name:"link_4",position:[0,-.954,0],rotation:[0,0,-Math.PI/2],children:o.jsx("mesh",{name:"visuals004",geometry:a.visuals004.geometry,material:s.material_Material_Farbe})})]}),o.jsx("group",{name:"link_3",position:[0,-.178,0],rotation:[Math.PI/2,0,-Math.PI/2],children:o.jsxs("group",{name:"visuals003",children:[o.jsx("mesh",{name:"visuals003_1",geometry:a.visuals003_1.geometry,material:s.material_Material_Farbe__1_}),o.jsx("mesh",{name:"visuals003_2",geometry:a.visuals003_2.geometry,material:s.material_Material_Farbe__2_}),o.jsx("mesh",{name:"visuals003_3",geometry:a.visuals003_3.geometry,material:s.material_Material_Metall}),o.jsx("mesh",{name:"visuals003_4",geometry:a.visuals003_4.geometry,material:s.material_Material_Farbe})]})})]}),o.jsx("group",{name:"link_2",rotation:[Math.PI/2,0,0],children:o.jsxs("group",{name:"visuals002",children:[o.jsx("mesh",{name:"visuals002_1",geometry:a.visuals002_1.geometry,material:s.material_Material_Farbe}),o.jsx("mesh",{name:"visuals002_2",geometry:a.visuals002_2.geometry,material:s.material_Material_Farbe__1_}),o.jsx("mesh",{name:"visuals002_3",geometry:a.visuals002_3.geometry,material:s.material_Material_Metall}),o.jsx("mesh",{name:"visuals002_4",geometry:a.visuals002_4.geometry,material:s.material_Material_Farbe__2_})]})})]}),o.jsx("group",{name:"link_1",position:[0,.226,0],children:o.jsxs("group",{name:"visuals001",children:[o.jsx("mesh",{name:"visuals001_1",geometry:a.visuals001_1.geometry,material:s.material_Material_Metall}),o.jsx("mesh",{name:"visuals001_2",geometry:a.visuals001_2.geometry,material:s.material_Material_Farbe__1_}),o.jsx("mesh",{name:"visuals001_3",geometry:a.visuals001_3.geometry,material:s.material_Material_Farbe__2_}),o.jsx("mesh",{name:"visuals001_4",geometry:a.visuals001_4.geometry,material:s.material_Material_Farbe})]})})]}),o.jsx("group",{name:"link_0-base",children:o.jsxs("group",{name:"visuals",children:[o.jsx("mesh",{name:"visuals_1",geometry:a.visuals_1.geometry,material:s.material_Material_Metall}),o.jsx("mesh",{name:"visuals_2",geometry:a.visuals_2.geometry,material:s.material_Material_Farbe__1_})]})})]})})})}Mu.config={rotationOffsets:[0,0,-Math.PI/2,0,0,0],rotationSign:[-1,1,1,1,1,1]};function Mu({modelURL:e,flangeRef:t,...r}){const{nodes:n,materials:a}=z.useGLTF(e);return o.jsx("group",{...r,dispose:null,children:o.jsxs("group",{name:"Scene",children:[o.jsxs("group",{name:"link_0",children:[o.jsx("mesh",{name:"visuals_0",geometry:n.visuals_0.geometry,material:a.kuka_metal}),o.jsx("mesh",{name:"visuals_0_1",geometry:n.visuals_0_1.geometry,material:a.kuka_black})]}),o.jsxs(x.animated.group,{name:"KUKA_KR6R700-2_J00",children:[o.jsxs(x.animated.group,{name:"KUKA_KR6R700-2_J01",position:[.025,.4,0],rotation:[-Math.PI/2,0,0],children:[o.jsxs(x.animated.group,{name:"KUKA_KR6R700-2_J02",position:[.335,0,0],rotation:[0,-Math.PI/2,0],children:[o.jsxs(x.animated.group,{name:"KUKA_KR6R700-2_J03",position:[.025,0,0],rotation:[Math.PI/2,0,0],children:[o.jsxs(x.animated.group,{name:"KUKA_KR6R700-2_J04",position:[0,-.365,0],rotation:[-Math.PI/2,0,0],children:[o.jsxs(x.animated.group,{name:"KUKA_KR6R700-2_J05",rotation:[-Math.PI/2,0,-Math.PI],children:[o.jsx("group",{ref:t,name:"KUKA_KR6R700-2_FLG",position:[0,-.09,0],rotation:[-Math.PI,0,0]}),o.jsx("mesh",{name:"link_6",geometry:n.link_6.geometry,material:a.kuka_black,position:[.425,.725,0],rotation:[-Math.PI,0,Math.PI/2]})]}),o.jsx("mesh",{name:"link_5",geometry:n.link_5.geometry,material:a.kuka_white,position:[-.425,0,.725],rotation:[Math.PI/2,0,-Math.PI/2]})]}),o.jsxs("group",{name:"link_4",position:[-.425,.36,0],rotation:[0,0,-Math.PI/2],children:[o.jsx("mesh",{name:"visuals_4",geometry:n.visuals_4.geometry,material:a.kuka_white}),o.jsx("mesh",{name:"visuals_4_1",geometry:n.visuals_4_1.geometry,material:a.kuka_orange})]})]}),o.jsx("mesh",{name:"link_3",geometry:n.link_3.geometry,material:a.kuka_white,position:[-.4,0,.36],rotation:[Math.PI/2,0,-Math.PI/2]})]}),o.jsxs("group",{name:"link_2",position:[-.025,0,-.4],rotation:[Math.PI/2,0,0],children:[o.jsx("mesh",{name:"visuals_2",geometry:n.visuals_2.geometry,material:a.kuka_white}),o.jsx("mesh",{name:"visuals_2_1",geometry:n.visuals_2_1.geometry,material:a.kuka_orange})]})]}),o.jsx("mesh",{name:"link_1",geometry:n.link_1.geometry,material:a.kuka_white})]})]})})}function U1({modelURL:e,flangeRef:t,...r}){const n=z.useGLTF(e),a=n.nodes,s=n.materials;return o.jsx("group",{...r,dispose:null,children:o.jsx("group",{name:"Scene",children:o.jsxs(x.animated.group,{name:"UNIVERSALROBOTS_UR10CB_J00",children:[o.jsxs("group",{name:"link_0",children:[o.jsx("mesh",{name:"visuals_0",geometry:a.visuals_0.geometry,material:s.universalrobots_aluminum}),o.jsx("mesh",{name:"visuals_0_1",geometry:a.visuals_0_1.geometry,material:s.universalrobots_aluminum})]}),o.jsxs(x.animated.group,{name:"UNIVERSALROBOTS_UR10CB_J01",position:[0,.127,0],rotation:[Math.PI/2,0,0],children:[o.jsxs("group",{name:"link_1",position:[0,0,.127],rotation:[-Math.PI/2,0,0],children:[o.jsx("mesh",{name:"visuals_1",geometry:a.visuals_1.geometry,material:s.universalrobots_darkgrey}),o.jsx("mesh",{name:"visuals_1_1",geometry:a.visuals_1_1.geometry,material:s.universalrobots_stainlesssteel}),o.jsx("mesh",{name:"visuals_1_2",geometry:a.visuals_1_2.geometry,material:s.universalrobots_stainlesssteel}),o.jsx("mesh",{name:"visuals_1_3",geometry:a.visuals_1_3.geometry,material:s.universalrobots_stainlesssteel}),o.jsx("mesh",{name:"visuals_1_4",geometry:a.visuals_1_4.geometry,material:s.universalrobots_black}),o.jsx("mesh",{name:"visuals_1_5",geometry:a.visuals_1_5.geometry,material:s.universalrobots_lightblue})]}),o.jsxs(x.animated.group,{name:"UNIVERSALROBOTS_UR10CB_J02",position:[-.612,0,0],children:[o.jsxs("group",{name:"link_2",position:[.612,0,.127],rotation:[-Math.PI/2,0,0],children:[o.jsx("mesh",{name:"visuals_2",geometry:a.visuals_2.geometry,material:s.universalrobots_aluminum}),o.jsx("mesh",{name:"visuals_2_1",geometry:a.visuals_2_1.geometry,material:s.universalrobots_stainlesssteel}),o.jsx("mesh",{name:"visuals_2_2",geometry:a.visuals_2_2.geometry,material:s.universalrobots_darkgrey}),o.jsx("mesh",{name:"visuals_2_3",geometry:a.visuals_2_3.geometry,material:s.universalrobots_black}),o.jsx("mesh",{name:"visuals_2_4",geometry:a.visuals_2_4.geometry,material:s.universalrobots_stainlesssteel}),o.jsx("mesh",{name:"visuals_2_5",geometry:a.visuals_2_5.geometry,material:s.universalrobots_lightblue})]}),o.jsxs(x.animated.group,{name:"UNIVERSALROBOTS_UR10CB_J03",position:[-.572,0,0],children:[o.jsxs("group",{name:"link_3",position:[1.184,0,.127],rotation:[-Math.PI/2,0,0],children:[o.jsx("mesh",{name:"visuals_3",geometry:a.visuals_3.geometry,material:s.universalrobots_aluminum}),o.jsx("mesh",{name:"visuals_3_1",geometry:a.visuals_3_1.geometry,material:s.universalrobots_stainlesssteel}),o.jsx("mesh",{name:"visuals_3_2",geometry:a.visuals_3_2.geometry,material:s.universalrobots_darkgrey}),o.jsx("mesh",{name:"visuals_3_3",geometry:a.visuals_3_3.geometry,material:s.universalrobots_black}),o.jsx("mesh",{name:"visuals_3_4",geometry:a.visuals_3_4.geometry,material:s.universalrobots_lightblue})]}),o.jsxs(x.animated.group,{name:"UNIVERSALROBOTS_UR10CB_J04",position:[0,.164,0],rotation:[Math.PI/2,0,0],children:[o.jsxs("group",{name:"link_4",position:[1.184,.127,.164],rotation:[Math.PI,0,0],children:[o.jsx("mesh",{name:"visuals_4",geometry:a.visuals_4.geometry,material:s.universalrobots_darkgrey}),o.jsx("mesh",{name:"visuals_4_1",geometry:a.visuals_4_1.geometry,material:s.universalrobots_stainlesssteel}),o.jsx("mesh",{name:"visuals_4_2",geometry:a.visuals_4_2.geometry,material:s.universalrobots_black}),o.jsx("mesh",{name:"visuals_4_3",geometry:a.visuals_4_3.geometry,material:s.universalrobots_stainlesssteel}),o.jsx("mesh",{name:"visuals_4_4",geometry:a.visuals_4_4.geometry,material:s.universalrobots_lightblue})]}),o.jsxs(x.animated.group,{name:"UNIVERSALROBOTS_UR10CB_J05",position:[0,.116,0],rotation:[-Math.PI/2,0,0],children:[o.jsxs("group",{name:"link_5",position:[1.184,-.164,.012],rotation:[-Math.PI/2,0,0],children:[o.jsx("mesh",{name:"visuals_5",geometry:a.visuals_5.geometry,material:s.universalrobots_darkgrey}),o.jsx("mesh",{name:"visuals_5_1",geometry:a.visuals_5_1.geometry,material:s.universalrobots_stainlesssteel}),o.jsx("mesh",{name:"visuals_5_2",geometry:a.visuals_5_2.geometry,material:s.universalrobots_black}),o.jsx("mesh",{name:"visuals_5_3",geometry:a.visuals_5_3.geometry,material:s.universalrobots_aluminum}),o.jsx("mesh",{name:"visuals_5_4",geometry:a.visuals_5_4.geometry,material:s.universalrobots_lightblue})]}),o.jsx("group",{ref:t,name:"UNIVERSALROBOTS_UR10CB_FLG",position:[0,.116,0],rotation:[-Math.PI/2,0,0],children:o.jsxs("group",{name:"link_6",position:[1.184,-.012,-.28],children:[o.jsx("mesh",{name:"visuals_6",geometry:a.visuals_6.geometry,material:s.universalrobots_aluminum}),o.jsx("mesh",{name:"visuals_6_1",geometry:a.visuals_6_1.geometry,material:s.universalrobots_aluminum})]})})]})]})]})]})]})]})})})}function J1({modelURL:e,flangeRef:t,...r}){const n=z.useGLTF(e),a=n.nodes,s=n.materials;return o.jsx(o.Fragment,{children:o.jsx("group",{...r,dispose:null,children:o.jsxs("group",{name:"Scene",children:[o.jsxs(x.animated.group,{name:"UNIVERSALROBOTS_UR10E_J00",children:[o.jsxs("group",{name:"link_1",children:[o.jsx("mesh",{name:"C-1000488",castShadow:!0,receiveShadow:!0,geometry:a["C-1000488"].geometry,material:s.Black}),o.jsx("mesh",{name:"C-1000488_1",castShadow:!0,receiveShadow:!0,geometry:a["C-1000488_1"].geometry,material:s.Blue}),o.jsx("mesh",{name:"C-1000488_2",castShadow:!0,receiveShadow:!0,geometry:a["C-1000488_2"].geometry,material:s.Screw}),o.jsx("mesh",{name:"C-1000488_3",castShadow:!0,receiveShadow:!0,geometry:a["C-1000488_3"].geometry,material:s.DarkGray})]}),o.jsxs(x.animated.group,{name:"UNIVERSALROBOTS_UR10E_J01",position:[0,.181,0],rotation:[Math.PI/2,0,0],children:[o.jsxs("group",{name:"link_2",position:[0,0,.181],rotation:[-Math.PI/2,0,0],children:[o.jsx("mesh",{name:"C-1000489",castShadow:!0,receiveShadow:!0,geometry:a["C-1000489"].geometry,material:s.Blue}),o.jsx("mesh",{name:"C-1000489_1",castShadow:!0,receiveShadow:!0,geometry:a["C-1000489_1"].geometry,material:s.Black}),o.jsx("mesh",{name:"C-1000489_2",castShadow:!0,receiveShadow:!0,geometry:a["C-1000489_2"].geometry,material:s.DarkGray}),o.jsx("mesh",{name:"C-1000489_3",castShadow:!0,receiveShadow:!0,geometry:a["C-1000489_3"].geometry,material:s.Screw}),o.jsx("mesh",{name:"C-1000489_4",castShadow:!0,receiveShadow:!0,geometry:a["C-1000489_4"].geometry,material:s.Metal})]}),o.jsxs(x.animated.group,{name:"UNIVERSALROBOTS_UR10E_J02",position:[-.613,0,0],children:[o.jsxs("group",{name:"link_3",position:[.613,0,.181],rotation:[-Math.PI/2,0,0],children:[o.jsx("mesh",{name:"C-1000490",castShadow:!0,receiveShadow:!0,geometry:a["C-1000490"].geometry,material:s.Metal}),o.jsx("mesh",{name:"C-1000490_1",castShadow:!0,receiveShadow:!0,geometry:a["C-1000490_1"].geometry,material:s.Black}),o.jsx("mesh",{name:"C-1000490_2",castShadow:!0,receiveShadow:!0,geometry:a["C-1000490_2"].geometry,material:s.DarkGray}),o.jsx("mesh",{name:"C-1000490_3",castShadow:!0,receiveShadow:!0,geometry:a["C-1000490_3"].geometry,material:s.Blue}),o.jsx("mesh",{name:"C-1000490_4",castShadow:!0,receiveShadow:!0,geometry:a["C-1000490_4"].geometry,material:s.Screw})]}),o.jsxs(x.animated.group,{name:"UNIVERSALROBOTS_UR10E_J03",position:[-.572,0,0],children:[o.jsxs("group",{name:"link_4",position:[1.184,0,.181],rotation:[-Math.PI/2,0,0],children:[o.jsx("mesh",{name:"C-1000491",castShadow:!0,receiveShadow:!0,geometry:a["C-1000491"].geometry,material:s.DarkGray}),o.jsx("mesh",{name:"C-1000491_1",castShadow:!0,receiveShadow:!0,geometry:a["C-1000491_1"].geometry,material:s.Blue}),o.jsx("mesh",{name:"C-1000491_2",castShadow:!0,receiveShadow:!0,geometry:a["C-1000491_2"].geometry,material:s.Black}),o.jsx("mesh",{name:"C-1000491_3",castShadow:!0,receiveShadow:!0,geometry:a["C-1000491_3"].geometry,material:s.Screw})]}),o.jsxs(x.animated.group,{name:"UNIVERSALROBOTS_UR10E_J04",position:[0,.174,0],rotation:[Math.PI/2,0,0],children:[o.jsxs("group",{name:"link_5",position:[1.184,.181,.174],rotation:[Math.PI,0,0],children:[o.jsx("mesh",{name:"C-1000492",castShadow:!0,receiveShadow:!0,geometry:a["C-1000492"].geometry,material:s.DarkGray}),o.jsx("mesh",{name:"C-1000492_1",castShadow:!0,receiveShadow:!0,geometry:a["C-1000492_1"].geometry,material:s.Black}),o.jsx("mesh",{name:"C-1000492_2",castShadow:!0,receiveShadow:!0,geometry:a["C-1000492_2"].geometry,material:s.Blue}),o.jsx("mesh",{name:"C-1000492_3",castShadow:!0,receiveShadow:!0,geometry:a["C-1000492_3"].geometry,material:s.Screw})]}),o.jsxs(x.animated.group,{name:"UNIVERSALROBOTS_UR10E_J05",position:[0,.12,0],rotation:[-Math.PI/2,0,0],children:[o.jsxs("group",{name:"link_6",position:[1.184,-.174,.061],rotation:[-Math.PI/2,0,0],children:[o.jsx("mesh",{name:"C-1000493",castShadow:!0,receiveShadow:!0,geometry:a["C-1000493"].geometry,material:s.Black}),o.jsx("mesh",{name:"C-1000493_1",castShadow:!0,receiveShadow:!0,geometry:a["C-1000493_1"].geometry,material:s.Metal})]}),o.jsx("group",{ref:t,name:"UNIVERSALROBOTS_UR10E_FLG",position:[0,.117,0]})]})]})]})]})]})]}),o.jsxs("group",{name:"link_0",children:[o.jsx("mesh",{name:"C-1000487",castShadow:!0,receiveShadow:!0,geometry:a["C-1000487"].geometry,material:s.Black}),o.jsx("mesh",{name:"C-1000487_1",castShadow:!0,receiveShadow:!0,geometry:a["C-1000487_1"].geometry,material:s.Metal})]})]})})})}function V1({modelURL:e,flangeRef:t,...r}){const n=z.useGLTF(e),a=n.nodes,s=n.materials;return o.jsx(o.Fragment,{children:o.jsx("group",{...r,dispose:null,children:o.jsx("group",{name:"Scene",children:o.jsxs("group",{name:"UR3",rotation:[Math.PI/2,0,0],children:[o.jsxs(x.animated.group,{name:"UR3_J01",rotation:[-Math.PI/2,0,0],children:[o.jsxs(x.animated.group,{name:"UR3_J02",position:[0,.152,0],rotation:[Math.PI/2,0,0],children:[o.jsxs(x.animated.group,{name:"UR3_J03",position:[-.244,0,0],children:[o.jsxs(x.animated.group,{name:"UR3_J04",position:[-.213,0,0],children:[o.jsxs(x.animated.group,{name:"UR3_J05",position:[0,.112,0],rotation:[Math.PI/2,0,0],children:[o.jsx("mesh",{name:"UR3_05",geometry:a.UR3_05.geometry,material:s.Standard}),o.jsxs(x.animated.group,{name:"UR3_J06",position:[0,.085,0],rotation:[-Math.PI/2,0,0],children:[o.jsx("group",{ref:t,name:"UR3_FLG",position:[0,.082,0]}),o.jsx("mesh",{name:"UR3_L06",geometry:a.UR3_L06.geometry,material:s.Standard})]})]}),o.jsx("mesh",{name:"UR3_L04",geometry:a.UR3_L04.geometry,material:s.Standard})]}),o.jsx("mesh",{name:"UR3_L03",geometry:a.UR3_L03.geometry,material:s.Standard})]}),o.jsx("mesh",{name:"UR3_L02",geometry:a.UR3_L02.geometry,material:s.Standard})]}),o.jsx("mesh",{name:"UR3_L01",geometry:a.UR3_L01.geometry,material:s.Standard})]}),o.jsx("mesh",{name:"UR3_L00",geometry:a.UR3_L00.geometry,material:s.Standard,rotation:[-Math.PI/2,0,0]})]})})})})}function G1({modelURL:e,flangeRef:t,...r}){const n=z.useGLTF(e),a=n.nodes,s=n.materials;return o.jsx("group",{...r,dispose:null,children:o.jsxs("group",{name:"Empty",children:[o.jsxs("group",{name:"link_0",children:[o.jsx("mesh",{name:"visuals_0",geometry:a.visuals_0.geometry,material:s.universalrobots_black}),o.jsx("mesh",{name:"visuals_0_1",geometry:a.visuals_0_1.geometry,material:s.universalrobots_aluminum})]}),o.jsxs(x.animated.group,{name:"UNIVERSALROBOTS_UR3E_J00",children:[o.jsxs("group",{name:"link_1",children:[o.jsx("mesh",{name:"visuals_1",geometry:a.visuals_1.geometry,material:s.universalrobots_black}),o.jsx("mesh",{name:"visuals_1_1",geometry:a.visuals_1_1.geometry,material:s.universalrobots_darkgrey}),o.jsx("mesh",{name:"visuals_1_2",geometry:a.visuals_1_2.geometry,material:s.universalrobots_lightblue}),o.jsx("mesh",{name:"visuals_1_3",geometry:a.visuals_1_3.geometry,material:s.universalrobots_black}),o.jsx("mesh",{name:"visuals_1_4",geometry:a.visuals_1_4.geometry,material:s.universalrobots_stainlesssteel})]}),o.jsxs(x.animated.group,{name:"UNIVERSALROBOTS_UR3E_J01",position:[0,.152,0],rotation:[Math.PI/2,0,0],children:[o.jsxs("group",{name:"link_2",position:[0,0,.152],rotation:[-Math.PI/2,0,0],children:[o.jsx("mesh",{name:"visuals_2",geometry:a.visuals_2.geometry,material:s.universalrobots_black}),o.jsx("mesh",{name:"visuals_2_1",geometry:a.visuals_2_1.geometry,material:s.universalrobots_aluminum}),o.jsx("mesh",{name:"visuals_2_2",geometry:a.visuals_2_2.geometry,material:s.universalrobots_darkgrey}),o.jsx("mesh",{name:"visuals_2_3",geometry:a.visuals_2_3.geometry,material:s.universalrobots_lightblue})]}),o.jsxs(x.animated.group,{name:"UNIVERSALROBOTS_UR3E_J02",position:[-.244,0,0],children:[o.jsxs("group",{name:"link_3",position:[.244,0,.152],rotation:[-Math.PI/2,0,0],children:[o.jsx("mesh",{name:"visuals_3",geometry:a.visuals_3.geometry,material:s.universalrobots_black}),o.jsx("mesh",{name:"visuals_3_1",geometry:a.visuals_3_1.geometry,material:s.universalrobots_aluminum}),o.jsx("mesh",{name:"visuals_3_2",geometry:a.visuals_3_2.geometry,material:s.universalrobots_darkgrey}),o.jsx("mesh",{name:"visuals_3_3",geometry:a.visuals_3_3.geometry,material:s.universalrobots_lightblue})]}),o.jsxs(x.animated.group,{name:"UNIVERSALROBOTS_UR3E_J03",position:[-.213,0,0],children:[o.jsxs("group",{name:"link_4",position:[.457,0,.152],rotation:[-Math.PI/2,0,0],children:[o.jsx("mesh",{name:"visuals_4",geometry:a.visuals_4.geometry,material:s.universalrobots_black}),o.jsx("mesh",{name:"visuals_4_1",geometry:a.visuals_4_1.geometry,material:s.universalrobots_darkgrey}),o.jsx("mesh",{name:"visuals_4_2",geometry:a.visuals_4_2.geometry,material:s.universalrobots_lightblue})]}),o.jsxs(x.animated.group,{name:"UNIVERSALROBOTS_UR3E_J04",position:[0,.131,0],rotation:[Math.PI/2,0,0],children:[o.jsxs("group",{name:"link_5",position:[.457,.152,.131],rotation:[Math.PI,0,0],children:[o.jsx("mesh",{name:"visuals_5",geometry:a.visuals_5.geometry,material:s.universalrobots_black}),o.jsx("mesh",{name:"visuals_5_1",geometry:a.visuals_5_1.geometry,material:s.universalrobots_darkgrey}),o.jsx("mesh",{name:"visuals_5_2",geometry:a.visuals_5_2.geometry,material:s.universalrobots_lightblue})]}),o.jsxs(x.animated.group,{name:"UNIVERSALROBOTS_UR3E_J05",position:[0,.085,0],rotation:[-Math.PI/2,0,0],children:[o.jsxs("group",{name:"link_6",position:[.457,-.131,.067],rotation:[-Math.PI/2,0,0],children:[o.jsx("mesh",{name:"visuals_6",geometry:a.visuals_6.geometry,material:s.universalrobots_stainlesssteel}),o.jsx("mesh",{name:"visuals_6_1",geometry:a.visuals_6_1.geometry,material:s.universalrobots_black}),o.jsx("mesh",{name:"visuals_6_2",geometry:a.visuals_6_2.geometry,material:s.universalrobots_aluminum})]}),o.jsx("group",{ref:t,name:"UNIVERSALROBOTS_UR3E_FLG",position:[0,.092,0]})]})]})]})]})]})]})]})})}function Si({modelURL:e,flangeRef:t,...r}){const n=z.useGLTF(e),a=n.nodes,s=n.materials;return o.jsx("group",{...r,dispose:null,children:o.jsxs("group",{name:"Scene",children:[o.jsxs(x.animated.group,{name:"UNIVERSALROBOTS_UR5CB_J00",children:[o.jsxs("group",{name:"link_1",children:[o.jsx("mesh",{name:"visuals_1",geometry:a.visuals_1.geometry,material:s.universalrobots_darkgrey}),o.jsx("mesh",{name:"visuals_1_1",geometry:a.visuals_1_1.geometry,material:s.universalrobots_black}),o.jsx("mesh",{name:"visuals_1_2",geometry:a.visuals_1_2.geometry,material:s.universalrobots_aluminum}),o.jsx("mesh",{name:"visuals_1_3",geometry:a.visuals_1_3.geometry,material:s.universalrobots_lightblue})]}),o.jsxs(x.animated.group,{name:"UNIVERSALROBOTS_UR5CB_J01",position:[0,.089,0],rotation:[Math.PI/2,0,0],children:[o.jsxs("group",{name:"link_2",position:[0,0,.089],rotation:[-Math.PI/2,0,0],children:[o.jsx("mesh",{name:"visuals_2",geometry:a.visuals_2.geometry,material:s.universalrobots_stainlesssteel}),o.jsx("mesh",{name:"visuals_2_1",geometry:a.visuals_2_1.geometry,material:s.universalrobots_lightblue}),o.jsx("mesh",{name:"visuals_2_2",geometry:a.visuals_2_2.geometry,material:s.universalrobots_aluminum}),o.jsx("mesh",{name:"visuals_2_3",geometry:a.visuals_2_3.geometry,material:s.universalrobots_black}),o.jsx("mesh",{name:"visuals_2_4",geometry:a.visuals_2_4.geometry,material:s.universalrobots_darkgrey})]}),o.jsxs(x.animated.group,{name:"UNIVERSALROBOTS_UR5CB_J02",position:[-.425,0,0],children:[o.jsxs("group",{name:"link_3",position:[.425,0,.089],rotation:[-Math.PI/2,0,0],children:[o.jsx("mesh",{name:"visuals_3",geometry:a.visuals_3.geometry,material:s.universalrobots_lightblue}),o.jsx("mesh",{name:"visuals_3_1",geometry:a.visuals_3_1.geometry,material:s.universalrobots_black}),o.jsx("mesh",{name:"visuals_3_2",geometry:a.visuals_3_2.geometry,material:s.universalrobots_aluminum}),o.jsx("mesh",{name:"visuals_3_3",geometry:a.visuals_3_3.geometry,material:s.universalrobots_darkgrey}),o.jsx("mesh",{name:"visuals_3_4",geometry:a.visuals_3_4.geometry,material:s.universalrobots_stainlesssteel})]}),o.jsxs(x.animated.group,{name:"UNIVERSALROBOTS_UR5CB_J03",position:[-.392,0,0],children:[o.jsxs("group",{name:"link_4",position:[.817,0,.089],rotation:[-Math.PI/2,0,0],children:[o.jsx("mesh",{name:"visuals_4",geometry:a.visuals_4.geometry,material:s.universalrobots_darkgrey}),o.jsx("mesh",{name:"visuals_4_1",geometry:a.visuals_4_1.geometry,material:s.universalrobots_aluminum}),o.jsx("mesh",{name:"visuals_4_2",geometry:a.visuals_4_2.geometry,material:s.universalrobots_lightblue}),o.jsx("mesh",{name:"visuals_4_3",geometry:a.visuals_4_3.geometry,material:s.universalrobots_black})]}),o.jsxs(x.animated.group,{name:"UNIVERSALROBOTS_UR5CB_J04",position:[0,.109,0],rotation:[Math.PI/2,0,0],children:[o.jsxs("group",{name:"link_5",position:[.817,.089,.109],rotation:[Math.PI,0,0],children:[o.jsx("mesh",{name:"visuals_5",geometry:a.visuals_5.geometry,material:s.universalrobots_darkgrey}),o.jsx("mesh",{name:"visuals_5_1",geometry:a.visuals_5_1.geometry,material:s.universalrobots_lightblue}),o.jsx("mesh",{name:"visuals_5_2",geometry:a.visuals_5_2.geometry,material:s.universalrobots_aluminum}),o.jsx("mesh",{name:"visuals_5_3",geometry:a.visuals_5_3.geometry,material:s.universalrobots_black})]}),o.jsxs(x.animated.group,{name:"UNIVERSALROBOTS_UR5CB_J05",position:[0,.095,0],rotation:[-Math.PI/2,0,0],children:[o.jsx("mesh",{name:"link_6",geometry:a.link_6.geometry,material:s.universalrobots_stainlesssteel,position:[.817,-.109,-.005],rotation:[-Math.PI/2,0,0]}),o.jsx("group",{ref:t,name:"UNIVERSALROBOTS_UR5CB_FLG",position:[0,.082,0]})]})]})]})]})]})]}),o.jsx("mesh",{name:"link_0",geometry:a.link_0.geometry,material:s.universalrobots_aluminum})]})})}function z1({modelURL:e,flangeRef:t,...r}){const n=z.useGLTF(e),a=n.nodes,s=n.materials;return o.jsx(o.Fragment,{children:o.jsx("group",{...r,dispose:null,children:o.jsx("group",{name:"Scene",children:o.jsxs("group",{name:"UR5e",rotation:[Math.PI/2,0,0],children:[o.jsxs(x.animated.group,{name:"UR5e_J01",rotation:[-Math.PI/2,0,0],children:[o.jsxs(x.animated.group,{name:"UR5e_J02",position:[0,.162,0],rotation:[Math.PI/2,0,0],children:[o.jsxs(x.animated.group,{name:"UR5e_J03",position:[-.425,0,0],children:[o.jsxs(x.animated.group,{name:"UR5e_J04",position:[-.392,0,0],children:[o.jsxs(x.animated.group,{name:"UR5e_J05",position:[0,.133,0],rotation:[Math.PI/2,0,0],children:[o.jsxs(x.animated.group,{name:"UR5e_J06",position:[0,.1,0],rotation:[-Math.PI/2,0,0],children:[o.jsx("group",{ref:t,name:"UR5e_FLG",position:[0,.1,0]}),o.jsx("group",{name:"UR5e_L06",position:[0,.1,0],rotation:[0,0,-Math.PI],children:o.jsxs(o.Fragment,{children:[o.jsx("mesh",{name:"C-1000255",geometry:a["C-1000255"].geometry,material:s.Black}),o.jsx("mesh",{name:"C-1000255_1",geometry:a["C-1000255_1"].geometry,material:s.Metal})]})})]}),o.jsx("group",{name:"UR5e_L05",rotation:[-Math.PI/2,-Math.PI/3,0],children:o.jsxs(o.Fragment,{children:[o.jsx("mesh",{name:"C-1000253",geometry:a["C-1000253"].geometry,material:s.Blue}),o.jsx("mesh",{name:"C-1000253_1",geometry:a["C-1000253_1"].geometry,material:s.Black}),o.jsx("mesh",{name:"C-1000253_2",geometry:a["C-1000253_2"].geometry,material:s.Metal}),o.jsx("mesh",{name:"C-1000253_3",geometry:a["C-1000253_3"].geometry,material:s.DarkGray})]})})]}),o.jsx("group",{name:"UR5e_L04",rotation:[0,-Math.PI/3,0],children:o.jsxs(o.Fragment,{children:[o.jsx("mesh",{name:"C-1000251",geometry:a["C-1000251"].geometry,material:s.Blue}),o.jsx("mesh",{name:"C-1000251_1",geometry:a["C-1000251_1"].geometry,material:s.Black}),o.jsx("mesh",{name:"C-1000251_2",geometry:a["C-1000251_2"].geometry,material:s.Metal}),o.jsx("mesh",{name:"C-1000251_3",geometry:a["C-1000251_3"].geometry,material:s.DarkGray})]})})]}),o.jsx("group",{name:"UR5e_L03",children:o.jsxs(o.Fragment,{children:[o.jsx("mesh",{name:"C-1000250",geometry:a["C-1000250"].geometry,material:s.Black}),o.jsx("mesh",{name:"C-1000250_1",geometry:a["C-1000250_1"].geometry,material:s.DarkGray}),o.jsx("mesh",{name:"C-1000250_2",geometry:a["C-1000250_2"].geometry,material:s.Blue}),o.jsx("mesh",{name:"C-1000250_3",geometry:a["C-1000250_3"].geometry,material:s.Metal}),o.jsx("mesh",{name:"C-1000250_4",geometry:a["C-1000250_4"].geometry,material:s.Metal})]})})]}),o.jsx("group",{name:"UR5e_L02",rotation:[0,-Math.PI/2,0],children:o.jsxs(o.Fragment,{children:[o.jsx("mesh",{name:"C-1000249",geometry:a["C-1000249"].geometry,material:s.Metal}),o.jsx("mesh",{name:"C-1000249_1",geometry:a["C-1000249_1"].geometry,material:s.Black}),o.jsx("mesh",{name:"C-1000249_2",geometry:a["C-1000249_2"].geometry,material:s.DarkGray}),o.jsx("mesh",{name:"C-1000249_3",geometry:a["C-1000249_3"].geometry,material:s.Blue}),o.jsx("mesh",{name:"C-1000249_4",geometry:a["C-1000249_4"].geometry,material:s.Metal})]})})]}),o.jsx("group",{name:"UR5e_L01",rotation:[Math.PI/2,0,0],children:o.jsxs(o.Fragment,{children:[o.jsx("mesh",{name:"C-1000248",geometry:a["C-1000248"].geometry,material:s.DarkGray}),o.jsx("mesh",{name:"C-1000248_1",geometry:a["C-1000248_1"].geometry,material:s.Black}),o.jsx("mesh",{name:"C-1000248_2",geometry:a["C-1000248_2"].geometry,material:s.Blue}),o.jsx("mesh",{name:"C-1000248_3",geometry:a["C-1000248_3"].geometry,material:s.Metal})]})})]}),o.jsx("group",{name:"UR5e_L00",children:o.jsxs(o.Fragment,{children:[o.jsx("mesh",{name:"C-1000257",geometry:a["C-1000257"].geometry,material:s.Black}),o.jsx("mesh",{name:"C-1000257_1",geometry:a["C-1000257_1"].geometry,material:s.Metal})]})})]})})})})}ku.config={rotationOffsets:[0,-Math.PI/2,0,0,0,0],rotationSign:[1,-1,1,1,1,1]};function ku({modelURL:e,flangeRef:t,...r}){const n=z.useGLTF(e),a=n.nodes,s=n.materials;return o.jsx(o.Fragment,{children:o.jsx("group",{...r,dispose:null,children:o.jsx("group",{name:"Scene",children:o.jsxs("group",{name:"AR1440",rotation:[Math.PI/2,0,0],children:[o.jsxs(x.animated.group,{name:"AR1440_J01",rotation:[-Math.PI/2,0,0],children:[o.jsxs(x.animated.group,{name:"AR1440_J02",position:[.155,0,0],rotation:[Math.PI/2,0,Math.PI],children:[o.jsxs(x.animated.group,{name:"AR1440_J03",position:[.614,0,0],rotation:[Math.PI,0,0],children:[o.jsxs(x.animated.group,{name:"AR1440_J04",position:[.2,0,0],rotation:[-Math.PI/2,0,0],children:[o.jsxs(x.animated.group,{name:"AR1440_J05",position:[0,-.64,0],rotation:[Math.PI/2,0,0],children:[o.jsxs(x.animated.group,{name:"AR1440_J06",rotation:[-Math.PI/2,0,0],children:[o.jsx("group",{ref:t,name:"AR1440_FLG",position:[0,-.1,0],rotation:[-Math.PI,0,0]}),o.jsx("mesh",{name:"AR1440_L06_CAD",geometry:a.AR1440_L06_CAD.geometry,material:s.metall})]}),o.jsx("mesh",{name:"AR1440_L05_CAD",geometry:a.AR1440_L05_CAD.geometry,material:s.yaskawaBlueMetall})]}),o.jsxs("group",{name:"AR1440_L04_CAD",children:[o.jsx("mesh",{name:"AR1440_L04_CAD001",geometry:a.AR1440_L04_CAD001.geometry,material:s.yaskawaBlueMetall}),o.jsx("mesh",{name:"AR1440_L04_CAD001_1",geometry:a.AR1440_L04_CAD001_1.geometry,material:s.white})]})]}),o.jsxs("group",{name:"AR1440_L03_CAD",children:[o.jsx("mesh",{name:"AR1440_L03_CAD001",geometry:a.AR1440_L03_CAD001.geometry,material:s.yaskawaBlueMetall}),o.jsx("mesh",{name:"AR1440_L03_CAD001_1",geometry:a.AR1440_L03_CAD001_1.geometry,material:s.blackMetall})]})]}),o.jsx("mesh",{name:"AR1440_L02_CAD",geometry:a.AR1440_L02_CAD.geometry,material:s.yaskawaBlueMetall})]}),o.jsxs("group",{name:"AR1440_L01_CAD",children:[o.jsx("mesh",{name:"AR1440_L01_CAD001",geometry:a.AR1440_L01_CAD001.geometry,material:s.yaskawaBlueMetall}),o.jsx("mesh",{name:"AR1440_L01_CAD001_1",geometry:a.AR1440_L01_CAD001_1.geometry,material:s.blackMetall})]})]}),o.jsx("mesh",{name:"AR1440_L00_CAD",geometry:a.AR1440_L00_CAD.geometry,material:s.yaskawaBlueMetall,position:[0,0,.45],rotation:[-Math.PI/2,0,0]})]})})})})}Iu.config={rotationOffsets:[0,-Math.PI/2,0,0,0,0],rotationSign:[1,-1,1,1,1,1]};function Iu({modelURL:e,flangeRef:t,...r}){const n=z.useGLTF(e),a=n.nodes,s=n.materials;return o.jsx(o.Fragment,{children:o.jsx("group",{...r,dispose:null,children:o.jsxs("group",{name:"Scene",children:[o.jsxs(x.animated.group,{name:"AR1730_J00",children:[o.jsxs(x.animated.group,{name:"AR1730_J01",position:[.15,0,0],rotation:[-Math.PI/2,-Math.PI/2,0],children:[o.jsxs(x.animated.group,{name:"AR1730_J02",position:[.76,0,0],rotation:[-Math.PI,0,0],children:[o.jsxs(x.animated.group,{name:"AR1730_J03",position:[.2,0,0],rotation:[-Math.PI/2,0,0],children:[o.jsxs(x.animated.group,{name:"AR1730_J04",position:[0,-.795,0],rotation:[Math.PI/2,0,0],children:[o.jsxs(x.animated.group,{name:"AR1730_J05",rotation:[-Math.PI/2,0,0],children:[o.jsx("group",{ref:t,name:"AR1730_FLG",position:[0,-.1,0],rotation:[-Math.PI,0,0]}),o.jsx("mesh",{name:"AR1730_L06",geometry:a.AR1730_L06.geometry,material:s.Metal,rotation:[Math.PI/2,-Math.PI/2,0]})]}),o.jsx("mesh",{name:"AR1730_L05",geometry:a.AR1730_L05.geometry,material:s.Blue,rotation:[Math.PI/2,0,Math.PI/2]})]}),o.jsxs("group",{name:"AR1730_L04",position:[0,-.302,0],rotation:[0,0,-Math.PI/2],children:[o.jsx("mesh",{name:"_R_AXIS_SW0001002",geometry:a._R_AXIS_SW0001002.geometry,material:s.Blue}),o.jsx("mesh",{name:"_R_AXIS_SW0001002_1",geometry:a._R_AXIS_SW0001002_1.geometry,material:s.White})]})]}),o.jsxs("group",{name:"AR1730_L03",rotation:[Math.PI/2,0,-Math.PI/2],children:[o.jsx("mesh",{name:"_U_AXIS_SW0001002",geometry:a._U_AXIS_SW0001002.geometry,material:s.Blue}),o.jsx("mesh",{name:"_U_AXIS_SW0001002_1",geometry:a._U_AXIS_SW0001002_1.geometry,material:s.Black})]})]}),o.jsx("mesh",{name:"AR1730_L02",geometry:a.AR1730_L02.geometry,material:s.Blue,position:[0,-.157,0],rotation:[-Math.PI,-1.571,0]})]}),o.jsxs("group",{name:"AR1730_L01",position:[0,-.336,0],rotation:[Math.PI/2,0,-Math.PI/2],children:[o.jsx("mesh",{name:"_S_AXIS_SW0001002",geometry:a._S_AXIS_SW0001002.geometry,material:s.Blue}),o.jsx("mesh",{name:"_S_AXIS_SW0001002_1",geometry:a._S_AXIS_SW0001002_1.geometry,material:s.Black})]})]}),o.jsx("mesh",{name:"AR1730_L00",geometry:a.AR1730_L00.geometry,material:s.Blue,position:[0,-.505,0],rotation:[Math.PI/2,0,-Math.PI/2]})]})})})}Tu.config={rotationOffsets:[0,-Math.PI/2,0,0,0,0]};function Tu({modelURL:e,flangeRef:t,...r}){const n=z.useGLTF(e),a=n.nodes,s=n.materials;return o.jsx("group",{...r,dispose:null,children:o.jsxs("group",{name:"Scene",children:[o.jsxs("group",{name:"link_0",children:[o.jsx("mesh",{name:"shape",geometry:a.shape.geometry,material:s.yaskawa_black}),o.jsx("mesh",{name:"shape_1",geometry:a.shape_1.geometry,material:s.yaskawa_metalsilver}),o.jsx("mesh",{name:"shape_2",geometry:a.shape_2.geometry,material:s.yaskawa_blue}),o.jsx("mesh",{name:"shape_3",geometry:a.shape_3.geometry,material:s.yaskawa_metalsilver})]}),o.jsxs(x.animated.group,{name:"YASKAWA_AR2010_J00",children:[o.jsxs("group",{name:"link_1",children:[o.jsx("mesh",{name:"shape001",geometry:a.shape001.geometry,material:s.yaskawa_black}),o.jsx("mesh",{name:"shape001_1",geometry:a.shape001_1.geometry,material:s.yaskawa_blue})]}),o.jsxs(x.animated.group,{name:"YASKAWA_AR2010_J01",position:[.15,0,0],rotation:[-Math.PI/2,-Math.PI/2,0],children:[o.jsx("mesh",{name:"link_2",geometry:a.link_2.geometry,material:s.yaskawa_blue,position:[0,0,.15],rotation:[Math.PI/2,0,-Math.PI/2]}),o.jsxs(x.animated.group,{name:"YASKAWA_AR2010_J02",position:[.76,0,0],rotation:[-Math.PI,0,0],children:[o.jsxs("group",{name:"link_3",position:[-.76,0,-.15],rotation:[-Math.PI/2,0,-Math.PI/2],children:[o.jsx("mesh",{name:"shape003",geometry:a.shape003.geometry,material:s.yaskawa_black}),o.jsx("mesh",{name:"shape003_1",geometry:a.shape003_1.geometry,material:s.yaskawa_blue})]}),o.jsxs(x.animated.group,{name:"YASKAWA_AR2010_J03",position:[.2,0,0],rotation:[-Math.PI/2,0,0],children:[o.jsx("mesh",{name:"link_4",geometry:a.link_4.geometry,material:s.yaskawa_blue,position:[-.96,.15,0],rotation:[0,0,-Math.PI/2]}),o.jsxs(x.animated.group,{name:"YASKAWA_AR2010_J04",position:[0,-1.082,0],rotation:[Math.PI/2,0,0],children:[o.jsx("mesh",{name:"link_5",geometry:a.link_5.geometry,material:s.yaskawa_blue,position:[-.96,0,-1.232],rotation:[-Math.PI/2,0,-Math.PI/2]}),o.jsxs(x.animated.group,{name:"YASKAWA_AR2010_J05",rotation:[-Math.PI/2,0,0],children:[o.jsx("mesh",{name:"link_6",geometry:a.link_6.geometry,material:s.yaskawa_metalsilver,position:[-.96,1.232,0],rotation:[0,0,-Math.PI/2]}),o.jsx("group",{ref:t,name:"YASKAWA_AR2010_FLG",position:[0,-.1,0],rotation:[-Math.PI,0,0]})]})]})]})]})]})]})]})})}Ou.config={rotationOffsets:[0,-Math.PI/2,0,0,0,0],rotationSign:[1,-1,1,1,1,1]};function Ou({modelURL:e,flangeRef:t,...r}){const n=z.useGLTF(e),a=n.nodes,s=n.materials;return o.jsx(o.Fragment,{children:o.jsx("group",{...r,dispose:null,children:o.jsxs("group",{name:"Scene",children:[o.jsxs(x.animated.group,{name:"AR3120_J00",children:[o.jsxs(x.animated.group,{name:"AR3120_J01",position:[.145,0,0],rotation:[-Math.PI/2,-Math.PI/2,0],children:[o.jsxs(x.animated.group,{name:"AR3120_J02",position:[1.15,0,0],rotation:[-Math.PI,0,0],children:[o.jsxs(x.animated.group,{name:"AR3120_J03",position:[.25,0,0],rotation:[-Math.PI/2,0,0],children:[o.jsxs(x.animated.group,{name:"AR3120_J04",position:[0,-1.812,0],rotation:[Math.PI/2,0,0],children:[o.jsxs(x.animated.group,{name:"AR3120_J05",rotation:[-Math.PI/2,0,0],children:[o.jsx("group",{ref:t,name:"AR3120_FLG",position:[0,-.1,0],rotation:[-Math.PI,0,0]}),o.jsx("mesh",{name:"AR3120_L06",geometry:a.AR3120_L06.geometry,material:s["Metal.001"],rotation:[Math.PI/2,-Math.PI/2,0]})]}),o.jsx("mesh",{name:"AR3120_L05",geometry:a.AR3120_L05.geometry,material:s["Blue.001"],rotation:[Math.PI/2,0,Math.PI/2]})]}),o.jsxs("group",{name:"AR3120_L04",rotation:[Math.PI/2,-Math.PI/2,0],children:[o.jsx("mesh",{name:"R_AXIS_GP20HL001",geometry:a.R_AXIS_GP20HL001.geometry,material:s["Blue.001"]}),o.jsx("mesh",{name:"R_AXIS_GP20HL001_1",geometry:a.R_AXIS_GP20HL001_1.geometry,material:s["White.001"]})]})]}),o.jsxs("group",{name:"AR3120_L03",rotation:[Math.PI,0,-Math.PI/2],children:[o.jsx("mesh",{name:"Mesh_3001",geometry:a.Mesh_3001.geometry,material:s["Blue.001"]}),o.jsx("mesh",{name:"Mesh_3001_1",geometry:a.Mesh_3001_1.geometry,material:s["Black.001"]})]})]}),o.jsx("mesh",{name:"AR3120_L02",geometry:a.AR3120_L02.geometry,material:s["Blue.001"],position:[0,-.146,0],rotation:[Math.PI,0,0]})]}),o.jsxs("group",{name:"AR3120_L01",position:[0,-.228,0],rotation:[0,-1.571,0],children:[o.jsx("mesh",{name:"S_AXIS_GP20HL001",geometry:a.S_AXIS_GP20HL001.geometry,material:s["Blue.001"]}),o.jsx("mesh",{name:"S_AXIS_GP20HL001_1",geometry:a.S_AXIS_GP20HL001_1.geometry,material:s["Black.001"]})]})]}),o.jsx("mesh",{name:"AR3120_L00",geometry:a.AR3120_L00.geometry,material:s["Blue.001"],position:[0,-.54,0]})]})})})}gs.config={rotationOffsets:[0,-Math.PI/2,0,0,0,0]};function gs({modelURL:e,flangeRef:t,...r}){const n=z.useGLTF(e),a=n.nodes,s=n.materials;return o.jsx(o.Fragment,{children:o.jsx("group",{...r,dispose:null,children:o.jsxs("group",{name:"Scene",children:[o.jsxs("group",{name:"link_0",children:[o.jsx("mesh",{name:"visuals",geometry:a.visuals.geometry,material:s.yaskawa_blue}),o.jsx("mesh",{name:"visuals_1",geometry:a.visuals_1.geometry,material:s.yaskawa_black}),o.jsx("mesh",{name:"visuals_2",geometry:a.visuals_2.geometry,material:s.yaskawa_metalsilver})]}),o.jsxs(x.animated.group,{name:"YASKAWA_GP7_J00",children:[o.jsx("mesh",{name:"link_1",geometry:a.link_1.geometry,material:s.yaskawa_blue}),o.jsxs(x.animated.group,{name:"YASKAWA_GP7_J01",position:[.04,0,0],rotation:[-Math.PI/2,-Math.PI/2,0],children:[o.jsx("mesh",{name:"link_2",geometry:a.link_2.geometry,material:s.yaskawa_blue,position:[0,0,.04],rotation:[Math.PI/2,0,-Math.PI/2]}),o.jsxs(x.animated.group,{name:"YASKAWA_GP7_J02",position:[.445,0,0],rotation:[-Math.PI,0,0],children:[o.jsxs("group",{name:"link_3",position:[-.445,0,-.04],rotation:[-Math.PI/2,0,-Math.PI/2],children:[o.jsx("mesh",{name:"visuals003",geometry:a.visuals003.geometry,material:s.yaskawa_blue}),o.jsx("mesh",{name:"visuals003_1",geometry:a.visuals003_1.geometry,material:s.material_Material_Metall__1_}),o.jsx("mesh",{name:"visuals003_2",geometry:a.visuals003_2.geometry,material:s.yaskawa_black})]}),o.jsxs(x.animated.group,{name:"YASKAWA_GP7_J03",position:[.04,0,0],rotation:[-Math.PI/2,0,0],children:[o.jsxs("group",{name:"link_4",position:[-.485,.04,0],rotation:[0,0,-Math.PI/2],children:[o.jsx("mesh",{name:"visuals004",geometry:a.visuals004.geometry,material:s.yaskawa_white}),o.jsx("mesh",{name:"visuals004_1",geometry:a.visuals004_1.geometry,material:s.yaskawa_black}),o.jsx("mesh",{name:"visuals004_2",geometry:a.visuals004_2.geometry,material:s.yaskawa_blue})]}),o.jsxs(x.animated.group,{name:"YASKAWA_GP7_J04",position:[0,-.44,0],rotation:[Math.PI/2,0,0],children:[o.jsx("mesh",{name:"link_5",geometry:a.link_5.geometry,material:s.yaskawa_blue,position:[-.485,0,-.48],rotation:[-Math.PI/2,0,-Math.PI/2]}),o.jsxs(x.animated.group,{name:"YASKAWA_GP7_J05",rotation:[-Math.PI/2,0,0],children:[o.jsx("mesh",{name:"link_6",geometry:a.link_6.geometry,material:s.yaskawa_metalgold,position:[-.485,.48,0],rotation:[0,0,-Math.PI/2]}),o.jsx("group",{ref:t,name:"YASKAWA_GP7_FLG",position:[0,-.08,0],rotation:[-Math.PI,0,0]})]})]})]})]})]})]})]})})})}Eu.config={rotationOffsets:[0,-Math.PI/2,0,0,0,0]};function Eu({modelURL:e,flangeRef:t,...r}){const n=z.useGLTF(e),a=n.nodes,s=n.materials;return o.jsx(o.Fragment,{children:o.jsx("group",{...r,dispose:null,children:o.jsxs("group",{name:"Scene",children:[o.jsxs("group",{name:"link_0",children:[o.jsx("mesh",{name:"shape439",geometry:a.shape439.geometry,material:s.yaskawa_blue}),o.jsx("mesh",{name:"shape439_1",geometry:a.shape439_1.geometry,material:s.yaskawa_metalsilver}),o.jsx("mesh",{name:"shape439_2",geometry:a.shape439_2.geometry,material:s.yaskawa_black})]}),o.jsxs(x.animated.group,{name:"YASKAWA_GP50_J00",position:[0,-.54,0],children:[o.jsxs("group",{name:"link_1",position:[0,.54,0],children:[o.jsx("mesh",{name:"shape320",geometry:a.shape320.geometry,material:s.yaskawa_blue}),o.jsx("mesh",{name:"shape320_1",geometry:a.shape320_1.geometry,material:s.yaskawa_black}),o.jsx("mesh",{name:"shape320_2",geometry:a.shape320_2.geometry,material:s.yaskawa_metalsilver}),o.jsx("mesh",{name:"shape320_3",geometry:a.shape320_3.geometry,material:s.yaskawa_black}),o.jsx("mesh",{name:"shape320_4",geometry:a.shape320_4.geometry,material:s.yaskawa_white}),o.jsx("mesh",{name:"shape320_5",geometry:a.shape320_5.geometry,material:s.yaskawa_black})]}),o.jsxs(x.animated.group,{name:"YASKAWA_GP50_J01",position:[.145,.54,0],rotation:[-Math.PI/2,-Math.PI/2,0],children:[o.jsxs("group",{name:"link_2",position:[0,0,.145],rotation:[Math.PI/2,0,-Math.PI/2],children:[o.jsx("mesh",{name:"shape440",geometry:a.shape440.geometry,material:s.yaskawa_blue}),o.jsx("mesh",{name:"shape440_1",geometry:a.shape440_1.geometry,material:s.yaskawa_white}),o.jsx("mesh",{name:"shape440_2",geometry:a.shape440_2.geometry,material:s.yaskawa_metalsilver}),o.jsx("mesh",{name:"shape440_3",geometry:a.shape440_3.geometry,material:s.yaskawa_black})]}),o.jsxs(x.animated.group,{name:"YASKAWA_GP50_J02",position:[.87,0,0],rotation:[-Math.PI,0,0],children:[o.jsxs("group",{name:"link_3",position:[-.87,0,-.145],rotation:[-Math.PI/2,0,-Math.PI/2],children:[o.jsx("mesh",{name:"shape341",geometry:a.shape341.geometry,material:s.yaskawa_blue}),o.jsx("mesh",{name:"shape341_1",geometry:a.shape341_1.geometry,material:s.yaskawa_white}),o.jsx("mesh",{name:"shape341_2",geometry:a.shape341_2.geometry,material:s.yaskawa_black}),o.jsx("mesh",{name:"shape341_3",geometry:a.shape341_3.geometry,material:s.yaskawa_black}),o.jsx("mesh",{name:"shape341_4",geometry:a.shape341_4.geometry,material:s.yaskawa_metalsilver}),o.jsx("mesh",{name:"shape341_5",geometry:a.shape341_5.geometry,material:s.yaskawa_metalsilver})]}),o.jsxs(x.animated.group,{name:"YASKAWA_GP50_J03",position:[.21,0,0],rotation:[-Math.PI/2,0,0],children:[o.jsx("mesh",{name:"link_4",geometry:a.link_4.geometry,material:s.yaskawa_blue,position:[-1.08,.145,0],rotation:[0,0,-Math.PI/2]}),o.jsxs(x.animated.group,{name:"YASKAWA_GP50_J04",position:[0,-1.025,0],rotation:[Math.PI/2,0,0],children:[o.jsx("mesh",{name:"link_5",geometry:a.link_5.geometry,material:s.yaskawa_blue,position:[-1.08,0,-1.17],rotation:[-Math.PI/2,0,-Math.PI/2]}),o.jsxs(x.animated.group,{name:"YASKAWA_GP50_J05",rotation:[-Math.PI/2,0,0],children:[o.jsx("mesh",{name:"link_6",geometry:a.link_6.geometry,material:s.yaskawa_metalsilver,position:[-1.08,1.17,0],rotation:[0,0,-Math.PI/2]}),o.jsx("group",{ref:t,name:"YASKAWA_GP50_FLG",position:[0,-.175,0],rotation:[-Math.PI,0,0]})]})]})]})]})]})]})]})})})}const Ri="0.0.0-semantically-released",K1="(^joint_[0-9]+$)|(_J[0-9]+$)";function Lu(e){return e.children.length===0?[e]:[e,...e.children.flatMap(t=>Lu(t))]}function W1(e,t){return new RegExp(t??K1).test(e)}function Nu(e,t){return Lu(e).filter(r=>W1(r.name,t))}function $u({rapidlyChangingMotionState:e,jointCollector:t,onRotationChanged:r,robotConfig:n,children:a}){x.Globals.assign({frameLoop:"always"});const s=Y.useRef([]),i=Y.useRef([]),{invalidate:l}=qu.useThree();function u(_){_&&(i.current=t?t(_):Nu(_),d(),l())}function c(_){s.current=_,y.start(Object.assign({},s.current))}const m=(n==null?void 0:n.rotationSign)||[1,1,1,1,1,1],f=(n==null?void 0:n.rotationOffsets)||[0,0,0,0,0,0];function d(){const _=i.current.map((p,j)=>b[j].get());if(r)r(i.current,_);else for(const[p,j]of i.current.entries())j.rotation.y=m[p]*_[p]+f[p]}fl(()=>{const _=e.state.joint_position.joints.filter(p=>p!==void 0);requestAnimationFrame(()=>c(_))});const[b,y]=x.useSpring(()=>({...Object.assign({},e.state.joint_position.joints),onChange:()=>{d(),l()},onResolve:()=>{d()}}));return o.jsx("group",{ref:u,children:a})}const wi="line",Ai="mesh";function Va({rapidlyChangingMotionState:e,dhParameters:t,...r}){const n=new vt.Matrix4;function a(u,c){const m=new vt.Vector3,f=new vt.Quaternion,d=new vt.Vector3;n.decompose(m,f,d);const b=m.clone(),y=new vt.Matrix4().makeRotationY(u.theta+c*(u.reverse_rotation_direction?-1:1)).multiply(new vt.Matrix4().makeTranslation(0,u.d/1e3,0)).multiply(new vt.Matrix4().makeTranslation(u.a/1e3,0,0)).multiply(new vt.Matrix4().makeRotationX(u.alpha));return n.multiply(y),n.decompose(m,f,d),{a:b,b:m}}function s(u,c,m,f){if(!t)return;const d=t[u];if(!d)return;const{a:b,b:y}=a(d,f);c.geometry.setPositions([b.toArray(),y.toArray()].flat()),m.position.set(y.x,y.y,y.z)}function i(u,c){n.identity(),u.forEach((m,f)=>{s(f,m.getObjectByName(wi),m.getObjectByName(Ai),c[f])})}function l(u){return Nu(u,"^group_[0-9]+$")}return o.jsx(o.Fragment,{children:o.jsx($u,{rapidlyChangingMotionState:e,jointCollector:l,onRotationChanged:i,children:o.jsxs("group",{...r,name:"Scene",children:[o.jsxs("mesh",{children:[o.jsx("sphereGeometry",{args:[.01,32,32]}),o.jsx("meshStandardMaterial",{color:"black",depthTest:!0})]}),t.map((u,c)=>{const{a:m,b:f}=a(u,e.state.joint_position.joints[c]??0);return o.jsxs("group",{name:`group_${c}`,children:[o.jsx(z.Line,{name:wi,points:[m,f],color:"white",lineWidth:5}),o.jsxs("mesh",{name:Ai,position:f,children:[o.jsx("sphereGeometry",{args:[.01,32,32]}),o.jsx("meshStandardMaterial",{color:"black",depthTest:!0})]},"mesh_"+c)]},"group_"+c)})]})})})}const H1=console.warn;function X1(){return Y.useEffect(()=>{console.warn=e=>{e!=="Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"&&H1(e)}},[]),o.jsx(o.Fragment,{})}Fu.config={rotationOffsets:[0,Math.PI/2,0,0,0,0]};function Fu({modelURL:e,flangeRef:t,...r}){const n=z.useGLTF(e),a=n.nodes,s=n.materials;return o.jsx("group",{...r,dispose:null,children:o.jsxs("group",{name:"Scene",children:[o.jsxs("group",{name:"link_0",children:[o.jsx("mesh",{name:"visuals_0",geometry:a.visuals_0.geometry,material:s.fanuc_metal_black}),o.jsx("mesh",{name:"visuals_0_1",geometry:a.visuals_0_1.geometry,material:s.fanuc_stainless_steel}),o.jsx("mesh",{name:"visuals_0_2",geometry:a.visuals_0_2.geometry,material:s.fanuc_metal_black}),o.jsx("mesh",{name:"visuals_0_3",geometry:a.visuals_0_3.geometry,material:s.fanuc_stainless_steel}),o.jsx("mesh",{name:"visuals_0_4",geometry:a.visuals_0_4.geometry,material:s.fanuc_aluminium_black}),o.jsx("mesh",{name:"visuals_0_5",geometry:a.visuals_0_5.geometry,material:s.fanuc_aluminium_black}),o.jsx("mesh",{name:"visuals_0_6",geometry:a.visuals_0_6.geometry,material:s.fanuc_rubber})]}),o.jsxs(x.animated.group,{name:"FANUC_CRX10IAL_J00",children:[o.jsxs(x.animated.group,{name:"FANUC_CRX10IAL_J01",rotation:[Math.PI/2,Math.PI/2,0],children:[o.jsxs(x.animated.group,{name:"FANUC_CRX10IAL_J02",position:[.71,0,0],children:[o.jsxs(x.animated.group,{name:"FANUC_CRX10IAL_J03",rotation:[-Math.PI/2,0,0],children:[o.jsxs(x.animated.group,{name:"FANUC_CRX10IAL_J04",position:[0,-.54,0],rotation:[Math.PI/2,0,0],children:[o.jsxs(x.animated.group,{name:"FANUC_CRX10IAL_J05",position:[0,.15,0],rotation:[-Math.PI/2,0,0],children:[o.jsx("group",{ref:t,name:"FANUC_CRX10IAL_FLG",position:[0,-.16,0],rotation:[-Math.PI,0,0]}),o.jsxs("group",{name:"link_6",position:[-.71,.54,-.15],rotation:[0,0,-Math.PI/2],children:[o.jsx("mesh",{name:"visuals_6",geometry:a.visuals_6.geometry,material:s.fanuc_metal_black}),o.jsx("mesh",{name:"visuals_6_1",geometry:a.visuals_6_1.geometry,material:s.fanuc_stainless_steel}),o.jsx("mesh",{name:"visuals_6_2",geometry:a.visuals_6_2.geometry,material:s.fanuc_aluminium_black}),o.jsx("mesh",{name:"visuals_6_3",geometry:a.visuals_6_3.geometry,material:s.fanuc_aluminium_black})]})]}),o.jsxs("group",{name:"link_5",position:[-.71,0,-.54],rotation:[-Math.PI/2,0,-Math.PI/2],children:[o.jsx("mesh",{name:"visuals_5",geometry:a.visuals_5.geometry,material:s.fanuc_white}),o.jsx("mesh",{name:"visuals_5_1",geometry:a.visuals_5_1.geometry,material:s.fanuc_green}),o.jsx("mesh",{name:"visuals_5_2",geometry:a.visuals_5_2.geometry,material:s.fanuc_stainless_steel})]})]}),o.jsxs("group",{name:"link_4",position:[-.71,0,0],rotation:[0,0,-Math.PI/2],children:[o.jsx("mesh",{name:"visuals_4",geometry:a.visuals_4.geometry,material:s.fanuc_white}),o.jsx("mesh",{name:"visuals_4_1",geometry:a.visuals_4_1.geometry,material:s.fanuc_white}),o.jsx("mesh",{name:"visuals_4_2",geometry:a.visuals_4_2.geometry,material:s.fanuc_metal_black}),o.jsx("mesh",{name:"visuals_4_3",geometry:a.visuals_4_3.geometry,material:s.fanuc_red})]})]}),o.jsxs("group",{name:"link_3",position:[-.71,0,0],rotation:[-Math.PI/2,0,-Math.PI/2],children:[o.jsx("mesh",{name:"visuals_3",geometry:a.visuals_3.geometry,material:s.fanuc_white}),o.jsx("mesh",{name:"visuals_3_1",geometry:a.visuals_3_1.geometry,material:s.fanuc_green})]})]}),o.jsx("mesh",{name:"link_2",geometry:a.link_2.geometry,material:s.fanuc_white,rotation:[-Math.PI/2,0,-Math.PI/2]})]}),o.jsxs("group",{name:"link_1",children:[o.jsx("mesh",{name:"visuals_1",geometry:a.visuals_1.geometry,material:s.fanuc_green}),o.jsx("mesh",{name:"visuals_1_1",geometry:a.visuals_1_1.geometry,material:s.fanuc_white}),o.jsx("mesh",{name:"visuals_1_2",geometry:a.visuals_1_2.geometry,material:s.fanuc_green})]})]})]})})}function Js(e){let t=Ri;return Ri.startsWith("0.")&&(t=""),`https://cdn.jsdelivr.net/gh/wandelbotsgmbh/wandelbots-js-react-components${t?`@${t}`:""}/public/models/${e}.glb`}const Du=sn(({rapidlyChangingMotionState:e,modelFromController:t,dhParameters:r,getModel:n=Js,isGhost:a=!1,flangeRef:s,...i})=>{let l=null;const u=Y.useRef(),c=Y.useCallback(d=>{d&&(u.current=d,a&&m())},[a]),m=()=>{!u.current||u.current.userData.isGhost||(u.current.traverse(d=>{if(d instanceof Me.Mesh){d.material instanceof Me.Material&&(d.material.colorWrite=!0);const b=d.clone(),y=d.clone();b.material=new Me.MeshStandardMaterial({depthTest:!0,depthWrite:!0,colorWrite:!1,polygonOffset:!0,polygonOffsetFactor:1}),b.userData.isGhost=!0,y.material=new Me.MeshStandardMaterial({color:"#D91433",opacity:.3,depthTest:!0,depthWrite:!1,transparent:!0,polygonOffset:!0,polygonOffsetFactor:-1}),y.userData.isGhost=!0,d.parent&&(d.parent.add(b),d.parent.add(y))}}),u.current.userData.isGhost=!0)},f=()=>{if(!u.current||!u.current.userData.isGhost)return;const d=[];u.current.traverse(b=>{var y;b instanceof Me.Mesh&&((y=b.userData)!=null&&y.isGhost?d.push(b):b.material instanceof Me.Material&&(b.material.colorWrite=!0))}),d.forEach(b=>{b.parent&&b.parent.remove(b)}),u.current.userData.isGhost=!0};switch(Y.useEffect(()=>{a?m():f()},[a]),t){case"UniversalRobots_UR3CB":l=V1;break;case"UniversalRobots_UR3e":l=G1;break;case"UniversalRobots_UR5":l=Si;break;case"UniversalRobots_UR5CB":l=Si;break;case"UniversalRobots_UR5e":l=z1;break;case"UniversalRobots_UR10CB":l=U1;break;case"UniversalRobots_UR10e":l=J1;break;case"Yaskawa_AR900":l=gs;break;case"Yaskawa_GP7":l=gs;break;case"Yaskawa_AR1440":l=ku;break;case"Yaskawa_AR1730":l=Iu;break;case"Yaskawa_AR2010":l=Tu;break;case"Yaskawa_AR3120":l=Ou;break;case"Yaskawa_GP50":l=Eu;break;case"FANUC_CRX10iA":l=bu;break;case"FANUC_CRX10iAL":l=Fu;break;case"FANUC_CRX20iAL":l=xu;break;case"FANUC_CRX25iA":l=vu;break;case"FANUC_CRX25iAL":l=ju;break;case"FANUC_LR_Mate_200iD":l=Su;break;case"FANUC_LR_Mate_200iD4S":l=Ru;break;case"FANUC_LR_Mate_200iD7L":l=wu;break;case"FANUC_ARC_Mate_120iD":l=hs;break;case"FANUC_ARC_Mate_120iD35":l=hs;break;case"FANUC_ARC_Mate_100iD":l=yu;break;case"KUKA_KR210_R2700":l=Pu;break;case"KUKA_KR270_R2700":l=Cu;break;case"KUKA_KR16_R2010_2":l=Au;break;case"KUKA_KR6_R700_2":l=Mu;break;case"ABB_1200_07_7":l=pu;break;case"ABB_1300_115_10":l=_u;break;default:console.warn(`Unknown robot type: ${t}`),l=null}return o.jsxs(Qu.ErrorBoundary,{fallback:o.jsx(Va,{rapidlyChangingMotionState:e,dhParameters:r,...i}),children:[o.jsx(Y.Suspense,{fallback:o.jsx(Va,{rapidlyChangingMotionState:e,dhParameters:r,...i}),children:o.jsx("group",{ref:c,children:l?o.jsx($u,{rapidlyChangingMotionState:e,robotConfig:l.config,children:o.jsx(l,{modelURL:n(t),flangeRef:s,...i})}):o.jsx(Va,{rapidlyChangingMotionState:e,dhParameters:r})})}),o.jsx(X1,{})]})});function q1({connectedMotionGroup:e,getModel:t=Js,isGhost:r=!1,flangeRef:n,...a}){return e.dhParameters?o.jsx(Du,{rapidlyChangingMotionState:e.rapidlyChangingMotionState,modelFromController:e.modelFromController||"",dhParameters:e.dhParameters,getModel:t,isGhost:r,flangeRef:n,...a}):null}const Y1=T.styled(T.Fab,{shouldForwardProp:e=>e!=="selected"})(({theme:e})=>{var t,r,n;return{borderRadius:"20px","&:hover":{background:(t=e.palette.backgroundPaperElevation)==null?void 0:t[7]},variants:[{props:({selected:a})=>!a,style:{background:(r=e.palette.backgroundPaperElevation)==null?void 0:r[0],color:e.palette.action.disabled,"> img":{opacity:.4}}},{props:({selected:a})=>a,style:{background:(n=e.palette.backgroundPaperElevation)==null?void 0:n[11],border:`1px solid ${e.palette.divider}`,color:e.palette.primary.contrastText}}]}}),Z1=Y.forwardRef((e,t)=>o.jsx(Y1,{ref:t,selected:e.selected,...e,color:"secondary",variant:"circular"})),Q1={$schema:"https://raw.githubusercontent.com/martinring/tmlanguage/master/tmlanguage.json",name:"wandelscript",patterns:[{include:"#keywords"},{include:"#strings"},{include:"#comments"},{include:"#functions"}],repository:{keywords:{patterns:[{name:"keyword.control.flow.wandelscript",match:"\\b(move|via|to|interrupt|def|False|True|for|if|else|elif|while|return|switch|activate|deactivate|print)\\b"}]},strings:{name:"string.quoted.double.wandelscript",begin:'"',end:'"',patterns:[{name:"constant.character.escape.wandelscript",match:"\\\\."}]},comments:{patterns:[{begin:"#",beginCaptures:{0:{name:"punctuation.definition.comment.wandelscript"}},end:"$",name:"comment.line.number-sign.wandelscript"}]},functions:{patterns:[{match:"[a-zA-Z_-]+\\(",name:"entity.name.function.wandelscript"}]}},scopeName:"source.wandelscript"},eb=Y.lazy(()=>import("@monaco-editor/react")),tb=sn(e=>{const t=T.useTheme(),r=Y.useRef(null),[n,a]=Y.useState("dark-plus"),s=t.palette.mode==="dark"?"dark-plus":"light-plus";async function i(l){const[{createHighlighter:u},{shikiToMonaco:c}]=await Promise.all([import("shiki"),import("@shikijs/monaco")]);l.languages.register({id:"wandelscript"}),l.languages.setLanguageConfiguration("wandelscript",{comments:{lineComment:"#"},brackets:[["(",")"],["[","]"]],autoClosingPairs:[{open:"[",close:"]"},{open:"(",close:")"}],surroundingPairs:[{open:"[",close:"]"},{open:"(",close:")"}]}),r.current||(r.current=await u({langs:[Q1],themes:["dark-plus","light-plus"]})),c(r.current,l),l.editor.defineTheme(s,{base:t.palette.mode==="dark"?"vs-dark":"vs",inherit:!0,rules:[],colors:t.palette.mode==="dark"?{"editor.background":"#262F42","editorLineNumber.foreground":"#797979","editorLineNumber.activeForeground":"#e9e9e9","editor.lineHighlightBorder":"#494949"}:{}}),e.monacoSetup&&e.monacoSetup(l),a(s)}return o.jsx(Y.Suspense,{fallback:o.jsx(ha,{}),children:o.jsx(eb,{value:e.code,onMount:(l,u)=>{i(u)},onChange:e.onChange,defaultLanguage:"wandelscript",theme:n,options:{minimap:{enabled:!1},wordWrap:"on",automaticLayout:!0,...e.monacoOptions}})})});function Bu(){var t,r,n,a,s,i;const e=T.createTheme({palette:{mode:"dark",text:{primary:"rgba(255, 255, 255, 1)",secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.38)"},primary:{main:"rgba(142, 86, 252, 1)",dark:"rgba(136, 58, 255, 1)",light:"rgba(157, 131, 246, 1)",contrastText:"rgba(255, 255, 255, 0.87)"},secondary:{main:"rgba(255, 255, 255, 1)",dark:"rgba(255, 255, 255, 0.06)",contrastText:"rgba(255, 255, 255, 0.87)"},tertiary:{main:"rgba(100, 255, 218, 1)",dark:"rgba(38, 166, 154, 1)",light:"rgba(167, 255, 235, 1)",contrastText:"rgba(0, 0, 0, 1)"},error:{main:"rgba(239, 83, 80, 1)",dark:"rgba(229, 57, 53, 1)",light:"rgba(239, 154, 154, 1)",contrastText:"rgba(255, 255, 255, 1)"},warning:{main:"rgba(255, 171, 64, 1)",dark:"rgba(255, 145, 0, 1)",light:"rgba(255, 209, 128, 1)",contrastText:"rgba(0, 0, 0, 0.87)"},success:{main:"rgba(38, 166, 154, 1)",dark:"rgba(0, 121, 107, 1)",light:"rgba(128, 203, 196, 1)",contrastText:"rgba(255, 255, 255, 0.87)"},background:{default:"rgba(2, 6, 23, 1)",paper:"rgba(17, 19, 31, 1)"},action:{active:"rgba(255, 255, 255, 0.56)",hover:"rgba(255, 255, 255, 0.08)",selected:"rgba(255, 255, 255, 0.16)",disabledBackground:"rgba(255, 255, 255, 0.12)",focus:"rgba(255, 255, 255, 0.12)",disabled:"rgba(255, 255, 255, 0.38)"},common:{white:"rgba(255, 255, 255, 1)",black:"rgba(0, 0, 0, 1)"},divider:"rgba(255, 255, 255, 0.12)",backgroundPaperElevation:{0:"rgba(17,19,31,1.0)",1:"rgba(20,22,35,1.0)",2:"rgba(23,25,39,1.0)",3:"rgba(26,28,43,1.0)",4:"rgba(29,31,47,1.0)",5:"rgba(32,34,51,1.0)",6:"rgba(35,37,55,1.0)",7:"rgba(38,40,59,1.0)",8:"rgba(41,43,63,1.0)",9:"rgba(44,46,67,1.0)",10:"rgba(47,49,71,1.0)",11:"rgba(50,52,75,1.0)",12:"rgba(53,55,79,1.0)",13:"rgba(56,58,83,1.0)",14:"rgba(59,61,87,1.0)",15:"rgba(62,64,91,1.0)",16:"rgba(57,63,87,1.0)"}},paletteExt:{primary:{hover:"rgba(142, 86, 252, 0.08)",selected:"rgba(142, 86, 252, 0.16)",focus:"rgba(142, 86, 252, 0.12)",focusVisible:"rgba(142, 86, 252, 0.3)",outlineBorder:"rgba(142, 86, 252, 0.5)"},secondary:{tonal:"rgba(255,255,255,0.1)"}}});return{...e,components:{MuiButton:{styleOverrides:{root:{textTransform:"none",borderRadius:"10px"}},variants:[{props:{color:"secondary",variant:"contained"},style:{border:`1px solid ${e.palette.divider}`,background:(n=(r=(t=e.paletteExt)==null?void 0:t.secondary)==null?void 0:r.tonal)==null?void 0:n.toString()}},{props:{color:"secondary",variant:"outlined"},style:{border:`1px solid ${e.palette.divider}`}}]},MuiDivider:{styleOverrides:{root:{border:"1px solid"}}},MuiTab:{styleOverrides:{root:{textTransform:"none",color:e.palette.text.secondary,"&.Mui-selected":{color:e.palette.text.primary}}}},MuiTabs:{styleOverrides:{root:{background:(a=e.palette.backgroundPaperElevation)==null?void 0:a[1]}}},MuiToggleButtonGroup:{styleOverrides:{root:{".MuiToggleButtonGroup-firstButton":{borderRadius:"10px 0 0 10px"},".MuiToggleButtonGroup-lastButton":{borderRadius:"0 10px 10px 0"}}}},MuiToggleButton:{styleOverrides:{root:{textTransform:"none",padding:"6px 16px"}}},MuiSelect:{variants:[{props:{variant:"filled"},style:{borderRadius:"10px","::before, ::after":{visibility:"collapse"},".MuiInputBase-input":{padding:"6px 16px",borderRadius:"10px"}}}]},MuiFab:{styleOverrides:{root:{background:(i=(s=e.paletteExt)==null?void 0:s.secondary)==null?void 0:i.tonal}},variants:[{props:{color:"primary"},style:{background:e.palette.primary.main}}]}},componentsExt:{JoggingCartesian:{Axis:{X:{backgroundColor:"rgba(215, 66, 56, 1)",borderColor:"rgba(215, 66, 56, 1)",buttonBackgroundColor:"rgba(241, 77, 66, 1)",color:"rgba(255, 255, 255, 1)"},Y:{backgroundColor:"rgba(20, 151, 108, 1)",borderColor:"rgba(20, 151, 108, 1)",buttonBackgroundColor:"rgba(28, 188, 135, 1)",color:"rgba(255, 255, 255, 1)"},Z:{backgroundColor:"rgba(1, 87, 155, 1)",borderColor:"rgba(1, 87, 155, 1)",buttonBackgroundColor:"rgba(2, 136, 209, 1)",color:"rgba(255, 255, 255, 1)"}}}}}}function rb(){const e=Bu();return e.palette.mode="light",e}function nb(e){var r,n,a,s;let t=!0;return((r=e.palette)==null?void 0:r.mode)==="light"?t=!1:((n=e.palette)==null?void 0:n.mode)!=="dark"&&(t=!(typeof window<"u"&&((s=(a=window.matchMedia)==null?void 0:a.call(window,"(prefers-color-scheme: light)"))==null?void 0:s.matches))),t?Bu():rb()}exports.JoggingCartesianAxisControl=es;exports.JoggingJointRotationControl=bl;exports.JoggingPanel=N1;exports.LoadingCover=ha;exports.LoadingErrorMessage=zl;exports.NoMotionGroupModal=D1;exports.PresetEnvironment=rc;exports.Robot=q1;exports.SafetyZonesRenderer=sc;exports.SelectableFab=Z1;exports.SupportedRobot=Du;exports.VelocitySlider=lu;exports.WandelscriptEditor=tb;exports.createNovaMuiTheme=nb;exports.defaultAxisConfig=B1;exports.defaultGetModel=Js;exports.useAnimationFrame=jr;exports.useAutorun=fl;exports.useMounted=ia;exports.useReaction=ks;
|
|
84
84
|
//# sourceMappingURL=index.cjs.map
|