@wandelbots/wandelbots-js-react-components 1.7.1 → 1.9.0

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.
Files changed (96) hide show
  1. package/README.md +30 -16
  2. package/dist/components/3d-viewport/SafetyZonesRenderer.d.ts +1 -1
  3. package/dist/components/3d-viewport/SafetyZonesRenderer.d.ts.map +1 -1
  4. package/dist/components/CopyableText.d.ts +5 -0
  5. package/dist/components/CopyableText.d.ts.map +1 -0
  6. package/dist/components/LoadingButton.d.ts +1 -1
  7. package/dist/components/LoadingButton.stories.d.ts +1 -1
  8. package/dist/components/LoadingButton.stories.d.ts.map +1 -1
  9. package/dist/components/ThemeSelect.d.ts.map +1 -1
  10. package/dist/components/VelocitySlider.d.ts.map +1 -1
  11. package/dist/components/VelocitySlider.stories.d.ts +2 -2
  12. package/dist/components/VelocitySlider.stories.d.ts.map +1 -1
  13. package/dist/components/jogging/JoggingCartesianAxisControl.stories.d.ts +1 -1
  14. package/dist/components/jogging/JoggingCartesianAxisControl.stories.d.ts.map +1 -1
  15. package/dist/components/jogging/JoggingCartesianTab.d.ts.map +1 -1
  16. package/dist/components/jogging/JoggingCartesianValues.d.ts +1 -1
  17. package/dist/components/jogging/JoggingCartesianValues.d.ts.map +1 -1
  18. package/dist/components/jogging/JoggingJointLimitDetector.d.ts +2 -2
  19. package/dist/components/jogging/JoggingJointLimitDetector.d.ts.map +1 -1
  20. package/dist/components/jogging/JoggingJointRotationControl.d.ts.map +1 -1
  21. package/dist/components/jogging/JoggingJointRotationControl.stories.d.ts +2 -2
  22. package/dist/components/jogging/JoggingJointRotationControl.stories.d.ts.map +1 -1
  23. package/dist/components/jogging/JoggingJointValues.d.ts +1 -1
  24. package/dist/components/jogging/JoggingJointValues.d.ts.map +1 -1
  25. package/dist/components/jogging/JoggingOptions.d.ts.map +1 -1
  26. package/dist/components/jogging/JoggingPanel.d.ts +8 -1
  27. package/dist/components/jogging/JoggingPanel.d.ts.map +1 -1
  28. package/dist/components/jogging/JoggingPanel.stories.d.ts +2 -2
  29. package/dist/components/jogging/JoggingPanel.stories.d.ts.map +1 -1
  30. package/dist/components/jogging/JoggingStore.d.ts +14 -1
  31. package/dist/components/jogging/JoggingStore.d.ts.map +1 -1
  32. package/dist/components/jogging/JoggingVelocitySlider.d.ts.map +1 -1
  33. package/dist/components/robots/FANUC_CRX20iAL.d.ts +3 -0
  34. package/dist/components/robots/FANUC_CRX20iAL.d.ts.map +1 -0
  35. package/dist/components/robots/SupportedRobot.d.ts.map +1 -1
  36. package/dist/components/wandelscript-editor/WandelscriptEditor.d.ts +2 -2
  37. package/dist/components/wandelscript-editor/WandelscriptEditor.d.ts.map +1 -1
  38. package/dist/components/wandelscript-editor/WandelscriptEditor.stories.d.ts +2 -2
  39. package/dist/components/wandelscript-editor/WandelscriptEditor.stories.d.ts.map +1 -1
  40. package/dist/externalizeComponent.d.ts +7 -0
  41. package/dist/externalizeComponent.d.ts.map +1 -0
  42. package/dist/index.cjs +29 -48
  43. package/dist/index.cjs.map +1 -1
  44. package/dist/index.d.ts +49 -9
  45. package/dist/index.d.ts.map +1 -1
  46. package/dist/index.js +11672 -12089
  47. package/dist/index.js.map +1 -1
  48. package/dist/themes/color.d.ts +1 -1
  49. package/dist/themes/color.d.ts.map +1 -1
  50. package/dist/themes/novaTheme.stories.d.ts +5 -0
  51. package/dist/themes/novaTheme.stories.d.ts.map +1 -0
  52. package/dist/themes/theming.d.ts +49 -0
  53. package/dist/themes/theming.d.ts.map +1 -0
  54. package/package.json +20 -13
  55. package/src/components/3d-viewport/SafetyZonesRenderer.tsx +2 -2
  56. package/src/components/CopyableText.tsx +30 -0
  57. package/src/components/LoadingButton.stories.tsx +19 -26
  58. package/src/components/ThemeSelect.tsx +3 -4
  59. package/src/components/VelocitySlider.stories.tsx +10 -15
  60. package/src/components/VelocitySlider.tsx +7 -2
  61. package/src/components/jogging/JoggingCartesianAxisControl.stories.tsx +21 -21
  62. package/src/components/jogging/JoggingCartesianAxisControl.tsx +1 -1
  63. package/src/components/jogging/JoggingCartesianTab.tsx +37 -44
  64. package/src/components/jogging/JoggingCartesianValues.tsx +37 -33
  65. package/src/components/jogging/JoggingJointLimitDetector.tsx +10 -7
  66. package/src/components/jogging/JoggingJointRotationControl.stories.tsx +31 -19
  67. package/src/components/jogging/JoggingJointRotationControl.tsx +44 -30
  68. package/src/components/jogging/JoggingJointValues.tsx +35 -33
  69. package/src/components/jogging/JoggingOptions.tsx +130 -80
  70. package/src/components/jogging/JoggingPanel.stories.tsx +20 -17
  71. package/src/components/jogging/JoggingPanel.tsx +29 -31
  72. package/src/components/jogging/JoggingStore.tsx +69 -18
  73. package/src/components/jogging/JoggingVelocitySlider.tsx +24 -22
  74. package/src/components/robots/FANUC_CRX20iAL.tsx +176 -0
  75. package/src/components/robots/SupportedRobot.tsx +4 -0
  76. package/src/components/wandelscript-editor/WandelscriptEditor.stories.tsx +7 -7
  77. package/src/components/wandelscript-editor/WandelscriptEditor.tsx +48 -23
  78. package/src/externalizeComponent.tsx +37 -0
  79. package/src/i18n/locales/de/translations.json +2 -1
  80. package/src/i18n/locales/en/translations.json +2 -1
  81. package/src/icons/orientation-coord-system.svg +3 -0
  82. package/src/icons/orientation-tool.svg +3 -0
  83. package/src/index.ts +39 -9
  84. package/src/themes/color.tsx +29 -19
  85. package/src/themes/novaTheme.stories.tsx +77 -0
  86. package/src/themes/themeTypes.d.ts +11 -0
  87. package/src/themes/theming.ts +174 -0
  88. package/dist/themes/theme.d.ts +0 -144
  89. package/dist/themes/theme.d.ts.map +0 -1
  90. package/dist/themes/wbTheme.d.ts +0 -73
  91. package/dist/themes/wbTheme.d.ts.map +0 -1
  92. package/dist/themes/wbTheme.stories.d.ts +0 -7
  93. package/dist/themes/wbTheme.stories.d.ts.map +0 -1
  94. package/src/themes/theme.ts +0 -150
  95. package/src/themes/wbTheme.stories.tsx +0 -64
  96. package/src/themes/wbTheme.ts +0 -186
package/dist/index.cjs CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const je=require("react"),oa=require("@monaco-editor/react"),Yi=require("shiki"),Zi=require("@shikijs/monaco"),U=require("@mui/material"),x=require("@react-spring/three"),we=require("@react-three/drei"),Qi=require("@react-three/fiber"),Ar=require("mobx"),xt=require("three"),el=require("react-error-boundary"),tl=require("three-stdlib"),tt=require("mobx-react-lite"),rl=require("@emotion/styled"),tr=require("@emotion/react"),Ot=require("react-i18next"),aa=require("@mui/icons-material"),nl=require("i18next-browser-languagedetector"),rr=require("@wandelbots/wandelbots-js"),bt=require("lodash-es");function vs(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 V=vs(je),wt=vs(xt);function ol(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Mt(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 o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),r}var _o={exports:{}},Sr={};/**
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const se=require("react"),Dt=require("@emotion/react"),bt=require("lodash-es"),p=require("prop-types"),E=require("@mui/material"),Lt=require("react-i18next"),Li=require("i18next-browser-languagedetector"),Ho=require("@monaco-editor/react"),Oi=require("shiki"),Mi=require("@shikijs/monaco"),S=require("@react-spring/three"),ie=require("@react-three/drei"),ki=require("@react-three/fiber"),Or=require("mobx"),yt=require("three"),Ti=require("react-error-boundary"),Ei=require("three-stdlib"),Ve=require("mobx-react-lite"),Ii=require("@emotion/styled"),Ko=require("@mui/icons-material"),Ut=require("@wandelbots/wandelbots-js");function ns(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 F=ns(se),_t=ns(yt);function Ot(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 o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),r}var uo={exports:{}},Sr={};/**
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 sa;function al(){if(sa)return Sr;sa=1;var e=je,t=Symbol.for("react.element"),r=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function i(l,c,u){var d,m={},f=null,_=null;u!==void 0&&(f=""+u),c.key!==void 0&&(f=""+c.key),c.ref!==void 0&&(_=c.ref);for(d in c)n.call(c,d)&&!a.hasOwnProperty(d)&&(m[d]=c[d]);if(l&&l.defaultProps)for(d in c=l.defaultProps,c)m[d]===void 0&&(m[d]=c[d]);return{$$typeof:t,type:l,key:f,ref:_,props:m,_owner:o.current}}return Sr.Fragment=r,Sr.jsx=i,Sr.jsxs=i,Sr}var xr={};/**
9
+ */var Xo;function Ni(){if(Xo)return Sr;Xo=1;var e=se,t=Symbol.for("react.element"),r=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function i(l,c,u){var d,h={},m=null,b=null;u!==void 0&&(m=""+u),c.key!==void 0&&(m=""+c.key),c.ref!==void 0&&(b=c.ref);for(d in c)n.call(c,d)&&!a.hasOwnProperty(d)&&(h[d]=c[d]);if(l&&l.defaultProps)for(d in c=l.defaultProps,c)h[d]===void 0&&(h[d]=c[d]);return{$$typeof:t,type:l,key:m,ref:b,props:h,_owner:o.current}}return Sr.Fragment=r,Sr.jsx=i,Sr.jsxs=i,Sr}var vr={};/**
10
10
  * @license React
11
11
  * react-jsx-runtime.development.js
12
12
  *
@@ -14,49 +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 ia;function sl(){return ia||(ia=1,process.env.NODE_ENV!=="production"&&function(){var e=je,t=Symbol.for("react.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),_=Symbol.for("react.offscreen"),g=Symbol.iterator,y="@@iterator";function b(h){if(h===null||typeof h!="object")return null;var j=g&&h[g]||h[y];return typeof j=="function"?j:null}var w=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function C(h){{for(var j=arguments.length,L=new Array(j>1?j-1:0),F=1;F<j;F++)L[F-1]=arguments[F];P("error",h,L)}}function P(h,j,L){{var F=w.ReactDebugCurrentFrame,H=F.getStackAddendum();H!==""&&(j+="%s",L=L.concat([H]));var he=L.map(function(oe){return String(oe)});he.unshift("Warning: "+j),Function.prototype.apply.call(console[h],console,he)}}var k=!1,v=!1,N=!1,I=!1,de=!1,Ee;Ee=Symbol.for("react.module.reference");function Re(h){return!!(typeof h=="string"||typeof h=="function"||h===n||h===a||de||h===o||h===u||h===d||I||h===_||k||v||N||typeof h=="object"&&h!==null&&(h.$$typeof===f||h.$$typeof===m||h.$$typeof===i||h.$$typeof===l||h.$$typeof===c||h.$$typeof===Ee||h.getModuleId!==void 0))}function B(h,j,L){var F=h.displayName;if(F)return F;var H=j.displayName||j.name||"";return H!==""?L+"("+H+")":L}function ae(h){return h.displayName||"Context"}function Q(h){if(h==null)return null;if(typeof h.tag=="number"&&C("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof h=="function")return h.displayName||h.name||null;if(typeof h=="string")return h;switch(h){case n:return"Fragment";case r:return"Portal";case a:return"Profiler";case o:return"StrictMode";case u:return"Suspense";case d:return"SuspenseList"}if(typeof h=="object")switch(h.$$typeof){case l:var j=h;return ae(j)+".Consumer";case i:var L=h;return ae(L._context)+".Provider";case c:return B(h,h.render,"ForwardRef");case m:var F=h.displayName||null;return F!==null?F:Q(h.type)||"Memo";case f:{var H=h,he=H._payload,oe=H._init;try{return Q(oe(he))}catch{return null}}}return null}var te=Object.assign,ne=0,be,ce,se,ke,R,M,X;function G(){}G.__reactDisabledLog=!0;function D(){{if(ne===0){be=console.log,ce=console.info,se=console.warn,ke=console.error,R=console.group,M=console.groupCollapsed,X=console.groupEnd;var h={configurable:!0,enumerable:!0,value:G,writable:!0};Object.defineProperties(console,{info:h,log:h,warn:h,error:h,group:h,groupCollapsed:h,groupEnd:h})}ne++}}function ee(){{if(ne--,ne===0){var h={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:te({},h,{value:be}),info:te({},h,{value:ce}),warn:te({},h,{value:se}),error:te({},h,{value:ke}),group:te({},h,{value:R}),groupCollapsed:te({},h,{value:M}),groupEnd:te({},h,{value:X})})}ne<0&&C("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var W=w.ReactCurrentDispatcher,z;function q(h,j,L){{if(z===void 0)try{throw Error()}catch(H){var F=H.stack.trim().match(/\n( *(at )?)/);z=F&&F[1]||""}return`
18
- `+z+h}}var re=!1,Y;{var Te=typeof WeakMap=="function"?WeakMap:Map;Y=new Te}function O(h,j){if(!h||re)return"";{var L=Y.get(h);if(L!==void 0)return L}var F;re=!0;var H=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var he;he=W.current,W.current=null,D();try{if(j){var oe=function(){throw Error()};if(Object.defineProperty(oe.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(oe,[])}catch(Ke){F=Ke}Reflect.construct(h,[],oe)}else{try{oe.call()}catch(Ke){F=Ke}h.call(oe.prototype)}}else{try{throw Error()}catch(Ke){F=Ke}h()}}catch(Ke){if(Ke&&F&&typeof Ke.stack=="string"){for(var K=Ke.stack.split(`
19
- `),ze=F.stack.split(`
20
- `),Ie=K.length-1,Ne=ze.length-1;Ie>=1&&Ne>=0&&K[Ie]!==ze[Ne];)Ne--;for(;Ie>=1&&Ne>=0;Ie--,Ne--)if(K[Ie]!==ze[Ne]){if(Ie!==1||Ne!==1)do if(Ie--,Ne--,Ne<0||K[Ie]!==ze[Ne]){var ot=`
21
- `+K[Ie].replace(" at new "," at ");return h.displayName&&ot.includes("<anonymous>")&&(ot=ot.replace("<anonymous>",h.displayName)),typeof h=="function"&&Y.set(h,ot),ot}while(Ie>=1&&Ne>=0);break}}}finally{re=!1,W.current=he,ee(),Error.prepareStackTrace=H}var Wt=h?h.displayName||h.name:"",Ft=Wt?q(Wt):"";return typeof h=="function"&&Y.set(h,Ft),Ft}function Ce(h,j,L){return O(h,!1)}function T(h){var j=h.prototype;return!!(j&&j.isReactComponent)}function ue(h,j,L){if(h==null)return"";if(typeof h=="function")return O(h,T(h));if(typeof h=="string")return q(h);switch(h){case u:return q("Suspense");case d:return q("SuspenseList")}if(typeof h=="object")switch(h.$$typeof){case c:return Ce(h.render);case m:return ue(h.type,j,L);case f:{var F=h,H=F._payload,he=F._init;try{return ue(he(H),j,L)}catch{}}}return""}var Ae=Object.prototype.hasOwnProperty,We={},He=w.ReactDebugCurrentFrame;function Ct(h){if(h){var j=h._owner,L=ue(h.type,h._source,j?j.type:null);He.setExtraStackFrame(L)}else He.setExtraStackFrame(null)}function Be(h,j,L,F,H){{var he=Function.call.bind(Ae);for(var oe in h)if(he(h,oe)){var K=void 0;try{if(typeof h[oe]!="function"){var ze=Error((F||"React class")+": "+L+" type `"+oe+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof h[oe]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw ze.name="Invariant Violation",ze}K=h[oe](j,oe,F,L,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(Ie){K=Ie}K&&!(K instanceof Error)&&(Ct(H),C("%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).",F||"React class",L,oe,typeof K),Ct(null)),K instanceof Error&&!(K.message in We)&&(We[K.message]=!0,Ct(H),C("Failed %s type: %s",L,K.message),Ct(null))}}}var Pt=Array.isArray;function Lt(h){return Pt(h)}function mr(h){{var j=typeof Symbol=="function"&&Symbol.toStringTag,L=j&&h[Symbol.toStringTag]||h.constructor.name||"Object";return L}}function hr(h){try{return pr(h),!1}catch{return!0}}function pr(h){return""+h}function Jt(h){if(hr(h))return C("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",mr(h)),pr(h)}var mt=w.ReactCurrentOwner,E={key:!0,ref:!0,__self:!0,__source:!0},$,J,ie;ie={};function fe(h){if(Ae.call(h,"ref")){var j=Object.getOwnPropertyDescriptor(h,"ref").get;if(j&&j.isReactWarning)return!1}return h.ref!==void 0}function le(h){if(Ae.call(h,"key")){var j=Object.getOwnPropertyDescriptor(h,"key").get;if(j&&j.isReactWarning)return!1}return h.key!==void 0}function Ze(h,j){if(typeof h.ref=="string"&&mt.current&&j&&mt.current.stateNode!==j){var L=Q(mt.current.type);ie[L]||(C('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',Q(mt.current.type),h.ref),ie[L]=!0)}}function nt(h,j){{var L=function(){$||($=!0,C("%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)",j))};L.isReactWarning=!0,Object.defineProperty(h,"key",{get:L,configurable:!0})}}function me(h,j){{var L=function(){J||(J=!0,C("%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)",j))};L.isReactWarning=!0,Object.defineProperty(h,"ref",{get:L,configurable:!0})}}var qe=function(h,j,L,F,H,he,oe){var K={$$typeof:t,type:h,key:j,ref:L,props:oe,_owner:he};return K._store={},Object.defineProperty(K._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(K,"_self",{configurable:!1,enumerable:!1,writable:!1,value:F}),Object.defineProperty(K,"_source",{configurable:!1,enumerable:!1,writable:!1,value:H}),Object.freeze&&(Object.freeze(K.props),Object.freeze(K)),K};function Et(h,j,L,F,H){{var he,oe={},K=null,ze=null;L!==void 0&&(Jt(L),K=""+L),le(j)&&(Jt(j.key),K=""+j.key),fe(j)&&(ze=j.ref,Ze(j,H));for(he in j)Ae.call(j,he)&&!E.hasOwnProperty(he)&&(oe[he]=j[he]);if(h&&h.defaultProps){var Ie=h.defaultProps;for(he in Ie)oe[he]===void 0&&(oe[he]=Ie[he])}if(K||ze){var Ne=typeof h=="function"?h.displayName||h.name||"Unknown":h;K&&nt(oe,Ne),ze&&me(oe,Ne)}return qe(h,K,ze,H,F,mt.current,oe)}}var Vt=w.ReactCurrentOwner,gr=w.ReactDebugCurrentFrame;function St(h){if(h){var j=h._owner,L=ue(h.type,h._source,j?j.type:null);gr.setExtraStackFrame(L)}else gr.setExtraStackFrame(null)}var $t;$t=!1;function Nt(h){return typeof h=="object"&&h!==null&&h.$$typeof===t}function yr(){{if(Vt.current){var h=Q(Vt.current.type);if(h)return`
17
+ */var qo;function $i(){return qo||(qo=1,process.env.NODE_ENV!=="production"&&function(){var e=se,t=Symbol.for("react.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),b=Symbol.for("react.offscreen"),_=Symbol.iterator,y="@@iterator";function g(f){if(f===null||typeof f!="object")return null;var w=_&&f[_]||f[y];return typeof w=="function"?w:null}var v=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function R(f){{for(var w=arguments.length,M=new Array(w>1?w-1:0),T=1;T<w;T++)M[T-1]=arguments[T];P("error",f,M)}}function P(f,w,M){{var T=v.ReactDebugCurrentFrame,U=T.getStackAddendum();U!==""&&(w+="%s",M=M.concat([U]));var ee=M.map(function(V){return String(V)});ee.unshift("Warning: "+w),Function.prototype.apply.call(console[f],console,ee)}}var N=!1,j=!1,I=!1,O=!1,ne=!1,de;de=Symbol.for("react.module.reference");function ce(f){return!!(typeof f=="string"||typeof f=="function"||f===n||f===a||ne||f===o||f===u||f===d||O||f===b||N||j||I||typeof f=="object"&&f!==null&&(f.$$typeof===m||f.$$typeof===h||f.$$typeof===i||f.$$typeof===l||f.$$typeof===c||f.$$typeof===de||f.getModuleId!==void 0))}function D(f,w,M){var T=f.displayName;if(T)return T;var U=w.displayName||w.name||"";return U!==""?M+"("+U+")":M}function K(f){return f.displayName||"Context"}function G(f){if(f==null)return null;if(typeof f.tag=="number"&&R("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof f=="function")return f.displayName||f.name||null;if(typeof f=="string")return f;switch(f){case n:return"Fragment";case r:return"Portal";case a:return"Profiler";case o:return"StrictMode";case u:return"Suspense";case d:return"SuspenseList"}if(typeof f=="object")switch(f.$$typeof){case l:var w=f;return K(w)+".Consumer";case i:var M=f;return K(M._context)+".Provider";case c:return D(f,f.render,"ForwardRef");case h:var T=f.displayName||null;return T!==null?T:G(f.type)||"Memo";case m:{var U=f,ee=U._payload,V=U._init;try{return G(V(ee))}catch{return null}}}return null}var X=Object.assign,H=0,ve,le,Y,je,Oe,rt,ft;function ze(){}ze.__reactDisabledLog=!0;function we(){{if(H===0){ve=console.log,le=console.info,Y=console.warn,je=console.error,Oe=console.group,rt=console.groupCollapsed,ft=console.groupEnd;var f={configurable:!0,enumerable:!0,value:ze,writable:!0};Object.defineProperties(console,{info:f,log:f,warn:f,error:f,group:f,groupCollapsed:f,groupEnd:f})}H++}}function wt(){{if(H--,H===0){var f={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:X({},f,{value:ve}),info:X({},f,{value:le}),warn:X({},f,{value:Y}),error:X({},f,{value:je}),group:X({},f,{value:Oe}),groupCollapsed:X({},f,{value:rt}),groupEnd:X({},f,{value:ft})})}H<0&&R("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var it=v.ReactCurrentDispatcher,We;function $e(f,w,M){{if(We===void 0)try{throw Error()}catch(U){var T=U.stack.trim().match(/\n( *(at )?)/);We=T&&T[1]||""}return`
18
+ `+We+f}}var lt=!1,ct;{var Tt=typeof WeakMap=="function"?WeakMap:Map;ct=new Tt}function pt(f,w){if(!f||lt)return"";{var M=ct.get(f);if(M!==void 0)return M}var T;lt=!0;var U=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var ee;ee=it.current,it.current=null,we();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(Ee){T=Ee}Reflect.construct(f,[],V)}else{try{V.call()}catch(Ee){T=Ee}f.call(V.prototype)}}else{try{throw Error()}catch(Ee){T=Ee}f()}}catch(Ee){if(Ee&&T&&typeof Ee.stack=="string"){for(var B=Ee.stack.split(`
19
+ `),Le=T.stack.split(`
20
+ `),pe=B.length-1,be=Le.length-1;pe>=1&&be>=0&&B[pe]!==Le[be];)be--;for(;pe>=1&&be>=0;pe--,be--)if(B[pe]!==Le[be]){if(pe!==1||be!==1)do if(pe--,be--,be<0||B[pe]!==Le[be]){var Ke=`
21
+ `+B[pe].replace(" at new "," at ");return f.displayName&&Ke.includes("<anonymous>")&&(Ke=Ke.replace("<anonymous>",f.displayName)),typeof f=="function"&&ct.set(f,Ke),Ke}while(pe>=1&&be>=0);break}}}finally{lt=!1,it.current=ee,wt(),Error.prepareStackTrace=U}var Kt=f?f.displayName||f.name:"",$t=Kt?$e(Kt):"";return typeof f=="function"&&ct.set(f,$t),$t}function Fe(f,w,M){return pt(f,!1)}function L(f){var w=f.prototype;return!!(w&&w.isReactComponent)}function Z(f,w,M){if(f==null)return"";if(typeof f=="function")return pt(f,L(f));if(typeof f=="string")return $e(f);switch(f){case u:return $e("Suspense");case d:return $e("SuspenseList")}if(typeof f=="object")switch(f.$$typeof){case c:return Fe(f.render);case h:return Z(f.type,w,M);case m:{var T=f,U=T._payload,ee=T._init;try{return Z(ee(U),w,M)}catch{}}}return""}var me=Object.prototype.hasOwnProperty,Me={},ke=v.ReactDebugCurrentFrame;function Rt(f){if(f){var w=f._owner,M=Z(f.type,f._source,w?w.type:null);ke.setExtraStackFrame(M)}else ke.setExtraStackFrame(null)}function Re(f,w,M,T,U){{var ee=Function.call.bind(me);for(var V in f)if(ee(f,V)){var B=void 0;try{if(typeof f[V]!="function"){var Le=Error((T||"React class")+": "+M+" type `"+V+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof f[V]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw Le.name="Invariant Violation",Le}B=f[V](w,V,T,M,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(pe){B=pe}B&&!(B instanceof Error)&&(Rt(U),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).",T||"React class",M,V,typeof B),Rt(null)),B instanceof Error&&!(B.message in Me)&&(Me[B.message]=!0,Rt(U),R("Failed %s type: %s",M,B.message),Rt(null))}}}var jt=Array.isArray;function Et(f){return jt(f)}function hr(f){{var w=typeof Symbol=="function"&&Symbol.toStringTag,M=w&&f[Symbol.toStringTag]||f.constructor.name||"Object";return M}}function fr(f){try{return pr(f),!1}catch{return!0}}function pr(f){return""+f}function Gt(f){if(fr(f))return R("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",hr(f)),pr(f)}var nt=v.ReactCurrentOwner,C={key:!0,ref:!0,__self:!0,__source:!0},k,$,z;z={};function q(f){if(me.call(f,"ref")){var w=Object.getOwnPropertyDescriptor(f,"ref").get;if(w&&w.isReactWarning)return!1}return f.ref!==void 0}function W(f){if(me.call(f,"key")){var w=Object.getOwnPropertyDescriptor(f,"key").get;if(w&&w.isReactWarning)return!1}return f.key!==void 0}function De(f,w){if(typeof f.ref=="string"&&nt.current&&w&&nt.current.stateNode!==w){var M=G(nt.current.type);z[M]||(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(nt.current.type),f.ref),z[M]=!0)}}function He(f,w){{var M=function(){k||(k=!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))};M.isReactWarning=!0,Object.defineProperty(f,"key",{get:M,configurable:!0})}}function Q(f,w){{var M=function(){$||($=!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))};M.isReactWarning=!0,Object.defineProperty(f,"ref",{get:M,configurable:!0})}}var Te=function(f,w,M,T,U,ee,V){var B={$$typeof:t,type:f,key:w,ref:M,props:V,_owner:ee};return B._store={},Object.defineProperty(B._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(B,"_self",{configurable:!1,enumerable:!1,writable:!1,value:T}),Object.defineProperty(B,"_source",{configurable:!1,enumerable:!1,writable:!1,value:U}),Object.freeze&&(Object.freeze(B.props),Object.freeze(B)),B};function Ct(f,w,M,T,U){{var ee,V={},B=null,Le=null;M!==void 0&&(Gt(M),B=""+M),W(w)&&(Gt(w.key),B=""+w.key),q(w)&&(Le=w.ref,De(w,U));for(ee in w)me.call(w,ee)&&!C.hasOwnProperty(ee)&&(V[ee]=w[ee]);if(f&&f.defaultProps){var pe=f.defaultProps;for(ee in pe)V[ee]===void 0&&(V[ee]=pe[ee])}if(B||Le){var be=typeof f=="function"?f.displayName||f.name||"Unknown":f;B&&He(V,be),Le&&Q(V,be)}return Te(f,B,Le,U,T,nt.current,V)}}var zt=v.ReactCurrentOwner,gr=v.ReactDebugCurrentFrame;function gt(f){if(f){var w=f._owner,M=Z(f.type,f._source,w?w.type:null);gr.setExtraStackFrame(M)}else gr.setExtraStackFrame(null)}var It;It=!1;function Nt(f){return typeof f=="object"&&f!==null&&f.$$typeof===t}function yr(){{if(zt.current){var f=G(zt.current.type);if(f)return`
22
22
 
23
- Check the render method of \``+h+"`."}return""}}function br(h){return""}var zr={};function _r(h){{var j=yr();if(!j){var L=typeof h=="string"?h:h.displayName||h.name;L&&(j=`
23
+ Check the render method of \``+f+"`."}return""}}function _r(f){return""}var zr={};function br(f){{var w=yr();if(!w){var M=typeof f=="string"?f:f.displayName||f.name;M&&(w=`
24
24
 
25
- Check the top-level render call using <`+L+">.")}return j}}function Gt(h,j){{if(!h._store||h._store.validated||h.key!=null)return;h._store.validated=!0;var L=_r(j);if(zr[L])return;zr[L]=!0;var F="";h&&h._owner&&h._owner!==Vt.current&&(F=" It was passed a child from "+Q(h._owner.type)+"."),St(h),C('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',L,F),St(null)}}function zt(h,j){{if(typeof h!="object")return;if(Lt(h))for(var L=0;L<h.length;L++){var F=h[L];Nt(F)&&Gt(F,j)}else if(Nt(h))h._store&&(h._store.validated=!0);else if(h){var H=b(h);if(typeof H=="function"&&H!==h.entries)for(var he=H.call(h),oe;!(oe=he.next()).done;)Nt(oe.value)&&Gt(oe.value,j)}}}function zn(h){{var j=h.type;if(j==null||typeof j=="string")return;var L;if(typeof j=="function")L=j.propTypes;else if(typeof j=="object"&&(j.$$typeof===c||j.$$typeof===m))L=j.propTypes;else return;if(L){var F=Q(j);Be(L,h.props,"prop",F,h)}else if(j.PropTypes!==void 0&&!$t){$t=!0;var H=Q(j);C("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",H||"Unknown")}typeof j.getDefaultProps=="function"&&!j.getDefaultProps.isReactClassApproved&&C("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Wn(h){{for(var j=Object.keys(h.props),L=0;L<j.length;L++){var F=j[L];if(F!=="children"&&F!=="key"){St(h),C("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",F),St(null);break}}h.ref!==null&&(St(h),C("Invalid attribute `ref` supplied to `React.Fragment`."),St(null))}}var Wr={};function Hr(h,j,L,F,H,he){{var oe=Re(h);if(!oe){var K="";(h===void 0||typeof h=="object"&&h!==null&&Object.keys(h).length===0)&&(K+=" 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 ze=br();ze?K+=ze:K+=yr();var Ie;h===null?Ie="null":Lt(h)?Ie="array":h!==void 0&&h.$$typeof===t?(Ie="<"+(Q(h.type)||"Unknown")+" />",K=" Did you accidentally export a JSX literal instead of a component?"):Ie=typeof h,C("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Ie,K)}var Ne=Et(h,j,L,H,he);if(Ne==null)return Ne;if(oe){var ot=j.children;if(ot!==void 0)if(F)if(Lt(ot)){for(var Wt=0;Wt<ot.length;Wt++)zt(ot[Wt],h);Object.freeze&&Object.freeze(ot)}else C("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 zt(ot,h)}if(Ae.call(j,"key")){var Ft=Q(h),Ke=Object.keys(j).filter(function(Xi){return Xi!=="key"}),Xn=Ke.length>0?"{key: someKey, "+Ke.join(": ..., ")+": ...}":"{key: someKey}";if(!Wr[Ft+Xn]){var Ki=Ke.length>0?"{"+Ke.join(": ..., ")+": ...}":"{}";C(`A props object containing a "key" prop is being spread into JSX:
25
+ Check the top-level render call using <`+M+">.")}return w}}function Wt(f,w){{if(!f._store||f._store.validated||f.key!=null)return;f._store.validated=!0;var M=br(w);if(zr[M])return;zr[M]=!0;var T="";f&&f._owner&&f._owner!==zt.current&&(T=" It was passed a child from "+G(f._owner.type)+"."),gt(f),R('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',M,T),gt(null)}}function Ht(f,w){{if(typeof f!="object")return;if(Et(f))for(var M=0;M<f.length;M++){var T=f[M];Nt(T)&&Wt(T,w)}else if(Nt(f))f._store&&(f._store.validated=!0);else if(f){var U=g(f);if(typeof U=="function"&&U!==f.entries)for(var ee=U.call(f),V;!(V=ee.next()).done;)Nt(V.value)&&Wt(V.value,w)}}}function Gn(f){{var w=f.type;if(w==null||typeof w=="string")return;var M;if(typeof w=="function")M=w.propTypes;else if(typeof w=="object"&&(w.$$typeof===c||w.$$typeof===h))M=w.propTypes;else return;if(M){var T=G(w);Re(M,f.props,"prop",T,f)}else if(w.PropTypes!==void 0&&!It){It=!0;var U=G(w);R("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",U||"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 zn(f){{for(var w=Object.keys(f.props),M=0;M<w.length;M++){var T=w[M];if(T!=="children"&&T!=="key"){gt(f),R("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",T),gt(null);break}}f.ref!==null&&(gt(f),R("Invalid attribute `ref` supplied to `React.Fragment`."),gt(null))}}var Wr={};function Hr(f,w,M,T,U,ee){{var V=ce(f);if(!V){var B="";(f===void 0||typeof f=="object"&&f!==null&&Object.keys(f).length===0)&&(B+=" 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 Le=_r();Le?B+=Le:B+=yr();var pe;f===null?pe="null":Et(f)?pe="array":f!==void 0&&f.$$typeof===t?(pe="<"+(G(f.type)||"Unknown")+" />",B=" Did you accidentally export a JSX literal instead of a component?"):pe=typeof f,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,B)}var be=Ct(f,w,M,U,ee);if(be==null)return be;if(V){var Ke=w.children;if(Ke!==void 0)if(T)if(Et(Ke)){for(var Kt=0;Kt<Ke.length;Kt++)Ht(Ke[Kt],f);Object.freeze&&Object.freeze(Ke)}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 Ht(Ke,f)}if(me.call(w,"key")){var $t=G(f),Ee=Object.keys(w).filter(function(Ai){return Ai!=="key"}),Xn=Ee.length>0?"{key: someKey, "+Ee.join(": ..., ")+": ...}":"{key: someKey}";if(!Wr[$t+Xn]){var Pi=Ee.length>0?"{"+Ee.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} />`,Xn,Ft,Ki,Ft),Wr[Ft+Xn]=!0}}return h===n?Wn(Ne):zn(Ne),Ne}}function Hn(h,j,L){return Hr(h,j,L,!0)}function qn(h,j,L){return Hr(h,j,L,!1)}var vr=qn,Kn=Hn;xr.Fragment=n,xr.jsx=vr,xr.jsxs=Kn}()),xr}process.env.NODE_ENV==="production"?_o.exports=al():_o.exports=sl();var s=_o.exports;const il={$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"},Yn="dark-plus",ll=e=>{const t=oa.useMonaco(),r=U.useTheme();async function n(o){o.languages.register({id:"wandelscript"}),o.languages.setLanguageConfiguration("wandelscript",{comments:{lineComment:"#"},brackets:[["(",")"],["[","]"]],autoClosingPairs:[{open:"[",close:"]"},{open:"(",close:")"}],surroundingPairs:[{open:"[",close:"]"},{open:"(",close:")"}]});const a=await Yi.createHighlighter({langs:[il],themes:[Yn]});Zi.shikiToMonaco(a,o),o.editor.defineTheme(Yn,{base:r.palette.mode==="dark"?"vs-dark":"vs",inherit:!0,rules:[],colors:{"editor.background":"#262F42","editorLineNumber.foreground":"#797979","editorLineNumber.activeForeground":"#e9e9e9"}}),e.monacoSetup&&e.monacoSetup(o)}return je.useEffect(()=>{t&&n(t)},[t]),t?s.jsx(oa,{value:e.code,onChange:e.onChange,defaultLanguage:"wandelscript",theme:Yn,options:{minimap:{enabled:!1},wordWrap:"on",automaticLayout:!0,...e.monacoOptions}}):null},cl="(^joint_[0-9]+$)|(_J[0-9]+$)";function Ss(e){return e.children.length===0?[e]:[e,...e.children.flatMap(t=>Ss(t))]}function ul(e,t){return new RegExp(t??cl).test(e)}function xs(e,t){return Ss(e).filter(r=>ul(r.name,t))}function jn(e){je.useEffect(e,[])}function ws(e){jn(()=>Ar.autorun(e))}function Rs(e,t,r){jn(()=>Ar.reaction(e,t,r))}function ir(e){return jn(()=>{let t;function r(){e(),t=requestAnimationFrame(r)}return t=requestAnimationFrame(r),()=>{cancelAnimationFrame(t)}})}function Ue({rapidlyChangingMotionState:e,robotRootObjectName:t,onRotationChanged:r,jointCollector:n}){x.Globals.assign({frameLoop:"always"});const o=je.useRef([]),a=je.useRef([]),{scene:i,invalidate:l}=Qi.useThree();je.useEffect(()=>{const f=i.getObjectByName(t);f&&(a.current=n?n(f):xs(f),u(),l())},[]);function c(f){o.current=f,m.start(Object.assign({},o.current))}function u(){const f=a.current.map((_,g)=>d[g].get());r(a.current,f)}ws(()=>{const f=e.state.joint_position.joints.filter(_=>_!==void 0);requestAnimationFrame(()=>c(f))});const[d,m]=x.useSpring(()=>({...Object.assign({},e.state.joint_position.joints),onChange:()=>{u(),l()},onResolve:()=>{u()}}));return null}function dl({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=we.useGLTF(e),o=n.nodes,a=n.materials;function i(l,c){l.forEach((u,d)=>u.rotation.y=c[d])}return s.jsxs(s.Fragment,{children:[s.jsx(Ue,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:i}),s.jsx("group",{...r,dispose:null,children:s.jsx("group",{name:"Scene",children:s.jsxs("group",{name:"UR3",rotation:[Math.PI/2,0,0],children:[s.jsxs(x.animated.group,{name:"UR3_J01",rotation:[-Math.PI/2,0,0],children:[s.jsxs(x.animated.group,{name:"UR3_J02",position:[0,.152,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(x.animated.group,{name:"UR3_J03",position:[-.244,0,0],children:[s.jsxs(x.animated.group,{name:"UR3_J04",position:[-.213,0,0],children:[s.jsxs(x.animated.group,{name:"UR3_J05",position:[0,.112,0],rotation:[Math.PI/2,0,0],children:[s.jsx("mesh",{name:"UR3_05",castShadow:!0,receiveShadow:!0,geometry:o.UR3_05.geometry,material:a.Standard}),s.jsxs(x.animated.group,{name:"UR3_J06",position:[0,.085,0],rotation:[-Math.PI/2,0,0],children:[s.jsx("group",{name:"UR3_FLG",position:[0,.082,0]}),s.jsx("mesh",{name:"UR3_L06",castShadow:!0,receiveShadow:!0,geometry:o.UR3_L06.geometry,material:a.Standard})]})]}),s.jsx("mesh",{name:"UR3_L04",castShadow:!0,receiveShadow:!0,geometry:o.UR3_L04.geometry,material:a.Standard})]}),s.jsx("mesh",{name:"UR3_L03",castShadow:!0,receiveShadow:!0,geometry:o.UR3_L03.geometry,material:a.Standard})]}),s.jsx("mesh",{name:"UR3_L02",castShadow:!0,receiveShadow:!0,geometry:o.UR3_L02.geometry,material:a.Standard})]}),s.jsx("mesh",{name:"UR3_L01",castShadow:!0,receiveShadow:!0,geometry:o.UR3_L01.geometry,material:a.Standard})]}),s.jsx("mesh",{name:"UR3_L00",castShadow:!0,receiveShadow:!0,geometry:o.UR3_L00.geometry,material:a.Standard,rotation:[-Math.PI/2,0,0]})]})})})]})}function fl({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=we.useGLTF(e),o=n.nodes,a=n.materials;function i(l,c){l.forEach((u,d)=>u.rotation.y=c[d])}return s.jsxs(s.Fragment,{children:[s.jsx(Ue,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:i}),s.jsx("group",{...r,dispose:null,children:s.jsx("group",{name:"Scene",children:s.jsxs(x.animated.group,{name:"UR3e",rotation:[Math.PI/2,0,0],children:[s.jsxs(x.animated.group,{name:"UR3e_J01",rotation:[-Math.PI/2,0,0],children:[s.jsxs(x.animated.group,{name:"UR3e_J02",position:[0,.152,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(x.animated.group,{name:"UR3e_J03",position:[-.244,0,0],children:[s.jsxs(x.animated.group,{name:"UR3e_J04",position:[-.213,0,0],children:[s.jsxs(x.animated.group,{name:"UR3e_J05",position:[0,.131,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(x.animated.group,{name:"UR3e_J06",position:[0,.085,0],rotation:[-Math.PI/2,0,0],children:[s.jsx("group",{name:"UR3e_FLG",position:[0,.092,0]}),s.jsx("mesh",{name:"UR3e_L06",castShadow:!0,receiveShadow:!0,geometry:o.UR3e_L06.geometry,material:a.Standard})]}),s.jsx("mesh",{name:"UR3e_L05",castShadow:!0,receiveShadow:!0,geometry:o.UR3e_L05.geometry,material:a.Standard})]}),s.jsx("mesh",{name:"UR3e_L04",castShadow:!0,receiveShadow:!0,geometry:o.UR3e_L04.geometry,material:a.Standard})]}),s.jsx("mesh",{name:"UR3e_L03",castShadow:!0,receiveShadow:!0,geometry:o.UR3e_L03.geometry,material:a.Standard})]}),s.jsx("mesh",{name:"UR3e_L02",castShadow:!0,receiveShadow:!0,geometry:o.UR3e_L02.geometry,material:a.Standard})]}),s.jsx("mesh",{name:"UR3e_L01",castShadow:!0,receiveShadow:!0,geometry:o.UR3e_L01.geometry,material:a.Standard})]}),s.jsx("mesh",{name:"UR3e_L00",castShadow:!0,receiveShadow:!0,geometry:o.UR3e_L00.geometry,material:a.Standard,rotation:[-Math.PI/2,0,0]})]})})})]})}function ml({modelURL:e,rapidlyChangingMotionState:t,...r}){const o=we.useGLTF(e).nodes;function a(i,l){i.forEach((c,u)=>c.rotation.y=l[u])}return s.jsxs(s.Fragment,{children:[s.jsx(Ue,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:a}),s.jsx("group",{...r,dispose:null,children:s.jsx("group",{name:"Scene",children:s.jsxs("group",{name:"UR5",rotation:[Math.PI/2,0,0],children:[s.jsxs(x.animated.group,{name:"UR5_J01",rotation:[-Math.PI/2,0,0],children:[s.jsxs(x.animated.group,{name:"UR5_J02",position:[0,.089,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(x.animated.group,{name:"UR5_J03",position:[-.425,0,0],children:[s.jsxs(x.animated.group,{name:"UR5_J04",position:[-.392,0,0],children:[s.jsxs(x.animated.group,{name:"UR5_J05",position:[0,.109,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(x.animated.group,{name:"UR5_J06",position:[0,.095,0],rotation:[-Math.PI/2,0,0],children:[s.jsx("group",{name:"UR5_FLG",position:[0,.082,0]}),s.jsx("mesh",{name:"UR5_L06",castShadow:!0,receiveShadow:!0,geometry:o.UR5_L06.geometry,material:o.UR5_L06.material})]}),s.jsx("mesh",{name:"UR5_L05",castShadow:!0,receiveShadow:!0,geometry:o.UR5_L05.geometry,material:o.UR5_L05.material})]}),s.jsx("mesh",{name:"UR5_L04",castShadow:!0,receiveShadow:!0,geometry:o.UR5_L04.geometry,material:o.UR5_L04.material})]}),s.jsx("mesh",{name:"UR5_L03",castShadow:!0,receiveShadow:!0,geometry:o.UR5_L03.geometry,material:o.UR5_L03.material})]}),s.jsx("mesh",{name:"UR5_L02",castShadow:!0,receiveShadow:!0,geometry:o.UR5_L02.geometry,material:o.UR5_L02.material})]}),s.jsx("mesh",{name:"UR5_L01",castShadow:!0,receiveShadow:!0,geometry:o.UR5_L01.geometry,material:o.UR5_L01.material})]}),s.jsx("mesh",{name:"UR5_L00",castShadow:!0,receiveShadow:!0,geometry:o.UR5_L00.geometry,material:o.UR5_L00.material,rotation:[-Math.PI/2,0,0]})]})})})]})}function hl({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=we.useGLTF(e),o=n.nodes,a=n.materials;function i(l,c){l.forEach((u,d)=>u.rotation.y=c[d])}return s.jsxs(s.Fragment,{children:[s.jsx(Ue,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:i}),s.jsx("group",{...r,dispose:null,children:s.jsx("group",{name:"Scene",children:s.jsxs("group",{name:"UR5e",rotation:[Math.PI/2,0,0],children:[s.jsxs(x.animated.group,{name:"UR5e_J01",rotation:[-Math.PI/2,0,0],children:[s.jsxs(x.animated.group,{name:"UR5e_J02",position:[0,.162,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(x.animated.group,{name:"UR5e_J03",position:[-.425,0,0],children:[s.jsxs(x.animated.group,{name:"UR5e_J04",position:[-.392,0,0],children:[s.jsxs(x.animated.group,{name:"UR5e_J05",position:[0,.133,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(x.animated.group,{name:"UR5e_J06",position:[0,.1,0],rotation:[-Math.PI/2,0,0],children:[s.jsx("group",{name:"UR5e_FLG",position:[0,.1,0]}),s.jsx("group",{name:"UR5e_L06",position:[0,.1,0],rotation:[0,0,-Math.PI],children:s.jsxs(s.Fragment,{children:[s.jsx("mesh",{name:"C-1000255",castShadow:!0,receiveShadow:!0,geometry:o["C-1000255"].geometry,material:a.Black}),s.jsx("mesh",{name:"C-1000255_1",castShadow:!0,receiveShadow:!0,geometry:o["C-1000255_1"].geometry,material:a.Metal})]})})]}),s.jsx("group",{name:"UR5e_L05",rotation:[-Math.PI/2,-Math.PI/3,0],children:s.jsxs(s.Fragment,{children:[s.jsx("mesh",{name:"C-1000253",castShadow:!0,receiveShadow:!0,geometry:o["C-1000253"].geometry,material:a.Blue}),s.jsx("mesh",{name:"C-1000253_1",castShadow:!0,receiveShadow:!0,geometry:o["C-1000253_1"].geometry,material:a.Black}),s.jsx("mesh",{name:"C-1000253_2",castShadow:!0,receiveShadow:!0,geometry:o["C-1000253_2"].geometry,material:a.Metal}),s.jsx("mesh",{name:"C-1000253_3",castShadow:!0,receiveShadow:!0,geometry:o["C-1000253_3"].geometry,material:a.DarkGray})]})})]}),s.jsx("group",{name:"UR5e_L04",rotation:[0,-Math.PI/3,0],children:s.jsxs(s.Fragment,{children:[s.jsx("mesh",{name:"C-1000251",castShadow:!0,receiveShadow:!0,geometry:o["C-1000251"].geometry,material:a.Blue}),s.jsx("mesh",{name:"C-1000251_1",castShadow:!0,receiveShadow:!0,geometry:o["C-1000251_1"].geometry,material:a.Black}),s.jsx("mesh",{name:"C-1000251_2",castShadow:!0,receiveShadow:!0,geometry:o["C-1000251_2"].geometry,material:a.Metal}),s.jsx("mesh",{name:"C-1000251_3",castShadow:!0,receiveShadow:!0,geometry:o["C-1000251_3"].geometry,material:a.DarkGray})]})})]}),s.jsx("group",{name:"UR5e_L03",children:s.jsxs(s.Fragment,{children:[s.jsx("mesh",{name:"C-1000250",castShadow:!0,receiveShadow:!0,geometry:o["C-1000250"].geometry,material:a.Black}),s.jsx("mesh",{name:"C-1000250_1",castShadow:!0,receiveShadow:!0,geometry:o["C-1000250_1"].geometry,material:a.DarkGray}),s.jsx("mesh",{name:"C-1000250_2",castShadow:!0,receiveShadow:!0,geometry:o["C-1000250_2"].geometry,material:a.Blue}),s.jsx("mesh",{name:"C-1000250_3",castShadow:!0,receiveShadow:!0,geometry:o["C-1000250_3"].geometry,material:a.Metal}),s.jsx("mesh",{name:"C-1000250_4",castShadow:!0,receiveShadow:!0,geometry:o["C-1000250_4"].geometry,material:a.Metal})]})})]}),s.jsx("group",{name:"UR5e_L02",rotation:[0,-Math.PI/2,0],children:s.jsxs(s.Fragment,{children:[s.jsx("mesh",{name:"C-1000249",castShadow:!0,receiveShadow:!0,geometry:o["C-1000249"].geometry,material:a.Metal}),s.jsx("mesh",{name:"C-1000249_1",castShadow:!0,receiveShadow:!0,geometry:o["C-1000249_1"].geometry,material:a.Black}),s.jsx("mesh",{name:"C-1000249_2",castShadow:!0,receiveShadow:!0,geometry:o["C-1000249_2"].geometry,material:a.DarkGray}),s.jsx("mesh",{name:"C-1000249_3",castShadow:!0,receiveShadow:!0,geometry:o["C-1000249_3"].geometry,material:a.Blue}),s.jsx("mesh",{name:"C-1000249_4",castShadow:!0,receiveShadow:!0,geometry:o["C-1000249_4"].geometry,material:a.Metal})]})})]}),s.jsx("group",{name:"UR5e_L01",rotation:[Math.PI/2,0,0],children:s.jsxs(s.Fragment,{children:[s.jsx("mesh",{name:"C-1000248",castShadow:!0,receiveShadow:!0,geometry:o["C-1000248"].geometry,material:a.DarkGray}),s.jsx("mesh",{name:"C-1000248_1",castShadow:!0,receiveShadow:!0,geometry:o["C-1000248_1"].geometry,material:a.Black}),s.jsx("mesh",{name:"C-1000248_2",castShadow:!0,receiveShadow:!0,geometry:o["C-1000248_2"].geometry,material:a.Blue}),s.jsx("mesh",{name:"C-1000248_3",castShadow:!0,receiveShadow:!0,geometry:o["C-1000248_3"].geometry,material:a.Metal})]})})]}),s.jsx("group",{name:"UR5e_L00",children:s.jsxs(s.Fragment,{children:[s.jsx("mesh",{name:"C-1000257",castShadow:!0,receiveShadow:!0,geometry:o["C-1000257"].geometry,material:a.Black}),s.jsx("mesh",{name:"C-1000257_1",castShadow:!0,receiveShadow:!0,geometry:o["C-1000257_1"].geometry,material:a.Metal})]})})]})})})]})}function pl({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=we.useGLTF(e),o=n.nodes,a=n.materials;function i(l,c){l.forEach((u,d)=>u.rotation.y=c[d])}return s.jsxs(s.Fragment,{children:[s.jsx(Ue,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:i}),s.jsx("group",{...r,dispose:null,children:s.jsx("group",{name:"Scene",children:s.jsxs("group",{name:"UR10",rotation:[Math.PI/2,0,0],children:[s.jsxs(x.animated.group,{name:"UR10_J01",rotation:[-Math.PI/2,0,0],children:[s.jsxs(x.animated.group,{name:"UR10_J02",position:[0,.126,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(x.animated.group,{name:"UR10_J03",position:[-.612,0,0],children:[s.jsxs(x.animated.group,{name:"UR10_J04",position:[-.572,0,0],children:[s.jsxs(x.animated.group,{name:"UR10_J05",position:[0,.164,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(x.animated.group,{name:"UR10_J06",position:[0,.116,0],rotation:[-Math.PI/2,0,0],children:[s.jsx("group",{name:"UR10_FLG",position:[0,.092,0]}),s.jsx("mesh",{name:"UR10_L06",castShadow:!0,receiveShadow:!0,geometry:o.UR10_L06.geometry,material:a.Standard})]}),s.jsx("mesh",{name:"UR10_L05",castShadow:!0,receiveShadow:!0,geometry:o.UR10_L05.geometry,material:a.Standard})]}),s.jsx("mesh",{name:"UR10_L04",castShadow:!0,receiveShadow:!0,geometry:o.UR10_L04.geometry,material:a.Standard})]}),s.jsx("mesh",{name:"UR10_L03",castShadow:!0,receiveShadow:!0,geometry:o.UR10_L03.geometry,material:a.Standard})]}),s.jsx("mesh",{name:"UR10_L02",castShadow:!0,receiveShadow:!0,geometry:o.UR10_L02.geometry,material:a.Standard})]}),s.jsx("mesh",{name:"UR10_L01",castShadow:!0,receiveShadow:!0,geometry:o.UR10_L01.geometry,material:a.Standard})]}),s.jsx("mesh",{name:"UR10_L00",castShadow:!0,receiveShadow:!0,geometry:o.UR10_L00.geometry,material:a.Standard,rotation:[-Math.PI/2,0,0]})]})})})]})}function gl({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=we.useGLTF(e),o=n.nodes,a=n.materials;function i(l,c){l.forEach((u,d)=>u.rotation.y=c[d])}return s.jsxs(s.Fragment,{children:[s.jsx(Ue,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:i}),s.jsx("group",{...r,dispose:null,children:s.jsx("group",{name:"Scene",children:s.jsxs("group",{name:"UR10e",rotation:[Math.PI/2,0,0],children:[s.jsxs(x.animated.group,{name:"UR10e_J01",rotation:[-Math.PI/2,0,0],children:[s.jsxs(x.animated.group,{name:"UR10e_J02",position:[0,.181,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(x.animated.group,{name:"UR10e_J03",position:[-.613,0,0],children:[s.jsxs(x.animated.group,{name:"UR10e_J04",position:[-.572,0,0],children:[s.jsxs(x.animated.group,{name:"UR10e_J05",position:[0,.174,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(x.animated.group,{name:"UR10e_J06",position:[0,.12,0],rotation:[-Math.PI/2,0,0],children:[s.jsxs(x.animated.group,{name:"UR10e_FLG",position:[1.184,-.174,.061],rotation:[-Math.PI/2,0,0],children:[s.jsx("mesh",{name:"C-1000493",geometry:o["C-1000493"].geometry,material:a.Black,castShadow:!0,receiveShadow:!0}),s.jsx("mesh",{name:"C-1000493_1",geometry:o["C-1000493_1"].geometry,material:a.Metal,castShadow:!0,receiveShadow:!0})]}),s.jsx("group",{name:"UR10e_L07",position:[0,.117,0]})]}),s.jsxs("group",{name:"UR10e_L06",position:[1.184,.181,.174],rotation:[Math.PI,0,0],children:[s.jsx("mesh",{name:"C-1000492",geometry:o["C-1000492"].geometry,material:a.DarkGray,castShadow:!0,receiveShadow:!0}),s.jsx("mesh",{name:"C-1000492_1",geometry:o["C-1000492_1"].geometry,material:a.Black,castShadow:!0,receiveShadow:!0}),s.jsx("mesh",{name:"C-1000492_2",geometry:o["C-1000492_2"].geometry,material:a.Blue,castShadow:!0,receiveShadow:!0}),s.jsx("mesh",{name:"C-1000492_3",geometry:o["C-1000492_3"].geometry,material:a.Screw,castShadow:!0,receiveShadow:!0})]})]}),s.jsxs("group",{name:"UR10e_L05",position:[1.184,0,.181],rotation:[-Math.PI/2,0,0],children:[s.jsx("mesh",{name:"C-1000491",geometry:o["C-1000491"].geometry,material:a.DarkGray,castShadow:!0,receiveShadow:!0}),s.jsx("mesh",{name:"C-1000491_1",geometry:o["C-1000491_1"].geometry,material:a.Blue,castShadow:!0,receiveShadow:!0}),s.jsx("mesh",{name:"C-1000491_2",geometry:o["C-1000491_2"].geometry,material:a.Black,castShadow:!0,receiveShadow:!0}),s.jsx("mesh",{name:"C-1000491_3",geometry:o["C-1000491_3"].geometry,material:a.Screw,castShadow:!0,receiveShadow:!0})]})]}),s.jsxs("group",{name:"UR10e_L04",position:[.613,0,.181],rotation:[-Math.PI/2,0,0],children:[s.jsx("mesh",{name:"C-1000490",geometry:o["C-1000490"].geometry,material:a.Metal,castShadow:!0,receiveShadow:!0}),s.jsx("mesh",{name:"C-1000490_1",geometry:o["C-1000490_1"].geometry,material:a.Black,castShadow:!0,receiveShadow:!0}),s.jsx("mesh",{name:"C-1000490_2",geometry:o["C-1000490_2"].geometry,material:a.DarkGray,castShadow:!0,receiveShadow:!0}),s.jsx("mesh",{name:"C-1000490_3",geometry:o["C-1000490_3"].geometry,material:a.Blue,castShadow:!0,receiveShadow:!0})]})]}),s.jsxs(x.animated.group,{name:"UR10e_L03",position:[0,0,.181],rotation:[-Math.PI/2,0,0],children:[s.jsx("mesh",{name:"C-1000489",geometry:o["C-1000489"].geometry,material:a.Blue,castShadow:!0,receiveShadow:!0}),s.jsx("mesh",{name:"C-1000489_1",geometry:o["C-1000489_1"].geometry,material:a.Black,castShadow:!0,receiveShadow:!0}),s.jsx("mesh",{name:"C-1000489_2",geometry:o["C-1000489_2"].geometry,material:a.DarkGray,castShadow:!0,receiveShadow:!0}),s.jsx("mesh",{name:"C-1000489_3",geometry:o["C-1000489_3"].geometry,material:a.Screw,castShadow:!0,receiveShadow:!0}),s.jsx("mesh",{name:"C-1000489_4",geometry:o["C-1000489_4"].geometry,material:a.Metal,castShadow:!0,receiveShadow:!0})]})]}),s.jsxs("group",{name:"UR10e_L02",children:[s.jsx("mesh",{name:"C-1000488",geometry:o["C-1000488"].geometry,material:a.Black,castShadow:!0,receiveShadow:!0}),s.jsx("mesh",{name:"C-1000488_1",geometry:o["C-1000488_1"].geometry,material:a.Blue,castShadow:!0,receiveShadow:!0}),s.jsx("mesh",{name:"C-1000488_2",geometry:o["C-1000488_2"].geometry,material:a.Screw,castShadow:!0,receiveShadow:!0}),s.jsx("mesh",{name:"C-1000488_3",geometry:o["C-1000488_3"].geometry,material:a.DarkGray,castShadow:!0,receiveShadow:!0})]})]}),s.jsxs("group",{name:"UR10e_L01",rotation:[-Math.PI/2,0,0],children:[s.jsx("mesh",{name:"C-1000487",geometry:o["C-1000487"].geometry,material:a.Black,castShadow:!0,receiveShadow:!0}),s.jsx("mesh",{name:"C-1000487_1",geometry:o["C-1000487_1"].geometry,material:a.Metal,castShadow:!0,receiveShadow:!0})]})]})})})]})}function la({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=we.useGLTF(e),o=n.nodes,a=n.materials,i=[0,-Math.PI/2,0,0,0,0];function l(c,u){c.forEach((d,m)=>d.rotation.y=u[m]+i[m])}return s.jsxs(s.Fragment,{children:[s.jsx(Ue,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:l}),s.jsx("group",{...r,dispose:null,children:s.jsx("group",{name:"Scene",children:s.jsxs("group",{name:"AR900",rotation:[Math.PI/2,0,0],children:[s.jsxs(x.animated.group,{name:"AR900_J01",rotation:[-Math.PI/2,0,0],children:[s.jsxs(x.animated.group,{name:"AR900_J02",position:[.04,0,0],rotation:[-Math.PI/2,-Math.PI/2,0],children:[s.jsxs(x.animated.group,{name:"AR900_J03",position:[.445,0,0],rotation:[-Math.PI,0,0],children:[s.jsxs(x.animated.group,{name:"AR900_J04",position:[.04,0,0],rotation:[-Math.PI/2,0,0],children:[s.jsxs(x.animated.group,{name:"AR900_J05",position:[0,-.44,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(x.animated.group,{name:"AR900_J06",rotation:[-Math.PI/2,0,0],children:[s.jsx("group",{name:"AR900_FLG",position:[0,-.08,0],rotation:[-Math.PI,0,0]}),s.jsx("mesh",{name:"AR900_L06",castShadow:!0,receiveShadow:!0,geometry:o.AR900_L06.geometry,material:a["#BBA474.001"]})]}),s.jsx("mesh",{name:"AR900_L05",castShadow:!0,receiveShadow:!0,geometry:o.AR900_L05.geometry,material:a["#0056b9.001"]})]}),s.jsx("mesh",{name:"AR900_L04",castShadow:!0,receiveShadow:!0,geometry:o.AR900_L04.geometry,material:a["#0056b9.001"]})]}),s.jsx("mesh",{name:"AR900_L03",castShadow:!0,receiveShadow:!0,geometry:o.AR900_L03.geometry,material:a["#0056b9.001"]})]}),s.jsx("mesh",{name:"AR900_L02",castShadow:!0,receiveShadow:!0,geometry:o.AR900_L02.geometry,material:a["#0056b9.001"]})]}),s.jsx("mesh",{name:"AR900_L01",castShadow:!0,receiveShadow:!0,geometry:o.AR900_L01.geometry,material:a["#0056b9.001"]})]}),s.jsx("mesh",{name:"AR900_L00",castShadow:!0,receiveShadow:!0,geometry:o.AR900_L00.geometry,material:a["#0056b9.001"],rotation:[-Math.PI/2,0,0]})]})})})]})}function yl({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=we.useGLTF(e),o=n.nodes,a=n.materials,i=[0,-Math.PI/2,0,0,0,0],l=[1,-1,1,1,1,1];function c(u,d){u.forEach((m,f)=>m.rotation.y=l[f]*d[f]+i[f])}return s.jsxs(s.Fragment,{children:[s.jsx(Ue,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:c}),s.jsx("group",{...r,dispose:null,children:s.jsx("group",{name:"Scene",children:s.jsxs("group",{name:"AR1440",rotation:[Math.PI/2,0,0],children:[s.jsxs(x.animated.group,{name:"AR1440_J01",rotation:[-Math.PI/2,0,0],children:[s.jsxs(x.animated.group,{name:"AR1440_J02",position:[.155,0,0],rotation:[Math.PI/2,0,Math.PI],children:[s.jsxs(x.animated.group,{name:"AR1440_J03",position:[.614,0,0],rotation:[Math.PI,0,0],children:[s.jsxs(x.animated.group,{name:"AR1440_J04",position:[.2,0,0],rotation:[-Math.PI/2,0,0],children:[s.jsxs(x.animated.group,{name:"AR1440_J05",position:[0,-.64,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(x.animated.group,{name:"AR1440_J06",rotation:[-Math.PI/2,0,0],children:[s.jsx("group",{name:"AR1440_FLG",position:[0,-.1,0],rotation:[-Math.PI,0,0]}),s.jsx("mesh",{name:"AR1440_L06_CAD",castShadow:!0,receiveShadow:!0,geometry:o.AR1440_L06_CAD.geometry,material:a.metall})]}),s.jsx("mesh",{name:"AR1440_L05_CAD",castShadow:!0,receiveShadow:!0,geometry:o.AR1440_L05_CAD.geometry,material:a.yaskawaBlueMetall})]}),s.jsxs("group",{name:"AR1440_L04_CAD",children:[s.jsx("mesh",{name:"AR1440_L04_CAD001",castShadow:!0,receiveShadow:!0,geometry:o.AR1440_L04_CAD001.geometry,material:a.yaskawaBlueMetall}),s.jsx("mesh",{name:"AR1440_L04_CAD001_1",castShadow:!0,receiveShadow:!0,geometry:o.AR1440_L04_CAD001_1.geometry,material:a.white})]})]}),s.jsxs("group",{name:"AR1440_L03_CAD",children:[s.jsx("mesh",{name:"AR1440_L03_CAD001",castShadow:!0,receiveShadow:!0,geometry:o.AR1440_L03_CAD001.geometry,material:a.yaskawaBlueMetall}),s.jsx("mesh",{name:"AR1440_L03_CAD001_1",castShadow:!0,receiveShadow:!0,geometry:o.AR1440_L03_CAD001_1.geometry,material:a.blackMetall})]})]}),s.jsx("mesh",{name:"AR1440_L02_CAD",castShadow:!0,receiveShadow:!0,geometry:o.AR1440_L02_CAD.geometry,material:a.yaskawaBlueMetall})]}),s.jsxs("group",{name:"AR1440_L01_CAD",children:[s.jsx("mesh",{name:"AR1440_L01_CAD001",castShadow:!0,receiveShadow:!0,geometry:o.AR1440_L01_CAD001.geometry,material:a.yaskawaBlueMetall}),s.jsx("mesh",{name:"AR1440_L01_CAD001_1",castShadow:!0,receiveShadow:!0,geometry:o.AR1440_L01_CAD001_1.geometry,material:a.blackMetall})]})]}),s.jsx("mesh",{name:"AR1440_L00_CAD",castShadow:!0,receiveShadow:!0,geometry:o.AR1440_L00_CAD.geometry,material:a.yaskawaBlueMetall,position:[0,0,.45],rotation:[-Math.PI/2,0,0]})]})})})]})}function bl({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=we.useGLTF(e),o=n.nodes,a=n.materials,i=[0,-Math.PI/2,0,0,0,0],l=[1,-1,1,1,1,1];function c(u,d){u.forEach((m,f)=>m.rotation.y=l[f]*d[f]+i[f])}return s.jsxs(s.Fragment,{children:[s.jsx(Ue,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:c}),s.jsx("group",{...r,dispose:null,children:s.jsxs("group",{name:"Scene",children:[s.jsxs(x.animated.group,{name:"AR1730_J00",children:[s.jsxs(x.animated.group,{name:"AR1730_J01",position:[.15,0,0],rotation:[-Math.PI/2,-Math.PI/2,0],children:[s.jsxs(x.animated.group,{name:"AR1730_J02",position:[.76,0,0],rotation:[-Math.PI,0,0],children:[s.jsxs(x.animated.group,{name:"AR1730_J03",position:[.2,0,0],rotation:[-Math.PI/2,0,0],children:[s.jsxs(x.animated.group,{name:"AR1730_J04",position:[0,-.795,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(x.animated.group,{name:"AR1730_J05",rotation:[-Math.PI/2,0,0],children:[s.jsx("group",{name:"AR1730_FLG",position:[0,-.1,0],rotation:[-Math.PI,0,0]}),s.jsx("mesh",{name:"AR1730_L06",castShadow:!0,receiveShadow:!0,geometry:o.AR1730_L06.geometry,material:a.Metal,rotation:[Math.PI/2,-Math.PI/2,0]})]}),s.jsx("mesh",{name:"AR1730_L05",castShadow:!0,receiveShadow:!0,geometry:o.AR1730_L05.geometry,material:a.Blue,rotation:[Math.PI/2,0,Math.PI/2]})]}),s.jsxs("group",{name:"AR1730_L04",position:[0,-.302,0],rotation:[0,0,-Math.PI/2],children:[s.jsx("mesh",{name:"_R_AXIS_SW0001002",castShadow:!0,receiveShadow:!0,geometry:o._R_AXIS_SW0001002.geometry,material:a.Blue}),s.jsx("mesh",{name:"_R_AXIS_SW0001002_1",castShadow:!0,receiveShadow:!0,geometry:o._R_AXIS_SW0001002_1.geometry,material:a.White})]})]}),s.jsxs("group",{name:"AR1730_L03",rotation:[Math.PI/2,0,-Math.PI/2],children:[s.jsx("mesh",{name:"_U_AXIS_SW0001002",castShadow:!0,receiveShadow:!0,geometry:o._U_AXIS_SW0001002.geometry,material:a.Blue}),s.jsx("mesh",{name:"_U_AXIS_SW0001002_1",castShadow:!0,receiveShadow:!0,geometry:o._U_AXIS_SW0001002_1.geometry,material:a.Black})]})]}),s.jsx("mesh",{name:"AR1730_L02",castShadow:!0,receiveShadow:!0,geometry:o.AR1730_L02.geometry,material:a.Blue,position:[0,-.157,0],rotation:[-Math.PI,-1.571,0]})]}),s.jsxs("group",{name:"AR1730_L01",position:[0,-.336,0],rotation:[Math.PI/2,0,-Math.PI/2],children:[s.jsx("mesh",{name:"_S_AXIS_SW0001002",castShadow:!0,receiveShadow:!0,geometry:o._S_AXIS_SW0001002.geometry,material:a.Blue}),s.jsx("mesh",{name:"_S_AXIS_SW0001002_1",castShadow:!0,receiveShadow:!0,geometry:o._S_AXIS_SW0001002_1.geometry,material:a.Black})]})]}),s.jsx("mesh",{name:"AR1730_L00",castShadow:!0,receiveShadow:!0,geometry:o.AR1730_L00.geometry,material:a.Blue,position:[0,-.505,0],rotation:[Math.PI/2,0,-Math.PI/2]})]})})]})}function _l({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=we.useGLTF(e),o=n.nodes,a=n.materials,i=[0,-Math.PI/2,0,0,0,0],l=[1,-1,1,1,1,1];function c(u,d){u.forEach((m,f)=>m.rotation.y=l[f]*d[f]+i[f])}return s.jsxs(s.Fragment,{children:[s.jsx(Ue,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:c}),s.jsx("group",{...r,dispose:null,children:s.jsx("group",{name:"Scene",children:s.jsxs("group",{name:"AR2010",rotation:[Math.PI/2,0,0],children:[s.jsxs(x.animated.group,{name:"AR2010_J01",rotation:[-Math.PI/2,0,0],children:[s.jsxs(x.animated.group,{name:"AR2010_J02",position:[.15,0,0],rotation:[Math.PI/2,0,Math.PI],children:[s.jsxs(x.animated.group,{name:"AR2010_J03",position:[.76,0,0],rotation:[Math.PI,0,0],children:[s.jsxs(x.animated.group,{name:"AR2010_J04",position:[.2,0,0],rotation:[-Math.PI/2,0,0],children:[s.jsxs(x.animated.group,{name:"AR2010_J05",position:[0,-1.082,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(x.animated.group,{name:"AR2010_J06",rotation:[-Math.PI/2,0,0],children:[s.jsx("group",{name:"AR2010_FLG",position:[0,-.1,0],rotation:[-Math.PI,0,0]}),s.jsxs("group",{name:"AR2010_L06",children:[s.jsx("mesh",{name:"AR2010_06001",castShadow:!0,receiveShadow:!0,geometry:o.AR2010_06001.geometry,material:a.yaskawaBlueMetall}),s.jsx("mesh",{name:"AR2010_06001_1",castShadow:!0,receiveShadow:!0,geometry:o.AR2010_06001_1.geometry,material:a.metall})]})]}),s.jsx("mesh",{name:"AR2010_L05",castShadow:!0,receiveShadow:!0,geometry:o.AR2010_L05.geometry,material:a.yaskawaBlueMetall})]}),s.jsxs("group",{name:"AR2010_L04",children:[s.jsx("mesh",{name:"AR2010_04001",castShadow:!0,receiveShadow:!0,geometry:o.AR2010_04001.geometry,material:a.yaskawaBlueMetall}),s.jsx("mesh",{name:"AR2010_04001_1",castShadow:!0,receiveShadow:!0,geometry:o.AR2010_04001_1.geometry,material:a.white})]})]}),s.jsxs("group",{name:"AR2010_L03",children:[s.jsx("mesh",{name:"AR2010_03001",castShadow:!0,receiveShadow:!0,geometry:o.AR2010_03001.geometry,material:a.yaskawaBlueMetall}),s.jsx("mesh",{name:"AR2010_03001_1",castShadow:!0,receiveShadow:!0,geometry:o.AR2010_03001_1.geometry,material:a.blackMetall})]})]}),s.jsx("mesh",{name:"AR2010_L02",castShadow:!0,receiveShadow:!0,geometry:o.AR2010_L02.geometry,material:a.yaskawaBlueMetall})]}),s.jsxs("group",{name:"AR2010_L01",children:[s.jsx("mesh",{name:"AR2010_01001",castShadow:!0,receiveShadow:!0,geometry:o.AR2010_01001.geometry,material:a.yaskawaBlueMetall}),s.jsx("mesh",{name:"AR2010_01001_1",castShadow:!0,receiveShadow:!0,geometry:o.AR2010_01001_1.geometry,material:a.blackMetall})]})]}),s.jsx("mesh",{name:"AR2010_L00",castShadow:!0,receiveShadow:!0,geometry:o.AR2010_L00.geometry,material:a.yaskawaBlueMetall,rotation:[-Math.PI/2,0,0]})]})})})]})}function vl({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=we.useGLTF(e),o=n.nodes,a=n.materials,i=[0,-Math.PI/2,0,0,0,0],l=[1,-1,1,1,1,1];function c(u,d){u.forEach((m,f)=>m.rotation.y=l[f]*d[f]+i[f])}return s.jsxs(s.Fragment,{children:[s.jsx(Ue,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:c}),s.jsx("group",{...r,dispose:null,children:s.jsxs("group",{name:"Scene",children:[s.jsxs(x.animated.group,{name:"AR3120_J00",children:[s.jsxs(x.animated.group,{name:"AR3120_J01",position:[.145,0,0],rotation:[-Math.PI/2,-Math.PI/2,0],children:[s.jsxs(x.animated.group,{name:"AR3120_J02",position:[1.15,0,0],rotation:[-Math.PI,0,0],children:[s.jsxs(x.animated.group,{name:"AR3120_J03",position:[.25,0,0],rotation:[-Math.PI/2,0,0],children:[s.jsxs(x.animated.group,{name:"AR3120_J04",position:[0,-1.812,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(x.animated.group,{name:"AR3120_J05",rotation:[-Math.PI/2,0,0],children:[s.jsx("group",{name:"AR3120_FLG",position:[0,-.1,0],rotation:[-Math.PI,0,0]}),s.jsx("mesh",{name:"AR3120_L06",castShadow:!0,receiveShadow:!0,geometry:o.AR3120_L06.geometry,material:a["Metal.001"],rotation:[Math.PI/2,-Math.PI/2,0]})]}),s.jsx("mesh",{name:"AR3120_L05",castShadow:!0,receiveShadow:!0,geometry:o.AR3120_L05.geometry,material:a["Blue.001"],rotation:[Math.PI/2,0,Math.PI/2]})]}),s.jsxs("group",{name:"AR3120_L04",rotation:[Math.PI/2,-Math.PI/2,0],children:[s.jsx("mesh",{name:"R_AXIS_GP20HL001",castShadow:!0,receiveShadow:!0,geometry:o.R_AXIS_GP20HL001.geometry,material:a["Blue.001"]}),s.jsx("mesh",{name:"R_AXIS_GP20HL001_1",castShadow:!0,receiveShadow:!0,geometry:o.R_AXIS_GP20HL001_1.geometry,material:a["White.001"]})]})]}),s.jsxs("group",{name:"AR3120_L03",rotation:[Math.PI,0,-Math.PI/2],children:[s.jsx("mesh",{name:"Mesh_3001",castShadow:!0,receiveShadow:!0,geometry:o.Mesh_3001.geometry,material:a["Blue.001"]}),s.jsx("mesh",{name:"Mesh_3001_1",castShadow:!0,receiveShadow:!0,geometry:o.Mesh_3001_1.geometry,material:a["Black.001"]})]})]}),s.jsx("mesh",{name:"AR3120_L02",castShadow:!0,receiveShadow:!0,geometry:o.AR3120_L02.geometry,material:a["Blue.001"],position:[0,-.146,0],rotation:[Math.PI,0,0]})]}),s.jsxs("group",{name:"AR3120_L01",position:[0,-.228,0],rotation:[0,-1.571,0],children:[s.jsx("mesh",{name:"S_AXIS_GP20HL001",castShadow:!0,receiveShadow:!0,geometry:o.S_AXIS_GP20HL001.geometry,material:a["Blue.001"]}),s.jsx("mesh",{name:"S_AXIS_GP20HL001_1",castShadow:!0,receiveShadow:!0,geometry:o.S_AXIS_GP20HL001_1.geometry,material:a["Black.001"]})]})]}),s.jsx("mesh",{name:"AR3120_L00",castShadow:!0,receiveShadow:!0,geometry:o.AR3120_L00.geometry,material:a["Blue.001"],position:[0,-.54,0]})]})})]})}function Sl({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=we.useGLTF(e),o=n.nodes,a=n.materials,i=[0,Math.PI/2,0,0,0,0];function l(c,u){c.forEach((d,m)=>d.rotation.y=u[m]+i[m])}return s.jsxs(s.Fragment,{children:[s.jsx(Ue,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:l}),s.jsx("group",{...r,dispose:null,children:s.jsxs("group",{name:"Scene",children:[s.jsxs(x.animated.group,{name:"CRX10iA_J00",children:[s.jsxs(x.animated.group,{name:"CRX10iA_J01",rotation:[Math.PI/2,Math.PI/2,0],children:[s.jsxs(x.animated.group,{name:"CRX10iA_J02",position:[.54,0,0],children:[s.jsxs(x.animated.group,{name:"CRX10iA_J03",rotation:[-Math.PI/2,0,0],children:[s.jsxs(x.animated.group,{name:"CRX10iA_J04",position:[0,-.54,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(x.animated.group,{name:"CRX10iA_J05",position:[0,.15,0],rotation:[-Math.PI/2,0,0],children:[s.jsx("group",{name:"CRX10iA_FLG",position:[0,-.16,0],rotation:[-Math.PI,0,0]}),s.jsx("mesh",{name:"CRX10iA_L06",castShadow:!0,receiveShadow:!0,geometry:o.CRX10iA_L06.geometry,material:a.Fanuc_BlackMetal,position:[0,-.16,0],rotation:[0,0,-Math.PI/2]})]}),s.jsxs("group",{name:"CRX10iA_L05",position:[0,.15,0],rotation:[-Math.PI/2,0,-Math.PI/2],children:[s.jsx("mesh",{name:"J5CASING_UNIT001",castShadow:!0,receiveShadow:!0,geometry:o.J5CASING_UNIT001.geometry,material:a.Fanuc_WhitePlastic}),s.jsx("mesh",{name:"J5CASING_UNIT001_1",castShadow:!0,receiveShadow:!0,geometry:o.J5CASING_UNIT001_1.geometry,material:a.Fanuc_Green})]})]}),s.jsxs("group",{name:"CRX10iA_L04",position:[0,-.54,0],rotation:[0,0,-Math.PI/2],children:[s.jsx("mesh",{name:"NAME_LABEL_CRX_10iA",castShadow:!0,receiveShadow:!0,geometry:o.NAME_LABEL_CRX_10iA.geometry,material:a.Fanuc_RedPlastic}),s.jsx("mesh",{name:"NAME_LABEL_CRX_10iA_1",castShadow:!0,receiveShadow:!0,geometry:o.NAME_LABEL_CRX_10iA_1.geometry,material:a.Fanuc_BlackPlastic}),s.jsx("mesh",{name:"NAME_LABEL_CRX_10iA_2",castShadow:!0,receiveShadow:!0,geometry:o.NAME_LABEL_CRX_10iA_2.geometry,material:a.Fanuc_WhitePlastic})]})]}),s.jsx("mesh",{name:"CRX10iA_L03",castShadow:!0,receiveShadow:!0,geometry:o.CRX10iA_L03.geometry,material:a.Fanuc_WhitePlastic,rotation:[-Math.PI/2,0,-Math.PI/2]})]}),s.jsx("mesh",{name:"CRX10iA_L02",castShadow:!0,receiveShadow:!0,geometry:o.CRX10iA_L02.geometry,material:a.Fanuc_WhitePlastic,rotation:[-Math.PI/2,0,-Math.PI/2]})]}),s.jsxs("group",{name:"CRX10iA_L01",position:[0,-.117,0],children:[s.jsx("mesh",{name:"J2BASE_UNIT001",castShadow:!0,receiveShadow:!0,geometry:o.J2BASE_UNIT001.geometry,material:a.Fanuc_Green}),s.jsx("mesh",{name:"J2BASE_UNIT001_1",castShadow:!0,receiveShadow:!0,geometry:o.J2BASE_UNIT001_1.geometry,material:a.Fanuc_WhitePlastic}),s.jsx("mesh",{name:"J2BASE_UNIT001_2",castShadow:!0,receiveShadow:!0,geometry:o.J2BASE_UNIT001_2.geometry,material:a.Fanuc_GreenLED})]})]}),s.jsx("mesh",{name:"CRX10iA_L00",castShadow:!0,receiveShadow:!0,geometry:o.CRX10iA_L00.geometry,material:a.Fanuc_BlackMetal,position:[0,-.245,0]})]})})]})}function xl({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=we.useGLTF(e),o=n.nodes,a=n.materials,i=[0,Math.PI/2,0,0,0,0];function l(c,u){c.forEach((d,m)=>d.rotation.y=u[m]+i[m])}return s.jsxs(s.Fragment,{children:[s.jsx(Ue,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:l}),s.jsx("group",{...r,dispose:null,children:s.jsxs("group",{name:"Scene",position:[0,-.37,0],children:[s.jsxs("group",{name:"CRX25iA_L00",children:[s.jsx("mesh",{name:"J1BASE_NetGen_Coarse",castShadow:!0,receiveShadow:!0,geometry:o.J1BASE_NetGen_Coarse.geometry,material:a.Fanuc_BlackMetal}),s.jsx("mesh",{name:"J1BASE_NetGen_Coarse_1",castShadow:!0,receiveShadow:!0,geometry:o.J1BASE_NetGen_Coarse_1.geometry,material:a.Fanuc_GreenPlastic})]}),s.jsxs(x.animated.group,{name:"CRX25iA_J00",children:[s.jsxs(x.animated.group,{name:"CRX25iA_J01",position:[0,.37,0],rotation:[Math.PI/2,Math.PI/2,0],children:[s.jsxs(x.animated.group,{name:"CRX25iA_J02",position:[.95,0,0],children:[s.jsxs(x.animated.group,{name:"CRX25iA_J03",rotation:[-Math.PI/2,0,0],children:[s.jsxs(x.animated.group,{name:"CRX25iA_J04",position:[0,-.75,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(x.animated.group,{name:"CRX25iA_J05",position:[0,.185,0],rotation:[-Math.PI/2,0,0],children:[s.jsx("group",{name:"CRX25iA_FLG",position:[0,-.18,0],rotation:[-Math.PI,0,0]}),s.jsx("mesh",{name:"CRX25iA_L06",castShadow:!0,receiveShadow:!0,geometry:o.CRX25iA_L06.geometry,material:a.Fanuc_BlackMetal,position:[0,-.18,0]})]}),s.jsxs("group",{name:"CRX25iA_L05",position:[0,.185,0],children:[s.jsx("mesh",{name:"J6CASING_NetGen_Coarse",castShadow:!0,receiveShadow:!0,geometry:o.J6CASING_NetGen_Coarse.geometry,material:a.Fanuc_WhitePlastic}),s.jsx("mesh",{name:"J6CASING_NetGen_Coarse_1",castShadow:!0,receiveShadow:!0,geometry:o.J6CASING_NetGen_Coarse_1.geometry,material:a.Fanuc_GreenPlastic})]})]}),s.jsxs("group",{name:"CRX25iA_L04",position:[0,-.75,0],children:[s.jsx("mesh",{name:"J3ARM_NetGen_Coarse",castShadow:!0,receiveShadow:!0,geometry:o.J3ARM_NetGen_Coarse.geometry,material:a.Fanuc_WhitePlastic}),s.jsx("mesh",{name:"J3ARM_NetGen_Coarse_1",castShadow:!0,receiveShadow:!0,geometry:o.J3ARM_NetGen_Coarse_1.geometry,material:a.Fanuc_RedPlastic}),s.jsx("mesh",{name:"J3ARM_NetGen_Coarse_2",castShadow:!0,receiveShadow:!0,geometry:o.J3ARM_NetGen_Coarse_2.geometry,material:a.Fanuc_BlackPlastic})]})]}),s.jsxs("group",{name:"CRX25iA_L03",children:[s.jsx("mesh",{name:"J3CASING_NetGen_Coarse",castShadow:!0,receiveShadow:!0,geometry:o.J3CASING_NetGen_Coarse.geometry,material:a.Fanuc_WhitePlastic}),s.jsx("mesh",{name:"J3CASING_NetGen_Coarse_1",castShadow:!0,receiveShadow:!0,geometry:o.J3CASING_NetGen_Coarse_1.geometry,material:a.Fanuc_GreenPlastic})]})]}),s.jsx("mesh",{name:"CRX25iA_L02",castShadow:!0,receiveShadow:!0,geometry:o.CRX25iA_L02.geometry,material:a.Fanuc_WhitePlastic})]}),s.jsxs("group",{name:"CRX25iA_L01",position:[0,.18,0],children:[s.jsx("mesh",{name:"J2BASE_NetGen_Coarse",castShadow:!0,receiveShadow:!0,geometry:o.J2BASE_NetGen_Coarse.geometry,material:a.Fanuc_WhitePlastic}),s.jsx("mesh",{name:"J2BASE_NetGen_Coarse_1",castShadow:!0,receiveShadow:!0,geometry:o.J2BASE_NetGen_Coarse_1.geometry,material:a.Fanuc_GreenLED})]})]})]})})]})}function wl({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=we.useGLTF(e),o=n.nodes,a=n.materials,i=[0,Math.PI/2,0,0,0,0];function l(c,u){c.forEach((d,m)=>d.rotation.y=u[m]+i[m])}return s.jsxs(s.Fragment,{children:[s.jsx(Ue,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:l}),s.jsx("group",{...r,dispose:null,children:s.jsxs("group",{name:"Scene",children:[s.jsxs(x.animated.group,{name:"CRX10iA_J00",children:[s.jsxs(x.animated.group,{name:"CRX10iA_J01",position:[0,.245,0],rotation:[Math.PI/2,Math.PI/2,0],children:[s.jsxs(x.animated.group,{name:"CRX10iA_J02",position:[.71,0,0],children:[s.jsxs(x.animated.group,{name:"CRX10iA_J03",rotation:[-Math.PI/2,0,0],children:[s.jsxs(x.animated.group,{name:"CRX10iA_J04",position:[0,-.54,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(x.animated.group,{name:"CRX10iA_J05",position:[0,.15,0],rotation:[-Math.PI/2,0,0],children:[s.jsx("group",{name:"CRX10iA_FLG",position:[0,-.16,0],rotation:[-Math.PI,0,0]}),s.jsx("mesh",{name:"CRX10iA_L06",castShadow:!0,receiveShadow:!0,geometry:o.CRX10iA_L06.geometry,material:a["Fanuc_BlackMetal.001"],position:[0,-.16,0],rotation:[0,0,-Math.PI/2]})]}),s.jsxs("group",{name:"CRX10iA_L05",position:[0,.15,0],rotation:[-Math.PI/2,0,-Math.PI/2],children:[s.jsx("mesh",{name:"J5CASING_UNIT001",castShadow:!0,receiveShadow:!0,geometry:o.J5CASING_UNIT001.geometry,material:a["Fanuc_WhitePlastic.001"]}),s.jsx("mesh",{name:"J5CASING_UNIT001_1",castShadow:!0,receiveShadow:!0,geometry:o.J5CASING_UNIT001_1.geometry,material:a["Fanuc_Green.001"]})]})]}),s.jsxs("group",{name:"CRX10iA_L04",position:[0,-.54,0],rotation:[0,0,-Math.PI/2],children:[s.jsx("mesh",{name:"NAME_LABEL_CRX_10iA_L001",castShadow:!0,receiveShadow:!0,geometry:o.NAME_LABEL_CRX_10iA_L001.geometry,material:a["Fanuc_WhitePlastic.001"]}),s.jsx("mesh",{name:"NAME_LABEL_CRX_10iA_L001_1",castShadow:!0,receiveShadow:!0,geometry:o.NAME_LABEL_CRX_10iA_L001_1.geometry,material:a["Fanuc_RedPlastic.001"]}),s.jsx("mesh",{name:"NAME_LABEL_CRX_10iA_L001_2",castShadow:!0,receiveShadow:!0,geometry:o.NAME_LABEL_CRX_10iA_L001_2.geometry,material:a["Fanuc_BlackPlastic.001"]})]})]}),s.jsxs("group",{name:"CRX10iA_L03",rotation:[-Math.PI/2,0,-Math.PI/2],children:[s.jsx("mesh",{name:"J3CASING_UNIT001",castShadow:!0,receiveShadow:!0,geometry:o.J3CASING_UNIT001.geometry,material:a["Fanuc_WhitePlastic.001"]}),s.jsx("mesh",{name:"J3CASING_UNIT001_1",castShadow:!0,receiveShadow:!0,geometry:o.J3CASING_UNIT001_1.geometry,material:a["Fanuc_Green.001"]})]})]}),s.jsx("mesh",{name:"CRX10iA_L02",castShadow:!0,receiveShadow:!0,geometry:o.CRX10iA_L02.geometry,material:a["Fanuc_WhitePlastic.001"],rotation:[-Math.PI/2,0,-Math.PI/2]})]}),s.jsxs("group",{name:"CRX10iA_L01",position:[0,.128,0],children:[s.jsx("mesh",{name:"J2BASE_UNIT001",castShadow:!0,receiveShadow:!0,geometry:o.J2BASE_UNIT001.geometry,material:a["Fanuc_WhitePlastic.001"]}),s.jsx("mesh",{name:"J2BASE_UNIT001_1",castShadow:!0,receiveShadow:!0,geometry:o.J2BASE_UNIT001_1.geometry,material:a["Fanuc_Green.001"]}),s.jsx("mesh",{name:"J2BASE_UNIT001_2",castShadow:!0,receiveShadow:!0,geometry:o.J2BASE_UNIT001_2.geometry,material:a["Fanuc_GreenLED.001"]})]})]}),s.jsx("mesh",{name:"CRX10iA_L00",castShadow:!0,receiveShadow:!0,geometry:o.CRX10iA_L00.geometry,material:a["Fanuc_BlackMetal.001"]})]})})]})}function Rl({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=we.useGLTF(e),o=n.nodes,a=n.materials,i=[0,0,-Math.PI/2,0,0,0];function l(c,u){c.forEach((d,m)=>d.rotation.y=u[m]+i[m])}return s.jsxs(s.Fragment,{children:[s.jsx(Ue,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:l}),s.jsx("group",{...r,dispose:null,children:s.jsx("group",{name:"Scene",children:s.jsxs("group",{name:"kuka_kr210_2700",children:[s.jsxs(x.animated.group,{name:"joint_01",children:[s.jsxs(x.animated.group,{name:"joint_02",position:[.33,.645,0],rotation:[-Math.PI/2,0,0],children:[s.jsxs(x.animated.group,{name:"joint_03",position:[1.15,0,0],rotation:[0,-Math.PI/2,0],children:[s.jsxs(x.animated.group,{name:"joint_04",position:[.115,0,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(x.animated.group,{name:"joint_05",position:[0,-1.22,0],rotation:[-Math.PI/2,0,0],children:[s.jsxs(x.animated.group,{name:"joint_06",rotation:[Math.PI/2,0,0],children:[s.jsx("group",{name:"flange",position:[0,-.215,0],rotation:[-Math.PI,0,0]}),s.jsx("group",{name:"link_6",position:[0,-.17,0],rotation:[0,0,-Math.PI/2],children:s.jsx("mesh",{name:"visuals006",castShadow:!0,receiveShadow:!0,geometry:o.visuals006.geometry,material:a.material_Material_Metall_black})})]}),s.jsx("group",{name:"link_5",position:[0,.059,0],rotation:[Math.PI/2,0,-Math.PI/2],children:s.jsxs("group",{name:"visuals005",children:[s.jsx("mesh",{name:"visuals005_1",castShadow:!0,receiveShadow:!0,geometry:o.visuals005_1.geometry,material:a.material_Material_metal_black}),s.jsx("mesh",{name:"visuals005_2",castShadow:!0,receiveShadow:!0,geometry:o.visuals005_2.geometry,material:a.material_Material_kuka_orange})]})})]}),s.jsx("group",{name:"link_4",position:[0,-.869,0],rotation:[0,0,-Math.PI/2],children:s.jsxs("group",{name:"visuals004",children:[s.jsx("mesh",{name:"visuals004_1",castShadow:!0,receiveShadow:!0,geometry:o.visuals004_1.geometry,material:a.material_Material_metal_black}),s.jsx("mesh",{name:"visuals004_2",castShadow:!0,receiveShadow:!0,geometry:o.visuals004_2.geometry,material:a.material_Material_kuka_orange})]})})]}),s.jsx("group",{name:"link_3",position:[0,-.105,0],rotation:[Math.PI/2,0,-Math.PI/2],children:s.jsxs("group",{name:"visuals003",children:[s.jsx("mesh",{name:"visuals003_1",castShadow:!0,receiveShadow:!0,geometry:o.visuals003_1.geometry,material:a.material_Material_rubber}),s.jsx("mesh",{name:"visuals003_2",castShadow:!0,receiveShadow:!0,geometry:o.visuals003_2.geometry,material:a.material_Material_aluminium}),s.jsx("mesh",{name:"visuals003_3",castShadow:!0,receiveShadow:!0,geometry:o.visuals003_3.geometry,material:a.material_Material_metal_black}),s.jsx("mesh",{name:"visuals003_4",castShadow:!0,receiveShadow:!0,geometry:o.visuals003_4.geometry,material:a.material_Material_kuka_black}),s.jsx("mesh",{name:"visuals003_5",castShadow:!0,receiveShadow:!0,geometry:o.visuals003_5.geometry,material:a.material_Material_Rubber_black}),s.jsx("mesh",{name:"visuals003_6",castShadow:!0,receiveShadow:!0,geometry:o.visuals003_6.geometry,material:a.material_Material_kuka_orange}),s.jsx("mesh",{name:"visuals003_7",castShadow:!0,receiveShadow:!0,geometry:o.visuals003_7.geometry,material:a.material_Material_stainless_steel})]})})]}),s.jsx("group",{name:"link_2",position:[0,.009,0],rotation:[Math.PI/2,0,0],children:s.jsxs("group",{name:"visuals002",children:[s.jsx("mesh",{name:"visuals002_1",castShadow:!0,receiveShadow:!0,geometry:o.visuals002_1.geometry,material:a.material_Material_metal_black}),s.jsx("mesh",{name:"visuals002_2",castShadow:!0,receiveShadow:!0,geometry:o.visuals002_2.geometry,material:a.material_Material_Rubber_black}),s.jsx("mesh",{name:"visuals002_3",castShadow:!0,receiveShadow:!0,geometry:o.visuals002_3.geometry,material:a.material_Material_kuka_orange})]})})]}),s.jsx("group",{name:"link_1",position:[0,.236,0],children:s.jsxs("group",{name:"visuals001",children:[s.jsx("mesh",{name:"visuals001_1",castShadow:!0,receiveShadow:!0,geometry:o.visuals001_1.geometry,material:a.material_Material_kuka_black}),s.jsx("mesh",{name:"visuals001_2",castShadow:!0,receiveShadow:!0,geometry:o.visuals001_2.geometry,material:a.material_Material_kuka_orange}),s.jsx("mesh",{name:"visuals001_3",castShadow:!0,receiveShadow:!0,geometry:o.visuals001_3.geometry,material:a.material_Material_rubber}),s.jsx("mesh",{name:"visuals001_4",castShadow:!0,receiveShadow:!0,geometry:o.visuals001_4.geometry,material:a.material_Material_metal_black}),s.jsx("mesh",{name:"visuals001_5",castShadow:!0,receiveShadow:!0,geometry:o.visuals001_5.geometry,material:a.material_Material_aluminium}),s.jsx("mesh",{name:"visuals001_6",castShadow:!0,receiveShadow:!0,geometry:o.visuals001_6.geometry,material:a.material_Material_rubber_black}),s.jsx("mesh",{name:"visuals001_7",castShadow:!0,receiveShadow:!0,geometry:o.visuals001_7.geometry,material:a.material_Material_stainless_steel})]})})]}),s.jsx("group",{name:"link_0",children:s.jsxs("group",{name:"visuals",children:[s.jsx("mesh",{name:"visuals_1",castShadow:!0,receiveShadow:!0,geometry:o.visuals_1.geometry,material:a.material_Material_kuka_black}),s.jsx("mesh",{name:"visuals_2",castShadow:!0,receiveShadow:!0,geometry:o.visuals_2.geometry,material:a.material_Material_metal_black})]})})]})})})]})}function jl({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=we.useGLTF(e),o=n.nodes,a=n.materials,i=[0,0,-Math.PI/2,0,0,0];function l(c,u){c.forEach((d,m)=>d.rotation.y=u[m]+i[m])}return s.jsxs(s.Fragment,{children:[s.jsx(Ue,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:l}),s.jsx("group",{...r,dispose:null,children:s.jsx("group",{name:"Scene",children:s.jsxs("group",{name:"kuka_kr270_2700_ultra",children:[s.jsxs(x.animated.group,{name:"joint_01",children:[s.jsxs(x.animated.group,{name:"joint_02",position:[.35,.675,0],rotation:[-Math.PI/2,0,0],children:[s.jsxs(x.animated.group,{name:"joint_03",position:[1.15,0,0],rotation:[0,-Math.PI/2,0],children:[s.jsxs(x.animated.group,{name:"joint_04",position:[-.041,0,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(x.animated.group,{name:"joint_05",position:[0,-1.2,0],rotation:[-Math.PI/2,0,0],children:[s.jsxs(x.animated.group,{name:"joint_06",rotation:[Math.PI/2,0,0],children:[s.jsx("group",{name:"flange",position:[0,-.24,0],rotation:[-Math.PI,0,0]}),s.jsx("group",{name:"link_6",position:[0,-.213,0],rotation:[0,0,-Math.PI/2],children:s.jsxs("group",{name:"visuals006",children:[s.jsx("mesh",{name:"visuals006_1",castShadow:!0,receiveShadow:!0,geometry:o.visuals006_1.geometry,material:a.material_Material_Farbe__1_}),s.jsx("mesh",{name:"visuals006_2",castShadow:!0,receiveShadow:!0,geometry:o.visuals006_2.geometry,material:a.material_Material_Metall})]})})]}),s.jsx("group",{name:"link_5",position:[0,.044,0],rotation:[Math.PI/2,0,-Math.PI/2],children:s.jsx("mesh",{name:"visuals005",castShadow:!0,receiveShadow:!0,geometry:o.visuals005.geometry,material:a.material_Material_Farbe})})]}),s.jsx("group",{name:"link_4",position:[0,-.954,0],rotation:[0,0,-Math.PI/2],children:s.jsx("mesh",{name:"visuals004",castShadow:!0,receiveShadow:!0,geometry:o.visuals004.geometry,material:a.material_Material_Farbe})})]}),s.jsx("group",{name:"link_3",position:[0,-.178,0],rotation:[Math.PI/2,0,-Math.PI/2],children:s.jsxs("group",{name:"visuals003",children:[s.jsx("mesh",{name:"visuals003_1",castShadow:!0,receiveShadow:!0,geometry:o.visuals003_1.geometry,material:a.material_Material_Farbe__1_}),s.jsx("mesh",{name:"visuals003_2",castShadow:!0,receiveShadow:!0,geometry:o.visuals003_2.geometry,material:a.material_Material_Farbe__2_}),s.jsx("mesh",{name:"visuals003_3",castShadow:!0,receiveShadow:!0,geometry:o.visuals003_3.geometry,material:a.material_Material_Metall}),s.jsx("mesh",{name:"visuals003_4",castShadow:!0,receiveShadow:!0,geometry:o.visuals003_4.geometry,material:a.material_Material_Farbe})]})})]}),s.jsx("group",{name:"link_2",rotation:[Math.PI/2,0,0],children:s.jsxs("group",{name:"visuals002",children:[s.jsx("mesh",{name:"visuals002_1",castShadow:!0,receiveShadow:!0,geometry:o.visuals002_1.geometry,material:a.material_Material_Farbe}),s.jsx("mesh",{name:"visuals002_2",castShadow:!0,receiveShadow:!0,geometry:o.visuals002_2.geometry,material:a.material_Material_Farbe__1_}),s.jsx("mesh",{name:"visuals002_3",castShadow:!0,receiveShadow:!0,geometry:o.visuals002_3.geometry,material:a.material_Material_Metall}),s.jsx("mesh",{name:"visuals002_4",castShadow:!0,receiveShadow:!0,geometry:o.visuals002_4.geometry,material:a.material_Material_Farbe__2_})]})})]}),s.jsx("group",{name:"link_1",position:[0,.226,0],children:s.jsxs("group",{name:"visuals001",children:[s.jsx("mesh",{name:"visuals001_1",castShadow:!0,receiveShadow:!0,geometry:o.visuals001_1.geometry,material:a.material_Material_Metall}),s.jsx("mesh",{name:"visuals001_2",castShadow:!0,receiveShadow:!0,geometry:o.visuals001_2.geometry,material:a.material_Material_Farbe__1_}),s.jsx("mesh",{name:"visuals001_3",castShadow:!0,receiveShadow:!0,geometry:o.visuals001_3.geometry,material:a.material_Material_Farbe__2_}),s.jsx("mesh",{name:"visuals001_4",castShadow:!0,receiveShadow:!0,geometry:o.visuals001_4.geometry,material:a.material_Material_Farbe})]})})]}),s.jsxs("group",{name:"link_0-base",children:[s.jsx("group",{name:"joint_1"}),s.jsxs("group",{name:"visuals",children:[s.jsx("mesh",{name:"visuals_1",castShadow:!0,receiveShadow:!0,geometry:o.visuals_1.geometry,material:a.material_Material_Metall}),s.jsx("mesh",{name:"visuals_2",castShadow:!0,receiveShadow:!0,geometry:o.visuals_2.geometry,material:a.material_Material_Farbe__1_})]})]})]})})})]})}function Cl({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=we.useGLTF(e),o=n.nodes,a=n.materials,i=[0,Math.PI/2,0,0,0,0];function l(c,u){c.forEach((d,m)=>d.rotation.y=u[m]+i[m])}return s.jsxs(s.Fragment,{children:[s.jsx(Ue,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:l}),s.jsx("group",{...r,dispose:null,children:s.jsx("group",{name:"Scene",children:s.jsxs("group",{name:"M10iD",rotation:[Math.PI/2,0,0],children:[s.jsxs(x.animated.group,{name:"M10iD_J01",rotation:[-Math.PI/2,0,0],children:[s.jsxs(x.animated.group,{name:"M10iD_J02",position:[.075,0,0],rotation:[Math.PI/2,Math.PI/2,0],children:[s.jsxs(x.animated.group,{name:"M10iD_J03",position:[.64,0,0],children:[s.jsxs(x.animated.group,{name:"M10iD_J04",position:[.195,0,0],rotation:[-Math.PI/2,0,0],children:[s.jsxs(x.animated.group,{name:"M10iD_J05",position:[0,-.7,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(x.animated.group,{name:"M10iD_J06",rotation:[-Math.PI/2,0,0],children:[s.jsx("group",{name:"M10iD_FLG",position:[0,-.075,0],rotation:[-Math.PI,0,0]}),s.jsx("mesh",{name:"M10iD_L06",castShadow:!0,receiveShadow:!0,geometry:o.M10iD_L06.geometry,material:a.Fanuc_BlackMetal_AO,position:[-.835,.775,0],rotation:[0,0,-Math.PI/2]})]}),s.jsx("mesh",{name:"M10iD_L05",castShadow:!0,receiveShadow:!0,geometry:o.M10iD_L05.geometry,material:a.Fanuc_BlackMetal_AO,position:[-.835,0,-.775],rotation:[-Math.PI/2,0,-Math.PI/2]})]}),s.jsxs("group",{name:"M10iD_L04",position:[-.835,.075,0],rotation:[0,0,-Math.PI/2],children:[s.jsx("mesh",{name:"Mesh_654",castShadow:!0,receiveShadow:!0,geometry:o.Mesh_654.geometry,material:a.Fanuc_Yellow_Textured_AO}),s.jsx("mesh",{name:"Mesh_654_1",castShadow:!0,receiveShadow:!0,geometry:o.Mesh_654_1.geometry,material:a.Fanuc_BlackMetal_AO})]})]}),s.jsxs("group",{name:"M10iD_L03",position:[-.64,0,-.075],rotation:[-Math.PI/2,0,-Math.PI/2],children:[s.jsx("mesh",{name:"Mesh_378",castShadow:!0,receiveShadow:!0,geometry:o.Mesh_378.geometry,material:a.Material_1_AO}),s.jsx("mesh",{name:"Mesh_378_1",castShadow:!0,receiveShadow:!0,geometry:o.Mesh_378_1.geometry,material:a.Fanuc_Yellow_Textured_AO}),s.jsx("mesh",{name:"Mesh_378_2",castShadow:!0,receiveShadow:!0,geometry:o.Mesh_378_2.geometry,material:a.Fanuc_BlackMetal_AO})]})]}),s.jsxs("group",{name:"M10iD_L02",position:[0,0,-.075],rotation:[-Math.PI/2,0,-Math.PI/2],children:[s.jsx("mesh",{name:"Mesh_358",castShadow:!0,receiveShadow:!0,geometry:o.Mesh_358.geometry,material:a.Fanuc_Yellow_Textured_AO}),s.jsx("mesh",{name:"Mesh_358_1",castShadow:!0,receiveShadow:!0,geometry:o.Mesh_358_1.geometry,material:a.Fanuc_BlackMetal_AO})]})]}),s.jsxs("group",{name:"M10iD_L01",children:[s.jsx("mesh",{name:"Mesh_356",castShadow:!0,receiveShadow:!0,geometry:o.Mesh_356.geometry,material:a.Fanuc_Yellow_Textured_AO}),s.jsx("mesh",{name:"Mesh_356_1",castShadow:!0,receiveShadow:!0,geometry:o.Mesh_356_1.geometry,material:a.Material_1_AO}),s.jsx("mesh",{name:"Mesh_356_2",castShadow:!0,receiveShadow:!0,geometry:o.Mesh_356_2.geometry,material:a.Fanuc_BlackMetal_AO})]})]}),s.jsx("mesh",{name:"M10iD_L00",castShadow:!0,receiveShadow:!0,geometry:o.M10iD_L00.geometry,material:a.Fanuc_BlackMetal_AO,rotation:[-Math.PI/2,0,0]})]})})})]})}function ca({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=we.useGLTF(e),o=n.nodes,a=n.materials,i=[0,Math.PI/2,0,0,0,0];function l(c,u){c.forEach((d,m)=>d.rotation.y=u[m]+i[m])}return s.jsxs(s.Fragment,{children:[s.jsx(Ue,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:l}),s.jsx("group",{...r,dispose:null,children:s.jsx("group",{name:"Scene",children:s.jsxs("group",{name:"M10iD",rotation:[0,0,0],children:[s.jsxs(x.animated.group,{name:"M20iD25_J00",children:[s.jsxs(x.animated.group,{name:"M20iD25_J01",position:[.075,0,0],rotation:[Math.PI/2,Math.PI/2,0],children:[s.jsxs(x.animated.group,{name:"M20iD25_J02",position:[.84,0,0],children:[s.jsxs(x.animated.group,{name:"M20iD25_J03",position:[.215,0,0],rotation:[-Math.PI/2,0,0],children:[s.jsxs(x.animated.group,{name:"M20iD25_J04",position:[0,-.89,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(x.animated.group,{name:"M20iD25_J05",rotation:[-Math.PI/2,0,0],children:[s.jsx("group",{name:"M20iD25_FLG",position:[0,-.09,0],rotation:[-Math.PI,0,0]}),s.jsx("mesh",{name:"M20iD25_L06",castShadow:!0,receiveShadow:!0,geometry:o.M20iD25_L06.geometry,material:a.Fanuc_BlackMetal_AO,position:[0,-.09,0],rotation:[Math.PI/2,0,Math.PI]})]}),s.jsx("mesh",{name:"M20iD25_L05",castShadow:!0,receiveShadow:!0,geometry:o.M20iD25_L05.geometry,material:a.Fanuc_BlackMetal_AO,rotation:[Math.PI,Math.PI/2,0]})]}),s.jsxs("group",{name:"M20iD25_L04",position:[0,-.286,0],rotation:[-Math.PI/2,Math.PI/2,0],children:[s.jsx("mesh",{name:"Mesh_2",castShadow:!0,receiveShadow:!0,geometry:o.Mesh_2.geometry,material:a.Fanuc_Yellow_Textured_AO}),s.jsx("mesh",{name:"Mesh_2_1",castShadow:!0,receiveShadow:!0,geometry:o.Mesh_2_1.geometry,material:a.Fanuc_BlackMetal_AO})]})]}),s.jsxs("group",{name:"M20iD25_L03",position:[0,.406,0],rotation:[Math.PI,Math.PI/2,0],children:[s.jsx("mesh",{name:"Mesh_15",castShadow:!0,receiveShadow:!0,geometry:o.Mesh_15.geometry,material:a.Fanuc_BlackMetal_AO}),s.jsx("mesh",{name:"Mesh_15_1",castShadow:!0,receiveShadow:!0,geometry:o.Mesh_15_1.geometry,material:a.Fanuc_Yellow_Textured_AO}),s.jsx("mesh",{name:"Mesh_15_2",castShadow:!0,receiveShadow:!0,geometry:o.Mesh_15_2.geometry,material:a.Material_9_AO})]})]}),s.jsxs("group",{name:"M20iD25_L02",position:[0,.505,-.055],rotation:[-Math.PI,Math.PI/2,0],children:[s.jsx("mesh",{name:"Mesh_37",castShadow:!0,receiveShadow:!0,geometry:o.Mesh_37.geometry,material:a.Fanuc_BlackMetal_AO}),s.jsx("mesh",{name:"Mesh_37_1",castShadow:!0,receiveShadow:!0,geometry:o.Mesh_37_1.geometry,material:a.Fanuc_Yellow_Textured_AO})]})]}),s.jsxs("group",{name:"M20iD25_L01",rotation:[-Math.PI/2,0,0],children:[s.jsx("mesh",{name:"Mesh_45",castShadow:!0,receiveShadow:!0,geometry:o.Mesh_45.geometry,material:a.Material_9_AO}),s.jsx("mesh",{name:"Mesh_45_1",castShadow:!0,receiveShadow:!0,geometry:o.Mesh_45_1.geometry,material:a.Fanuc_Yellow_Textured_AO}),s.jsx("mesh",{name:"Mesh_45_2",castShadow:!0,receiveShadow:!0,geometry:o.Mesh_45_2.geometry,material:a.Fanuc_BlackMetal_AO})]})]}),s.jsx("mesh",{name:"M20iD25_L00",castShadow:!0,receiveShadow:!0,geometry:o.M20iD25_L00.geometry,material:a.Fanuc_BlackMetal_AO,position:[0,-.425,0],rotation:[-Math.PI/2,0,0]})]})})})]})}function Pl({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=we.useGLTF(e),o=n.nodes,a=n.materials,i=[0,-Math.PI/2,0,0,0,0];function l(c,u){c.forEach((d,m)=>d.rotation.y=u[m]+i[m])}return s.jsxs(s.Fragment,{children:[s.jsx(Ue,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:l}),s.jsx("group",{...r,dispose:null,children:s.jsx("group",{name:"Scene",children:s.jsxs("group",{name:"IRB1200_7_70_IRC5",rotation:[Math.PI/2,0,0],children:[s.jsxs(x.animated.group,{name:"IRB1200_7_70_IRC5_J01",rotation:[-Math.PI/2,0,0],children:[s.jsxs(x.animated.group,{name:"IRB1200_7_70_IRC5_J02",position:[0,.399,0],rotation:[-Math.PI/2,-Math.PI/2,0],children:[s.jsxs(x.animated.group,{name:"IRB1200_7_70_IRC5_J03",position:[.35,0,0],children:[s.jsxs(x.animated.group,{name:"IRB1200_7_70_IRC5_J04",position:[.042,0,0],rotation:[-Math.PI/2,0,0],children:[s.jsxs(x.animated.group,{name:"IRB1200_7_70_IRC5_J05",position:[0,.351,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(x.animated.group,{name:"IRB1200_7_70_IRC5_J06",rotation:[Math.PI/2,0,-Math.PI],children:[s.jsx("group",{name:"IRB1200_7_70_IRC5_FLG",position:[0,.082,0]}),s.jsx("mesh",{name:"IRB1200_7_70_IRC5_L06",castShadow:!0,receiveShadow:!0,geometry:o.IRB1200_7_70_IRC5_L06.geometry,material:a["IRB1200_7-70_IRC5.003_Bake"]})]}),s.jsx("mesh",{name:"IRB1200_7_70_IRC5_L05",castShadow:!0,receiveShadow:!0,geometry:o.IRB1200_7_70_IRC5_L05.geometry,material:a["IRB1200_7-70_IRC5.003_Bake"]})]}),s.jsx("mesh",{name:"IRB1200_7_70_IRC5_L04",castShadow:!0,receiveShadow:!0,geometry:o.IRB1200_7_70_IRC5_L04.geometry,material:a["IRB1200_7-70_IRC5.003_Bake"]})]}),s.jsx("mesh",{name:"IRB1200_7_70_IRC5_L03",castShadow:!0,receiveShadow:!0,geometry:o.IRB1200_7_70_IRC5_L03.geometry,material:a["IRB1200_7-70_IRC5.003_Bake"]})]}),s.jsx("mesh",{name:"IRB1200_7_70_IRC5_L02",castShadow:!0,receiveShadow:!0,geometry:o.IRB1200_7_70_IRC5_L02.geometry,material:a["IRB1200_7-70_IRC5.003_Bake"]})]}),s.jsx("mesh",{name:"IRB1200_7_70_IRC5_L01",castShadow:!0,receiveShadow:!0,geometry:o.IRB1200_7_70_IRC5_L01.geometry,material:a["IRB1200_7-70_IRC5.003_Bake"],rotation:[Math.PI/2,0,0]})]}),s.jsx("mesh",{name:"IRB1200_7_70_IRC5_L00",castShadow:!0,receiveShadow:!0,geometry:o.IRB1200_7_70_IRC5_L00.geometry,material:a["IRB1200_7-70_IRC5.003_Bake"],rotation:[-Math.PI/2,0,0]})]})})})]})}const ua="line",da="mesh";function Zn({rapidlyChangingMotionState:e,dhParameters:t,...r}){const n=new xt.Matrix4;function o(c,u){const d=new xt.Vector3,m=new xt.Quaternion,f=new xt.Vector3;n.decompose(d,m,f);const _=d.clone(),g=new xt.Matrix4().makeRotationY(c.theta+u*(c.reverse_rotation_direction?-1:1)).multiply(new xt.Matrix4().makeTranslation(0,c.d/1e3,0)).multiply(new xt.Matrix4().makeTranslation(c.a/1e3,0,0)).multiply(new xt.Matrix4().makeRotationX(c.alpha));return n.multiply(g),n.decompose(d,m,f),{a:_,b:d}}function a(c,u,d,m){if(!t)return;const f=t[c];if(!f)return;const{a:_,b:g}=o(f,m);u.geometry.setPositions([_.toArray(),g.toArray()].flat()),d.position.set(g.x,g.y,g.z)}function i(c,u){n.identity(),c.forEach((d,m)=>{a(m,d.getObjectByName(ua),d.getObjectByName(da),u[m])})}function l(c){return xs(c,"^group_[0-9]+$")}return s.jsxs(s.Fragment,{children:[s.jsx(Ue,{rapidlyChangingMotionState:e,robotRootObjectName:"Scene",onRotationChanged:i,jointCollector:l}),s.jsxs("group",{...r,name:"Scene",children:[s.jsxs("mesh",{children:[s.jsx("sphereGeometry",{args:[.01,32,32]}),s.jsx("meshStandardMaterial",{color:"black",depthTest:!0})]}),t.map((c,u)=>{const{a:d,b:m}=o(c,e.state.joint_position.joints[u]??0);return s.jsxs("group",{name:`group_${u}`,children:[s.jsx(we.Line,{name:ua,points:[d,m],color:"white",lineWidth:5}),s.jsxs("mesh",{name:da,position:m,children:[s.jsx("sphereGeometry",{args:[.01,32,32]}),s.jsx("meshStandardMaterial",{color:"black",depthTest:!0})]},"mesh_"+u)]},"group_"+u)})]})]})}function Uo(e){return`https://cdn.jsdelivr.net/gh/wandelbotsgmbh/wandelbots-js-react-components/public/models/${e}.glb`}function js({rapidlyChangingMotionState:e,modelFromController:t,dhParameters:r,getModel:n=Uo,isGhost:o=!1,...a}){let i;const l=je.useRef(new wt.Group),c=je.useCallback(m=>{m!==null&&(l.current=m,console.log("robotRef.current",l.current),o&&l.current&&l.current.children.length>0&&u())},[o]),u=()=>{l.current&&!l.current.userData.ghostsCreated&&(l.current.traverse(m=>{if(m instanceof wt.Mesh&&!m.userData.isGhost){m.material instanceof wt.Material&&(m.material.colorWrite=!1);const f=m.clone(),_=m.clone();f.material=new wt.MeshStandardMaterial({depthTest:!0,depthWrite:!0,colorWrite:!1,polygonOffset:!0,polygonOffsetFactor:1}),f.userData.isGhost=!0,_.material=new wt.MeshStandardMaterial({color:"#D91433",opacity:.3,depthTest:!0,depthWrite:!1,transparent:!0,polygonOffset:!0,polygonOffsetFactor:-1}),_.userData.isGhost=!0,m.parent&&(m.parent.add(f),m.parent.add(_))}}),l.current.userData.ghostsCreated=!0)},d=()=>{if(l.current){const m=[];l.current.traverse(f=>{f instanceof wt.Mesh&&f.material instanceof wt.Material&&(f.material.colorWrite=!0),f instanceof wt.Mesh&&f.userData!==void 0&&f.userData&&f.userData.isGhost!==void 0&&f.userData.isGhost&&m.push(f)}),m.forEach(f=>{f.parent&&f.parent.remove(f)}),l.current.userData.ghostsCreated=!1}};switch(je.useEffect(()=>{o?u():d()},[o]),t){case"UniversalRobots_UR3":i=dl;break;case"UniversalRobots_UR3e":i=fl;break;case"UniversalRobots_UR5":i=ml;break;case"UniversalRobots_UR5e":i=hl;break;case"UniversalRobots_UR10":i=pl;break;case"UniversalRobots_UR10e":i=gl;break;case"Yaskawa_AR900":i=la;break;case"Yaskawa_GP7":i=la;break;case"Yaskawa_AR1440":i=yl;break;case"Yaskawa_AR1730":i=bl;break;case"Yaskawa_AR2010":i=_l;break;case"Yaskawa_AR3120":i=vl;break;case"FANUC_CRX10iA":i=Sl;break;case"FANUC_CRX25iA":i=xl;break;case"FANUC_CRX25iAL":i=wl;break;case"FANUC_ARC_Mate_120iD":i=ca;break;case"FANUC_ARC_Mate_120iD35":i=ca;break;case"FANUC_ARC_Mate_100iD":i=Cl;break;case"KUKA_KR210_R2700":i=Rl;break;case"KUKA_KR270_R2700":i=jl;break;case"ABB_1200_07_7":i=Pl;break;default:console.warn(`Unknown robot type: ${t}`),i=Zn}return s.jsx(el.ErrorBoundary,{fallback:s.jsx(Zn,{rapidlyChangingMotionState:e,dhParameters:r,...a}),children:s.jsx(je.Suspense,{fallback:s.jsx(Zn,{rapidlyChangingMotionState:e,dhParameters:r,...a}),children:s.jsx("group",{ref:c,children:s.jsx(i,{rapidlyChangingMotionState:e,modelURL:n(t),dhParameters:r,...a})})})})}function El({connectedMotionGroup:e,getModel:t=Uo,isGhost:r=!1,...n}){return e.dhParameters?s.jsx(js,{rapidlyChangingMotionState:e.rapidlyChangingMotionState,modelFromController:e.modelFromController||"",dhParameters:e.dhParameters,getModel:t,isGhost:r,...n}):null}const Tl=Array(6).fill(2*Math.PI);function Al(){return s.jsx(we.Environment,{children:s.jsx(Ol,{})})}function Ol({positions:e=[2,0,2,0,2,0,2,0]}){return s.jsxs(s.Fragment,{children:[s.jsx(we.Lightformer,{intensity:5,"rotation-x":Math.PI/2,position:[0,5,-9],scale:[10,10,1]}),s.jsx("group",{rotation:[0,.5,0],children:s.jsx("group",{children:e.map((t,r)=>s.jsx(we.Lightformer,{form:"circle",intensity:5,rotation:[Math.PI/2,0,0],position:[t,4,r*4],scale:[3,1,1]},r))})}),s.jsx(we.Lightformer,{intensity:40,"rotation-y":Math.PI/2,position:[-5,1,-1],scale:[20,.1,1]}),s.jsx(we.Lightformer,{intensity:20,"rotation-y":-Math.PI,position:[-5,-2,-1],scale:[20,.1,1]}),s.jsx(we.Lightformer,{"rotation-y":Math.PI/2,position:[-5,-1,-1],scale:[20,.5,1],intensity:5}),s.jsx(we.Lightformer,{"rotation-y":-Math.PI/2,position:[10,1,0],scale:[20,1,1],intensity:10}),s.jsx(we.Lightformer,{form:"ring",color:"white",intensity:5,scale:10,position:[-15,4,-18],target:[0,0,0]})]})}function Ml({safetyZones:e,...t}){return s.jsx("group",{...t,children:e.map((r,n)=>{let o=[];return r.geometry&&(r.geometry.compound?o=r.geometry.compound.child_geometries:r.geometry.convex_hull&&(o=[r.geometry])),o.map((a,i)=>{if(!a.convex_hull)return null;const l=a.convex_hull.vertices.map(u=>new wt.Vector3(u.x/1e3,u.y/1e3,u.z/1e3)),c=new tl.ConvexGeometry(l);return s.jsx(s.Fragment,{children:s.jsx("mesh",{geometry:c,children:s.jsx("meshStandardMaterial",{attach:"material",color:"#009f4d",opacity:.2,depthTest:!1,depthWrite:!1,transparent:!0,polygonOffset:!0,polygonOffsetFactor:-i},n)},`${n}-${i}`)})})})})}var vo={exports:{}},qr={exports:{}},_e={};/** @license React v16.13.1
31
- * react-is.production.min.js
32
- *
33
- * Copyright (c) Facebook, Inc. and its affiliates.
34
- *
35
- * This source code is licensed under the MIT license found in the
36
- * LICENSE file in the root directory of this source tree.
37
- */var fa;function kl(){if(fa)return _e;fa=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,i=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,m=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,_=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,y=e?Symbol.for("react.block"):60121,b=e?Symbol.for("react.fundamental"):60117,w=e?Symbol.for("react.responder"):60118,C=e?Symbol.for("react.scope"):60119;function P(v){if(typeof v=="object"&&v!==null){var N=v.$$typeof;switch(N){case t:switch(v=v.type,v){case c:case u:case n:case a:case o:case m:return v;default:switch(v=v&&v.$$typeof,v){case l:case d:case g:case _:case i:return v;default:return N}}case r:return N}}}function k(v){return P(v)===u}return _e.AsyncMode=c,_e.ConcurrentMode=u,_e.ContextConsumer=l,_e.ContextProvider=i,_e.Element=t,_e.ForwardRef=d,_e.Fragment=n,_e.Lazy=g,_e.Memo=_,_e.Portal=r,_e.Profiler=a,_e.StrictMode=o,_e.Suspense=m,_e.isAsyncMode=function(v){return k(v)||P(v)===c},_e.isConcurrentMode=k,_e.isContextConsumer=function(v){return P(v)===l},_e.isContextProvider=function(v){return P(v)===i},_e.isElement=function(v){return typeof v=="object"&&v!==null&&v.$$typeof===t},_e.isForwardRef=function(v){return P(v)===d},_e.isFragment=function(v){return P(v)===n},_e.isLazy=function(v){return P(v)===g},_e.isMemo=function(v){return P(v)===_},_e.isPortal=function(v){return P(v)===r},_e.isProfiler=function(v){return P(v)===a},_e.isStrictMode=function(v){return P(v)===o},_e.isSuspense=function(v){return P(v)===m},_e.isValidElementType=function(v){return typeof v=="string"||typeof v=="function"||v===n||v===u||v===a||v===o||v===m||v===f||typeof v=="object"&&v!==null&&(v.$$typeof===g||v.$$typeof===_||v.$$typeof===i||v.$$typeof===l||v.$$typeof===d||v.$$typeof===b||v.$$typeof===w||v.$$typeof===C||v.$$typeof===y)},_e.typeOf=P,_e}var ve={};/** @license React v16.13.1
38
- * react-is.development.js
39
- *
40
- * Copyright (c) Facebook, Inc. and its affiliates.
41
- *
42
- * This source code is licensed under the MIT license found in the
43
- * LICENSE file in the root directory of this source tree.
44
- */var ma;function Il(){return ma||(ma=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,i=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,m=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,_=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,y=e?Symbol.for("react.block"):60121,b=e?Symbol.for("react.fundamental"):60117,w=e?Symbol.for("react.responder"):60118,C=e?Symbol.for("react.scope"):60119;function P(O){return typeof O=="string"||typeof O=="function"||O===n||O===u||O===a||O===o||O===m||O===f||typeof O=="object"&&O!==null&&(O.$$typeof===g||O.$$typeof===_||O.$$typeof===i||O.$$typeof===l||O.$$typeof===d||O.$$typeof===b||O.$$typeof===w||O.$$typeof===C||O.$$typeof===y)}function k(O){if(typeof O=="object"&&O!==null){var Ce=O.$$typeof;switch(Ce){case t:var T=O.type;switch(T){case c:case u:case n:case a:case o:case m:return T;default:var ue=T&&T.$$typeof;switch(ue){case l:case d:case g:case _:case i:return ue;default:return Ce}}case r:return Ce}}}var v=c,N=u,I=l,de=i,Ee=t,Re=d,B=n,ae=g,Q=_,te=r,ne=a,be=o,ce=m,se=!1;function ke(O){return se||(se=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),R(O)||k(O)===c}function R(O){return k(O)===u}function M(O){return k(O)===l}function X(O){return k(O)===i}function G(O){return typeof O=="object"&&O!==null&&O.$$typeof===t}function D(O){return k(O)===d}function ee(O){return k(O)===n}function W(O){return k(O)===g}function z(O){return k(O)===_}function q(O){return k(O)===r}function re(O){return k(O)===a}function Y(O){return k(O)===o}function Te(O){return k(O)===m}ve.AsyncMode=v,ve.ConcurrentMode=N,ve.ContextConsumer=I,ve.ContextProvider=de,ve.Element=Ee,ve.ForwardRef=Re,ve.Fragment=B,ve.Lazy=ae,ve.Memo=Q,ve.Portal=te,ve.Profiler=ne,ve.StrictMode=be,ve.Suspense=ce,ve.isAsyncMode=ke,ve.isConcurrentMode=R,ve.isContextConsumer=M,ve.isContextProvider=X,ve.isElement=G,ve.isForwardRef=D,ve.isFragment=ee,ve.isLazy=W,ve.isMemo=z,ve.isPortal=q,ve.isProfiler=re,ve.isStrictMode=Y,ve.isSuspense=Te,ve.isValidElementType=P,ve.typeOf=k}()),ve}var ha;function Cs(){return ha||(ha=1,process.env.NODE_ENV==="production"?qr.exports=kl():qr.exports=Il()),qr.exports}/*
45
- object-assign
46
- (c) Sindre Sorhus
47
- @license MIT
48
- */var Qn,pa;function Ll(){if(pa)return Qn;pa=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function n(a){if(a==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(a)}function o(){try{if(!Object.assign)return!1;var a=new String("abc");if(a[5]="de",Object.getOwnPropertyNames(a)[0]==="5")return!1;for(var i={},l=0;l<10;l++)i["_"+String.fromCharCode(l)]=l;var c=Object.getOwnPropertyNames(i).map(function(d){return i[d]});if(c.join("")!=="0123456789")return!1;var u={};return"abcdefghijklmnopqrst".split("").forEach(function(d){u[d]=d}),Object.keys(Object.assign({},u)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Qn=o()?Object.assign:function(a,i){for(var l,c=n(a),u,d=1;d<arguments.length;d++){l=Object(arguments[d]);for(var m in l)t.call(l,m)&&(c[m]=l[m]);if(e){u=e(l);for(var f=0;f<u.length;f++)r.call(l,u[f])&&(c[u[f]]=l[u[f]])}}return c},Qn}var eo,ga;function Bo(){if(ga)return eo;ga=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return eo=e,eo}var to,ya;function Ps(){return ya||(ya=1,to=Function.call.bind(Object.prototype.hasOwnProperty)),to}var ro,ba;function $l(){if(ba)return ro;ba=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Bo(),r={},n=Ps();e=function(a){var i="Warning: "+a;typeof console<"u"&&console.error(i);try{throw new Error(i)}catch{}}}function o(a,i,l,c,u){if(process.env.NODE_ENV!=="production"){for(var d in a)if(n(a,d)){var m;try{if(typeof a[d]!="function"){var f=Error((c||"React class")+": "+l+" type `"+d+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof a[d]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw f.name="Invariant Violation",f}m=a[d](i,d,c,l,null,t)}catch(g){m=g}if(m&&!(m instanceof Error)&&e((c||"React class")+": type specification of "+l+" `"+d+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof m+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),m instanceof Error&&!(m.message in r)){r[m.message]=!0;var _=u?u():"";e("Failed "+l+" type: "+m.message+(_??""))}}}}return o.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(r={})},ro=o,ro}var no,_a;function Nl(){if(_a)return no;_a=1;var e=Cs(),t=Ll(),r=Bo(),n=Ps(),o=$l(),a=function(){};process.env.NODE_ENV!=="production"&&(a=function(l){var c="Warning: "+l;typeof console<"u"&&console.error(c);try{throw new Error(c)}catch{}});function i(){return null}return no=function(l,c){var u=typeof Symbol=="function"&&Symbol.iterator,d="@@iterator";function m(R){var M=R&&(u&&R[u]||R[d]);if(typeof M=="function")return M}var f="<<anonymous>>",_={array:w("array"),bigint:w("bigint"),bool:w("boolean"),func:w("function"),number:w("number"),object:w("object"),string:w("string"),symbol:w("symbol"),any:C(),arrayOf:P,element:k(),elementType:v(),instanceOf:N,node:Re(),objectOf:de,oneOf:I,oneOfType:Ee,shape:ae,exact:Q};function g(R,M){return R===M?R!==0||1/R===1/M:R!==R&&M!==M}function y(R,M){this.message=R,this.data=M&&typeof M=="object"?M:{},this.stack=""}y.prototype=Error.prototype;function b(R){if(process.env.NODE_ENV!=="production")var M={},X=0;function G(ee,W,z,q,re,Y,Te){if(q=q||f,Y=Y||z,Te!==r){if(c){var O=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw O.name="Invariant Violation",O}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var Ce=q+":"+z;!M[Ce]&&X<3&&(a("You are manually calling a React.PropTypes validation function for the `"+Y+"` prop on `"+q+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),M[Ce]=!0,X++)}}return W[z]==null?ee?W[z]===null?new y("The "+re+" `"+Y+"` is marked as required "+("in `"+q+"`, but its value is `null`.")):new y("The "+re+" `"+Y+"` is marked as required in "+("`"+q+"`, but its value is `undefined`.")):null:R(W,z,q,re,Y)}var D=G.bind(null,!1);return D.isRequired=G.bind(null,!0),D}function w(R){function M(X,G,D,ee,W,z){var q=X[G],re=be(q);if(re!==R){var Y=ce(q);return new y("Invalid "+ee+" `"+W+"` of type "+("`"+Y+"` supplied to `"+D+"`, expected ")+("`"+R+"`."),{expectedType:R})}return null}return b(M)}function C(){return b(i)}function P(R){function M(X,G,D,ee,W){if(typeof R!="function")return new y("Property `"+W+"` of component `"+D+"` has invalid PropType notation inside arrayOf.");var z=X[G];if(!Array.isArray(z)){var q=be(z);return new y("Invalid "+ee+" `"+W+"` of type "+("`"+q+"` supplied to `"+D+"`, expected an array."))}for(var re=0;re<z.length;re++){var Y=R(z,re,D,ee,W+"["+re+"]",r);if(Y instanceof Error)return Y}return null}return b(M)}function k(){function R(M,X,G,D,ee){var W=M[X];if(!l(W)){var z=be(W);return new y("Invalid "+D+" `"+ee+"` of type "+("`"+z+"` supplied to `"+G+"`, expected a single ReactElement."))}return null}return b(R)}function v(){function R(M,X,G,D,ee){var W=M[X];if(!e.isValidElementType(W)){var z=be(W);return new y("Invalid "+D+" `"+ee+"` of type "+("`"+z+"` supplied to `"+G+"`, expected a single ReactElement type."))}return null}return b(R)}function N(R){function M(X,G,D,ee,W){if(!(X[G]instanceof R)){var z=R.name||f,q=ke(X[G]);return new y("Invalid "+ee+" `"+W+"` of type "+("`"+q+"` supplied to `"+D+"`, expected ")+("instance of `"+z+"`."))}return null}return b(M)}function I(R){if(!Array.isArray(R))return process.env.NODE_ENV!=="production"&&(arguments.length>1?a("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):a("Invalid argument supplied to oneOf, expected an array.")),i;function M(X,G,D,ee,W){for(var z=X[G],q=0;q<R.length;q++)if(g(z,R[q]))return null;var re=JSON.stringify(R,function(Te,O){var Ce=ce(O);return Ce==="symbol"?String(O):O});return new y("Invalid "+ee+" `"+W+"` of value `"+String(z)+"` "+("supplied to `"+D+"`, expected one of "+re+"."))}return b(M)}function de(R){function M(X,G,D,ee,W){if(typeof R!="function")return new y("Property `"+W+"` of component `"+D+"` has invalid PropType notation inside objectOf.");var z=X[G],q=be(z);if(q!=="object")return new y("Invalid "+ee+" `"+W+"` of type "+("`"+q+"` supplied to `"+D+"`, expected an object."));for(var re in z)if(n(z,re)){var Y=R(z,re,D,ee,W+"."+re,r);if(Y instanceof Error)return Y}return null}return b(M)}function Ee(R){if(!Array.isArray(R))return process.env.NODE_ENV!=="production"&&a("Invalid argument supplied to oneOfType, expected an instance of array."),i;for(var M=0;M<R.length;M++){var X=R[M];if(typeof X!="function")return a("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+se(X)+" at index "+M+"."),i}function G(D,ee,W,z,q){for(var re=[],Y=0;Y<R.length;Y++){var Te=R[Y],O=Te(D,ee,W,z,q,r);if(O==null)return null;O.data&&n(O.data,"expectedType")&&re.push(O.data.expectedType)}var Ce=re.length>0?", expected one of type ["+re.join(", ")+"]":"";return new y("Invalid "+z+" `"+q+"` supplied to "+("`"+W+"`"+Ce+"."))}return b(G)}function Re(){function R(M,X,G,D,ee){return te(M[X])?null:new y("Invalid "+D+" `"+ee+"` supplied to "+("`"+G+"`, expected a ReactNode."))}return b(R)}function B(R,M,X,G,D){return new y((R||"React class")+": "+M+" type `"+X+"."+G+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+D+"`.")}function ae(R){function M(X,G,D,ee,W){var z=X[G],q=be(z);if(q!=="object")return new y("Invalid "+ee+" `"+W+"` of type `"+q+"` "+("supplied to `"+D+"`, expected `object`."));for(var re in R){var Y=R[re];if(typeof Y!="function")return B(D,ee,W,re,ce(Y));var Te=Y(z,re,D,ee,W+"."+re,r);if(Te)return Te}return null}return b(M)}function Q(R){function M(X,G,D,ee,W){var z=X[G],q=be(z);if(q!=="object")return new y("Invalid "+ee+" `"+W+"` of type `"+q+"` "+("supplied to `"+D+"`, expected `object`."));var re=t({},X[G],R);for(var Y in re){var Te=R[Y];if(n(R,Y)&&typeof Te!="function")return B(D,ee,W,Y,ce(Te));if(!Te)return new y("Invalid "+ee+" `"+W+"` key `"+Y+"` supplied to `"+D+"`.\nBad object: "+JSON.stringify(X[G],null," ")+`
49
- Valid keys: `+JSON.stringify(Object.keys(R),null," "));var O=Te(z,Y,D,ee,W+"."+Y,r);if(O)return O}return null}return b(M)}function te(R){switch(typeof R){case"number":case"string":case"undefined":return!0;case"boolean":return!R;case"object":if(Array.isArray(R))return R.every(te);if(R===null||l(R))return!0;var M=m(R);if(M){var X=M.call(R),G;if(M!==R.entries){for(;!(G=X.next()).done;)if(!te(G.value))return!1}else for(;!(G=X.next()).done;){var D=G.value;if(D&&!te(D[1]))return!1}}else return!1;return!0;default:return!1}}function ne(R,M){return R==="symbol"?!0:M?M["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&M instanceof Symbol:!1}function be(R){var M=typeof R;return Array.isArray(R)?"array":R instanceof RegExp?"object":ne(M,R)?"symbol":M}function ce(R){if(typeof R>"u"||R===null)return""+R;var M=be(R);if(M==="object"){if(R instanceof Date)return"date";if(R instanceof RegExp)return"regexp"}return M}function se(R){var M=ce(R);switch(M){case"array":case"object":return"an "+M;case"boolean":case"date":case"regexp":return"a "+M;default:return M}}function ke(R){return!R.constructor||!R.constructor.name?f:R.constructor.name}return _.checkPropTypes=o,_.resetWarningCache=o.resetWarningCache,_.PropTypes=_,_},no}var oo,va;function Fl(){if(va)return oo;va=1;var e=Bo();function t(){}function r(){}return r.resetWarningCache=t,oo=function(){function n(i,l,c,u,d,m){if(m!==e){var f=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw f.name="Invariant Violation",f}}n.isRequired=n;function o(){return n}var a={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:o,element:n,elementType:n,instanceOf:o,node:n,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:r,resetWarningCache:t};return a.PropTypes=a,a},oo}if(process.env.NODE_ENV!=="production"){var Dl=Cs(),Ul=!0;vo.exports=Nl()(Dl.isElement,Ul)}else vo.exports=Fl()();var Bl=vo.exports;const p=ol(Bl);function Or(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 Jl=Object.freeze(Object.defineProperty({__proto__:null,default:Or},Symbol.toStringTag,{value:"Module"}));var Vl=!1;function Gl(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 zl(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 Wl=function(){function e(r){var n=this;this._insertTag=function(o){var a;n.tags.length===0?n.insertionPoint?a=n.insertionPoint.nextSibling:n.prepend?a=n.container.firstChild:a=n.before:a=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(o,a),n.tags.push(o)},this.isSpeedy=r.speedy===void 0?!Vl: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(zl(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var a=Gl(o);try{a.insertRule(n,a.cssRules.length)}catch{}}else o.appendChild(document.createTextNode(n));this.ctr++},t.flush=function(){this.tags.forEach(function(n){var o;return(o=n.parentNode)==null?void 0:o.removeChild(n)}),this.tags=[],this.ctr=0},e}(),Ve="-ms-",hn="-moz-",pe="-webkit-",Es="comm",Jo="rule",Vo="decl",Hl="@import",Ts="@keyframes",ql="@layer",Kl=Math.abs,Cn=String.fromCharCode,Xl=Object.assign;function Yl(e,t){return Je(e,0)^45?(((t<<2^Je(e,0))<<2^Je(e,1))<<2^Je(e,2))<<2^Je(e,3):0}function As(e){return e.trim()}function Zl(e,t){return(e=t.exec(e))?e[0]:e}function ge(e,t,r){return e.replace(t,r)}function So(e,t){return e.indexOf(t)}function Je(e,t){return e.charCodeAt(t)|0}function Mr(e,t,r){return e.slice(t,r)}function yt(e){return e.length}function Go(e){return e.length}function Kr(e,t){return t.push(e),e}function Ql(e,t){return e.map(t).join("")}var Pn=1,sr=1,Os=0,Ye=0,Fe=0,lr="";function En(e,t,r,n,o,a,i){return{value:e,root:t,parent:r,type:n,props:o,children:a,line:Pn,column:sr,length:i,return:""}}function wr(e,t){return Xl(En("",null,null,"",null,null,0),e,{length:-e.length},t)}function ec(){return Fe}function tc(){return Fe=Ye>0?Je(lr,--Ye):0,sr--,Fe===10&&(sr=1,Pn--),Fe}function et(){return Fe=Ye<Os?Je(lr,Ye++):0,sr++,Fe===10&&(sr=1,Pn++),Fe}function vt(){return Je(lr,Ye)}function nn(){return Ye}function Nr(e,t){return Mr(lr,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 Ms(e){return Pn=sr=1,Os=yt(lr=e),Ye=0,[]}function ks(e){return lr="",e}function on(e){return As(Nr(Ye-1,xo(e===91?e+2:e===40?e+1:e)))}function rc(e){for(;(Fe=vt())&&Fe<33;)et();return kr(e)>2||kr(Fe)>3?"":" "}function nc(e,t){for(;--t&&et()&&!(Fe<48||Fe>102||Fe>57&&Fe<65||Fe>70&&Fe<97););return Nr(e,nn()+(t<6&&vt()==32&&et()==32))}function xo(e){for(;et();)switch(Fe){case e:return Ye;case 34:case 39:e!==34&&e!==39&&xo(Fe);break;case 40:e===41&&xo(e);break;case 92:et();break}return Ye}function oc(e,t){for(;et()&&e+Fe!==57;)if(e+Fe===84&&vt()===47)break;return"/*"+Nr(t,Ye-1)+"*"+Cn(e===47?e:et())}function ac(e){for(;!kr(vt());)et();return Nr(e,Ye)}function sc(e){return ks(an("",null,null,null,[""],e=Ms(e),0,[0],e))}function an(e,t,r,n,o,a,i,l,c){for(var u=0,d=0,m=i,f=0,_=0,g=0,y=1,b=1,w=1,C=0,P="",k=o,v=a,N=n,I=P;b;)switch(g=C,C=et()){case 40:if(g!=108&&Je(I,m-1)==58){So(I+=ge(on(C),"&","&\f"),"&\f")!=-1&&(w=-1);break}case 34:case 39:case 91:I+=on(C);break;case 9:case 10:case 13:case 32:I+=rc(g);break;case 92:I+=nc(nn()-1,7);continue;case 47:switch(vt()){case 42:case 47:Kr(ic(oc(et(),nn()),t,r),c);break;default:I+="/"}break;case 123*y:l[u++]=yt(I)*w;case 125*y:case 59:case 0:switch(C){case 0:case 125:b=0;case 59+d:w==-1&&(I=ge(I,/\f/g,"")),_>0&&yt(I)-m&&Kr(_>32?xa(I+";",n,r,m-1):xa(ge(I," ","")+";",n,r,m-2),c);break;case 59:I+=";";default:if(Kr(N=Sa(I,t,r,u,d,o,l,P,k=[],v=[],m),a),C===123)if(d===0)an(I,t,N,N,k,a,m,l,v);else switch(f===99&&Je(I,3)===110?100:f){case 100:case 108:case 109:case 115:an(e,N,N,n&&Kr(Sa(e,N,N,0,0,o,l,P,o,k=[],m),v),o,v,m,l,n?k:v);break;default:an(I,N,N,N,[""],v,0,l,v)}}u=d=_=0,y=w=1,P=I="",m=i;break;case 58:m=1+yt(I),_=g;default:if(y<1){if(C==123)--y;else if(C==125&&y++==0&&tc()==125)continue}switch(I+=Cn(C),C*y){case 38:w=d>0?1:(I+="\f",-1);break;case 44:l[u++]=(yt(I)-1)*w,w=1;break;case 64:vt()===45&&(I+=on(et())),f=vt(),d=m=yt(P=I+=ac(nn())),C++;break;case 45:g===45&&yt(I)==2&&(y=0)}}return a}function Sa(e,t,r,n,o,a,i,l,c,u,d){for(var m=o-1,f=o===0?a:[""],_=Go(f),g=0,y=0,b=0;g<n;++g)for(var w=0,C=Mr(e,m+1,m=Kl(y=i[g])),P=e;w<_;++w)(P=As(y>0?f[w]+" "+C:ge(C,/&\f/g,f[w])))&&(c[b++]=P);return En(e,t,r,o===0?Jo:l,c,u,d)}function ic(e,t,r){return En(e,t,r,Es,Cn(ec()),Mr(e,2,-2),0)}function xa(e,t,r,n){return En(e,t,r,Vo,Mr(e,0,n),Mr(e,n+1,-1),n)}function nr(e,t){for(var r="",n=Go(e),o=0;o<n;o++)r+=t(e[o],o,e,t)||"";return r}function lc(e,t,r,n){switch(e.type){case ql:if(e.children.length)break;case Hl:case Vo:return e.return=e.return||e.value;case Es:return"";case Ts:return e.return=e.value+"{"+nr(e.children,n)+"}";case Jo:e.value=e.props.join(",")}return yt(r=nr(e.children,n))?e.return=e.value+"{"+r+"}":""}function cc(e){var t=Go(e);return function(r,n,o,a){for(var i="",l=0;l<t;l++)i+=e[l](r,n,o,a)||"";return i}}function uc(e){return function(t){t.root||(t=t.return)&&e(t)}}var dc=function(t,r,n){for(var o=0,a=0;o=a,a=vt(),o===38&&a===12&&(r[n]=1),!kr(a);)et();return Nr(t,Ye)},fc=function(t,r){var n=-1,o=44;do switch(kr(o)){case 0:o===38&&vt()===12&&(r[n]=1),t[n]+=dc(Ye-1,r,n);break;case 2:t[n]+=on(o);break;case 4:if(o===44){t[++n]=vt()===58?"&\f":"",r[n]=t[n].length;break}default:t[n]+=Cn(o)}while(o=et());return t},mc=function(t,r){return ks(fc(Ms(t),r))},wa=new WeakMap,hc=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var r=t.value,n=t.parent,o=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&&!wa.get(n))&&!o){wa.set(t,!0);for(var a=[],i=mc(r,a),l=n.props,c=0,u=0;c<i.length;c++)for(var d=0;d<l.length;d++,u++)t.props[u]=a[c]?i[c].replace(/&\f/g,l[d]):l[d]+" "+i[c]}}},pc=function(t){if(t.type==="decl"){var r=t.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(t.return="",t.value="")}};function Is(e,t){switch(Yl(e,t)){case 5103:return pe+"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 pe+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return pe+e+hn+e+Ve+e+e;case 6828:case 4268:return pe+e+Ve+e+e;case 6165:return pe+e+Ve+"flex-"+e+e;case 5187:return pe+e+ge(e,/(\w+).+(:[^]+)/,pe+"box-$1$2"+Ve+"flex-$1$2")+e;case 5443:return pe+e+Ve+"flex-item-"+ge(e,/flex-|-self/,"")+e;case 4675:return pe+e+Ve+"flex-line-pack"+ge(e,/align-content|flex-|-self/,"")+e;case 5548:return pe+e+Ve+ge(e,"shrink","negative")+e;case 5292:return pe+e+Ve+ge(e,"basis","preferred-size")+e;case 6060:return pe+"box-"+ge(e,"-grow","")+pe+e+Ve+ge(e,"grow","positive")+e;case 4554:return pe+ge(e,/([^-])(transform)/g,"$1"+pe+"$2")+e;case 6187:return ge(ge(ge(e,/(zoom-|grab)/,pe+"$1"),/(image-set)/,pe+"$1"),e,"")+e;case 5495:case 3959:return ge(e,/(image-set\([^]*)/,pe+"$1$`$1");case 4968:return ge(ge(e,/(.+:)(flex-)?(.*)/,pe+"box-pack:$3"+Ve+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+pe+e+e;case 4095:case 3583:case 4068:case 2532:return ge(e,/(.+)-inline(.+)/,pe+"$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(yt(e)-1-t>6)switch(Je(e,t+1)){case 109:if(Je(e,t+4)!==45)break;case 102:return ge(e,/(.+:)(.+)-([^]+)/,"$1"+pe+"$2-$3$1"+hn+(Je(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~So(e,"stretch")?Is(ge(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Je(e,t+1)!==115)break;case 6444:switch(Je(e,yt(e)-3-(~So(e,"!important")&&10))){case 107:return ge(e,":",":"+pe)+e;case 101:return ge(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+pe+(Je(e,14)===45?"inline-":"")+"box$3$1"+pe+"$2$3$1"+Ve+"$2box$3")+e}break;case 5936:switch(Je(e,t+11)){case 114:return pe+e+Ve+ge(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return pe+e+Ve+ge(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return pe+e+Ve+ge(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return pe+e+Ve+e+e}return e}var gc=function(t,r,n,o){if(t.length>-1&&!t.return)switch(t.type){case Vo:t.return=Is(t.value,t.length);break;case Ts:return nr([wr(t,{value:ge(t.value,"@","@"+pe)})],o);case Jo:if(t.length)return Ql(t.props,function(a){switch(Zl(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return nr([wr(t,{props:[ge(a,/:(read-\w+)/,":"+hn+"$1")]})],o);case"::placeholder":return nr([wr(t,{props:[ge(a,/:(plac\w+)/,":"+pe+"input-$1")]}),wr(t,{props:[ge(a,/:(plac\w+)/,":"+hn+"$1")]}),wr(t,{props:[ge(a,/:(plac\w+)/,Ve+"input-$1")]})],o)}return""})}},yc=[gc],bc=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(y){var b=y.getAttribute("data-emotion");b.indexOf(" ")!==-1&&(document.head.appendChild(y),y.setAttribute("data-s",""))})}var o=t.stylisPlugins||yc,a={},i,l=[];i=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(y){for(var b=y.getAttribute("data-emotion").split(" "),w=1;w<b.length;w++)a[b[w]]=!0;l.push(y)});var c,u=[hc,pc];{var d,m=[lc,uc(function(y){d.insert(y)})],f=cc(u.concat(o,m)),_=function(b){return nr(sc(b),f)};c=function(b,w,C,P){d=C,_(b?b+"{"+w.styles+"}":w.styles),P&&(g.inserted[w.name]=!0)}}var g={key:r,sheet:new Wl({key:r,container:i,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:a,registered:{},insert:c};return g.sheet.hydrate(l),g};let wo;typeof document=="object"&&(wo=bc({key:"css",prepend:!0}));function Ls(e){const{injectFirst:t,children:r}=e;return t&&wo?s.jsx(tr.CacheProvider,{value:wo,children:r}):r}process.env.NODE_ENV!=="production"&&(Ls.propTypes={children:p.node,injectFirst:p.bool});function _c(e){return e==null||Object.keys(e).length===0}function $s(e){const{styles:t,defaultTheme:r={}}=e,n=typeof t=="function"?o=>t(_c(o)?r:o):t;return s.jsx(tr.Global,{styles:n})}process.env.NODE_ENV!=="production"&&($s.propTypes={defaultTheme:p.object,styles:p.oneOfType([p.array,p.string,p.object,p.func])});/**
30
+ <%s key={someKey} {...props} />`,Xn,$t,Pi,$t),Wr[$t+Xn]=!0}}return f===n?zn(be):Gn(be),be}}function Wn(f,w,M){return Hr(f,w,M,!0)}function Hn(f,w,M){return Hr(f,w,M,!1)}var xr=Hn,Kn=Wn;vr.Fragment=n,vr.jsx=xr,vr.jsxs=Kn}()),vr}process.env.NODE_ENV==="production"?uo.exports=Ni():uo.exports=$i();var s=uo.exports;function Mr(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 Fi=Object.freeze(Object.defineProperty({__proto__:null,default:Mr},Symbol.toStringTag,{value:"Module"})),Di="$$material";function A(){return A=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},A.apply(null,arguments)}function Ge(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}var Ui=!1;function Bi(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 Ji(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 Vi=function(){function e(r){var n=this;this._insertTag=function(o){var a;n.tags.length===0?n.insertionPoint?a=n.insertionPoint.nextSibling:n.prepend?a=n.container.firstChild:a=n.before:a=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(o,a),n.tags.push(o)},this.isSpeedy=r.speedy===void 0?!Ui: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(Ji(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var a=Bi(o);try{a.insertRule(n,a.cssRules.length)}catch{}}else o.appendChild(document.createTextNode(n));this.ctr++},t.flush=function(){this.tags.forEach(function(n){var o;return(o=n.parentNode)==null?void 0:o.removeChild(n)}),this.tags=[],this.ctr=0},e}(),Pe="-ms-",hn="-moz-",te="-webkit-",os="comm",Mo="rule",ko="decl",Gi="@import",as="@keyframes",zi="@layer",Wi=Math.abs,Rn=String.fromCharCode,Hi=Object.assign;function Ki(e,t){return Ce(e,0)^45?(((t<<2^Ce(e,0))<<2^Ce(e,1))<<2^Ce(e,2))<<2^Ce(e,3):0}function ss(e){return e.trim()}function Xi(e,t){return(e=t.exec(e))?e[0]:e}function re(e,t,r){return e.replace(t,r)}function mo(e,t){return e.indexOf(t)}function Ce(e,t){return e.charCodeAt(t)|0}function kr(e,t,r){return e.slice(t,r)}function ut(e){return e.length}function To(e){return e.length}function Kr(e,t){return t.push(e),e}function qi(e,t){return e.map(t).join("")}var jn=1,sr=1,is=0,Ne=0,xe=0,ir="";function Cn(e,t,r,n,o,a,i){return{value:e,root:t,parent:r,type:n,props:o,children:a,line:jn,column:sr,length:i,return:""}}function wr(e,t){return Hi(Cn("",null,null,"",null,null,0),e,{length:-e.length},t)}function Yi(){return xe}function Zi(){return xe=Ne>0?Ce(ir,--Ne):0,sr--,xe===10&&(sr=1,jn--),xe}function Be(){return xe=Ne<is?Ce(ir,Ne++):0,sr++,xe===10&&(sr=1,jn++),xe}function ht(){return Ce(ir,Ne)}function rn(){return Ne}function $r(e,t){return kr(ir,e,t)}function Tr(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 ls(e){return jn=sr=1,is=ut(ir=e),Ne=0,[]}function cs(e){return ir="",e}function nn(e){return ss($r(Ne-1,ho(e===91?e+2:e===40?e+1:e)))}function Qi(e){for(;(xe=ht())&&xe<33;)Be();return Tr(e)>2||Tr(xe)>3?"":" "}function el(e,t){for(;--t&&Be()&&!(xe<48||xe>102||xe>57&&xe<65||xe>70&&xe<97););return $r(e,rn()+(t<6&&ht()==32&&Be()==32))}function ho(e){for(;Be();)switch(xe){case e:return Ne;case 34:case 39:e!==34&&e!==39&&ho(xe);break;case 40:e===41&&ho(e);break;case 92:Be();break}return Ne}function tl(e,t){for(;Be()&&e+xe!==57;)if(e+xe===84&&ht()===47)break;return"/*"+$r(t,Ne-1)+"*"+Rn(e===47?e:Be())}function rl(e){for(;!Tr(ht());)Be();return $r(e,Ne)}function nl(e){return cs(on("",null,null,null,[""],e=ls(e),0,[0],e))}function on(e,t,r,n,o,a,i,l,c){for(var u=0,d=0,h=i,m=0,b=0,_=0,y=1,g=1,v=1,R=0,P="",N=o,j=a,I=n,O=P;g;)switch(_=R,R=Be()){case 40:if(_!=108&&Ce(O,h-1)==58){mo(O+=re(nn(R),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:O+=nn(R);break;case 9:case 10:case 13:case 32:O+=Qi(_);break;case 92:O+=el(rn()-1,7);continue;case 47:switch(ht()){case 42:case 47:Kr(ol(tl(Be(),rn()),t,r),c);break;default:O+="/"}break;case 123*y:l[u++]=ut(O)*v;case 125*y:case 59:case 0:switch(R){case 0:case 125:g=0;case 59+d:v==-1&&(O=re(O,/\f/g,"")),b>0&&ut(O)-h&&Kr(b>32?Zo(O+";",n,r,h-1):Zo(re(O," ","")+";",n,r,h-2),c);break;case 59:O+=";";default:if(Kr(I=Yo(O,t,r,u,d,o,l,P,N=[],j=[],h),a),R===123)if(d===0)on(O,t,I,I,N,a,h,l,j);else switch(m===99&&Ce(O,3)===110?100:m){case 100:case 108:case 109:case 115:on(e,I,I,n&&Kr(Yo(e,I,I,0,0,o,l,P,o,N=[],h),j),o,j,h,l,n?N:j);break;default:on(O,I,I,I,[""],j,0,l,j)}}u=d=b=0,y=v=1,P=O="",h=i;break;case 58:h=1+ut(O),b=_;default:if(y<1){if(R==123)--y;else if(R==125&&y++==0&&Zi()==125)continue}switch(O+=Rn(R),R*y){case 38:v=d>0?1:(O+="\f",-1);break;case 44:l[u++]=(ut(O)-1)*v,v=1;break;case 64:ht()===45&&(O+=nn(Be())),m=ht(),d=h=ut(P=O+=rl(rn())),R++;break;case 45:_===45&&ut(O)==2&&(y=0)}}return a}function Yo(e,t,r,n,o,a,i,l,c,u,d){for(var h=o-1,m=o===0?a:[""],b=To(m),_=0,y=0,g=0;_<n;++_)for(var v=0,R=kr(e,h+1,h=Wi(y=i[_])),P=e;v<b;++v)(P=ss(y>0?m[v]+" "+R:re(R,/&\f/g,m[v])))&&(c[g++]=P);return Cn(e,t,r,o===0?Mo:l,c,u,d)}function ol(e,t,r){return Cn(e,t,r,os,Rn(Yi()),kr(e,2,-2),0)}function Zo(e,t,r,n){return Cn(e,t,r,ko,kr(e,0,n),kr(e,n+1,-1),n)}function nr(e,t){for(var r="",n=To(e),o=0;o<n;o++)r+=t(e[o],o,e,t)||"";return r}function al(e,t,r,n){switch(e.type){case zi:if(e.children.length)break;case Gi:case ko:return e.return=e.return||e.value;case os:return"";case as:return e.return=e.value+"{"+nr(e.children,n)+"}";case Mo:e.value=e.props.join(",")}return ut(r=nr(e.children,n))?e.return=e.value+"{"+r+"}":""}function sl(e){var t=To(e);return function(r,n,o,a){for(var i="",l=0;l<t;l++)i+=e[l](r,n,o,a)||"";return i}}function il(e){return function(t){t.root||(t=t.return)&&e(t)}}var ll=function(t,r,n){for(var o=0,a=0;o=a,a=ht(),o===38&&a===12&&(r[n]=1),!Tr(a);)Be();return $r(t,Ne)},cl=function(t,r){var n=-1,o=44;do switch(Tr(o)){case 0:o===38&&ht()===12&&(r[n]=1),t[n]+=ll(Ne-1,r,n);break;case 2:t[n]+=nn(o);break;case 4:if(o===44){t[++n]=ht()===58?"&\f":"",r[n]=t[n].length;break}default:t[n]+=Rn(o)}while(o=Be());return t},ul=function(t,r){return cs(cl(ls(t),r))},Qo=new WeakMap,dl=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var r=t.value,n=t.parent,o=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&&!Qo.get(n))&&!o){Qo.set(t,!0);for(var a=[],i=ul(r,a),l=n.props,c=0,u=0;c<i.length;c++)for(var d=0;d<l.length;d++,u++)t.props[u]=a[c]?i[c].replace(/&\f/g,l[d]):l[d]+" "+i[c]}}},ml=function(t){if(t.type==="decl"){var r=t.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(t.return="",t.value="")}};function us(e,t){switch(Ki(e,t)){case 5103:return te+"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 te+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return te+e+hn+e+Pe+e+e;case 6828:case 4268:return te+e+Pe+e+e;case 6165:return te+e+Pe+"flex-"+e+e;case 5187:return te+e+re(e,/(\w+).+(:[^]+)/,te+"box-$1$2"+Pe+"flex-$1$2")+e;case 5443:return te+e+Pe+"flex-item-"+re(e,/flex-|-self/,"")+e;case 4675:return te+e+Pe+"flex-line-pack"+re(e,/align-content|flex-|-self/,"")+e;case 5548:return te+e+Pe+re(e,"shrink","negative")+e;case 5292:return te+e+Pe+re(e,"basis","preferred-size")+e;case 6060:return te+"box-"+re(e,"-grow","")+te+e+Pe+re(e,"grow","positive")+e;case 4554:return te+re(e,/([^-])(transform)/g,"$1"+te+"$2")+e;case 6187:return re(re(re(e,/(zoom-|grab)/,te+"$1"),/(image-set)/,te+"$1"),e,"")+e;case 5495:case 3959:return re(e,/(image-set\([^]*)/,te+"$1$`$1");case 4968:return re(re(e,/(.+:)(flex-)?(.*)/,te+"box-pack:$3"+Pe+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+te+e+e;case 4095:case 3583:case 4068:case 2532:return re(e,/(.+)-inline(.+)/,te+"$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(ut(e)-1-t>6)switch(Ce(e,t+1)){case 109:if(Ce(e,t+4)!==45)break;case 102:return re(e,/(.+:)(.+)-([^]+)/,"$1"+te+"$2-$3$1"+hn+(Ce(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~mo(e,"stretch")?us(re(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Ce(e,t+1)!==115)break;case 6444:switch(Ce(e,ut(e)-3-(~mo(e,"!important")&&10))){case 107:return re(e,":",":"+te)+e;case 101:return re(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+te+(Ce(e,14)===45?"inline-":"")+"box$3$1"+te+"$2$3$1"+Pe+"$2box$3")+e}break;case 5936:switch(Ce(e,t+11)){case 114:return te+e+Pe+re(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return te+e+Pe+re(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return te+e+Pe+re(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return te+e+Pe+e+e}return e}var hl=function(t,r,n,o){if(t.length>-1&&!t.return)switch(t.type){case ko:t.return=us(t.value,t.length);break;case as:return nr([wr(t,{value:re(t.value,"@","@"+te)})],o);case Mo:if(t.length)return qi(t.props,function(a){switch(Xi(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return nr([wr(t,{props:[re(a,/:(read-\w+)/,":"+hn+"$1")]})],o);case"::placeholder":return nr([wr(t,{props:[re(a,/:(plac\w+)/,":"+te+"input-$1")]}),wr(t,{props:[re(a,/:(plac\w+)/,":"+hn+"$1")]}),wr(t,{props:[re(a,/:(plac\w+)/,Pe+"input-$1")]})],o)}return""})}},fl=[hl],pl=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(y){var g=y.getAttribute("data-emotion");g.indexOf(" ")!==-1&&(document.head.appendChild(y),y.setAttribute("data-s",""))})}var o=t.stylisPlugins||fl,a={},i,l=[];i=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(y){for(var g=y.getAttribute("data-emotion").split(" "),v=1;v<g.length;v++)a[g[v]]=!0;l.push(y)});var c,u=[dl,ml];{var d,h=[al,il(function(y){d.insert(y)})],m=sl(u.concat(o,h)),b=function(g){return nr(nl(g),m)};c=function(g,v,R,P){d=R,b(g?g+"{"+v.styles+"}":v.styles),P&&(_.inserted[v.name]=!0)}}var _={key:r,sheet:new Vi({key:r,container:i,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:a,registered:{},insert:c};return _.sheet.hydrate(l),_};let fo;typeof document=="object"&&(fo=pl({key:"css",prepend:!0}));function ds(e){const{injectFirst:t,children:r}=e;return t&&fo?s.jsx(Dt.CacheProvider,{value:fo,children:r}):r}process.env.NODE_ENV!=="production"&&(ds.propTypes={children:p.node,injectFirst:p.bool});function gl(e){return e==null||Object.keys(e).length===0}function ms(e){const{styles:t,defaultTheme:r={}}=e,n=typeof t=="function"?o=>t(gl(o)?r:o):t;return s.jsx(Dt.Global,{styles:n})}process.env.NODE_ENV!=="production"&&(ms.propTypes={defaultTheme:p.object,styles:p.oneOfType([p.array,p.string,p.object,p.func])});/**
50
31
  * @mui/styled-engine v5.16.6
51
32
  *
52
33
  * @license MIT
53
34
  * This source code is licensed under the MIT license found in the
54
35
  * LICENSE file in the root directory of this source tree.
55
- */function Ns(e,t){const r=rl(e,t);return process.env.NODE_ENV!=="production"?(...n)=>{const o=typeof e=="string"?`"${e}"`:"component";return n.length===0?console.error([`MUI: Seems like you called \`styled(${o})()\` without a \`style\` argument.`,'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join(`
56
- `)):n.some(a=>a===void 0)&&console.error(`MUI: the styled(${o})(...args) API requires all its args to be defined.`),r(...n)}:r}const Fs=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},vc=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:$s,StyledEngineProvider:Ls,ThemeContext:tr.ThemeContext,css:tr.css,default:Ns,internal_processStyles:Fs,keyframes:tr.keyframes},Symbol.toStringTag,{value:"Module"}));function A(){return A=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},A.apply(null,arguments)}function rt(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 Rt(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 Ds(e){if(!Rt(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=Ds(e[r])}),t}function ct(e,t,r={clone:!0}){const n=r.clone?A({},e):e;return Rt(e)&&Rt(t)&&Object.keys(t).forEach(o=>{Rt(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&Rt(e[o])?n[o]=ct(e[o],t[o],r):r.clone?n[o]=Rt(t[o])?Ds(t[o]):t[o]:n[o]=t[o]}),n}const Sc=Object.freeze(Object.defineProperty({__proto__:null,default:ct,isPlainObject:Rt},Symbol.toStringTag,{value:"Module"})),xc=["values","unit","step"],wc=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)=>A({},r,{[n.key]:n.val}),{})};function Us(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,o=rt(e,xc),a=wc(t),i=Object.keys(a);function l(f){return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${r})`}function c(f){return`@media (max-width:${(typeof t[f]=="number"?t[f]:f)-n/100}${r})`}function u(f,_){const g=i.indexOf(_);return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${r}) and (max-width:${(g!==-1&&typeof t[i[g]]=="number"?t[i[g]]:_)-n/100}${r})`}function d(f){return i.indexOf(f)+1<i.length?u(f,i[i.indexOf(f)+1]):l(f)}function m(f){const _=i.indexOf(f);return _===0?l(i[1]):_===i.length-1?c(i[_]):u(f,i[i.indexOf(f)+1]).replace("@media","@media not all and")}return A({keys:i,values:a,up:l,down:c,between:u,only:d,not:m,unit:r},o)}const Rc={borderRadius:4},kt=process.env.NODE_ENV!=="production"?p.oneOfType([p.number,p.string,p.object,p.array]):{};function Pr(e,t){return t?ct(e,t,{clone:!1}):e}const zo={xs:0,sm:600,md:900,lg:1200,xl:1536},Ra={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${zo[e]}px)`};function pt(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const a=n.breakpoints||Ra;return t.reduce((i,l,c)=>(i[a.up(a.keys[c])]=r(t[c]),i),{})}if(typeof t=="object"){const a=n.breakpoints||Ra;return Object.keys(t).reduce((i,l)=>{if(Object.keys(a.values||zo).indexOf(l)!==-1){const c=a.up(l);i[c]=r(t[l],l)}else{const c=l;i[c]=t[c]}return i},{})}return r(t)}function Bs(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((n,o)=>{const a=e.up(o);return n[a]={},n},{}))||{}}function Js(e,t){return e.reduce((r,n)=>{const o=r[n];return(!o||Object.keys(o).length===0)&&delete r[n],r},t)}function jc(e,...t){const r=Bs(e),n=[r,...t].reduce((o,a)=>ct(o,a),{});return Js(Object.keys(r),n)}function Cc(e,t){if(typeof e!="object")return{};const r={},n=Object.keys(t);return Array.isArray(e)?n.forEach((o,a)=>{a<e.length&&(r[o]=!0)}):n.forEach(o=>{e[o]!=null&&(r[o]=!0)}),r}function ao({values:e,breakpoints:t,base:r}){const n=r||Cc(e,t),o=Object.keys(n);if(o.length===0)return e;let a;return o.reduce((i,l,c)=>(Array.isArray(e)?(i[l]=e[c]!=null?e[c]:e[a],a=c):typeof e=="object"?(i[l]=e[l]!=null?e[l]:e[a],a=l):i[l]=e,i),{})}function it(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":Or(7));return e.charAt(0).toUpperCase()+e.slice(1)}const Pc=Object.freeze(Object.defineProperty({__proto__:null,default:it},Symbol.toStringTag,{value:"Module"}));function Tn(e,t,r=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&r){const n=`vars.${t}`.split(".").reduce((o,a)=>o&&o[a]?o[a]:null,e);if(n!=null)return n}return t.split(".").reduce((n,o)=>n&&n[o]!=null?n[o]:null,e)}function pn(e,t,r,n=r){let o;return typeof e=="function"?o=e(r):Array.isArray(e)?o=e[r]||n:o=Tn(e,r)||n,t&&(o=t(o,n,e)),o}function Le(e){const{prop:t,cssProperty:r=e.prop,themeKey:n,transform:o}=e,a=i=>{if(i[t]==null)return null;const l=i[t],c=i.theme,u=Tn(c,n)||{};return pt(i,l,m=>{let f=pn(u,o,m);return m===f&&typeof m=="string"&&(f=pn(u,o,`${t}${m==="default"?"":it(m)}`,m)),r===!1?f:{[r]:f}})};return a.propTypes=process.env.NODE_ENV!=="production"?{[t]:kt}:{},a.filterProps=[t],a}function Ec(e){const t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}const Tc={m:"margin",p:"padding"},Ac={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},ja={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Oc=Ec(e=>{if(e.length>2)if(ja[e])e=ja[e];else return[e];const[t,r]=e.split(""),n=Tc[t],o=Ac[r]||"";return Array.isArray(o)?o.map(a=>n+a):[n+o]}),An=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],On=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],Mc=[...An,...On];function Fr(e,t,r,n){var o;const a=(o=Tn(e,t,!1))!=null?o:r;return typeof a=="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}.`),a*i):Array.isArray(a)?i=>typeof i=="string"?i:(process.env.NODE_ENV!=="production"&&(Number.isInteger(i)?i>a.length-1&&console.error([`MUI: The value provided (${i}) overflows.`,`The supported values are: ${JSON.stringify(a)}.`,`${i} > ${a.length-1}, you need to add the missing values.`].join(`
36
+ */function hs(e,t){const r=Ii(e,t);return process.env.NODE_ENV!=="production"?(...n)=>{const o=typeof e=="string"?`"${e}"`:"component";return n.length===0?console.error([`MUI: Seems like you called \`styled(${o})()\` without a \`style\` argument.`,'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join(`
37
+ `)):n.some(a=>a===void 0)&&console.error(`MUI: the styled(${o})(...args) API requires all its args to be defined.`),r(...n)}:r}const fs=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},yl=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:ms,StyledEngineProvider:ds,ThemeContext:Dt.ThemeContext,css:Dt.css,default:hs,internal_processStyles:fs,keyframes:Dt.keyframes},Symbol.toStringTag,{value:"Module"}));function xt(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 ps(e){if(!xt(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=ps(e[r])}),t}function Qe(e,t,r={clone:!0}){const n=r.clone?A({},e):e;return xt(e)&&xt(t)&&Object.keys(t).forEach(o=>{xt(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&xt(e[o])?n[o]=Qe(e[o],t[o],r):r.clone?n[o]=xt(t[o])?ps(t[o]):t[o]:n[o]=t[o]}),n}const _l=Object.freeze(Object.defineProperty({__proto__:null,default:Qe,isPlainObject:xt},Symbol.toStringTag,{value:"Module"})),bl=["values","unit","step"],xl=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)=>A({},r,{[n.key]:n.val}),{})};function gs(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,o=Ge(e,bl),a=xl(t),i=Object.keys(a);function l(m){return`@media (min-width:${typeof t[m]=="number"?t[m]:m}${r})`}function c(m){return`@media (max-width:${(typeof t[m]=="number"?t[m]:m)-n/100}${r})`}function u(m,b){const _=i.indexOf(b);return`@media (min-width:${typeof t[m]=="number"?t[m]:m}${r}) and (max-width:${(_!==-1&&typeof t[i[_]]=="number"?t[i[_]]:b)-n/100}${r})`}function d(m){return i.indexOf(m)+1<i.length?u(m,i[i.indexOf(m)+1]):l(m)}function h(m){const b=i.indexOf(m);return b===0?l(i[1]):b===i.length-1?c(i[b]):u(m,i[i.indexOf(m)+1]).replace("@media","@media not all and")}return A({keys:i,values:a,up:l,down:c,between:u,only:d,not:h,unit:r},o)}const Sl={borderRadius:4},Mt=process.env.NODE_ENV!=="production"?p.oneOfType([p.number,p.string,p.object,p.array]):{};function Pr(e,t){return t?Qe(e,t,{clone:!1}):e}const Eo={xs:0,sm:600,md:900,lg:1200,xl:1536},ea={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Eo[e]}px)`};function at(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const a=n.breakpoints||ea;return t.reduce((i,l,c)=>(i[a.up(a.keys[c])]=r(t[c]),i),{})}if(typeof t=="object"){const a=n.breakpoints||ea;return Object.keys(t).reduce((i,l)=>{if(Object.keys(a.values||Eo).indexOf(l)!==-1){const c=a.up(l);i[c]=r(t[l],l)}else{const c=l;i[c]=t[c]}return i},{})}return r(t)}function ys(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((n,o)=>{const a=e.up(o);return n[a]={},n},{}))||{}}function _s(e,t){return e.reduce((r,n)=>{const o=r[n];return(!o||Object.keys(o).length===0)&&delete r[n],r},t)}function vl(e,...t){const r=ys(e),n=[r,...t].reduce((o,a)=>Qe(o,a),{});return _s(Object.keys(r),n)}function wl(e,t){if(typeof e!="object")return{};const r={},n=Object.keys(t);return Array.isArray(e)?n.forEach((o,a)=>{a<e.length&&(r[o]=!0)}):n.forEach(o=>{e[o]!=null&&(r[o]=!0)}),r}function qn({values:e,breakpoints:t,base:r}){const n=r||wl(e,t),o=Object.keys(n);if(o.length===0)return e;let a;return o.reduce((i,l,c)=>(Array.isArray(e)?(i[l]=e[c]!=null?e[c]:e[a],a=c):typeof e=="object"?(i[l]=e[l]!=null?e[l]:e[a],a=l):i[l]=e,i),{})}function Ye(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":Mr(7));return e.charAt(0).toUpperCase()+e.slice(1)}const Rl=Object.freeze(Object.defineProperty({__proto__:null,default:Ye},Symbol.toStringTag,{value:"Module"}));function Pn(e,t,r=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&r){const n=`vars.${t}`.split(".").reduce((o,a)=>o&&o[a]?o[a]:null,e);if(n!=null)return n}return t.split(".").reduce((n,o)=>n&&n[o]!=null?n[o]:null,e)}function fn(e,t,r,n=r){let o;return typeof e=="function"?o=e(r):Array.isArray(e)?o=e[r]||n:o=Pn(e,r)||n,t&&(o=t(o,n,e)),o}function ge(e){const{prop:t,cssProperty:r=e.prop,themeKey:n,transform:o}=e,a=i=>{if(i[t]==null)return null;const l=i[t],c=i.theme,u=Pn(c,n)||{};return at(i,l,h=>{let m=fn(u,o,h);return h===m&&typeof h=="string"&&(m=fn(u,o,`${t}${h==="default"?"":Ye(h)}`,h)),r===!1?m:{[r]:m}})};return a.propTypes=process.env.NODE_ENV!=="production"?{[t]:Mt}:{},a.filterProps=[t],a}function jl(e){const t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}const Cl={m:"margin",p:"padding"},Pl={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},ta={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Al=jl(e=>{if(e.length>2)if(ta[e])e=ta[e];else return[e];const[t,r]=e.split(""),n=Cl[t],o=Pl[r]||"";return Array.isArray(o)?o.map(a=>n+a):[n+o]}),An=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Ln=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],Ll=[...An,...Ln];function Fr(e,t,r,n){var o;const a=(o=Pn(e,t,!1))!=null?o:r;return typeof a=="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}.`),a*i):Array.isArray(a)?i=>typeof i=="string"?i:(process.env.NODE_ENV!=="production"&&(Number.isInteger(i)?i>a.length-1&&console.error([`MUI: The value provided (${i}) overflows.`,`The supported values are: ${JSON.stringify(a)}.`,`${i} > ${a.length-1}, you need to add the missing values.`].join(`
57
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(`
58
39
  `))),a[i]):typeof a=="function"?a:(process.env.NODE_ENV!=="production"&&console.error([`MUI: The \`theme.${t}\` value (${a}) is invalid.`,"It should be a number, an array or a function."].join(`
59
- `)),()=>{})}function Wo(e){return Fr(e,"spacing",8,"spacing")}function Ut(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 kc(e,t){return r=>e.reduce((n,o)=>(n[o]=Ut(t,r),n),{})}function Ic(e,t,r,n){if(t.indexOf(r)===-1)return null;const o=Oc(r),a=kc(o,n),i=e[r];return pt(e,i,a)}function Vs(e,t){const r=Wo(e.theme);return Object.keys(e).map(n=>Ic(e,t,n,r)).reduce(Pr,{})}function Oe(e){return Vs(e,An)}Oe.propTypes=process.env.NODE_ENV!=="production"?An.reduce((e,t)=>(e[t]=kt,e),{}):{};Oe.filterProps=An;function Me(e){return Vs(e,On)}Me.propTypes=process.env.NODE_ENV!=="production"?On.reduce((e,t)=>(e[t]=kt,e),{}):{};Me.filterProps=On;process.env.NODE_ENV!=="production"&&Mc.reduce((e,t)=>(e[t]=kt,e),{});function Lc(e=8){if(e.mui)return e;const t=Wo({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(a=>{const i=t(a);return typeof i=="number"?`${i}px`:i}).join(" "));return r.mui=!0,r}function Mn(...e){const t=e.reduce((n,o)=>(o.filterProps.forEach(a=>{n[a]=o}),n),{}),r=n=>Object.keys(n).reduce((o,a)=>t[a]?Pr(o,t[a](n)):o,{});return r.propTypes=process.env.NODE_ENV!=="production"?e.reduce((n,o)=>Object.assign(n,o.propTypes),{}):{},r.filterProps=e.reduce((n,o)=>n.concat(o.filterProps),[]),r}function st(e){return typeof e!="number"?e:`${e}px solid`}function ft(e,t){return Le({prop:e,themeKey:"borders",transform:t})}const $c=ft("border",st),Nc=ft("borderTop",st),Fc=ft("borderRight",st),Dc=ft("borderBottom",st),Uc=ft("borderLeft",st),Bc=ft("borderColor"),Jc=ft("borderTopColor"),Vc=ft("borderRightColor"),Gc=ft("borderBottomColor"),zc=ft("borderLeftColor"),Wc=ft("outline",st),Hc=ft("outlineColor"),kn=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Fr(e.theme,"shape.borderRadius",4,"borderRadius"),r=n=>({borderRadius:Ut(t,n)});return pt(e,e.borderRadius,r)}return null};kn.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:kt}:{};kn.filterProps=["borderRadius"];Mn($c,Nc,Fc,Dc,Uc,Bc,Jc,Vc,Gc,zc,kn,Wc,Hc);const In=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Fr(e.theme,"spacing",8,"gap"),r=n=>({gap:Ut(t,n)});return pt(e,e.gap,r)}return null};In.propTypes=process.env.NODE_ENV!=="production"?{gap:kt}:{};In.filterProps=["gap"];const Ln=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Fr(e.theme,"spacing",8,"columnGap"),r=n=>({columnGap:Ut(t,n)});return pt(e,e.columnGap,r)}return null};Ln.propTypes=process.env.NODE_ENV!=="production"?{columnGap:kt}:{};Ln.filterProps=["columnGap"];const $n=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Fr(e.theme,"spacing",8,"rowGap"),r=n=>({rowGap:Ut(t,n)});return pt(e,e.rowGap,r)}return null};$n.propTypes=process.env.NODE_ENV!=="production"?{rowGap:kt}:{};$n.filterProps=["rowGap"];const qc=Le({prop:"gridColumn"}),Kc=Le({prop:"gridRow"}),Xc=Le({prop:"gridAutoFlow"}),Yc=Le({prop:"gridAutoColumns"}),Zc=Le({prop:"gridAutoRows"}),Qc=Le({prop:"gridTemplateColumns"}),eu=Le({prop:"gridTemplateRows"}),tu=Le({prop:"gridTemplateAreas"}),ru=Le({prop:"gridArea"});Mn(In,Ln,$n,qc,Kc,Xc,Yc,Zc,Qc,eu,tu,ru);function or(e,t){return t==="grey"?t:e}const nu=Le({prop:"color",themeKey:"palette",transform:or}),ou=Le({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:or}),au=Le({prop:"backgroundColor",themeKey:"palette",transform:or});Mn(nu,ou,au);function Qe(e){return e<=1&&e!==0?`${e*100}%`:e}const su=Le({prop:"width",transform:Qe}),Ho=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=r=>{var n,o;const a=((n=e.theme)==null||(n=n.breakpoints)==null||(n=n.values)==null?void 0:n[r])||zo[r];return a?((o=e.theme)==null||(o=o.breakpoints)==null?void 0:o.unit)!=="px"?{maxWidth:`${a}${e.theme.breakpoints.unit}`}:{maxWidth:a}:{maxWidth:Qe(r)}};return pt(e,e.maxWidth,t)}return null};Ho.filterProps=["maxWidth"];const iu=Le({prop:"minWidth",transform:Qe}),lu=Le({prop:"height",transform:Qe}),cu=Le({prop:"maxHeight",transform:Qe}),uu=Le({prop:"minHeight",transform:Qe});Le({prop:"size",cssProperty:"width",transform:Qe});Le({prop:"size",cssProperty:"height",transform:Qe});const du=Le({prop:"boxSizing"});Mn(su,Ho,iu,lu,cu,uu,du);const Dr={border:{themeKey:"borders",transform:st},borderTop:{themeKey:"borders",transform:st},borderRight:{themeKey:"borders",transform:st},borderBottom:{themeKey:"borders",transform:st},borderLeft:{themeKey:"borders",transform:st},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:st},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:kn},color:{themeKey:"palette",transform:or},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:or},backgroundColor:{themeKey:"palette",transform:or},p:{style:Me},pt:{style:Me},pr:{style:Me},pb:{style:Me},pl:{style:Me},px:{style:Me},py:{style:Me},padding:{style:Me},paddingTop:{style:Me},paddingRight:{style:Me},paddingBottom:{style:Me},paddingLeft:{style:Me},paddingX:{style:Me},paddingY:{style:Me},paddingInline:{style:Me},paddingInlineStart:{style:Me},paddingInlineEnd:{style:Me},paddingBlock:{style:Me},paddingBlockStart:{style:Me},paddingBlockEnd:{style:Me},m:{style:Oe},mt:{style:Oe},mr:{style:Oe},mb:{style:Oe},ml:{style:Oe},mx:{style:Oe},my:{style:Oe},margin:{style:Oe},marginTop:{style:Oe},marginRight:{style:Oe},marginBottom:{style:Oe},marginLeft:{style:Oe},marginX:{style:Oe},marginY:{style:Oe},marginInline:{style:Oe},marginInlineStart:{style:Oe},marginInlineEnd:{style:Oe},marginBlock:{style:Oe},marginBlockStart:{style:Oe},marginBlockEnd:{style:Oe},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:In},rowGap:{style:$n},columnGap:{style:Ln},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Qe},maxWidth:{style:Ho},minWidth:{transform:Qe},height:{transform:Qe},maxHeight:{transform:Qe},minHeight:{transform:Qe},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function fu(...e){const t=e.reduce((n,o)=>n.concat(Object.keys(o)),[]),r=new Set(t);return e.every(n=>r.size===Object.keys(n).length)}function mu(e,t){return typeof e=="function"?e(t):e}function Gs(){function e(r,n,o,a){const i={[r]:n,theme:o},l=a[r];if(!l)return{[r]:n};const{cssProperty:c=r,themeKey:u,transform:d,style:m}=l;if(n==null)return null;if(u==="typography"&&n==="inherit")return{[r]:n};const f=Tn(o,u)||{};return m?m(i):pt(i,n,g=>{let y=pn(f,d,g);return g===y&&typeof g=="string"&&(y=pn(f,d,`${r}${g==="default"?"":it(g)}`,g)),c===!1?y:{[c]:y}})}function t(r){var n;const{sx:o,theme:a={}}=r||{};if(!o)return null;const i=(n=a.unstable_sxConfig)!=null?n:Dr;function l(c){let u=c;if(typeof c=="function")u=c(a);else if(typeof c!="object")return c;if(!u)return null;const d=Bs(a.breakpoints),m=Object.keys(d);let f=d;return Object.keys(u).forEach(_=>{const g=mu(u[_],a);if(g!=null)if(typeof g=="object")if(i[_])f=Pr(f,e(_,g,a,i));else{const y=pt({theme:a},g,b=>({[_]:b}));fu(y,g)?f[_]=t({sx:g,theme:a}):f=Pr(f,y)}else f=Pr(f,e(_,g,a,i))}),Js(m,f)}return Array.isArray(o)?o.map(l):l(o)}return t}const Ur=Gs();Ur.filterProps=["sx"];function zs(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 hu=["breakpoints","palette","spacing","shape"];function Br(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:a={}}=e,i=rt(e,hu),l=Us(r),c=Lc(o);let u=ct({breakpoints:l,direction:"ltr",components:{},palette:A({mode:"light"},n),spacing:c,shape:A({},Rc,a)},i);return u.applyStyles=zs,u=t.reduce((d,m)=>ct(d,m),u),u.unstable_sxConfig=A({},Dr,i==null?void 0:i.unstable_sxConfig),u.unstable_sx=function(m){return Ur({sx:m,theme:this})},u}const pu=Object.freeze(Object.defineProperty({__proto__:null,default:Br,private_createBreakpoints:Us,unstable_applyStyles:zs},Symbol.toStringTag,{value:"Module"}));function gu(e){return Object.keys(e).length===0}function yu(e=null){const t=V.useContext(tr.ThemeContext);return!t||gu(t)?e:t}const bu=Br();function Ws(e=bu){return yu(e)}const _u=["sx"],vu=e=>{var t,r;const n={systemProps:{},otherProps:{}},o=(t=e==null||(r=e.theme)==null?void 0:r.unstable_sxConfig)!=null?t:Dr;return Object.keys(e).forEach(a=>{o[a]?n.systemProps[a]=e[a]:n.otherProps[a]=e[a]}),n};function Hs(e){const{sx:t}=e,r=rt(e,_u),{systemProps:n,otherProps:o}=vu(r);let a;return Array.isArray(t)?a=[n,...t]:typeof t=="function"?a=(...i)=>{const l=t(...i);return Rt(l)?A({},n,l):n}:a=A({},n,t),A({},o,{sx:a})}const Su=Object.freeze(Object.defineProperty({__proto__:null,default:Ur,extendSxProp:Hs,unstable_createStyleFunctionSx:Gs,unstable_defaultSxConfig:Dr},Symbol.toStringTag,{value:"Module"})),Ca=e=>e,xu=()=>{let e=Ca;return{configure(t){e=t},generate(t){return e(t)},reset(){e=Ca}}},wu=xu();function qs(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=qs(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function jt(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=qs(e))&&(n&&(n+=" "),n+=t);return n}const Ru={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=Ru[t];return n?`${r}-${n}`:`${wu.generate(e)}-${t}`}function ju(e,t,r="Mui"){const n={};return t.forEach(o=>{n[o]=Nn(e,o,r)}),n}var Ro={exports:{}},Se={};/**
40
+ `)),()=>{})}function Io(e){return Fr(e,"spacing",8,"spacing")}function Jt(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 Ol(e,t){return r=>e.reduce((n,o)=>(n[o]=Jt(t,r),n),{})}function Ml(e,t,r,n){if(t.indexOf(r)===-1)return null;const o=Al(r),a=Ol(o,n),i=e[r];return at(e,i,a)}function bs(e,t){const r=Io(e.theme);return Object.keys(e).map(n=>Ml(e,t,n,r)).reduce(Pr,{})}function he(e){return bs(e,An)}he.propTypes=process.env.NODE_ENV!=="production"?An.reduce((e,t)=>(e[t]=Mt,e),{}):{};he.filterProps=An;function fe(e){return bs(e,Ln)}fe.propTypes=process.env.NODE_ENV!=="production"?Ln.reduce((e,t)=>(e[t]=Mt,e),{}):{};fe.filterProps=Ln;process.env.NODE_ENV!=="production"&&Ll.reduce((e,t)=>(e[t]=Mt,e),{});function kl(e=8){if(e.mui)return e;const t=Io({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(a=>{const i=t(a);return typeof i=="number"?`${i}px`:i}).join(" "));return r.mui=!0,r}function On(...e){const t=e.reduce((n,o)=>(o.filterProps.forEach(a=>{n[a]=o}),n),{}),r=n=>Object.keys(n).reduce((o,a)=>t[a]?Pr(o,t[a](n)):o,{});return r.propTypes=process.env.NODE_ENV!=="production"?e.reduce((n,o)=>Object.assign(n,o.propTypes),{}):{},r.filterProps=e.reduce((n,o)=>n.concat(o.filterProps),[]),r}function qe(e){return typeof e!="number"?e:`${e}px solid`}function tt(e,t){return ge({prop:e,themeKey:"borders",transform:t})}const Tl=tt("border",qe),El=tt("borderTop",qe),Il=tt("borderRight",qe),Nl=tt("borderBottom",qe),$l=tt("borderLeft",qe),Fl=tt("borderColor"),Dl=tt("borderTopColor"),Ul=tt("borderRightColor"),Bl=tt("borderBottomColor"),Jl=tt("borderLeftColor"),Vl=tt("outline",qe),Gl=tt("outlineColor"),Mn=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Fr(e.theme,"shape.borderRadius",4,"borderRadius"),r=n=>({borderRadius:Jt(t,n)});return at(e,e.borderRadius,r)}return null};Mn.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:Mt}:{};Mn.filterProps=["borderRadius"];On(Tl,El,Il,Nl,$l,Fl,Dl,Ul,Bl,Jl,Mn,Vl,Gl);const kn=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Fr(e.theme,"spacing",8,"gap"),r=n=>({gap:Jt(t,n)});return at(e,e.gap,r)}return null};kn.propTypes=process.env.NODE_ENV!=="production"?{gap:Mt}:{};kn.filterProps=["gap"];const Tn=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Fr(e.theme,"spacing",8,"columnGap"),r=n=>({columnGap:Jt(t,n)});return at(e,e.columnGap,r)}return null};Tn.propTypes=process.env.NODE_ENV!=="production"?{columnGap:Mt}:{};Tn.filterProps=["columnGap"];const En=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Fr(e.theme,"spacing",8,"rowGap"),r=n=>({rowGap:Jt(t,n)});return at(e,e.rowGap,r)}return null};En.propTypes=process.env.NODE_ENV!=="production"?{rowGap:Mt}:{};En.filterProps=["rowGap"];const zl=ge({prop:"gridColumn"}),Wl=ge({prop:"gridRow"}),Hl=ge({prop:"gridAutoFlow"}),Kl=ge({prop:"gridAutoColumns"}),Xl=ge({prop:"gridAutoRows"}),ql=ge({prop:"gridTemplateColumns"}),Yl=ge({prop:"gridTemplateRows"}),Zl=ge({prop:"gridTemplateAreas"}),Ql=ge({prop:"gridArea"});On(kn,Tn,En,zl,Wl,Hl,Kl,Xl,ql,Yl,Zl,Ql);function or(e,t){return t==="grey"?t:e}const ec=ge({prop:"color",themeKey:"palette",transform:or}),tc=ge({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:or}),rc=ge({prop:"backgroundColor",themeKey:"palette",transform:or});On(ec,tc,rc);function Ue(e){return e<=1&&e!==0?`${e*100}%`:e}const nc=ge({prop:"width",transform:Ue}),No=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=r=>{var n,o;const a=((n=e.theme)==null||(n=n.breakpoints)==null||(n=n.values)==null?void 0:n[r])||Eo[r];return a?((o=e.theme)==null||(o=o.breakpoints)==null?void 0:o.unit)!=="px"?{maxWidth:`${a}${e.theme.breakpoints.unit}`}:{maxWidth:a}:{maxWidth:Ue(r)}};return at(e,e.maxWidth,t)}return null};No.filterProps=["maxWidth"];const oc=ge({prop:"minWidth",transform:Ue}),ac=ge({prop:"height",transform:Ue}),sc=ge({prop:"maxHeight",transform:Ue}),ic=ge({prop:"minHeight",transform:Ue});ge({prop:"size",cssProperty:"width",transform:Ue});ge({prop:"size",cssProperty:"height",transform:Ue});const lc=ge({prop:"boxSizing"});On(nc,No,oc,ac,sc,ic,lc);const Dr={border:{themeKey:"borders",transform:qe},borderTop:{themeKey:"borders",transform:qe},borderRight:{themeKey:"borders",transform:qe},borderBottom:{themeKey:"borders",transform:qe},borderLeft:{themeKey:"borders",transform:qe},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:qe},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Mn},color:{themeKey:"palette",transform:or},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:or},backgroundColor:{themeKey:"palette",transform:or},p:{style:fe},pt:{style:fe},pr:{style:fe},pb:{style:fe},pl:{style:fe},px:{style:fe},py:{style:fe},padding:{style:fe},paddingTop:{style:fe},paddingRight:{style:fe},paddingBottom:{style:fe},paddingLeft:{style:fe},paddingX:{style:fe},paddingY:{style:fe},paddingInline:{style:fe},paddingInlineStart:{style:fe},paddingInlineEnd:{style:fe},paddingBlock:{style:fe},paddingBlockStart:{style:fe},paddingBlockEnd:{style:fe},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:kn},rowGap:{style:En},columnGap:{style:Tn},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Ue},maxWidth:{style:No},minWidth:{transform:Ue},height:{transform:Ue},maxHeight:{transform:Ue},minHeight:{transform:Ue},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function cc(...e){const t=e.reduce((n,o)=>n.concat(Object.keys(o)),[]),r=new Set(t);return e.every(n=>r.size===Object.keys(n).length)}function uc(e,t){return typeof e=="function"?e(t):e}function xs(){function e(r,n,o,a){const i={[r]:n,theme:o},l=a[r];if(!l)return{[r]:n};const{cssProperty:c=r,themeKey:u,transform:d,style:h}=l;if(n==null)return null;if(u==="typography"&&n==="inherit")return{[r]:n};const m=Pn(o,u)||{};return h?h(i):at(i,n,_=>{let y=fn(m,d,_);return _===y&&typeof _=="string"&&(y=fn(m,d,`${r}${_==="default"?"":Ye(_)}`,_)),c===!1?y:{[c]:y}})}function t(r){var n;const{sx:o,theme:a={}}=r||{};if(!o)return null;const i=(n=a.unstable_sxConfig)!=null?n:Dr;function l(c){let u=c;if(typeof c=="function")u=c(a);else if(typeof c!="object")return c;if(!u)return null;const d=ys(a.breakpoints),h=Object.keys(d);let m=d;return Object.keys(u).forEach(b=>{const _=uc(u[b],a);if(_!=null)if(typeof _=="object")if(i[b])m=Pr(m,e(b,_,a,i));else{const y=at({theme:a},_,g=>({[b]:g}));cc(y,_)?m[b]=t({sx:_,theme:a}):m=Pr(m,y)}else m=Pr(m,e(b,_,a,i))}),_s(h,m)}return Array.isArray(o)?o.map(l):l(o)}return t}const Ur=xs();Ur.filterProps=["sx"];function Ss(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 dc=["breakpoints","palette","spacing","shape"];function Br(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:a={}}=e,i=Ge(e,dc),l=gs(r),c=kl(o);let u=Qe({breakpoints:l,direction:"ltr",components:{},palette:A({mode:"light"},n),spacing:c,shape:A({},Sl,a)},i);return u.applyStyles=Ss,u=t.reduce((d,h)=>Qe(d,h),u),u.unstable_sxConfig=A({},Dr,i==null?void 0:i.unstable_sxConfig),u.unstable_sx=function(h){return Ur({sx:h,theme:this})},u}const mc=Object.freeze(Object.defineProperty({__proto__:null,default:Br,private_createBreakpoints:gs,unstable_applyStyles:Ss},Symbol.toStringTag,{value:"Module"}));function hc(e){return Object.keys(e).length===0}function fc(e=null){const t=F.useContext(Dt.ThemeContext);return!t||hc(t)?e:t}const pc=Br();function gc(e=pc){return fc(e)}const yc=["sx"],_c=e=>{var t,r;const n={systemProps:{},otherProps:{}},o=(t=e==null||(r=e.theme)==null?void 0:r.unstable_sxConfig)!=null?t:Dr;return Object.keys(e).forEach(a=>{o[a]?n.systemProps[a]=e[a]:n.otherProps[a]=e[a]}),n};function vs(e){const{sx:t}=e,r=Ge(e,yc),{systemProps:n,otherProps:o}=_c(r);let a;return Array.isArray(t)?a=[n,...t]:typeof t=="function"?a=(...i)=>{const l=t(...i);return xt(l)?A({},n,l):n}:a=A({},n,t),A({},o,{sx:a})}const bc=Object.freeze(Object.defineProperty({__proto__:null,default:Ur,extendSxProp:vs,unstable_createStyleFunctionSx:xs,unstable_defaultSxConfig:Dr},Symbol.toStringTag,{value:"Module"})),ra=e=>e,xc=()=>{let e=ra;return{configure(t){e=t},generate(t){return e(t)},reset(){e=ra}}},Sc=xc();function ws(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=ws(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function St(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=ws(e))&&(n&&(n+=" "),n+=t);return n}const vc={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 In(e,t,r="Mui"){const n=vc[t];return n?`${r}-${n}`:`${Sc.generate(e)}-${t}`}function wc(e,t,r="Mui"){const n={};return t.forEach(o=>{n[o]=In(e,o,r)}),n}var po={exports:{}},oe={};/**
60
41
  * @license React
61
42
  * react-is.production.min.js
62
43
  *
@@ -64,7 +45,7 @@ Valid keys: `+JSON.stringify(Object.keys(R),null," "));var O=Te(z,Y,D,ee,W+"."+
64
45
  *
65
46
  * This source code is licensed under the MIT license found in the
66
47
  * LICENSE file in the root directory of this source tree.
67
- */var Pa;function Cu(){if(Pa)return Se;Pa=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),i=Symbol.for("react.context"),l=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),_=Symbol.for("react.offscreen"),g;g=Symbol.for("react.module.reference");function y(b){if(typeof b=="object"&&b!==null){var w=b.$$typeof;switch(w){case e:switch(b=b.type,b){case r:case o:case n:case u:case d:return b;default:switch(b=b&&b.$$typeof,b){case l:case i:case c:case f:case m:case a:return b;default:return w}}case t:return w}}}return Se.ContextConsumer=i,Se.ContextProvider=a,Se.Element=e,Se.ForwardRef=c,Se.Fragment=r,Se.Lazy=f,Se.Memo=m,Se.Portal=t,Se.Profiler=o,Se.StrictMode=n,Se.Suspense=u,Se.SuspenseList=d,Se.isAsyncMode=function(){return!1},Se.isConcurrentMode=function(){return!1},Se.isContextConsumer=function(b){return y(b)===i},Se.isContextProvider=function(b){return y(b)===a},Se.isElement=function(b){return typeof b=="object"&&b!==null&&b.$$typeof===e},Se.isForwardRef=function(b){return y(b)===c},Se.isFragment=function(b){return y(b)===r},Se.isLazy=function(b){return y(b)===f},Se.isMemo=function(b){return y(b)===m},Se.isPortal=function(b){return y(b)===t},Se.isProfiler=function(b){return y(b)===o},Se.isStrictMode=function(b){return y(b)===n},Se.isSuspense=function(b){return y(b)===u},Se.isSuspenseList=function(b){return y(b)===d},Se.isValidElementType=function(b){return typeof b=="string"||typeof b=="function"||b===r||b===o||b===n||b===u||b===d||b===_||typeof b=="object"&&b!==null&&(b.$$typeof===f||b.$$typeof===m||b.$$typeof===a||b.$$typeof===i||b.$$typeof===c||b.$$typeof===g||b.getModuleId!==void 0)},Se.typeOf=y,Se}var xe={};/**
48
+ */var na;function Rc(){if(na)return oe;na=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),i=Symbol.for("react.context"),l=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),b=Symbol.for("react.offscreen"),_;_=Symbol.for("react.module.reference");function y(g){if(typeof g=="object"&&g!==null){var v=g.$$typeof;switch(v){case e:switch(g=g.type,g){case r:case o:case n:case u:case d:return g;default:switch(g=g&&g.$$typeof,g){case l:case i:case c:case m:case h:case a:return g;default:return v}}case t:return v}}}return oe.ContextConsumer=i,oe.ContextProvider=a,oe.Element=e,oe.ForwardRef=c,oe.Fragment=r,oe.Lazy=m,oe.Memo=h,oe.Portal=t,oe.Profiler=o,oe.StrictMode=n,oe.Suspense=u,oe.SuspenseList=d,oe.isAsyncMode=function(){return!1},oe.isConcurrentMode=function(){return!1},oe.isContextConsumer=function(g){return y(g)===i},oe.isContextProvider=function(g){return y(g)===a},oe.isElement=function(g){return typeof g=="object"&&g!==null&&g.$$typeof===e},oe.isForwardRef=function(g){return y(g)===c},oe.isFragment=function(g){return y(g)===r},oe.isLazy=function(g){return y(g)===m},oe.isMemo=function(g){return y(g)===h},oe.isPortal=function(g){return y(g)===t},oe.isProfiler=function(g){return y(g)===o},oe.isStrictMode=function(g){return y(g)===n},oe.isSuspense=function(g){return y(g)===u},oe.isSuspenseList=function(g){return y(g)===d},oe.isValidElementType=function(g){return typeof g=="string"||typeof g=="function"||g===r||g===o||g===n||g===u||g===d||g===b||typeof g=="object"&&g!==null&&(g.$$typeof===m||g.$$typeof===h||g.$$typeof===a||g.$$typeof===i||g.$$typeof===c||g.$$typeof===_||g.getModuleId!==void 0)},oe.typeOf=y,oe}var ae={};/**
68
49
  * @license React
69
50
  * react-is.development.js
70
51
  *
@@ -72,13 +53,13 @@ Valid keys: `+JSON.stringify(Object.keys(R),null," "));var O=Te(z,Y,D,ee,W+"."+
72
53
  *
73
54
  * This source code is licensed under the MIT license found in the
74
55
  * LICENSE file in the root directory of this source tree.
75
- */var Ea;function Pu(){return Ea||(Ea=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"),o=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),i=Symbol.for("react.context"),l=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),_=Symbol.for("react.offscreen"),g=!1,y=!1,b=!1,w=!1,C=!1,P;P=Symbol.for("react.module.reference");function k(T){return!!(typeof T=="string"||typeof T=="function"||T===r||T===o||C||T===n||T===u||T===d||w||T===_||g||y||b||typeof T=="object"&&T!==null&&(T.$$typeof===f||T.$$typeof===m||T.$$typeof===a||T.$$typeof===i||T.$$typeof===c||T.$$typeof===P||T.getModuleId!==void 0))}function v(T){if(typeof T=="object"&&T!==null){var ue=T.$$typeof;switch(ue){case e:var Ae=T.type;switch(Ae){case r:case o:case n:case u:case d:return Ae;default:var We=Ae&&Ae.$$typeof;switch(We){case l:case i:case c:case f:case m:case a:return We;default:return ue}}case t:return ue}}}var N=i,I=a,de=e,Ee=c,Re=r,B=f,ae=m,Q=t,te=o,ne=n,be=u,ce=d,se=!1,ke=!1;function R(T){return se||(se=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function M(T){return ke||(ke=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function X(T){return v(T)===i}function G(T){return v(T)===a}function D(T){return typeof T=="object"&&T!==null&&T.$$typeof===e}function ee(T){return v(T)===c}function W(T){return v(T)===r}function z(T){return v(T)===f}function q(T){return v(T)===m}function re(T){return v(T)===t}function Y(T){return v(T)===o}function Te(T){return v(T)===n}function O(T){return v(T)===u}function Ce(T){return v(T)===d}xe.ContextConsumer=N,xe.ContextProvider=I,xe.Element=de,xe.ForwardRef=Ee,xe.Fragment=Re,xe.Lazy=B,xe.Memo=ae,xe.Portal=Q,xe.Profiler=te,xe.StrictMode=ne,xe.Suspense=be,xe.SuspenseList=ce,xe.isAsyncMode=R,xe.isConcurrentMode=M,xe.isContextConsumer=X,xe.isContextProvider=G,xe.isElement=D,xe.isForwardRef=ee,xe.isFragment=W,xe.isLazy=z,xe.isMemo=q,xe.isPortal=re,xe.isProfiler=Y,xe.isStrictMode=Te,xe.isSuspense=O,xe.isSuspenseList=Ce,xe.isValidElementType=k,xe.typeOf=v}()),xe}process.env.NODE_ENV==="production"?Ro.exports=Cu():Ro.exports=Pu();var Ta=Ro.exports;const Eu=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function Ks(e){const t=`${e}`.match(Eu);return t&&t[1]||""}function Xs(e,t=""){return e.displayName||e.name||Ks(e)||t}function Aa(e,t,r){const n=Xs(t);return e.displayName||(n!==""?`${r}(${n})`:r)}function Ys(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return Xs(e,"Component");if(typeof e=="object")switch(e.$$typeof){case Ta.ForwardRef:return Aa(e,e.render,"ForwardRef");case Ta.Memo:return Aa(e,e.type,"memo");default:return}}}const Tu=Object.freeze(Object.defineProperty({__proto__:null,default:Ys,getFunctionName:Ks},Symbol.toStringTag,{value:"Module"})),Au=["ownerState"],Ou=["variants"],Mu=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function ku(e){return Object.keys(e).length===0}function Iu(e){return typeof e=="string"&&e.charCodeAt(0)>96}function so(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Lu=Br(),Oa=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function Xr({defaultTheme:e,theme:t,themeId:r}){return ku(t)?e:t[r]||t}function $u(e){return e?(t,r)=>r[e]:null}function sn(e,t){let{ownerState:r}=t,n=rt(t,Au);const o=typeof e=="function"?e(A({ownerState:r},n)):e;if(Array.isArray(o))return o.flatMap(a=>sn(a,A({ownerState:r},n)));if(o&&typeof o=="object"&&Array.isArray(o.variants)){const{variants:a=[]}=o;let l=rt(o,Ou);return a.forEach(c=>{let u=!0;typeof c.props=="function"?u=c.props(A({ownerState:r},n,r)):Object.keys(c.props).forEach(d=>{(r==null?void 0:r[d])!==c.props[d]&&n[d]!==c.props[d]&&(u=!1)}),u&&(Array.isArray(l)||(l=[l]),l.push(typeof c.style=="function"?c.style(A({ownerState:r},n,r)):c.style))}),l}return o}function Nu(e={}){const{themeId:t,defaultTheme:r=Lu,rootShouldForwardProp:n=so,slotShouldForwardProp:o=so}=e,a=i=>Ur(A({},i,{theme:Xr(A({},i,{defaultTheme:r,themeId:t}))}));return a.__mui_systemSx=!0,(i,l={})=>{Fs(i,v=>v.filter(N=>!(N!=null&&N.__mui_systemSx)));const{name:c,slot:u,skipVariantsResolver:d,skipSx:m,overridesResolver:f=$u(Oa(u))}=l,_=rt(l,Mu),g=d!==void 0?d:u&&u!=="Root"&&u!=="root"||!1,y=m||!1;let b;process.env.NODE_ENV!=="production"&&c&&(b=`${c}-${Oa(u||"Root")}`);let w=so;u==="Root"||u==="root"?w=n:u?w=o:Iu(i)&&(w=void 0);const C=Ns(i,A({shouldForwardProp:w,label:b},_)),P=v=>typeof v=="function"&&v.__emotion_real!==v||Rt(v)?N=>sn(v,A({},N,{theme:Xr({theme:N.theme,defaultTheme:r,themeId:t})})):v,k=(v,...N)=>{let I=P(v);const de=N?N.map(P):[];c&&f&&de.push(B=>{const ae=Xr(A({},B,{defaultTheme:r,themeId:t}));if(!ae.components||!ae.components[c]||!ae.components[c].styleOverrides)return null;const Q=ae.components[c].styleOverrides,te={};return Object.entries(Q).forEach(([ne,be])=>{te[ne]=sn(be,A({},B,{theme:ae}))}),f(B,te)}),c&&!g&&de.push(B=>{var ae;const Q=Xr(A({},B,{defaultTheme:r,themeId:t})),te=Q==null||(ae=Q.components)==null||(ae=ae[c])==null?void 0:ae.variants;return sn({variants:te},A({},B,{theme:Q}))}),y||de.push(a);const Ee=de.length-N.length;if(Array.isArray(v)&&Ee>0){const B=new Array(Ee).fill("");I=[...v,...B],I.raw=[...v.raw,...B]}const Re=C(I,...de);if(process.env.NODE_ENV!=="production"){let B;c&&(B=`${c}${it(u||"")}`),B===void 0&&(B=`Styled(${Ys(i)})`),Re.displayName=B}return i.muiName&&(Re.muiName=i.muiName),Re};return C.withConfig&&(k.withConfig=C.withConfig),k}}const Fu=Nu();function gn(e,t){const r=A({},t);return Object.keys(e).forEach(n=>{if(n.toString().match(/^(components|slots)$/))r[n]=A({},e[n],r[n]);else if(n.toString().match(/^(componentsProps|slotProps)$/)){const o=e[n]||{},a=t[n];r[n]={},!a||!Object.keys(a)?r[n]=o:!o||!Object.keys(o)?r[n]=a:(r[n]=A({},a),Object.keys(o).forEach(i=>{r[n][i]=gn(o[i],a[i])}))}else r[n]===void 0&&(r[n]=e[n])}),r}function Du(e){const{theme:t,name:r,props:n}=e;return!t||!t.components||!t.components[r]||!t.components[r].defaultProps?n:gn(t.components[r].defaultProps,n)}function Uu({props:e,name:t,defaultTheme:r,themeId:n}){let o=Ws(r);return n&&(o=o[n]||o),Du({theme:o,name:t,props:e})}const Zs=typeof window<"u"?V.useLayoutEffect:V.useEffect;function er(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}const Bu=Object.freeze(Object.defineProperty({__proto__:null,default:er},Symbol.toStringTag,{value:"Module"}));function Ma(e,t){return process.env.NODE_ENV==="production"?()=>null:function(...n){return e(...n)||t(...n)}}function ln(e){return e&&e.ownerDocument||document}function Ju(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function Vu({controlled:e,default:t,name:r,state:n="value"}){const{current:o}=V.useRef(e!==void 0),[a,i]=V.useState(t),l=o?e:a;if(process.env.NODE_ENV!=="production"){V.useEffect(()=>{o!==(e!==void 0)&&console.error([`MUI: A component is changing the ${o?"":"un"}controlled ${n} state of ${r} to be ${o?"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(`
76
- `))},[n,r,e]);const{current:u}=V.useRef(t);V.useEffect(()=>{!o&&!Object.is(u,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(`
77
- `))},[JSON.stringify(t)])}const c=V.useCallback(u=>{o||i(u)},[]);return[l,c]}function io(e){const t=V.useRef(e);return Zs(()=>{t.current=e}),V.useRef((...r)=>(0,t.current)(...r)).current}function jo(...e){return V.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(r=>{Ju(r,t)})},e)}class qo{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new qo}start(t,r){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,r()},t)}}let Fn=!0,Co=!1;const Gu=new qo,zu={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 Wu(e){const{type:t,tagName:r}=e;return!!(r==="INPUT"&&zu[t]&&!e.readOnly||r==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function Hu(e){e.metaKey||e.altKey||e.ctrlKey||(Fn=!0)}function lo(){Fn=!1}function qu(){this.visibilityState==="hidden"&&Co&&(Fn=!0)}function Ku(e){e.addEventListener("keydown",Hu,!0),e.addEventListener("mousedown",lo,!0),e.addEventListener("pointerdown",lo,!0),e.addEventListener("touchstart",lo,!0),e.addEventListener("visibilitychange",qu,!0)}function Xu(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return Fn||Wu(t)}function Yu(){const e=V.useCallback(o=>{o!=null&&Ku(o.ownerDocument)},[]),t=V.useRef(!1);function r(){return t.current?(Co=!0,Gu.start(100,()=>{Co=!1}),t.current=!1,!0):!1}function n(o){return Xu(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:n,onBlur:r,ref:e}}const Zu={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function Qs(e,t,r=void 0){const n={};return Object.keys(e).forEach(o=>{n[o]=e[o].reduce((a,i)=>{if(i){const l=t(i);l!==""&&a.push(l),r&&r[i]&&a.push(r[i])}return a},[]).join(" ")}),n}function Er(e){return typeof e=="string"}function Qu(e,t,r){return e===void 0||Er(e)?t:A({},t,{ownerState:A({},t.ownerState,r)})}function cn(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 ka(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 ed(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:n,externalForwardedProps:o,className:a}=e;if(!t){const _=jt(r==null?void 0:r.className,a,o==null?void 0:o.className,n==null?void 0:n.className),g=A({},r==null?void 0:r.style,o==null?void 0:o.style,n==null?void 0:n.style),y=A({},r,o,n);return _.length>0&&(y.className=_),Object.keys(g).length>0&&(y.style=g),{props:y,internalRef:void 0}}const i=cn(A({},o,n)),l=ka(n),c=ka(o),u=t(i),d=jt(u==null?void 0:u.className,r==null?void 0:r.className,a,o==null?void 0:o.className,n==null?void 0:n.className),m=A({},u==null?void 0:u.style,r==null?void 0:r.style,o==null?void 0:o.style,n==null?void 0:n.style),f=A({},u,r,c,l);return d.length>0&&(f.className=d),Object.keys(m).length>0&&(f.style=m),{props:f,internalRef:u.ref}}function td(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:o,skipResolvingSlotProps:a=!1}=e,i=rt(e,rd),l=a?{}:td(n,o),{props:c,internalRef:u}=ed(A({},i,{externalSlotProps:l})),d=jo(u,l==null?void 0:l.ref,(t=e.additionalProps)==null?void 0:t.ref);return Qu(r,A({},c,{ref:d}),o)}const nd=V.createContext();process.env.NODE_ENV!=="production"&&(p.node,p.bool);const od=()=>{const e=V.useContext(nd);return e??!1},ad=V.createContext(void 0);process.env.NODE_ENV!=="production"&&(p.node,p.object);function sd(e){const{theme:t,name:r,props:n}=e;if(!t||!t.components||!t.components[r])return n;const o=t.components[r];return o.defaultProps?gn(o.defaultProps,n):!o.styleOverrides&&!o.variants?gn(o,n):n}function id({props:e,name:t}){const r=V.useContext(ad);return sd({props:e,name:t,theme:{components:r}})}const ld=["component","direction","spacing","divider","children","className","useFlexGap"],cd=Br(),ud=Fu("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function dd(e){return Uu({props:e,name:"MuiStack",defaultTheme:cd})}function fd(e,t){const r=V.Children.toArray(e).filter(Boolean);return r.reduce((n,o,a)=>(n.push(o),a<r.length-1&&n.push(V.cloneElement(t,{key:`separator-${a}`})),n),[])}const md=e=>({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],hd=({ownerState:e,theme:t})=>{let r=A({display:"flex",flexDirection:"column"},pt({theme:t},ao({values:e.direction,breakpoints:t.breakpoints.values}),n=>({flexDirection:n})));if(e.spacing){const n=Wo(t),o=Object.keys(t.breakpoints.values).reduce((c,u)=>((typeof e.spacing=="object"&&e.spacing[u]!=null||typeof e.direction=="object"&&e.direction[u]!=null)&&(c[u]=!0),c),{}),a=ao({values:e.direction,base:o}),i=ao({values:e.spacing,base:o});typeof a=="object"&&Object.keys(a).forEach((c,u,d)=>{if(!a[c]){const f=u>0?a[d[u-1]]:"column";a[c]=f}}),r=ct(r,pt({theme:t},i,(c,u)=>e.useFlexGap?{gap:Ut(n,c)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${md(u?a[u]:e.direction)}`]:Ut(n,c)}}))}return r=jc(t.breakpoints,r),r};function pd(e={}){const{createStyledComponent:t=ud,useThemeProps:r=dd,componentName:n="MuiStack"}=e,o=()=>Qs({root:["root"]},c=>Nn(n,c),{}),a=t(hd),i=V.forwardRef(function(c,u){const d=r(c),m=Hs(d),{component:f="div",direction:_="column",spacing:g=0,divider:y,children:b,className:w,useFlexGap:C=!1}=m,P=rt(m,ld),k={direction:_,spacing:g,useFlexGap:C},v=o();return s.jsx(a,A({as:f,ownerState:k,ref:u,className:jt(v.root,w)},P,{children:y?fd(b,y):b}))});return process.env.NODE_ENV!=="production"&&(i.propTypes={children:p.node,direction:p.oneOfType([p.oneOf(["column-reverse","column","row-reverse","row"]),p.arrayOf(p.oneOf(["column-reverse","column","row-reverse","row"])),p.object]),divider:p.node,spacing:p.oneOfType([p.arrayOf(p.oneOfType([p.number,p.string])),p.number,p.object,p.string]),sx:p.oneOfType([p.arrayOf(p.oneOfType([p.func,p.object,p.bool])),p.func,p.object])}),i}var Jr={},ei={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})(ei);var ti=ei.exports,co={exports:{}},Ia;function gd(){return Ia||(Ia=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 o=arguments[n];for(var a in o)({}).hasOwnProperty.call(o,a)&&(r[a]=o[a])}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}(co)),co.exports}var uo={exports:{}},La;function yd(){return La||(La=1,function(e){function t(r,n){if(r==null)return{};var o={};for(var a in r)if({}.hasOwnProperty.call(r,a)){if(n.includes(a))continue;o[a]=r[a]}return o}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(uo)),uo.exports}const bd=Mt(vc),_d=Mt(Sc),vd=Mt(Pc),Sd=Mt(Tu),xd=Mt(pu),wd=Mt(Su);var cr=ti;Object.defineProperty(Jr,"__esModule",{value:!0});var Rd=Jr.default=Fd;Jr.shouldForwardProp=un;Jr.systemDefaultTheme=void 0;var at=cr(gd()),Po=cr(yd()),$a=kd(bd),jd=_d,Cd=cr(vd),Pd=cr(Sd),Ed=cr(xd),Td=cr(wd);const Ad=["ownerState"],Od=["variants"],Md=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function ri(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(ri=function(n){return n?r:t})(e)}function kd(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=ri(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(a!=="default"&&Object.prototype.hasOwnProperty.call(e,a)){var i=o?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(n,a,i):n[a]=e[a]}return n.default=e,r&&r.set(e,n),n}function Id(e){return Object.keys(e).length===0}function Ld(e){return typeof e=="string"&&e.charCodeAt(0)>96}function un(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const $d=Jr.systemDefaultTheme=(0,Ed.default)(),Na=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function Yr({defaultTheme:e,theme:t,themeId:r}){return Id(t)?e:t[r]||t}function Nd(e){return e?(t,r)=>r[e]:null}function dn(e,t){let{ownerState:r}=t,n=(0,Po.default)(t,Ad);const o=typeof e=="function"?e((0,at.default)({ownerState:r},n)):e;if(Array.isArray(o))return o.flatMap(a=>dn(a,(0,at.default)({ownerState:r},n)));if(o&&typeof o=="object"&&Array.isArray(o.variants)){const{variants:a=[]}=o;let l=(0,Po.default)(o,Od);return a.forEach(c=>{let u=!0;typeof c.props=="function"?u=c.props((0,at.default)({ownerState:r},n,r)):Object.keys(c.props).forEach(d=>{(r==null?void 0:r[d])!==c.props[d]&&n[d]!==c.props[d]&&(u=!1)}),u&&(Array.isArray(l)||(l=[l]),l.push(typeof c.style=="function"?c.style((0,at.default)({ownerState:r},n,r)):c.style))}),l}return o}function Fd(e={}){const{themeId:t,defaultTheme:r=$d,rootShouldForwardProp:n=un,slotShouldForwardProp:o=un}=e,a=i=>(0,Td.default)((0,at.default)({},i,{theme:Yr((0,at.default)({},i,{defaultTheme:r,themeId:t}))}));return a.__mui_systemSx=!0,(i,l={})=>{(0,$a.internal_processStyles)(i,v=>v.filter(N=>!(N!=null&&N.__mui_systemSx)));const{name:c,slot:u,skipVariantsResolver:d,skipSx:m,overridesResolver:f=Nd(Na(u))}=l,_=(0,Po.default)(l,Md),g=d!==void 0?d:u&&u!=="Root"&&u!=="root"||!1,y=m||!1;let b;process.env.NODE_ENV!=="production"&&c&&(b=`${c}-${Na(u||"Root")}`);let w=un;u==="Root"||u==="root"?w=n:u?w=o:Ld(i)&&(w=void 0);const C=(0,$a.default)(i,(0,at.default)({shouldForwardProp:w,label:b},_)),P=v=>typeof v=="function"&&v.__emotion_real!==v||(0,jd.isPlainObject)(v)?N=>dn(v,(0,at.default)({},N,{theme:Yr({theme:N.theme,defaultTheme:r,themeId:t})})):v,k=(v,...N)=>{let I=P(v);const de=N?N.map(P):[];c&&f&&de.push(B=>{const ae=Yr((0,at.default)({},B,{defaultTheme:r,themeId:t}));if(!ae.components||!ae.components[c]||!ae.components[c].styleOverrides)return null;const Q=ae.components[c].styleOverrides,te={};return Object.entries(Q).forEach(([ne,be])=>{te[ne]=dn(be,(0,at.default)({},B,{theme:ae}))}),f(B,te)}),c&&!g&&de.push(B=>{var ae;const Q=Yr((0,at.default)({},B,{defaultTheme:r,themeId:t})),te=Q==null||(ae=Q.components)==null||(ae=ae[c])==null?void 0:ae.variants;return dn({variants:te},(0,at.default)({},B,{theme:Q}))}),y||de.push(a);const Ee=de.length-N.length;if(Array.isArray(v)&&Ee>0){const B=new Array(Ee).fill("");I=[...v,...B],I.raw=[...v.raw,...B]}const Re=C(I,...de);if(process.env.NODE_ENV!=="production"){let B;c&&(B=`${c}${(0,Cd.default)(u||"")}`),B===void 0&&(B=`Styled(${(0,Pd.default)(i)})`),Re.displayName=B}return i.muiName&&(Re.muiName=i.muiName),Re};return C.withConfig&&(k.withConfig=C.withConfig),k}}function Dd(e,t){return A({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var $e={};const Ud=Mt(Jl),Bd=Mt(Bu);var ni=ti;Object.defineProperty($e,"__esModule",{value:!0});var Fa=$e.alpha=ii;$e.blend=Yd;$e.colorChannel=void 0;var Eo=$e.darken=Xo;$e.decomposeColor=dt;$e.emphasize=li;var Da=$e.getContrastRatio=Wd;$e.getLuminance=yn;$e.hexToRgb=oi;$e.hslToRgb=si;var To=$e.lighten=Yo;$e.private_safeAlpha=Hd;$e.private_safeColorChannel=void 0;$e.private_safeDarken=qd;$e.private_safeEmphasize=Xd;$e.private_safeLighten=Kd;$e.recomposeColor=ur;$e.rgbToHex=zd;var Ua=ni(Ud),Jd=ni(Bd);function Ko(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,Jd.default)(e,t,r)}function oi(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,o)=>o<3?parseInt(n,16):Math.round(parseInt(n,16)/255*1e3)/1e3).join(", ")})`:""}function Vd(e){const t=e.toString(16);return t.length===1?`0${t}`:t}function dt(e){if(e.type)return e;if(e.charAt(0)==="#")return dt(oi(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.
78
- The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:(0,Ua.default)(9,e));let n=e.substring(t+1,e.length-1),o;if(r==="color"){if(n=n.split(" "),o=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(o)===-1)throw new Error(process.env.NODE_ENV!=="production"?`MUI: unsupported \`${o}\` color space.
79
- The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:(0,Ua.default)(10,o))}else n=n.split(",");return n=n.map(a=>parseFloat(a)),{type:r,values:n,colorSpace:o}}const ai=e=>{const t=dt(e);return t.values.slice(0,3).map((r,n)=>t.type.indexOf("hsl")!==-1&&n!==0?`${r}%`:r).join(" ")};$e.colorChannel=ai;const Gd=(e,t)=>{try{return ai(e)}catch{return t&&process.env.NODE_ENV!=="production"&&console.warn(t),e}};$e.private_safeColorChannel=Gd;function ur(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return t.indexOf("rgb")!==-1?n=n.map((o,a)=>a<3?parseInt(o,10):o):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 zd(e){if(e.indexOf("#")===0)return e;const{values:t}=dt(e);return`#${t.map((r,n)=>Vd(n===3?Math.round(255*r):r)).join("")}`}function si(e){e=dt(e);const{values:t}=e,r=t[0],n=t[1]/100,o=t[2]/100,a=n*Math.min(o,1-o),i=(u,d=(u+r/30)%12)=>o-a*Math.max(Math.min(d-3,9-d,1),-1);let l="rgb";const c=[Math.round(i(0)*255),Math.round(i(8)*255),Math.round(i(4)*255)];return e.type==="hsla"&&(l+="a",c.push(t[3])),ur({type:l,values:c})}function yn(e){e=dt(e);let t=e.type==="hsl"||e.type==="hsla"?dt(si(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 Wd(e,t){const r=yn(e),n=yn(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function ii(e,t){return e=dt(e),t=Ko(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,ur(e)}function Hd(e,t,r){try{return ii(e,t)}catch{return r&&process.env.NODE_ENV!=="production"&&console.warn(r),e}}function Xo(e,t){if(e=dt(e),t=Ko(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 ur(e)}function qd(e,t,r){try{return Xo(e,t)}catch{return r&&process.env.NODE_ENV!=="production"&&console.warn(r),e}}function Yo(e,t){if(e=dt(e),t=Ko(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 ur(e)}function Kd(e,t,r){try{return Yo(e,t)}catch{return r&&process.env.NODE_ENV!=="production"&&console.warn(r),e}}function li(e,t=.15){return yn(e)>.5?Xo(e,t):Yo(e,t)}function Xd(e,t,r){try{return li(e,t)}catch{return r&&process.env.NODE_ENV!=="production"&&console.warn(r),e}}function Yd(e,t,r,n=1){const o=(c,u)=>Math.round((c**(1/n)*(1-r)+u**(1/n)*r)**n),a=dt(e),i=dt(t),l=[o(a.values[0],i.values[0]),o(a.values[1],i.values[1]),o(a.values[2],i.values[2])];return ur({type:"rgb",values:l})}const Ir={black:"#000",white:"#fff"},Zd={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"},Ht={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"},qt={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"},Rr={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"},Kt={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"},Xt={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"},Yt={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"},Qd=["mode","contrastThreshold","tonalOffset"],Ba={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:Ir.white,default:Ir.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}},fo={text:{primary:Ir.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:Ir.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 Ja(e,t,r,n){const o=n.light||n,a=n.dark||n*1.5;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:t==="light"?e.light=To(e.main,o):t==="dark"&&(e.dark=Eo(e.main,a)))}function ef(e="light"){return e==="dark"?{main:Kt[200],light:Kt[50],dark:Kt[400]}:{main:Kt[700],light:Kt[400],dark:Kt[800]}}function tf(e="light"){return e==="dark"?{main:Ht[200],light:Ht[50],dark:Ht[400]}:{main:Ht[500],light:Ht[300],dark:Ht[700]}}function rf(e="light"){return e==="dark"?{main:qt[500],light:qt[300],dark:qt[700]}:{main:qt[700],light:qt[400],dark:qt[800]}}function nf(e="light"){return e==="dark"?{main:Xt[400],light:Xt[300],dark:Xt[700]}:{main:Xt[700],light:Xt[500],dark:Xt[900]}}function of(e="light"){return e==="dark"?{main:Yt[400],light:Yt[300],dark:Yt[700]}:{main:Yt[800],light:Yt[500],dark:Yt[900]}}function af(e="light"){return e==="dark"?{main:Rr[400],light:Rr[300],dark:Rr[700]}:{main:"#ed6c02",light:Rr[500],dark:Rr[900]}}function sf(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,o=rt(e,Qd),a=e.primary||ef(t),i=e.secondary||tf(t),l=e.error||rf(t),c=e.info||nf(t),u=e.success||of(t),d=e.warning||af(t);function m(y){const b=Da(y,fo.text.primary)>=r?fo.text.primary:Ba.text.primary;if(process.env.NODE_ENV!=="production"){const w=Da(y,b);w<3&&console.error([`MUI: The contrast ratio of ${w}:1 for ${b} on ${y}`,"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(`
80
- `))}return b}const f=({color:y,name:b,mainShade:w=500,lightShade:C=300,darkShade:P=700})=>{if(y=A({},y),!y.main&&y[w]&&(y.main=y[w]),!y.hasOwnProperty("main"))throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${b?` (${b})`:""} provided to augmentColor(color) is invalid.
81
- The color object needs to have a \`main\` property or a \`${w}\` property.`:Or(11,b?` (${b})`:"",w));if(typeof y.main!="string")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${b?` (${b})`:""} provided to augmentColor(color) is invalid.
56
+ */var oa;function jc(){return oa||(oa=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"),o=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),i=Symbol.for("react.context"),l=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),b=Symbol.for("react.offscreen"),_=!1,y=!1,g=!1,v=!1,R=!1,P;P=Symbol.for("react.module.reference");function N(L){return!!(typeof L=="string"||typeof L=="function"||L===r||L===o||R||L===n||L===u||L===d||v||L===b||_||y||g||typeof L=="object"&&L!==null&&(L.$$typeof===m||L.$$typeof===h||L.$$typeof===a||L.$$typeof===i||L.$$typeof===c||L.$$typeof===P||L.getModuleId!==void 0))}function j(L){if(typeof L=="object"&&L!==null){var Z=L.$$typeof;switch(Z){case e:var me=L.type;switch(me){case r:case o:case n:case u:case d:return me;default:var Me=me&&me.$$typeof;switch(Me){case l:case i:case c:case m:case h:case a:return Me;default:return Z}}case t:return Z}}}var I=i,O=a,ne=e,de=c,ce=r,D=m,K=h,G=t,X=o,H=n,ve=u,le=d,Y=!1,je=!1;function Oe(L){return Y||(Y=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function rt(L){return je||(je=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function ft(L){return j(L)===i}function ze(L){return j(L)===a}function we(L){return typeof L=="object"&&L!==null&&L.$$typeof===e}function wt(L){return j(L)===c}function it(L){return j(L)===r}function We(L){return j(L)===m}function $e(L){return j(L)===h}function lt(L){return j(L)===t}function ct(L){return j(L)===o}function Tt(L){return j(L)===n}function pt(L){return j(L)===u}function Fe(L){return j(L)===d}ae.ContextConsumer=I,ae.ContextProvider=O,ae.Element=ne,ae.ForwardRef=de,ae.Fragment=ce,ae.Lazy=D,ae.Memo=K,ae.Portal=G,ae.Profiler=X,ae.StrictMode=H,ae.Suspense=ve,ae.SuspenseList=le,ae.isAsyncMode=Oe,ae.isConcurrentMode=rt,ae.isContextConsumer=ft,ae.isContextProvider=ze,ae.isElement=we,ae.isForwardRef=wt,ae.isFragment=it,ae.isLazy=We,ae.isMemo=$e,ae.isPortal=lt,ae.isProfiler=ct,ae.isStrictMode=Tt,ae.isSuspense=pt,ae.isSuspenseList=Fe,ae.isValidElementType=N,ae.typeOf=j}()),ae}process.env.NODE_ENV==="production"?po.exports=Rc():po.exports=jc();var aa=po.exports;const Cc=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function Rs(e){const t=`${e}`.match(Cc);return t&&t[1]||""}function js(e,t=""){return e.displayName||e.name||Rs(e)||t}function sa(e,t,r){const n=js(t);return e.displayName||(n!==""?`${r}(${n})`:r)}function Cs(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return js(e,"Component");if(typeof e=="object")switch(e.$$typeof){case aa.ForwardRef:return sa(e,e.render,"ForwardRef");case aa.Memo:return sa(e,e.type,"memo");default:return}}}const Pc=Object.freeze(Object.defineProperty({__proto__:null,default:Cs,getFunctionName:Rs},Symbol.toStringTag,{value:"Module"})),Ac=["ownerState"],Lc=["variants"],Oc=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function Mc(e){return Object.keys(e).length===0}function kc(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Yn(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Tc=Br(),ia=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function Xr({defaultTheme:e,theme:t,themeId:r}){return Mc(t)?e:t[r]||t}function Ec(e){return e?(t,r)=>r[e]:null}function an(e,t){let{ownerState:r}=t,n=Ge(t,Ac);const o=typeof e=="function"?e(A({ownerState:r},n)):e;if(Array.isArray(o))return o.flatMap(a=>an(a,A({ownerState:r},n)));if(o&&typeof o=="object"&&Array.isArray(o.variants)){const{variants:a=[]}=o;let l=Ge(o,Lc);return a.forEach(c=>{let u=!0;typeof c.props=="function"?u=c.props(A({ownerState:r},n,r)):Object.keys(c.props).forEach(d=>{(r==null?void 0:r[d])!==c.props[d]&&n[d]!==c.props[d]&&(u=!1)}),u&&(Array.isArray(l)||(l=[l]),l.push(typeof c.style=="function"?c.style(A({ownerState:r},n,r)):c.style))}),l}return o}function Ic(e={}){const{themeId:t,defaultTheme:r=Tc,rootShouldForwardProp:n=Yn,slotShouldForwardProp:o=Yn}=e,a=i=>Ur(A({},i,{theme:Xr(A({},i,{defaultTheme:r,themeId:t}))}));return a.__mui_systemSx=!0,(i,l={})=>{fs(i,j=>j.filter(I=>!(I!=null&&I.__mui_systemSx)));const{name:c,slot:u,skipVariantsResolver:d,skipSx:h,overridesResolver:m=Ec(ia(u))}=l,b=Ge(l,Oc),_=d!==void 0?d:u&&u!=="Root"&&u!=="root"||!1,y=h||!1;let g;process.env.NODE_ENV!=="production"&&c&&(g=`${c}-${ia(u||"Root")}`);let v=Yn;u==="Root"||u==="root"?v=n:u?v=o:kc(i)&&(v=void 0);const R=hs(i,A({shouldForwardProp:v,label:g},b)),P=j=>typeof j=="function"&&j.__emotion_real!==j||xt(j)?I=>an(j,A({},I,{theme:Xr({theme:I.theme,defaultTheme:r,themeId:t})})):j,N=(j,...I)=>{let O=P(j);const ne=I?I.map(P):[];c&&m&&ne.push(D=>{const K=Xr(A({},D,{defaultTheme:r,themeId:t}));if(!K.components||!K.components[c]||!K.components[c].styleOverrides)return null;const G=K.components[c].styleOverrides,X={};return Object.entries(G).forEach(([H,ve])=>{X[H]=an(ve,A({},D,{theme:K}))}),m(D,X)}),c&&!_&&ne.push(D=>{var K;const G=Xr(A({},D,{defaultTheme:r,themeId:t})),X=G==null||(K=G.components)==null||(K=K[c])==null?void 0:K.variants;return an({variants:X},A({},D,{theme:G}))}),y||ne.push(a);const de=ne.length-I.length;if(Array.isArray(j)&&de>0){const D=new Array(de).fill("");O=[...j,...D],O.raw=[...j.raw,...D]}const ce=R(O,...ne);if(process.env.NODE_ENV!=="production"){let D;c&&(D=`${c}${Ye(u||"")}`),D===void 0&&(D=`Styled(${Cs(i)})`),ce.displayName=D}return i.muiName&&(ce.muiName=i.muiName),ce};return R.withConfig&&(N.withConfig=R.withConfig),N}}const Nc=Ic();function pn(e,t){const r=A({},t);return Object.keys(e).forEach(n=>{if(n.toString().match(/^(components|slots)$/))r[n]=A({},e[n],r[n]);else if(n.toString().match(/^(componentsProps|slotProps)$/)){const o=e[n]||{},a=t[n];r[n]={},!a||!Object.keys(a)?r[n]=o:!o||!Object.keys(o)?r[n]=a:(r[n]=A({},a),Object.keys(o).forEach(i=>{r[n][i]=pn(o[i],a[i])}))}else r[n]===void 0&&(r[n]=e[n])}),r}function $c(e){const{theme:t,name:r,props:n}=e;return!t||!t.components||!t.components[r]||!t.components[r].defaultProps?n:pn(t.components[r].defaultProps,n)}function Fc({props:e,name:t,defaultTheme:r,themeId:n}){let o=gc(r);return n&&(o=o[n]||o),$c({theme:o,name:t,props:e})}const Ps=typeof window<"u"?F.useLayoutEffect:F.useEffect;function rr(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}const Dc=Object.freeze(Object.defineProperty({__proto__:null,default:rr},Symbol.toStringTag,{value:"Module"}));function la(e,t){return process.env.NODE_ENV==="production"?()=>null:function(...n){return e(...n)||t(...n)}}function sn(e){return e&&e.ownerDocument||document}function Uc(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function Bc({controlled:e,default:t,name:r,state:n="value"}){const{current:o}=F.useRef(e!==void 0),[a,i]=F.useState(t),l=o?e:a;if(process.env.NODE_ENV!=="production"){F.useEffect(()=>{o!==(e!==void 0)&&console.error([`MUI: A component is changing the ${o?"":"un"}controlled ${n} state of ${r} to be ${o?"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
+ `))},[n,r,e]);const{current:u}=F.useRef(t);F.useEffect(()=>{!o&&!Object.is(u,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 c=F.useCallback(u=>{o||i(u)},[]);return[l,c]}function Zn(e){const t=F.useRef(e);return Ps(()=>{t.current=e}),F.useRef((...r)=>(0,t.current)(...r)).current}function go(...e){return F.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(r=>{Uc(r,t)})},e)}class $o{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new $o}start(t,r){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,r()},t)}}let Nn=!0,yo=!1;const Jc=new $o,Vc={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 Gc(e){const{type:t,tagName:r}=e;return!!(r==="INPUT"&&Vc[t]&&!e.readOnly||r==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function zc(e){e.metaKey||e.altKey||e.ctrlKey||(Nn=!0)}function Qn(){Nn=!1}function Wc(){this.visibilityState==="hidden"&&yo&&(Nn=!0)}function Hc(e){e.addEventListener("keydown",zc,!0),e.addEventListener("mousedown",Qn,!0),e.addEventListener("pointerdown",Qn,!0),e.addEventListener("touchstart",Qn,!0),e.addEventListener("visibilitychange",Wc,!0)}function Kc(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return Nn||Gc(t)}function Xc(){const e=F.useCallback(o=>{o!=null&&Hc(o.ownerDocument)},[]),t=F.useRef(!1);function r(){return t.current?(yo=!0,Jc.start(100,()=>{yo=!1}),t.current=!1,!0):!1}function n(o){return Kc(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:n,onBlur:r,ref:e}}const qc={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function As(e,t,r=void 0){const n={};return Object.keys(e).forEach(o=>{n[o]=e[o].reduce((a,i)=>{if(i){const l=t(i);l!==""&&a.push(l),r&&r[i]&&a.push(r[i])}return a},[]).join(" ")}),n}function Ar(e){return typeof e=="string"}function Yc(e,t,r){return e===void 0||Ar(e)?t:A({},t,{ownerState:A({},t.ownerState,r)})}function ln(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 ca(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 Zc(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:n,externalForwardedProps:o,className:a}=e;if(!t){const b=St(r==null?void 0:r.className,a,o==null?void 0:o.className,n==null?void 0:n.className),_=A({},r==null?void 0:r.style,o==null?void 0:o.style,n==null?void 0:n.style),y=A({},r,o,n);return b.length>0&&(y.className=b),Object.keys(_).length>0&&(y.style=_),{props:y,internalRef:void 0}}const i=ln(A({},o,n)),l=ca(n),c=ca(o),u=t(i),d=St(u==null?void 0:u.className,r==null?void 0:r.className,a,o==null?void 0:o.className,n==null?void 0:n.className),h=A({},u==null?void 0:u.style,r==null?void 0:r.style,o==null?void 0:o.style,n==null?void 0:n.style),m=A({},u,r,c,l);return d.length>0&&(m.className=d),Object.keys(h).length>0&&(m.style=h),{props:m,internalRef:u.ref}}function Qc(e,t,r){return typeof e=="function"?e(t,r):e}const eu=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Pt(e){var t;const{elementType:r,externalSlotProps:n,ownerState:o,skipResolvingSlotProps:a=!1}=e,i=Ge(e,eu),l=a?{}:Qc(n,o),{props:c,internalRef:u}=Zc(A({},i,{externalSlotProps:l})),d=go(u,l==null?void 0:l.ref,(t=e.additionalProps)==null?void 0:t.ref);return Yc(r,A({},c,{ref:d}),o)}const tu=F.createContext();process.env.NODE_ENV!=="production"&&(p.node,p.bool);const ru=()=>{const e=F.useContext(tu);return e??!1},nu=F.createContext(void 0);process.env.NODE_ENV!=="production"&&(p.node,p.object);function ou(e){const{theme:t,name:r,props:n}=e;if(!t||!t.components||!t.components[r])return n;const o=t.components[r];return o.defaultProps?pn(o.defaultProps,n):!o.styleOverrides&&!o.variants?pn(o,n):n}function au({props:e,name:t}){const r=F.useContext(nu);return ou({props:e,name:t,theme:{components:r}})}const su=["component","direction","spacing","divider","children","className","useFlexGap"],iu=Br(),lu=Nc("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function cu(e){return Fc({props:e,name:"MuiStack",defaultTheme:iu})}function uu(e,t){const r=F.Children.toArray(e).filter(Boolean);return r.reduce((n,o,a)=>(n.push(o),a<r.length-1&&n.push(F.cloneElement(t,{key:`separator-${a}`})),n),[])}const du=e=>({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],mu=({ownerState:e,theme:t})=>{let r=A({display:"flex",flexDirection:"column"},at({theme:t},qn({values:e.direction,breakpoints:t.breakpoints.values}),n=>({flexDirection:n})));if(e.spacing){const n=Io(t),o=Object.keys(t.breakpoints.values).reduce((c,u)=>((typeof e.spacing=="object"&&e.spacing[u]!=null||typeof e.direction=="object"&&e.direction[u]!=null)&&(c[u]=!0),c),{}),a=qn({values:e.direction,base:o}),i=qn({values:e.spacing,base:o});typeof a=="object"&&Object.keys(a).forEach((c,u,d)=>{if(!a[c]){const m=u>0?a[d[u-1]]:"column";a[c]=m}}),r=Qe(r,at({theme:t},i,(c,u)=>e.useFlexGap?{gap:Jt(n,c)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${du(u?a[u]:e.direction)}`]:Jt(n,c)}}))}return r=vl(t.breakpoints,r),r};function hu(e={}){const{createStyledComponent:t=lu,useThemeProps:r=cu,componentName:n="MuiStack"}=e,o=()=>As({root:["root"]},c=>In(n,c),{}),a=t(mu),i=F.forwardRef(function(c,u){const d=r(c),h=vs(d),{component:m="div",direction:b="column",spacing:_=0,divider:y,children:g,className:v,useFlexGap:R=!1}=h,P=Ge(h,su),N={direction:b,spacing:_,useFlexGap:R},j=o();return s.jsx(a,A({as:m,ownerState:N,ref:u,className:St(j.root,v)},P,{children:y?uu(g,y):g}))});return process.env.NODE_ENV!=="production"&&(i.propTypes={children:p.node,direction:p.oneOfType([p.oneOf(["column-reverse","column","row-reverse","row"]),p.arrayOf(p.oneOf(["column-reverse","column","row-reverse","row"])),p.object]),divider:p.node,spacing:p.oneOfType([p.arrayOf(p.oneOfType([p.number,p.string])),p.number,p.object,p.string]),sx:p.oneOfType([p.arrayOf(p.oneOfType([p.func,p.object,p.bool])),p.func,p.object])}),i}function fu(e,t){return A({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var ye={},Ls={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})(Ls);var Os=Ls.exports;const pu=Ot(Fi),gu=Ot(Dc);var Ms=Os;Object.defineProperty(ye,"__esModule",{value:!0});var ua=ye.alpha=Is;ye.blend=Cu;ye.colorChannel=void 0;var _o=ye.darken=Do;ye.decomposeColor=et;ye.emphasize=Ns;var da=ye.getContrastRatio=Su;ye.getLuminance=gn;ye.hexToRgb=ks;ye.hslToRgb=Es;var bo=ye.lighten=Uo;ye.private_safeAlpha=vu;ye.private_safeColorChannel=void 0;ye.private_safeDarken=wu;ye.private_safeEmphasize=ju;ye.private_safeLighten=Ru;ye.recomposeColor=lr;ye.rgbToHex=xu;var ma=Ms(pu),yu=Ms(gu);function Fo(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,yu.default)(e,t,r)}function ks(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,o)=>o<3?parseInt(n,16):Math.round(parseInt(n,16)/255*1e3)/1e3).join(", ")})`:""}function _u(e){const t=e.toString(16);return t.length===1?`0${t}`:t}function et(e){if(e.type)return e;if(e.charAt(0)==="#")return et(ks(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
+ The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:(0,ma.default)(9,e));let n=e.substring(t+1,e.length-1),o;if(r==="color"){if(n=n.split(" "),o=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(o)===-1)throw new Error(process.env.NODE_ENV!=="production"?`MUI: unsupported \`${o}\` color space.
60
+ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:(0,ma.default)(10,o))}else n=n.split(",");return n=n.map(a=>parseFloat(a)),{type:r,values:n,colorSpace:o}}const Ts=e=>{const t=et(e);return t.values.slice(0,3).map((r,n)=>t.type.indexOf("hsl")!==-1&&n!==0?`${r}%`:r).join(" ")};ye.colorChannel=Ts;const bu=(e,t)=>{try{return Ts(e)}catch{return t&&process.env.NODE_ENV!=="production"&&console.warn(t),e}};ye.private_safeColorChannel=bu;function lr(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return t.indexOf("rgb")!==-1?n=n.map((o,a)=>a<3?parseInt(o,10):o):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 xu(e){if(e.indexOf("#")===0)return e;const{values:t}=et(e);return`#${t.map((r,n)=>_u(n===3?Math.round(255*r):r)).join("")}`}function Es(e){e=et(e);const{values:t}=e,r=t[0],n=t[1]/100,o=t[2]/100,a=n*Math.min(o,1-o),i=(u,d=(u+r/30)%12)=>o-a*Math.max(Math.min(d-3,9-d,1),-1);let l="rgb";const c=[Math.round(i(0)*255),Math.round(i(8)*255),Math.round(i(4)*255)];return e.type==="hsla"&&(l+="a",c.push(t[3])),lr({type:l,values:c})}function gn(e){e=et(e);let t=e.type==="hsl"||e.type==="hsla"?et(Es(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 Su(e,t){const r=gn(e),n=gn(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function Is(e,t){return e=et(e),t=Fo(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,lr(e)}function vu(e,t,r){try{return Is(e,t)}catch{return r&&process.env.NODE_ENV!=="production"&&console.warn(r),e}}function Do(e,t){if(e=et(e),t=Fo(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 lr(e)}function wu(e,t,r){try{return Do(e,t)}catch{return r&&process.env.NODE_ENV!=="production"&&console.warn(r),e}}function Uo(e,t){if(e=et(e),t=Fo(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 lr(e)}function Ru(e,t,r){try{return Uo(e,t)}catch{return r&&process.env.NODE_ENV!=="production"&&console.warn(r),e}}function Ns(e,t=.15){return gn(e)>.5?Do(e,t):Uo(e,t)}function ju(e,t,r){try{return Ns(e,t)}catch{return r&&process.env.NODE_ENV!=="production"&&console.warn(r),e}}function Cu(e,t,r,n=1){const o=(c,u)=>Math.round((c**(1/n)*(1-r)+u**(1/n)*r)**n),a=et(e),i=et(t),l=[o(a.values[0],i.values[0]),o(a.values[1],i.values[1]),o(a.values[2],i.values[2])];return lr({type:"rgb",values:l})}const Er={black:"#000",white:"#fff"},Pu={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"},Xt={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"},qt={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"},Rr={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"},Yt={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"},Zt={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"},Qt={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"},Au=["mode","contrastThreshold","tonalOffset"],ha={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:Er.white,default:Er.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}},eo={text:{primary:Er.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:Er.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 fa(e,t,r,n){const o=n.light||n,a=n.dark||n*1.5;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:t==="light"?e.light=bo(e.main,o):t==="dark"&&(e.dark=_o(e.main,a)))}function Lu(e="light"){return e==="dark"?{main:Yt[200],light:Yt[50],dark:Yt[400]}:{main:Yt[700],light:Yt[400],dark:Yt[800]}}function Ou(e="light"){return e==="dark"?{main:Xt[200],light:Xt[50],dark:Xt[400]}:{main:Xt[500],light:Xt[300],dark:Xt[700]}}function Mu(e="light"){return e==="dark"?{main:qt[500],light:qt[300],dark:qt[700]}:{main:qt[700],light:qt[400],dark:qt[800]}}function ku(e="light"){return e==="dark"?{main:Zt[400],light:Zt[300],dark:Zt[700]}:{main:Zt[700],light:Zt[500],dark:Zt[900]}}function Tu(e="light"){return e==="dark"?{main:Qt[400],light:Qt[300],dark:Qt[700]}:{main:Qt[800],light:Qt[500],dark:Qt[900]}}function Eu(e="light"){return e==="dark"?{main:Rr[400],light:Rr[300],dark:Rr[700]}:{main:"#ed6c02",light:Rr[500],dark:Rr[900]}}function Iu(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,o=Ge(e,Au),a=e.primary||Lu(t),i=e.secondary||Ou(t),l=e.error||Mu(t),c=e.info||ku(t),u=e.success||Tu(t),d=e.warning||Eu(t);function h(y){const g=da(y,eo.text.primary)>=r?eo.text.primary:ha.text.primary;if(process.env.NODE_ENV!=="production"){const v=da(y,g);v<3&&console.error([`MUI: The contrast ratio of ${v}:1 for ${g} on ${y}`,"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
+ `))}return g}const m=({color:y,name:g,mainShade:v=500,lightShade:R=300,darkShade:P=700})=>{if(y=A({},y),!y.main&&y[v]&&(y.main=y[v]),!y.hasOwnProperty("main"))throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${g?` (${g})`:""} provided to augmentColor(color) is invalid.
62
+ The color object needs to have a \`main\` property or a \`${v}\` property.`:Mr(11,g?` (${g})`:"",v));if(typeof y.main!="string")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${g?` (${g})`:""} provided to augmentColor(color) is invalid.
82
63
  \`color.main\` should be a string, but \`${JSON.stringify(y.main)}\` was provided instead.
83
64
 
84
65
  Did you intend to use one of the following approaches?
@@ -91,12 +72,12 @@ const theme1 = createTheme({ palette: {
91
72
 
92
73
  const theme2 = createTheme({ palette: {
93
74
  primary: { main: green[500] },
94
- } });`:Or(12,b?` (${b})`:"",JSON.stringify(y.main)));return Ja(y,"light",C,n),Ja(y,"dark",P,n),y.contrastText||(y.contrastText=m(y.main)),y},_={dark:fo,light:Ba};return process.env.NODE_ENV!=="production"&&(_[t]||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),ct(A({common:A({},Ir),mode:t,primary:f({color:a,name:"primary"}),secondary:f({color:i,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:f({color:l,name:"error"}),warning:f({color:d,name:"warning"}),info:f({color:c,name:"info"}),success:f({color:u,name:"success"}),grey:Zd,contrastThreshold:r,getContrastText:m,augmentColor:f,tonalOffset:n},_[t]),o)}const lf=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function cf(e){return Math.round(e*1e5)/1e5}const Va={textTransform:"uppercase"},Ga='"Roboto", "Helvetica", "Arial", sans-serif';function uf(e,t){const r=typeof t=="function"?t(e):t,{fontFamily:n=Ga,fontSize:o=14,fontWeightLight:a=300,fontWeightRegular:i=400,fontWeightMedium:l=500,fontWeightBold:c=700,htmlFontSize:u=16,allVariants:d,pxToRem:m}=r,f=rt(r,lf);process.env.NODE_ENV!=="production"&&(typeof o!="number"&&console.error("MUI: `fontSize` is required to be a number."),typeof u!="number"&&console.error("MUI: `htmlFontSize` is required to be a number."));const _=o/14,g=m||(w=>`${w/u*_}rem`),y=(w,C,P,k,v)=>A({fontFamily:n,fontWeight:w,fontSize:g(C),lineHeight:P},n===Ga?{letterSpacing:`${cf(k/C)}em`}:{},v,d),b={h1:y(a,96,1.167,-1.5),h2:y(a,60,1.2,-.5),h3:y(i,48,1.167,0),h4:y(i,34,1.235,.25),h5:y(i,24,1.334,0),h6:y(l,20,1.6,.15),subtitle1:y(i,16,1.75,.15),subtitle2:y(l,14,1.57,.1),body1:y(i,16,1.5,.15),body2:y(i,14,1.43,.15),button:y(l,14,1.75,.4,Va),caption:y(i,12,1.66,.4),overline:y(i,12,2.66,1,Va),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return ct(A({htmlFontSize:u,pxToRem:g,fontFamily:n,fontSize:o,fontWeightLight:a,fontWeightRegular:i,fontWeightMedium:l,fontWeightBold:c},b),f,{clone:!1})}const df=.2,ff=.14,mf=.12;function Pe(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${df})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${ff})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${mf})`].join(",")}const hf=["none",Pe(0,2,1,-1,0,1,1,0,0,1,3,0),Pe(0,3,1,-2,0,2,2,0,0,1,5,0),Pe(0,3,3,-2,0,3,4,0,0,1,8,0),Pe(0,2,4,-1,0,4,5,0,0,1,10,0),Pe(0,3,5,-1,0,5,8,0,0,1,14,0),Pe(0,3,5,-1,0,6,10,0,0,1,18,0),Pe(0,4,5,-2,0,7,10,1,0,2,16,1),Pe(0,5,5,-3,0,8,10,1,0,3,14,2),Pe(0,5,6,-3,0,9,12,1,0,3,16,2),Pe(0,6,6,-3,0,10,14,1,0,4,18,3),Pe(0,6,7,-4,0,11,15,1,0,4,20,3),Pe(0,7,8,-4,0,12,17,2,0,5,22,4),Pe(0,7,8,-4,0,13,19,2,0,5,24,4),Pe(0,7,9,-4,0,14,21,2,0,5,26,4),Pe(0,8,9,-5,0,15,22,2,0,6,28,5),Pe(0,8,10,-5,0,16,24,2,0,6,30,5),Pe(0,8,11,-5,0,17,26,2,0,6,32,5),Pe(0,9,11,-5,0,18,28,2,0,7,34,6),Pe(0,9,12,-6,0,19,29,2,0,7,36,6),Pe(0,10,13,-6,0,20,31,3,0,8,38,7),Pe(0,10,13,-6,0,21,33,3,0,8,40,7),Pe(0,10,14,-6,0,22,35,3,0,8,42,7),Pe(0,11,14,-7,0,23,36,3,0,9,44,8),Pe(0,11,15,-7,0,24,38,3,0,9,46,8)],pf=["duration","easing","delay"],gf={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)"},yf={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function za(e){return`${Math.round(e)}ms`}function bf(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function _f(e){const t=A({},gf,e.easing),r=A({},yf,e.duration);return A({getAutoHeightDuration:bf,create:(o=["all"],a={})=>{const{duration:i=r.standard,easing:l=t.easeInOut,delay:c=0}=a,u=rt(a,pf);if(process.env.NODE_ENV!=="production"){const d=f=>typeof f=="string",m=f=>!isNaN(parseFloat(f));!d(o)&&!Array.isArray(o)&&console.error('MUI: Argument "props" must be a string or Array.'),!m(i)&&!d(i)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${i}.`),d(l)||console.error('MUI: Argument "easing" must be a string.'),!m(c)&&!d(c)&&console.error('MUI: Argument "delay" must be a number or a string.'),typeof a!="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(`
95
- `)),Object.keys(u).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(u).join(",")}].`)}return(Array.isArray(o)?o:[o]).map(d=>`${d} ${typeof i=="string"?i:za(i)} ${l} ${typeof c=="string"?c:za(c)}`).join(",")}},e,{easing:t,duration:r})}const vf={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},Sf=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function ci(e={},...t){const{mixins:r={},palette:n={},transitions:o={},typography:a={}}=e,i=rt(e,Sf);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.":Or(18));const l=sf(n),c=Br(e);let u=ct(c,{mixins:Dd(c.breakpoints,r),palette:l,shadows:hf.slice(),typography:uf(l,a),transitions:_f(o),zIndex:A({},vf)});if(u=ct(u,i),u=t.reduce((d,m)=>ct(d,m),u),process.env.NODE_ENV!=="production"){const d=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],m=(f,_)=>{let g;for(g in f){const y=f[g];if(d.indexOf(g)!==-1&&Object.keys(y).length>0){if(process.env.NODE_ENV!=="production"){const b=Nn("",g);console.error([`MUI: The \`${_}\` component increases the CSS specificity of the \`${g}\` internal state.`,"You can not override it like this: ",JSON.stringify(f,null,2),"",`Instead, you need to use the '&.${b}' syntax:`,JSON.stringify({root:{[`&.${b}`]:y}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
96
- `))}f[g]={}}}};Object.keys(u.components).forEach(f=>{const _=u.components[f].styleOverrides;_&&f.indexOf("Mui")===0&&m(_,f)})}return u.unstable_sxConfig=A({},Dr,i==null?void 0:i.unstable_sxConfig),u.unstable_sx=function(m){return Ur({sx:m,theme:this})},u}const ui=ci(),di="$$material";function Zo(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const xf=e=>Zo(e)&&e!=="classes",It=Rd({themeId:di,defaultTheme:ui,rootShouldForwardProp:xf});process.env.NODE_ENV!=="production"&&(p.node,p.object.isRequired);function fi(e){return id(e)}const ar=pd({createStyledComponent:It("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>fi({props:e,name:"MuiStack"})});process.env.NODE_ENV!=="production"&&(ar.propTypes={children:p.node,component:p.elementType,direction:p.oneOfType([p.oneOf(["column-reverse","column","row-reverse","row"]),p.arrayOf(p.oneOf(["column-reverse","column","row-reverse","row"])),p.object]),divider:p.node,spacing:p.oneOfType([p.arrayOf(p.oneOfType([p.number,p.string])),p.number,p.object,p.string]),sx:p.oneOfType([p.arrayOf(p.oneOfType([p.func,p.object,p.bool])),p.func,p.object]),useFlexGap:p.bool});const Ao=tt.observer(({color:e,label:t,getDisplayedValue:r,startJogging:n,stopJogging:o,disabled:a,...i})=>{ir(()=>{const d=r(),m=l.current;m&&(m.textContent=d)});const l=je.useRef(null);e=e||"#F14D42";function c(d){d.button===0&&n("-")}function u(d){d.button===0&&n("+")}return s.jsxs(ar,{height:"72px",direction:"row",...i,children:[s.jsx(U.Button,{onPointerDown:c,onPointerUp:o,onPointerOut:o,disabled:a,sx:{width:"105px",backgroundColor:e,color:"white",alignContent:"center",fontSize:"37px",borderRadius:"16px 0px 0px 16px",":hover":{color:"white",backgroundColor:e}},children:"-"}),s.jsxs(ar,{spacing:"6px",sx:{width:"184px",backgroundColor:e,alignItems:"center",justifyContent:"center",opacity:"0.9"},children:[s.jsx(ar,{height:"22px",direction:"row",alignItems:"center",justifyItems:"center",spacing:1,sx:{userSelect:"none"},children:t}),s.jsx(U.Typography,{height:"22px",sx:{fontSize:"15px",color:"white"},ref:l,children:r()})]}),s.jsx(U.Button,{onPointerDown:u,onPointerUp:o,onPointerOut:o,disabled:a,sx:{width:"105px",backgroundColor:e,color:"white",alignContent:"center",fontSize:"37px",borderRadius:"0px 16px 16px 0px",":hover":{color:"white",backgroundColor:e}},children:"+"})]})}),wf={"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"},Rf={"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"},jf={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 bn{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||jf,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,o){return o&&!this.debug?null:(typeof t[0]=="string"&&(t[0]=`${n}${this.prefix} ${t[0]}`),this.logger[r](t))}create(t){return new bn(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new bn(this.logger,t)}}var _t=new bn;class Dn{constructor(){this.observers={}}on(t,r){return t.split(" ").forEach(n=>{this.observers[n]||(this.observers[n]=new Map);const o=this.observers[n].get(r)||0;this.observers[n].set(r,o+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),o=1;o<r;o++)n[o-1]=arguments[o];this.observers[t]&&Array.from(this.observers[t].entries()).forEach(i=>{let[l,c]=i;for(let u=0;u<c;u++)l(...n)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(i=>{let[l,c]=i;for(let u=0;u<c;u++)l.apply(l,[t,...n])})}}function jr(){let e,t;const r=new Promise((n,o)=>{e=n,t=o});return r.resolve=e,r.reject=t,r}function Wa(e){return e==null?"":""+e}function Cf(e,t,r){e.forEach(n=>{t[n]&&(r[n]=t[n])})}const Pf=/###/g;function Tr(e,t,r){function n(l){return l&&l.indexOf("###")>-1?l.replace(Pf,"."):l}function o(){return!e||typeof e=="string"}const a=typeof t!="string"?t:t.split(".");let i=0;for(;i<a.length-1;){if(o())return{};const l=n(a[i]);!e[l]&&r&&(e[l]=new r),Object.prototype.hasOwnProperty.call(e,l)?e=e[l]:e={},++i}return o()?{}:{obj:e,k:n(a[i])}}function Ha(e,t,r){const{obj:n,k:o}=Tr(e,t,Object);if(n!==void 0||t.length===1){n[o]=r;return}let a=t[t.length-1],i=t.slice(0,t.length-1),l=Tr(e,i,Object);for(;l.obj===void 0&&i.length;)a=`${i[i.length-1]}.${a}`,i=i.slice(0,i.length-1),l=Tr(e,i,Object),l&&l.obj&&typeof l.obj[`${l.k}.${a}`]<"u"&&(l.obj=void 0);l.obj[`${l.k}.${a}`]=r}function Ef(e,t,r,n){const{obj:o,k:a}=Tr(e,t,Object);o[a]=o[a]||[],o[a].push(r)}function _n(e,t){const{obj:r,k:n}=Tr(e,t);if(r)return r[n]}function Tf(e,t,r){const n=_n(e,r);return n!==void 0?n:_n(t,r)}function mi(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]):mi(e[n],t[n],r):e[n]=t[n]);return e}function Zt(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var Af={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function Of(e){return typeof e=="string"?e.replace(/[&<>"'\/]/g,t=>Af[t]):e}class Mf{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 kf=[" ",",","?","!",";"],If=new Mf(20);function Lf(e,t,r){t=t||"",r=r||"";const n=kf.filter(i=>t.indexOf(i)<0&&r.indexOf(i)<0);if(n.length===0)return!0;const o=If.getRegExp(`(${n.map(i=>i==="?"?"\\?":i).join("|")})`);let a=!o.test(e);if(!a){const i=e.indexOf(r);i>0&&!o.test(e.substring(0,i))&&(a=!0)}return a}function Oo(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 o=e;for(let a=0;a<n.length;){if(!o||typeof o!="object")return;let i,l="";for(let c=a;c<n.length;++c)if(c!==a&&(l+=r),l+=n[c],i=o[l],i!==void 0){if(["string","number","boolean"].indexOf(typeof i)>-1&&c<n.length-1)continue;a+=c-a+1;break}o=i}return o}function vn(e){return e&&e.indexOf("_")>0?e.replace("_","-"):e}class qa extends Dn{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 o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const a=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,i=o.ignoreJSONStructure!==void 0?o.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"&&a?l.push(...n.split(a)):l.push(n)));const c=_n(this.data,l);return!c&&!r&&!n&&t.indexOf(".")>-1&&(t=l[0],r=l[1],n=l.slice(2).join(".")),c||!i||typeof n!="string"?c:Oo(this.data&&this.data[t]&&this.data[t][r],n,a)}addResource(t,r,n,o){let a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const i=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator;let l=[t,r];n&&(l=l.concat(i?n.split(i):n)),t.indexOf(".")>-1&&(l=t.split("."),o=r,r=l[1]),this.addNamespaces(r),Ha(this.data,l,o),a.silent||this.emit("added",t,r,n,o)}addResources(t,r,n){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const a in n)(typeof n[a]=="string"||Array.isArray(n[a]))&&this.addResource(t,r,a,n[a],{silent:!0});o.silent||this.emit("added",t,r,n)}addResourceBundle(t,r,n,o,a){let i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},l=[t,r];t.indexOf(".")>-1&&(l=t.split("."),o=n,n=r,r=l[1]),this.addNamespaces(r);let c=_n(this.data,l)||{};i.skipCopy||(n=JSON.parse(JSON.stringify(n))),o?mi(c,n,a):c={...c,...n},Ha(this.data,l,c),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(o=>r[o]&&Object.keys(r[o]).length>0)}toJSON(){return this.data}}var hi={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,r,n,o){return e.forEach(a=>{this.processors[a]&&(t=this.processors[a].process(t,r,n,o))}),t}};const Ka={};class Sn extends Dn{constructor(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),Cf(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=r,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=_t.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 o=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator;let a=r.ns||this.options.defaultNS||[];const i=n&&t.indexOf(n)>-1,l=!this.options.userDefinedKeySeparator&&!r.keySeparator&&!this.options.userDefinedNsSeparator&&!r.nsSeparator&&!Lf(t,n,o);if(i&&!l){const c=t.match(this.interpolator.nestingRegexp);if(c&&c.length>0)return{key:t,namespaces:a};const u=t.split(n);(n!==o||n===o&&this.options.ns.indexOf(u[0])>-1)&&(a=u.shift()),t=u.join(o)}return typeof a=="string"&&(a=[a]),{key:t,namespaces:a}}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 o=r.returnDetails!==void 0?r.returnDetails:this.options.returnDetails,a=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator,{key:i,namespaces:l}=this.extractFromKey(t[t.length-1],r),c=l[l.length-1],u=r.lng||this.language,d=r.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(u&&u.toLowerCase()==="cimode"){if(d){const k=r.nsSeparator||this.options.nsSeparator;return o?{res:`${c}${k}${i}`,usedKey:i,exactUsedKey:i,usedLng:u,usedNS:c,usedParams:this.getUsedParamsDetails(r)}:`${c}${k}${i}`}return o?{res:i,usedKey:i,exactUsedKey:i,usedLng:u,usedNS:c,usedParams:this.getUsedParamsDetails(r)}:i}const m=this.resolve(t,r);let f=m&&m.res;const _=m&&m.usedKey||i,g=m&&m.exactUsedKey||i,y=Object.prototype.toString.apply(f),b=["[object Number]","[object Function]","[object RegExp]"],w=r.joinArrays!==void 0?r.joinArrays:this.options.joinArrays,C=!this.i18nFormat||this.i18nFormat.handleAsObject;if(C&&f&&(typeof f!="string"&&typeof f!="boolean"&&typeof f!="number")&&b.indexOf(y)<0&&!(typeof w=="string"&&Array.isArray(f))){if(!r.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const k=this.options.returnedObjectHandler?this.options.returnedObjectHandler(_,f,{...r,ns:l}):`key '${i} (${this.language})' returned an object instead of string.`;return o?(m.res=k,m.usedParams=this.getUsedParamsDetails(r),m):k}if(a){const k=Array.isArray(f),v=k?[]:{},N=k?g:_;for(const I in f)if(Object.prototype.hasOwnProperty.call(f,I)){const de=`${N}${a}${I}`;v[I]=this.translate(de,{...r,joinArrays:!1,ns:l}),v[I]===de&&(v[I]=f[I])}f=v}}else if(C&&typeof w=="string"&&Array.isArray(f))f=f.join(w),f&&(f=this.extendTranslation(f,t,r,n));else{let k=!1,v=!1;const N=r.count!==void 0&&typeof r.count!="string",I=Sn.hasDefaultValue(r),de=N?this.pluralResolver.getSuffix(u,r.count,r):"",Ee=r.ordinal&&N?this.pluralResolver.getSuffix(u,r.count,{ordinal:!1}):"",Re=N&&!r.ordinal&&r.count===0&&this.pluralResolver.shouldUseIntlApi(),B=Re&&r[`defaultValue${this.options.pluralSeparator}zero`]||r[`defaultValue${de}`]||r[`defaultValue${Ee}`]||r.defaultValue;!this.isValidLookup(f)&&I&&(k=!0,f=B),this.isValidLookup(f)||(v=!0,f=i);const Q=(r.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&v?void 0:f,te=I&&B!==f&&this.options.updateMissing;if(v||k||te){if(this.logger.log(te?"updateKey":"missingKey",u,c,i,te?B:f),a){const se=this.resolve(i,{...r,keySeparator:!1});se&&se.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 ne=[];const be=this.languageUtils.getFallbackCodes(this.options.fallbackLng,r.lng||this.language);if(this.options.saveMissingTo==="fallback"&&be&&be[0])for(let se=0;se<be.length;se++)ne.push(be[se]);else this.options.saveMissingTo==="all"?ne=this.languageUtils.toResolveHierarchy(r.lng||this.language):ne.push(r.lng||this.language);const ce=(se,ke,R)=>{const M=I&&R!==f?R:Q;this.options.missingKeyHandler?this.options.missingKeyHandler(se,c,ke,M,te,r):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(se,c,ke,M,te,r),this.emit("missingKey",se,c,ke,f)};this.options.saveMissing&&(this.options.saveMissingPlurals&&N?ne.forEach(se=>{const ke=this.pluralResolver.getSuffixes(se,r);Re&&r[`defaultValue${this.options.pluralSeparator}zero`]&&ke.indexOf(`${this.options.pluralSeparator}zero`)<0&&ke.push(`${this.options.pluralSeparator}zero`),ke.forEach(R=>{ce([se],i+R,r[`defaultValue${R}`]||B)})}):ce(ne,i,B))}f=this.extendTranslation(f,t,r,m,n),v&&f===i&&this.options.appendNamespaceToMissingKey&&(f=`${c}:${i}`),(v||k)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?f=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${c}:${i}`:i,k?f:void 0):f=this.options.parseMissingKeyHandler(f))}return o?(m.res=f,m.usedParams=this.getUsedParamsDetails(r),m):f}extendTranslation(t,r,n,o,a){var i=this;if(this.i18nFormat&&this.i18nFormat.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...n},n.lng||this.language||o.usedLng,o.usedNS,o.usedKey,{resolved:o});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init({...n,interpolation:{...this.options.interpolation,...n.interpolation}});const u=typeof t=="string"&&(n&&n.interpolation&&n.interpolation.skipOnVariables!==void 0?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let d;if(u){const f=t.match(this.interpolator.nestingRegexp);d=f&&f.length}let m=n.replace&&typeof n.replace!="string"?n.replace:n;if(this.options.interpolation.defaultVariables&&(m={...this.options.interpolation.defaultVariables,...m}),t=this.interpolator.interpolate(t,m,n.lng||this.language||o.usedLng,n),u){const f=t.match(this.interpolator.nestingRegexp),_=f&&f.length;d<_&&(n.nest=!1)}!n.lng&&this.options.compatibilityAPI!=="v1"&&o&&o.res&&(n.lng=this.language||o.usedLng),n.nest!==!1&&(t=this.interpolator.nest(t,function(){for(var f=arguments.length,_=new Array(f),g=0;g<f;g++)_[g]=arguments[g];return a&&a[0]===_[0]&&!n.context?(i.logger.warn(`It seems you are nesting recursively key: ${_[0]} in key: ${r[0]}`),null):i.translate(..._,r)},n)),n.interpolation&&this.interpolator.reset()}const l=n.postProcess||this.options.postProcess,c=typeof l=="string"?[l]:l;return t!=null&&c&&c.length&&n.applyPostProcessor!==!1&&(t=hi.handle(c,t,r,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...o,usedParams:this.getUsedParamsDetails(n)},...n}:n,this)),t}resolve(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n,o,a,i,l;return typeof t=="string"&&(t=[t]),t.forEach(c=>{if(this.isValidLookup(n))return;const u=this.extractFromKey(c,r),d=u.key;o=d;let m=u.namespaces;this.options.fallbackNS&&(m=m.concat(this.options.fallbackNS));const f=r.count!==void 0&&typeof r.count!="string",_=f&&!r.ordinal&&r.count===0&&this.pluralResolver.shouldUseIntlApi(),g=r.context!==void 0&&(typeof r.context=="string"||typeof r.context=="number")&&r.context!=="",y=r.lngs?r.lngs:this.languageUtils.toResolveHierarchy(r.lng||this.language,r.fallbackLng);m.forEach(b=>{this.isValidLookup(n)||(l=b,!Ka[`${y[0]}-${b}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(l)&&(Ka[`${y[0]}-${b}`]=!0,this.logger.warn(`key "${o}" for languages "${y.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!!!")),y.forEach(w=>{if(this.isValidLookup(n))return;i=w;const C=[d];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(C,d,w,b,r);else{let k;f&&(k=this.pluralResolver.getSuffix(w,r.count,r));const v=`${this.options.pluralSeparator}zero`,N=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(f&&(C.push(d+k),r.ordinal&&k.indexOf(N)===0&&C.push(d+k.replace(N,this.options.pluralSeparator)),_&&C.push(d+v)),g){const I=`${d}${this.options.contextSeparator}${r.context}`;C.push(I),f&&(C.push(I+k),r.ordinal&&k.indexOf(N)===0&&C.push(I+k.replace(N,this.options.pluralSeparator)),_&&C.push(I+v))}}let P;for(;P=C.pop();)this.isValidLookup(n)||(a=P,n=this.getResource(w,b,P,r))}))})}),{res:n,usedKey:o,exactUsedKey:a,usedLng:i,usedNS:l}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,r,n){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(t,r,n,o):this.resourceStore.getResource(t,r,n,o)}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 o=n?t.replace:t;if(n&&typeof t.count<"u"&&(o.count=t.count),this.options.interpolation.defaultVariables&&(o={...this.options.interpolation.defaultVariables,...o}),!n){o={...o};for(const a of r)delete o[a]}return o}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}}function mo(e){return e.charAt(0).toUpperCase()+e.slice(1)}class Xa{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=_t.create("languageUtils")}getScriptPartFromCode(t){if(t=vn(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=vn(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(o=>o.toLowerCase()):n.length===2?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),r.indexOf(n[1].toLowerCase())>-1&&(n[1]=mo(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]=mo(n[1].toLowerCase())),r.indexOf(n[2].toLowerCase())>-1&&(n[2]=mo(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 o=this.formatLanguageCode(n);(!this.options.supportedLngs||this.isSupportedCode(o))&&(r=o)}),!r&&this.options.supportedLngs&&t.forEach(n=>{if(r)return;const o=this.getLanguagePartFromCode(n);if(this.isSupportedCode(o))return r=o;r=this.options.supportedLngs.find(a=>{if(a===o)return a;if(!(a.indexOf("-")<0&&o.indexOf("-")<0)&&(a.indexOf("-")>0&&o.indexOf("-")<0&&a.substring(0,a.indexOf("-"))===o||a.indexOf(o)===0&&o.length>1))return a})}),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),o=[],a=i=>{i&&(this.isSupportedCode(i)?o.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"&&a(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&a(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&a(this.getLanguagePartFromCode(t))):typeof t=="string"&&a(this.formatLanguageCode(t)),n.forEach(i=>{o.indexOf(i)<0&&a(this.formatLanguageCode(i))}),o}}let $f=[{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}],Nf={1:function(e){return+(e>1)},2:function(e){return+(e!=1)},3:function(e){return 0},4:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2},5:function(e){return e==0?0:e==1?1:e==2?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},6:function(e){return e==1?0:e>=2&&e<=4?1:2},7:function(e){return e==1?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2},8:function(e){return e==1?0:e==2?1:e!=8&&e!=11?2:3},9:function(e){return+(e>=2)},10:function(e){return e==1?0:e==2?1:e<7?2:e<11?3:4},11:function(e){return e==1||e==11?0:e==2||e==12?1:e>2&&e<20?2:3},12:function(e){return+(e%10!=1||e%100==11)},13:function(e){return+(e!==0)},14:function(e){return e==1?0:e==2?1:e==3?2:3},15:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2},16:function(e){return e%10==1&&e%100!=11?0:e!==0?1:2},17:function(e){return e==1||e%10==1&&e%100!=11?0:1},18:function(e){return e==0?0:e==1?1:2},19:function(e){return e==1?0:e==0||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3},20:function(e){return e==1?0:e==0||e%100>0&&e%100<20?1:2},21:function(e){return e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0},22:function(e){return e==1?0:e==2?1:(e<0||e>10)&&e%10==0?2:3}};const Ff=["v1","v2","v3"],Df=["v4"],Ya={zero:0,one:1,two:2,few:3,many:4,other:5};function Uf(){const e={};return $f.forEach(t=>{t.lngs.forEach(r=>{e[r]={numbers:t.nr,plurals:Nf[t.fc]}})}),e}class Bf{constructor(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=t,this.options=r,this.logger=_t.create("pluralResolver"),(!this.options.compatibilityJSON||Df.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=Uf()}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(vn(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(o=>`${r}${o}`)}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((o,a)=>Ya[o]-Ya[a]).map(o=>`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${o}`):n.numbers.map(o=>this.getSuffix(t,o,r)):[]}getSuffix(t,r){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const o=this.getRule(t,n);return o?this.shouldUseIntlApi()?`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${o.select(r)}`:this.getSuffixRetroCompatible(o,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 o=t.numbers[n];this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1&&(o===2?o="plural":o===1&&(o=""));const a=()=>this.options.prepend&&o.toString()?this.options.prepend+o.toString():o.toString();return this.options.compatibilityJSON==="v1"?o===1?"":typeof o=="number"?`_plural_${o.toString()}`:a():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1?a():this.options.prepend&&n.toString()?this.options.prepend+n.toString():n.toString()}shouldUseIntlApi(){return!Ff.includes(this.options.compatibilityJSON)}}function Za(e,t,r){let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,a=Tf(e,t,r);return!a&&o&&typeof r=="string"&&(a=Oo(e,r,n),a===void 0&&(a=Oo(t,r,n))),a}class Jf{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=_t.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:o,prefix:a,prefixEscaped:i,suffix:l,suffixEscaped:c,formatSeparator:u,unescapeSuffix:d,unescapePrefix:m,nestingPrefix:f,nestingPrefixEscaped:_,nestingSuffix:g,nestingSuffixEscaped:y,nestingOptionsSeparator:b,maxReplaces:w,alwaysFormat:C}=t.interpolation;this.escape=r!==void 0?r:Of,this.escapeValue=n!==void 0?n:!0,this.useRawValueToEscape=o!==void 0?o:!1,this.prefix=a?Zt(a):i||"{{",this.suffix=l?Zt(l):c||"}}",this.formatSeparator=u||",",this.unescapePrefix=d?"":m||"-",this.unescapeSuffix=this.unescapePrefix?"":d||"",this.nestingPrefix=f?Zt(f):_||Zt("$t("),this.nestingSuffix=g?Zt(g):y||Zt(")"),this.nestingOptionsSeparator=b||",",this.maxReplaces=w||1e3,this.alwaysFormat=C!==void 0?C:!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,o){let a,i,l;const c=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function u(g){return g.replace(/\$/g,"$$$$")}const d=g=>{if(g.indexOf(this.formatSeparator)<0){const C=Za(r,c,g,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(C,void 0,n,{...o,...r,interpolationkey:g}):C}const y=g.split(this.formatSeparator),b=y.shift().trim(),w=y.join(this.formatSeparator).trim();return this.format(Za(r,c,b,this.options.keySeparator,this.options.ignoreJSONStructure),w,n,{...o,...r,interpolationkey:b})};this.resetRegExp();const m=o&&o.missingInterpolationHandler||this.options.missingInterpolationHandler,f=o&&o.interpolation&&o.interpolation.skipOnVariables!==void 0?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:g=>u(g)},{regex:this.regexp,safeValue:g=>this.escapeValue?u(this.escape(g)):u(g)}].forEach(g=>{for(l=0;a=g.regex.exec(t);){const y=a[1].trim();if(i=d(y),i===void 0)if(typeof m=="function"){const w=m(t,a,o);i=typeof w=="string"?w:""}else if(o&&Object.prototype.hasOwnProperty.call(o,y))i="";else if(f){i=a[0];continue}else this.logger.warn(`missed to pass in variable ${y} for interpolating ${t}`),i="";else typeof i!="string"&&!this.useRawValueToEscape&&(i=Wa(i));const b=g.safeValue(i);if(t=t.replace(a[0],b),f?(g.regex.lastIndex+=i.length,g.regex.lastIndex-=a[0].length):g.regex.lastIndex=0,l++,l>=this.maxReplaces)break}}),t}nest(t,r){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o,a,i;function l(c,u){const d=this.nestingOptionsSeparator;if(c.indexOf(d)<0)return c;const m=c.split(new RegExp(`${d}[ ]*{`));let f=`{${m[1]}`;c=m[0],f=this.interpolate(f,i);const _=f.match(/'/g),g=f.match(/"/g);(_&&_.length%2===0&&!g||g.length%2!==0)&&(f=f.replace(/'/g,'"'));try{i=JSON.parse(f),u&&(i={...u,...i})}catch(y){return this.logger.warn(`failed parsing options string in nesting for key ${c}`,y),`${c}${d}${f}`}return i.defaultValue&&i.defaultValue.indexOf(this.prefix)>-1&&delete i.defaultValue,c}for(;o=this.nestingRegexp.exec(t);){let c=[];i={...n},i=i.replace&&typeof i.replace!="string"?i.replace:i,i.applyPostProcessor=!1,delete i.defaultValue;let u=!1;if(o[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(o[1])){const d=o[1].split(this.formatSeparator).map(m=>m.trim());o[1]=d.shift(),c=d,u=!0}if(a=r(l.call(this,o[1].trim(),i),i),a&&o[0]===t&&typeof a!="string")return a;typeof a!="string"&&(a=Wa(a)),a||(this.logger.warn(`missed to resolve ${o[1]} for nesting ${t}`),a=""),u&&(a=c.reduce((d,m)=>this.format(d,m,n.lng,{...n,interpolationkey:o[1].trim()}),a.trim())),t=t.replace(o[0],a),this.regexp.lastIndex=0}return t}}function Vf(e){let t=e.toLowerCase().trim();const r={};if(e.indexOf("(")>-1){const n=e.split("(");t=n[0].toLowerCase().trim();const o=n[1].substring(0,n[1].length-1);t==="currency"&&o.indexOf(":")<0?r.currency||(r.currency=o.trim()):t==="relativetime"&&o.indexOf(":")<0?r.range||(r.range=o.trim()):o.split(";").forEach(i=>{if(i){const[l,...c]=i.split(":"),u=c.join(":").trim().replace(/^'+|'+$/g,""),d=l.trim();r[d]||(r[d]=u),u==="false"&&(r[d]=!1),u==="true"&&(r[d]=!0),isNaN(u)||(r[d]=parseInt(u,10))}})}return{formatName:t,formatOptions:r}}function Qt(e){const t={};return function(n,o,a){const i=o+JSON.stringify(a);let l=t[i];return l||(l=e(vn(o),a),t[i]=l),l(n)}}class Gf{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=_t.create("formatter"),this.options=t,this.formats={number:Qt((r,n)=>{const o=new Intl.NumberFormat(r,{...n});return a=>o.format(a)}),currency:Qt((r,n)=>{const o=new Intl.NumberFormat(r,{...n,style:"currency"});return a=>o.format(a)}),datetime:Qt((r,n)=>{const o=new Intl.DateTimeFormat(r,{...n});return a=>o.format(a)}),relativetime:Qt((r,n)=>{const o=new Intl.RelativeTimeFormat(r,{...n});return a=>o.format(a,n.range||"day")}),list:Qt((r,n)=>{const o=new Intl.ListFormat(r,{...n});return a=>o.format(a)})},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()]=Qt(r)}format(t,r,n){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return r.split(this.formatSeparator).reduce((l,c)=>{const{formatName:u,formatOptions:d}=Vf(c);if(this.formats[u]){let m=l;try{const f=o&&o.formatParams&&o.formatParams[o.interpolationkey]||{},_=f.locale||f.lng||o.locale||o.lng||n;m=this.formats[u](l,_,{...d,...o,...f})}catch(f){this.logger.warn(f)}return m}else this.logger.warn(`there was no format function for ${u}`);return l},t)}}function zf(e,t){e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)}class Wf extends Dn{constructor(t,r,n){let o=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=o,this.logger=_t.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=o.maxParallelReads||10,this.readingCalls=0,this.maxRetries=o.maxRetries>=0?o.maxRetries:5,this.retryTimeout=o.retryTimeout>=1?o.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(n,o.backend,o)}queueLoad(t,r,n,o){const a={},i={},l={},c={};return t.forEach(u=>{let d=!0;r.forEach(m=>{const f=`${u}|${m}`;!n.reload&&this.store.hasResourceBundle(u,m)?this.state[f]=2:this.state[f]<0||(this.state[f]===1?i[f]===void 0&&(i[f]=!0):(this.state[f]=1,d=!1,i[f]===void 0&&(i[f]=!0),a[f]===void 0&&(a[f]=!0),c[m]===void 0&&(c[m]=!0)))}),d||(l[u]=!0)}),(Object.keys(a).length||Object.keys(i).length)&&this.queue.push({pending:i,pendingCount:Object.keys(i).length,loaded:{},errors:[],callback:o}),{toLoad:Object.keys(a),pending:Object.keys(i),toLoadLanguages:Object.keys(l),toLoadNamespaces:Object.keys(c)}}loaded(t,r,n){const o=t.split("|"),a=o[0],i=o[1];r&&this.emit("failedLoading",a,i,r),n&&this.store.addResourceBundle(a,i,n,void 0,void 0,{skipCopy:!0}),this.state[t]=r?-1:2;const l={};this.queue.forEach(c=>{Ef(c.loaded,[a],i),zf(c,t),r&&c.errors.push(r),c.pendingCount===0&&!c.done&&(Object.keys(c.loaded).forEach(u=>{l[u]||(l[u]={});const d=c.loaded[u];d.length&&d.forEach(m=>{l[u][m]===void 0&&(l[u][m]=!0)})}),c.done=!0,c.errors.length?c.callback(c.errors):c.callback())}),this.emit("loaded",l),this.queue=this.queue.filter(c=>!c.done)}read(t,r,n){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,a=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:o,wait:a,callback:i});return}this.readingCalls++;const l=(u,d)=>{if(this.readingCalls--,this.waitingReads.length>0){const m=this.waitingReads.shift();this.read(m.lng,m.ns,m.fcName,m.tried,m.wait,m.callback)}if(u&&d&&o<this.maxRetries){setTimeout(()=>{this.read.call(this,t,r,n,o+1,a*2,i)},a);return}i(u,d)},c=this.backend[n].bind(this.backend);if(c.length===2){try{const u=c(t,r);u&&typeof u.then=="function"?u.then(d=>l(null,d)).catch(l):l(null,u)}catch(u){l(u)}return}return c(t,r,l)}prepareLoading(t,r){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=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."),o&&o();typeof t=="string"&&(t=this.languageUtils.toResolveHierarchy(t)),typeof r=="string"&&(r=[r]);const a=this.queueLoad(t,r,n,o);if(!a.toLoad.length)return a.pending.length||o(),null;a.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("|"),o=n[0],a=n[1];this.read(o,a,"read",void 0,void 0,(i,l)=>{i&&this.logger.warn(`${r}loading namespace ${a} for language ${o} failed`,i),!i&&l&&this.logger.log(`${r}loaded namespace ${a} for language ${o}`,l),this.loaded(t,i,l)})}saveMissing(t,r,n,o,a){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 c={...i,isUpdate:a},u=this.backend.create.bind(this.backend);if(u.length<6)try{let d;u.length===5?d=u(t,r,n,o,c):d=u(t,r,n,o),d&&typeof d.then=="function"?d.then(m=>l(null,m)).catch(l):l(null,d)}catch(d){l(d)}else u(t,r,n,o,l,c)}!t||!t[0]||this.store.addResource(t[0],r,n,o)}}}function Qa(){return{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:function(t){let r={};if(typeof t[1]=="object"&&(r=t[1]),typeof t[1]=="string"&&(r.defaultValue=t[1]),typeof t[2]=="string"&&(r.tDescription=t[2]),typeof t[2]=="object"||typeof t[3]=="object"){const n=t[3]||t[2];Object.keys(n).forEach(o=>{r[o]=n[o]})}return r},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function es(e){return 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}function Zr(){}function Hf(e){Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(r=>{typeof e[r]=="function"&&(e[r]=e[r].bind(e))})}class Lr extends Dn{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;if(super(),this.options=es(t),this.services={},this.logger=_t,this.modules={external:[]},Hf(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 o=Qa();this.options={...o,...this.options,...es(r)},this.options.compatibilityAPI!=="v1"&&(this.options.interpolation={...o.interpolation,...this.options.interpolation}),r.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=r.keySeparator),r.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=r.nsSeparator);function a(d){return d?typeof d=="function"?new d:d:null}if(!this.options.isClone){this.modules.logger?_t.init(a(this.modules.logger),this.options):_t.init(null,this.options);let d;this.modules.formatter?d=this.modules.formatter:typeof Intl<"u"&&(d=Gf);const m=new Xa(this.options);this.store=new qa(this.options.resources,this.options);const f=this.services;f.logger=_t,f.resourceStore=this.store,f.languageUtils=m,f.pluralResolver=new Bf(m,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),d&&(!this.options.interpolation.format||this.options.interpolation.format===o.interpolation.format)&&(f.formatter=a(d),f.formatter.init(f,this.options),this.options.interpolation.format=f.formatter.format.bind(f.formatter)),f.interpolator=new Jf(this.options),f.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},f.backendConnector=new Wf(a(this.modules.backend),f.resourceStore,f,this.options),f.backendConnector.on("*",function(_){for(var g=arguments.length,y=new Array(g>1?g-1:0),b=1;b<g;b++)y[b-1]=arguments[b];t.emit(_,...y)}),this.modules.languageDetector&&(f.languageDetector=a(this.modules.languageDetector),f.languageDetector.init&&f.languageDetector.init(f,this.options.detection,this.options)),this.modules.i18nFormat&&(f.i18nFormat=a(this.modules.i18nFormat),f.i18nFormat.init&&f.i18nFormat.init(this)),this.translator=new Sn(this.services,this.options),this.translator.on("*",function(_){for(var g=arguments.length,y=new Array(g>1?g-1:0),b=1;b<g;b++)y[b-1]=arguments[b];t.emit(_,...y)}),this.modules.external.forEach(_=>{_.init&&_.init(this)})}if(this.format=this.options.interpolation.format,n||(n=Zr),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const d=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);d.length>0&&d[0]!=="dev"&&(this.options.lng=d[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(d=>{this[d]=function(){return t.store[d](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(d=>{this[d]=function(){return t.store[d](...arguments),t}});const c=jr(),u=()=>{const d=(m,f)=>{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),c.resolve(f),n(m,f)};if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return d(null,this.t.bind(this));this.changeLanguage(this.options.lng,d)};return this.options.resources||!this.options.initImmediate?u():setTimeout(u,0),c}loadResources(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Zr;const o=typeof t=="string"?t:this.language;if(typeof t=="function"&&(n=t),!this.options.resources||this.options.partialBundledLanguages){if(o&&o.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return n();const a=[],i=l=>{if(!l||l==="cimode")return;this.services.languageUtils.toResolveHierarchy(l).forEach(u=>{u!=="cimode"&&a.indexOf(u)<0&&a.push(u)})};o?i(o):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(c=>i(c)),this.options.preload&&this.options.preload.forEach(l=>i(l)),this.services.backendConnector.load(a,this.options.ns,l=>{!l&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),n(l)})}else n(null)}reloadResources(t,r,n){const o=jr();return t||(t=this.languages),r||(r=this.options.ns),n||(n=Zr),this.services.backendConnector.reload(t,r,a=>{o.resolve(),n(a)}),o}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"&&hi.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 o=jr();this.emit("languageChanging",t);const a=c=>{this.language=c,this.languages=this.services.languageUtils.toResolveHierarchy(c),this.resolvedLanguage=void 0,this.setResolvedLanguage(c)},i=(c,u)=>{u?(a(u),this.translator.changeLanguage(u),this.isLanguageChangingTo=void 0,this.emit("languageChanged",u),this.logger.log("languageChanged",u)):this.isLanguageChangingTo=void 0,o.resolve(function(){return n.t(...arguments)}),r&&r(c,function(){return n.t(...arguments)})},l=c=>{!t&&!c&&this.services.languageDetector&&(c=[]);const u=typeof c=="string"?c:this.services.languageUtils.getBestMatchFromCodes(c);u&&(this.language||a(u),this.translator.language||this.translator.changeLanguage(u),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(u)),this.loadResources(u,d=>{i(d,u)})};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),o}getFixedT(t,r,n){var o=this;const a=function(i,l){let c;if(typeof l!="object"){for(var u=arguments.length,d=new Array(u>2?u-2:0),m=2;m<u;m++)d[m-2]=arguments[m];c=o.options.overloadTranslationOptionHandler([i,l].concat(d))}else c={...l};c.lng=c.lng||a.lng,c.lngs=c.lngs||a.lngs,c.ns=c.ns||a.ns,c.keyPrefix!==""&&(c.keyPrefix=c.keyPrefix||n||a.keyPrefix);const f=o.options.keySeparator||".";let _;return c.keyPrefix&&Array.isArray(i)?_=i.map(g=>`${c.keyPrefix}${f}${g}`):_=c.keyPrefix?`${c.keyPrefix}${f}${i}`:i,o.t(_,c)};return typeof t=="string"?a.lng=t:a.lngs=t,a.ns=r,a.keyPrefix=n,a}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],o=this.options?this.options.fallbackLng:!1,a=this.languages[this.languages.length-1];if(n.toLowerCase()==="cimode")return!0;const i=(l,c)=>{const u=this.services.backendConnector.state[`${l}|${c}`];return u===-1||u===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)&&(!o||i(a,t)))}loadNamespaces(t,r){const n=jr();return this.options.ns?(typeof t=="string"&&(t=[t]),t.forEach(o=>{this.options.ns.indexOf(o)<0&&this.options.ns.push(o)}),this.loadResources(o=>{n.resolve(),r&&r(o)}),n):(r&&r(),Promise.resolve())}loadLanguages(t,r){const n=jr();typeof t=="string"&&(t=[t]);const o=this.options.preload||[],a=t.filter(i=>o.indexOf(i)<0&&this.services.languageUtils.isSupportedCode(i));return a.length?(this.options.preload=o.concat(a),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 Xa(Qa());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 Lr(t,r)}cloneInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Zr;const n=t.forkResourceStore;n&&delete t.forkResourceStore;const o={...this.options,...t,isClone:!0},a=new Lr(o);return(t.debug!==void 0||t.prefix!==void 0)&&(a.logger=a.logger.clone(t)),["store","services","language"].forEach(l=>{a[l]=this[l]}),a.services={...this.services},a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},n&&(a.store=new qa(this.store.data,o),a.services.resourceStore=a.store),a.translator=new Sn(a.services,o),a.translator.on("*",function(l){for(var c=arguments.length,u=new Array(c>1?c-1:0),d=1;d<c;d++)u[d-1]=arguments[d];a.emit(l,...u)}),a.init(o,r),a.translator.options=o,a.translator.backendConnector.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const Ge=Lr.createInstance();Ge.createInstance=Lr.createInstance;Ge.createInstance;Ge.dir;Ge.init;Ge.loadResources;Ge.reloadResources;Ge.use;Ge.changeLanguage;Ge.getFixedT;Ge.t;Ge.exists;Ge.setDefaultNamespace;Ge.hasLoadedNamespace;Ge.loadNamespaces;Ge.loadLanguages;const pi=Ge.createInstance();pi.use(nl).use(Ot.initReactI18next).init({supportedLngs:["en","de"],resources:{en:{translations:Rf},de:{translations:wf}},ns:["translations"],defaultNS:"translations"});const gi=tt.observer(({startJogging:e,stopJogging:t,lowerLimitDegs:r,upperLimitDegs:n,getValueDegs:o,disabled:a,...i})=>{const{t:l}=Ot.useTranslation(),[c,u]=je.useState(),d=tt.useLocalObservable(()=>({activeJoggingDir:null,startJogging(g){this.activeJoggingDir=g,e(g)},stopJogging(){this.activeJoggingDir=null,t()}}));ir(()=>{u(o())});function m(g){g.button===0&&d.startJogging("-")}function f(g){g.button===0&&d.startJogging("+")}function _(g,y=1){if(g===void 0||isNaN(g))return"";const b=l("General.degree.variable",{amount:g.toFixed(y)});return g>0&&y===0?`+${b}`:b}return s.jsx(Ot.I18nextProvider,{i18n:pi,children:s.jsxs(ar,{height:"64px",width:"100%",maxWidth:"300px",direction:"row",...i,children:[s.jsx(U.IconButton,{onPointerDown:m,onPointerUp:d.stopJogging,onPointerOut:d.stopJogging,disabled:a,sx:{width:"52px",color:"white",alignContent:"center",borderRadius:"16px 0px 0px 16px",backgroundColor:d.activeJoggingDir==="-"?"#495975 !important":"#38445A","& svg":{width:"42px",height:"42px"}},children:s.jsx(aa.ChevronLeft,{})}),s.jsxs(ar,{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:[s.jsx(U.Typography,{sx:{fontSize:"15px",position:"relative",top:"5px"},children:_(c)}),s.jsx(U.Slider,{disabled:!0,"aria-label":"Joint position",min:r,max:n,value:c,track:!1,sx:{"& .MuiSlider-mark":{display:"none"},"& .MuiSlider-thumb":{width:"5px",height:"10px",borderRadius:"2px"},"& .MuiSlider-markLabel":{top:"20px",fontSize:"12px"},"& .MuiSlider-rail":{backgroundColor:"#1F283A",opacity:1}},marks:r!==void 0&&n!==void 0&&[{value:r,label:_(r,0)},{value:n,label:_(n,0)}]})]}),s.jsx(U.IconButton,{onPointerDown:f,onPointerUp:d.stopJogging,onPointerOut:d.stopJogging,disabled:a,sx:{width:"52px",color:"white",alignContent:"center",fontSize:"37px",borderRadius:"0px 16px 16px 0px",backgroundColor:d.activeJoggingDir==="+"?"#495975 !important":"#38445A","& svg":{width:"42px",height:"42px"}},children:s.jsx(aa.ChevronRight,{})})]})})}),qf=({title:e,titleId:t,...r},n)=>V.createElement("svg",{width:25,height:24,viewBox:"0 0 25 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,"aria-labelledby":t,...r},e?V.createElement("title",{id:t},e):null,V.createElement("path",{d:"M18.5 12C18.5 8.68629 15.8137 6 12.5 6C9.18629 6 6.5 8.68629 6.5 12C6.5 15.3137 9.18629 18 12.5 18",stroke:"white",strokeWidth:1.5,strokeLinecap:"round",fill:"none"}),V.createElement("path",{d:"M16.5 11L18.5 13.5L20.5 11",stroke:"white",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),Kf=je.forwardRef(qf),Xf=({title:e,titleId:t,...r},n)=>V.createElement("svg",{width:19,height:10,viewBox:"0 0 19 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,"aria-labelledby":t,...r},e?V.createElement("title",{id:t},e):null,V.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.13114 0.312406C5.48225 0.663519 5.48225 1.23278 5.13114 1.5839L3.06975 3.64528H15.5109L13.4496 1.58402C13.0985 1.2329 13.0985 0.66364 13.4496 0.312527C13.8007 -0.0385848 14.37 -0.0385848 14.7211 0.312527L18.3174 3.90884C18.6685 4.25996 18.6685 4.82922 18.3174 5.18033L14.7211 8.77665C14.37 9.12776 13.8007 9.12776 13.4496 8.77665C13.0985 8.42554 13.0985 7.85627 13.4496 7.50516L15.5113 5.44344H3.06954L5.13114 7.50504C5.48225 7.85615 5.48225 8.42542 5.13114 8.77653C4.78003 9.12764 4.21076 9.12764 3.85965 8.77653L0.263334 5.18021C-0.087778 4.8291 -0.087778 4.25983 0.263334 3.90872L3.85965 0.312406C4.21076 -0.0387058 4.78003 -0.0387058 5.13114 0.312406Z",fill:"white"})),Yf=je.forwardRef(Xf),Zf=({title:e,titleId:t,...r},n)=>V.createElement("svg",{width:19,height:10,viewBox:"0 0 19 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,"aria-labelledby":t,...r},e?V.createElement("title",{id:t},e):null,V.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.13114 0.312406C5.48225 0.663519 5.48225 1.23278 5.13114 1.5839L3.06975 3.64528H15.5109L13.4496 1.58402C13.0985 1.2329 13.0985 0.66364 13.4496 0.312527C13.8007 -0.0385848 14.37 -0.0385848 14.7211 0.312527L18.3174 3.90884C18.6685 4.25996 18.6685 4.82922 18.3174 5.18033L14.7211 8.77665C14.37 9.12776 13.8007 9.12776 13.4496 8.77665C13.0985 8.42554 13.0985 7.85627 13.4496 7.50516L15.5113 5.44344H3.06954L5.13114 7.50504C5.48225 7.85615 5.48225 8.42542 5.13114 8.77653C4.78003 9.12764 4.21076 9.12764 3.85965 8.77653L0.263334 5.18021C-0.087778 4.8291 -0.087778 4.25983 0.263334 3.90872L3.85965 0.312406C4.21076 -0.0387058 4.78003 -0.0387058 5.13114 0.312406Z",fill:"white"})),Qf=je.forwardRef(Zf),em=({title:e,titleId:t,...r},n)=>V.createElement("svg",{width:10,height:19,viewBox:"0 0 10 19",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,"aria-labelledby":t,...r},e?V.createElement("title",{id:t},e):null,V.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.52182 14.8114C9.87293 14.4603 9.87293 13.8911 9.52182 13.54C9.17071 13.1888 8.60144 13.1888 8.25033 13.54L6.18885 15.6014L6.18885 3.15999L8.25033 5.22147C8.60144 5.57258 9.17071 5.57258 9.52182 5.22147C9.87293 4.87036 9.87293 4.30109 9.52182 3.94998L5.9255 0.353666C5.57439 0.00255379 5.00513 0.00255378 4.65401 0.353666L1.0577 3.94998C0.706587 4.30109 0.706587 4.87036 1.0577 5.22147C1.40881 5.57258 1.97808 5.57258 2.32919 5.22147L4.3907 3.15996L4.3907 15.6015L2.32919 13.54C1.97808 13.1888 1.40881 13.1888 1.0577 13.54C0.706588 13.8911 0.706588 14.4603 1.0577 14.8114L4.65402 18.4078C5.00513 18.7589 5.57439 18.7589 5.92551 18.4078L9.52182 14.8114Z",fill:"white"})),tm=je.forwardRef(em);function rm(){const e=Ws(ui);return process.env.NODE_ENV!=="production"&&V.useDebugValue(e),e[di]||e}const ye={white:"#FFFFFF",midnightblue:"#001337",lightbuttonblue:"#47D3FF",midnightgray:"#DDE0E4",midnightgray500:"#828B9B",skyblue500:"#06B8F1",skyblue600:"#0094CE",darkishblue:"#262F42",darkestblue:"#101629",grayishblue:"#505968",darkgrayishblue:"#363c4b",scaryred:"#FF0E65",tealGreen:"#1AC0B2",magenta:"#EA3785"},yi={primary:ye.skyblue500,textDefault:ye.white,textInverse:ye.darkestblue,textError:ye.scaryred,textSubtle:ye.midnightgray500,backgroundDefault:ye.darkishblue,inputBackgroundDefault:ye.darkgrayishblue,borderColorDefault:"#3A4150",selectBackground:ye.grayishblue,appBarBackground:ye.darkestblue,virtualRobot:"#1AC0B2",physicalRobot:"#956FFA",robotViewportBackground:"#1F283A",viewportButtonInactiveBackground:ye.darkestblue,viewportButtonHover:ye.midnightgray500,viewportButtonActiveBackground:ye.skyblue500,tabsBarBackground:ye.darkestblue,activeTabBackground:ye.darkishblue,omniverseConfigurationSuccess:ye.tealGreen,omniverseConfigurationFailure:ye.magenta},bi={primary:ye.lightbuttonblue,textDefault:"#18181B",textInverse:ye.white,textError:ye.scaryred,textSubtle:ye.midnightgray500,backgroundDefault:ye.white,inputBackgroundDefault:ye.white,borderColorDefault:ye.midnightgray500,selectBackground:"#E4E4E7",appBarBackground:ye.white,virtualRobot:"green",physicalRobot:"blue",robotViewportBackground:"#E4E4E7",viewportButtonInactiveBackground:ye.midnightgray,viewportButtonHover:ye.midnightgray500,viewportButtonActiveBackground:ye.lightbuttonblue,tabsBarBackground:ye.white,activeTabBackground:ye.white,omniverseConfigurationSuccess:ye.tealGreen,omniverseConfigurationFailure:ye.magenta};function _i(){return rm().palette.mode==="dark"?yi:bi}function vi(e,t={}){const r=e==="light"?bi:yi;return ci(bt.defaultsDeep(t,{palette:{mode:e,primary:{main:r.primary},background:{default:r.backgroundDefault}},typography:{allVariants:{color:r.textDefault}},components:{MuiPaper:{styleOverrides:{root:{backgroundColor:r.backgroundDefault}}},MuiTabs:{styleOverrides:{root:{backgroundColor:r.tabsBarBackground,minHeight:"42px"}}},MuiTab:{styleOverrides:{root:{minHeight:"42px",textTransform:"none","&.Mui-selected":{color:"inherit",backgroundColor:r.activeTabBackground}}}},MuiButton:{defaultProps:{disableElevation:!0},styleOverrides:{root:{textTransform:"none",borderRadius:"10px",fontSize:"14px",fontWeight:500}},variants:[{props:{variant:"outlined"},style:{border:"2px solid rgba(255, 255, 255, 0.6)",color:"rgba(255, 255, 255, 0.6)",backgroundColor:"rgba(255, 255, 255, 0.2)","&:hover":{backgroundColor:"rgba(255, 255, 255, 0.4)",border:"2px solid rgba(255, 255, 255, 0.8)"}}}]},MuiFab:{styleOverrides:{root:{width:"48px",height:"48px",backgroundColor:r.viewportButtonInactiveBackground,color:r.textDefault,"&:hover":{backgroundColor:r.viewportButtonHover}}},variants:[{props:{variant:"active"},style:{backgroundColor:r.viewportButtonActiveBackground,color:r.textInverse,"&:hover":{backgroundColor:r.viewportButtonActiveBackground}}}]}}}))}vi("dark");vi("light");const ho=({kind:e,sx:t,...r})=>{const n=_i();let o=bt.defaultsDeep(t,{backgroundColor:n.selectBackground,borderRadius:"10px",borderStyle:"none",color:"currentColor","& > div":{padding:"4px 16px"},"& fieldset":{border:"none"}});return e==="outlined"?o=bt.defaultsDeep({backgroundColor:"transparent"},o):e==="text"&&(o=bt.defaultsDeep({backgroundColor:"transparent","& .MuiSvgIcon-root":{borderStyle:"none",color:"inherit"}},o)),s.jsx(U.Select,{sx:o,...r})},nm=tt.observer(({store:e})=>{const{t}=Ot.useTranslation(),r=_i();return s.jsxs(U.Stack,{direction:"row",alignItems:"center",spacing:1,sx:{padding:"16px","& label":{color:r.textSubtle,fontSize:"12px",marginBottom:"4px"}},children:[s.jsxs(U.Stack,{width:"33%",children:[s.jsx(U.InputLabel,{id:"jogging-coord-select",children:"Coordinate Sys."}),s.jsx(ho,{kind:"filled",labelId:"jogging-coord-select",value:e.selectedCoordSystemId,displayEmpty:!0,onChange:n=>{e.setSelectedCoordSystemId(n.target.value)},disabled:e.isLocked,children:e.coordSystems.map(n=>s.jsx(U.MenuItem,{value:n.coordinate_system,children:n.name||n.coordinate_system},n.coordinate_system))})]}),s.jsxs(U.Stack,{width:"33%",children:[s.jsx(U.InputLabel,{id:"jogging-tcp-select",children:"TCP"}),s.jsx(ho,{kind:"filled",labelId:"jogging-tcp-select",value:e.selectedTcpId,onChange:n=>{e.setSelectedTcpId(n.target.value)},disabled:e.isLocked,children:e.tcps.map(n=>s.jsx(U.MenuItem,{value:n.id,children:n.id},n.id))})]}),s.jsxs(U.Stack,{width:"33%",children:[s.jsx(U.InputLabel,{id:"jogging-increment-select",children:"Increment"}),s.jsxs(ho,{kind:"filled",labelId:"jogging-increment-select",value:e.selectedIncrementId,onChange:n=>{e.setSelectedIncrementId(n.target.value)},disabled:e.isLocked,children:[s.jsx(U.MenuItem,{value:"continuous",children:t("Jogging.Increment.Continuous.dd")},"continuous"),e.discreteIncrementOptions.map(n=>s.jsx(U.MenuItem,{value:n.id,children:e.currentMotionType==="translate"?`${n.mm}mm`:`${n.degrees}°`},n.id))]})]})]})});function om(e,t,r=(n,o)=>n===o){return e.length===t.length&&e.every((n,o)=>r(n,t[o]))}const am=2;function Si(e,t){return e-t}function ts(e,t){var r;const{index:n}=(r=e.reduce((o,a,i)=>{const l=Math.abs(t-a);return o===null||l<o.distance||l===o.distance?{distance:l,index:i}:o},null))!=null?r:{};return n}function Qr(e,t){if(t.current!==void 0&&e.changedTouches){const r=e;for(let n=0;n<r.changedTouches.length;n+=1){const o=r.changedTouches[n];if(o.identifier===t.current)return{x:o.clientX,y:o.clientY}}return!1}return{x:e.clientX,y:e.clientY}}function xn(e,t,r){return(e-t)*100/(r-t)}function sm(e,t,r){return(r-t)*e+t}function im(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 lm(e,t,r){const n=Math.round((e-r)/t)*t+r;return Number(n.toFixed(im(t)))}function rs({values:e,newValue:t,index:r}){const n=e.slice();return n[r]=t,n.sort(Si)}function en({sliderRef:e,activeIndex:t,setActive:r}){var n,o;const a=ln(e.current);if(!((n=e.current)!=null&&n.contains(a.activeElement))||Number(a==null||(o=a.activeElement)==null?void 0:o.getAttribute("data-index"))!==t){var i;(i=e.current)==null||i.querySelector(`[type="range"][data-index="${t}"]`).focus()}r&&r(t)}function tn(e,t){return typeof e=="number"&&typeof t=="number"?e===t:typeof e=="object"&&typeof t=="object"?om(e,t):!1}const cm={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}%`})}},um=e=>e;let rn;function ns(){return rn===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?rn=CSS.supports("touch-action","none"):rn=!0),rn}function dm(e){const{"aria-labelledby":t,defaultValue:r,disabled:n=!1,disableSwap:o=!1,isRtl:a=!1,marks:i=!1,max:l=100,min:c=0,name:u,onChange:d,onChangeCommitted:m,orientation:f="horizontal",rootRef:_,scale:g=um,step:y=1,shiftStep:b=10,tabIndex:w,value:C}=e,P=V.useRef(),[k,v]=V.useState(-1),[N,I]=V.useState(-1),[de,Ee]=V.useState(!1),Re=V.useRef(0),[B,ae]=Vu({controlled:C,default:r??c,name:"Slider"}),Q=d&&((E,$,J)=>{const ie=E.nativeEvent||E,fe=new ie.constructor(ie.type,ie);Object.defineProperty(fe,"target",{writable:!0,value:{value:$,name:u}}),d(fe,$,J)}),te=Array.isArray(B);let ne=te?B.slice().sort(Si):[B];ne=ne.map(E=>E==null?c:er(E,c,l));const be=i===!0&&y!==null?[...Array(Math.floor((l-c)/y)+1)].map((E,$)=>({value:c+y*$})):i||[],ce=be.map(E=>E.value),{isFocusVisibleRef:se,onBlur:ke,onFocus:R,ref:M}=Yu(),[X,G]=V.useState(-1),D=V.useRef(),ee=jo(M,D),W=jo(_,ee),z=E=>$=>{var J;const ie=Number($.currentTarget.getAttribute("data-index"));R($),se.current===!0&&G(ie),I(ie),E==null||(J=E.onFocus)==null||J.call(E,$)},q=E=>$=>{var J;ke($),se.current===!1&&G(-1),I(-1),E==null||(J=E.onBlur)==null||J.call(E,$)},re=(E,$)=>{const J=Number(E.currentTarget.getAttribute("data-index")),ie=ne[J],fe=ce.indexOf(ie);let le=$;if(be&&y==null){const Ze=ce[ce.length-1];le>Ze?le=Ze:le<ce[0]?le=ce[0]:le=le<ie?ce[fe-1]:ce[fe+1]}if(le=er(le,c,l),te){o&&(le=er(le,ne[J-1]||-1/0,ne[J+1]||1/0));const Ze=le;le=rs({values:ne,newValue:le,index:J});let nt=J;o||(nt=le.indexOf(Ze)),en({sliderRef:D,activeIndex:nt})}ae(le),G(J),Q&&!tn(le,B)&&Q(E,le,J),m&&m(E,le)},Y=E=>$=>{var J;if(y!==null){const ie=Number($.currentTarget.getAttribute("data-index")),fe=ne[ie];let le=null;($.key==="ArrowLeft"||$.key==="ArrowDown")&&$.shiftKey||$.key==="PageDown"?le=Math.max(fe-b,c):(($.key==="ArrowRight"||$.key==="ArrowUp")&&$.shiftKey||$.key==="PageUp")&&(le=Math.min(fe+b,l)),le!==null&&(re($,le),$.preventDefault())}E==null||(J=E.onKeyDown)==null||J.call(E,$)};Zs(()=>{if(n&&D.current.contains(document.activeElement)){var E;(E=document.activeElement)==null||E.blur()}},[n]),n&&k!==-1&&v(-1),n&&X!==-1&&G(-1);const Te=E=>$=>{var J;(J=E.onChange)==null||J.call(E,$),re($,$.target.valueAsNumber)},O=V.useRef();let Ce=f;a&&f==="horizontal"&&(Ce+="-reverse");const T=({finger:E,move:$=!1})=>{const{current:J}=D,{width:ie,height:fe,bottom:le,left:Ze}=J.getBoundingClientRect();let nt;Ce.indexOf("vertical")===0?nt=(le-E.y)/fe:nt=(E.x-Ze)/ie,Ce.indexOf("-reverse")!==-1&&(nt=1-nt);let me;if(me=sm(nt,c,l),y)me=lm(me,y,c);else{const Et=ts(ce,me);me=ce[Et]}me=er(me,c,l);let qe=0;if(te){$?qe=O.current:qe=ts(ne,me),o&&(me=er(me,ne[qe-1]||-1/0,ne[qe+1]||1/0));const Et=me;me=rs({values:ne,newValue:me,index:qe}),o&&$||(qe=me.indexOf(Et),O.current=qe)}return{newValue:me,activeIndex:qe}},ue=io(E=>{const $=Qr(E,P);if(!$)return;if(Re.current+=1,E.type==="mousemove"&&E.buttons===0){Ae(E);return}const{newValue:J,activeIndex:ie}=T({finger:$,move:!0});en({sliderRef:D,activeIndex:ie,setActive:v}),ae(J),!de&&Re.current>am&&Ee(!0),Q&&!tn(J,B)&&Q(E,J,ie)}),Ae=io(E=>{const $=Qr(E,P);if(Ee(!1),!$)return;const{newValue:J}=T({finger:$,move:!0});v(-1),E.type==="touchend"&&I(-1),m&&m(E,J),P.current=void 0,He()}),We=io(E=>{if(n)return;ns()||E.preventDefault();const $=E.changedTouches[0];$!=null&&(P.current=$.identifier);const J=Qr(E,P);if(J!==!1){const{newValue:fe,activeIndex:le}=T({finger:J});en({sliderRef:D,activeIndex:le,setActive:v}),ae(fe),Q&&!tn(fe,B)&&Q(E,fe,le)}Re.current=0;const ie=ln(D.current);ie.addEventListener("touchmove",ue,{passive:!0}),ie.addEventListener("touchend",Ae,{passive:!0})}),He=V.useCallback(()=>{const E=ln(D.current);E.removeEventListener("mousemove",ue),E.removeEventListener("mouseup",Ae),E.removeEventListener("touchmove",ue),E.removeEventListener("touchend",Ae)},[Ae,ue]);V.useEffect(()=>{const{current:E}=D;return E.addEventListener("touchstart",We,{passive:ns()}),()=>{E.removeEventListener("touchstart",We),He()}},[He,We]),V.useEffect(()=>{n&&He()},[n,He]);const Ct=E=>$=>{var J;if((J=E.onMouseDown)==null||J.call(E,$),n||$.defaultPrevented||$.button!==0)return;$.preventDefault();const ie=Qr($,P);if(ie!==!1){const{newValue:le,activeIndex:Ze}=T({finger:ie});en({sliderRef:D,activeIndex:Ze,setActive:v}),ae(le),Q&&!tn(le,B)&&Q($,le,Ze)}Re.current=0;const fe=ln(D.current);fe.addEventListener("mousemove",ue,{passive:!0}),fe.addEventListener("mouseup",Ae)},Be=xn(te?ne[0]:c,c,l),Pt=xn(ne[ne.length-1],c,l)-Be,Lt=(E={})=>{const $=cn(E),J={onMouseDown:Ct($||{})},ie=A({},$,J);return A({},E,{ref:W},ie)},mr=E=>$=>{var J;(J=E.onMouseOver)==null||J.call(E,$);const ie=Number($.currentTarget.getAttribute("data-index"));I(ie)},hr=E=>$=>{var J;(J=E.onMouseLeave)==null||J.call(E,$),I(-1)};return{active:k,axis:Ce,axisProps:cm,dragging:de,focusedThumbIndex:X,getHiddenInputProps:(E={})=>{var $;const J=cn(E),ie={onChange:Te(J||{}),onFocus:z(J||{}),onBlur:q(J||{}),onKeyDown:Y(J||{})},fe=A({},J,ie);return A({tabIndex:w,"aria-labelledby":t,"aria-orientation":f,"aria-valuemax":g(l),"aria-valuemin":g(c),name:u,type:"range",min:e.min,max:e.max,step:e.step===null&&e.marks?"any":($=e.step)!=null?$:void 0,disabled:n},E,fe,{style:A({},Zu,{direction:a?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:Lt,getThumbProps:(E={})=>{const $=cn(E),J={onMouseOver:mr($||{}),onMouseLeave:hr($||{})};return A({},E,$,J)},marks:be,open:N,range:te,rootRef:W,trackLeap:Pt,trackOffset:Be,values:ne,getThumbStyle:E=>({pointerEvents:k!==-1&&k!==E?"none":void 0})}}const fm=e=>!e||!Er(e);function mm(e){return Nn("MuiSlider",e)}const lt=ju("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"]),hm=e=>{const{open:t}=e;return{offset:jt(t&&lt.valueLabelOpen),circle:lt.valueLabelCircle,label:lt.valueLabelLabel}};function xi(e){const{children:t,className:r,value:n}=e,o=hm(e);return t?V.cloneElement(t,{className:jt(t.props.className)},s.jsxs(V.Fragment,{children:[t.props.children,s.jsx("span",{className:jt(o.offset,r),"aria-hidden":!0,children:s.jsx("span",{className:o.circle,children:s.jsx("span",{className:o.label,children:n})})})]})):null}process.env.NODE_ENV!=="production"&&(xi.propTypes={children:p.element.isRequired,className:p.string,value:p.node});const pm=["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 os(e){return e}const gm=It("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`color${it(r.color)}`],r.size!=="medium"&&t[`size${it(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"},[`&.${lt.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${lt.dragging}`]:{[`& .${lt.thumb}, & .${lt.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}}]}}),ym=It("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}}]}),bm=It("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:A({},e.vars?{backgroundColor:e.vars.palette.Slider[`${r}Track`],borderColor:e.vars.palette.Slider[`${r}Track`]}:A({backgroundColor:To(e.palette[r].main,.62),borderColor:To(e.palette[r].main,.62)},e.applyStyles("dark",{backgroundColor:Eo(e.palette[r].main,.5)}),e.applyStyles("dark",{borderColor:Eo(e.palette[r].main,.5)})))}))]}}),_m=It("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.thumb,t[`thumbColor${it(r.color)}`],r.size!=="medium"&&t[`thumbSize${it(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%)"},[`&.${lt.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, &.${lt.focusVisible}`]:A({},e.vars?{boxShadow:`0px 0px 0px 8px rgba(${e.vars.palette[r].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 8px ${Fa(e.palette[r].main,.16)}`},{"@media (hover: none)":{boxShadow:"none"}}),[`&.${lt.active}`]:A({},e.vars?{boxShadow:`0px 0px 0px 14px rgba(${e.vars.palette[r].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 14px ${Fa(e.palette[r].main,.16)}`})}}))]}}),vm=It(xi,{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(e,t)=>t.valueLabel})(({theme:e})=>A({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%"},[`&.${lt.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%"},[`&.${lt.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"}}]})),Sm=It("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>Zo(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}}]})),xm=It("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>Zo(e)&&e!=="markLabelActive",overridesResolver:(e,t)=>t.markLabel})(({theme:e})=>A({},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}}]})),wm=e=>{const{disabled:t,dragging:r,marked:n,orientation:o,track:a,classes:i,color:l,size:c}=e,u={root:["root",t&&"disabled",r&&"dragging",n&&"marked",o==="vertical"&&"vertical",a==="inverted"&&"trackInverted",a===!1&&"trackFalse",l&&`color${it(l)}`,c&&`size${it(c)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",c&&`thumbSize${it(c)}`,l&&`thumbColor${it(l)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return Qs(u,mm,i)},Rm=({children:e})=>e,wi=V.forwardRef(function(t,r){var n,o,a,i,l,c,u,d,m,f,_,g,y,b,w,C,P,k,v,N,I,de,Ee,Re;const B=fi({props:t,name:"MuiSlider"}),ae=od(),{"aria-label":Q,"aria-valuetext":te,"aria-labelledby":ne,component:be="span",components:ce={},componentsProps:se={},color:ke="primary",classes:R,className:M,disableSwap:X=!1,disabled:G=!1,getAriaLabel:D,getAriaValueText:ee,marks:W=!1,max:z=100,min:q=0,orientation:re="horizontal",shiftStep:Y=10,size:Te="medium",step:O=1,scale:Ce=os,slotProps:T,slots:ue,track:Ae="normal",valueLabelDisplay:We="off",valueLabelFormat:He=os}=B,Ct=rt(B,pm),Be=A({},B,{isRtl:ae,max:z,min:q,classes:R,disabled:G,disableSwap:X,orientation:re,marks:W,color:ke,size:Te,step:O,shiftStep:Y,scale:Ce,track:Ae,valueLabelDisplay:We,valueLabelFormat:He}),{axisProps:Pt,getRootProps:Lt,getHiddenInputProps:mr,getThumbProps:hr,open:pr,active:Jt,axis:mt,focusedThumbIndex:E,range:$,dragging:J,marks:ie,values:fe,trackOffset:le,trackLeap:Ze,getThumbStyle:nt}=dm(A({},Be,{rootRef:r}));Be.marked=ie.length>0&&ie.some(F=>F.label),Be.dragging=J,Be.focusedThumbIndex=E;const me=wm(Be),qe=(n=(o=ue==null?void 0:ue.root)!=null?o:ce.Root)!=null?n:gm,Et=(a=(i=ue==null?void 0:ue.rail)!=null?i:ce.Rail)!=null?a:ym,Vt=(l=(c=ue==null?void 0:ue.track)!=null?c:ce.Track)!=null?l:bm,gr=(u=(d=ue==null?void 0:ue.thumb)!=null?d:ce.Thumb)!=null?u:_m,St=(m=(f=ue==null?void 0:ue.valueLabel)!=null?f:ce.ValueLabel)!=null?m:vm,$t=(_=(g=ue==null?void 0:ue.mark)!=null?g:ce.Mark)!=null?_:Sm,Nt=(y=(b=ue==null?void 0:ue.markLabel)!=null?b:ce.MarkLabel)!=null?y:xm,yr=(w=(C=ue==null?void 0:ue.input)!=null?C:ce.Input)!=null?w:"input",br=(P=T==null?void 0:T.root)!=null?P:se.root,zr=(k=T==null?void 0:T.rail)!=null?k:se.rail,_r=(v=T==null?void 0:T.track)!=null?v:se.track,Gt=(N=T==null?void 0:T.thumb)!=null?N:se.thumb,zt=(I=T==null?void 0:T.valueLabel)!=null?I:se.valueLabel,zn=(de=T==null?void 0:T.mark)!=null?de:se.mark,Wn=(Ee=T==null?void 0:T.markLabel)!=null?Ee:se.markLabel,Wr=(Re=T==null?void 0:T.input)!=null?Re:se.input,Hr=Tt({elementType:qe,getSlotProps:Lt,externalSlotProps:br,externalForwardedProps:Ct,additionalProps:A({},fm(qe)&&{as:be}),ownerState:A({},Be,br==null?void 0:br.ownerState),className:[me.root,M]}),Hn=Tt({elementType:Et,externalSlotProps:zr,ownerState:Be,className:me.rail}),qn=Tt({elementType:Vt,externalSlotProps:_r,additionalProps:{style:A({},Pt[mt].offset(le),Pt[mt].leap(Ze))},ownerState:A({},Be,_r==null?void 0:_r.ownerState),className:me.track}),vr=Tt({elementType:gr,getSlotProps:hr,externalSlotProps:Gt,ownerState:A({},Be,Gt==null?void 0:Gt.ownerState),className:me.thumb}),Kn=Tt({elementType:St,externalSlotProps:zt,ownerState:A({},Be,zt==null?void 0:zt.ownerState),className:me.valueLabel}),h=Tt({elementType:$t,externalSlotProps:zn,ownerState:Be,className:me.mark}),j=Tt({elementType:Nt,externalSlotProps:Wn,ownerState:Be,className:me.markLabel}),L=Tt({elementType:yr,getSlotProps:mr,externalSlotProps:Wr,ownerState:Be});return s.jsxs(qe,A({},Hr,{children:[s.jsx(Et,A({},Hn)),s.jsx(Vt,A({},qn)),ie.filter(F=>F.value>=q&&F.value<=z).map((F,H)=>{const he=xn(F.value,q,z),oe=Pt[mt].offset(he);let K;return Ae===!1?K=fe.indexOf(F.value)!==-1:K=Ae==="normal"&&($?F.value>=fe[0]&&F.value<=fe[fe.length-1]:F.value<=fe[0])||Ae==="inverted"&&($?F.value<=fe[0]||F.value>=fe[fe.length-1]:F.value>=fe[0]),s.jsxs(V.Fragment,{children:[s.jsx($t,A({"data-index":H},h,!Er($t)&&{markActive:K},{style:A({},oe,h.style),className:jt(h.className,K&&me.markActive)})),F.label!=null?s.jsx(Nt,A({"aria-hidden":!0,"data-index":H},j,!Er(Nt)&&{markLabelActive:K},{style:A({},oe,j.style),className:jt(me.markLabel,j.className,K&&me.markLabelActive),children:F.label})):null]},H)}),fe.map((F,H)=>{const he=xn(F,q,z),oe=Pt[mt].offset(he),K=We==="off"?Rm:St;return s.jsx(K,A({},!Er(K)&&{valueLabelFormat:He,valueLabelDisplay:We,value:typeof He=="function"?He(Ce(F),H):He,index:H,open:pr===H||Jt===H||We==="on",disabled:G},Kn,{children:s.jsx(gr,A({"data-index":H},vr,{className:jt(me.thumb,vr.className,Jt===H&&me.active,E===H&&me.focusVisible),style:A({},oe,nt(H),vr.style),children:s.jsx(yr,A({"data-index":H,"aria-label":D?D(H):Q,"aria-valuenow":Ce(F),"aria-labelledby":ne,"aria-valuetext":ee?ee(Ce(F),H):te,value:fe[H]},L))}))}),H)})]}))});process.env.NODE_ENV!=="production"&&(wi.propTypes={"aria-label":Ma(p.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":p.string,"aria-valuetext":Ma(p.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:p.node,classes:p.object,className:p.string,color:p.oneOfType([p.oneOf(["primary","secondary","error","info","success","warning"]),p.string]),components:p.shape({Input:p.elementType,Mark:p.elementType,MarkLabel:p.elementType,Rail:p.elementType,Root:p.elementType,Thumb:p.elementType,Track:p.elementType,ValueLabel:p.elementType}),componentsProps:p.shape({input:p.oneOfType([p.func,p.object]),mark:p.oneOfType([p.func,p.object]),markLabel:p.oneOfType([p.func,p.object]),rail:p.oneOfType([p.func,p.object]),root:p.oneOfType([p.func,p.object]),thumb:p.oneOfType([p.func,p.object]),track:p.oneOfType([p.func,p.object]),valueLabel:p.oneOfType([p.func,p.shape({children:p.element,className:p.string,open:p.bool,style:p.object,value:p.number,valueLabelDisplay:p.oneOf(["auto","off","on"])})])}),defaultValue:p.oneOfType([p.arrayOf(p.number),p.number]),disabled:p.bool,disableSwap:p.bool,getAriaLabel:p.func,getAriaValueText:p.func,marks:p.oneOfType([p.arrayOf(p.shape({label:p.node,value:p.number.isRequired})),p.bool]),max:p.number,min:p.number,name:p.string,onChange:p.func,onChangeCommitted:p.func,orientation:p.oneOf(["horizontal","vertical"]),scale:p.func,shiftStep:p.number,size:p.oneOfType([p.oneOf(["small","medium"]),p.string]),slotProps:p.shape({input:p.oneOfType([p.func,p.object]),mark:p.oneOfType([p.func,p.object]),markLabel:p.oneOfType([p.func,p.object]),rail:p.oneOfType([p.func,p.object]),root:p.oneOfType([p.func,p.object]),thumb:p.oneOfType([p.func,p.object]),track:p.oneOfType([p.func,p.object]),valueLabel:p.oneOfType([p.func,p.shape({children:p.element,className:p.string,open:p.bool,style:p.object,value:p.number,valueLabelDisplay:p.oneOf(["auto","off","on"])})])}),slots:p.shape({input:p.elementType,mark:p.elementType,markLabel:p.elementType,rail:p.elementType,root:p.elementType,thumb:p.elementType,track:p.elementType,valueLabel:p.elementType}),step:p.number,sx:p.oneOfType([p.arrayOf(p.oneOfType([p.func,p.object,p.bool])),p.func,p.object]),tabIndex:p.number,track:p.oneOf(["inverted","normal",!1]),value:p.oneOfType([p.arrayOf(p.number),p.number]),valueLabelDisplay:p.oneOf(["auto","off","on"]),valueLabelFormat:p.oneOfType([p.func,p.string])});const jm=tt.observer(e=>{const t=e.valueLabelFormat||(n=>`${n}`);function r(n,o){o===e.velocity||!bt.isNumber(o)||e.onVelocityChange(o)}return s.jsxs(s.Fragment,{children:[s.jsx(U.Typography,{sx:{textAlign:"center",fontSize:"15px"},children:t(e.velocity)}),s.jsx(wi,{value:e.velocity,onChange:r,min:e.min,max:e.max,"aria-labelledby":"input-slider",disabled:e.disabled,sx:{"& .MuiSlider-valueLabelOpen":{zIndex:100,backgroundColor:"transparent",top:"0px"}}})]})}),Ri=tt.observer(({store:e})=>{const{t}=Ot.useTranslation(),r=tt.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 s.jsxs(U.Stack,{children:[s.jsx(U.Divider,{}),s.jsx(U.Stack,{sx:{margin:"0px 20px",marginTop:"0.8rem",marginBottom:"0.8rem"},children:s.jsxs(U.Stack,{sx:{width:"380px",maxWidth:"90%",margin:"auto"},children:[s.jsx(U.Typography,{sx:{fontWeight:"bold",fontSize:"15px"},children:t("Jogging.Velocity.lb")}),s.jsx(jm,{velocity:e.velocityInCurrentUnits,min:e.minVelocityInCurrentUnits,max:e.maxVelocityInCurrentUnits,onVelocityChange:e.setVelocityFromSlider,disabled:e.isLocked,valueLabelFormat:r.valueLabelFormat})]})}),s.jsx(U.Divider,{})]})}),Cm=tt.observer(({store:e})=>{var n;const t=je.useRef(null);function r(){const o=e.jogger.motionStream.rapidlyChangingMotionState.tcp_pose;return o?rr.poseToWandelscriptString(o):""}return ir(()=>{t.current&&(t.current.textContent=r())}),s.jsxs(U.Stack,{alignItems:"center",marginTop:"0.8rem",children:[s.jsxs(U.Typography,{sx:{fontSize:"12px",marginTop:"0.8rem"},children:[e.selectedTcpId," - ",(n=e.selectedCoordSystem)==null?void 0:n.name]}),s.jsx(U.Typography,{component:"pre",ref:t,sx:{fontSize:"14px",opacity:.6}})]})}),Pm=({store:e})=>{const{t}=Ot.useTranslation(),[r,n]=je.useState(e.jogger.motionStream.rapidlyChangingMotionState.state.joint_limit_reached.limit_reached);ir(()=>{const a=e.jogger.motionStream.rapidlyChangingMotionState.state.joint_limit_reached.limit_reached;bt.isEqual(r,a)||n(a)});const o=[];return r.forEach((a,i)=>{a&&o.push(i)}),o.length?s.jsx(U.Typography,{color:"error",sx:{padding:"1rem",textAlign:"center"},children:t("Jogging.JointLimitsReached.lb",{jointNumbers:o.map(a=>a+1).join(", ")})}):null},Em=tt.observer(({store:e})=>{const{t}=Ot.useTranslation();function r(u,d){(d==="translate"||d==="rotate")&&e.setSelectedCartesianMotionType(d)}Rs(()=>[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 n(u,d){const m=e.jogger.motionStream.rapidlyChangingMotionState.tcp_pose;e.jogger.motionStream.rapidlyChangingMotionState.state.joint_position}async function o(u){if(!e.isLocked){if(e.selectedDiscreteIncrement)return n(u,e.selectedDiscreteIncrement);u.motionType==="translate"?await e.jogger.startTCPTranslation({axis:u.axis,direction:u.direction,velocityMmPerSec:e.translationVelocityMmPerSec}):await e.jogger.startTCPRotation({axis:u.axis,direction:u.direction,velocityRadsPerSec:e.rotationVelocityRadsPerSec})}}async function a(){e.isLocked||e.selectedDiscreteIncrement||await e.jogger.stop()}const i=[{id:"x",color:"#F14D42",icon:s.jsx(Yf,{})},{id:"y",color:"#42A705",icon:s.jsx(Qf,{})},{id:"z",color:"#0075FF",icon:s.jsx(tm,{})}];function l(u){return t("General.mm.variable",{amount:u.toFixed(1)})}function c(u){return t("General.degree.variable",{amount:rr.radiansToDegrees(u).toFixed(1)})}return s.jsxs(U.Stack,{children:[s.jsx(nm,{store:e}),s.jsx(Cm,{store:e}),s.jsx(U.Stack,{alignItems:"center",marginTop:"1rem",children:s.jsxs(U.ToggleButtonGroup,{value:e.selectedCartesianMotionType,onChange:r,exclusive:!0,"aria-label":t("Jogging.Cartesian.MotionType.lb"),sx:{"& > button":{borderRadius:"8px",textTransform:"none",padding:"4px 30px"}},children:[s.jsx(U.ToggleButton,{value:"translate",children:t("Jogging.Cartesian.Translation.bt")}),s.jsx(U.ToggleButton,{value:"rotate",children:t("Jogging.Cartesian.Rotation.bt")})]})}),s.jsxs(U.Stack,{width:"80%",maxWidth:"296px",margin:"auto",children:[e.selectedCartesianMotionType==="translate"&&i.map(u=>s.jsx(Ao,{color:u.color,disabled:e.isLocked,sx:{marginTop:"12px"},label:s.jsxs(s.Fragment,{children:[u.icon,s.jsx(U.Typography,{sx:{fontSize:"24px",color:"white"},children:u.id.toUpperCase()})]}),getDisplayedValue:()=>{var d;return l(((d=e.jogger.motionStream.rapidlyChangingMotionState.tcp_pose)==null?void 0:d.position[u.id])||0)},startJogging:d=>o({axis:u.id,motionType:"translate",direction:d}),stopJogging:a},u.id)),e.selectedCartesianMotionType==="rotate"&&i.map(u=>s.jsx(Ao,{color:u.color,disabled:e.isLocked,sx:{marginTop:"12px"},label:s.jsxs(s.Fragment,{children:[s.jsx(Kf,{}),s.jsx(U.Typography,{sx:{fontSize:"24px",color:"white"},children:u.id.toUpperCase()})]}),getDisplayedValue:()=>{var d,m;return c(((m=(d=e.jogger.motionStream.rapidlyChangingMotionState.tcp_pose)==null?void 0:d.orientation)==null?void 0:m[u.id])||0)},startJogging:d=>o({axis:u.id,motionType:"rotate",direction:d}),stopJogging:a},u.id))]}),s.jsx(Ri,{store:e}),s.jsx(Pm,{store:e})]})}),Tm=tt.observer(({store:e})=>{const t=je.useRef(null),{t:r}=Ot.useTranslation();function n(){const{joints:o}=e.jogger.motionStream.rapidlyChangingMotionState.state.joint_position;return`{${o.map(a=>parseFloat(a.toFixed(4))).join(", ")}}`}return ir(()=>{t.current&&(t.current.textContent=n())}),s.jsxs(U.Stack,{alignItems:"center",marginTop:"0.8rem",children:[s.jsx(U.Typography,{sx:{fontSize:"12px",marginTop:"0.8rem"},children:r("Jogging.Joints.JointValues.lb")}),s.jsx(U.Typography,{component:"pre",ref:t,sx:{fontSize:"14px",opacity:.6},children:n()})]})}),Am=tt.observer(({store:e})=>{async function t(n){await e.jogger.startJointRotation({joint:n.joint,direction:n.direction,velocityRadsPerSec:e.rotationVelocityRadsPerSec})}async function r(){await e.jogger.stop()}return s.jsxs(U.Stack,{children:[s.jsx(Tm,{store:e}),s.jsx(U.Stack,{children:e.jogger.motionStream.joints.map(n=>{var l;const o=(l=e.motionGroupSpec.mechanical_joint_limits)==null?void 0:l[n.index],a=(o==null?void 0:o.lower_limit)!==void 0?rr.radiansToDegrees(o.lower_limit):void 0,i=(o==null?void 0:o.upper_limit)!==void 0?rr.radiansToDegrees(o.upper_limit):void 0;return s.jsxs(U.Stack,{direction:"row",alignItems:"center",gap:2,marginTop:"0.8rem",children:[s.jsx(U.Typography,{sx:{flexGrow:1,textAlign:"right"},children:`J${n.index+1}`}),s.jsx(gi,{disabled:e.isLocked,lowerLimitDegs:a,upperLimitDegs:i,getValueDegs:()=>{const c=e.jogger.motionStream.rapidlyChangingMotionState.state.joint_position.joints[n.index];return c!==void 0?rr.radiansToDegrees(c):void 0},startJogging:c=>t({joint:n.index,direction:c}),stopJogging:r},n.index),s.jsx(U.Typography,{sx:{flexGrow:1}})]},`joint-${n.index}`)})}),s.jsx(Ri,{store:e})]})}),Mo=[{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}],Om=[{id:"continuous"},...Mo];class Qo{constructor(t,r,n,o){var a,i;this.jogger=t,this.motionGroupSpec=r,this.coordSystems=n,this.tcps=o,this.selectedTabId="cartesian",this.isLocked=!1,this.selectedCoordSystemId="world",this.selectedTcpId="",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=((a=n[0])==null?void 0:a.coordinate_system)||"world",this.selectedTcpId=((i=o[0])==null?void 0:i.id)||"",Ar.makeAutoObservable(this,{},{autoBind:!0}),this.loadFromLocalStorage(),this.disposers.push(Ar.autorun(()=>this.saveToLocalStorage())),window.joggingStore=this}static async loadFor(t){const{nova:r}=t,[n,{coordinatesystems:o},{tcps:a}]=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 Qo(t,n,o||[],a||[])}dispose(){for(const t of this.disposers)t();this.jogger.dispose()}loadFromLocalStorage(){const t=rr.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))}saveToLocalStorage(){localStorage.setItem("joggingToolStore",JSON.stringify(this.localStorageSave))}get localStorageSave(){return{selectedTabId:this.selectedTabId,selectedCoordSystemId:this.selectedCoordSystemId,selectedTcpId:this.selectedTcpId,selectedIncrementId:this.selectedIncrementId,selectedCartesianMotionType:this.selectedCartesianMotionType}}get tabs(){return[{id:"cartesian",label:"Cartesian"},{id:"joint",label:"Joint"}]}get incrementOptions(){return Om}get discreteIncrementOptions(){return Mo}get incrementOptionsById(){return bt.keyBy(this.incrementOptions,t=>t.id)}get tabsById(){return bt.keyBy(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 bt.keyBy(this.coordSystems,t=>t.coordinate_system)}get selectedCoordSystem(){return this.coordSystemsById[this.selectedCoordSystemId]}get tcpsById(){return bt.keyBy(this.tcps,t=>t.id)}get selectedDiscreteIncrement(){return Mo.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}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}}function ji(e,t){return function(){return e.apply(t,arguments)}}const{toString:Mm}=Object.prototype,{getPrototypeOf:ea}=Object,Un=(e=>t=>{const r=Mm.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),gt=e=>(e=e.toLowerCase(),t=>Un(t)===e),Bn=e=>t=>typeof t===e,{isArray:dr}=Array,$r=Bn("undefined");function km(e){return e!==null&&!$r(e)&&e.constructor!==null&&!$r(e.constructor)&&ut(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Ci=gt("ArrayBuffer");function Im(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Ci(e.buffer),t}const Lm=Bn("string"),ut=Bn("function"),Pi=Bn("number"),Jn=e=>e!==null&&typeof e=="object",$m=e=>e===!0||e===!1,fn=e=>{if(Un(e)!=="object")return!1;const t=ea(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Nm=gt("Date"),Fm=gt("File"),Dm=gt("Blob"),Um=gt("FileList"),Bm=e=>Jn(e)&&ut(e.pipe),Jm=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||ut(e.append)&&((t=Un(e))==="formdata"||t==="object"&&ut(e.toString)&&e.toString()==="[object FormData]"))},Vm=gt("URLSearchParams"),[Gm,zm,Wm,Hm]=["ReadableStream","Request","Response","Headers"].map(gt),qm=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Vr(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,o;if(typeof e!="object"&&(e=[e]),dr(e))for(n=0,o=e.length;n<o;n++)t.call(null,e[n],n,e);else{const a=r?Object.getOwnPropertyNames(e):Object.keys(e),i=a.length;let l;for(n=0;n<i;n++)l=a[n],t.call(null,e[l],l,e)}}function Ei(e,t){t=t.toLowerCase();const r=Object.keys(e);let n=r.length,o;for(;n-- >0;)if(o=r[n],t===o.toLowerCase())return o;return null}const Ti=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Ai=e=>!$r(e)&&e!==Ti;function ko(){const{caseless:e}=Ai(this)&&this||{},t={},r=(n,o)=>{const a=e&&Ei(t,o)||o;fn(t[a])&&fn(n)?t[a]=ko(t[a],n):fn(n)?t[a]=ko({},n):dr(n)?t[a]=n.slice():t[a]=n};for(let n=0,o=arguments.length;n<o;n++)arguments[n]&&Vr(arguments[n],r);return t}const Km=(e,t,r,{allOwnKeys:n}={})=>(Vr(t,(o,a)=>{r&&ut(o)?e[a]=ji(o,r):e[a]=o},{allOwnKeys:n}),e),Xm=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Ym=(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)},Zm=(e,t,r,n)=>{let o,a,i;const l={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),a=o.length;a-- >0;)i=o[a],(!n||n(i,e,t))&&!l[i]&&(t[i]=e[i],l[i]=!0);e=r!==!1&&ea(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},Qm=(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},eh=e=>{if(!e)return null;if(dr(e))return e;let t=e.length;if(!Pi(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},th=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&ea(Uint8Array)),rh=(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=n.next())&&!o.done;){const a=o.value;t.call(e,a[0],a[1])}},nh=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},oh=gt("HTMLFormElement"),ah=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,o){return n.toUpperCase()+o}),as=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),sh=gt("RegExp"),Oi=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};Vr(r,(o,a)=>{let i;(i=t(o,a,e))!==!1&&(n[a]=i||o)}),Object.defineProperties(e,n)},ih=e=>{Oi(e,(t,r)=>{if(ut(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(ut(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=o=>{o.forEach(a=>{r[a]=!0})};return dr(e)?n(e):n(String(e).split(t)),r},ch=()=>{},uh=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,po="abcdefghijklmnopqrstuvwxyz",ss="0123456789",Mi={DIGIT:ss,ALPHA:po,ALPHA_DIGIT:po+po.toUpperCase()+ss},dh=(e=16,t=Mi.ALPHA_DIGIT)=>{let r="";const{length:n}=t;for(;e--;)r+=t[Math.random()*n|0];return r};function fh(e){return!!(e&&ut(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const mh=e=>{const t=new Array(10),r=(n,o)=>{if(Jn(n)){if(t.indexOf(n)>=0)return;if(!("toJSON"in n)){t[o]=n;const a=dr(n)?[]:{};return Vr(n,(i,l)=>{const c=r(i,o+1);!$r(c)&&(a[l]=c)}),t[o]=void 0,a}}return n};return r(e,0)},hh=gt("AsyncFunction"),ph=e=>e&&(Jn(e)||ut(e))&&ut(e.then)&&ut(e.catch),S={isArray:dr,isArrayBuffer:Ci,isBuffer:km,isFormData:Jm,isArrayBufferView:Im,isString:Lm,isNumber:Pi,isBoolean:$m,isObject:Jn,isPlainObject:fn,isReadableStream:Gm,isRequest:zm,isResponse:Wm,isHeaders:Hm,isUndefined:$r,isDate:Nm,isFile:Fm,isBlob:Dm,isRegExp:sh,isFunction:ut,isStream:Bm,isURLSearchParams:Vm,isTypedArray:th,isFileList:Um,forEach:Vr,merge:ko,extend:Km,trim:qm,stripBOM:Xm,inherits:Ym,toFlatObject:Zm,kindOf:Un,kindOfTest:gt,endsWith:Qm,toArray:eh,forEachEntry:rh,matchAll:nh,isHTMLForm:oh,hasOwnProperty:as,hasOwnProp:as,reduceDescriptors:Oi,freezeMethods:ih,toObjectSet:lh,toCamelCase:ah,noop:ch,toFiniteNumber:uh,findKey:Ei,global:Ti,isContextDefined:Ai,ALPHABET:Mi,generateString:dh,isSpecCompliantForm:fh,toJSONObject:mh,isAsyncFn:hh,isThenable:ph};function Z(e,t,r,n,o){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),o&&(this.response=o)}S.inherits(Z,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:S.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const ki=Z.prototype,Ii={};["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=>{Ii[e]={value:e}});Object.defineProperties(Z,Ii);Object.defineProperty(ki,"isAxiosError",{value:!0});Z.from=(e,t,r,n,o,a)=>{const i=Object.create(ki);return S.toFlatObject(e,i,function(c){return c!==Error.prototype},l=>l!=="isAxiosError"),Z.call(i,e.message,t,r,n,o),i.cause=e,i.name=e.name,a&&Object.assign(i,a),i};const gh=null;function Io(e){return S.isPlainObject(e)||S.isArray(e)}function Li(e){return S.endsWith(e,"[]")?e.slice(0,-2):e}function is(e,t,r){return e?e.concat(t).map(function(o,a){return o=Li(o),!r&&a?"["+o+"]":o}).join(r?".":""):t}function yh(e){return S.isArray(e)&&!e.some(Io)}const bh=S.toFlatObject(S,{},null,function(t){return/^is[A-Z]/.test(t)});function Vn(e,t,r){if(!S.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=S.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(y,b){return!S.isUndefined(b[y])});const n=r.metaTokens,o=r.visitor||d,a=r.dots,i=r.indexes,c=(r.Blob||typeof Blob<"u"&&Blob)&&S.isSpecCompliantForm(t);if(!S.isFunction(o))throw new TypeError("visitor must be a function");function u(g){if(g===null)return"";if(S.isDate(g))return g.toISOString();if(!c&&S.isBlob(g))throw new Z("Blob is not supported. Use a Buffer instead.");return S.isArrayBuffer(g)||S.isTypedArray(g)?c&&typeof Blob=="function"?new Blob([g]):Buffer.from(g):g}function d(g,y,b){let w=g;if(g&&!b&&typeof g=="object"){if(S.endsWith(y,"{}"))y=n?y:y.slice(0,-2),g=JSON.stringify(g);else if(S.isArray(g)&&yh(g)||(S.isFileList(g)||S.endsWith(y,"[]"))&&(w=S.toArray(g)))return y=Li(y),w.forEach(function(P,k){!(S.isUndefined(P)||P===null)&&t.append(i===!0?is([y],k,a):i===null?y:y+"[]",u(P))}),!1}return Io(g)?!0:(t.append(is(b,y,a),u(g)),!1)}const m=[],f=Object.assign(bh,{defaultVisitor:d,convertValue:u,isVisitable:Io});function _(g,y){if(!S.isUndefined(g)){if(m.indexOf(g)!==-1)throw Error("Circular reference detected in "+y.join("."));m.push(g),S.forEach(g,function(w,C){(!(S.isUndefined(w)||w===null)&&o.call(t,w,S.isString(C)?C.trim():C,y,f))===!0&&_(w,y?y.concat(C):[C])}),m.pop()}}if(!S.isObject(e))throw new TypeError("data must be an object");return _(e),t}function ls(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function ta(e,t){this._pairs=[],e&&Vn(e,this,t)}const $i=ta.prototype;$i.append=function(t,r){this._pairs.push([t,r])};$i.toString=function(t){const r=t?function(n){return t.call(this,n,ls)}:ls;return this._pairs.map(function(o){return r(o[0])+"="+r(o[1])},"").join("&")};function _h(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Ni(e,t,r){if(!t)return e;const n=r&&r.encode||_h,o=r&&r.serialize;let a;if(o?a=o(t,r):a=S.isURLSearchParams(t)?t.toString():new ta(t,r).toString(n),a){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+a}return e}class cs{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){S.forEach(this.handlers,function(n){n!==null&&t(n)})}}const Fi={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},vh=typeof URLSearchParams<"u"?URLSearchParams:ta,Sh=typeof FormData<"u"?FormData:null,xh=typeof Blob<"u"?Blob:null,wh={isBrowser:!0,classes:{URLSearchParams:vh,FormData:Sh,Blob:xh},protocols:["http","https","file","blob","url","data"]},ra=typeof window<"u"&&typeof document<"u",Rh=(e=>ra&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),jh=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Ch=ra&&window.location.href||"http://localhost",Ph=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:ra,hasStandardBrowserEnv:Rh,hasStandardBrowserWebWorkerEnv:jh,origin:Ch},Symbol.toStringTag,{value:"Module"})),ht={...Ph,...wh};function Eh(e,t){return Vn(e,new ht.classes.URLSearchParams,Object.assign({visitor:function(r,n,o,a){return ht.isNode&&S.isBuffer(r)?(this.append(n,r.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)}},t))}function Th(e){return S.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Ah(e){const t={},r=Object.keys(e);let n;const o=r.length;let a;for(n=0;n<o;n++)a=r[n],t[a]=e[a];return t}function Di(e){function t(r,n,o,a){let i=r[a++];if(i==="__proto__")return!0;const l=Number.isFinite(+i),c=a>=r.length;return i=!i&&S.isArray(o)?o.length:i,c?(S.hasOwnProp(o,i)?o[i]=[o[i],n]:o[i]=n,!l):((!o[i]||!S.isObject(o[i]))&&(o[i]=[]),t(r,n,o[i],a)&&S.isArray(o[i])&&(o[i]=Ah(o[i])),!l)}if(S.isFormData(e)&&S.isFunction(e.entries)){const r={};return S.forEachEntry(e,(n,o)=>{t(Th(n),o,r,0)}),r}return null}function Oh(e,t,r){if(S.isString(e))try{return(t||JSON.parse)(e),S.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}const Gr={transitional:Fi,adapter:["xhr","http","fetch"],transformRequest:[function(t,r){const n=r.getContentType()||"",o=n.indexOf("application/json")>-1,a=S.isObject(t);if(a&&S.isHTMLForm(t)&&(t=new FormData(t)),S.isFormData(t))return o?JSON.stringify(Di(t)):t;if(S.isArrayBuffer(t)||S.isBuffer(t)||S.isStream(t)||S.isFile(t)||S.isBlob(t)||S.isReadableStream(t))return t;if(S.isArrayBufferView(t))return t.buffer;if(S.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(a){if(n.indexOf("application/x-www-form-urlencoded")>-1)return Eh(t,this.formSerializer).toString();if((l=S.isFileList(t))||n.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return Vn(l?{"files[]":t}:t,c&&new c,this.formSerializer)}}return a||o?(r.setContentType("application/json",!1),Oh(t)):t}],transformResponse:[function(t){const r=this.transitional||Gr.transitional,n=r&&r.forcedJSONParsing,o=this.responseType==="json";if(S.isResponse(t)||S.isReadableStream(t))return t;if(t&&S.isString(t)&&(n&&!this.responseType||o)){const i=!(r&&r.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(l){if(i)throw l.name==="SyntaxError"?Z.from(l,Z.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:ht.classes.FormData,Blob:ht.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};S.forEach(["delete","get","head","post","put","patch"],e=>{Gr.headers[e]={}});const Mh=S.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"]),kh=e=>{const t={};let r,n,o;return e&&e.split(`
97
- `).forEach(function(i){o=i.indexOf(":"),r=i.substring(0,o).trim().toLowerCase(),n=i.substring(o+1).trim(),!(!r||t[r]&&Mh[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t},us=Symbol("internals");function Cr(e){return e&&String(e).trim().toLowerCase()}function mn(e){return e===!1||e==null?e:S.isArray(e)?e.map(mn):String(e)}function Ih(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 Lh=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function go(e,t,r,n,o){if(S.isFunction(n))return n.call(this,t,r);if(o&&(t=r),!!S.isString(t)){if(S.isString(n))return t.indexOf(n)!==-1;if(S.isRegExp(n))return n.test(t)}}function $h(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function Nh(e,t){const r=S.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(o,a,i){return this[n].call(this,t,o,a,i)},configurable:!0})})}let Xe=class{constructor(t){t&&this.set(t)}set(t,r,n){const o=this;function a(l,c,u){const d=Cr(c);if(!d)throw new Error("header name must be a non-empty string");const m=S.findKey(o,d);(!m||o[m]===void 0||u===!0||u===void 0&&o[m]!==!1)&&(o[m||c]=mn(l))}const i=(l,c)=>S.forEach(l,(u,d)=>a(u,d,c));if(S.isPlainObject(t)||t instanceof this.constructor)i(t,r);else if(S.isString(t)&&(t=t.trim())&&!Lh(t))i(kh(t),r);else if(S.isHeaders(t))for(const[l,c]of t.entries())a(c,l,n);else t!=null&&a(r,t,n);return this}get(t,r){if(t=Cr(t),t){const n=S.findKey(this,t);if(n){const o=this[n];if(!r)return o;if(r===!0)return Ih(o);if(S.isFunction(r))return r.call(this,o,n);if(S.isRegExp(r))return r.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=Cr(t),t){const n=S.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||go(this,this[n],n,r)))}return!1}delete(t,r){const n=this;let o=!1;function a(i){if(i=Cr(i),i){const l=S.findKey(n,i);l&&(!r||go(n,n[l],l,r))&&(delete n[l],o=!0)}}return S.isArray(t)?t.forEach(a):a(t),o}clear(t){const r=Object.keys(this);let n=r.length,o=!1;for(;n--;){const a=r[n];(!t||go(this,this[a],a,t,!0))&&(delete this[a],o=!0)}return o}normalize(t){const r=this,n={};return S.forEach(this,(o,a)=>{const i=S.findKey(n,a);if(i){r[i]=mn(o),delete r[a];return}const l=t?$h(a):String(a).trim();l!==a&&delete r[a],r[l]=mn(o),n[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const r=Object.create(null);return S.forEach(this,(n,o)=>{n!=null&&n!==!1&&(r[o]=t&&S.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(`
98
- `)}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(o=>n.set(o)),n}static accessor(t){const n=(this[us]=this[us]={accessors:{}}).accessors,o=this.prototype;function a(i){const l=Cr(i);n[l]||(Nh(o,i),n[l]=!0)}return S.isArray(t)?t.forEach(a):a(t),this}};Xe.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);S.reduceDescriptors(Xe.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}});S.freezeMethods(Xe);function yo(e,t){const r=this||Gr,n=t||r,o=Xe.from(n.headers);let a=n.data;return S.forEach(e,function(l){a=l.call(r,a,o.normalize(),t?t.status:void 0)}),o.normalize(),a}function Ui(e){return!!(e&&e.__CANCEL__)}function fr(e,t,r){Z.call(this,e??"canceled",Z.ERR_CANCELED,t,r),this.name="CanceledError"}S.inherits(fr,Z,{__CANCEL__:!0});function Bi(e,t,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new Z("Request failed with status code "+r.status,[Z.ERR_BAD_REQUEST,Z.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function Fh(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Dh(e,t){e=e||10;const r=new Array(e),n=new Array(e);let o=0,a=0,i;return t=t!==void 0?t:1e3,function(c){const u=Date.now(),d=n[a];i||(i=u),r[o]=c,n[o]=u;let m=a,f=0;for(;m!==o;)f+=r[m++],m=m%e;if(o=(o+1)%e,o===a&&(a=(a+1)%e),u-i<t)return;const _=d&&u-d;return _?Math.round(f*1e3/_):void 0}}function Uh(e,t){let r=0;const n=1e3/t;let o=null;return function(){const i=this===!0,l=Date.now();if(i||l-r>n)return o&&(clearTimeout(o),o=null),r=l,e.apply(null,arguments);o||(o=setTimeout(()=>(o=null,r=Date.now(),e.apply(null,arguments)),n-(l-r)))}}const wn=(e,t,r=3)=>{let n=0;const o=Dh(50,250);return Uh(a=>{const i=a.loaded,l=a.lengthComputable?a.total:void 0,c=i-n,u=o(c),d=i<=l;n=i;const m={loaded:i,total:l,progress:l?i/l:void 0,bytes:c,rate:u||void 0,estimated:u&&l&&d?(l-i)/u:void 0,event:a,lengthComputable:l!=null};m[t?"download":"upload"]=!0,e(m)},r)},Bh=ht.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");let n;function o(a){let i=a;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=o(window.location.href),function(i){const l=S.isString(i)?o(i):i;return l.protocol===n.protocol&&l.host===n.host}}():function(){return function(){return!0}}(),Jh=ht.hasStandardBrowserEnv?{write(e,t,r,n,o,a){const i=[e+"="+encodeURIComponent(t)];S.isNumber(r)&&i.push("expires="+new Date(r).toGMTString()),S.isString(n)&&i.push("path="+n),S.isString(o)&&i.push("domain="+o),a===!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 Vh(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Gh(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Ji(e,t){return e&&!Vh(t)?Gh(e,t):t}const ds=e=>e instanceof Xe?{...e}:e;function Bt(e,t){t=t||{};const r={};function n(u,d,m){return S.isPlainObject(u)&&S.isPlainObject(d)?S.merge.call({caseless:m},u,d):S.isPlainObject(d)?S.merge({},d):S.isArray(d)?d.slice():d}function o(u,d,m){if(S.isUndefined(d)){if(!S.isUndefined(u))return n(void 0,u,m)}else return n(u,d,m)}function a(u,d){if(!S.isUndefined(d))return n(void 0,d)}function i(u,d){if(S.isUndefined(d)){if(!S.isUndefined(u))return n(void 0,u)}else return n(void 0,d)}function l(u,d,m){if(m in t)return n(u,d);if(m in e)return n(void 0,u)}const c={url:a,method:a,data:a,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:(u,d)=>o(ds(u),ds(d),!0)};return S.forEach(Object.keys(Object.assign({},e,t)),function(d){const m=c[d]||o,f=m(e[d],t[d],d);S.isUndefined(f)&&m!==l||(r[d]=f)}),r}const Vi=e=>{const t=Bt({},e);let{data:r,withXSRFToken:n,xsrfHeaderName:o,xsrfCookieName:a,headers:i,auth:l}=t;t.headers=i=Xe.from(i),t.url=Ni(Ji(t.baseURL,t.url),e.params,e.paramsSerializer),l&&i.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):"")));let c;if(S.isFormData(r)){if(ht.hasStandardBrowserEnv||ht.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if((c=i.getContentType())!==!1){const[u,...d]=c?c.split(";").map(m=>m.trim()).filter(Boolean):[];i.setContentType([u||"multipart/form-data",...d].join("; "))}}if(ht.hasStandardBrowserEnv&&(n&&S.isFunction(n)&&(n=n(t)),n||n!==!1&&Bh(t.url))){const u=o&&a&&Jh.read(a);u&&i.set(o,u)}return t},zh=typeof XMLHttpRequest<"u",Wh=zh&&function(e){return new Promise(function(r,n){const o=Vi(e);let a=o.data;const i=Xe.from(o.headers).normalize();let{responseType:l}=o,c;function u(){o.cancelToken&&o.cancelToken.unsubscribe(c),o.signal&&o.signal.removeEventListener("abort",c)}let d=new XMLHttpRequest;d.open(o.method.toUpperCase(),o.url,!0),d.timeout=o.timeout;function m(){if(!d)return;const _=Xe.from("getAllResponseHeaders"in d&&d.getAllResponseHeaders()),y={data:!l||l==="text"||l==="json"?d.responseText:d.response,status:d.status,statusText:d.statusText,headers:_,config:e,request:d};Bi(function(w){r(w),u()},function(w){n(w),u()},y),d=null}"onloadend"in d?d.onloadend=m:d.onreadystatechange=function(){!d||d.readyState!==4||d.status===0&&!(d.responseURL&&d.responseURL.indexOf("file:")===0)||setTimeout(m)},d.onabort=function(){d&&(n(new Z("Request aborted",Z.ECONNABORTED,o,d)),d=null)},d.onerror=function(){n(new Z("Network Error",Z.ERR_NETWORK,o,d)),d=null},d.ontimeout=function(){let g=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const y=o.transitional||Fi;o.timeoutErrorMessage&&(g=o.timeoutErrorMessage),n(new Z(g,y.clarifyTimeoutError?Z.ETIMEDOUT:Z.ECONNABORTED,o,d)),d=null},a===void 0&&i.setContentType(null),"setRequestHeader"in d&&S.forEach(i.toJSON(),function(g,y){d.setRequestHeader(y,g)}),S.isUndefined(o.withCredentials)||(d.withCredentials=!!o.withCredentials),l&&l!=="json"&&(d.responseType=o.responseType),typeof o.onDownloadProgress=="function"&&d.addEventListener("progress",wn(o.onDownloadProgress,!0)),typeof o.onUploadProgress=="function"&&d.upload&&d.upload.addEventListener("progress",wn(o.onUploadProgress)),(o.cancelToken||o.signal)&&(c=_=>{d&&(n(!_||_.type?new fr(null,e,d):_),d.abort(),d=null)},o.cancelToken&&o.cancelToken.subscribe(c),o.signal&&(o.signal.aborted?c():o.signal.addEventListener("abort",c)));const f=Fh(o.url);if(f&&ht.protocols.indexOf(f)===-1){n(new Z("Unsupported protocol "+f+":",Z.ERR_BAD_REQUEST,e));return}d.send(a||null)})},Hh=(e,t)=>{let r=new AbortController,n;const o=function(c){if(!n){n=!0,i();const u=c instanceof Error?c:this.reason;r.abort(u instanceof Z?u:new fr(u instanceof Error?u.message:u))}};let a=t&&setTimeout(()=>{o(new Z(`timeout ${t} of ms exceeded`,Z.ETIMEDOUT))},t);const i=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach(c=>{c&&(c.removeEventListener?c.removeEventListener("abort",o):c.unsubscribe(o))}),e=null)};e.forEach(c=>c&&c.addEventListener&&c.addEventListener("abort",o));const{signal:l}=r;return l.unsubscribe=i,[l,()=>{a&&clearTimeout(a),a=null}]},qh=function*(e,t){let r=e.byteLength;if(!t||r<t){yield e;return}let n=0,o;for(;n<r;)o=n+t,yield e.slice(n,o),n=o},Kh=async function*(e,t,r){for await(const n of e)yield*qh(ArrayBuffer.isView(n)?n:await r(String(n)),t)},fs=(e,t,r,n,o)=>{const a=Kh(e,t,o);let i=0;return new ReadableStream({type:"bytes",async pull(l){const{done:c,value:u}=await a.next();if(c){l.close(),n();return}let d=u.byteLength;r&&r(i+=d),l.enqueue(new Uint8Array(u))},cancel(l){return n(l),a.return()}},{highWaterMark:2})},ms=(e,t)=>{const r=e!=null;return n=>setTimeout(()=>t({lengthComputable:r,total:e,loaded:n}))},Gn=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Gi=Gn&&typeof ReadableStream=="function",Lo=Gn&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Xh=Gi&&(()=>{let e=!1;const t=new Request(ht.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})(),hs=64*1024,$o=Gi&&!!(()=>{try{return S.isReadableStream(new Response("").body)}catch{}})(),Rn={stream:$o&&(e=>e.body)};Gn&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!Rn[t]&&(Rn[t]=S.isFunction(e[t])?r=>r[t]():(r,n)=>{throw new Z(`Response type '${t}' is not supported`,Z.ERR_NOT_SUPPORT,n)})})})(new Response);const Yh=async e=>{if(e==null)return 0;if(S.isBlob(e))return e.size;if(S.isSpecCompliantForm(e))return(await new Request(e).arrayBuffer()).byteLength;if(S.isArrayBufferView(e))return e.byteLength;if(S.isURLSearchParams(e)&&(e=e+""),S.isString(e))return(await Lo(e)).byteLength},Zh=async(e,t)=>{const r=S.toFiniteNumber(e.getContentLength());return r??Yh(t)},Qh=Gn&&(async e=>{let{url:t,method:r,data:n,signal:o,cancelToken:a,timeout:i,onDownloadProgress:l,onUploadProgress:c,responseType:u,headers:d,withCredentials:m="same-origin",fetchOptions:f}=Vi(e);u=u?(u+"").toLowerCase():"text";let[_,g]=o||a||i?Hh([o,a],i):[],y,b;const w=()=>{!y&&setTimeout(()=>{_&&_.unsubscribe()}),y=!0};let C;try{if(c&&Xh&&r!=="get"&&r!=="head"&&(C=await Zh(d,n))!==0){let N=new Request(t,{method:"POST",body:n,duplex:"half"}),I;S.isFormData(n)&&(I=N.headers.get("content-type"))&&d.setContentType(I),N.body&&(n=fs(N.body,hs,ms(C,wn(c)),null,Lo))}S.isString(m)||(m=m?"cors":"omit"),b=new Request(t,{...f,signal:_,method:r.toUpperCase(),headers:d.normalize().toJSON(),body:n,duplex:"half",withCredentials:m});let P=await fetch(b);const k=$o&&(u==="stream"||u==="response");if($o&&(l||k)){const N={};["status","statusText","headers"].forEach(de=>{N[de]=P[de]});const I=S.toFiniteNumber(P.headers.get("content-length"));P=new Response(fs(P.body,hs,l&&ms(I,wn(l,!0)),k&&w,Lo),N)}u=u||"text";let v=await Rn[S.findKey(Rn,u)||"text"](P,e);return!k&&w(),g&&g(),await new Promise((N,I)=>{Bi(N,I,{data:v,headers:Xe.from(P.headers),status:P.status,statusText:P.statusText,config:e,request:b})})}catch(P){throw w(),P&&P.name==="TypeError"&&/fetch/i.test(P.message)?Object.assign(new Z("Network Error",Z.ERR_NETWORK,e,b),{cause:P.cause||P}):Z.from(P,P&&P.code,e,b)}}),No={http:gh,xhr:Wh,fetch:Qh};S.forEach(No,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const ps=e=>`- ${e}`,e0=e=>S.isFunction(e)||e===null||e===!1,zi={getAdapter:e=>{e=S.isArray(e)?e:[e];const{length:t}=e;let r,n;const o={};for(let a=0;a<t;a++){r=e[a];let i;if(n=r,!e0(r)&&(n=No[(i=String(r)).toLowerCase()],n===void 0))throw new Z(`Unknown adapter '${i}'`);if(n)break;o[i||"#"+a]=n}if(!n){const a=Object.entries(o).map(([l,c])=>`adapter ${l} `+(c===!1?"is not supported by the environment":"is not available in the build"));let i=t?a.length>1?`since :
99
- `+a.map(ps).join(`
100
- `):" "+ps(a[0]):"as no adapter specified";throw new Z("There is no suitable adapter to dispatch the request "+i,"ERR_NOT_SUPPORT")}return n},adapters:No};function bo(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new fr(null,e)}function gs(e){return bo(e),e.headers=Xe.from(e.headers),e.data=yo.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),zi.getAdapter(e.adapter||Gr.adapter)(e).then(function(n){return bo(e),n.data=yo.call(e,e.transformResponse,n),n.headers=Xe.from(n.headers),n},function(n){return Ui(n)||(bo(e),n&&n.response&&(n.response.data=yo.call(e,e.transformResponse,n.response),n.response.headers=Xe.from(n.response.headers))),Promise.reject(n)})}const Wi="1.7.2",na={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{na[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const ys={};na.transitional=function(t,r,n){function o(a,i){return"[Axios v"+Wi+"] Transitional option '"+a+"'"+i+(n?". "+n:"")}return(a,i,l)=>{if(t===!1)throw new Z(o(i," has been removed"+(r?" in "+r:"")),Z.ERR_DEPRECATED);return r&&!ys[i]&&(ys[i]=!0,console.warn(o(i," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(a,i,l):!0}};function t0(e,t,r){if(typeof e!="object")throw new Z("options must be an object",Z.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let o=n.length;for(;o-- >0;){const a=n[o],i=t[a];if(i){const l=e[a],c=l===void 0||i(l,a,e);if(c!==!0)throw new Z("option "+a+" must be "+c,Z.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new Z("Unknown option "+a,Z.ERR_BAD_OPTION)}}const Fo={assertOptions:t0,validators:na},At=Fo.validators;let Dt=class{constructor(t){this.defaults=t,this.interceptors={request:new cs,response:new cs}}async request(t,r){try{return await this._request(t,r)}catch(n){if(n instanceof Error){let o;Error.captureStackTrace?Error.captureStackTrace(o={}):o=new Error;const a=o.stack?o.stack.replace(/^.+\n/,""):"";try{n.stack?a&&!String(n.stack).endsWith(a.replace(/^.+\n.+\n/,""))&&(n.stack+=`
101
- `+a):n.stack=a}catch{}}throw n}}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=Bt(this.defaults,r);const{transitional:n,paramsSerializer:o,headers:a}=r;n!==void 0&&Fo.assertOptions(n,{silentJSONParsing:At.transitional(At.boolean),forcedJSONParsing:At.transitional(At.boolean),clarifyTimeoutError:At.transitional(At.boolean)},!1),o!=null&&(S.isFunction(o)?r.paramsSerializer={serialize:o}:Fo.assertOptions(o,{encode:At.function,serialize:At.function},!0)),r.method=(r.method||this.defaults.method||"get").toLowerCase();let i=a&&S.merge(a.common,a[r.method]);a&&S.forEach(["delete","get","head","post","put","patch","common"],g=>{delete a[g]}),r.headers=Xe.concat(i,a);const l=[];let c=!0;this.interceptors.request.forEach(function(y){typeof y.runWhen=="function"&&y.runWhen(r)===!1||(c=c&&y.synchronous,l.unshift(y.fulfilled,y.rejected))});const u=[];this.interceptors.response.forEach(function(y){u.push(y.fulfilled,y.rejected)});let d,m=0,f;if(!c){const g=[gs.bind(this),void 0];for(g.unshift.apply(g,l),g.push.apply(g,u),f=g.length,d=Promise.resolve(r);m<f;)d=d.then(g[m++],g[m++]);return d}f=l.length;let _=r;for(m=0;m<f;){const g=l[m++],y=l[m++];try{_=g(_)}catch(b){y.call(this,b);break}}try{d=gs.call(this,_)}catch(g){return Promise.reject(g)}for(m=0,f=u.length;m<f;)d=d.then(u[m++],u[m++]);return d}getUri(t){t=Bt(this.defaults,t);const r=Ji(t.baseURL,t.url);return Ni(r,t.params,t.paramsSerializer)}};S.forEach(["delete","get","head","options"],function(t){Dt.prototype[t]=function(r,n){return this.request(Bt(n||{},{method:t,url:r,data:(n||{}).data}))}});S.forEach(["post","put","patch"],function(t){function r(n){return function(a,i,l){return this.request(Bt(l||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:a,data:i}))}}Dt.prototype[t]=r(),Dt.prototype[t+"Form"]=r(!0)});let r0=class Hi{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(a){r=a});const n=this;this.promise.then(o=>{if(!n._listeners)return;let a=n._listeners.length;for(;a-- >0;)n._listeners[a](o);n._listeners=null}),this.promise.then=o=>{let a;const i=new Promise(l=>{n.subscribe(l),a=l}).then(o);return i.cancel=function(){n.unsubscribe(a)},i},t(function(a,i,l){n.reason||(n.reason=new fr(a,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 Hi(function(o){t=o}),cancel:t}}};function n0(e){return function(r){return e.apply(null,r)}}function o0(e){return S.isObject(e)&&e.isAxiosError===!0}const Do={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(Do).forEach(([e,t])=>{Do[t]=e});function qi(e){const t=new Dt(e),r=ji(Dt.prototype.request,t);return S.extend(r,Dt.prototype,t,{allOwnKeys:!0}),S.extend(r,t,null,{allOwnKeys:!0}),r.create=function(o){return qi(Bt(e,o))},r}const De=qi(Gr);De.Axios=Dt;De.CanceledError=fr;De.CancelToken=r0;De.isCancel=Ui;De.VERSION=Wi;De.toFormData=Vn;De.AxiosError=Z;De.Cancel=De.CanceledError;De.all=function(t){return Promise.all(t)};De.spread=n0;De.isAxiosError=o0;De.mergeConfig=Bt;De.AxiosHeaders=Xe;De.formToJSON=e=>Di(S.isHTMLForm(e)?new FormData(e):e);De.getAdapter=zi.getAdapter;De.HttpStatusCode=Do;De.default=De;const{Axios:f0,AxiosError:bs,CanceledError:m0,isCancel:h0,CancelToken:p0,VERSION:g0,all:y0,Cancel:b0,isAxiosError:_0,spread:v0,toFormData:S0,AxiosHeaders:x0,HttpStatusCode:w0,formToJSON:R0,getAdapter:j0,mergeConfig:C0}=De;function a0(e){try{return JSON.stringify(e)}catch{return}}function s0(e){var t,r,n,o;return e instanceof bs&&e.code==="ERR_NETWORK"?"Failed to connect to the server. Please check your internet connection.":e instanceof bs&&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((o=e.response)==null?void 0:o.data)}`:e instanceof Error?e.message:`Unexpected error: ${a0(e)||e}`}const i0=e=>{const t=e.softTimeout||3e3,[r,n]=je.useState(!1);return je.useEffect(()=>{const o=setTimeout(()=>{n(!0)},t);return()=>clearTimeout(o)}),s.jsx(U.Stack,{width:"100%",height:"100%",alignItems:"center",justifyContent:"center",children:e.error?s.jsx(l0,{message:e.message,error:e.error}):s.jsxs(s.Fragment,{children:[s.jsx(U.CircularProgress,{sx:{marginBottom:"24px"}}),!!e.message&&s.jsx("div",{children:e.message}),s.jsx(U.Stack,{sx:{visibility:r?"visible":"hidden",marginTop:"1rem",color:"gray"},children:"This is taking longer than expected..."})]})})},l0=e=>{const t=s0(e.error),r=e.error instanceof Error?e.error.stack:null,n=U.useTheme();return s.jsxs(U.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:[`Error while: ${e.message} - ${t}`,s.jsx("br",{}),r&&s.jsx("pre",{children:r})]})},c0=tt.observer(e=>{var a,i,l,c,u;const{nova:t}=e,r=tt.useLocalObservable(()=>({joggingStore:null,loadingError:null}));async function n(){try{const d=await t.connectJogger(e.motionGroupId),m=await Qo.loadFor(d);Ar.runInAction(()=>{r.joggingStore=m})}catch(d){r.loadingError=d}}if(je.useEffect(()=>(n(),()=>{var d;(d=r.joggingStore)==null||d.dispose()}),[]),je.useEffect(()=>{if(!r.joggingStore)return;const{currentTab:d,selectedTcpId:m,selectedCoordSystemId:f,selectedDiscreteIncrement:_}=r.joggingStore;if(d.id!=="cartesian"&&d.id!=="joint")return;const g={tcpId:m,coordSystemId:f};_&&d.id==="cartesian"?r.joggingStore.jogger.setJoggingMode("increment",g):r.joggingStore.jogger.setJoggingMode(d.id,g)},[(a=r.joggingStore)==null?void 0:a.currentTab,(i=r.joggingStore)==null?void 0:i.selectedTcpId,(l=r.joggingStore)==null?void 0:l.selectedCoordSystemId,(c=r.joggingStore)==null?void 0:c.selectedDiscreteIncrement]),je.useEffect(()=>{async function d(){if(r.joggingStore)try{await t.api.controller.setDefaultMode(r.joggingStore.jogger.motionStream.controllerId,"MODE_CONTROL")}catch(m){console.error(m)}}d()},[(u=r.joggingStore)==null?void 0:u.jogger.motionStream.controllerId]),!r.joggingStore)return s.jsx(_s,{children:s.jsx(i0,{message:"Loading jogging",error:r.loadingError})});const{joggingStore:o}=r;return s.jsx(_s,{children:s.jsxs(U.Stack,{flexGrow:1,children:[s.jsx(U.Tabs,{value:o.tabIndex,onChange:o.onTabChange,children:o.tabs.map(d=>s.jsx(U.Tab,{label:d.label,id:`jogging-tab-${d.id}`,"aria-controls":`jogging-tab-${d.id}`},d.id))}),s.jsxs(U.Stack,{flexGrow:1,children:[o.currentTab.id==="cartesian"&&s.jsx(Em,{store:o}),o.currentTab.id==="joint"&&s.jsx(Am,{store:o})]})]})})});function _s({children:e}){return s.jsx(U.Stack,{sx:{maxWidth:"460px",minWidth:"350px",overflowY:"auto",position:"relative"},children:s.jsx(U.Paper,{sx:{minHeight:"90vh"},children:e})})}exports.JoggingCartesianAxisControl=Ao;exports.JoggingJointRotationControl=gi;exports.JoggingPanel=c0;exports.PresetEnvironment=Al;exports.Robot=El;exports.SafetyZonesRenderer=Ml;exports.SupportedRobot=js;exports.WandelscriptEditor=ll;exports.defaultAxisConfig=Tl;exports.defaultGetModel=Uo;exports.useAnimationFrame=ir;exports.useAutorun=ws;exports.useMounted=jn;exports.useReaction=Rs;
75
+ } });`:Mr(12,g?` (${g})`:"",JSON.stringify(y.main)));return fa(y,"light",R,n),fa(y,"dark",P,n),y.contrastText||(y.contrastText=h(y.main)),y},b={dark:eo,light:ha};return process.env.NODE_ENV!=="production"&&(b[t]||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),Qe(A({common:A({},Er),mode:t,primary:m({color:a,name:"primary"}),secondary:m({color:i,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:m({color:l,name:"error"}),warning:m({color:d,name:"warning"}),info:m({color:c,name:"info"}),success:m({color:u,name:"success"}),grey:Pu,contrastThreshold:r,getContrastText:h,augmentColor:m,tonalOffset:n},b[t]),o)}const Nu=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function $u(e){return Math.round(e*1e5)/1e5}const pa={textTransform:"uppercase"},ga='"Roboto", "Helvetica", "Arial", sans-serif';function Fu(e,t){const r=typeof t=="function"?t(e):t,{fontFamily:n=ga,fontSize:o=14,fontWeightLight:a=300,fontWeightRegular:i=400,fontWeightMedium:l=500,fontWeightBold:c=700,htmlFontSize:u=16,allVariants:d,pxToRem:h}=r,m=Ge(r,Nu);process.env.NODE_ENV!=="production"&&(typeof o!="number"&&console.error("MUI: `fontSize` is required to be a number."),typeof u!="number"&&console.error("MUI: `htmlFontSize` is required to be a number."));const b=o/14,_=h||(v=>`${v/u*b}rem`),y=(v,R,P,N,j)=>A({fontFamily:n,fontWeight:v,fontSize:_(R),lineHeight:P},n===ga?{letterSpacing:`${$u(N/R)}em`}:{},j,d),g={h1:y(a,96,1.167,-1.5),h2:y(a,60,1.2,-.5),h3:y(i,48,1.167,0),h4:y(i,34,1.235,.25),h5:y(i,24,1.334,0),h6:y(l,20,1.6,.15),subtitle1:y(i,16,1.75,.15),subtitle2:y(l,14,1.57,.1),body1:y(i,16,1.5,.15),body2:y(i,14,1.43,.15),button:y(l,14,1.75,.4,pa),caption:y(i,12,1.66,.4),overline:y(i,12,2.66,1,pa),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Qe(A({htmlFontSize:u,pxToRem:_,fontFamily:n,fontSize:o,fontWeightLight:a,fontWeightRegular:i,fontWeightMedium:l,fontWeightBold:c},g),m,{clone:!1})}const Du=.2,Uu=.14,Bu=.12;function ue(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${Du})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${Uu})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${Bu})`].join(",")}const Ju=["none",ue(0,2,1,-1,0,1,1,0,0,1,3,0),ue(0,3,1,-2,0,2,2,0,0,1,5,0),ue(0,3,3,-2,0,3,4,0,0,1,8,0),ue(0,2,4,-1,0,4,5,0,0,1,10,0),ue(0,3,5,-1,0,5,8,0,0,1,14,0),ue(0,3,5,-1,0,6,10,0,0,1,18,0),ue(0,4,5,-2,0,7,10,1,0,2,16,1),ue(0,5,5,-3,0,8,10,1,0,3,14,2),ue(0,5,6,-3,0,9,12,1,0,3,16,2),ue(0,6,6,-3,0,10,14,1,0,4,18,3),ue(0,6,7,-4,0,11,15,1,0,4,20,3),ue(0,7,8,-4,0,12,17,2,0,5,22,4),ue(0,7,8,-4,0,13,19,2,0,5,24,4),ue(0,7,9,-4,0,14,21,2,0,5,26,4),ue(0,8,9,-5,0,15,22,2,0,6,28,5),ue(0,8,10,-5,0,16,24,2,0,6,30,5),ue(0,8,11,-5,0,17,26,2,0,6,32,5),ue(0,9,11,-5,0,18,28,2,0,7,34,6),ue(0,9,12,-6,0,19,29,2,0,7,36,6),ue(0,10,13,-6,0,20,31,3,0,8,38,7),ue(0,10,13,-6,0,21,33,3,0,8,40,7),ue(0,10,14,-6,0,22,35,3,0,8,42,7),ue(0,11,14,-7,0,23,36,3,0,9,44,8),ue(0,11,15,-7,0,24,38,3,0,9,46,8)],Vu=["duration","easing","delay"],Gu={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)"},zu={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function ya(e){return`${Math.round(e)}ms`}function Wu(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function Hu(e){const t=A({},Gu,e.easing),r=A({},zu,e.duration);return A({getAutoHeightDuration:Wu,create:(o=["all"],a={})=>{const{duration:i=r.standard,easing:l=t.easeInOut,delay:c=0}=a,u=Ge(a,Vu);if(process.env.NODE_ENV!=="production"){const d=m=>typeof m=="string",h=m=>!isNaN(parseFloat(m));!d(o)&&!Array.isArray(o)&&console.error('MUI: Argument "props" must be a string or Array.'),!h(i)&&!d(i)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${i}.`),d(l)||console.error('MUI: Argument "easing" must be a string.'),!h(c)&&!d(c)&&console.error('MUI: Argument "delay" must be a number or a string.'),typeof a!="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(u).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(u).join(",")}].`)}return(Array.isArray(o)?o:[o]).map(d=>`${d} ${typeof i=="string"?i:ya(i)} ${l} ${typeof c=="string"?c:ya(c)}`).join(",")}},e,{easing:t,duration:r})}const Ku={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},Xu=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function $s(e={},...t){const{mixins:r={},palette:n={},transitions:o={},typography:a={}}=e,i=Ge(e,Xu);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.":Mr(18));const l=Iu(n),c=Br(e);let u=Qe(c,{mixins:fu(c.breakpoints,r),palette:l,shadows:Ju.slice(),typography:Fu(l,a),transitions:Hu(o),zIndex:A({},Ku)});if(u=Qe(u,i),u=t.reduce((d,h)=>Qe(d,h),u),process.env.NODE_ENV!=="production"){const d=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],h=(m,b)=>{let _;for(_ in m){const y=m[_];if(d.indexOf(_)!==-1&&Object.keys(y).length>0){if(process.env.NODE_ENV!=="production"){const g=In("",_);console.error([`MUI: The \`${b}\` component increases the CSS specificity of the \`${_}\` internal state.`,"You can not override it like this: ",JSON.stringify(m,null,2),"",`Instead, you need to use the '&.${g}' syntax:`,JSON.stringify({root:{[`&.${g}`]:y}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
77
+ `))}m[_]={}}}};Object.keys(u.components).forEach(m=>{const b=u.components[m].styleOverrides;b&&m.indexOf("Mui")===0&&h(b,m)})}return u.unstable_sxConfig=A({},Dr,i==null?void 0:i.unstable_sxConfig),u.unstable_sx=function(h){return Ur({sx:h,theme:this})},u}const qu=$s();var Jr={},to={exports:{}},_a;function Yu(){return _a||(_a=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 o=arguments[n];for(var a in o)({}).hasOwnProperty.call(o,a)&&(r[a]=o[a])}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}(to)),to.exports}var ro={exports:{}},ba;function Zu(){return ba||(ba=1,function(e){function t(r,n){if(r==null)return{};var o={};for(var a in r)if({}.hasOwnProperty.call(r,a)){if(n.includes(a))continue;o[a]=r[a]}return o}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(ro)),ro.exports}const Qu=Ot(yl),ed=Ot(_l),td=Ot(Rl),rd=Ot(Pc),nd=Ot(mc),od=Ot(bc);var cr=Os;Object.defineProperty(Jr,"__esModule",{value:!0});var ad=Jr.default=bd;Jr.shouldForwardProp=cn;Jr.systemDefaultTheme=void 0;var Xe=cr(Yu()),xo=cr(Zu()),xa=fd(Qu),sd=ed,id=cr(td),ld=cr(rd),cd=cr(nd),ud=cr(od);const dd=["ownerState"],md=["variants"],hd=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function Fs(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(Fs=function(n){return n?r:t})(e)}function fd(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=Fs(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(a!=="default"&&Object.prototype.hasOwnProperty.call(e,a)){var i=o?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(n,a,i):n[a]=e[a]}return n.default=e,r&&r.set(e,n),n}function pd(e){return Object.keys(e).length===0}function gd(e){return typeof e=="string"&&e.charCodeAt(0)>96}function cn(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const yd=Jr.systemDefaultTheme=(0,cd.default)(),Sa=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function qr({defaultTheme:e,theme:t,themeId:r}){return pd(t)?e:t[r]||t}function _d(e){return e?(t,r)=>r[e]:null}function un(e,t){let{ownerState:r}=t,n=(0,xo.default)(t,dd);const o=typeof e=="function"?e((0,Xe.default)({ownerState:r},n)):e;if(Array.isArray(o))return o.flatMap(a=>un(a,(0,Xe.default)({ownerState:r},n)));if(o&&typeof o=="object"&&Array.isArray(o.variants)){const{variants:a=[]}=o;let l=(0,xo.default)(o,md);return a.forEach(c=>{let u=!0;typeof c.props=="function"?u=c.props((0,Xe.default)({ownerState:r},n,r)):Object.keys(c.props).forEach(d=>{(r==null?void 0:r[d])!==c.props[d]&&n[d]!==c.props[d]&&(u=!1)}),u&&(Array.isArray(l)||(l=[l]),l.push(typeof c.style=="function"?c.style((0,Xe.default)({ownerState:r},n,r)):c.style))}),l}return o}function bd(e={}){const{themeId:t,defaultTheme:r=yd,rootShouldForwardProp:n=cn,slotShouldForwardProp:o=cn}=e,a=i=>(0,ud.default)((0,Xe.default)({},i,{theme:qr((0,Xe.default)({},i,{defaultTheme:r,themeId:t}))}));return a.__mui_systemSx=!0,(i,l={})=>{(0,xa.internal_processStyles)(i,j=>j.filter(I=>!(I!=null&&I.__mui_systemSx)));const{name:c,slot:u,skipVariantsResolver:d,skipSx:h,overridesResolver:m=_d(Sa(u))}=l,b=(0,xo.default)(l,hd),_=d!==void 0?d:u&&u!=="Root"&&u!=="root"||!1,y=h||!1;let g;process.env.NODE_ENV!=="production"&&c&&(g=`${c}-${Sa(u||"Root")}`);let v=cn;u==="Root"||u==="root"?v=n:u?v=o:gd(i)&&(v=void 0);const R=(0,xa.default)(i,(0,Xe.default)({shouldForwardProp:v,label:g},b)),P=j=>typeof j=="function"&&j.__emotion_real!==j||(0,sd.isPlainObject)(j)?I=>un(j,(0,Xe.default)({},I,{theme:qr({theme:I.theme,defaultTheme:r,themeId:t})})):j,N=(j,...I)=>{let O=P(j);const ne=I?I.map(P):[];c&&m&&ne.push(D=>{const K=qr((0,Xe.default)({},D,{defaultTheme:r,themeId:t}));if(!K.components||!K.components[c]||!K.components[c].styleOverrides)return null;const G=K.components[c].styleOverrides,X={};return Object.entries(G).forEach(([H,ve])=>{X[H]=un(ve,(0,Xe.default)({},D,{theme:K}))}),m(D,X)}),c&&!_&&ne.push(D=>{var K;const G=qr((0,Xe.default)({},D,{defaultTheme:r,themeId:t})),X=G==null||(K=G.components)==null||(K=K[c])==null?void 0:K.variants;return un({variants:X},(0,Xe.default)({},D,{theme:G}))}),y||ne.push(a);const de=ne.length-I.length;if(Array.isArray(j)&&de>0){const D=new Array(de).fill("");O=[...j,...D],O.raw=[...j.raw,...D]}const ce=R(O,...ne);if(process.env.NODE_ENV!=="production"){let D;c&&(D=`${c}${(0,id.default)(u||"")}`),D===void 0&&(D=`Styled(${(0,ld.default)(i)})`),ce.displayName=D}return i.muiName&&(ce.muiName=i.muiName),ce};return R.withConfig&&(N.withConfig=R.withConfig),N}}function Bo(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const xd=e=>Bo(e)&&e!=="classes",kt=ad({themeId:Di,defaultTheme:qu,rootShouldForwardProp:xd}),dt={white:"#FFFFFF",midnightblue:"#001337",lightbuttonblue:"#47D3FF",midnightgray:"#DDE0E4",midnightgray500:"#828B9B",skyblue500:"#06B8F1",skyblue600:"#0094CE",darkishblue:"#262F42",darkestblue:"#101629",grayishblue:"#505968",darkgrayishblue:"#363c4b",scaryred:"#FF0E65",tealGreen:"#1AC0B2",magenta:"#EA3785"},Sd={mode:"dark",colors:{primary:dt.skyblue500,textDefault:dt.white,textSubtle:dt.midnightgray,background:{default:dt.darkishblue,panel:dt.darkestblue}}},vd={mode:"light",colors:{primary:dt.skyblue500,textDefault:dt.darkishblue,textSubtle:dt.midnightgray,background:{default:dt.skyblue500,panel:dt.white}}};function wd(e={}){const t=e.mode==="light"?vd:Sd;return bt.defaultsDeep(e,t)}function Rd(e){const t=e,r=t.mode==="dark";return $s({palette:{mode:t.mode,primary:{main:t.colors.primary},background:{default:t.colors.background.default,paper:t.colors.background.panel}},typography:{allVariants:{color:t.colors.textDefault}},components:{MuiSelect:{styleOverrides:{root:{backgroundColor:r?"#505968":void 0,borderRadius:"10px",color:"currentColor","& > div":{padding:"4px 16px"},"& fieldset":{border:r?"none":void 0}}}},MuiChip:{styleOverrides:{root:{backgroundColor:r?"#505968":void 0,borderRadius:"10px",color:"currentColor"}}},MuiToggleButtonGroup:{styleOverrides:{root:{"& > button":{borderRadius:"8px",textTransform:"none",paddingTop:"4px",paddingBottom:"4px",width:"100%",borderWidth:0,backgroundColor:r?"#3d4455":void 0,color:r?"rgba(255, 255, 255, 0.8)":void 0,"&.Mui-selected":r?{color:"white",backgroundColor:"#505968"}:void 0}}}},MuiTabs:{styleOverrides:{root:{backgroundColor:r?"#101629":void 0,minHeight:"42px"}}},MuiTab:{styleOverrides:{root:{minHeight:"42px",textTransform:"none","&.Mui-selected":r?{color:"white",backgroundColor:"#404554"}:void 0}}}},nova:t})}const jd={"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"},Cd={"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"},Pd={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 yn{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||Pd,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,o){return o&&!this.debug?null:(typeof t[0]=="string"&&(t[0]=`${n}${this.prefix} ${t[0]}`),this.logger[r](t))}create(t){return new yn(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new yn(this.logger,t)}}var mt=new yn;class $n{constructor(){this.observers={}}on(t,r){return t.split(" ").forEach(n=>{this.observers[n]||(this.observers[n]=new Map);const o=this.observers[n].get(r)||0;this.observers[n].set(r,o+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),o=1;o<r;o++)n[o-1]=arguments[o];this.observers[t]&&Array.from(this.observers[t].entries()).forEach(i=>{let[l,c]=i;for(let u=0;u<c;u++)l(...n)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(i=>{let[l,c]=i;for(let u=0;u<c;u++)l.apply(l,[t,...n])})}}const jr=()=>{let e,t;const r=new Promise((n,o)=>{e=n,t=o});return r.resolve=e,r.reject=t,r},va=e=>e==null?"":""+e,Ad=(e,t,r)=>{e.forEach(n=>{t[n]&&(r[n]=t[n])})},Ld=/###/g,wa=e=>e&&e.indexOf("###")>-1?e.replace(Ld,"."):e,Ra=e=>!e||typeof e=="string",Lr=(e,t,r)=>{const n=typeof t!="string"?t:t.split(".");let o=0;for(;o<n.length-1;){if(Ra(e))return{};const a=wa(n[o]);!e[a]&&r&&(e[a]=new r),Object.prototype.hasOwnProperty.call(e,a)?e=e[a]:e={},++o}return Ra(e)?{}:{obj:e,k:wa(n[o])}},ja=(e,t,r)=>{const{obj:n,k:o}=Lr(e,t,Object);if(n!==void 0||t.length===1){n[o]=r;return}let a=t[t.length-1],i=t.slice(0,t.length-1),l=Lr(e,i,Object);for(;l.obj===void 0&&i.length;)a=`${i[i.length-1]}.${a}`,i=i.slice(0,i.length-1),l=Lr(e,i,Object),l&&l.obj&&typeof l.obj[`${l.k}.${a}`]<"u"&&(l.obj=void 0);l.obj[`${l.k}.${a}`]=r},Od=(e,t,r,n)=>{const{obj:o,k:a}=Lr(e,t,Object);o[a]=o[a]||[],o[a].push(r)},_n=(e,t)=>{const{obj:r,k:n}=Lr(e,t);if(r)return r[n]},Md=(e,t,r)=>{const n=_n(e,r);return n!==void 0?n:_n(t,r)},Ds=(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]):Ds(e[n],t[n],r):e[n]=t[n]);return e},er=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var kd={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};const Td=e=>typeof e=="string"?e.replace(/[&<>"'\/]/g,t=>kd[t]):e;class Ed{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 Id=[" ",",","?","!",";"],Nd=new Ed(20),$d=(e,t,r)=>{t=t||"",r=r||"";const n=Id.filter(i=>t.indexOf(i)<0&&r.indexOf(i)<0);if(n.length===0)return!0;const o=Nd.getRegExp(`(${n.map(i=>i==="?"?"\\?":i).join("|")})`);let a=!o.test(e);if(!a){const i=e.indexOf(r);i>0&&!o.test(e.substring(0,i))&&(a=!0)}return a},So=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 o=e;for(let a=0;a<n.length;){if(!o||typeof o!="object")return;let i,l="";for(let c=a;c<n.length;++c)if(c!==a&&(l+=r),l+=n[c],i=o[l],i!==void 0){if(["string","number","boolean"].indexOf(typeof i)>-1&&c<n.length-1)continue;a+=c-a+1;break}o=i}return o},bn=e=>e&&e.indexOf("_")>0?e.replace("_","-"):e;class Ca extends $n{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 o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const a=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,i=o.ignoreJSONStructure!==void 0?o.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"&&a?l.push(...n.split(a)):l.push(n)));const c=_n(this.data,l);return!c&&!r&&!n&&t.indexOf(".")>-1&&(t=l[0],r=l[1],n=l.slice(2).join(".")),c||!i||typeof n!="string"?c:So(this.data&&this.data[t]&&this.data[t][r],n,a)}addResource(t,r,n,o){let a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const i=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator;let l=[t,r];n&&(l=l.concat(i?n.split(i):n)),t.indexOf(".")>-1&&(l=t.split("."),o=r,r=l[1]),this.addNamespaces(r),ja(this.data,l,o),a.silent||this.emit("added",t,r,n,o)}addResources(t,r,n){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const a in n)(typeof n[a]=="string"||Array.isArray(n[a]))&&this.addResource(t,r,a,n[a],{silent:!0});o.silent||this.emit("added",t,r,n)}addResourceBundle(t,r,n,o,a){let i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},l=[t,r];t.indexOf(".")>-1&&(l=t.split("."),o=n,n=r,r=l[1]),this.addNamespaces(r);let c=_n(this.data,l)||{};i.skipCopy||(n=JSON.parse(JSON.stringify(n))),o?Ds(c,n,a):c={...c,...n},ja(this.data,l,c),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(o=>r[o]&&Object.keys(r[o]).length>0)}toJSON(){return this.data}}var Us={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,r,n,o){return e.forEach(a=>{this.processors[a]&&(t=this.processors[a].process(t,r,n,o))}),t}};const Pa={};class xn extends $n{constructor(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),Ad(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=r,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=mt.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 o=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator;let a=r.ns||this.options.defaultNS||[];const i=n&&t.indexOf(n)>-1,l=!this.options.userDefinedKeySeparator&&!r.keySeparator&&!this.options.userDefinedNsSeparator&&!r.nsSeparator&&!$d(t,n,o);if(i&&!l){const c=t.match(this.interpolator.nestingRegexp);if(c&&c.length>0)return{key:t,namespaces:a};const u=t.split(n);(n!==o||n===o&&this.options.ns.indexOf(u[0])>-1)&&(a=u.shift()),t=u.join(o)}return typeof a=="string"&&(a=[a]),{key:t,namespaces:a}}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 o=r.returnDetails!==void 0?r.returnDetails:this.options.returnDetails,a=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator,{key:i,namespaces:l}=this.extractFromKey(t[t.length-1],r),c=l[l.length-1],u=r.lng||this.language,d=r.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(u&&u.toLowerCase()==="cimode"){if(d){const N=r.nsSeparator||this.options.nsSeparator;return o?{res:`${c}${N}${i}`,usedKey:i,exactUsedKey:i,usedLng:u,usedNS:c,usedParams:this.getUsedParamsDetails(r)}:`${c}${N}${i}`}return o?{res:i,usedKey:i,exactUsedKey:i,usedLng:u,usedNS:c,usedParams:this.getUsedParamsDetails(r)}:i}const h=this.resolve(t,r);let m=h&&h.res;const b=h&&h.usedKey||i,_=h&&h.exactUsedKey||i,y=Object.prototype.toString.apply(m),g=["[object Number]","[object Function]","[object RegExp]"],v=r.joinArrays!==void 0?r.joinArrays:this.options.joinArrays,R=!this.i18nFormat||this.i18nFormat.handleAsObject;if(R&&m&&(typeof m!="string"&&typeof m!="boolean"&&typeof m!="number")&&g.indexOf(y)<0&&!(typeof v=="string"&&Array.isArray(m))){if(!r.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const N=this.options.returnedObjectHandler?this.options.returnedObjectHandler(b,m,{...r,ns:l}):`key '${i} (${this.language})' returned an object instead of string.`;return o?(h.res=N,h.usedParams=this.getUsedParamsDetails(r),h):N}if(a){const N=Array.isArray(m),j=N?[]:{},I=N?_:b;for(const O in m)if(Object.prototype.hasOwnProperty.call(m,O)){const ne=`${I}${a}${O}`;j[O]=this.translate(ne,{...r,joinArrays:!1,ns:l}),j[O]===ne&&(j[O]=m[O])}m=j}}else if(R&&typeof v=="string"&&Array.isArray(m))m=m.join(v),m&&(m=this.extendTranslation(m,t,r,n));else{let N=!1,j=!1;const I=r.count!==void 0&&typeof r.count!="string",O=xn.hasDefaultValue(r),ne=I?this.pluralResolver.getSuffix(u,r.count,r):"",de=r.ordinal&&I?this.pluralResolver.getSuffix(u,r.count,{ordinal:!1}):"",ce=I&&!r.ordinal&&r.count===0&&this.pluralResolver.shouldUseIntlApi(),D=ce&&r[`defaultValue${this.options.pluralSeparator}zero`]||r[`defaultValue${ne}`]||r[`defaultValue${de}`]||r.defaultValue;!this.isValidLookup(m)&&O&&(N=!0,m=D),this.isValidLookup(m)||(j=!0,m=i);const G=(r.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&j?void 0:m,X=O&&D!==m&&this.options.updateMissing;if(j||N||X){if(this.logger.log(X?"updateKey":"missingKey",u,c,i,X?D:m),a){const Y=this.resolve(i,{...r,keySeparator:!1});Y&&Y.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 H=[];const ve=this.languageUtils.getFallbackCodes(this.options.fallbackLng,r.lng||this.language);if(this.options.saveMissingTo==="fallback"&&ve&&ve[0])for(let Y=0;Y<ve.length;Y++)H.push(ve[Y]);else this.options.saveMissingTo==="all"?H=this.languageUtils.toResolveHierarchy(r.lng||this.language):H.push(r.lng||this.language);const le=(Y,je,Oe)=>{const rt=O&&Oe!==m?Oe:G;this.options.missingKeyHandler?this.options.missingKeyHandler(Y,c,je,rt,X,r):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(Y,c,je,rt,X,r),this.emit("missingKey",Y,c,je,m)};this.options.saveMissing&&(this.options.saveMissingPlurals&&I?H.forEach(Y=>{const je=this.pluralResolver.getSuffixes(Y,r);ce&&r[`defaultValue${this.options.pluralSeparator}zero`]&&je.indexOf(`${this.options.pluralSeparator}zero`)<0&&je.push(`${this.options.pluralSeparator}zero`),je.forEach(Oe=>{le([Y],i+Oe,r[`defaultValue${Oe}`]||D)})}):le(H,i,D))}m=this.extendTranslation(m,t,r,h,n),j&&m===i&&this.options.appendNamespaceToMissingKey&&(m=`${c}:${i}`),(j||N)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?m=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${c}:${i}`:i,N?m:void 0):m=this.options.parseMissingKeyHandler(m))}return o?(h.res=m,h.usedParams=this.getUsedParamsDetails(r),h):m}extendTranslation(t,r,n,o,a){var i=this;if(this.i18nFormat&&this.i18nFormat.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...n},n.lng||this.language||o.usedLng,o.usedNS,o.usedKey,{resolved:o});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init({...n,interpolation:{...this.options.interpolation,...n.interpolation}});const u=typeof t=="string"&&(n&&n.interpolation&&n.interpolation.skipOnVariables!==void 0?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let d;if(u){const m=t.match(this.interpolator.nestingRegexp);d=m&&m.length}let h=n.replace&&typeof n.replace!="string"?n.replace:n;if(this.options.interpolation.defaultVariables&&(h={...this.options.interpolation.defaultVariables,...h}),t=this.interpolator.interpolate(t,h,n.lng||this.language||o.usedLng,n),u){const m=t.match(this.interpolator.nestingRegexp),b=m&&m.length;d<b&&(n.nest=!1)}!n.lng&&this.options.compatibilityAPI!=="v1"&&o&&o.res&&(n.lng=this.language||o.usedLng),n.nest!==!1&&(t=this.interpolator.nest(t,function(){for(var m=arguments.length,b=new Array(m),_=0;_<m;_++)b[_]=arguments[_];return a&&a[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,c=typeof l=="string"?[l]:l;return t!=null&&c&&c.length&&n.applyPostProcessor!==!1&&(t=Us.handle(c,t,r,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...o,usedParams:this.getUsedParamsDetails(n)},...n}:n,this)),t}resolve(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n,o,a,i,l;return typeof t=="string"&&(t=[t]),t.forEach(c=>{if(this.isValidLookup(n))return;const u=this.extractFromKey(c,r),d=u.key;o=d;let h=u.namespaces;this.options.fallbackNS&&(h=h.concat(this.options.fallbackNS));const m=r.count!==void 0&&typeof r.count!="string",b=m&&!r.ordinal&&r.count===0&&this.pluralResolver.shouldUseIntlApi(),_=r.context!==void 0&&(typeof r.context=="string"||typeof r.context=="number")&&r.context!=="",y=r.lngs?r.lngs:this.languageUtils.toResolveHierarchy(r.lng||this.language,r.fallbackLng);h.forEach(g=>{this.isValidLookup(n)||(l=g,!Pa[`${y[0]}-${g}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(l)&&(Pa[`${y[0]}-${g}`]=!0,this.logger.warn(`key "${o}" for languages "${y.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!!!")),y.forEach(v=>{if(this.isValidLookup(n))return;i=v;const R=[d];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(R,d,v,g,r);else{let N;m&&(N=this.pluralResolver.getSuffix(v,r.count,r));const j=`${this.options.pluralSeparator}zero`,I=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(m&&(R.push(d+N),r.ordinal&&N.indexOf(I)===0&&R.push(d+N.replace(I,this.options.pluralSeparator)),b&&R.push(d+j)),_){const O=`${d}${this.options.contextSeparator}${r.context}`;R.push(O),m&&(R.push(O+N),r.ordinal&&N.indexOf(I)===0&&R.push(O+N.replace(I,this.options.pluralSeparator)),b&&R.push(O+j))}}let P;for(;P=R.pop();)this.isValidLookup(n)||(a=P,n=this.getResource(v,g,P,r))}))})}),{res:n,usedKey:o,exactUsedKey:a,usedLng:i,usedNS:l}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,r,n){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(t,r,n,o):this.resourceStore.getResource(t,r,n,o)}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 o=n?t.replace:t;if(n&&typeof t.count<"u"&&(o.count=t.count),this.options.interpolation.defaultVariables&&(o={...this.options.interpolation.defaultVariables,...o}),!n){o={...o};for(const a of r)delete o[a]}return o}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 no=e=>e.charAt(0).toUpperCase()+e.slice(1);class Aa{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=mt.create("languageUtils")}getScriptPartFromCode(t){if(t=bn(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=bn(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(o=>o.toLowerCase()):n.length===2?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),r.indexOf(n[1].toLowerCase())>-1&&(n[1]=no(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]=no(n[1].toLowerCase())),r.indexOf(n[2].toLowerCase())>-1&&(n[2]=no(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 o=this.formatLanguageCode(n);(!this.options.supportedLngs||this.isSupportedCode(o))&&(r=o)}),!r&&this.options.supportedLngs&&t.forEach(n=>{if(r)return;const o=this.getLanguagePartFromCode(n);if(this.isSupportedCode(o))return r=o;r=this.options.supportedLngs.find(a=>{if(a===o)return a;if(!(a.indexOf("-")<0&&o.indexOf("-")<0)&&(a.indexOf("-")>0&&o.indexOf("-")<0&&a.substring(0,a.indexOf("-"))===o||a.indexOf(o)===0&&o.length>1))return a})}),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),o=[],a=i=>{i&&(this.isSupportedCode(i)?o.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"&&a(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&a(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&a(this.getLanguagePartFromCode(t))):typeof t=="string"&&a(this.formatLanguageCode(t)),n.forEach(i=>{o.indexOf(i)<0&&a(this.formatLanguageCode(i))}),o}}let Fd=[{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}],Dd={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 Ud=["v1","v2","v3"],Bd=["v4"],La={zero:0,one:1,two:2,few:3,many:4,other:5},Jd=()=>{const e={};return Fd.forEach(t=>{t.lngs.forEach(r=>{e[r]={numbers:t.nr,plurals:Dd[t.fc]}})}),e};class Vd{constructor(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=t,this.options=r,this.logger=mt.create("pluralResolver"),(!this.options.compatibilityJSON||Bd.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=Jd()}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(bn(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(o=>`${r}${o}`)}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((o,a)=>La[o]-La[a]).map(o=>`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${o}`):n.numbers.map(o=>this.getSuffix(t,o,r)):[]}getSuffix(t,r){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const o=this.getRule(t,n);return o?this.shouldUseIntlApi()?`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${o.select(r)}`:this.getSuffixRetroCompatible(o,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 o=t.numbers[n];this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1&&(o===2?o="plural":o===1&&(o=""));const a=()=>this.options.prepend&&o.toString()?this.options.prepend+o.toString():o.toString();return this.options.compatibilityJSON==="v1"?o===1?"":typeof o=="number"?`_plural_${o.toString()}`:a():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1?a():this.options.prepend&&n.toString()?this.options.prepend+n.toString():n.toString()}shouldUseIntlApi(){return!Ud.includes(this.options.compatibilityJSON)}}const Oa=function(e,t,r){let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,a=Md(e,t,r);return!a&&o&&typeof r=="string"&&(a=So(e,r,n),a===void 0&&(a=So(t,r,n))),a},oo=e=>e.replace(/\$/g,"$$$$");class Gd{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=mt.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:o,prefix:a,prefixEscaped:i,suffix:l,suffixEscaped:c,formatSeparator:u,unescapeSuffix:d,unescapePrefix:h,nestingPrefix:m,nestingPrefixEscaped:b,nestingSuffix:_,nestingSuffixEscaped:y,nestingOptionsSeparator:g,maxReplaces:v,alwaysFormat:R}=t.interpolation;this.escape=r!==void 0?r:Td,this.escapeValue=n!==void 0?n:!0,this.useRawValueToEscape=o!==void 0?o:!1,this.prefix=a?er(a):i||"{{",this.suffix=l?er(l):c||"}}",this.formatSeparator=u||",",this.unescapePrefix=d?"":h||"-",this.unescapeSuffix=this.unescapePrefix?"":d||"",this.nestingPrefix=m?er(m):b||er("$t("),this.nestingSuffix=_?er(_):y||er(")"),this.nestingOptionsSeparator=g||",",this.maxReplaces=v||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,o){let a,i,l;const c=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},u=b=>{if(b.indexOf(this.formatSeparator)<0){const v=Oa(r,c,b,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(v,void 0,n,{...o,...r,interpolationkey:b}):v}const _=b.split(this.formatSeparator),y=_.shift().trim(),g=_.join(this.formatSeparator).trim();return this.format(Oa(r,c,y,this.options.keySeparator,this.options.ignoreJSONStructure),g,n,{...o,...r,interpolationkey:y})};this.resetRegExp();const d=o&&o.missingInterpolationHandler||this.options.missingInterpolationHandler,h=o&&o.interpolation&&o.interpolation.skipOnVariables!==void 0?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:b=>oo(b)},{regex:this.regexp,safeValue:b=>this.escapeValue?oo(this.escape(b)):oo(b)}].forEach(b=>{for(l=0;a=b.regex.exec(t);){const _=a[1].trim();if(i=u(_),i===void 0)if(typeof d=="function"){const g=d(t,a,o);i=typeof g=="string"?g:""}else if(o&&Object.prototype.hasOwnProperty.call(o,_))i="";else if(h){i=a[0];continue}else this.logger.warn(`missed to pass in variable ${_} for interpolating ${t}`),i="";else typeof i!="string"&&!this.useRawValueToEscape&&(i=va(i));const y=b.safeValue(i);if(t=t.replace(a[0],y),h?(b.regex.lastIndex+=i.length,b.regex.lastIndex-=a[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]:{},o,a,i;const l=(c,u)=>{const d=this.nestingOptionsSeparator;if(c.indexOf(d)<0)return c;const h=c.split(new RegExp(`${d}[ ]*{`));let m=`{${h[1]}`;c=h[0],m=this.interpolate(m,i);const b=m.match(/'/g),_=m.match(/"/g);(b&&b.length%2===0&&!_||_.length%2!==0)&&(m=m.replace(/'/g,'"'));try{i=JSON.parse(m),u&&(i={...u,...i})}catch(y){return this.logger.warn(`failed parsing options string in nesting for key ${c}`,y),`${c}${d}${m}`}return i.defaultValue&&i.defaultValue.indexOf(this.prefix)>-1&&delete i.defaultValue,c};for(;o=this.nestingRegexp.exec(t);){let c=[];i={...n},i=i.replace&&typeof i.replace!="string"?i.replace:i,i.applyPostProcessor=!1,delete i.defaultValue;let u=!1;if(o[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(o[1])){const d=o[1].split(this.formatSeparator).map(h=>h.trim());o[1]=d.shift(),c=d,u=!0}if(a=r(l.call(this,o[1].trim(),i),i),a&&o[0]===t&&typeof a!="string")return a;typeof a!="string"&&(a=va(a)),a||(this.logger.warn(`missed to resolve ${o[1]} for nesting ${t}`),a=""),u&&(a=c.reduce((d,h)=>this.format(d,h,n.lng,{...n,interpolationkey:o[1].trim()}),a.trim())),t=t.replace(o[0],a),this.regexp.lastIndex=0}return t}}const zd=e=>{let t=e.toLowerCase().trim();const r={};if(e.indexOf("(")>-1){const n=e.split("(");t=n[0].toLowerCase().trim();const o=n[1].substring(0,n[1].length-1);t==="currency"&&o.indexOf(":")<0?r.currency||(r.currency=o.trim()):t==="relativetime"&&o.indexOf(":")<0?r.range||(r.range=o.trim()):o.split(";").forEach(i=>{if(i){const[l,...c]=i.split(":"),u=c.join(":").trim().replace(/^'+|'+$/g,""),d=l.trim();r[d]||(r[d]=u),u==="false"&&(r[d]=!1),u==="true"&&(r[d]=!0),isNaN(u)||(r[d]=parseInt(u,10))}})}return{formatName:t,formatOptions:r}},tr=e=>{const t={};return(r,n,o)=>{let a=o;o&&o.interpolationkey&&o.formatParams&&o.formatParams[o.interpolationkey]&&o[o.interpolationkey]&&(a={formatParams:{[o.interpolationkey]:o.formatParams[o.interpolationkey]},interpolationKey:o.interpolationkey});const i=n+JSON.stringify(a);let l=t[i];return l||(l=e(bn(n),o),t[i]=l),l(r)}};class Wd{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=mt.create("formatter"),this.options=t,this.formats={number:tr((r,n)=>{const o=new Intl.NumberFormat(r,{...n});return a=>o.format(a)}),currency:tr((r,n)=>{const o=new Intl.NumberFormat(r,{...n,style:"currency"});return a=>o.format(a)}),datetime:tr((r,n)=>{const o=new Intl.DateTimeFormat(r,{...n});return a=>o.format(a)}),relativetime:tr((r,n)=>{const o=new Intl.RelativeTimeFormat(r,{...n});return a=>o.format(a,n.range||"day")}),list:tr((r,n)=>{const o=new Intl.ListFormat(r,{...n});return a=>o.format(a)})},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()]=tr(r)}format(t,r,n){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const a=r.split(this.formatSeparator);if(a.length>1&&a[0].indexOf("(")>1&&a[0].indexOf(")")<0&&a.find(l=>l.indexOf(")")>-1)){const l=a.findIndex(c=>c.indexOf(")")>-1);a[0]=[a[0],...a.splice(1,l)].join(this.formatSeparator)}return a.reduce((l,c)=>{const{formatName:u,formatOptions:d}=zd(c);if(this.formats[u]){let h=l;try{const m=o&&o.formatParams&&o.formatParams[o.interpolationkey]||{},b=m.locale||m.lng||o.locale||o.lng||n;h=this.formats[u](l,b,{...d,...o,...m})}catch(m){this.logger.warn(m)}return h}else this.logger.warn(`there was no format function for ${u}`);return l},t)}}const Hd=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)};class Kd extends $n{constructor(t,r,n){let o=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=o,this.logger=mt.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=o.maxParallelReads||10,this.readingCalls=0,this.maxRetries=o.maxRetries>=0?o.maxRetries:5,this.retryTimeout=o.retryTimeout>=1?o.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(n,o.backend,o)}queueLoad(t,r,n,o){const a={},i={},l={},c={};return t.forEach(u=>{let d=!0;r.forEach(h=>{const m=`${u}|${h}`;!n.reload&&this.store.hasResourceBundle(u,h)?this.state[m]=2:this.state[m]<0||(this.state[m]===1?i[m]===void 0&&(i[m]=!0):(this.state[m]=1,d=!1,i[m]===void 0&&(i[m]=!0),a[m]===void 0&&(a[m]=!0),c[h]===void 0&&(c[h]=!0)))}),d||(l[u]=!0)}),(Object.keys(a).length||Object.keys(i).length)&&this.queue.push({pending:i,pendingCount:Object.keys(i).length,loaded:{},errors:[],callback:o}),{toLoad:Object.keys(a),pending:Object.keys(i),toLoadLanguages:Object.keys(l),toLoadNamespaces:Object.keys(c)}}loaded(t,r,n){const o=t.split("|"),a=o[0],i=o[1];r&&this.emit("failedLoading",a,i,r),n&&this.store.addResourceBundle(a,i,n,void 0,void 0,{skipCopy:!0}),this.state[t]=r?-1:2;const l={};this.queue.forEach(c=>{Od(c.loaded,[a],i),Hd(c,t),r&&c.errors.push(r),c.pendingCount===0&&!c.done&&(Object.keys(c.loaded).forEach(u=>{l[u]||(l[u]={});const d=c.loaded[u];d.length&&d.forEach(h=>{l[u][h]===void 0&&(l[u][h]=!0)})}),c.done=!0,c.errors.length?c.callback(c.errors):c.callback())}),this.emit("loaded",l),this.queue=this.queue.filter(c=>!c.done)}read(t,r,n){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,a=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:o,wait:a,callback:i});return}this.readingCalls++;const l=(u,d)=>{if(this.readingCalls--,this.waitingReads.length>0){const h=this.waitingReads.shift();this.read(h.lng,h.ns,h.fcName,h.tried,h.wait,h.callback)}if(u&&d&&o<this.maxRetries){setTimeout(()=>{this.read.call(this,t,r,n,o+1,a*2,i)},a);return}i(u,d)},c=this.backend[n].bind(this.backend);if(c.length===2){try{const u=c(t,r);u&&typeof u.then=="function"?u.then(d=>l(null,d)).catch(l):l(null,u)}catch(u){l(u)}return}return c(t,r,l)}prepareLoading(t,r){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=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."),o&&o();typeof t=="string"&&(t=this.languageUtils.toResolveHierarchy(t)),typeof r=="string"&&(r=[r]);const a=this.queueLoad(t,r,n,o);if(!a.toLoad.length)return a.pending.length||o(),null;a.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("|"),o=n[0],a=n[1];this.read(o,a,"read",void 0,void 0,(i,l)=>{i&&this.logger.warn(`${r}loading namespace ${a} for language ${o} failed`,i),!i&&l&&this.logger.log(`${r}loaded namespace ${a} for language ${o}`,l),this.loaded(t,i,l)})}saveMissing(t,r,n,o,a){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 c={...i,isUpdate:a},u=this.backend.create.bind(this.backend);if(u.length<6)try{let d;u.length===5?d=u(t,r,n,o,c):d=u(t,r,n,o),d&&typeof d.then=="function"?d.then(h=>l(null,h)).catch(l):l(null,d)}catch(d){l(d)}else u(t,r,n,o,l,c)}!t||!t[0]||this.store.addResource(t[0],r,n,o)}}}const Ma=()=>({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}}),ka=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),Yr=()=>{},Xd=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(r=>{typeof e[r]=="function"&&(e[r]=e[r].bind(e))})};class Ir extends $n{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;if(super(),this.options=ka(t),this.services={},this.logger=mt,this.modules={external:[]},Xd(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 o=Ma();this.options={...o,...this.options,...ka(r)},this.options.compatibilityAPI!=="v1"&&(this.options.interpolation={...o.interpolation,...this.options.interpolation}),r.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=r.keySeparator),r.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=r.nsSeparator);const a=d=>d?typeof d=="function"?new d:d:null;if(!this.options.isClone){this.modules.logger?mt.init(a(this.modules.logger),this.options):mt.init(null,this.options);let d;this.modules.formatter?d=this.modules.formatter:typeof Intl<"u"&&(d=Wd);const h=new Aa(this.options);this.store=new Ca(this.options.resources,this.options);const m=this.services;m.logger=mt,m.resourceStore=this.store,m.languageUtils=h,m.pluralResolver=new Vd(h,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),d&&(!this.options.interpolation.format||this.options.interpolation.format===o.interpolation.format)&&(m.formatter=a(d),m.formatter.init(m,this.options),this.options.interpolation.format=m.formatter.format.bind(m.formatter)),m.interpolator=new Gd(this.options),m.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},m.backendConnector=new Kd(a(this.modules.backend),m.resourceStore,m,this.options),m.backendConnector.on("*",function(b){for(var _=arguments.length,y=new Array(_>1?_-1:0),g=1;g<_;g++)y[g-1]=arguments[g];t.emit(b,...y)}),this.modules.languageDetector&&(m.languageDetector=a(this.modules.languageDetector),m.languageDetector.init&&m.languageDetector.init(m,this.options.detection,this.options)),this.modules.i18nFormat&&(m.i18nFormat=a(this.modules.i18nFormat),m.i18nFormat.init&&m.i18nFormat.init(this)),this.translator=new xn(this.services,this.options),this.translator.on("*",function(b){for(var _=arguments.length,y=new Array(_>1?_-1:0),g=1;g<_;g++)y[g-1]=arguments[g];t.emit(b,...y)}),this.modules.external.forEach(b=>{b.init&&b.init(this)})}if(this.format=this.options.interpolation.format,n||(n=Yr),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const d=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);d.length>0&&d[0]!=="dev"&&(this.options.lng=d[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(d=>{this[d]=function(){return t.store[d](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(d=>{this[d]=function(){return t.store[d](...arguments),t}});const c=jr(),u=()=>{const d=(h,m)=>{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),c.resolve(m),n(h,m)};if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return d(null,this.t.bind(this));this.changeLanguage(this.options.lng,d)};return this.options.resources||!this.options.initImmediate?u():setTimeout(u,0),c}loadResources(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Yr;const o=typeof t=="string"?t:this.language;if(typeof t=="function"&&(n=t),!this.options.resources||this.options.partialBundledLanguages){if(o&&o.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return n();const a=[],i=l=>{if(!l||l==="cimode")return;this.services.languageUtils.toResolveHierarchy(l).forEach(u=>{u!=="cimode"&&a.indexOf(u)<0&&a.push(u)})};o?i(o):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(c=>i(c)),this.options.preload&&this.options.preload.forEach(l=>i(l)),this.services.backendConnector.load(a,this.options.ns,l=>{!l&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),n(l)})}else n(null)}reloadResources(t,r,n){const o=jr();return t||(t=this.languages),r||(r=this.options.ns),n||(n=Yr),this.services.backendConnector.reload(t,r,a=>{o.resolve(),n(a)}),o}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"&&Us.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 o=jr();this.emit("languageChanging",t);const a=c=>{this.language=c,this.languages=this.services.languageUtils.toResolveHierarchy(c),this.resolvedLanguage=void 0,this.setResolvedLanguage(c)},i=(c,u)=>{u?(a(u),this.translator.changeLanguage(u),this.isLanguageChangingTo=void 0,this.emit("languageChanged",u),this.logger.log("languageChanged",u)):this.isLanguageChangingTo=void 0,o.resolve(function(){return n.t(...arguments)}),r&&r(c,function(){return n.t(...arguments)})},l=c=>{!t&&!c&&this.services.languageDetector&&(c=[]);const u=typeof c=="string"?c:this.services.languageUtils.getBestMatchFromCodes(c);u&&(this.language||a(u),this.translator.language||this.translator.changeLanguage(u),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(u)),this.loadResources(u,d=>{i(d,u)})};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),o}getFixedT(t,r,n){var o=this;const a=function(i,l){let c;if(typeof l!="object"){for(var u=arguments.length,d=new Array(u>2?u-2:0),h=2;h<u;h++)d[h-2]=arguments[h];c=o.options.overloadTranslationOptionHandler([i,l].concat(d))}else c={...l};c.lng=c.lng||a.lng,c.lngs=c.lngs||a.lngs,c.ns=c.ns||a.ns,c.keyPrefix!==""&&(c.keyPrefix=c.keyPrefix||n||a.keyPrefix);const m=o.options.keySeparator||".";let b;return c.keyPrefix&&Array.isArray(i)?b=i.map(_=>`${c.keyPrefix}${m}${_}`):b=c.keyPrefix?`${c.keyPrefix}${m}${i}`:i,o.t(b,c)};return typeof t=="string"?a.lng=t:a.lngs=t,a.ns=r,a.keyPrefix=n,a}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],o=this.options?this.options.fallbackLng:!1,a=this.languages[this.languages.length-1];if(n.toLowerCase()==="cimode")return!0;const i=(l,c)=>{const u=this.services.backendConnector.state[`${l}|${c}`];return u===-1||u===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)&&(!o||i(a,t)))}loadNamespaces(t,r){const n=jr();return this.options.ns?(typeof t=="string"&&(t=[t]),t.forEach(o=>{this.options.ns.indexOf(o)<0&&this.options.ns.push(o)}),this.loadResources(o=>{n.resolve(),r&&r(o)}),n):(r&&r(),Promise.resolve())}loadLanguages(t,r){const n=jr();typeof t=="string"&&(t=[t]);const o=this.options.preload||[],a=t.filter(i=>o.indexOf(i)<0&&this.services.languageUtils.isSupportedCode(i));return a.length?(this.options.preload=o.concat(a),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 Aa(Ma());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 Ir(t,r)}cloneInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Yr;const n=t.forkResourceStore;n&&delete t.forkResourceStore;const o={...this.options,...t,isClone:!0},a=new Ir(o);return(t.debug!==void 0||t.prefix!==void 0)&&(a.logger=a.logger.clone(t)),["store","services","language"].forEach(l=>{a[l]=this[l]}),a.services={...this.services},a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},n&&(a.store=new Ca(this.store.data,o),a.services.resourceStore=a.store),a.translator=new xn(a.services,o),a.translator.on("*",function(l){for(var c=arguments.length,u=new Array(c>1?c-1:0),d=1;d<c;d++)u[d-1]=arguments[d];a.emit(l,...u)}),a.init(o,r),a.translator.options=o,a.translator.backendConnector.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const Ae=Ir.createInstance();Ae.createInstance=Ir.createInstance;Ae.createInstance;Ae.dir;Ae.init;Ae.loadResources;Ae.reloadResources;Ae.use;Ae.changeLanguage;Ae.getFixedT;Ae.t;Ae.exists;Ae.setDefaultNamespace;Ae.hasLoadedNamespace;Ae.loadNamespaces;Ae.loadLanguages;const Bs=Ae.createInstance();Bs.use(Li).use(Lt.initReactI18next).init({supportedLngs:["en","de"],resources:{en:{translations:Cd},de:{translations:jd}},ns:["translations"],defaultNS:"translations"});function vt(e){return t=>s.jsx(qd,{children:s.jsx(e,{...t})})}const qd=({children:e})=>{const t=E.useTheme(),r=wd({mode:t.palette.mode}),n=Rd(r);return s.jsx(Dt.ThemeProvider,{theme:n,children:s.jsx(Lt.I18nextProvider,{i18n:Bs,children:e})})},Yd={$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"},Zd=e=>{const t=Ho.useMonaco(),r=E.useTheme(),n=se.useRef(null),[o,a]=se.useState("dark-plus"),i=r.palette.mode==="dark"?"dark-plus":"light-plus";async function l(c){c.languages.register({id:"wandelscript"}),c.languages.setLanguageConfiguration("wandelscript",{comments:{lineComment:"#"},brackets:[["(",")"],["[","]"]],autoClosingPairs:[{open:"[",close:"]"},{open:"(",close:")"}],surroundingPairs:[{open:"[",close:"]"},{open:"(",close:")"}]}),n.current||(n.current=await Oi.createHighlighter({langs:[Yd],themes:["dark-plus","light-plus"]})),Mi.shikiToMonaco(n.current,c),c.editor.defineTheme(i,{base:r.palette.mode==="dark"?"vs-dark":"vs",inherit:!0,rules:[],colors:r.palette.mode==="dark"?{"editor.background":"#262F42","editorLineNumber.foreground":"#797979","editorLineNumber.activeForeground":"#e9e9e9","editor.lineHighlightBorder":"#494949"}:{}}),e.monacoSetup&&e.monacoSetup(c),a(i)}return se.useEffect(()=>{t&&l(t)},[t,i]),t?s.jsx(Ho,{value:e.code,onChange:e.onChange,defaultLanguage:"wandelscript",theme:o,options:{minimap:{enabled:!1},wordWrap:"on",automaticLayout:!0,...e.monacoOptions}}):null},Qd="(^joint_[0-9]+$)|(_J[0-9]+$)";function Js(e){return e.children.length===0?[e]:[e,...e.children.flatMap(t=>Js(t))]}function e0(e,t){return new RegExp(t??Qd).test(e)}function Vs(e,t){return Js(e).filter(r=>e0(r.name,t))}function Fn(e){se.useEffect(e,[])}function Gs(e){Fn(()=>Or.autorun(e))}function zs(e,t,r){Fn(()=>Or.reaction(e,t,r))}function ur(e){return Fn(()=>{let t;function r(){e(),t=requestAnimationFrame(r)}return t=requestAnimationFrame(r),()=>{cancelAnimationFrame(t)}})}function _e({rapidlyChangingMotionState:e,robotRootObjectName:t,onRotationChanged:r,jointCollector:n}){S.Globals.assign({frameLoop:"always"});const o=se.useRef([]),a=se.useRef([]),{scene:i,invalidate:l}=ki.useThree();se.useEffect(()=>{const m=i.getObjectByName(t);m&&(a.current=n?n(m):Vs(m),u(),l())},[]);function c(m){o.current=m,h.start(Object.assign({},o.current))}function u(){const m=a.current.map((b,_)=>d[_].get());r(a.current,m)}Gs(()=>{const m=e.state.joint_position.joints.filter(b=>b!==void 0);requestAnimationFrame(()=>c(m))});const[d,h]=S.useSpring(()=>({...Object.assign({},e.state.joint_position.joints),onChange:()=>{u(),l()},onResolve:()=>{u()}}));return null}function t0({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=ie.useGLTF(e),o=n.nodes,a=n.materials;function i(l,c){l.forEach((u,d)=>u.rotation.y=c[d])}return s.jsxs(s.Fragment,{children:[s.jsx(_e,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:i}),s.jsx("group",{...r,dispose:null,children:s.jsx("group",{name:"Scene",children:s.jsxs("group",{name:"UR3",rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"UR3_J01",rotation:[-Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"UR3_J02",position:[0,.152,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"UR3_J03",position:[-.244,0,0],children:[s.jsxs(S.animated.group,{name:"UR3_J04",position:[-.213,0,0],children:[s.jsxs(S.animated.group,{name:"UR3_J05",position:[0,.112,0],rotation:[Math.PI/2,0,0],children:[s.jsx("mesh",{name:"UR3_05",castShadow:!0,receiveShadow:!0,geometry:o.UR3_05.geometry,material:a.Standard}),s.jsxs(S.animated.group,{name:"UR3_J06",position:[0,.085,0],rotation:[-Math.PI/2,0,0],children:[s.jsx("group",{name:"UR3_FLG",position:[0,.082,0]}),s.jsx("mesh",{name:"UR3_L06",castShadow:!0,receiveShadow:!0,geometry:o.UR3_L06.geometry,material:a.Standard})]})]}),s.jsx("mesh",{name:"UR3_L04",castShadow:!0,receiveShadow:!0,geometry:o.UR3_L04.geometry,material:a.Standard})]}),s.jsx("mesh",{name:"UR3_L03",castShadow:!0,receiveShadow:!0,geometry:o.UR3_L03.geometry,material:a.Standard})]}),s.jsx("mesh",{name:"UR3_L02",castShadow:!0,receiveShadow:!0,geometry:o.UR3_L02.geometry,material:a.Standard})]}),s.jsx("mesh",{name:"UR3_L01",castShadow:!0,receiveShadow:!0,geometry:o.UR3_L01.geometry,material:a.Standard})]}),s.jsx("mesh",{name:"UR3_L00",castShadow:!0,receiveShadow:!0,geometry:o.UR3_L00.geometry,material:a.Standard,rotation:[-Math.PI/2,0,0]})]})})})]})}function r0({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=ie.useGLTF(e),o=n.nodes,a=n.materials;function i(l,c){l.forEach((u,d)=>u.rotation.y=c[d])}return s.jsxs(s.Fragment,{children:[s.jsx(_e,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:i}),s.jsx("group",{...r,dispose:null,children:s.jsx("group",{name:"Scene",children:s.jsxs(S.animated.group,{name:"UR3e",rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"UR3e_J01",rotation:[-Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"UR3e_J02",position:[0,.152,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"UR3e_J03",position:[-.244,0,0],children:[s.jsxs(S.animated.group,{name:"UR3e_J04",position:[-.213,0,0],children:[s.jsxs(S.animated.group,{name:"UR3e_J05",position:[0,.131,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"UR3e_J06",position:[0,.085,0],rotation:[-Math.PI/2,0,0],children:[s.jsx("group",{name:"UR3e_FLG",position:[0,.092,0]}),s.jsx("mesh",{name:"UR3e_L06",castShadow:!0,receiveShadow:!0,geometry:o.UR3e_L06.geometry,material:a.Standard})]}),s.jsx("mesh",{name:"UR3e_L05",castShadow:!0,receiveShadow:!0,geometry:o.UR3e_L05.geometry,material:a.Standard})]}),s.jsx("mesh",{name:"UR3e_L04",castShadow:!0,receiveShadow:!0,geometry:o.UR3e_L04.geometry,material:a.Standard})]}),s.jsx("mesh",{name:"UR3e_L03",castShadow:!0,receiveShadow:!0,geometry:o.UR3e_L03.geometry,material:a.Standard})]}),s.jsx("mesh",{name:"UR3e_L02",castShadow:!0,receiveShadow:!0,geometry:o.UR3e_L02.geometry,material:a.Standard})]}),s.jsx("mesh",{name:"UR3e_L01",castShadow:!0,receiveShadow:!0,geometry:o.UR3e_L01.geometry,material:a.Standard})]}),s.jsx("mesh",{name:"UR3e_L00",castShadow:!0,receiveShadow:!0,geometry:o.UR3e_L00.geometry,material:a.Standard,rotation:[-Math.PI/2,0,0]})]})})})]})}function n0({modelURL:e,rapidlyChangingMotionState:t,...r}){const o=ie.useGLTF(e).nodes;function a(i,l){i.forEach((c,u)=>c.rotation.y=l[u])}return s.jsxs(s.Fragment,{children:[s.jsx(_e,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:a}),s.jsx("group",{...r,dispose:null,children:s.jsx("group",{name:"Scene",children:s.jsxs("group",{name:"UR5",rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"UR5_J01",rotation:[-Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"UR5_J02",position:[0,.089,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"UR5_J03",position:[-.425,0,0],children:[s.jsxs(S.animated.group,{name:"UR5_J04",position:[-.392,0,0],children:[s.jsxs(S.animated.group,{name:"UR5_J05",position:[0,.109,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"UR5_J06",position:[0,.095,0],rotation:[-Math.PI/2,0,0],children:[s.jsx("group",{name:"UR5_FLG",position:[0,.082,0]}),s.jsx("mesh",{name:"UR5_L06",castShadow:!0,receiveShadow:!0,geometry:o.UR5_L06.geometry,material:o.UR5_L06.material})]}),s.jsx("mesh",{name:"UR5_L05",castShadow:!0,receiveShadow:!0,geometry:o.UR5_L05.geometry,material:o.UR5_L05.material})]}),s.jsx("mesh",{name:"UR5_L04",castShadow:!0,receiveShadow:!0,geometry:o.UR5_L04.geometry,material:o.UR5_L04.material})]}),s.jsx("mesh",{name:"UR5_L03",castShadow:!0,receiveShadow:!0,geometry:o.UR5_L03.geometry,material:o.UR5_L03.material})]}),s.jsx("mesh",{name:"UR5_L02",castShadow:!0,receiveShadow:!0,geometry:o.UR5_L02.geometry,material:o.UR5_L02.material})]}),s.jsx("mesh",{name:"UR5_L01",castShadow:!0,receiveShadow:!0,geometry:o.UR5_L01.geometry,material:o.UR5_L01.material})]}),s.jsx("mesh",{name:"UR5_L00",castShadow:!0,receiveShadow:!0,geometry:o.UR5_L00.geometry,material:o.UR5_L00.material,rotation:[-Math.PI/2,0,0]})]})})})]})}function o0({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=ie.useGLTF(e),o=n.nodes,a=n.materials;function i(l,c){l.forEach((u,d)=>u.rotation.y=c[d])}return s.jsxs(s.Fragment,{children:[s.jsx(_e,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:i}),s.jsx("group",{...r,dispose:null,children:s.jsx("group",{name:"Scene",children:s.jsxs("group",{name:"UR5e",rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"UR5e_J01",rotation:[-Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"UR5e_J02",position:[0,.162,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"UR5e_J03",position:[-.425,0,0],children:[s.jsxs(S.animated.group,{name:"UR5e_J04",position:[-.392,0,0],children:[s.jsxs(S.animated.group,{name:"UR5e_J05",position:[0,.133,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"UR5e_J06",position:[0,.1,0],rotation:[-Math.PI/2,0,0],children:[s.jsx("group",{name:"UR5e_FLG",position:[0,.1,0]}),s.jsx("group",{name:"UR5e_L06",position:[0,.1,0],rotation:[0,0,-Math.PI],children:s.jsxs(s.Fragment,{children:[s.jsx("mesh",{name:"C-1000255",castShadow:!0,receiveShadow:!0,geometry:o["C-1000255"].geometry,material:a.Black}),s.jsx("mesh",{name:"C-1000255_1",castShadow:!0,receiveShadow:!0,geometry:o["C-1000255_1"].geometry,material:a.Metal})]})})]}),s.jsx("group",{name:"UR5e_L05",rotation:[-Math.PI/2,-Math.PI/3,0],children:s.jsxs(s.Fragment,{children:[s.jsx("mesh",{name:"C-1000253",castShadow:!0,receiveShadow:!0,geometry:o["C-1000253"].geometry,material:a.Blue}),s.jsx("mesh",{name:"C-1000253_1",castShadow:!0,receiveShadow:!0,geometry:o["C-1000253_1"].geometry,material:a.Black}),s.jsx("mesh",{name:"C-1000253_2",castShadow:!0,receiveShadow:!0,geometry:o["C-1000253_2"].geometry,material:a.Metal}),s.jsx("mesh",{name:"C-1000253_3",castShadow:!0,receiveShadow:!0,geometry:o["C-1000253_3"].geometry,material:a.DarkGray})]})})]}),s.jsx("group",{name:"UR5e_L04",rotation:[0,-Math.PI/3,0],children:s.jsxs(s.Fragment,{children:[s.jsx("mesh",{name:"C-1000251",castShadow:!0,receiveShadow:!0,geometry:o["C-1000251"].geometry,material:a.Blue}),s.jsx("mesh",{name:"C-1000251_1",castShadow:!0,receiveShadow:!0,geometry:o["C-1000251_1"].geometry,material:a.Black}),s.jsx("mesh",{name:"C-1000251_2",castShadow:!0,receiveShadow:!0,geometry:o["C-1000251_2"].geometry,material:a.Metal}),s.jsx("mesh",{name:"C-1000251_3",castShadow:!0,receiveShadow:!0,geometry:o["C-1000251_3"].geometry,material:a.DarkGray})]})})]}),s.jsx("group",{name:"UR5e_L03",children:s.jsxs(s.Fragment,{children:[s.jsx("mesh",{name:"C-1000250",castShadow:!0,receiveShadow:!0,geometry:o["C-1000250"].geometry,material:a.Black}),s.jsx("mesh",{name:"C-1000250_1",castShadow:!0,receiveShadow:!0,geometry:o["C-1000250_1"].geometry,material:a.DarkGray}),s.jsx("mesh",{name:"C-1000250_2",castShadow:!0,receiveShadow:!0,geometry:o["C-1000250_2"].geometry,material:a.Blue}),s.jsx("mesh",{name:"C-1000250_3",castShadow:!0,receiveShadow:!0,geometry:o["C-1000250_3"].geometry,material:a.Metal}),s.jsx("mesh",{name:"C-1000250_4",castShadow:!0,receiveShadow:!0,geometry:o["C-1000250_4"].geometry,material:a.Metal})]})})]}),s.jsx("group",{name:"UR5e_L02",rotation:[0,-Math.PI/2,0],children:s.jsxs(s.Fragment,{children:[s.jsx("mesh",{name:"C-1000249",castShadow:!0,receiveShadow:!0,geometry:o["C-1000249"].geometry,material:a.Metal}),s.jsx("mesh",{name:"C-1000249_1",castShadow:!0,receiveShadow:!0,geometry:o["C-1000249_1"].geometry,material:a.Black}),s.jsx("mesh",{name:"C-1000249_2",castShadow:!0,receiveShadow:!0,geometry:o["C-1000249_2"].geometry,material:a.DarkGray}),s.jsx("mesh",{name:"C-1000249_3",castShadow:!0,receiveShadow:!0,geometry:o["C-1000249_3"].geometry,material:a.Blue}),s.jsx("mesh",{name:"C-1000249_4",castShadow:!0,receiveShadow:!0,geometry:o["C-1000249_4"].geometry,material:a.Metal})]})})]}),s.jsx("group",{name:"UR5e_L01",rotation:[Math.PI/2,0,0],children:s.jsxs(s.Fragment,{children:[s.jsx("mesh",{name:"C-1000248",castShadow:!0,receiveShadow:!0,geometry:o["C-1000248"].geometry,material:a.DarkGray}),s.jsx("mesh",{name:"C-1000248_1",castShadow:!0,receiveShadow:!0,geometry:o["C-1000248_1"].geometry,material:a.Black}),s.jsx("mesh",{name:"C-1000248_2",castShadow:!0,receiveShadow:!0,geometry:o["C-1000248_2"].geometry,material:a.Blue}),s.jsx("mesh",{name:"C-1000248_3",castShadow:!0,receiveShadow:!0,geometry:o["C-1000248_3"].geometry,material:a.Metal})]})})]}),s.jsx("group",{name:"UR5e_L00",children:s.jsxs(s.Fragment,{children:[s.jsx("mesh",{name:"C-1000257",castShadow:!0,receiveShadow:!0,geometry:o["C-1000257"].geometry,material:a.Black}),s.jsx("mesh",{name:"C-1000257_1",castShadow:!0,receiveShadow:!0,geometry:o["C-1000257_1"].geometry,material:a.Metal})]})})]})})})]})}function a0({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=ie.useGLTF(e),o=n.nodes,a=n.materials;function i(l,c){l.forEach((u,d)=>u.rotation.y=c[d])}return s.jsxs(s.Fragment,{children:[s.jsx(_e,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:i}),s.jsx("group",{...r,dispose:null,children:s.jsx("group",{name:"Scene",children:s.jsxs("group",{name:"UR10",rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"UR10_J01",rotation:[-Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"UR10_J02",position:[0,.126,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"UR10_J03",position:[-.612,0,0],children:[s.jsxs(S.animated.group,{name:"UR10_J04",position:[-.572,0,0],children:[s.jsxs(S.animated.group,{name:"UR10_J05",position:[0,.164,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"UR10_J06",position:[0,.116,0],rotation:[-Math.PI/2,0,0],children:[s.jsx("group",{name:"UR10_FLG",position:[0,.092,0]}),s.jsx("mesh",{name:"UR10_L06",castShadow:!0,receiveShadow:!0,geometry:o.UR10_L06.geometry,material:a.Standard})]}),s.jsx("mesh",{name:"UR10_L05",castShadow:!0,receiveShadow:!0,geometry:o.UR10_L05.geometry,material:a.Standard})]}),s.jsx("mesh",{name:"UR10_L04",castShadow:!0,receiveShadow:!0,geometry:o.UR10_L04.geometry,material:a.Standard})]}),s.jsx("mesh",{name:"UR10_L03",castShadow:!0,receiveShadow:!0,geometry:o.UR10_L03.geometry,material:a.Standard})]}),s.jsx("mesh",{name:"UR10_L02",castShadow:!0,receiveShadow:!0,geometry:o.UR10_L02.geometry,material:a.Standard})]}),s.jsx("mesh",{name:"UR10_L01",castShadow:!0,receiveShadow:!0,geometry:o.UR10_L01.geometry,material:a.Standard})]}),s.jsx("mesh",{name:"UR10_L00",castShadow:!0,receiveShadow:!0,geometry:o.UR10_L00.geometry,material:a.Standard,rotation:[-Math.PI/2,0,0]})]})})})]})}function s0({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=ie.useGLTF(e),o=n.nodes,a=n.materials;function i(l,c){l.forEach((u,d)=>u.rotation.y=c[d])}return s.jsxs(s.Fragment,{children:[s.jsx(_e,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:i}),s.jsx("group",{...r,dispose:null,children:s.jsx("group",{name:"Scene",children:s.jsxs("group",{name:"UR10e",rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"UR10e_J01",rotation:[-Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"UR10e_J02",position:[0,.181,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"UR10e_J03",position:[-.613,0,0],children:[s.jsxs(S.animated.group,{name:"UR10e_J04",position:[-.572,0,0],children:[s.jsxs(S.animated.group,{name:"UR10e_J05",position:[0,.174,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"UR10e_J06",position:[0,.12,0],rotation:[-Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"UR10e_FLG",position:[1.184,-.174,.061],rotation:[-Math.PI/2,0,0],children:[s.jsx("mesh",{name:"C-1000493",geometry:o["C-1000493"].geometry,material:a.Black,castShadow:!0,receiveShadow:!0}),s.jsx("mesh",{name:"C-1000493_1",geometry:o["C-1000493_1"].geometry,material:a.Metal,castShadow:!0,receiveShadow:!0})]}),s.jsx("group",{name:"UR10e_L07",position:[0,.117,0]})]}),s.jsxs("group",{name:"UR10e_L06",position:[1.184,.181,.174],rotation:[Math.PI,0,0],children:[s.jsx("mesh",{name:"C-1000492",geometry:o["C-1000492"].geometry,material:a.DarkGray,castShadow:!0,receiveShadow:!0}),s.jsx("mesh",{name:"C-1000492_1",geometry:o["C-1000492_1"].geometry,material:a.Black,castShadow:!0,receiveShadow:!0}),s.jsx("mesh",{name:"C-1000492_2",geometry:o["C-1000492_2"].geometry,material:a.Blue,castShadow:!0,receiveShadow:!0}),s.jsx("mesh",{name:"C-1000492_3",geometry:o["C-1000492_3"].geometry,material:a.Screw,castShadow:!0,receiveShadow:!0})]})]}),s.jsxs("group",{name:"UR10e_L05",position:[1.184,0,.181],rotation:[-Math.PI/2,0,0],children:[s.jsx("mesh",{name:"C-1000491",geometry:o["C-1000491"].geometry,material:a.DarkGray,castShadow:!0,receiveShadow:!0}),s.jsx("mesh",{name:"C-1000491_1",geometry:o["C-1000491_1"].geometry,material:a.Blue,castShadow:!0,receiveShadow:!0}),s.jsx("mesh",{name:"C-1000491_2",geometry:o["C-1000491_2"].geometry,material:a.Black,castShadow:!0,receiveShadow:!0}),s.jsx("mesh",{name:"C-1000491_3",geometry:o["C-1000491_3"].geometry,material:a.Screw,castShadow:!0,receiveShadow:!0})]})]}),s.jsxs("group",{name:"UR10e_L04",position:[.613,0,.181],rotation:[-Math.PI/2,0,0],children:[s.jsx("mesh",{name:"C-1000490",geometry:o["C-1000490"].geometry,material:a.Metal,castShadow:!0,receiveShadow:!0}),s.jsx("mesh",{name:"C-1000490_1",geometry:o["C-1000490_1"].geometry,material:a.Black,castShadow:!0,receiveShadow:!0}),s.jsx("mesh",{name:"C-1000490_2",geometry:o["C-1000490_2"].geometry,material:a.DarkGray,castShadow:!0,receiveShadow:!0}),s.jsx("mesh",{name:"C-1000490_3",geometry:o["C-1000490_3"].geometry,material:a.Blue,castShadow:!0,receiveShadow:!0})]})]}),s.jsxs(S.animated.group,{name:"UR10e_L03",position:[0,0,.181],rotation:[-Math.PI/2,0,0],children:[s.jsx("mesh",{name:"C-1000489",geometry:o["C-1000489"].geometry,material:a.Blue,castShadow:!0,receiveShadow:!0}),s.jsx("mesh",{name:"C-1000489_1",geometry:o["C-1000489_1"].geometry,material:a.Black,castShadow:!0,receiveShadow:!0}),s.jsx("mesh",{name:"C-1000489_2",geometry:o["C-1000489_2"].geometry,material:a.DarkGray,castShadow:!0,receiveShadow:!0}),s.jsx("mesh",{name:"C-1000489_3",geometry:o["C-1000489_3"].geometry,material:a.Screw,castShadow:!0,receiveShadow:!0}),s.jsx("mesh",{name:"C-1000489_4",geometry:o["C-1000489_4"].geometry,material:a.Metal,castShadow:!0,receiveShadow:!0})]})]}),s.jsxs("group",{name:"UR10e_L02",children:[s.jsx("mesh",{name:"C-1000488",geometry:o["C-1000488"].geometry,material:a.Black,castShadow:!0,receiveShadow:!0}),s.jsx("mesh",{name:"C-1000488_1",geometry:o["C-1000488_1"].geometry,material:a.Blue,castShadow:!0,receiveShadow:!0}),s.jsx("mesh",{name:"C-1000488_2",geometry:o["C-1000488_2"].geometry,material:a.Screw,castShadow:!0,receiveShadow:!0}),s.jsx("mesh",{name:"C-1000488_3",geometry:o["C-1000488_3"].geometry,material:a.DarkGray,castShadow:!0,receiveShadow:!0})]})]}),s.jsxs("group",{name:"UR10e_L01",rotation:[-Math.PI/2,0,0],children:[s.jsx("mesh",{name:"C-1000487",geometry:o["C-1000487"].geometry,material:a.Black,castShadow:!0,receiveShadow:!0}),s.jsx("mesh",{name:"C-1000487_1",geometry:o["C-1000487_1"].geometry,material:a.Metal,castShadow:!0,receiveShadow:!0})]})]})})})]})}function Ta({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=ie.useGLTF(e),o=n.nodes,a=n.materials,i=[0,-Math.PI/2,0,0,0,0];function l(c,u){c.forEach((d,h)=>d.rotation.y=u[h]+i[h])}return s.jsxs(s.Fragment,{children:[s.jsx(_e,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:l}),s.jsx("group",{...r,dispose:null,children:s.jsx("group",{name:"Scene",children:s.jsxs("group",{name:"AR900",rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"AR900_J01",rotation:[-Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"AR900_J02",position:[.04,0,0],rotation:[-Math.PI/2,-Math.PI/2,0],children:[s.jsxs(S.animated.group,{name:"AR900_J03",position:[.445,0,0],rotation:[-Math.PI,0,0],children:[s.jsxs(S.animated.group,{name:"AR900_J04",position:[.04,0,0],rotation:[-Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"AR900_J05",position:[0,-.44,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"AR900_J06",rotation:[-Math.PI/2,0,0],children:[s.jsx("group",{name:"AR900_FLG",position:[0,-.08,0],rotation:[-Math.PI,0,0]}),s.jsx("mesh",{name:"AR900_L06",castShadow:!0,receiveShadow:!0,geometry:o.AR900_L06.geometry,material:a["#BBA474.001"]})]}),s.jsx("mesh",{name:"AR900_L05",castShadow:!0,receiveShadow:!0,geometry:o.AR900_L05.geometry,material:a["#0056b9.001"]})]}),s.jsx("mesh",{name:"AR900_L04",castShadow:!0,receiveShadow:!0,geometry:o.AR900_L04.geometry,material:a["#0056b9.001"]})]}),s.jsx("mesh",{name:"AR900_L03",castShadow:!0,receiveShadow:!0,geometry:o.AR900_L03.geometry,material:a["#0056b9.001"]})]}),s.jsx("mesh",{name:"AR900_L02",castShadow:!0,receiveShadow:!0,geometry:o.AR900_L02.geometry,material:a["#0056b9.001"]})]}),s.jsx("mesh",{name:"AR900_L01",castShadow:!0,receiveShadow:!0,geometry:o.AR900_L01.geometry,material:a["#0056b9.001"]})]}),s.jsx("mesh",{name:"AR900_L00",castShadow:!0,receiveShadow:!0,geometry:o.AR900_L00.geometry,material:a["#0056b9.001"],rotation:[-Math.PI/2,0,0]})]})})})]})}function i0({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=ie.useGLTF(e),o=n.nodes,a=n.materials,i=[0,-Math.PI/2,0,0,0,0],l=[1,-1,1,1,1,1];function c(u,d){u.forEach((h,m)=>h.rotation.y=l[m]*d[m]+i[m])}return s.jsxs(s.Fragment,{children:[s.jsx(_e,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:c}),s.jsx("group",{...r,dispose:null,children:s.jsx("group",{name:"Scene",children:s.jsxs("group",{name:"AR1440",rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"AR1440_J01",rotation:[-Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"AR1440_J02",position:[.155,0,0],rotation:[Math.PI/2,0,Math.PI],children:[s.jsxs(S.animated.group,{name:"AR1440_J03",position:[.614,0,0],rotation:[Math.PI,0,0],children:[s.jsxs(S.animated.group,{name:"AR1440_J04",position:[.2,0,0],rotation:[-Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"AR1440_J05",position:[0,-.64,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"AR1440_J06",rotation:[-Math.PI/2,0,0],children:[s.jsx("group",{name:"AR1440_FLG",position:[0,-.1,0],rotation:[-Math.PI,0,0]}),s.jsx("mesh",{name:"AR1440_L06_CAD",castShadow:!0,receiveShadow:!0,geometry:o.AR1440_L06_CAD.geometry,material:a.metall})]}),s.jsx("mesh",{name:"AR1440_L05_CAD",castShadow:!0,receiveShadow:!0,geometry:o.AR1440_L05_CAD.geometry,material:a.yaskawaBlueMetall})]}),s.jsxs("group",{name:"AR1440_L04_CAD",children:[s.jsx("mesh",{name:"AR1440_L04_CAD001",castShadow:!0,receiveShadow:!0,geometry:o.AR1440_L04_CAD001.geometry,material:a.yaskawaBlueMetall}),s.jsx("mesh",{name:"AR1440_L04_CAD001_1",castShadow:!0,receiveShadow:!0,geometry:o.AR1440_L04_CAD001_1.geometry,material:a.white})]})]}),s.jsxs("group",{name:"AR1440_L03_CAD",children:[s.jsx("mesh",{name:"AR1440_L03_CAD001",castShadow:!0,receiveShadow:!0,geometry:o.AR1440_L03_CAD001.geometry,material:a.yaskawaBlueMetall}),s.jsx("mesh",{name:"AR1440_L03_CAD001_1",castShadow:!0,receiveShadow:!0,geometry:o.AR1440_L03_CAD001_1.geometry,material:a.blackMetall})]})]}),s.jsx("mesh",{name:"AR1440_L02_CAD",castShadow:!0,receiveShadow:!0,geometry:o.AR1440_L02_CAD.geometry,material:a.yaskawaBlueMetall})]}),s.jsxs("group",{name:"AR1440_L01_CAD",children:[s.jsx("mesh",{name:"AR1440_L01_CAD001",castShadow:!0,receiveShadow:!0,geometry:o.AR1440_L01_CAD001.geometry,material:a.yaskawaBlueMetall}),s.jsx("mesh",{name:"AR1440_L01_CAD001_1",castShadow:!0,receiveShadow:!0,geometry:o.AR1440_L01_CAD001_1.geometry,material:a.blackMetall})]})]}),s.jsx("mesh",{name:"AR1440_L00_CAD",castShadow:!0,receiveShadow:!0,geometry:o.AR1440_L00_CAD.geometry,material:a.yaskawaBlueMetall,position:[0,0,.45],rotation:[-Math.PI/2,0,0]})]})})})]})}function l0({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=ie.useGLTF(e),o=n.nodes,a=n.materials,i=[0,-Math.PI/2,0,0,0,0],l=[1,-1,1,1,1,1];function c(u,d){u.forEach((h,m)=>h.rotation.y=l[m]*d[m]+i[m])}return s.jsxs(s.Fragment,{children:[s.jsx(_e,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:c}),s.jsx("group",{...r,dispose:null,children:s.jsxs("group",{name:"Scene",children:[s.jsxs(S.animated.group,{name:"AR1730_J00",children:[s.jsxs(S.animated.group,{name:"AR1730_J01",position:[.15,0,0],rotation:[-Math.PI/2,-Math.PI/2,0],children:[s.jsxs(S.animated.group,{name:"AR1730_J02",position:[.76,0,0],rotation:[-Math.PI,0,0],children:[s.jsxs(S.animated.group,{name:"AR1730_J03",position:[.2,0,0],rotation:[-Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"AR1730_J04",position:[0,-.795,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"AR1730_J05",rotation:[-Math.PI/2,0,0],children:[s.jsx("group",{name:"AR1730_FLG",position:[0,-.1,0],rotation:[-Math.PI,0,0]}),s.jsx("mesh",{name:"AR1730_L06",castShadow:!0,receiveShadow:!0,geometry:o.AR1730_L06.geometry,material:a.Metal,rotation:[Math.PI/2,-Math.PI/2,0]})]}),s.jsx("mesh",{name:"AR1730_L05",castShadow:!0,receiveShadow:!0,geometry:o.AR1730_L05.geometry,material:a.Blue,rotation:[Math.PI/2,0,Math.PI/2]})]}),s.jsxs("group",{name:"AR1730_L04",position:[0,-.302,0],rotation:[0,0,-Math.PI/2],children:[s.jsx("mesh",{name:"_R_AXIS_SW0001002",castShadow:!0,receiveShadow:!0,geometry:o._R_AXIS_SW0001002.geometry,material:a.Blue}),s.jsx("mesh",{name:"_R_AXIS_SW0001002_1",castShadow:!0,receiveShadow:!0,geometry:o._R_AXIS_SW0001002_1.geometry,material:a.White})]})]}),s.jsxs("group",{name:"AR1730_L03",rotation:[Math.PI/2,0,-Math.PI/2],children:[s.jsx("mesh",{name:"_U_AXIS_SW0001002",castShadow:!0,receiveShadow:!0,geometry:o._U_AXIS_SW0001002.geometry,material:a.Blue}),s.jsx("mesh",{name:"_U_AXIS_SW0001002_1",castShadow:!0,receiveShadow:!0,geometry:o._U_AXIS_SW0001002_1.geometry,material:a.Black})]})]}),s.jsx("mesh",{name:"AR1730_L02",castShadow:!0,receiveShadow:!0,geometry:o.AR1730_L02.geometry,material:a.Blue,position:[0,-.157,0],rotation:[-Math.PI,-1.571,0]})]}),s.jsxs("group",{name:"AR1730_L01",position:[0,-.336,0],rotation:[Math.PI/2,0,-Math.PI/2],children:[s.jsx("mesh",{name:"_S_AXIS_SW0001002",castShadow:!0,receiveShadow:!0,geometry:o._S_AXIS_SW0001002.geometry,material:a.Blue}),s.jsx("mesh",{name:"_S_AXIS_SW0001002_1",castShadow:!0,receiveShadow:!0,geometry:o._S_AXIS_SW0001002_1.geometry,material:a.Black})]})]}),s.jsx("mesh",{name:"AR1730_L00",castShadow:!0,receiveShadow:!0,geometry:o.AR1730_L00.geometry,material:a.Blue,position:[0,-.505,0],rotation:[Math.PI/2,0,-Math.PI/2]})]})})]})}function c0({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=ie.useGLTF(e),o=n.nodes,a=n.materials,i=[0,-Math.PI/2,0,0,0,0],l=[1,-1,1,1,1,1];function c(u,d){u.forEach((h,m)=>h.rotation.y=l[m]*d[m]+i[m])}return s.jsxs(s.Fragment,{children:[s.jsx(_e,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:c}),s.jsx("group",{...r,dispose:null,children:s.jsx("group",{name:"Scene",children:s.jsxs("group",{name:"AR2010",rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"AR2010_J01",rotation:[-Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"AR2010_J02",position:[.15,0,0],rotation:[Math.PI/2,0,Math.PI],children:[s.jsxs(S.animated.group,{name:"AR2010_J03",position:[.76,0,0],rotation:[Math.PI,0,0],children:[s.jsxs(S.animated.group,{name:"AR2010_J04",position:[.2,0,0],rotation:[-Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"AR2010_J05",position:[0,-1.082,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"AR2010_J06",rotation:[-Math.PI/2,0,0],children:[s.jsx("group",{name:"AR2010_FLG",position:[0,-.1,0],rotation:[-Math.PI,0,0]}),s.jsxs("group",{name:"AR2010_L06",children:[s.jsx("mesh",{name:"AR2010_06001",castShadow:!0,receiveShadow:!0,geometry:o.AR2010_06001.geometry,material:a.yaskawaBlueMetall}),s.jsx("mesh",{name:"AR2010_06001_1",castShadow:!0,receiveShadow:!0,geometry:o.AR2010_06001_1.geometry,material:a.metall})]})]}),s.jsx("mesh",{name:"AR2010_L05",castShadow:!0,receiveShadow:!0,geometry:o.AR2010_L05.geometry,material:a.yaskawaBlueMetall})]}),s.jsxs("group",{name:"AR2010_L04",children:[s.jsx("mesh",{name:"AR2010_04001",castShadow:!0,receiveShadow:!0,geometry:o.AR2010_04001.geometry,material:a.yaskawaBlueMetall}),s.jsx("mesh",{name:"AR2010_04001_1",castShadow:!0,receiveShadow:!0,geometry:o.AR2010_04001_1.geometry,material:a.white})]})]}),s.jsxs("group",{name:"AR2010_L03",children:[s.jsx("mesh",{name:"AR2010_03001",castShadow:!0,receiveShadow:!0,geometry:o.AR2010_03001.geometry,material:a.yaskawaBlueMetall}),s.jsx("mesh",{name:"AR2010_03001_1",castShadow:!0,receiveShadow:!0,geometry:o.AR2010_03001_1.geometry,material:a.blackMetall})]})]}),s.jsx("mesh",{name:"AR2010_L02",castShadow:!0,receiveShadow:!0,geometry:o.AR2010_L02.geometry,material:a.yaskawaBlueMetall})]}),s.jsxs("group",{name:"AR2010_L01",children:[s.jsx("mesh",{name:"AR2010_01001",castShadow:!0,receiveShadow:!0,geometry:o.AR2010_01001.geometry,material:a.yaskawaBlueMetall}),s.jsx("mesh",{name:"AR2010_01001_1",castShadow:!0,receiveShadow:!0,geometry:o.AR2010_01001_1.geometry,material:a.blackMetall})]})]}),s.jsx("mesh",{name:"AR2010_L00",castShadow:!0,receiveShadow:!0,geometry:o.AR2010_L00.geometry,material:a.yaskawaBlueMetall,rotation:[-Math.PI/2,0,0]})]})})})]})}function u0({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=ie.useGLTF(e),o=n.nodes,a=n.materials,i=[0,-Math.PI/2,0,0,0,0],l=[1,-1,1,1,1,1];function c(u,d){u.forEach((h,m)=>h.rotation.y=l[m]*d[m]+i[m])}return s.jsxs(s.Fragment,{children:[s.jsx(_e,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:c}),s.jsx("group",{...r,dispose:null,children:s.jsxs("group",{name:"Scene",children:[s.jsxs(S.animated.group,{name:"AR3120_J00",children:[s.jsxs(S.animated.group,{name:"AR3120_J01",position:[.145,0,0],rotation:[-Math.PI/2,-Math.PI/2,0],children:[s.jsxs(S.animated.group,{name:"AR3120_J02",position:[1.15,0,0],rotation:[-Math.PI,0,0],children:[s.jsxs(S.animated.group,{name:"AR3120_J03",position:[.25,0,0],rotation:[-Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"AR3120_J04",position:[0,-1.812,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"AR3120_J05",rotation:[-Math.PI/2,0,0],children:[s.jsx("group",{name:"AR3120_FLG",position:[0,-.1,0],rotation:[-Math.PI,0,0]}),s.jsx("mesh",{name:"AR3120_L06",castShadow:!0,receiveShadow:!0,geometry:o.AR3120_L06.geometry,material:a["Metal.001"],rotation:[Math.PI/2,-Math.PI/2,0]})]}),s.jsx("mesh",{name:"AR3120_L05",castShadow:!0,receiveShadow:!0,geometry:o.AR3120_L05.geometry,material:a["Blue.001"],rotation:[Math.PI/2,0,Math.PI/2]})]}),s.jsxs("group",{name:"AR3120_L04",rotation:[Math.PI/2,-Math.PI/2,0],children:[s.jsx("mesh",{name:"R_AXIS_GP20HL001",castShadow:!0,receiveShadow:!0,geometry:o.R_AXIS_GP20HL001.geometry,material:a["Blue.001"]}),s.jsx("mesh",{name:"R_AXIS_GP20HL001_1",castShadow:!0,receiveShadow:!0,geometry:o.R_AXIS_GP20HL001_1.geometry,material:a["White.001"]})]})]}),s.jsxs("group",{name:"AR3120_L03",rotation:[Math.PI,0,-Math.PI/2],children:[s.jsx("mesh",{name:"Mesh_3001",castShadow:!0,receiveShadow:!0,geometry:o.Mesh_3001.geometry,material:a["Blue.001"]}),s.jsx("mesh",{name:"Mesh_3001_1",castShadow:!0,receiveShadow:!0,geometry:o.Mesh_3001_1.geometry,material:a["Black.001"]})]})]}),s.jsx("mesh",{name:"AR3120_L02",castShadow:!0,receiveShadow:!0,geometry:o.AR3120_L02.geometry,material:a["Blue.001"],position:[0,-.146,0],rotation:[Math.PI,0,0]})]}),s.jsxs("group",{name:"AR3120_L01",position:[0,-.228,0],rotation:[0,-1.571,0],children:[s.jsx("mesh",{name:"S_AXIS_GP20HL001",castShadow:!0,receiveShadow:!0,geometry:o.S_AXIS_GP20HL001.geometry,material:a["Blue.001"]}),s.jsx("mesh",{name:"S_AXIS_GP20HL001_1",castShadow:!0,receiveShadow:!0,geometry:o.S_AXIS_GP20HL001_1.geometry,material:a["Black.001"]})]})]}),s.jsx("mesh",{name:"AR3120_L00",castShadow:!0,receiveShadow:!0,geometry:o.AR3120_L00.geometry,material:a["Blue.001"],position:[0,-.54,0]})]})})]})}function d0({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=ie.useGLTF(e),o=n.nodes,a=n.materials,i=[0,Math.PI/2,0,0,0,0];function l(c,u){c.forEach((d,h)=>d.rotation.y=u[h]+i[h])}return s.jsxs(s.Fragment,{children:[s.jsx(_e,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:l}),s.jsx("group",{...r,dispose:null,children:s.jsxs("group",{name:"Scene",children:[s.jsxs(S.animated.group,{name:"CRX10iA_J00",children:[s.jsxs(S.animated.group,{name:"CRX10iA_J01",rotation:[Math.PI/2,Math.PI/2,0],children:[s.jsxs(S.animated.group,{name:"CRX10iA_J02",position:[.54,0,0],children:[s.jsxs(S.animated.group,{name:"CRX10iA_J03",rotation:[-Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"CRX10iA_J04",position:[0,-.54,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"CRX10iA_J05",position:[0,.15,0],rotation:[-Math.PI/2,0,0],children:[s.jsx("group",{name:"CRX10iA_FLG",position:[0,-.16,0],rotation:[-Math.PI,0,0]}),s.jsx("mesh",{name:"CRX10iA_L06",castShadow:!0,receiveShadow:!0,geometry:o.CRX10iA_L06.geometry,material:a.Fanuc_BlackMetal,position:[0,-.16,0],rotation:[0,0,-Math.PI/2]})]}),s.jsxs("group",{name:"CRX10iA_L05",position:[0,.15,0],rotation:[-Math.PI/2,0,-Math.PI/2],children:[s.jsx("mesh",{name:"J5CASING_UNIT001",castShadow:!0,receiveShadow:!0,geometry:o.J5CASING_UNIT001.geometry,material:a.Fanuc_WhitePlastic}),s.jsx("mesh",{name:"J5CASING_UNIT001_1",castShadow:!0,receiveShadow:!0,geometry:o.J5CASING_UNIT001_1.geometry,material:a.Fanuc_Green})]})]}),s.jsxs("group",{name:"CRX10iA_L04",position:[0,-.54,0],rotation:[0,0,-Math.PI/2],children:[s.jsx("mesh",{name:"NAME_LABEL_CRX_10iA",castShadow:!0,receiveShadow:!0,geometry:o.NAME_LABEL_CRX_10iA.geometry,material:a.Fanuc_RedPlastic}),s.jsx("mesh",{name:"NAME_LABEL_CRX_10iA_1",castShadow:!0,receiveShadow:!0,geometry:o.NAME_LABEL_CRX_10iA_1.geometry,material:a.Fanuc_BlackPlastic}),s.jsx("mesh",{name:"NAME_LABEL_CRX_10iA_2",castShadow:!0,receiveShadow:!0,geometry:o.NAME_LABEL_CRX_10iA_2.geometry,material:a.Fanuc_WhitePlastic})]})]}),s.jsx("mesh",{name:"CRX10iA_L03",castShadow:!0,receiveShadow:!0,geometry:o.CRX10iA_L03.geometry,material:a.Fanuc_WhitePlastic,rotation:[-Math.PI/2,0,-Math.PI/2]})]}),s.jsx("mesh",{name:"CRX10iA_L02",castShadow:!0,receiveShadow:!0,geometry:o.CRX10iA_L02.geometry,material:a.Fanuc_WhitePlastic,rotation:[-Math.PI/2,0,-Math.PI/2]})]}),s.jsxs("group",{name:"CRX10iA_L01",position:[0,-.117,0],children:[s.jsx("mesh",{name:"J2BASE_UNIT001",castShadow:!0,receiveShadow:!0,geometry:o.J2BASE_UNIT001.geometry,material:a.Fanuc_Green}),s.jsx("mesh",{name:"J2BASE_UNIT001_1",castShadow:!0,receiveShadow:!0,geometry:o.J2BASE_UNIT001_1.geometry,material:a.Fanuc_WhitePlastic}),s.jsx("mesh",{name:"J2BASE_UNIT001_2",castShadow:!0,receiveShadow:!0,geometry:o.J2BASE_UNIT001_2.geometry,material:a.Fanuc_GreenLED})]})]}),s.jsx("mesh",{name:"CRX10iA_L00",castShadow:!0,receiveShadow:!0,geometry:o.CRX10iA_L00.geometry,material:a.Fanuc_BlackMetal,position:[0,-.245,0]})]})})]})}function m0({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=ie.useGLTF(e),o=n.nodes,a=n.materials,i=[0,Math.PI/2,0,0,0,0];function l(c,u){c.forEach((d,h)=>d.rotation.y=u[h]+i[h])}return s.jsxs(s.Fragment,{children:[s.jsx(_e,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:l}),s.jsx("group",{...r,dispose:null,children:s.jsxs("group",{name:"Scene",children:[s.jsx("mesh",{name:"link_0",castShadow:!0,receiveShadow:!0,geometry:o.link_0.geometry,material:a.fanuc_metal_black}),s.jsxs(S.animated.group,{name:"FANUC_CRX20iAL_J00",position:[0,-.245,0],children:[s.jsxs(S.animated.group,{name:"FANUC_CRX20iAL_J01",position:[0,.245,0],rotation:[Math.PI/2,Math.PI/2,0],children:[s.jsxs(S.animated.group,{name:"FANUC_CRX20iAL_J02",position:[.71,0,0],children:[s.jsxs(S.animated.group,{name:"FANUC_CRX20iAL_J03",rotation:[-Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"FANUC_CRX20iAL_J04",position:[0,-.54,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"FANUC_CRX20iAL_J05",position:[0,.15,0],rotation:[-Math.PI/2,0,0],children:[s.jsx(S.animated.group,{name:"FANUC_CRX20iAL_FLG",position:[0,-.16,0],rotation:[-Math.PI,0,0]}),s.jsx("mesh",{name:"link_6",castShadow:!0,receiveShadow:!0,geometry:o.link_6.geometry,material:a.fanuc_metal_black,position:[-.71,.54,-.15],rotation:[0,0,-Math.PI/2]})]}),s.jsxs(S.animated.group,{name:"link_5",position:[-.71,0,-.54],rotation:[-Math.PI/2,0,-Math.PI/2],children:[s.jsx("mesh",{name:"shape053",castShadow:!0,receiveShadow:!0,geometry:o.shape053.geometry,material:a.fanuc_white}),s.jsx("mesh",{name:"shape053_1",castShadow:!0,receiveShadow:!0,geometry:o.shape053_1.geometry,material:a.fanuc_green})]})]}),s.jsxs(S.animated.group,{name:"link_4",position:[-.71,0,0],rotation:[0,0,-Math.PI/2],children:[s.jsx("mesh",{name:"shape054",castShadow:!0,receiveShadow:!0,geometry:o.shape054.geometry,material:a.fanuc_white}),s.jsx("mesh",{name:"shape054_1",castShadow:!0,receiveShadow:!0,geometry:o.shape054_1.geometry,material:a.fanuc_red}),s.jsx("mesh",{name:"shape054_2",castShadow:!0,receiveShadow:!0,geometry:o.shape054_2.geometry,material:a.fanuc_metal_black})]})]}),s.jsxs(S.animated.group,{name:"link_3",position:[-.71,0,0],rotation:[-Math.PI/2,0,-Math.PI/2],children:[s.jsx("mesh",{name:"shape009",castShadow:!0,receiveShadow:!0,geometry:o.shape009.geometry,material:a.fanuc_green}),s.jsx("mesh",{name:"shape009_1",castShadow:!0,receiveShadow:!0,geometry:o.shape009_1.geometry,material:a.fanuc_white})]})]}),s.jsx("mesh",{name:"link_2",castShadow:!0,receiveShadow:!0,geometry:o.link_2.geometry,material:a.fanuc_white,rotation:[-Math.PI/2,0,-Math.PI/2]})]}),s.jsxs("group",{name:"link_1",position:[0,.245,0],children:[s.jsx("mesh",{name:"shape005",castShadow:!0,receiveShadow:!0,geometry:o.shape005.geometry,material:a.fanuc_white}),s.jsx("mesh",{name:"shape005_1",castShadow:!0,receiveShadow:!0,geometry:o.shape005_1.geometry,material:a.fanuc_green})]})]})]})})]})}function h0({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=ie.useGLTF(e),o=n.nodes,a=n.materials,i=[0,Math.PI/2,0,0,0,0];function l(c,u){c.forEach((d,h)=>d.rotation.y=u[h]+i[h])}return s.jsxs(s.Fragment,{children:[s.jsx(_e,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:l}),s.jsx("group",{...r,dispose:null,children:s.jsxs("group",{name:"Scene",position:[0,-.37,0],children:[s.jsxs("group",{name:"CRX25iA_L00",children:[s.jsx("mesh",{name:"J1BASE_NetGen_Coarse",castShadow:!0,receiveShadow:!0,geometry:o.J1BASE_NetGen_Coarse.geometry,material:a.Fanuc_BlackMetal}),s.jsx("mesh",{name:"J1BASE_NetGen_Coarse_1",castShadow:!0,receiveShadow:!0,geometry:o.J1BASE_NetGen_Coarse_1.geometry,material:a.Fanuc_GreenPlastic})]}),s.jsxs(S.animated.group,{name:"CRX25iA_J00",children:[s.jsxs(S.animated.group,{name:"CRX25iA_J01",position:[0,.37,0],rotation:[Math.PI/2,Math.PI/2,0],children:[s.jsxs(S.animated.group,{name:"CRX25iA_J02",position:[.95,0,0],children:[s.jsxs(S.animated.group,{name:"CRX25iA_J03",rotation:[-Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"CRX25iA_J04",position:[0,-.75,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"CRX25iA_J05",position:[0,.185,0],rotation:[-Math.PI/2,0,0],children:[s.jsx("group",{name:"CRX25iA_FLG",position:[0,-.18,0],rotation:[-Math.PI,0,0]}),s.jsx("mesh",{name:"CRX25iA_L06",castShadow:!0,receiveShadow:!0,geometry:o.CRX25iA_L06.geometry,material:a.Fanuc_BlackMetal,position:[0,-.18,0]})]}),s.jsxs("group",{name:"CRX25iA_L05",position:[0,.185,0],children:[s.jsx("mesh",{name:"J6CASING_NetGen_Coarse",castShadow:!0,receiveShadow:!0,geometry:o.J6CASING_NetGen_Coarse.geometry,material:a.Fanuc_WhitePlastic}),s.jsx("mesh",{name:"J6CASING_NetGen_Coarse_1",castShadow:!0,receiveShadow:!0,geometry:o.J6CASING_NetGen_Coarse_1.geometry,material:a.Fanuc_GreenPlastic})]})]}),s.jsxs("group",{name:"CRX25iA_L04",position:[0,-.75,0],children:[s.jsx("mesh",{name:"J3ARM_NetGen_Coarse",castShadow:!0,receiveShadow:!0,geometry:o.J3ARM_NetGen_Coarse.geometry,material:a.Fanuc_WhitePlastic}),s.jsx("mesh",{name:"J3ARM_NetGen_Coarse_1",castShadow:!0,receiveShadow:!0,geometry:o.J3ARM_NetGen_Coarse_1.geometry,material:a.Fanuc_RedPlastic}),s.jsx("mesh",{name:"J3ARM_NetGen_Coarse_2",castShadow:!0,receiveShadow:!0,geometry:o.J3ARM_NetGen_Coarse_2.geometry,material:a.Fanuc_BlackPlastic})]})]}),s.jsxs("group",{name:"CRX25iA_L03",children:[s.jsx("mesh",{name:"J3CASING_NetGen_Coarse",castShadow:!0,receiveShadow:!0,geometry:o.J3CASING_NetGen_Coarse.geometry,material:a.Fanuc_WhitePlastic}),s.jsx("mesh",{name:"J3CASING_NetGen_Coarse_1",castShadow:!0,receiveShadow:!0,geometry:o.J3CASING_NetGen_Coarse_1.geometry,material:a.Fanuc_GreenPlastic})]})]}),s.jsx("mesh",{name:"CRX25iA_L02",castShadow:!0,receiveShadow:!0,geometry:o.CRX25iA_L02.geometry,material:a.Fanuc_WhitePlastic})]}),s.jsxs("group",{name:"CRX25iA_L01",position:[0,.18,0],children:[s.jsx("mesh",{name:"J2BASE_NetGen_Coarse",castShadow:!0,receiveShadow:!0,geometry:o.J2BASE_NetGen_Coarse.geometry,material:a.Fanuc_WhitePlastic}),s.jsx("mesh",{name:"J2BASE_NetGen_Coarse_1",castShadow:!0,receiveShadow:!0,geometry:o.J2BASE_NetGen_Coarse_1.geometry,material:a.Fanuc_GreenLED})]})]})]})})]})}function f0({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=ie.useGLTF(e),o=n.nodes,a=n.materials,i=[0,Math.PI/2,0,0,0,0];function l(c,u){c.forEach((d,h)=>d.rotation.y=u[h]+i[h])}return s.jsxs(s.Fragment,{children:[s.jsx(_e,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:l}),s.jsx("group",{...r,dispose:null,children:s.jsxs("group",{name:"Scene",children:[s.jsxs(S.animated.group,{name:"CRX10iA_J00",children:[s.jsxs(S.animated.group,{name:"CRX10iA_J01",position:[0,.245,0],rotation:[Math.PI/2,Math.PI/2,0],children:[s.jsxs(S.animated.group,{name:"CRX10iA_J02",position:[.71,0,0],children:[s.jsxs(S.animated.group,{name:"CRX10iA_J03",rotation:[-Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"CRX10iA_J04",position:[0,-.54,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"CRX10iA_J05",position:[0,.15,0],rotation:[-Math.PI/2,0,0],children:[s.jsx("group",{name:"CRX10iA_FLG",position:[0,-.16,0],rotation:[-Math.PI,0,0]}),s.jsx("mesh",{name:"CRX10iA_L06",castShadow:!0,receiveShadow:!0,geometry:o.CRX10iA_L06.geometry,material:a["Fanuc_BlackMetal.001"],position:[0,-.16,0],rotation:[0,0,-Math.PI/2]})]}),s.jsxs("group",{name:"CRX10iA_L05",position:[0,.15,0],rotation:[-Math.PI/2,0,-Math.PI/2],children:[s.jsx("mesh",{name:"J5CASING_UNIT001",castShadow:!0,receiveShadow:!0,geometry:o.J5CASING_UNIT001.geometry,material:a["Fanuc_WhitePlastic.001"]}),s.jsx("mesh",{name:"J5CASING_UNIT001_1",castShadow:!0,receiveShadow:!0,geometry:o.J5CASING_UNIT001_1.geometry,material:a["Fanuc_Green.001"]})]})]}),s.jsxs("group",{name:"CRX10iA_L04",position:[0,-.54,0],rotation:[0,0,-Math.PI/2],children:[s.jsx("mesh",{name:"NAME_LABEL_CRX_10iA_L001",castShadow:!0,receiveShadow:!0,geometry:o.NAME_LABEL_CRX_10iA_L001.geometry,material:a["Fanuc_WhitePlastic.001"]}),s.jsx("mesh",{name:"NAME_LABEL_CRX_10iA_L001_1",castShadow:!0,receiveShadow:!0,geometry:o.NAME_LABEL_CRX_10iA_L001_1.geometry,material:a["Fanuc_RedPlastic.001"]}),s.jsx("mesh",{name:"NAME_LABEL_CRX_10iA_L001_2",castShadow:!0,receiveShadow:!0,geometry:o.NAME_LABEL_CRX_10iA_L001_2.geometry,material:a["Fanuc_BlackPlastic.001"]})]})]}),s.jsxs("group",{name:"CRX10iA_L03",rotation:[-Math.PI/2,0,-Math.PI/2],children:[s.jsx("mesh",{name:"J3CASING_UNIT001",castShadow:!0,receiveShadow:!0,geometry:o.J3CASING_UNIT001.geometry,material:a["Fanuc_WhitePlastic.001"]}),s.jsx("mesh",{name:"J3CASING_UNIT001_1",castShadow:!0,receiveShadow:!0,geometry:o.J3CASING_UNIT001_1.geometry,material:a["Fanuc_Green.001"]})]})]}),s.jsx("mesh",{name:"CRX10iA_L02",castShadow:!0,receiveShadow:!0,geometry:o.CRX10iA_L02.geometry,material:a["Fanuc_WhitePlastic.001"],rotation:[-Math.PI/2,0,-Math.PI/2]})]}),s.jsxs("group",{name:"CRX10iA_L01",position:[0,.128,0],children:[s.jsx("mesh",{name:"J2BASE_UNIT001",castShadow:!0,receiveShadow:!0,geometry:o.J2BASE_UNIT001.geometry,material:a["Fanuc_WhitePlastic.001"]}),s.jsx("mesh",{name:"J2BASE_UNIT001_1",castShadow:!0,receiveShadow:!0,geometry:o.J2BASE_UNIT001_1.geometry,material:a["Fanuc_Green.001"]}),s.jsx("mesh",{name:"J2BASE_UNIT001_2",castShadow:!0,receiveShadow:!0,geometry:o.J2BASE_UNIT001_2.geometry,material:a["Fanuc_GreenLED.001"]})]})]}),s.jsx("mesh",{name:"CRX10iA_L00",castShadow:!0,receiveShadow:!0,geometry:o.CRX10iA_L00.geometry,material:a["Fanuc_BlackMetal.001"]})]})})]})}function p0({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=ie.useGLTF(e),o=n.nodes,a=n.materials,i=[0,0,-Math.PI/2,0,0,0];function l(c,u){c.forEach((d,h)=>d.rotation.y=u[h]+i[h])}return s.jsxs(s.Fragment,{children:[s.jsx(_e,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:l}),s.jsx("group",{...r,dispose:null,children:s.jsx("group",{name:"Scene",children:s.jsxs("group",{name:"kuka_kr210_2700",children:[s.jsxs(S.animated.group,{name:"joint_01",children:[s.jsxs(S.animated.group,{name:"joint_02",position:[.33,.645,0],rotation:[-Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"joint_03",position:[1.15,0,0],rotation:[0,-Math.PI/2,0],children:[s.jsxs(S.animated.group,{name:"joint_04",position:[.115,0,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"joint_05",position:[0,-1.22,0],rotation:[-Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"joint_06",rotation:[Math.PI/2,0,0],children:[s.jsx("group",{name:"flange",position:[0,-.215,0],rotation:[-Math.PI,0,0]}),s.jsx("group",{name:"link_6",position:[0,-.17,0],rotation:[0,0,-Math.PI/2],children:s.jsx("mesh",{name:"visuals006",castShadow:!0,receiveShadow:!0,geometry:o.visuals006.geometry,material:a.material_Material_Metall_black})})]}),s.jsx("group",{name:"link_5",position:[0,.059,0],rotation:[Math.PI/2,0,-Math.PI/2],children:s.jsxs("group",{name:"visuals005",children:[s.jsx("mesh",{name:"visuals005_1",castShadow:!0,receiveShadow:!0,geometry:o.visuals005_1.geometry,material:a.material_Material_metal_black}),s.jsx("mesh",{name:"visuals005_2",castShadow:!0,receiveShadow:!0,geometry:o.visuals005_2.geometry,material:a.material_Material_kuka_orange})]})})]}),s.jsx("group",{name:"link_4",position:[0,-.869,0],rotation:[0,0,-Math.PI/2],children:s.jsxs("group",{name:"visuals004",children:[s.jsx("mesh",{name:"visuals004_1",castShadow:!0,receiveShadow:!0,geometry:o.visuals004_1.geometry,material:a.material_Material_metal_black}),s.jsx("mesh",{name:"visuals004_2",castShadow:!0,receiveShadow:!0,geometry:o.visuals004_2.geometry,material:a.material_Material_kuka_orange})]})})]}),s.jsx("group",{name:"link_3",position:[0,-.105,0],rotation:[Math.PI/2,0,-Math.PI/2],children:s.jsxs("group",{name:"visuals003",children:[s.jsx("mesh",{name:"visuals003_1",castShadow:!0,receiveShadow:!0,geometry:o.visuals003_1.geometry,material:a.material_Material_rubber}),s.jsx("mesh",{name:"visuals003_2",castShadow:!0,receiveShadow:!0,geometry:o.visuals003_2.geometry,material:a.material_Material_aluminium}),s.jsx("mesh",{name:"visuals003_3",castShadow:!0,receiveShadow:!0,geometry:o.visuals003_3.geometry,material:a.material_Material_metal_black}),s.jsx("mesh",{name:"visuals003_4",castShadow:!0,receiveShadow:!0,geometry:o.visuals003_4.geometry,material:a.material_Material_kuka_black}),s.jsx("mesh",{name:"visuals003_5",castShadow:!0,receiveShadow:!0,geometry:o.visuals003_5.geometry,material:a.material_Material_Rubber_black}),s.jsx("mesh",{name:"visuals003_6",castShadow:!0,receiveShadow:!0,geometry:o.visuals003_6.geometry,material:a.material_Material_kuka_orange}),s.jsx("mesh",{name:"visuals003_7",castShadow:!0,receiveShadow:!0,geometry:o.visuals003_7.geometry,material:a.material_Material_stainless_steel})]})})]}),s.jsx("group",{name:"link_2",position:[0,.009,0],rotation:[Math.PI/2,0,0],children:s.jsxs("group",{name:"visuals002",children:[s.jsx("mesh",{name:"visuals002_1",castShadow:!0,receiveShadow:!0,geometry:o.visuals002_1.geometry,material:a.material_Material_metal_black}),s.jsx("mesh",{name:"visuals002_2",castShadow:!0,receiveShadow:!0,geometry:o.visuals002_2.geometry,material:a.material_Material_Rubber_black}),s.jsx("mesh",{name:"visuals002_3",castShadow:!0,receiveShadow:!0,geometry:o.visuals002_3.geometry,material:a.material_Material_kuka_orange})]})})]}),s.jsx("group",{name:"link_1",position:[0,.236,0],children:s.jsxs("group",{name:"visuals001",children:[s.jsx("mesh",{name:"visuals001_1",castShadow:!0,receiveShadow:!0,geometry:o.visuals001_1.geometry,material:a.material_Material_kuka_black}),s.jsx("mesh",{name:"visuals001_2",castShadow:!0,receiveShadow:!0,geometry:o.visuals001_2.geometry,material:a.material_Material_kuka_orange}),s.jsx("mesh",{name:"visuals001_3",castShadow:!0,receiveShadow:!0,geometry:o.visuals001_3.geometry,material:a.material_Material_rubber}),s.jsx("mesh",{name:"visuals001_4",castShadow:!0,receiveShadow:!0,geometry:o.visuals001_4.geometry,material:a.material_Material_metal_black}),s.jsx("mesh",{name:"visuals001_5",castShadow:!0,receiveShadow:!0,geometry:o.visuals001_5.geometry,material:a.material_Material_aluminium}),s.jsx("mesh",{name:"visuals001_6",castShadow:!0,receiveShadow:!0,geometry:o.visuals001_6.geometry,material:a.material_Material_rubber_black}),s.jsx("mesh",{name:"visuals001_7",castShadow:!0,receiveShadow:!0,geometry:o.visuals001_7.geometry,material:a.material_Material_stainless_steel})]})})]}),s.jsx("group",{name:"link_0",children:s.jsxs("group",{name:"visuals",children:[s.jsx("mesh",{name:"visuals_1",castShadow:!0,receiveShadow:!0,geometry:o.visuals_1.geometry,material:a.material_Material_kuka_black}),s.jsx("mesh",{name:"visuals_2",castShadow:!0,receiveShadow:!0,geometry:o.visuals_2.geometry,material:a.material_Material_metal_black})]})})]})})})]})}function g0({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=ie.useGLTF(e),o=n.nodes,a=n.materials,i=[0,0,-Math.PI/2,0,0,0];function l(c,u){c.forEach((d,h)=>d.rotation.y=u[h]+i[h])}return s.jsxs(s.Fragment,{children:[s.jsx(_e,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:l}),s.jsx("group",{...r,dispose:null,children:s.jsx("group",{name:"Scene",children:s.jsxs("group",{name:"kuka_kr270_2700_ultra",children:[s.jsxs(S.animated.group,{name:"joint_01",children:[s.jsxs(S.animated.group,{name:"joint_02",position:[.35,.675,0],rotation:[-Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"joint_03",position:[1.15,0,0],rotation:[0,-Math.PI/2,0],children:[s.jsxs(S.animated.group,{name:"joint_04",position:[-.041,0,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"joint_05",position:[0,-1.2,0],rotation:[-Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"joint_06",rotation:[Math.PI/2,0,0],children:[s.jsx("group",{name:"flange",position:[0,-.24,0],rotation:[-Math.PI,0,0]}),s.jsx("group",{name:"link_6",position:[0,-.213,0],rotation:[0,0,-Math.PI/2],children:s.jsxs("group",{name:"visuals006",children:[s.jsx("mesh",{name:"visuals006_1",castShadow:!0,receiveShadow:!0,geometry:o.visuals006_1.geometry,material:a.material_Material_Farbe__1_}),s.jsx("mesh",{name:"visuals006_2",castShadow:!0,receiveShadow:!0,geometry:o.visuals006_2.geometry,material:a.material_Material_Metall})]})})]}),s.jsx("group",{name:"link_5",position:[0,.044,0],rotation:[Math.PI/2,0,-Math.PI/2],children:s.jsx("mesh",{name:"visuals005",castShadow:!0,receiveShadow:!0,geometry:o.visuals005.geometry,material:a.material_Material_Farbe})})]}),s.jsx("group",{name:"link_4",position:[0,-.954,0],rotation:[0,0,-Math.PI/2],children:s.jsx("mesh",{name:"visuals004",castShadow:!0,receiveShadow:!0,geometry:o.visuals004.geometry,material:a.material_Material_Farbe})})]}),s.jsx("group",{name:"link_3",position:[0,-.178,0],rotation:[Math.PI/2,0,-Math.PI/2],children:s.jsxs("group",{name:"visuals003",children:[s.jsx("mesh",{name:"visuals003_1",castShadow:!0,receiveShadow:!0,geometry:o.visuals003_1.geometry,material:a.material_Material_Farbe__1_}),s.jsx("mesh",{name:"visuals003_2",castShadow:!0,receiveShadow:!0,geometry:o.visuals003_2.geometry,material:a.material_Material_Farbe__2_}),s.jsx("mesh",{name:"visuals003_3",castShadow:!0,receiveShadow:!0,geometry:o.visuals003_3.geometry,material:a.material_Material_Metall}),s.jsx("mesh",{name:"visuals003_4",castShadow:!0,receiveShadow:!0,geometry:o.visuals003_4.geometry,material:a.material_Material_Farbe})]})})]}),s.jsx("group",{name:"link_2",rotation:[Math.PI/2,0,0],children:s.jsxs("group",{name:"visuals002",children:[s.jsx("mesh",{name:"visuals002_1",castShadow:!0,receiveShadow:!0,geometry:o.visuals002_1.geometry,material:a.material_Material_Farbe}),s.jsx("mesh",{name:"visuals002_2",castShadow:!0,receiveShadow:!0,geometry:o.visuals002_2.geometry,material:a.material_Material_Farbe__1_}),s.jsx("mesh",{name:"visuals002_3",castShadow:!0,receiveShadow:!0,geometry:o.visuals002_3.geometry,material:a.material_Material_Metall}),s.jsx("mesh",{name:"visuals002_4",castShadow:!0,receiveShadow:!0,geometry:o.visuals002_4.geometry,material:a.material_Material_Farbe__2_})]})})]}),s.jsx("group",{name:"link_1",position:[0,.226,0],children:s.jsxs("group",{name:"visuals001",children:[s.jsx("mesh",{name:"visuals001_1",castShadow:!0,receiveShadow:!0,geometry:o.visuals001_1.geometry,material:a.material_Material_Metall}),s.jsx("mesh",{name:"visuals001_2",castShadow:!0,receiveShadow:!0,geometry:o.visuals001_2.geometry,material:a.material_Material_Farbe__1_}),s.jsx("mesh",{name:"visuals001_3",castShadow:!0,receiveShadow:!0,geometry:o.visuals001_3.geometry,material:a.material_Material_Farbe__2_}),s.jsx("mesh",{name:"visuals001_4",castShadow:!0,receiveShadow:!0,geometry:o.visuals001_4.geometry,material:a.material_Material_Farbe})]})})]}),s.jsxs("group",{name:"link_0-base",children:[s.jsx("group",{name:"joint_1"}),s.jsxs("group",{name:"visuals",children:[s.jsx("mesh",{name:"visuals_1",castShadow:!0,receiveShadow:!0,geometry:o.visuals_1.geometry,material:a.material_Material_Metall}),s.jsx("mesh",{name:"visuals_2",castShadow:!0,receiveShadow:!0,geometry:o.visuals_2.geometry,material:a.material_Material_Farbe__1_})]})]})]})})})]})}function y0({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=ie.useGLTF(e),o=n.nodes,a=n.materials,i=[0,Math.PI/2,0,0,0,0];function l(c,u){c.forEach((d,h)=>d.rotation.y=u[h]+i[h])}return s.jsxs(s.Fragment,{children:[s.jsx(_e,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:l}),s.jsx("group",{...r,dispose:null,children:s.jsx("group",{name:"Scene",children:s.jsxs("group",{name:"M10iD",rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"M10iD_J01",rotation:[-Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"M10iD_J02",position:[.075,0,0],rotation:[Math.PI/2,Math.PI/2,0],children:[s.jsxs(S.animated.group,{name:"M10iD_J03",position:[.64,0,0],children:[s.jsxs(S.animated.group,{name:"M10iD_J04",position:[.195,0,0],rotation:[-Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"M10iD_J05",position:[0,-.7,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"M10iD_J06",rotation:[-Math.PI/2,0,0],children:[s.jsx("group",{name:"M10iD_FLG",position:[0,-.075,0],rotation:[-Math.PI,0,0]}),s.jsx("mesh",{name:"M10iD_L06",castShadow:!0,receiveShadow:!0,geometry:o.M10iD_L06.geometry,material:a.Fanuc_BlackMetal_AO,position:[-.835,.775,0],rotation:[0,0,-Math.PI/2]})]}),s.jsx("mesh",{name:"M10iD_L05",castShadow:!0,receiveShadow:!0,geometry:o.M10iD_L05.geometry,material:a.Fanuc_BlackMetal_AO,position:[-.835,0,-.775],rotation:[-Math.PI/2,0,-Math.PI/2]})]}),s.jsxs("group",{name:"M10iD_L04",position:[-.835,.075,0],rotation:[0,0,-Math.PI/2],children:[s.jsx("mesh",{name:"Mesh_654",castShadow:!0,receiveShadow:!0,geometry:o.Mesh_654.geometry,material:a.Fanuc_Yellow_Textured_AO}),s.jsx("mesh",{name:"Mesh_654_1",castShadow:!0,receiveShadow:!0,geometry:o.Mesh_654_1.geometry,material:a.Fanuc_BlackMetal_AO})]})]}),s.jsxs("group",{name:"M10iD_L03",position:[-.64,0,-.075],rotation:[-Math.PI/2,0,-Math.PI/2],children:[s.jsx("mesh",{name:"Mesh_378",castShadow:!0,receiveShadow:!0,geometry:o.Mesh_378.geometry,material:a.Material_1_AO}),s.jsx("mesh",{name:"Mesh_378_1",castShadow:!0,receiveShadow:!0,geometry:o.Mesh_378_1.geometry,material:a.Fanuc_Yellow_Textured_AO}),s.jsx("mesh",{name:"Mesh_378_2",castShadow:!0,receiveShadow:!0,geometry:o.Mesh_378_2.geometry,material:a.Fanuc_BlackMetal_AO})]})]}),s.jsxs("group",{name:"M10iD_L02",position:[0,0,-.075],rotation:[-Math.PI/2,0,-Math.PI/2],children:[s.jsx("mesh",{name:"Mesh_358",castShadow:!0,receiveShadow:!0,geometry:o.Mesh_358.geometry,material:a.Fanuc_Yellow_Textured_AO}),s.jsx("mesh",{name:"Mesh_358_1",castShadow:!0,receiveShadow:!0,geometry:o.Mesh_358_1.geometry,material:a.Fanuc_BlackMetal_AO})]})]}),s.jsxs("group",{name:"M10iD_L01",children:[s.jsx("mesh",{name:"Mesh_356",castShadow:!0,receiveShadow:!0,geometry:o.Mesh_356.geometry,material:a.Fanuc_Yellow_Textured_AO}),s.jsx("mesh",{name:"Mesh_356_1",castShadow:!0,receiveShadow:!0,geometry:o.Mesh_356_1.geometry,material:a.Material_1_AO}),s.jsx("mesh",{name:"Mesh_356_2",castShadow:!0,receiveShadow:!0,geometry:o.Mesh_356_2.geometry,material:a.Fanuc_BlackMetal_AO})]})]}),s.jsx("mesh",{name:"M10iD_L00",castShadow:!0,receiveShadow:!0,geometry:o.M10iD_L00.geometry,material:a.Fanuc_BlackMetal_AO,rotation:[-Math.PI/2,0,0]})]})})})]})}function Ea({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=ie.useGLTF(e),o=n.nodes,a=n.materials,i=[0,Math.PI/2,0,0,0,0];function l(c,u){c.forEach((d,h)=>d.rotation.y=u[h]+i[h])}return s.jsxs(s.Fragment,{children:[s.jsx(_e,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:l}),s.jsx("group",{...r,dispose:null,children:s.jsx("group",{name:"Scene",children:s.jsxs("group",{name:"M10iD",rotation:[0,0,0],children:[s.jsxs(S.animated.group,{name:"M20iD25_J00",children:[s.jsxs(S.animated.group,{name:"M20iD25_J01",position:[.075,0,0],rotation:[Math.PI/2,Math.PI/2,0],children:[s.jsxs(S.animated.group,{name:"M20iD25_J02",position:[.84,0,0],children:[s.jsxs(S.animated.group,{name:"M20iD25_J03",position:[.215,0,0],rotation:[-Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"M20iD25_J04",position:[0,-.89,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"M20iD25_J05",rotation:[-Math.PI/2,0,0],children:[s.jsx("group",{name:"M20iD25_FLG",position:[0,-.09,0],rotation:[-Math.PI,0,0]}),s.jsx("mesh",{name:"M20iD25_L06",castShadow:!0,receiveShadow:!0,geometry:o.M20iD25_L06.geometry,material:a.Fanuc_BlackMetal_AO,position:[0,-.09,0],rotation:[Math.PI/2,0,Math.PI]})]}),s.jsx("mesh",{name:"M20iD25_L05",castShadow:!0,receiveShadow:!0,geometry:o.M20iD25_L05.geometry,material:a.Fanuc_BlackMetal_AO,rotation:[Math.PI,Math.PI/2,0]})]}),s.jsxs("group",{name:"M20iD25_L04",position:[0,-.286,0],rotation:[-Math.PI/2,Math.PI/2,0],children:[s.jsx("mesh",{name:"Mesh_2",castShadow:!0,receiveShadow:!0,geometry:o.Mesh_2.geometry,material:a.Fanuc_Yellow_Textured_AO}),s.jsx("mesh",{name:"Mesh_2_1",castShadow:!0,receiveShadow:!0,geometry:o.Mesh_2_1.geometry,material:a.Fanuc_BlackMetal_AO})]})]}),s.jsxs("group",{name:"M20iD25_L03",position:[0,.406,0],rotation:[Math.PI,Math.PI/2,0],children:[s.jsx("mesh",{name:"Mesh_15",castShadow:!0,receiveShadow:!0,geometry:o.Mesh_15.geometry,material:a.Fanuc_BlackMetal_AO}),s.jsx("mesh",{name:"Mesh_15_1",castShadow:!0,receiveShadow:!0,geometry:o.Mesh_15_1.geometry,material:a.Fanuc_Yellow_Textured_AO}),s.jsx("mesh",{name:"Mesh_15_2",castShadow:!0,receiveShadow:!0,geometry:o.Mesh_15_2.geometry,material:a.Material_9_AO})]})]}),s.jsxs("group",{name:"M20iD25_L02",position:[0,.505,-.055],rotation:[-Math.PI,Math.PI/2,0],children:[s.jsx("mesh",{name:"Mesh_37",castShadow:!0,receiveShadow:!0,geometry:o.Mesh_37.geometry,material:a.Fanuc_BlackMetal_AO}),s.jsx("mesh",{name:"Mesh_37_1",castShadow:!0,receiveShadow:!0,geometry:o.Mesh_37_1.geometry,material:a.Fanuc_Yellow_Textured_AO})]})]}),s.jsxs("group",{name:"M20iD25_L01",rotation:[-Math.PI/2,0,0],children:[s.jsx("mesh",{name:"Mesh_45",castShadow:!0,receiveShadow:!0,geometry:o.Mesh_45.geometry,material:a.Material_9_AO}),s.jsx("mesh",{name:"Mesh_45_1",castShadow:!0,receiveShadow:!0,geometry:o.Mesh_45_1.geometry,material:a.Fanuc_Yellow_Textured_AO}),s.jsx("mesh",{name:"Mesh_45_2",castShadow:!0,receiveShadow:!0,geometry:o.Mesh_45_2.geometry,material:a.Fanuc_BlackMetal_AO})]})]}),s.jsx("mesh",{name:"M20iD25_L00",castShadow:!0,receiveShadow:!0,geometry:o.M20iD25_L00.geometry,material:a.Fanuc_BlackMetal_AO,position:[0,-.425,0],rotation:[-Math.PI/2,0,0]})]})})})]})}function _0({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=ie.useGLTF(e),o=n.nodes,a=n.materials,i=[0,-Math.PI/2,0,0,0,0];function l(c,u){c.forEach((d,h)=>d.rotation.y=u[h]+i[h])}return s.jsxs(s.Fragment,{children:[s.jsx(_e,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:l}),s.jsx("group",{...r,dispose:null,children:s.jsx("group",{name:"Scene",children:s.jsxs("group",{name:"IRB1200_7_70_IRC5",rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"IRB1200_7_70_IRC5_J01",rotation:[-Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"IRB1200_7_70_IRC5_J02",position:[0,.399,0],rotation:[-Math.PI/2,-Math.PI/2,0],children:[s.jsxs(S.animated.group,{name:"IRB1200_7_70_IRC5_J03",position:[.35,0,0],children:[s.jsxs(S.animated.group,{name:"IRB1200_7_70_IRC5_J04",position:[.042,0,0],rotation:[-Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"IRB1200_7_70_IRC5_J05",position:[0,.351,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"IRB1200_7_70_IRC5_J06",rotation:[Math.PI/2,0,-Math.PI],children:[s.jsx("group",{name:"IRB1200_7_70_IRC5_FLG",position:[0,.082,0]}),s.jsx("mesh",{name:"IRB1200_7_70_IRC5_L06",castShadow:!0,receiveShadow:!0,geometry:o.IRB1200_7_70_IRC5_L06.geometry,material:a["IRB1200_7-70_IRC5.003_Bake"]})]}),s.jsx("mesh",{name:"IRB1200_7_70_IRC5_L05",castShadow:!0,receiveShadow:!0,geometry:o.IRB1200_7_70_IRC5_L05.geometry,material:a["IRB1200_7-70_IRC5.003_Bake"]})]}),s.jsx("mesh",{name:"IRB1200_7_70_IRC5_L04",castShadow:!0,receiveShadow:!0,geometry:o.IRB1200_7_70_IRC5_L04.geometry,material:a["IRB1200_7-70_IRC5.003_Bake"]})]}),s.jsx("mesh",{name:"IRB1200_7_70_IRC5_L03",castShadow:!0,receiveShadow:!0,geometry:o.IRB1200_7_70_IRC5_L03.geometry,material:a["IRB1200_7-70_IRC5.003_Bake"]})]}),s.jsx("mesh",{name:"IRB1200_7_70_IRC5_L02",castShadow:!0,receiveShadow:!0,geometry:o.IRB1200_7_70_IRC5_L02.geometry,material:a["IRB1200_7-70_IRC5.003_Bake"]})]}),s.jsx("mesh",{name:"IRB1200_7_70_IRC5_L01",castShadow:!0,receiveShadow:!0,geometry:o.IRB1200_7_70_IRC5_L01.geometry,material:a["IRB1200_7-70_IRC5.003_Bake"],rotation:[Math.PI/2,0,0]})]}),s.jsx("mesh",{name:"IRB1200_7_70_IRC5_L00",castShadow:!0,receiveShadow:!0,geometry:o.IRB1200_7_70_IRC5_L00.geometry,material:a["IRB1200_7-70_IRC5.003_Bake"],rotation:[-Math.PI/2,0,0]})]})})})]})}const Ia="line",Na="mesh";function ao({rapidlyChangingMotionState:e,dhParameters:t,...r}){const n=new yt.Matrix4;function o(c,u){const d=new yt.Vector3,h=new yt.Quaternion,m=new yt.Vector3;n.decompose(d,h,m);const b=d.clone(),_=new yt.Matrix4().makeRotationY(c.theta+u*(c.reverse_rotation_direction?-1:1)).multiply(new yt.Matrix4().makeTranslation(0,c.d/1e3,0)).multiply(new yt.Matrix4().makeTranslation(c.a/1e3,0,0)).multiply(new yt.Matrix4().makeRotationX(c.alpha));return n.multiply(_),n.decompose(d,h,m),{a:b,b:d}}function a(c,u,d,h){if(!t)return;const m=t[c];if(!m)return;const{a:b,b:_}=o(m,h);u.geometry.setPositions([b.toArray(),_.toArray()].flat()),d.position.set(_.x,_.y,_.z)}function i(c,u){n.identity(),c.forEach((d,h)=>{a(h,d.getObjectByName(Ia),d.getObjectByName(Na),u[h])})}function l(c){return Vs(c,"^group_[0-9]+$")}return s.jsxs(s.Fragment,{children:[s.jsx(_e,{rapidlyChangingMotionState:e,robotRootObjectName:"Scene",onRotationChanged:i,jointCollector:l}),s.jsxs("group",{...r,name:"Scene",children:[s.jsxs("mesh",{children:[s.jsx("sphereGeometry",{args:[.01,32,32]}),s.jsx("meshStandardMaterial",{color:"black",depthTest:!0})]}),t.map((c,u)=>{const{a:d,b:h}=o(c,e.state.joint_position.joints[u]??0);return s.jsxs("group",{name:`group_${u}`,children:[s.jsx(ie.Line,{name:Ia,points:[d,h],color:"white",lineWidth:5}),s.jsxs("mesh",{name:Na,position:h,children:[s.jsx("sphereGeometry",{args:[.01,32,32]}),s.jsx("meshStandardMaterial",{color:"black",depthTest:!0})]},"mesh_"+u)]},"group_"+u)})]})]})}function Ws(e){return`https://cdn.jsdelivr.net/gh/wandelbotsgmbh/wandelbots-js-react-components/public/models/${e}.glb`}function Hs({rapidlyChangingMotionState:e,modelFromController:t,dhParameters:r,getModel:n=Ws,isGhost:o=!1,...a}){let i;const l=se.useRef(new _t.Group),c=se.useCallback(h=>{h!==null&&(l.current=h,console.log("robotRef.current",l.current),o&&l.current&&l.current.children.length>0&&u())},[o]),u=()=>{l.current&&!l.current.userData.ghostsCreated&&(l.current.traverse(h=>{if(h instanceof _t.Mesh&&!h.userData.isGhost){h.material instanceof _t.Material&&(h.material.colorWrite=!1);const m=h.clone(),b=h.clone();m.material=new _t.MeshStandardMaterial({depthTest:!0,depthWrite:!0,colorWrite:!1,polygonOffset:!0,polygonOffsetFactor:1}),m.userData.isGhost=!0,b.material=new _t.MeshStandardMaterial({color:"#D91433",opacity:.3,depthTest:!0,depthWrite:!1,transparent:!0,polygonOffset:!0,polygonOffsetFactor:-1}),b.userData.isGhost=!0,h.parent&&(h.parent.add(m),h.parent.add(b))}}),l.current.userData.ghostsCreated=!0)},d=()=>{if(l.current){const h=[];l.current.traverse(m=>{m instanceof _t.Mesh&&m.material instanceof _t.Material&&(m.material.colorWrite=!0),m instanceof _t.Mesh&&m.userData!==void 0&&m.userData&&m.userData.isGhost!==void 0&&m.userData.isGhost&&h.push(m)}),h.forEach(m=>{m.parent&&m.parent.remove(m)}),l.current.userData.ghostsCreated=!1}};switch(se.useEffect(()=>{o?u():d()},[o]),t){case"UniversalRobots_UR3":i=t0;break;case"UniversalRobots_UR3e":i=r0;break;case"UniversalRobots_UR5":i=n0;break;case"UniversalRobots_UR5e":i=o0;break;case"UniversalRobots_UR10":i=a0;break;case"UniversalRobots_UR10e":i=s0;break;case"Yaskawa_AR900":i=Ta;break;case"Yaskawa_GP7":i=Ta;break;case"Yaskawa_AR1440":i=i0;break;case"Yaskawa_AR1730":i=l0;break;case"Yaskawa_AR2010":i=c0;break;case"Yaskawa_AR3120":i=u0;break;case"FANUC_CRX10iA":i=d0;break;case"FANUC_CRX20iAL":i=m0;break;case"FANUC_CRX25iA":i=h0;break;case"FANUC_CRX25iAL":i=f0;break;case"FANUC_ARC_Mate_120iD":i=Ea;break;case"FANUC_ARC_Mate_120iD35":i=Ea;break;case"FANUC_ARC_Mate_100iD":i=y0;break;case"KUKA_KR210_R2700":i=p0;break;case"KUKA_KR270_R2700":i=g0;break;case"ABB_1200_07_7":i=_0;break;default:console.warn(`Unknown robot type: ${t}`),i=ao}return s.jsx(Ti.ErrorBoundary,{fallback:s.jsx(ao,{rapidlyChangingMotionState:e,dhParameters:r,...a}),children:s.jsx(se.Suspense,{fallback:s.jsx(ao,{rapidlyChangingMotionState:e,dhParameters:r,...a}),children:s.jsx("group",{ref:c,children:s.jsx(i,{rapidlyChangingMotionState:e,modelURL:n(t),dhParameters:r,...a})})})})}function b0({connectedMotionGroup:e,getModel:t=Ws,isGhost:r=!1,...n}){return e.dhParameters?s.jsx(Hs,{rapidlyChangingMotionState:e.rapidlyChangingMotionState,modelFromController:e.modelFromController||"",dhParameters:e.dhParameters,getModel:t,isGhost:r,...n}):null}function x0(){return s.jsx(ie.Environment,{children:s.jsx(S0,{})})}function S0({positions:e=[2,0,2,0,2,0,2,0]}){return s.jsxs(s.Fragment,{children:[s.jsx(ie.Lightformer,{intensity:5,"rotation-x":Math.PI/2,position:[0,5,-9],scale:[10,10,1]}),s.jsx("group",{rotation:[0,.5,0],children:s.jsx("group",{children:e.map((t,r)=>s.jsx(ie.Lightformer,{form:"circle",intensity:5,rotation:[Math.PI/2,0,0],position:[t,4,r*4],scale:[3,1,1]},r))})}),s.jsx(ie.Lightformer,{intensity:40,"rotation-y":Math.PI/2,position:[-5,1,-1],scale:[20,.1,1]}),s.jsx(ie.Lightformer,{intensity:20,"rotation-y":-Math.PI,position:[-5,-2,-1],scale:[20,.1,1]}),s.jsx(ie.Lightformer,{"rotation-y":Math.PI/2,position:[-5,-1,-1],scale:[20,.5,1],intensity:5}),s.jsx(ie.Lightformer,{"rotation-y":-Math.PI/2,position:[10,1,0],scale:[20,1,1],intensity:10}),s.jsx(ie.Lightformer,{form:"ring",color:"white",intensity:5,scale:10,position:[-15,4,-18],target:[0,0,0]})]})}function v0({safetyZones:e,...t}){return s.jsx("group",{...t,children:e.map((r,n)=>{let o=[];return r.geometry&&(r.geometry.compound?o=r.geometry.compound.child_geometries:r.geometry.convex_hull&&(o=[r.geometry])),o.map((a,i)=>{if(!a.convex_hull)return null;const l=a.convex_hull.vertices.map(u=>new _t.Vector3(u.x/1e3,u.y/1e3,u.z/1e3)),c=new Ei.ConvexGeometry(l);return s.jsx(s.Fragment,{children:s.jsx("mesh",{geometry:c,children:s.jsx("meshStandardMaterial",{attach:"material",color:"#009f4d",opacity:.2,depthTest:!1,depthWrite:!1,transparent:!0,polygonOffset:!0,polygonOffsetFactor:-i},n)},`${n}-${i}`)})})})})}process.env.NODE_ENV!=="production"&&(p.node,p.object.isRequired);function Ks(e){return au(e)}const ar=hu({createStyledComponent:kt("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>Ks({props:e,name:"MuiStack"})});process.env.NODE_ENV!=="production"&&(ar.propTypes={children:p.node,component:p.elementType,direction:p.oneOfType([p.oneOf(["column-reverse","column","row-reverse","row"]),p.arrayOf(p.oneOf(["column-reverse","column","row-reverse","row"])),p.object]),divider:p.node,spacing:p.oneOfType([p.arrayOf(p.oneOfType([p.number,p.string])),p.number,p.object,p.string]),sx:p.oneOfType([p.arrayOf(p.oneOfType([p.func,p.object,p.bool])),p.func,p.object]),useFlexGap:p.bool});const vo=Ve.observer(({color:e,label:t,getDisplayedValue:r,startJogging:n,stopJogging:o,disabled:a,...i})=>{ur(()=>{const d=r(),h=l.current;h&&(h.textContent=d)});const l=se.useRef(null);e=e||"#F14D42";function c(d){d.button===0&&n("-")}function u(d){d.button===0&&n("+")}return s.jsxs(ar,{height:"72px",direction:"row",...i,children:[s.jsx(E.Button,{onPointerDown:c,onPointerUp:o,onPointerOut:o,disabled:a,sx:{width:"105px",backgroundColor:e,color:"white",alignContent:"center",fontSize:"37px",borderRadius:"16px 0px 0px 16px",":hover":{color:"white",backgroundColor:e}},children:"-"}),s.jsxs(ar,{spacing:"6px",sx:{width:"184px",backgroundColor:e,alignItems:"center",justifyContent:"center",opacity:"0.9"},children:[s.jsx(ar,{height:"22px",direction:"row",alignItems:"center",justifyItems:"center",spacing:1,sx:{userSelect:"none",color:"white"},children:t}),s.jsx(E.Typography,{height:"22px",sx:{fontSize:"15px",color:"white"},ref:l,children:r()})]}),s.jsx(E.Button,{onPointerDown:u,onPointerUp:o,onPointerOut:o,disabled:a,sx:{width:"105px",backgroundColor:e,color:"white",alignContent:"center",fontSize:"37px",borderRadius:"0px 16px 16px 0px",":hover":{color:"white",backgroundColor:e}},children:"+"})]})}),Xs=Ve.observer(({startJogging:e,stopJogging:t,lowerLimitDegs:r,upperLimitDegs:n,getValueDegs:o,disabled:a,...i})=>{const{t:l}=Lt.useTranslation(),[c,u]=se.useState(),d=Ve.useLocalObservable(()=>({activeJoggingDir:null,startJogging(v){this.activeJoggingDir=v,e(v)},stopJogging(){this.activeJoggingDir=null,t()}})),h=bt.throttle(()=>{u(o())},50);ur(h);function m(v){v.button===0&&d.startJogging("-")}function b(v){v.button===0&&d.startJogging("+")}function _(v){d.stopJogging()}function y(v){v.target===v.currentTarget&&d.stopJogging()}function g(v,R=1){if(v===void 0||isNaN(v))return"";const P=l("General.degree.variable",{amount:v.toFixed(R)});return v>0&&R===0?`+${P}`:P}return s.jsxs(ar,{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:[s.jsx(E.IconButton,{onPointerDown:m,onPointerUp:_,onPointerOut:y,disabled:a,sx:{borderRadius:"16px 0px 0px 16px",backgroundColor:d.activeJoggingDir==="-"?"#495975":void 0},children:s.jsx(Ko.ChevronLeft,{})}),s.jsxs(ar,{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:[s.jsx(E.Typography,{sx:{fontSize:"15px",position:"relative",top:"5px",color:"white"},children:g(c)}),s.jsx(E.Slider,{disabled:!0,"aria-label":"Joint position",min:r,max:n,value:c||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:g(r,0)},{value:n,label:g(n,0)}]})]}),s.jsx(E.IconButton,{onPointerDown:b,onPointerUp:_,onPointerOut:y,disabled:a,sx:{borderRadius:"0px 16px 16px 0px",backgroundColor:d.activeJoggingDir==="+"?"#495975 !important":"#38445A"},children:s.jsx(Ko.ChevronRight,{})})]})}),w0=({title:e,titleId:t,...r},n)=>F.createElement("svg",{width:25,height:24,viewBox:"0 0 25 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,"aria-labelledby":t,...r},e?F.createElement("title",{id:t},e):null,F.createElement("path",{d:"M18.5 12C18.5 8.68629 15.8137 6 12.5 6C9.18629 6 6.5 8.68629 6.5 12C6.5 15.3137 9.18629 18 12.5 18",stroke:"white",strokeWidth:1.5,strokeLinecap:"round",fill:"none"}),F.createElement("path",{d:"M16.5 11L18.5 13.5L20.5 11",stroke:"white",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),R0=se.forwardRef(w0),j0=({title:e,titleId:t,...r},n)=>F.createElement("svg",{width:19,height:10,viewBox:"0 0 19 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,"aria-labelledby":t,...r},e?F.createElement("title",{id:t},e):null,F.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.13114 0.312406C5.48225 0.663519 5.48225 1.23278 5.13114 1.5839L3.06975 3.64528H15.5109L13.4496 1.58402C13.0985 1.2329 13.0985 0.66364 13.4496 0.312527C13.8007 -0.0385848 14.37 -0.0385848 14.7211 0.312527L18.3174 3.90884C18.6685 4.25996 18.6685 4.82922 18.3174 5.18033L14.7211 8.77665C14.37 9.12776 13.8007 9.12776 13.4496 8.77665C13.0985 8.42554 13.0985 7.85627 13.4496 7.50516L15.5113 5.44344H3.06954L5.13114 7.50504C5.48225 7.85615 5.48225 8.42542 5.13114 8.77653C4.78003 9.12764 4.21076 9.12764 3.85965 8.77653L0.263334 5.18021C-0.087778 4.8291 -0.087778 4.25983 0.263334 3.90872L3.85965 0.312406C4.21076 -0.0387058 4.78003 -0.0387058 5.13114 0.312406Z",fill:"white"})),C0=se.forwardRef(j0),P0=({title:e,titleId:t,...r},n)=>F.createElement("svg",{width:19,height:10,viewBox:"0 0 19 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,"aria-labelledby":t,...r},e?F.createElement("title",{id:t},e):null,F.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.13114 0.312406C5.48225 0.663519 5.48225 1.23278 5.13114 1.5839L3.06975 3.64528H15.5109L13.4496 1.58402C13.0985 1.2329 13.0985 0.66364 13.4496 0.312527C13.8007 -0.0385848 14.37 -0.0385848 14.7211 0.312527L18.3174 3.90884C18.6685 4.25996 18.6685 4.82922 18.3174 5.18033L14.7211 8.77665C14.37 9.12776 13.8007 9.12776 13.4496 8.77665C13.0985 8.42554 13.0985 7.85627 13.4496 7.50516L15.5113 5.44344H3.06954L5.13114 7.50504C5.48225 7.85615 5.48225 8.42542 5.13114 8.77653C4.78003 9.12764 4.21076 9.12764 3.85965 8.77653L0.263334 5.18021C-0.087778 4.8291 -0.087778 4.25983 0.263334 3.90872L3.85965 0.312406C4.21076 -0.0387058 4.78003 -0.0387058 5.13114 0.312406Z",fill:"white"})),A0=se.forwardRef(P0),L0=({title:e,titleId:t,...r},n)=>F.createElement("svg",{width:10,height:19,viewBox:"0 0 10 19",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,"aria-labelledby":t,...r},e?F.createElement("title",{id:t},e):null,F.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.52182 14.8114C9.87293 14.4603 9.87293 13.8911 9.52182 13.54C9.17071 13.1888 8.60144 13.1888 8.25033 13.54L6.18885 15.6014L6.18885 3.15999L8.25033 5.22147C8.60144 5.57258 9.17071 5.57258 9.52182 5.22147C9.87293 4.87036 9.87293 4.30109 9.52182 3.94998L5.9255 0.353666C5.57439 0.00255379 5.00513 0.00255378 4.65401 0.353666L1.0577 3.94998C0.706587 4.30109 0.706587 4.87036 1.0577 5.22147C1.40881 5.57258 1.97808 5.57258 2.32919 5.22147L4.3907 3.15996L4.3907 15.6015L2.32919 13.54C1.97808 13.1888 1.40881 13.1888 1.0577 13.54C0.706588 13.8911 0.706588 14.4603 1.0577 14.8114L4.65402 18.4078C5.00513 18.7589 5.57439 18.7589 5.92551 18.4078L9.52182 14.8114Z",fill:"white"})),O0=se.forwardRef(L0),M0=({title:e,titleId:t,...r},n)=>F.createElement("svg",{width:21,height:21,viewBox:"0 0 23 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,"aria-labelledby":t,...r},e?F.createElement("title",{id:t},e):null,F.createElement("path",{d:"M21.7099 16.2621L20.6205 16.608L21.2793 18.679L18.3573 17.2179V9.85689L12.0715 6.71409V2.89269L13.3795 4.21073L14.1921 3.40503L11.5179 0.714233L8.81153 3.40223L9.61723 4.21363L10.9286 2.91113V6.71413L4.64295 9.85693V17.2179L1.72915 18.6747L2.38625 16.6083L1.29687 16.2625L0.0714111 20.1429L3.89721 21.2858L4.24307 20.1966L2.40729 19.6134L5.28149 18.1766L11.5001 21.2856L17.7183 18.1764L20.5947 19.6146L18.7635 20.1964L19.1094 21.2856L22.9286 20.1427L21.7099 16.2621ZM11.5001 12.6463L6.55967 10.1763L11.5001 7.70633L16.4409 10.1767L11.5001 12.6463ZM12.0715 13.6388L17.2145 11.0672V17.1504L12.0715 19.722V13.6388ZM5.78567 11.0672L10.9287 13.6388V19.722L5.78567 17.1504V11.0672Z",fill:"currentColor"})),k0=se.forwardRef(M0),T0=({title:e,titleId:t,...r},n)=>F.createElement("svg",{width:21,height:21,viewBox:"0 0 21 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,"aria-labelledby":t,...r},e?F.createElement("title",{id:t},e):null,F.createElement("path",{d:"M11.87 7.12001L13.56 8.81002L16.55 5.82001L12.82 2.09001L11.87 1.14001L4.21001 8.80001L3.26001 9.75001L7.25001 13.74V17.18H14.8V13.63L10.08 8.91001L11.87 7.12001ZM10.96 4.13001L11.87 3.22001L14.47 5.82001L13.56 6.73001L10.96 4.13001ZM8.71001 14.37H12.45L11.11 13.03L11.07 12.99H8.57001L5.32001 9.74001L9.91001 5.15001L10.83 6.07001L8.00001 8.90001L13.33 14.23V15.71H8.70001V14.36L8.71001 14.37Z",fill:"currentColor",fillOpacity:.8})),E0=se.forwardRef(T0),I0=Ve.observer(({store:e})=>{const{t}=Lt.useTranslation();function r(n,o){(o==="coordsys"||o==="tool")&&e.setSelectedOrientation(o)}return s.jsxs(s.Fragment,{children:[s.jsxs(E.Stack,{direction:"row",alignItems:"center",spacing:2,sx:{padding:"16px",paddingTop:"8px","& label":{opacity:.7,fontSize:"12px",marginBottom:"4px"}},children:[s.jsxs(E.Stack,{width:"50%",children:[s.jsx(E.InputLabel,{id:"jogging-coord-select",children:"Coordinate Sys."}),s.jsx(E.Select,{labelId:"jogging-coord-select",value:e.selectedCoordSystemId,displayEmpty:!0,onChange:n=>{e.setSelectedCoordSystemId(n.target.value)},disabled:e.isLocked,children:e.coordSystems.map(n=>s.jsx(E.MenuItem,{value:n.coordinate_system,children:n.name||n.coordinate_system},n.coordinate_system))})]}),s.jsxs(E.Stack,{width:"50%",children:[s.jsx(E.InputLabel,{id:"jogging-tcp-select",children:"TCP"}),s.jsx(E.Select,{labelId:"jogging-tcp-select",value:e.selectedTcpId,onChange:n=>{e.setSelectedTcpId(n.target.value)},disabled:e.isLocked,children:e.tcps.map(n=>s.jsx(E.MenuItem,{value:n.id,children:n.id},n.id))})]})]}),s.jsxs(E.Stack,{direction:"row",alignItems:"center",spacing:2,sx:{padding:"16px",paddingTop:"8px","& label":{opacity:.7,fontSize:"12px",marginBottom:"4px"}},children:[s.jsxs(E.Stack,{width:"35%",children:[s.jsx(E.InputLabel,{id:"orientation-select",children:t("Jogging.Cartesian.Orientation.lb")}),s.jsxs(E.ToggleButtonGroup,{value:e.selectedOrientation,onChange:r,exclusive:!0,"aria-labelledby":"orientation-select",disabled:e.isLocked,children:[s.jsx(E.ToggleButton,{value:"coordsys",children:s.jsx(k0,{})}),s.jsx(E.ToggleButton,{value:"tool",children:s.jsx(E0,{})})]})]}),s.jsxs(E.Stack,{width:"65%",children:[s.jsx(E.InputLabel,{id:"jogging-increment-select",children:"Increment"}),s.jsxs(E.Select,{labelId:"jogging-increment-select",value:e.selectedIncrementId,onChange:n=>{e.setSelectedIncrementId(n.target.value)},disabled:e.isLocked,children:[s.jsx(E.MenuItem,{value:"continuous",children:t("Jogging.Increment.Continuous.dd")},"continuous"),e.discreteIncrementOptions.map(n=>s.jsx(E.MenuItem,{value:n.id,children:e.currentMotionType==="translate"?`${n.mm}mm`:`${n.degrees}°`},n.id))]})]})]})]})});function N0(e,t,r=(n,o)=>n===o){return e.length===t.length&&e.every((n,o)=>r(n,t[o]))}const $0=2;function qs(e,t){return e-t}function $a(e,t){var r;const{index:n}=(r=e.reduce((o,a,i)=>{const l=Math.abs(t-a);return o===null||l<o.distance||l===o.distance?{distance:l,index:i}:o},null))!=null?r:{};return n}function Zr(e,t){if(t.current!==void 0&&e.changedTouches){const r=e;for(let n=0;n<r.changedTouches.length;n+=1){const o=r.changedTouches[n];if(o.identifier===t.current)return{x:o.clientX,y:o.clientY}}return!1}return{x:e.clientX,y:e.clientY}}function Sn(e,t,r){return(e-t)*100/(r-t)}function F0(e,t,r){return(r-t)*e+t}function D0(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 U0(e,t,r){const n=Math.round((e-r)/t)*t+r;return Number(n.toFixed(D0(t)))}function Fa({values:e,newValue:t,index:r}){const n=e.slice();return n[r]=t,n.sort(qs)}function Qr({sliderRef:e,activeIndex:t,setActive:r}){var n,o;const a=sn(e.current);if(!((n=e.current)!=null&&n.contains(a.activeElement))||Number(a==null||(o=a.activeElement)==null?void 0:o.getAttribute("data-index"))!==t){var i;(i=e.current)==null||i.querySelector(`[type="range"][data-index="${t}"]`).focus()}r&&r(t)}function en(e,t){return typeof e=="number"&&typeof t=="number"?e===t:typeof e=="object"&&typeof t=="object"?N0(e,t):!1}const B0={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}%`})}},J0=e=>e;let tn;function Da(){return tn===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?tn=CSS.supports("touch-action","none"):tn=!0),tn}function V0(e){const{"aria-labelledby":t,defaultValue:r,disabled:n=!1,disableSwap:o=!1,isRtl:a=!1,marks:i=!1,max:l=100,min:c=0,name:u,onChange:d,onChangeCommitted:h,orientation:m="horizontal",rootRef:b,scale:_=J0,step:y=1,shiftStep:g=10,tabIndex:v,value:R}=e,P=F.useRef(),[N,j]=F.useState(-1),[I,O]=F.useState(-1),[ne,de]=F.useState(!1),ce=F.useRef(0),[D,K]=Bc({controlled:R,default:r??c,name:"Slider"}),G=d&&((C,k,$)=>{const z=C.nativeEvent||C,q=new z.constructor(z.type,z);Object.defineProperty(q,"target",{writable:!0,value:{value:k,name:u}}),d(q,k,$)}),X=Array.isArray(D);let H=X?D.slice().sort(qs):[D];H=H.map(C=>C==null?c:rr(C,c,l));const ve=i===!0&&y!==null?[...Array(Math.floor((l-c)/y)+1)].map((C,k)=>({value:c+y*k})):i||[],le=ve.map(C=>C.value),{isFocusVisibleRef:Y,onBlur:je,onFocus:Oe,ref:rt}=Xc(),[ft,ze]=F.useState(-1),we=F.useRef(),wt=go(rt,we),it=go(b,wt),We=C=>k=>{var $;const z=Number(k.currentTarget.getAttribute("data-index"));Oe(k),Y.current===!0&&ze(z),O(z),C==null||($=C.onFocus)==null||$.call(C,k)},$e=C=>k=>{var $;je(k),Y.current===!1&&ze(-1),O(-1),C==null||($=C.onBlur)==null||$.call(C,k)},lt=(C,k)=>{const $=Number(C.currentTarget.getAttribute("data-index")),z=H[$],q=le.indexOf(z);let W=k;if(ve&&y==null){const De=le[le.length-1];W>De?W=De:W<le[0]?W=le[0]:W=W<z?le[q-1]:le[q+1]}if(W=rr(W,c,l),X){o&&(W=rr(W,H[$-1]||-1/0,H[$+1]||1/0));const De=W;W=Fa({values:H,newValue:W,index:$});let He=$;o||(He=W.indexOf(De)),Qr({sliderRef:we,activeIndex:He})}K(W),ze($),G&&!en(W,D)&&G(C,W,$),h&&h(C,W)},ct=C=>k=>{var $;if(y!==null){const z=Number(k.currentTarget.getAttribute("data-index")),q=H[z];let W=null;(k.key==="ArrowLeft"||k.key==="ArrowDown")&&k.shiftKey||k.key==="PageDown"?W=Math.max(q-g,c):((k.key==="ArrowRight"||k.key==="ArrowUp")&&k.shiftKey||k.key==="PageUp")&&(W=Math.min(q+g,l)),W!==null&&(lt(k,W),k.preventDefault())}C==null||($=C.onKeyDown)==null||$.call(C,k)};Ps(()=>{if(n&&we.current.contains(document.activeElement)){var C;(C=document.activeElement)==null||C.blur()}},[n]),n&&N!==-1&&j(-1),n&&ft!==-1&&ze(-1);const Tt=C=>k=>{var $;($=C.onChange)==null||$.call(C,k),lt(k,k.target.valueAsNumber)},pt=F.useRef();let Fe=m;a&&m==="horizontal"&&(Fe+="-reverse");const L=({finger:C,move:k=!1})=>{const{current:$}=we,{width:z,height:q,bottom:W,left:De}=$.getBoundingClientRect();let He;Fe.indexOf("vertical")===0?He=(W-C.y)/q:He=(C.x-De)/z,Fe.indexOf("-reverse")!==-1&&(He=1-He);let Q;if(Q=F0(He,c,l),y)Q=U0(Q,y,c);else{const Ct=$a(le,Q);Q=le[Ct]}Q=rr(Q,c,l);let Te=0;if(X){k?Te=pt.current:Te=$a(H,Q),o&&(Q=rr(Q,H[Te-1]||-1/0,H[Te+1]||1/0));const Ct=Q;Q=Fa({values:H,newValue:Q,index:Te}),o&&k||(Te=Q.indexOf(Ct),pt.current=Te)}return{newValue:Q,activeIndex:Te}},Z=Zn(C=>{const k=Zr(C,P);if(!k)return;if(ce.current+=1,C.type==="mousemove"&&C.buttons===0){me(C);return}const{newValue:$,activeIndex:z}=L({finger:k,move:!0});Qr({sliderRef:we,activeIndex:z,setActive:j}),K($),!ne&&ce.current>$0&&de(!0),G&&!en($,D)&&G(C,$,z)}),me=Zn(C=>{const k=Zr(C,P);if(de(!1),!k)return;const{newValue:$}=L({finger:k,move:!0});j(-1),C.type==="touchend"&&O(-1),h&&h(C,$),P.current=void 0,ke()}),Me=Zn(C=>{if(n)return;Da()||C.preventDefault();const k=C.changedTouches[0];k!=null&&(P.current=k.identifier);const $=Zr(C,P);if($!==!1){const{newValue:q,activeIndex:W}=L({finger:$});Qr({sliderRef:we,activeIndex:W,setActive:j}),K(q),G&&!en(q,D)&&G(C,q,W)}ce.current=0;const z=sn(we.current);z.addEventListener("touchmove",Z,{passive:!0}),z.addEventListener("touchend",me,{passive:!0})}),ke=F.useCallback(()=>{const C=sn(we.current);C.removeEventListener("mousemove",Z),C.removeEventListener("mouseup",me),C.removeEventListener("touchmove",Z),C.removeEventListener("touchend",me)},[me,Z]);F.useEffect(()=>{const{current:C}=we;return C.addEventListener("touchstart",Me,{passive:Da()}),()=>{C.removeEventListener("touchstart",Me),ke()}},[ke,Me]),F.useEffect(()=>{n&&ke()},[n,ke]);const Rt=C=>k=>{var $;if(($=C.onMouseDown)==null||$.call(C,k),n||k.defaultPrevented||k.button!==0)return;k.preventDefault();const z=Zr(k,P);if(z!==!1){const{newValue:W,activeIndex:De}=L({finger:z});Qr({sliderRef:we,activeIndex:De,setActive:j}),K(W),G&&!en(W,D)&&G(k,W,De)}ce.current=0;const q=sn(we.current);q.addEventListener("mousemove",Z,{passive:!0}),q.addEventListener("mouseup",me)},Re=Sn(X?H[0]:c,c,l),jt=Sn(H[H.length-1],c,l)-Re,Et=(C={})=>{const k=ln(C),$={onMouseDown:Rt(k||{})},z=A({},k,$);return A({},C,{ref:it},z)},hr=C=>k=>{var $;($=C.onMouseOver)==null||$.call(C,k);const z=Number(k.currentTarget.getAttribute("data-index"));O(z)},fr=C=>k=>{var $;($=C.onMouseLeave)==null||$.call(C,k),O(-1)};return{active:N,axis:Fe,axisProps:B0,dragging:ne,focusedThumbIndex:ft,getHiddenInputProps:(C={})=>{var k;const $=ln(C),z={onChange:Tt($||{}),onFocus:We($||{}),onBlur:$e($||{}),onKeyDown:ct($||{})},q=A({},$,z);return A({tabIndex:v,"aria-labelledby":t,"aria-orientation":m,"aria-valuemax":_(l),"aria-valuemin":_(c),name:u,type:"range",min:e.min,max:e.max,step:e.step===null&&e.marks?"any":(k=e.step)!=null?k:void 0,disabled:n},C,q,{style:A({},qc,{direction:a?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:Et,getThumbProps:(C={})=>{const k=ln(C),$={onMouseOver:hr(k||{}),onMouseLeave:fr(k||{})};return A({},C,k,$)},marks:ve,open:I,range:X,rootRef:it,trackLeap:jt,trackOffset:Re,values:H,getThumbStyle:C=>({pointerEvents:N!==-1&&N!==C?"none":void 0})}}const G0=e=>!e||!Ar(e);function z0(e){return In("MuiSlider",e)}const Ze=wc("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"]),W0=e=>{const{open:t}=e;return{offset:St(t&&Ze.valueLabelOpen),circle:Ze.valueLabelCircle,label:Ze.valueLabelLabel}};function Ys(e){const{children:t,className:r,value:n}=e,o=W0(e);return t?F.cloneElement(t,{className:St(t.props.className)},s.jsxs(F.Fragment,{children:[t.props.children,s.jsx("span",{className:St(o.offset,r),"aria-hidden":!0,children:s.jsx("span",{className:o.circle,children:s.jsx("span",{className:o.label,children:n})})})]})):null}process.env.NODE_ENV!=="production"&&(Ys.propTypes={children:p.element.isRequired,className:p.string,value:p.node});const H0=["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 Ua(e){return e}const K0=kt("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`color${Ye(r.color)}`],r.size!=="medium"&&t[`size${Ye(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"},[`&.${Ze.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${Ze.dragging}`]:{[`& .${Ze.thumb}, & .${Ze.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}}]}}),X0=kt("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}}]}),q0=kt("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:A({},e.vars?{backgroundColor:e.vars.palette.Slider[`${r}Track`],borderColor:e.vars.palette.Slider[`${r}Track`]}:A({backgroundColor:bo(e.palette[r].main,.62),borderColor:bo(e.palette[r].main,.62)},e.applyStyles("dark",{backgroundColor:_o(e.palette[r].main,.5)}),e.applyStyles("dark",{borderColor:_o(e.palette[r].main,.5)})))}))]}}),Y0=kt("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.thumb,t[`thumbColor${Ye(r.color)}`],r.size!=="medium"&&t[`thumbSize${Ye(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%)"},[`&.${Ze.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, &.${Ze.focusVisible}`]:A({},e.vars?{boxShadow:`0px 0px 0px 8px rgba(${e.vars.palette[r].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 8px ${ua(e.palette[r].main,.16)}`},{"@media (hover: none)":{boxShadow:"none"}}),[`&.${Ze.active}`]:A({},e.vars?{boxShadow:`0px 0px 0px 14px rgba(${e.vars.palette[r].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 14px ${ua(e.palette[r].main,.16)}`})}}))]}}),Z0=kt(Ys,{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(e,t)=>t.valueLabel})(({theme:e})=>A({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%"},[`&.${Ze.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%"},[`&.${Ze.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"}}]})),Q0=kt("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>Bo(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}}]})),em=kt("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>Bo(e)&&e!=="markLabelActive",overridesResolver:(e,t)=>t.markLabel})(({theme:e})=>A({},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}}]})),tm=e=>{const{disabled:t,dragging:r,marked:n,orientation:o,track:a,classes:i,color:l,size:c}=e,u={root:["root",t&&"disabled",r&&"dragging",n&&"marked",o==="vertical"&&"vertical",a==="inverted"&&"trackInverted",a===!1&&"trackFalse",l&&`color${Ye(l)}`,c&&`size${Ye(c)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",c&&`thumbSize${Ye(c)}`,l&&`thumbColor${Ye(l)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return As(u,z0,i)},rm=({children:e})=>e,Zs=F.forwardRef(function(t,r){var n,o,a,i,l,c,u,d,h,m,b,_,y,g,v,R,P,N,j,I,O,ne,de,ce;const D=Ks({props:t,name:"MuiSlider"}),K=ru(),{"aria-label":G,"aria-valuetext":X,"aria-labelledby":H,component:ve="span",components:le={},componentsProps:Y={},color:je="primary",classes:Oe,className:rt,disableSwap:ft=!1,disabled:ze=!1,getAriaLabel:we,getAriaValueText:wt,marks:it=!1,max:We=100,min:$e=0,orientation:lt="horizontal",shiftStep:ct=10,size:Tt="medium",step:pt=1,scale:Fe=Ua,slotProps:L,slots:Z,track:me="normal",valueLabelDisplay:Me="off",valueLabelFormat:ke=Ua}=D,Rt=Ge(D,H0),Re=A({},D,{isRtl:K,max:We,min:$e,classes:Oe,disabled:ze,disableSwap:ft,orientation:lt,marks:it,color:je,size:Tt,step:pt,shiftStep:ct,scale:Fe,track:me,valueLabelDisplay:Me,valueLabelFormat:ke}),{axisProps:jt,getRootProps:Et,getHiddenInputProps:hr,getThumbProps:fr,open:pr,active:Gt,axis:nt,focusedThumbIndex:C,range:k,dragging:$,marks:z,values:q,trackOffset:W,trackLeap:De,getThumbStyle:He}=V0(A({},Re,{rootRef:r}));Re.marked=z.length>0&&z.some(T=>T.label),Re.dragging=$,Re.focusedThumbIndex=C;const Q=tm(Re),Te=(n=(o=Z==null?void 0:Z.root)!=null?o:le.Root)!=null?n:K0,Ct=(a=(i=Z==null?void 0:Z.rail)!=null?i:le.Rail)!=null?a:X0,zt=(l=(c=Z==null?void 0:Z.track)!=null?c:le.Track)!=null?l:q0,gr=(u=(d=Z==null?void 0:Z.thumb)!=null?d:le.Thumb)!=null?u:Y0,gt=(h=(m=Z==null?void 0:Z.valueLabel)!=null?m:le.ValueLabel)!=null?h:Z0,It=(b=(_=Z==null?void 0:Z.mark)!=null?_:le.Mark)!=null?b:Q0,Nt=(y=(g=Z==null?void 0:Z.markLabel)!=null?g:le.MarkLabel)!=null?y:em,yr=(v=(R=Z==null?void 0:Z.input)!=null?R:le.Input)!=null?v:"input",_r=(P=L==null?void 0:L.root)!=null?P:Y.root,zr=(N=L==null?void 0:L.rail)!=null?N:Y.rail,br=(j=L==null?void 0:L.track)!=null?j:Y.track,Wt=(I=L==null?void 0:L.thumb)!=null?I:Y.thumb,Ht=(O=L==null?void 0:L.valueLabel)!=null?O:Y.valueLabel,Gn=(ne=L==null?void 0:L.mark)!=null?ne:Y.mark,zn=(de=L==null?void 0:L.markLabel)!=null?de:Y.markLabel,Wr=(ce=L==null?void 0:L.input)!=null?ce:Y.input,Hr=Pt({elementType:Te,getSlotProps:Et,externalSlotProps:_r,externalForwardedProps:Rt,additionalProps:A({},G0(Te)&&{as:ve}),ownerState:A({},Re,_r==null?void 0:_r.ownerState),className:[Q.root,rt]}),Wn=Pt({elementType:Ct,externalSlotProps:zr,ownerState:Re,className:Q.rail}),Hn=Pt({elementType:zt,externalSlotProps:br,additionalProps:{style:A({},jt[nt].offset(W),jt[nt].leap(De))},ownerState:A({},Re,br==null?void 0:br.ownerState),className:Q.track}),xr=Pt({elementType:gr,getSlotProps:fr,externalSlotProps:Wt,ownerState:A({},Re,Wt==null?void 0:Wt.ownerState),className:Q.thumb}),Kn=Pt({elementType:gt,externalSlotProps:Ht,ownerState:A({},Re,Ht==null?void 0:Ht.ownerState),className:Q.valueLabel}),f=Pt({elementType:It,externalSlotProps:Gn,ownerState:Re,className:Q.mark}),w=Pt({elementType:Nt,externalSlotProps:zn,ownerState:Re,className:Q.markLabel}),M=Pt({elementType:yr,getSlotProps:hr,externalSlotProps:Wr,ownerState:Re});return s.jsxs(Te,A({},Hr,{children:[s.jsx(Ct,A({},Wn)),s.jsx(zt,A({},Hn)),z.filter(T=>T.value>=$e&&T.value<=We).map((T,U)=>{const ee=Sn(T.value,$e,We),V=jt[nt].offset(ee);let B;return me===!1?B=q.indexOf(T.value)!==-1:B=me==="normal"&&(k?T.value>=q[0]&&T.value<=q[q.length-1]:T.value<=q[0])||me==="inverted"&&(k?T.value<=q[0]||T.value>=q[q.length-1]:T.value>=q[0]),s.jsxs(F.Fragment,{children:[s.jsx(It,A({"data-index":U},f,!Ar(It)&&{markActive:B},{style:A({},V,f.style),className:St(f.className,B&&Q.markActive)})),T.label!=null?s.jsx(Nt,A({"aria-hidden":!0,"data-index":U},w,!Ar(Nt)&&{markLabelActive:B},{style:A({},V,w.style),className:St(Q.markLabel,w.className,B&&Q.markLabelActive),children:T.label})):null]},U)}),q.map((T,U)=>{const ee=Sn(T,$e,We),V=jt[nt].offset(ee),B=Me==="off"?rm:gt;return s.jsx(B,A({},!Ar(B)&&{valueLabelFormat:ke,valueLabelDisplay:Me,value:typeof ke=="function"?ke(Fe(T),U):ke,index:U,open:pr===U||Gt===U||Me==="on",disabled:ze},Kn,{children:s.jsx(gr,A({"data-index":U},xr,{className:St(Q.thumb,xr.className,Gt===U&&Q.active,C===U&&Q.focusVisible),style:A({},V,He(U),xr.style),children:s.jsx(yr,A({"data-index":U,"aria-label":we?we(U):G,"aria-valuenow":Fe(T),"aria-labelledby":H,"aria-valuetext":wt?wt(Fe(T),U):X,value:q[U]},M))}))}),U)})]}))});process.env.NODE_ENV!=="production"&&(Zs.propTypes={"aria-label":la(p.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":p.string,"aria-valuetext":la(p.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:p.node,classes:p.object,className:p.string,color:p.oneOfType([p.oneOf(["primary","secondary","error","info","success","warning"]),p.string]),components:p.shape({Input:p.elementType,Mark:p.elementType,MarkLabel:p.elementType,Rail:p.elementType,Root:p.elementType,Thumb:p.elementType,Track:p.elementType,ValueLabel:p.elementType}),componentsProps:p.shape({input:p.oneOfType([p.func,p.object]),mark:p.oneOfType([p.func,p.object]),markLabel:p.oneOfType([p.func,p.object]),rail:p.oneOfType([p.func,p.object]),root:p.oneOfType([p.func,p.object]),thumb:p.oneOfType([p.func,p.object]),track:p.oneOfType([p.func,p.object]),valueLabel:p.oneOfType([p.func,p.shape({children:p.element,className:p.string,open:p.bool,style:p.object,value:p.number,valueLabelDisplay:p.oneOf(["auto","off","on"])})])}),defaultValue:p.oneOfType([p.arrayOf(p.number),p.number]),disabled:p.bool,disableSwap:p.bool,getAriaLabel:p.func,getAriaValueText:p.func,marks:p.oneOfType([p.arrayOf(p.shape({label:p.node,value:p.number.isRequired})),p.bool]),max:p.number,min:p.number,name:p.string,onChange:p.func,onChangeCommitted:p.func,orientation:p.oneOf(["horizontal","vertical"]),scale:p.func,shiftStep:p.number,size:p.oneOfType([p.oneOf(["small","medium"]),p.string]),slotProps:p.shape({input:p.oneOfType([p.func,p.object]),mark:p.oneOfType([p.func,p.object]),markLabel:p.oneOfType([p.func,p.object]),rail:p.oneOfType([p.func,p.object]),root:p.oneOfType([p.func,p.object]),thumb:p.oneOfType([p.func,p.object]),track:p.oneOfType([p.func,p.object]),valueLabel:p.oneOfType([p.func,p.shape({children:p.element,className:p.string,open:p.bool,style:p.object,value:p.number,valueLabelDisplay:p.oneOf(["auto","off","on"])})])}),slots:p.shape({input:p.elementType,mark:p.elementType,markLabel:p.elementType,rail:p.elementType,root:p.elementType,thumb:p.elementType,track:p.elementType,valueLabel:p.elementType}),step:p.number,sx:p.oneOfType([p.arrayOf(p.oneOfType([p.func,p.object,p.bool])),p.func,p.object]),tabIndex:p.number,track:p.oneOf(["inverted","normal",!1]),value:p.oneOfType([p.arrayOf(p.number),p.number]),valueLabelDisplay:p.oneOf(["auto","off","on"]),valueLabelFormat:p.oneOfType([p.func,p.string])});const Qs=Ve.observer(e=>{const t=E.useTheme(),r=e.valueLabelFormat||(o=>`${o}`);function n(o,a){a===e.velocity||!bt.isNumber(a)||e.onVelocityChange(a)}return s.jsxs(s.Fragment,{children:[s.jsx(E.Typography,{sx:{textAlign:"center",fontSize:"15px",opacity:.8,color:t.palette.text.primary},children:r(e.velocity)}),s.jsx(Zs,{value:e.velocity,onChange:n,min:e.min,max:e.max,"aria-labelledby":"input-slider",disabled:e.disabled,sx:{"& .MuiSlider-valueLabelOpen":{zIndex:100,backgroundColor:"transparent",top:"0px"}}})]})}),ei=Ve.observer(({store:e})=>{const{t}=Lt.useTranslation(),r=Ve.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 s.jsx(E.Stack,{sx:{margin:"0px 20px",marginTop:"24px",marginBottom:"24px"},children:s.jsxs(E.Stack,{sx:{width:"380px",maxWidth:"90%",margin:"auto"},children:[s.jsx(E.Stack,{sx:{justifyContent:"center"},children:s.jsx(E.Typography,{sx:{fontSize:"12px",opacity:.6},children:t("Jogging.Velocity.lb")})}),s.jsx(Qs,{velocity:e.velocityInCurrentUnits,min:e.minVelocityInCurrentUnits,max:e.maxVelocityInCurrentUnits,onVelocityChange:e.setVelocityFromSlider,disabled:e.isLocked,valueLabelFormat:r.valueLabelFormat})]})})}),ti=se.forwardRef(({label:e,value:t},r)=>s.jsxs(s.Fragment,{children:[e&&s.jsx(E.InputLabel,{children:e}),s.jsx(E.Chip,{ref:r,sx:{fontSize:"14px",opacity:.8,marginTop:"4px !important"},value:t})]})),nm=Ve.observer(({store:e})=>{const t=se.useRef(null);function r(){const n=e.jogger.motionStream.rapidlyChangingMotionState.tcp_pose;return n?Ut.poseToWandelscriptString(n):""}return ur(()=>{t.current&&(t.current.textContent=r())}),s.jsx(E.Stack,{alignItems:"left",spacing:2,sx:{padding:"16px","& label":{opacity:.7,fontSize:"12px",marginBottom:"4px"}},children:s.jsx(ti,{label:"Pose",value:r(),ref:t})})}),om=({store:e})=>{const{t}=Lt.useTranslation(),[r,n]=se.useState(e.jogger.motionStream.rapidlyChangingMotionState.state.joint_limit_reached.limit_reached);ur(()=>{const a=e.jogger.motionStream.rapidlyChangingMotionState.state.joint_limit_reached.limit_reached;bt.isEqual(r,a)||n(a)});const o=[];return r.forEach((a,i)=>{a&&o.push(i)}),o.length?s.jsx(E.Typography,{color:"error",sx:{padding:"1rem",textAlign:"center"},children:t("Jogging.JointLimitsReached.lb",{jointNumbers:o.map(a=>a+1).join(", ")})}):null},am=Ve.observer(({store:e})=>{const{t}=Lt.useTranslation();function r(u,d){(d==="translate"||d==="rotate")&&e.setSelectedCartesianMotionType(d)}zs(()=>[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 n(u,d){const h=e.jogger.motionStream.rapidlyChangingMotionState.tcp_pose,m=e.jogger.motionStream.rapidlyChangingMotionState.state.joint_position;h&&await e.withMotionLock(async()=>{await e.jogger.runIncrementalCartesianMotion({currentTcpPose:h,currentJoints:m,coordSystemId:e.selectedCoordSystemId,velocityInRelevantUnits:e.velocityInCurrentUnits,axis:u.axis,direction:u.direction,motion:e.selectedCartesianMotionType==="translate"?{type:"translate",distanceMm:d.mm}:{type:"rotate",distanceRads:Ut.degreesToRadians(d.degrees)}})})}async function o(u){if(!e.isLocked){if(e.selectedDiscreteIncrement)return n(u,e.selectedDiscreteIncrement);u.motionType==="translate"?await e.jogger.startTCPTranslation({axis:u.axis,direction:u.direction,velocityMmPerSec:e.translationVelocityMmPerSec}):await e.jogger.startTCPRotation({axis:u.axis,direction:u.direction,velocityRadsPerSec:e.rotationVelocityRadsPerSec})}}async function a(){e.isLocked||e.selectedDiscreteIncrement||await e.jogger.stop()}const i=[{id:"x",color:"#F14D42",icon:s.jsx(C0,{})},{id:"y",color:"#42A705",icon:s.jsx(A0,{})},{id:"z",color:"#0075FF",icon:s.jsx(O0,{})}];function l(u){return t("General.mm.variable",{amount:u.toFixed(1)})}function c(u){return t("General.degree.variable",{amount:Ut.radiansToDegrees(u).toFixed(1)})}return s.jsxs(E.Stack,{children:[s.jsx(nm,{store:e}),s.jsx(I0,{store:e}),s.jsxs(E.Stack,{width:"80%",maxWidth:"296px",margin:"auto",marginTop:"24px",children:[s.jsxs(E.ToggleButtonGroup,{value:e.selectedCartesianMotionType,onChange:r,exclusive:!0,"aria-label":t("Jogging.Cartesian.MotionType.lb"),children:[s.jsx(E.ToggleButton,{value:"translate",children:t("Jogging.Cartesian.Translation.bt")}),s.jsx(E.ToggleButton,{value:"rotate",children:t("Jogging.Cartesian.Rotation.bt")})]}),e.selectedCartesianMotionType==="translate"&&i.map(u=>s.jsx(vo,{color:u.color,disabled:e.isLocked,sx:{marginTop:"12px"},label:s.jsxs(s.Fragment,{children:[u.icon,s.jsx(E.Typography,{sx:{fontSize:"24px",color:"white"},children:u.id.toUpperCase()})]}),getDisplayedValue:()=>{var d;return l(((d=e.jogger.motionStream.rapidlyChangingMotionState.tcp_pose)==null?void 0:d.position[u.id])||0)},startJogging:d=>o({axis:u.id,motionType:"translate",direction:d}),stopJogging:a},u.id)),e.selectedCartesianMotionType==="rotate"&&i.map(u=>s.jsx(vo,{color:u.color,disabled:e.isLocked,sx:{marginTop:"12px"},label:s.jsxs(s.Fragment,{children:[s.jsx(R0,{}),s.jsx(E.Typography,{sx:{fontSize:"24px",color:"white"},children:u.id.toUpperCase()})]}),getDisplayedValue:()=>{var d,h;return c(((h=(d=e.jogger.motionStream.rapidlyChangingMotionState.tcp_pose)==null?void 0:d.orientation)==null?void 0:h[u.id])||0)},startJogging:d=>o({axis:u.id,motionType:"rotate",direction:d}),stopJogging:a},u.id))]}),s.jsx(ei,{store:e}),s.jsx(om,{store:e})]})}),sm=Ve.observer(({store:e})=>{const t=se.useRef(null);Lt.useTranslation();function r(){const{joints:n}=e.jogger.motionStream.rapidlyChangingMotionState.state.joint_position;return`{${n.map(o=>parseFloat(o.toFixed(4))).join(", ")}}`}return ur(()=>{t.current&&(t.current.textContent=r())}),s.jsx(E.Stack,{alignItems:"left",spacing:2,sx:{padding:"16px","& label":{opacity:.7,fontSize:"12px",marginBottom:"4px"}},children:s.jsx(ti,{label:"Pose",value:r(),ref:t})})}),im=Ve.observer(({store:e})=>{async function t(n){await e.jogger.startJointRotation({joint:n.joint,direction:n.direction,velocityRadsPerSec:e.rotationVelocityRadsPerSec})}async function r(){await e.jogger.stop()}return s.jsxs(E.Stack,{children:[s.jsx(sm,{store:e}),s.jsx(E.Stack,{children:e.jogger.motionStream.joints.map(n=>{var l;const o=(l=e.motionGroupSpec.mechanical_joint_limits)==null?void 0:l[n.index],a=(o==null?void 0:o.lower_limit)!==void 0?Ut.radiansToDegrees(o.lower_limit):void 0,i=(o==null?void 0:o.upper_limit)!==void 0?Ut.radiansToDegrees(o.upper_limit):void 0;return s.jsxs(E.Stack,{direction:"row",alignItems:"center",gap:2,marginTop:"0.8rem",children:[s.jsx(E.Typography,{sx:{flexGrow:1,textAlign:"right"},children:`J${n.index+1}`}),s.jsx(Xs,{disabled:e.isLocked,lowerLimitDegs:a,upperLimitDegs:i,getValueDegs:()=>{const c=e.jogger.motionStream.rapidlyChangingMotionState.state.joint_position.joints[n.index];return c!==void 0?Ut.radiansToDegrees(c):void 0},startJogging:c=>t({joint:n.index,direction:c}),stopJogging:r},n.index),s.jsx(E.Typography,{sx:{flexGrow:1}})]},`joint-${n.index}`)})}),s.jsx(ei,{store:e})]})}),wo=[{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}],lm=[{id:"continuous"},...wo];class Jo{constructor(t,r,n,o){var a,i;this.jogger=t,this.motionGroupSpec=r,this.coordSystems=n,this.tcps=o,this.selectedTabId="cartesian",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=((a=n[0])==null?void 0:a.coordinate_system)||"world",this.selectedTcpId=((i=o[0])==null?void 0:i.id)||"",Or.makeAutoObservable(this,{},{autoBind:!0}),this.loadFromLocalStorage(),this.disposers.push(Or.autorun(()=>this.saveToLocalStorage())),window.joggingStore=this}static async loadFor(t){const{nova:r}=t,[n,{coordinatesystems:o},{tcps:a}]=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 Jo(t,n,o||[],a||[])}dispose(){for(const t of this.disposers)t();this.jogger.dispose()}loadFromLocalStorage(){const t=Ut.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 lm}get discreteIncrementOptions(){return wo}get incrementOptionsById(){return bt.keyBy(this.incrementOptions,t=>t.id)}get tabsById(){return bt.keyBy(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 bt.keyBy(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 bt.keyBy(this.tcps,t=>t.id)}get selectedDiscreteIncrement(){return wo.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=bt.uniqueId();this.locks.add(r);try{return await t()}finally{this.locks.delete(r)}}}function ri(e,t){return function(){return e.apply(t,arguments)}}const{toString:cm}=Object.prototype,{getPrototypeOf:Vo}=Object,Dn=(e=>t=>{const r=cm.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),st=e=>(e=e.toLowerCase(),t=>Dn(t)===e),Un=e=>t=>typeof t===e,{isArray:dr}=Array,Nr=Un("undefined");function um(e){return e!==null&&!Nr(e)&&e.constructor!==null&&!Nr(e.constructor)&&Je(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const ni=st("ArrayBuffer");function dm(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&ni(e.buffer),t}const mm=Un("string"),Je=Un("function"),oi=Un("number"),Bn=e=>e!==null&&typeof e=="object",hm=e=>e===!0||e===!1,dn=e=>{if(Dn(e)!=="object")return!1;const t=Vo(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},fm=st("Date"),pm=st("File"),gm=st("Blob"),ym=st("FileList"),_m=e=>Bn(e)&&Je(e.pipe),bm=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Je(e.append)&&((t=Dn(e))==="formdata"||t==="object"&&Je(e.toString)&&e.toString()==="[object FormData]"))},xm=st("URLSearchParams"),[Sm,vm,wm,Rm]=["ReadableStream","Request","Response","Headers"].map(st),jm=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Vr(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,o;if(typeof e!="object"&&(e=[e]),dr(e))for(n=0,o=e.length;n<o;n++)t.call(null,e[n],n,e);else{const a=r?Object.getOwnPropertyNames(e):Object.keys(e),i=a.length;let l;for(n=0;n<i;n++)l=a[n],t.call(null,e[l],l,e)}}function ai(e,t){t=t.toLowerCase();const r=Object.keys(e);let n=r.length,o;for(;n-- >0;)if(o=r[n],t===o.toLowerCase())return o;return null}const Ft=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,si=e=>!Nr(e)&&e!==Ft;function Ro(){const{caseless:e}=si(this)&&this||{},t={},r=(n,o)=>{const a=e&&ai(t,o)||o;dn(t[a])&&dn(n)?t[a]=Ro(t[a],n):dn(n)?t[a]=Ro({},n):dr(n)?t[a]=n.slice():t[a]=n};for(let n=0,o=arguments.length;n<o;n++)arguments[n]&&Vr(arguments[n],r);return t}const Cm=(e,t,r,{allOwnKeys:n}={})=>(Vr(t,(o,a)=>{r&&Je(o)?e[a]=ri(o,r):e[a]=o},{allOwnKeys:n}),e),Pm=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Am=(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)},Lm=(e,t,r,n)=>{let o,a,i;const l={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),a=o.length;a-- >0;)i=o[a],(!n||n(i,e,t))&&!l[i]&&(t[i]=e[i],l[i]=!0);e=r!==!1&&Vo(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},Om=(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},Mm=e=>{if(!e)return null;if(dr(e))return e;let t=e.length;if(!oi(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},km=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Vo(Uint8Array)),Tm=(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=n.next())&&!o.done;){const a=o.value;t.call(e,a[0],a[1])}},Em=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},Im=st("HTMLFormElement"),Nm=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,o){return n.toUpperCase()+o}),Ba=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),$m=st("RegExp"),ii=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};Vr(r,(o,a)=>{let i;(i=t(o,a,e))!==!1&&(n[a]=i||o)}),Object.defineProperties(e,n)},Fm=e=>{ii(e,(t,r)=>{if(Je(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(Je(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+"'")})}})},Dm=(e,t)=>{const r={},n=o=>{o.forEach(a=>{r[a]=!0})};return dr(e)?n(e):n(String(e).split(t)),r},Um=()=>{},Bm=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,so="abcdefghijklmnopqrstuvwxyz",Ja="0123456789",li={DIGIT:Ja,ALPHA:so,ALPHA_DIGIT:so+so.toUpperCase()+Ja},Jm=(e=16,t=li.ALPHA_DIGIT)=>{let r="";const{length:n}=t;for(;e--;)r+=t[Math.random()*n|0];return r};function Vm(e){return!!(e&&Je(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const Gm=e=>{const t=new Array(10),r=(n,o)=>{if(Bn(n)){if(t.indexOf(n)>=0)return;if(!("toJSON"in n)){t[o]=n;const a=dr(n)?[]:{};return Vr(n,(i,l)=>{const c=r(i,o+1);!Nr(c)&&(a[l]=c)}),t[o]=void 0,a}}return n};return r(e,0)},zm=st("AsyncFunction"),Wm=e=>e&&(Bn(e)||Je(e))&&Je(e.then)&&Je(e.catch),ci=((e,t)=>e?setImmediate:t?((r,n)=>(Ft.addEventListener("message",({source:o,data:a})=>{o===Ft&&a===r&&n.length&&n.shift()()},!1),o=>{n.push(o),Ft.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",Je(Ft.postMessage)),Hm=typeof queueMicrotask<"u"?queueMicrotask.bind(Ft):typeof process<"u"&&process.nextTick||ci,x={isArray:dr,isArrayBuffer:ni,isBuffer:um,isFormData:bm,isArrayBufferView:dm,isString:mm,isNumber:oi,isBoolean:hm,isObject:Bn,isPlainObject:dn,isReadableStream:Sm,isRequest:vm,isResponse:wm,isHeaders:Rm,isUndefined:Nr,isDate:fm,isFile:pm,isBlob:gm,isRegExp:$m,isFunction:Je,isStream:_m,isURLSearchParams:xm,isTypedArray:km,isFileList:ym,forEach:Vr,merge:Ro,extend:Cm,trim:jm,stripBOM:Pm,inherits:Am,toFlatObject:Lm,kindOf:Dn,kindOfTest:st,endsWith:Om,toArray:Mm,forEachEntry:Tm,matchAll:Em,isHTMLForm:Im,hasOwnProperty:Ba,hasOwnProp:Ba,reduceDescriptors:ii,freezeMethods:Fm,toObjectSet:Dm,toCamelCase:Nm,noop:Um,toFiniteNumber:Bm,findKey:ai,global:Ft,isContextDefined:si,ALPHABET:li,generateString:Jm,isSpecCompliantForm:Vm,toJSONObject:Gm,isAsyncFn:zm,isThenable:Wm,setImmediate:ci,asap:Hm};function J(e,t,r,n,o){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),o&&(this.response=o)}x.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:x.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const ui=J.prototype,di={};["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=>{di[e]={value:e}});Object.defineProperties(J,di);Object.defineProperty(ui,"isAxiosError",{value:!0});J.from=(e,t,r,n,o,a)=>{const i=Object.create(ui);return x.toFlatObject(e,i,function(c){return c!==Error.prototype},l=>l!=="isAxiosError"),J.call(i,e.message,t,r,n,o),i.cause=e,i.name=e.name,a&&Object.assign(i,a),i};const Km=null;function jo(e){return x.isPlainObject(e)||x.isArray(e)}function mi(e){return x.endsWith(e,"[]")?e.slice(0,-2):e}function Va(e,t,r){return e?e.concat(t).map(function(o,a){return o=mi(o),!r&&a?"["+o+"]":o}).join(r?".":""):t}function Xm(e){return x.isArray(e)&&!e.some(jo)}const qm=x.toFlatObject(x,{},null,function(t){return/^is[A-Z]/.test(t)});function Jn(e,t,r){if(!x.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=x.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(y,g){return!x.isUndefined(g[y])});const n=r.metaTokens,o=r.visitor||d,a=r.dots,i=r.indexes,c=(r.Blob||typeof Blob<"u"&&Blob)&&x.isSpecCompliantForm(t);if(!x.isFunction(o))throw new TypeError("visitor must be a function");function u(_){if(_===null)return"";if(x.isDate(_))return _.toISOString();if(!c&&x.isBlob(_))throw new J("Blob is not supported. Use a Buffer instead.");return x.isArrayBuffer(_)||x.isTypedArray(_)?c&&typeof Blob=="function"?new Blob([_]):Buffer.from(_):_}function d(_,y,g){let v=_;if(_&&!g&&typeof _=="object"){if(x.endsWith(y,"{}"))y=n?y:y.slice(0,-2),_=JSON.stringify(_);else if(x.isArray(_)&&Xm(_)||(x.isFileList(_)||x.endsWith(y,"[]"))&&(v=x.toArray(_)))return y=mi(y),v.forEach(function(P,N){!(x.isUndefined(P)||P===null)&&t.append(i===!0?Va([y],N,a):i===null?y:y+"[]",u(P))}),!1}return jo(_)?!0:(t.append(Va(g,y,a),u(_)),!1)}const h=[],m=Object.assign(qm,{defaultVisitor:d,convertValue:u,isVisitable:jo});function b(_,y){if(!x.isUndefined(_)){if(h.indexOf(_)!==-1)throw Error("Circular reference detected in "+y.join("."));h.push(_),x.forEach(_,function(v,R){(!(x.isUndefined(v)||v===null)&&o.call(t,v,x.isString(R)?R.trim():R,y,m))===!0&&b(v,y?y.concat(R):[R])}),h.pop()}}if(!x.isObject(e))throw new TypeError("data must be an object");return b(e),t}function Ga(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function Go(e,t){this._pairs=[],e&&Jn(e,this,t)}const hi=Go.prototype;hi.append=function(t,r){this._pairs.push([t,r])};hi.toString=function(t){const r=t?function(n){return t.call(this,n,Ga)}:Ga;return this._pairs.map(function(o){return r(o[0])+"="+r(o[1])},"").join("&")};function Ym(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function fi(e,t,r){if(!t)return e;const n=r&&r.encode||Ym,o=r&&r.serialize;let a;if(o?a=o(t,r):a=x.isURLSearchParams(t)?t.toString():new Go(t,r).toString(n),a){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+a}return e}class za{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){x.forEach(this.handlers,function(n){n!==null&&t(n)})}}const pi={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Zm=typeof URLSearchParams<"u"?URLSearchParams:Go,Qm=typeof FormData<"u"?FormData:null,eh=typeof Blob<"u"?Blob:null,th={isBrowser:!0,classes:{URLSearchParams:Zm,FormData:Qm,Blob:eh},protocols:["http","https","file","blob","url","data"]},zo=typeof window<"u"&&typeof document<"u",rh=(e=>zo&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),nh=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",oh=zo&&window.location.href||"http://localhost",ah=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:zo,hasStandardBrowserEnv:rh,hasStandardBrowserWebWorkerEnv:nh,origin:oh},Symbol.toStringTag,{value:"Module"})),ot={...ah,...th};function sh(e,t){return Jn(e,new ot.classes.URLSearchParams,Object.assign({visitor:function(r,n,o,a){return ot.isNode&&x.isBuffer(r)?(this.append(n,r.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)}},t))}function ih(e){return x.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function lh(e){const t={},r=Object.keys(e);let n;const o=r.length;let a;for(n=0;n<o;n++)a=r[n],t[a]=e[a];return t}function gi(e){function t(r,n,o,a){let i=r[a++];if(i==="__proto__")return!0;const l=Number.isFinite(+i),c=a>=r.length;return i=!i&&x.isArray(o)?o.length:i,c?(x.hasOwnProp(o,i)?o[i]=[o[i],n]:o[i]=n,!l):((!o[i]||!x.isObject(o[i]))&&(o[i]=[]),t(r,n,o[i],a)&&x.isArray(o[i])&&(o[i]=lh(o[i])),!l)}if(x.isFormData(e)&&x.isFunction(e.entries)){const r={};return x.forEachEntry(e,(n,o)=>{t(ih(n),o,r,0)}),r}return null}function ch(e,t,r){if(x.isString(e))try{return(t||JSON.parse)(e),x.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}const Gr={transitional:pi,adapter:["xhr","http","fetch"],transformRequest:[function(t,r){const n=r.getContentType()||"",o=n.indexOf("application/json")>-1,a=x.isObject(t);if(a&&x.isHTMLForm(t)&&(t=new FormData(t)),x.isFormData(t))return o?JSON.stringify(gi(t)):t;if(x.isArrayBuffer(t)||x.isBuffer(t)||x.isStream(t)||x.isFile(t)||x.isBlob(t)||x.isReadableStream(t))return t;if(x.isArrayBufferView(t))return t.buffer;if(x.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(a){if(n.indexOf("application/x-www-form-urlencoded")>-1)return sh(t,this.formSerializer).toString();if((l=x.isFileList(t))||n.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return Jn(l?{"files[]":t}:t,c&&new c,this.formSerializer)}}return a||o?(r.setContentType("application/json",!1),ch(t)):t}],transformResponse:[function(t){const r=this.transitional||Gr.transitional,n=r&&r.forcedJSONParsing,o=this.responseType==="json";if(x.isResponse(t)||x.isReadableStream(t))return t;if(t&&x.isString(t)&&(n&&!this.responseType||o)){const i=!(r&&r.silentJSONParsing)&&o;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:ot.classes.FormData,Blob:ot.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};x.forEach(["delete","get","head","post","put","patch"],e=>{Gr.headers[e]={}});const uh=x.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"]),dh=e=>{const t={};let r,n,o;return e&&e.split(`
78
+ `).forEach(function(i){o=i.indexOf(":"),r=i.substring(0,o).trim().toLowerCase(),n=i.substring(o+1).trim(),!(!r||t[r]&&uh[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t},Wa=Symbol("internals");function Cr(e){return e&&String(e).trim().toLowerCase()}function mn(e){return e===!1||e==null?e:x.isArray(e)?e.map(mn):String(e)}function mh(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 hh=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function io(e,t,r,n,o){if(x.isFunction(n))return n.call(this,t,r);if(o&&(t=r),!!x.isString(t)){if(x.isString(n))return t.indexOf(n)!==-1;if(x.isRegExp(n))return n.test(t)}}function fh(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function ph(e,t){const r=x.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(o,a,i){return this[n].call(this,t,o,a,i)},configurable:!0})})}let Ie=class{constructor(t){t&&this.set(t)}set(t,r,n){const o=this;function a(l,c,u){const d=Cr(c);if(!d)throw new Error("header name must be a non-empty string");const h=x.findKey(o,d);(!h||o[h]===void 0||u===!0||u===void 0&&o[h]!==!1)&&(o[h||c]=mn(l))}const i=(l,c)=>x.forEach(l,(u,d)=>a(u,d,c));if(x.isPlainObject(t)||t instanceof this.constructor)i(t,r);else if(x.isString(t)&&(t=t.trim())&&!hh(t))i(dh(t),r);else if(x.isHeaders(t))for(const[l,c]of t.entries())a(c,l,n);else t!=null&&a(r,t,n);return this}get(t,r){if(t=Cr(t),t){const n=x.findKey(this,t);if(n){const o=this[n];if(!r)return o;if(r===!0)return mh(o);if(x.isFunction(r))return r.call(this,o,n);if(x.isRegExp(r))return r.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=Cr(t),t){const n=x.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||io(this,this[n],n,r)))}return!1}delete(t,r){const n=this;let o=!1;function a(i){if(i=Cr(i),i){const l=x.findKey(n,i);l&&(!r||io(n,n[l],l,r))&&(delete n[l],o=!0)}}return x.isArray(t)?t.forEach(a):a(t),o}clear(t){const r=Object.keys(this);let n=r.length,o=!1;for(;n--;){const a=r[n];(!t||io(this,this[a],a,t,!0))&&(delete this[a],o=!0)}return o}normalize(t){const r=this,n={};return x.forEach(this,(o,a)=>{const i=x.findKey(n,a);if(i){r[i]=mn(o),delete r[a];return}const l=t?fh(a):String(a).trim();l!==a&&delete r[a],r[l]=mn(o),n[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const r=Object.create(null);return x.forEach(this,(n,o)=>{n!=null&&n!==!1&&(r[o]=t&&x.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(`
79
+ `)}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(o=>n.set(o)),n}static accessor(t){const n=(this[Wa]=this[Wa]={accessors:{}}).accessors,o=this.prototype;function a(i){const l=Cr(i);n[l]||(ph(o,i),n[l]=!0)}return x.isArray(t)?t.forEach(a):a(t),this}};Ie.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);x.reduceDescriptors(Ie.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}});x.freezeMethods(Ie);function lo(e,t){const r=this||Gr,n=t||r,o=Ie.from(n.headers);let a=n.data;return x.forEach(e,function(l){a=l.call(r,a,o.normalize(),t?t.status:void 0)}),o.normalize(),a}function yi(e){return!!(e&&e.__CANCEL__)}function mr(e,t,r){J.call(this,e??"canceled",J.ERR_CANCELED,t,r),this.name="CanceledError"}x.inherits(mr,J,{__CANCEL__:!0});function _i(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 gh(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function yh(e,t){e=e||10;const r=new Array(e),n=new Array(e);let o=0,a=0,i;return t=t!==void 0?t:1e3,function(c){const u=Date.now(),d=n[a];i||(i=u),r[o]=c,n[o]=u;let h=a,m=0;for(;h!==o;)m+=r[h++],h=h%e;if(o=(o+1)%e,o===a&&(a=(a+1)%e),u-i<t)return;const b=d&&u-d;return b?Math.round(m*1e3/b):void 0}}function _h(e,t){let r=0,n=1e3/t,o,a;const i=(u,d=Date.now())=>{r=d,o=null,a&&(clearTimeout(a),a=null),e.apply(null,u)};return[(...u)=>{const d=Date.now(),h=d-r;h>=n?i(u,d):(o=u,a||(a=setTimeout(()=>{a=null,i(o)},n-h)))},()=>o&&i(o)]}const vn=(e,t,r=3)=>{let n=0;const o=yh(50,250);return _h(a=>{const i=a.loaded,l=a.lengthComputable?a.total:void 0,c=i-n,u=o(c),d=i<=l;n=i;const h={loaded:i,total:l,progress:l?i/l:void 0,bytes:c,rate:u||void 0,estimated:u&&l&&d?(l-i)/u:void 0,event:a,lengthComputable:l!=null,[t?"download":"upload"]:!0};e(h)},r)},Ha=(e,t)=>{const r=e!=null;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},Ka=e=>(...t)=>x.asap(()=>e(...t)),bh=ot.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");let n;function o(a){let i=a;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=o(window.location.href),function(i){const l=x.isString(i)?o(i):i;return l.protocol===n.protocol&&l.host===n.host}}():function(){return function(){return!0}}(),xh=ot.hasStandardBrowserEnv?{write(e,t,r,n,o,a){const i=[e+"="+encodeURIComponent(t)];x.isNumber(r)&&i.push("expires="+new Date(r).toGMTString()),x.isString(n)&&i.push("path="+n),x.isString(o)&&i.push("domain="+o),a===!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 Sh(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function vh(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function bi(e,t){return e&&!Sh(t)?vh(e,t):t}const Xa=e=>e instanceof Ie?{...e}:e;function Vt(e,t){t=t||{};const r={};function n(u,d,h){return x.isPlainObject(u)&&x.isPlainObject(d)?x.merge.call({caseless:h},u,d):x.isPlainObject(d)?x.merge({},d):x.isArray(d)?d.slice():d}function o(u,d,h){if(x.isUndefined(d)){if(!x.isUndefined(u))return n(void 0,u,h)}else return n(u,d,h)}function a(u,d){if(!x.isUndefined(d))return n(void 0,d)}function i(u,d){if(x.isUndefined(d)){if(!x.isUndefined(u))return n(void 0,u)}else return n(void 0,d)}function l(u,d,h){if(h in t)return n(u,d);if(h in e)return n(void 0,u)}const c={url:a,method:a,data:a,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:(u,d)=>o(Xa(u),Xa(d),!0)};return x.forEach(Object.keys(Object.assign({},e,t)),function(d){const h=c[d]||o,m=h(e[d],t[d],d);x.isUndefined(m)&&h!==l||(r[d]=m)}),r}const xi=e=>{const t=Vt({},e);let{data:r,withXSRFToken:n,xsrfHeaderName:o,xsrfCookieName:a,headers:i,auth:l}=t;t.headers=i=Ie.from(i),t.url=fi(bi(t.baseURL,t.url),e.params,e.paramsSerializer),l&&i.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):"")));let c;if(x.isFormData(r)){if(ot.hasStandardBrowserEnv||ot.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if((c=i.getContentType())!==!1){const[u,...d]=c?c.split(";").map(h=>h.trim()).filter(Boolean):[];i.setContentType([u||"multipart/form-data",...d].join("; "))}}if(ot.hasStandardBrowserEnv&&(n&&x.isFunction(n)&&(n=n(t)),n||n!==!1&&bh(t.url))){const u=o&&a&&xh.read(a);u&&i.set(o,u)}return t},wh=typeof XMLHttpRequest<"u",Rh=wh&&function(e){return new Promise(function(r,n){const o=xi(e);let a=o.data;const i=Ie.from(o.headers).normalize();let{responseType:l,onUploadProgress:c,onDownloadProgress:u}=o,d,h,m,b,_;function y(){b&&b(),_&&_(),o.cancelToken&&o.cancelToken.unsubscribe(d),o.signal&&o.signal.removeEventListener("abort",d)}let g=new XMLHttpRequest;g.open(o.method.toUpperCase(),o.url,!0),g.timeout=o.timeout;function v(){if(!g)return;const P=Ie.from("getAllResponseHeaders"in g&&g.getAllResponseHeaders()),j={data:!l||l==="text"||l==="json"?g.responseText:g.response,status:g.status,statusText:g.statusText,headers:P,config:e,request:g};_i(function(O){r(O),y()},function(O){n(O),y()},j),g=null}"onloadend"in g?g.onloadend=v:g.onreadystatechange=function(){!g||g.readyState!==4||g.status===0&&!(g.responseURL&&g.responseURL.indexOf("file:")===0)||setTimeout(v)},g.onabort=function(){g&&(n(new J("Request aborted",J.ECONNABORTED,e,g)),g=null)},g.onerror=function(){n(new J("Network Error",J.ERR_NETWORK,e,g)),g=null},g.ontimeout=function(){let N=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const j=o.transitional||pi;o.timeoutErrorMessage&&(N=o.timeoutErrorMessage),n(new J(N,j.clarifyTimeoutError?J.ETIMEDOUT:J.ECONNABORTED,e,g)),g=null},a===void 0&&i.setContentType(null),"setRequestHeader"in g&&x.forEach(i.toJSON(),function(N,j){g.setRequestHeader(j,N)}),x.isUndefined(o.withCredentials)||(g.withCredentials=!!o.withCredentials),l&&l!=="json"&&(g.responseType=o.responseType),u&&([m,_]=vn(u,!0),g.addEventListener("progress",m)),c&&g.upload&&([h,b]=vn(c),g.upload.addEventListener("progress",h),g.upload.addEventListener("loadend",b)),(o.cancelToken||o.signal)&&(d=P=>{g&&(n(!P||P.type?new mr(null,e,g):P),g.abort(),g=null)},o.cancelToken&&o.cancelToken.subscribe(d),o.signal&&(o.signal.aborted?d():o.signal.addEventListener("abort",d)));const R=gh(o.url);if(R&&ot.protocols.indexOf(R)===-1){n(new J("Unsupported protocol "+R+":",J.ERR_BAD_REQUEST,e));return}g.send(a||null)})},jh=(e,t)=>{let r=new AbortController,n;const o=function(c){if(!n){n=!0,i();const u=c instanceof Error?c:this.reason;r.abort(u instanceof J?u:new mr(u instanceof Error?u.message:u))}};let a=t&&setTimeout(()=>{o(new J(`timeout ${t} of ms exceeded`,J.ETIMEDOUT))},t);const i=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach(c=>{c&&(c.removeEventListener?c.removeEventListener("abort",o):c.unsubscribe(o))}),e=null)};e.forEach(c=>c&&c.addEventListener&&c.addEventListener("abort",o));const{signal:l}=r;return l.unsubscribe=i,[l,()=>{a&&clearTimeout(a),a=null}]},Ch=function*(e,t){let r=e.byteLength;if(!t||r<t){yield e;return}let n=0,o;for(;n<r;)o=n+t,yield e.slice(n,o),n=o},Ph=async function*(e,t,r){for await(const n of e)yield*Ch(ArrayBuffer.isView(n)?n:await r(String(n)),t)},qa=(e,t,r,n,o)=>{const a=Ph(e,t,o);let i=0,l,c=u=>{l||(l=!0,n&&n(u))};return new ReadableStream({async pull(u){try{const{done:d,value:h}=await a.next();if(d){c(),u.close();return}let m=h.byteLength;if(r){let b=i+=m;r(b)}u.enqueue(new Uint8Array(h))}catch(d){throw c(d),d}},cancel(u){return c(u),a.return()}},{highWaterMark:2})},Vn=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Si=Vn&&typeof ReadableStream=="function",Co=Vn&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),vi=(e,...t)=>{try{return!!e(...t)}catch{return!1}},Ah=Si&&vi(()=>{let e=!1;const t=new Request(ot.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),Ya=64*1024,Po=Si&&vi(()=>x.isReadableStream(new Response("").body)),wn={stream:Po&&(e=>e.body)};Vn&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!wn[t]&&(wn[t]=x.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 Lh=async e=>{if(e==null)return 0;if(x.isBlob(e))return e.size;if(x.isSpecCompliantForm(e))return(await new Request(e).arrayBuffer()).byteLength;if(x.isArrayBufferView(e)||x.isArrayBuffer(e))return e.byteLength;if(x.isURLSearchParams(e)&&(e=e+""),x.isString(e))return(await Co(e)).byteLength},Oh=async(e,t)=>{const r=x.toFiniteNumber(e.getContentLength());return r??Lh(t)},Mh=Vn&&(async e=>{let{url:t,method:r,data:n,signal:o,cancelToken:a,timeout:i,onDownloadProgress:l,onUploadProgress:c,responseType:u,headers:d,withCredentials:h="same-origin",fetchOptions:m}=xi(e);u=u?(u+"").toLowerCase():"text";let[b,_]=o||a||i?jh([o,a],i):[],y,g;const v=()=>{!y&&setTimeout(()=>{b&&b.unsubscribe()}),y=!0};let R;try{if(c&&Ah&&r!=="get"&&r!=="head"&&(R=await Oh(d,n))!==0){let I=new Request(t,{method:"POST",body:n,duplex:"half"}),O;if(x.isFormData(n)&&(O=I.headers.get("content-type"))&&d.setContentType(O),I.body){const[ne,de]=Ha(R,vn(Ka(c)));n=qa(I.body,Ya,ne,de,Co)}}x.isString(h)||(h=h?"include":"omit"),g=new Request(t,{...m,signal:b,method:r.toUpperCase(),headers:d.normalize().toJSON(),body:n,duplex:"half",credentials:h});let P=await fetch(g);const N=Po&&(u==="stream"||u==="response");if(Po&&(l||N)){const I={};["status","statusText","headers"].forEach(ce=>{I[ce]=P[ce]});const O=x.toFiniteNumber(P.headers.get("content-length")),[ne,de]=l&&Ha(O,vn(Ka(l),!0))||[];P=new Response(qa(P.body,Ya,ne,()=>{de&&de(),N&&v()},Co),I)}u=u||"text";let j=await wn[x.findKey(wn,u)||"text"](P,e);return!N&&v(),_&&_(),await new Promise((I,O)=>{_i(I,O,{data:j,headers:Ie.from(P.headers),status:P.status,statusText:P.statusText,config:e,request:g})})}catch(P){throw v(),P&&P.name==="TypeError"&&/fetch/i.test(P.message)?Object.assign(new J("Network Error",J.ERR_NETWORK,e,g),{cause:P.cause||P}):J.from(P,P&&P.code,e,g)}}),Ao={http:Km,xhr:Rh,fetch:Mh};x.forEach(Ao,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Za=e=>`- ${e}`,kh=e=>x.isFunction(e)||e===null||e===!1,wi={getAdapter:e=>{e=x.isArray(e)?e:[e];const{length:t}=e;let r,n;const o={};for(let a=0;a<t;a++){r=e[a];let i;if(n=r,!kh(r)&&(n=Ao[(i=String(r)).toLowerCase()],n===void 0))throw new J(`Unknown adapter '${i}'`);if(n)break;o[i||"#"+a]=n}if(!n){const a=Object.entries(o).map(([l,c])=>`adapter ${l} `+(c===!1?"is not supported by the environment":"is not available in the build"));let i=t?a.length>1?`since :
80
+ `+a.map(Za).join(`
81
+ `):" "+Za(a[0]):"as no adapter specified";throw new J("There is no suitable adapter to dispatch the request "+i,"ERR_NOT_SUPPORT")}return n},adapters:Ao};function co(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new mr(null,e)}function Qa(e){return co(e),e.headers=Ie.from(e.headers),e.data=lo.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),wi.getAdapter(e.adapter||Gr.adapter)(e).then(function(n){return co(e),n.data=lo.call(e,e.transformResponse,n),n.headers=Ie.from(n.headers),n},function(n){return yi(n)||(co(e),n&&n.response&&(n.response.data=lo.call(e,e.transformResponse,n.response),n.response.headers=Ie.from(n.response.headers))),Promise.reject(n)})}const Ri="1.7.4",Wo={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Wo[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const es={};Wo.transitional=function(t,r,n){function o(a,i){return"[Axios v"+Ri+"] Transitional option '"+a+"'"+i+(n?". "+n:"")}return(a,i,l)=>{if(t===!1)throw new J(o(i," has been removed"+(r?" in "+r:"")),J.ERR_DEPRECATED);return r&&!es[i]&&(es[i]=!0,console.warn(o(i," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(a,i,l):!0}};function Th(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 o=n.length;for(;o-- >0;){const a=n[o],i=t[a];if(i){const l=e[a],c=l===void 0||i(l,a,e);if(c!==!0)throw new J("option "+a+" must be "+c,J.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new J("Unknown option "+a,J.ERR_BAD_OPTION)}}const Lo={assertOptions:Th,validators:Wo},At=Lo.validators;let Bt=class{constructor(t){this.defaults=t,this.interceptors={request:new za,response:new za}}async request(t,r){try{return await this._request(t,r)}catch(n){if(n instanceof Error){let o;Error.captureStackTrace?Error.captureStackTrace(o={}):o=new Error;const a=o.stack?o.stack.replace(/^.+\n/,""):"";try{n.stack?a&&!String(n.stack).endsWith(a.replace(/^.+\n.+\n/,""))&&(n.stack+=`
82
+ `+a):n.stack=a}catch{}}throw n}}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=Vt(this.defaults,r);const{transitional:n,paramsSerializer:o,headers:a}=r;n!==void 0&&Lo.assertOptions(n,{silentJSONParsing:At.transitional(At.boolean),forcedJSONParsing:At.transitional(At.boolean),clarifyTimeoutError:At.transitional(At.boolean)},!1),o!=null&&(x.isFunction(o)?r.paramsSerializer={serialize:o}:Lo.assertOptions(o,{encode:At.function,serialize:At.function},!0)),r.method=(r.method||this.defaults.method||"get").toLowerCase();let i=a&&x.merge(a.common,a[r.method]);a&&x.forEach(["delete","get","head","post","put","patch","common"],_=>{delete a[_]}),r.headers=Ie.concat(i,a);const l=[];let c=!0;this.interceptors.request.forEach(function(y){typeof y.runWhen=="function"&&y.runWhen(r)===!1||(c=c&&y.synchronous,l.unshift(y.fulfilled,y.rejected))});const u=[];this.interceptors.response.forEach(function(y){u.push(y.fulfilled,y.rejected)});let d,h=0,m;if(!c){const _=[Qa.bind(this),void 0];for(_.unshift.apply(_,l),_.push.apply(_,u),m=_.length,d=Promise.resolve(r);h<m;)d=d.then(_[h++],_[h++]);return d}m=l.length;let b=r;for(h=0;h<m;){const _=l[h++],y=l[h++];try{b=_(b)}catch(g){y.call(this,g);break}}try{d=Qa.call(this,b)}catch(_){return Promise.reject(_)}for(h=0,m=u.length;h<m;)d=d.then(u[h++],u[h++]);return d}getUri(t){t=Vt(this.defaults,t);const r=bi(t.baseURL,t.url);return fi(r,t.params,t.paramsSerializer)}};x.forEach(["delete","get","head","options"],function(t){Bt.prototype[t]=function(r,n){return this.request(Vt(n||{},{method:t,url:r,data:(n||{}).data}))}});x.forEach(["post","put","patch"],function(t){function r(n){return function(a,i,l){return this.request(Vt(l||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:a,data:i}))}}Bt.prototype[t]=r(),Bt.prototype[t+"Form"]=r(!0)});let Eh=class ji{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(a){r=a});const n=this;this.promise.then(o=>{if(!n._listeners)return;let a=n._listeners.length;for(;a-- >0;)n._listeners[a](o);n._listeners=null}),this.promise.then=o=>{let a;const i=new Promise(l=>{n.subscribe(l),a=l}).then(o);return i.cancel=function(){n.unsubscribe(a)},i},t(function(a,i,l){n.reason||(n.reason=new mr(a,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 ji(function(o){t=o}),cancel:t}}};function Ih(e){return function(r){return e.apply(null,r)}}function Nh(e){return x.isObject(e)&&e.isAxiosError===!0}const Oo={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(Oo).forEach(([e,t])=>{Oo[t]=e});function Ci(e){const t=new Bt(e),r=ri(Bt.prototype.request,t);return x.extend(r,Bt.prototype,t,{allOwnKeys:!0}),x.extend(r,t,null,{allOwnKeys:!0}),r.create=function(o){return Ci(Vt(e,o))},r}const Se=Ci(Gr);Se.Axios=Bt;Se.CanceledError=mr;Se.CancelToken=Eh;Se.isCancel=yi;Se.VERSION=Ri;Se.toFormData=Jn;Se.AxiosError=J;Se.Cancel=Se.CanceledError;Se.all=function(t){return Promise.all(t)};Se.spread=Ih;Se.isAxiosError=Nh;Se.mergeConfig=Vt;Se.AxiosHeaders=Ie;Se.formToJSON=e=>gi(x.isHTMLForm(e)?new FormData(e):e);Se.getAdapter=wi.getAdapter;Se.HttpStatusCode=Oo;Se.default=Se;const{Axios:Qh,AxiosError:ts,CanceledError:ef,isCancel:tf,CancelToken:rf,VERSION:nf,all:of,Cancel:af,isAxiosError:sf,spread:lf,toFormData:cf,AxiosHeaders:uf,HttpStatusCode:df,formToJSON:mf,getAdapter:hf,mergeConfig:ff}=Se;function $h(e){try{return JSON.stringify(e)}catch{return}}function Fh(e){var t,r,n,o;return e instanceof ts&&e.code==="ERR_NETWORK"?"Failed to connect to the server. Please check your internet connection.":e instanceof ts&&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((o=e.response)==null?void 0:o.data)}`:e instanceof Error?e.message:`Unexpected error: ${$h(e)||e}`}const Dh=e=>{const t=e.softTimeout||3e3,[r,n]=se.useState(!1);return se.useEffect(()=>{const o=setTimeout(()=>{n(!0)},t);return()=>clearTimeout(o)}),s.jsx(E.Stack,{width:"100%",height:"100%",alignItems:"center",justifyContent:"center",children:e.error?s.jsx(Uh,{message:e.message,error:e.error}):s.jsxs(s.Fragment,{children:[s.jsx(E.CircularProgress,{sx:{marginBottom:"24px"}}),!!e.message&&s.jsx("div",{children:e.message}),s.jsx(E.Stack,{sx:{visibility:r?"visible":"hidden",marginTop:"1rem",color:"gray"},children:"This is taking longer than expected..."})]})})},Uh=e=>{const t=Fh(e.error),r=e.error instanceof Error?e.error.stack:null,n=E.useTheme();return s.jsxs(E.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:[`Error while: ${e.message} - ${t}`,s.jsx("br",{}),r&&s.jsx("pre",{children:r})]})},Bh=Ve.observer(e=>{var a,i,l,c;const{nova:t}=e,r=Ve.useLocalObservable(()=>({joggingStore:null,loadingError:null}));async function n(){try{const u=await t.connectJogger(e.motionGroupId),d=await Jo.loadFor(u);Or.runInAction(()=>{r.joggingStore=d}),e.onSetup&&e.onSetup(d)}catch(u){r.loadingError=u}}if(se.useEffect(()=>(n(),()=>{var u;(u=r.joggingStore)==null||u.dispose()}),[]),se.useEffect(()=>{if(!r.joggingStore)return;const{currentTab:u,selectedTcpId:d,activeCoordSystemId:h,selectedDiscreteIncrement:m}=r.joggingStore;if(u.id!=="cartesian"&&u.id!=="joint")return;const b={tcpId:d,coordSystemId:h};m&&u.id==="cartesian"?r.joggingStore.jogger.setJoggingMode("increment",b):r.joggingStore.jogger.setJoggingMode(u.id,b)},[(a=r.joggingStore)==null?void 0:a.currentTab,(i=r.joggingStore)==null?void 0:i.selectedTcpId,(l=r.joggingStore)==null?void 0:l.activeCoordSystemId,(c=r.joggingStore)==null?void 0:c.selectedDiscreteIncrement]),!r.joggingStore)return s.jsx(rs,{children:s.jsx(Dh,{message:"Loading jogging",error:r.loadingError})});const{joggingStore:o}=r;return s.jsx(rs,{children:s.jsxs(E.Stack,{flexGrow:1,children:[s.jsx(E.Tabs,{value:o.tabIndex,onChange:o.onTabChange,children:o.tabs.map(u=>s.jsx(E.Tab,{label:u.label,id:`jogging-tab-${u.id}`,"aria-controls":`jogging-tab-${u.id}`},u.id))}),s.jsxs(E.Stack,{flexGrow:1,children:[o.currentTab.id==="cartesian"&&s.jsx(am,{store:o}),o.currentTab.id==="joint"&&s.jsx(im,{store:o}),e.children]})]})})});function rs({children:e}){return s.jsx(E.Stack,{sx:{maxWidth:"460px",minWidth:"350px",overflowY:"auto",position:"relative",height:"100%"},children:s.jsx(E.Paper,{sx:{height:"100%"},children:e})})}const Jh=vt(Zd),Vh=vt(Hs),Gh=vt(b0),zh=vt(x0),Wh=vt(v0),Hh=vt(vo),Kh=vt(Xs),Xh=vt(Bh),qh=vt(Qs);exports.JoggingCartesianAxisControl=Hh;exports.JoggingJointRotationControl=Kh;exports.JoggingPanel=Xh;exports.PresetEnvironment=zh;exports.Robot=Gh;exports.SafetyZonesRenderer=Wh;exports.SupportedRobot=Vh;exports.VelocitySlider=qh;exports.WandelscriptEditor=Jh;exports.useAnimationFrame=ur;exports.useAutorun=Gs;exports.useMounted=Fn;exports.useReaction=zs;
102
83
  //# sourceMappingURL=index.cjs.map