@wandelbots/wandelbots-js-react-components 1.12.1 → 1.12.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +241 -241
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/icons/orientation-tool.svg +1 -1
package/dist/index.cjs
CHANGED
|
@@ -75,7 +75,7 @@ const theme2 = createTheme({ palette: {
|
|
|
75
75
|
} });`:Hr(12,g?` (${g})`:"",JSON.stringify(_.main)));return Ps(_,"light",R,n),Ps(_,"dark",C,n),_.contrastText||(_.contrastText=h(_.main)),_},b={dark:Lo,light:As};return process.env.NODE_ENV!=="production"&&(b[t]||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),tt(A({common:A({},Xr),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:Jh,contrastThreshold:r,getContrastText:h,augmentColor:f,tonalOffset:n},b[t]),o)}const Yh=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function Zh(e){return Math.round(e*1e5)/1e5}const Os={textTransform:"uppercase"},Ts='"Roboto", "Helvetica", "Arial", sans-serif';function Qh(e,t){const r=typeof t=="function"?t(e):t,{fontFamily:n=Ts,fontSize:o=14,fontWeightLight:a=300,fontWeightRegular:i=400,fontWeightMedium:l=500,fontWeightBold:c=700,htmlFontSize:u=16,allVariants:d,pxToRem:h}=r,f=Ue(r,Yh);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,y=h||(v=>`${v/u*b}rem`),_=(v,R,C,k,j)=>A({fontFamily:n,fontWeight:v,fontSize:y(R),lineHeight:C},n===Ts?{letterSpacing:`${Zh(k/R)}em`}:{},j,d),g={h1:_(a,96,1.167,-1.5),h2:_(a,60,1.2,-.5),h3:_(i,48,1.167,0),h4:_(i,34,1.235,.25),h5:_(i,24,1.334,0),h6:_(l,20,1.6,.15),subtitle1:_(i,16,1.75,.15),subtitle2:_(l,14,1.57,.1),body1:_(i,16,1.5,.15),body2:_(i,14,1.43,.15),button:_(l,14,1.75,.4,Os),caption:_(i,12,1.66,.4),overline:_(i,12,2.66,1,Os),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return tt(A({htmlFontSize:u,pxToRem:y,fontFamily:n,fontSize:o,fontWeightLight:a,fontWeightRegular:i,fontWeightMedium:l,fontWeightBold:c},g),f,{clone:!1})}const em=.2,tm=.14,rm=.12;function fe(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${em})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${tm})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${rm})`].join(",")}const nm=["none",fe(0,2,1,-1,0,1,1,0,0,1,3,0),fe(0,3,1,-2,0,2,2,0,0,1,5,0),fe(0,3,3,-2,0,3,4,0,0,1,8,0),fe(0,2,4,-1,0,4,5,0,0,1,10,0),fe(0,3,5,-1,0,5,8,0,0,1,14,0),fe(0,3,5,-1,0,6,10,0,0,1,18,0),fe(0,4,5,-2,0,7,10,1,0,2,16,1),fe(0,5,5,-3,0,8,10,1,0,3,14,2),fe(0,5,6,-3,0,9,12,1,0,3,16,2),fe(0,6,6,-3,0,10,14,1,0,4,18,3),fe(0,6,7,-4,0,11,15,1,0,4,20,3),fe(0,7,8,-4,0,12,17,2,0,5,22,4),fe(0,7,8,-4,0,13,19,2,0,5,24,4),fe(0,7,9,-4,0,14,21,2,0,5,26,4),fe(0,8,9,-5,0,15,22,2,0,6,28,5),fe(0,8,10,-5,0,16,24,2,0,6,30,5),fe(0,8,11,-5,0,17,26,2,0,6,32,5),fe(0,9,11,-5,0,18,28,2,0,7,34,6),fe(0,9,12,-6,0,19,29,2,0,7,36,6),fe(0,10,13,-6,0,20,31,3,0,8,38,7),fe(0,10,13,-6,0,21,33,3,0,8,40,7),fe(0,10,14,-6,0,22,35,3,0,8,42,7),fe(0,11,14,-7,0,23,36,3,0,9,44,8),fe(0,11,15,-7,0,24,38,3,0,9,46,8)],om=["duration","easing","delay"],am={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)"},sm={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Es(e){return`${Math.round(e)}ms`}function im(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function lm(e){const t=A({},am,e.easing),r=A({},sm,e.duration);return A({getAutoHeightDuration:im,create:(o=["all"],a={})=>{const{duration:i=r.standard,easing:l=t.easeInOut,delay:c=0}=a,u=Ue(a,om);if(process.env.NODE_ENV!=="production"){const d=f=>typeof f=="string",h=f=>!isNaN(parseFloat(f));!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
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:Es(i)} ${l} ${typeof c=="string"?c:Es(c)}`).join(",")}},e,{easing:t,duration:r})}const cm={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},um=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function ea(e={},...t){const{mixins:r={},palette:n={},transitions:o={},typography:a={}}=e,i=Ue(e,um);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.":Hr(18));const l=Xh(n),c=an(e);let u=tt(c,{mixins:Oh(c.breakpoints,r),palette:l,shadows:nm.slice(),typography:Qh(l,a),transitions:lm(o),zIndex:A({},cm)});if(u=tt(u,i),u=t.reduce((d,h)=>tt(d,h),u),process.env.NODE_ENV!=="production"){const d=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],h=(f,b)=>{let y;for(y in f){const _=f[y];if(d.indexOf(y)!==-1&&Object.keys(_).length>0){if(process.env.NODE_ENV!=="production"){const g=sn("",y);console.error([`MUI: The \`${b}\` component increases the CSS specificity of the \`${y}\` internal state.`,"You can not override it like this: ",JSON.stringify(f,null,2),"",`Instead, you need to use the '&.${g}' syntax:`,JSON.stringify({root:{[`&.${g}`]:_}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
|
|
77
77
|
`))}f[y]={}}}};Object.keys(u.components).forEach(f=>{const b=u.components[f].styleOverrides;b&&f.indexOf("Mui")===0&&h(b,f)})}return u.unstable_sxConfig=A({},nn,i==null?void 0:i.unstable_sxConfig),u.unstable_sx=function(h){return on({sx:h,theme:this})},u}const dm=ea(),fm="$$material";function Pa(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const hm=e=>Pa(e)&&e!=="classes",Ct=mh({themeId:fm,defaultTheme:dm,rootShouldForwardProp:hm});process.env.NODE_ENV!=="production"&&(m.node,m.object.isRequired);function Oa(e){return Yf(e)}const _r=ah({createStyledComponent:Ct("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>Oa({props:e,name:"MuiStack"})});process.env.NODE_ENV!=="production"&&(_r.propTypes={children:m.node,component:m.elementType,direction:m.oneOfType([m.oneOf(["column-reverse","column","row-reverse","row"]),m.arrayOf(m.oneOf(["column-reverse","column","row-reverse","row"])),m.object]),divider:m.node,spacing:m.oneOfType([m.arrayOf(m.oneOfType([m.number,m.string])),m.number,m.object,m.string]),sx:m.oneOfType([m.arrayOf(m.oneOfType([m.func,m.object,m.bool])),m.func,m.object]),useFlexGap:m.bool});const ta=en(He.observer(({color:e,label:t,getDisplayedValue:r,startJogging:n,stopJogging:o,disabled:a,...i})=>{Sr(()=>{const d=r(),h=l.current;h&&(h.textContent=d)});const l=Z.useRef(null);e=e||"#F14D42";function c(d){d.button===0&&n("-")}function u(d){d.button===0&&n("+")}return s.jsxs(_r,{height:"72px",direction:"row",...i,children:[s.jsx(L.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(_r,{spacing:"6px",sx:{width:"184px",backgroundColor:e,alignItems:"center",justifyContent:"center",opacity:"0.9"},children:[s.jsx(_r,{height:"22px",direction:"row",alignItems:"center",justifyItems:"center",spacing:1,sx:{userSelect:"none",color:"white"},children:t}),s.jsx(L.Typography,{height:"22px",sx:{fontSize:"15px",color:"white"},ref:l,children:r()})]}),s.jsx(L.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:"+"})]})}));var Ta={},ko={};function mm(e){return sn("MuiSvgIcon",e)}Qi("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const pm=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],gm=e=>{const{color:t,fontSize:r,classes:n}=e,o={root:["root",t!=="inherit"&&`color${Oe(t)}`,`fontSize${Oe(r)}`]};return Ra(o,mm,n)},ym=Ct("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="inherit"&&t[`color${Oe(r.color)}`],t[`fontSize${Oe(r.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var r,n,o,a,i,l,c,u,d,h,f,b,y;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(r=e.transitions)==null||(n=r.create)==null?void 0:n.call(r,"fill",{duration:(o=e.transitions)==null||(o=o.duration)==null?void 0:o.shorter}),fontSize:{inherit:"inherit",small:((a=e.typography)==null||(i=a.pxToRem)==null?void 0:i.call(a,20))||"1.25rem",medium:((l=e.typography)==null||(c=l.pxToRem)==null?void 0:c.call(l,24))||"1.5rem",large:((u=e.typography)==null||(d=u.pxToRem)==null?void 0:d.call(u,35))||"2.1875rem"}[t.fontSize],color:(h=(f=(e.vars||e).palette)==null||(f=f[t.color])==null?void 0:f.main)!=null?h:{action:(b=(e.vars||e).palette)==null||(b=b.action)==null?void 0:b.active,disabled:(y=(e.vars||e).palette)==null||(y=y.action)==null?void 0:y.disabled,inherit:void 0}[t.color]}}),Vn=N.forwardRef(function(t,r){const n=Oa({props:t,name:"MuiSvgIcon"}),{children:o,className:a,color:i="inherit",component:l="svg",fontSize:c="medium",htmlColor:u,inheritViewBox:d=!1,titleAccess:h,viewBox:f="0 0 24 24"}=n,b=Ue(n,pm),y=N.isValidElement(o)&&o.type==="svg",_=A({},n,{color:i,component:l,fontSize:c,instanceFontSize:t.fontSize,inheritViewBox:d,viewBox:f,hasSvgAsChild:y}),g={};d||(g.viewBox=f);const v=gm(_);return s.jsxs(ym,A({as:l,className:gt(v.root,a),focusable:"false",color:u,"aria-hidden":h?void 0:!0,role:h?"img":void 0,ref:r},g,b,y&&o.props,{ownerState:_,children:[y?o.props.children:o,h?s.jsx("title",{children:h}):null]}))});process.env.NODE_ENV!=="production"&&(Vn.propTypes={children:m.node,classes:m.object,className:m.string,color:m.oneOfType([m.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),m.string]),component:m.elementType,fontSize:m.oneOfType([m.oneOf(["inherit","large","medium","small"]),m.string]),htmlColor:m.string,inheritViewBox:m.bool,shapeRendering:m.string,sx:m.oneOfType([m.arrayOf(m.oneOfType([m.func,m.object,m.bool])),m.func,m.object]),titleAccess:m.string,viewBox:m.string});Vn.muiName="SvgIcon";function _m(e,t){function r(n,o){return s.jsx(Vn,A({"data-testid":`${t}Icon`,ref:o},n,{children:e}))}return process.env.NODE_ENV!=="production"&&(r.displayName=`${t}Icon`),r.muiName=Vn.muiName,N.memo(N.forwardRef(r))}const bm={configure:e=>{process.env.NODE_ENV!=="production"&&console.warn(["MUI: `ClassNameGenerator` import from `@mui/material/utils` is outdated and might cause unexpected issues.","","You should use `import { unstable_ClassNameGenerator } from '@mui/material/className'` instead","","The detail of the issue: https://github.com/mui/material-ui/issues/30011#issuecomment-1024993401","","The updated documentation: https://mui.com/guides/classname-generator/"].join(`
|
|
78
|
-
`)),Yi.configure(e)}},xm=Object.freeze(Object.defineProperty({__proto__:null,capitalize:Oe,createChainedFunction:Cf,createSvgIcon:_m,debounce:Af,deprecatedPropType:Pf,isMuiElement:Of,ownerDocument:yr,ownerWindow:Tf,requirePropFactory:Ef,setRef:nl,unstable_ClassNameGenerator:bm,unstable_useEnhancedEffect:va,unstable_useId:If,unsupportedProp:Lf,useControlled:ol,useEventCallback:Pn,useForkRef:Bn,useIsFocusVisible:al},Symbol.toStringTag,{value:"Module"})),Sm=jt(xm);var Ms;function ml(){return Ms||(Ms=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=Sm}(ko)),ko}var vm=lo;Object.defineProperty(Ta,"__esModule",{value:!0});var pl=Ta.default=void 0,wm=vm(ml()),Rm=s;pl=Ta.default=(0,wm.default)((0,Rm.jsx)("path",{d:"M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"ChevronLeft");var Ea={},jm=lo;Object.defineProperty(Ea,"__esModule",{value:!0});var gl=Ea.default=void 0,Cm=jm(ml()),Am=s;gl=Ea.default=(0,Cm.default)((0,Am.jsx)("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"ChevronRight");function Kt(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var yl=typeof global=="object"&&global&&global.Object===Object&&global,Pm=typeof self=="object"&&self&&self.Object===Object&&self,_t=yl||Pm||Function("return this")(),$o=function(){return _t.Date.now()},Om=/\s/;function Tm(e){for(var t=e.length;t--&&Om.test(e.charAt(t)););return t}var Em=/^\s+/;function Mm(e){return e&&e.slice(0,Tm(e)+1).replace(Em,"")}var Nt=_t.Symbol,_l=Object.prototype,Im=_l.hasOwnProperty,Lm=_l.toString,Ur=Nt?Nt.toStringTag:void 0;function km(e){var t=Im.call(e,Ur),r=e[Ur];try{e[Ur]=void 0;var n=!0}catch{}var o=Lm.call(e);return n&&(t?e[Ur]=r:delete e[Ur]),o}var $m=Object.prototype,Nm=$m.toString;function Fm(e){return Nm.call(e)}var Dm="[object Null]",Um="[object Undefined]",Is=Nt?Nt.toStringTag:void 0;function Zt(e){return e==null?e===void 0?Um:Dm:Is&&Is in Object(e)?km(e):Fm(e)}function qt(e){return e!=null&&typeof e=="object"}var Bm="[object Symbol]";function co(e){return typeof e=="symbol"||qt(e)&&Zt(e)==Bm}var Ls=NaN,Jm=/^[-+]0x[0-9a-f]+$/i,Vm=/^0b[01]+$/i,Gm=/^0o[0-7]+$/i,zm=parseInt;function ks(e){if(typeof e=="number")return e;if(co(e))return Ls;if(Kt(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Kt(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Mm(e);var r=Vm.test(e);return r||Gm.test(e)?zm(e.slice(2),r?2:8):Jm.test(e)?Ls:+e}var Wm="Expected a function",Hm=Math.max,Km=Math.min;function qm(e,t,r){var n,o,a,i,l,c,u=0,d=!1,h=!1,f=!0;if(typeof e!="function")throw new TypeError(Wm);t=ks(t)||0,Kt(r)&&(d=!!r.leading,h="maxWait"in r,a=h?Hm(ks(r.maxWait)||0,t):a,f="trailing"in r?!!r.trailing:f);function b(P){var O=n,z=o;return n=o=void 0,u=P,i=e.apply(z,O),i}function y(P){return u=P,l=setTimeout(v,t),d?b(P):i}function _(P){var O=P-c,z=P-u,le=t-O;return h?Km(le,a-z):le}function g(P){var O=P-c,z=P-u;return c===void 0||O>=t||O<0||h&&z>=a}function v(){var P=$o();if(g(P))return R(P);l=setTimeout(v,_(P))}function R(P){return l=void 0,f&&n?b(P):(n=o=void 0,i)}function C(){l!==void 0&&clearTimeout(l),u=0,n=c=o=l=void 0}function k(){return l===void 0?i:R($o())}function j(){var P=$o(),O=g(P);if(n=arguments,o=this,c=P,O){if(l===void 0)return y(c);if(h)return clearTimeout(l),l=setTimeout(v,t),b(c)}return l===void 0&&(l=setTimeout(v,t)),i}return j.cancel=C,j.flush=k,j}var Xm="Expected a function";function Ym(e,t,r){var n=!0,o=!0;if(typeof e!="function")throw new TypeError(Xm);return Kt(r)&&(n="leading"in r?!!r.leading:n,o="trailing"in r?!!r.trailing:o),qm(e,t,{leading:n,maxWait:t,trailing:o})}const bl=en(He.observer(({startJogging:e,stopJogging:t,lowerLimitDegs:r,upperLimitDegs:n,getValueDegs:o,disabled:a,...i})=>{const{t:l}=Ft.useTranslation(),[c,u]=Z.useState(),d=He.useLocalObservable(()=>({activeJoggingDir:null,startJogging(v){this.activeJoggingDir=v,e(v)},stopJogging(){this.activeJoggingDir=null,t()}})),h=Ym(()=>{u(o())},50);Sr(h);function f(v){v.button===0&&d.startJogging("-")}function b(v){v.button===0&&d.startJogging("+")}function y(v){d.stopJogging()}function _(v){v.target===v.currentTarget&&d.stopJogging()}function g(v,R=1){if(v===void 0||isNaN(v))return"";const C=l("General.degree.variable",{amount:v.toFixed(R)});return v>0&&R===0?`+${C}`:C}return s.jsxs(_r,{height:"64px",width:"100%",maxWidth:"300px",direction:"row",...i,sx:{"& .MuiIconButton-root":{width:"52px",color:"white",alignContent:"center",backgroundColor:"#38445A","&:disabled":{opacity:.5,backgroundColor:"#38445A"},"& svg":{width:"42px",height:"42px"}}},children:[s.jsx(L.IconButton,{onPointerDown:f,onPointerUp:y,onPointerOut:_,disabled:a,sx:{borderRadius:"16px 0px 0px 16px",backgroundColor:d.activeJoggingDir==="-"?"#495975":void 0},children:s.jsx(pl,{})}),s.jsxs(_r,{flexGrow:1,alignItems:"center",justifyContent:"center",sx:{borderStyle:"solid",borderLeftWidth:0,borderRightWidth:0,borderTopWidth:"4px",borderBottomWidth:"4px",backgroundColor:"#38445A",borderColor:"#38445A",paddingLeft:"20px",paddingRight:"20px",zIndex:1},children:[s.jsx(L.Typography,{sx:{fontSize:"15px",position:"relative",top:"5px",color:"white"},children:g(c)}),s.jsx(L.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(L.IconButton,{onPointerDown:b,onPointerUp:y,onPointerOut:_,disabled:a,sx:{borderRadius:"0px 16px 16px 0px",backgroundColor:d.activeJoggingDir==="+"?"#495975 !important":"#38445A"},children:s.jsx(gl,{})})]})})),Zm=({title:e,titleId:t,...r},n)=>N.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:25,height:24,fill:"none",ref:n,"aria-labelledby":t,...r},e?N.createElement("title",{id:t},e):null,N.createElement("path",{stroke:"#fff",strokeLinecap:"round",strokeWidth:1.5,d:"M18.5 12a6 6 0 1 0-6 6"}),N.createElement("path",{stroke:"#fff",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"m16.5 11 2 2.5 2-2.5"})),Qm=Z.forwardRef(Zm),e0=({title:e,titleId:t,...r},n)=>N.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:19,height:10,fill:"none",ref:n,"aria-labelledby":t,...r},e?N.createElement("title",{id:t},e):null,N.createElement("path",{fill:"#fff",fillRule:"evenodd",d:"M5.131.312a.9.9 0 0 1 0 1.272L3.07 3.645h12.44l-2.06-2.061A.9.9 0 0 1 14.72.313l3.596 3.596a.9.9 0 0 1 0 1.271l-3.596 3.597a.9.9 0 0 1-1.271-1.272l2.061-2.062H3.07L5.13 7.505A.9.9 0 0 1 3.86 8.777L.263 5.18a.9.9 0 0 1 0-1.271L3.86.312a.9.9 0 0 1 1.271 0",clipRule:"evenodd"})),t0=Z.forwardRef(e0),r0=({title:e,titleId:t,...r},n)=>N.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:19,height:10,fill:"none",ref:n,"aria-labelledby":t,...r},e?N.createElement("title",{id:t},e):null,N.createElement("path",{fill:"#fff",fillRule:"evenodd",d:"M5.131.312a.9.9 0 0 1 0 1.272L3.07 3.645h12.44l-2.06-2.061A.9.9 0 0 1 14.72.313l3.596 3.596a.9.9 0 0 1 0 1.271l-3.596 3.597a.9.9 0 0 1-1.271-1.272l2.061-2.062H3.07L5.13 7.505A.9.9 0 0 1 3.86 8.777L.263 5.18a.9.9 0 0 1 0-1.271L3.86.312a.9.9 0 0 1 1.271 0",clipRule:"evenodd"})),n0=Z.forwardRef(r0),o0=({title:e,titleId:t,...r},n)=>N.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:10,height:19,fill:"none",ref:n,"aria-labelledby":t,...r},e?N.createElement("title",{id:t},e):null,N.createElement("path",{fill:"#fff",fillRule:"evenodd",d:"M9.522 14.811A.899.899 0 1 0 8.25 13.54L6.19 15.601V3.16L8.25 5.221A.9.9 0 0 0 9.522 3.95L5.926.354a.9.9 0 0 0-1.272 0L1.058 3.95a.9.9 0 1 0 1.271 1.271L4.391 3.16v12.442L2.329 13.54a.899.899 0 1 0-1.271 1.271l3.596 3.597a.9.9 0 0 0 1.272 0z",clipRule:"evenodd"})),a0=Z.forwardRef(o0),s0=({title:e,titleId:t,...r},n)=>N.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:21,height:21,fill:"none",viewBox:"0 0 23 22",ref:n,"aria-labelledby":t,...r},e?N.createElement("title",{id:t},e):null,N.createElement("path",{fill:"currentColor",d:"m21.71 16.262-1.09.346.66 2.071-2.923-1.461V9.857l-6.285-3.143V2.893L13.38 4.21l.812-.806-2.674-2.69-2.706 2.687.805.812L10.93 2.91v3.803L4.643 9.857v7.36l-2.914 1.458.657-2.067-1.09-.346-1.225 3.88 3.826 1.144.346-1.09-1.836-.583 2.874-1.436 6.22 3.109 6.217-3.11 2.877 1.439-1.831.581.345 1.09 3.82-1.143zM11.5 12.646l-4.94-2.47 4.94-2.47 4.94 2.47zm.572.993 5.143-2.572v6.083l-5.143 2.572zm-6.286-2.572 5.143 2.572v6.083L5.786 17.15z"})),i0=Z.forwardRef(s0),l0=({title:e,titleId:t,...r},n)=>N.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:21,height:21,fill:"none",ref:n,"aria-labelledby":t,...r},e?N.createElement("title",{id:t},e):null,N.createElement("path",{fill:"currentColor",fillOpacity:.8,d:"m11.87 7.12 1.69 1.69 2.99-2.99-3.73-3.73-.95-.95L4.21 8.8l-.95.95 3.99 3.99v3.44h7.55v-3.55l-4.72-4.72zm-.91-2.99.91-.91 2.6 2.6-.91.91zM8.71 14.37h3.74l-1.34-1.34-.04-.04h-2.5L5.32 9.74l4.59-4.59.92.92L8 8.9l5.33 5.33v1.48H8.7v-1.35z"})),c0=Z.forwardRef(l0),u0=He.observer(({store:e})=>{const{t}=Ft.useTranslation();function r(n,o){(o==="coordsys"||o==="tool")&&e.setSelectedOrientation(o)}return s.jsxs(s.Fragment,{children:[s.jsxs(L.Stack,{direction:"row",alignItems:"center",spacing:2,sx:{padding:"8px 16px","& label":{opacity:.7,fontSize:"12px",marginBottom:"4px"}},children:[s.jsxs(L.Stack,{width:"50%",children:[s.jsx(L.InputLabel,{id:"jogging-coord-select",children:"Coordinate Sys."}),s.jsx(L.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(L.MenuItem,{value:n.coordinate_system,children:n.name||n.coordinate_system},n.coordinate_system))})]}),s.jsxs(L.Stack,{width:"50%",children:[s.jsx(L.InputLabel,{id:"jogging-tcp-select",children:"TCP"}),s.jsx(L.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(L.MenuItem,{value:n.id,children:n.id},n.id))})]})]}),s.jsxs(L.Stack,{direction:"row",alignItems:"center",spacing:2,sx:{padding:"8px 16px","& label":{opacity:.7,fontSize:"12px",marginBottom:"4px"}},children:[s.jsxs(L.Stack,{width:"35%",children:[s.jsx(L.InputLabel,{id:"orientation-select",children:t("Jogging.Cartesian.Orientation.lb")}),s.jsxs(L.ToggleButtonGroup,{value:e.selectedOrientation,onChange:r,exclusive:!0,"aria-labelledby":"orientation-select",disabled:e.isLocked,children:[s.jsx(L.ToggleButton,{value:"coordsys",children:s.jsx(i0,{})}),s.jsx(L.ToggleButton,{value:"tool",children:s.jsx(c0,{})})]})]}),s.jsxs(L.Stack,{width:"65%",children:[s.jsx(L.InputLabel,{id:"jogging-increment-select",children:"Increment"}),s.jsxs(L.Select,{labelId:"jogging-increment-select",value:e.selectedIncrementId,onChange:n=>{e.setSelectedIncrementId(n.target.value)},disabled:e.isLocked,children:[s.jsx(L.MenuItem,{value:"continuous",children:t("Jogging.Increment.Continuous.dd")},"continuous"),e.discreteIncrementOptions.map(n=>s.jsx(L.MenuItem,{value:n.id,children:e.currentMotionType==="translate"?`${n.mm}mm`:`${n.degrees}°`},n.id))]})]})]})]})});function d0(e,t,r=(n,o)=>n===o){return e.length===t.length&&e.every((n,o)=>r(n,t[o]))}const f0=2;function xl(e,t){return e-t}function $s(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 _n(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 Gn(e,t,r){return(e-t)*100/(r-t)}function h0(e,t,r){return(r-t)*e+t}function m0(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 p0(e,t,r){const n=Math.round((e-r)/t)*t+r;return Number(n.toFixed(m0(t)))}function Ns({values:e,newValue:t,index:r}){const n=e.slice();return n[r]=t,n.sort(xl)}function bn({sliderRef:e,activeIndex:t,setActive:r}){var n,o;const a=yr(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 xn(e,t){return typeof e=="number"&&typeof t=="number"?e===t:typeof e=="object"&&typeof t=="object"?d0(e,t):!1}const g0={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}%`})}},y0=e=>e;let Sn;function Fs(){return Sn===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?Sn=CSS.supports("touch-action","none"):Sn=!0),Sn}function _0(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:f="horizontal",rootRef:b,scale:y=y0,step:_=1,shiftStep:g=10,tabIndex:v,value:R}=e,C=N.useRef(),[k,j]=N.useState(-1),[P,O]=N.useState(-1),[z,le]=N.useState(!1),ue=N.useRef(0),[D,q]=ol({controlled:R,default:r??c,name:"Slider"}),G=d&&((T,I,F)=>{const W=T.nativeEvent||T,Y=new W.constructor(W.type,W);Object.defineProperty(Y,"target",{writable:!0,value:{value:I,name:u}}),d(Y,I,F)}),X=Array.isArray(D);let K=X?D.slice().sort(xl):[D];K=K.map(T=>T==null?c:hr(T,c,l));const we=i===!0&&_!==null?[...Array(Math.floor((l-c)/_)+1)].map((T,I)=>({value:c+_*I})):i||[],ce=we.map(T=>T.value),{isFocusVisibleRef:Q,onBlur:Ae,onFocus:Ie,ref:ot}=al(),[bt,Ke]=N.useState(-1),Re=N.useRef(),Ot=Bn(ot,Re),ct=Bn(b,Ot),qe=T=>I=>{var F;const W=Number(I.currentTarget.getAttribute("data-index"));Ie(I),Q.current===!0&&Ke(W),O(W),T==null||(F=T.onFocus)==null||F.call(T,I)},Be=T=>I=>{var F;Ae(I),Q.current===!1&&Ke(-1),O(-1),T==null||(F=T.onBlur)==null||F.call(T,I)},ut=(T,I)=>{const F=Number(T.currentTarget.getAttribute("data-index")),W=K[F],Y=ce.indexOf(W);let H=I;if(we&&_==null){const Ve=ce[ce.length-1];H>Ve?H=Ve:H<ce[0]?H=ce[0]:H=H<W?ce[Y-1]:ce[Y+1]}if(H=hr(H,c,l),X){o&&(H=hr(H,K[F-1]||-1/0,K[F+1]||1/0));const Ve=H;H=Ns({values:K,newValue:H,index:F});let Xe=F;o||(Xe=H.indexOf(Ve)),bn({sliderRef:Re,activeIndex:Xe})}q(H),Ke(F),G&&!xn(H,D)&&G(T,H,F),h&&h(T,H)},dt=T=>I=>{var F;if(_!==null){const W=Number(I.currentTarget.getAttribute("data-index")),Y=K[W];let H=null;(I.key==="ArrowLeft"||I.key==="ArrowDown")&&I.shiftKey||I.key==="PageDown"?H=Math.max(Y-g,c):((I.key==="ArrowRight"||I.key==="ArrowUp")&&I.shiftKey||I.key==="PageUp")&&(H=Math.min(Y+g,l)),H!==null&&(ut(I,H),I.preventDefault())}T==null||(F=T.onKeyDown)==null||F.call(T,I)};va(()=>{if(n&&Re.current.contains(document.activeElement)){var T;(T=document.activeElement)==null||T.blur()}},[n]),n&&k!==-1&&j(-1),n&&bt!==-1&&Ke(-1);const Ut=T=>I=>{var F;(F=T.onChange)==null||F.call(T,I),ut(I,I.target.valueAsNumber)},xt=N.useRef();let Je=f;a&&f==="horizontal"&&(Je+="-reverse");const E=({finger:T,move:I=!1})=>{const{current:F}=Re,{width:W,height:Y,bottom:H,left:Ve}=F.getBoundingClientRect();let Xe;Je.indexOf("vertical")===0?Xe=(H-T.y)/Y:Xe=(T.x-Ve)/W,Je.indexOf("-reverse")!==-1&&(Xe=1-Xe);let te;if(te=h0(Xe,c,l),_)te=p0(te,_,c);else{const Mt=$s(ce,te);te=ce[Mt]}te=hr(te,c,l);let $e=0;if(X){I?$e=xt.current:$e=$s(K,te),o&&(te=hr(te,K[$e-1]||-1/0,K[$e+1]||1/0));const Mt=te;te=Ns({values:K,newValue:te,index:$e}),o&&I||($e=te.indexOf(Mt),xt.current=$e)}return{newValue:te,activeIndex:$e}},ee=Pn(T=>{const I=_n(T,C);if(!I)return;if(ue.current+=1,T.type==="mousemove"&&T.buttons===0){he(T);return}const{newValue:F,activeIndex:W}=E({finger:I,move:!0});bn({sliderRef:Re,activeIndex:W,setActive:j}),q(F),!z&&ue.current>f0&&le(!0),G&&!xn(F,D)&&G(T,F,W)}),he=Pn(T=>{const I=_n(T,C);if(le(!1),!I)return;const{newValue:F}=E({finger:I,move:!0});j(-1),T.type==="touchend"&&O(-1),h&&h(T,F),C.current=void 0,ke()}),Le=Pn(T=>{if(n)return;Fs()||T.preventDefault();const I=T.changedTouches[0];I!=null&&(C.current=I.identifier);const F=_n(T,C);if(F!==!1){const{newValue:Y,activeIndex:H}=E({finger:F});bn({sliderRef:Re,activeIndex:H,setActive:j}),q(Y),G&&!xn(Y,D)&&G(T,Y,H)}ue.current=0;const W=yr(Re.current);W.addEventListener("touchmove",ee,{passive:!0}),W.addEventListener("touchend",he,{passive:!0})}),ke=N.useCallback(()=>{const T=yr(Re.current);T.removeEventListener("mousemove",ee),T.removeEventListener("mouseup",he),T.removeEventListener("touchmove",ee),T.removeEventListener("touchend",he)},[he,ee]);N.useEffect(()=>{const{current:T}=Re;return T.addEventListener("touchstart",Le,{passive:Fs()}),()=>{T.removeEventListener("touchstart",Le),ke()}},[ke,Le]),N.useEffect(()=>{n&&ke()},[n,ke]);const Tt=T=>I=>{var F;if((F=T.onMouseDown)==null||F.call(T,I),n||I.defaultPrevented||I.button!==0)return;I.preventDefault();const W=_n(I,C);if(W!==!1){const{newValue:H,activeIndex:Ve}=E({finger:W});bn({sliderRef:Re,activeIndex:Ve,setActive:j}),q(H),G&&!xn(H,D)&&G(I,H,Ve)}ue.current=0;const Y=yr(Re.current);Y.addEventListener("mousemove",ee,{passive:!0}),Y.addEventListener("mouseup",he)},je=Gn(X?K[0]:c,c,l),Et=Gn(K[K.length-1],c,l)-je,Bt=(T={})=>{const I=On(T),F={onMouseDown:Tt(I||{})},W=A({},I,F);return A({},T,{ref:ct},W)},Ar=T=>I=>{var F;(F=T.onMouseOver)==null||F.call(T,I);const W=Number(I.currentTarget.getAttribute("data-index"));O(W)},Pr=T=>I=>{var F;(F=T.onMouseLeave)==null||F.call(T,I),O(-1)};return{active:k,axis:Je,axisProps:g0,dragging:z,focusedThumbIndex:bt,getHiddenInputProps:(T={})=>{var I;const F=On(T),W={onChange:Ut(F||{}),onFocus:qe(F||{}),onBlur:Be(F||{}),onKeyDown:dt(F||{})},Y=A({},F,W);return A({tabIndex:v,"aria-labelledby":t,"aria-orientation":f,"aria-valuemax":y(l),"aria-valuemin":y(c),name:u,type:"range",min:e.min,max:e.max,step:e.step===null&&e.marks?"any":(I=e.step)!=null?I:void 0,disabled:n},T,Y,{style:A({},Jf,{direction:a?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:Bt,getThumbProps:(T={})=>{const I=On(T),F={onMouseOver:Ar(I||{}),onMouseLeave:Pr(I||{})};return A({},T,I,F)},marks:we,open:P,range:X,rootRef:ct,trackLeap:Et,trackOffset:je,values:K,getThumbStyle:T=>({pointerEvents:k!==-1&&k!==T?"none":void 0})}}const b0=e=>!e||!Gr(e);function x0(e){return sn("MuiSlider",e)}const et=Qi("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"]),S0=e=>{const{open:t}=e;return{offset:gt(t&&et.valueLabelOpen),circle:et.valueLabelCircle,label:et.valueLabelLabel}};function Sl(e){const{children:t,className:r,value:n}=e,o=S0(e);return t?N.cloneElement(t,{className:gt(t.props.className)},s.jsxs(N.Fragment,{children:[t.props.children,s.jsx("span",{className:gt(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"&&(Sl.propTypes={children:m.element.isRequired,className:m.string,value:m.node});const v0=["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 Ds(e){return e}const w0=Ct("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`color${Oe(r.color)}`],r.size!=="medium"&&t[`size${Oe(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"},[`&.${et.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${et.dragging}`]:{[`& .${et.thumb}, & .${et.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}}]}}),R0=Ct("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}}]}),j0=Ct("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:Qo(e.palette[r].main,.62),borderColor:Qo(e.palette[r].main,.62)},e.applyStyles("dark",{backgroundColor:Zo(e.palette[r].main,.5)}),e.applyStyles("dark",{borderColor:Zo(e.palette[r].main,.5)})))}))]}}),C0=Ct("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.thumb,t[`thumbColor${Oe(r.color)}`],r.size!=="medium"&&t[`thumbSize${Oe(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%)"},[`&.${et.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, &.${et.focusVisible}`]:A({},e.vars?{boxShadow:`0px 0px 0px 8px rgba(${e.vars.palette[r].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 8px ${Rs(e.palette[r].main,.16)}`},{"@media (hover: none)":{boxShadow:"none"}}),[`&.${et.active}`]:A({},e.vars?{boxShadow:`0px 0px 0px 14px rgba(${e.vars.palette[r].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 14px ${Rs(e.palette[r].main,.16)}`})}}))]}}),A0=Ct(Sl,{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%"},[`&.${et.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%"},[`&.${et.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"}}]})),P0=Ct("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>Pa(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}}]})),O0=Ct("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>Pa(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}}]})),T0=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${Oe(l)}`,c&&`size${Oe(c)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",c&&`thumbSize${Oe(c)}`,l&&`thumbColor${Oe(l)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return Ra(u,x0,i)},E0=({children:e})=>e,vl=N.forwardRef(function(t,r){var n,o,a,i,l,c,u,d,h,f,b,y,_,g,v,R,C,k,j,P,O,z,le,ue;const D=Oa({props:t,name:"MuiSlider"}),q=Kf(),{"aria-label":G,"aria-valuetext":X,"aria-labelledby":K,component:we="span",components:ce={},componentsProps:Q={},color:Ae="primary",classes:Ie,className:ot,disableSwap:bt=!1,disabled:Ke=!1,getAriaLabel:Re,getAriaValueText:Ot,marks:ct=!1,max:qe=100,min:Be=0,orientation:ut="horizontal",shiftStep:dt=10,size:Ut="medium",step:xt=1,scale:Je=Ds,slotProps:E,slots:ee,track:he="normal",valueLabelDisplay:Le="off",valueLabelFormat:ke=Ds}=D,Tt=Ue(D,v0),je=A({},D,{isRtl:q,max:qe,min:Be,classes:Ie,disabled:Ke,disableSwap:bt,orientation:ut,marks:ct,color:Ae,size:Ut,step:xt,shiftStep:dt,scale:Je,track:he,valueLabelDisplay:Le,valueLabelFormat:ke}),{axisProps:Et,getRootProps:Bt,getHiddenInputProps:Ar,getThumbProps:Pr,open:Or,active:tr,axis:at,focusedThumbIndex:T,range:I,dragging:F,marks:W,values:Y,trackOffset:H,trackLeap:Ve,getThumbStyle:Xe}=_0(A({},je,{rootRef:r}));je.marked=W.length>0&&W.some($=>$.label),je.dragging=F,je.focusedThumbIndex=T;const te=T0(je),$e=(n=(o=ee==null?void 0:ee.root)!=null?o:ce.Root)!=null?n:w0,Mt=(a=(i=ee==null?void 0:ee.rail)!=null?i:ce.Rail)!=null?a:R0,rr=(l=(c=ee==null?void 0:ee.track)!=null?c:ce.Track)!=null?l:j0,Tr=(u=(d=ee==null?void 0:ee.thumb)!=null?d:ce.Thumb)!=null?u:C0,St=(h=(f=ee==null?void 0:ee.valueLabel)!=null?f:ce.ValueLabel)!=null?h:A0,Jt=(b=(y=ee==null?void 0:ee.mark)!=null?y:ce.Mark)!=null?b:P0,Vt=(_=(g=ee==null?void 0:ee.markLabel)!=null?g:ce.MarkLabel)!=null?_:O0,Er=(v=(R=ee==null?void 0:ee.input)!=null?R:ce.Input)!=null?v:"input",Mr=(C=E==null?void 0:E.root)!=null?C:Q.root,dn=(k=E==null?void 0:E.rail)!=null?k:Q.rail,Ir=(j=E==null?void 0:E.track)!=null?j:Q.track,nr=(P=E==null?void 0:E.thumb)!=null?P:Q.thumb,or=(O=E==null?void 0:E.valueLabel)!=null?O:Q.valueLabel,xo=(z=E==null?void 0:E.mark)!=null?z:Q.mark,So=(le=E==null?void 0:E.markLabel)!=null?le:Q.markLabel,fn=(ue=E==null?void 0:E.input)!=null?ue:Q.input,hn=It({elementType:$e,getSlotProps:Bt,externalSlotProps:Mr,externalForwardedProps:Tt,additionalProps:A({},b0($e)&&{as:we}),ownerState:A({},je,Mr==null?void 0:Mr.ownerState),className:[te.root,ot]}),vo=It({elementType:Mt,externalSlotProps:dn,ownerState:je,className:te.rail}),wo=It({elementType:rr,externalSlotProps:Ir,additionalProps:{style:A({},Et[at].offset(H),Et[at].leap(Ve))},ownerState:A({},je,Ir==null?void 0:Ir.ownerState),className:te.track}),Lr=It({elementType:Tr,getSlotProps:Pr,externalSlotProps:nr,ownerState:A({},je,nr==null?void 0:nr.ownerState),className:te.thumb}),Ro=It({elementType:St,externalSlotProps:or,ownerState:A({},je,or==null?void 0:or.ownerState),className:te.valueLabel}),p=It({elementType:Jt,externalSlotProps:xo,ownerState:je,className:te.mark}),w=It({elementType:Vt,externalSlotProps:So,ownerState:je,className:te.markLabel}),M=It({elementType:Er,getSlotProps:Ar,externalSlotProps:fn,ownerState:je});return s.jsxs($e,A({},hn,{children:[s.jsx(Mt,A({},vo)),s.jsx(rr,A({},wo)),W.filter($=>$.value>=Be&&$.value<=qe).map(($,U)=>{const re=Gn($.value,Be,qe),V=Et[at].offset(re);let B;return he===!1?B=Y.indexOf($.value)!==-1:B=he==="normal"&&(I?$.value>=Y[0]&&$.value<=Y[Y.length-1]:$.value<=Y[0])||he==="inverted"&&(I?$.value<=Y[0]||$.value>=Y[Y.length-1]:$.value>=Y[0]),s.jsxs(N.Fragment,{children:[s.jsx(Jt,A({"data-index":U},p,!Gr(Jt)&&{markActive:B},{style:A({},V,p.style),className:gt(p.className,B&&te.markActive)})),$.label!=null?s.jsx(Vt,A({"aria-hidden":!0,"data-index":U},w,!Gr(Vt)&&{markLabelActive:B},{style:A({},V,w.style),className:gt(te.markLabel,w.className,B&&te.markLabelActive),children:$.label})):null]},U)}),Y.map(($,U)=>{const re=Gn($,Be,qe),V=Et[at].offset(re),B=Le==="off"?E0:St;return s.jsx(B,A({},!Gr(B)&&{valueLabelFormat:ke,valueLabelDisplay:Le,value:typeof ke=="function"?ke(Je($),U):ke,index:U,open:Or===U||tr===U||Le==="on",disabled:Ke},Ro,{children:s.jsx(Tr,A({"data-index":U},Lr,{className:gt(te.thumb,Lr.className,tr===U&&te.active,T===U&&te.focusVisible),style:A({},V,Xe(U),Lr.style),children:s.jsx(Er,A({"data-index":U,"aria-label":Re?Re(U):G,"aria-valuenow":Je($),"aria-labelledby":K,"aria-valuetext":Ot?Ot(Je($),U):X,value:Y[U]},M))}))}),U)})]}))});process.env.NODE_ENV!=="production"&&(vl.propTypes={"aria-label":gs(m.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":m.string,"aria-valuetext":gs(m.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:m.node,classes:m.object,className:m.string,color:m.oneOfType([m.oneOf(["primary","secondary","error","info","success","warning"]),m.string]),components:m.shape({Input:m.elementType,Mark:m.elementType,MarkLabel:m.elementType,Rail:m.elementType,Root:m.elementType,Thumb:m.elementType,Track:m.elementType,ValueLabel:m.elementType}),componentsProps:m.shape({input:m.oneOfType([m.func,m.object]),mark:m.oneOfType([m.func,m.object]),markLabel:m.oneOfType([m.func,m.object]),rail:m.oneOfType([m.func,m.object]),root:m.oneOfType([m.func,m.object]),thumb:m.oneOfType([m.func,m.object]),track:m.oneOfType([m.func,m.object]),valueLabel:m.oneOfType([m.func,m.shape({children:m.element,className:m.string,open:m.bool,style:m.object,value:m.number,valueLabelDisplay:m.oneOf(["auto","off","on"])})])}),defaultValue:m.oneOfType([m.arrayOf(m.number),m.number]),disabled:m.bool,disableSwap:m.bool,getAriaLabel:m.func,getAriaValueText:m.func,marks:m.oneOfType([m.arrayOf(m.shape({label:m.node,value:m.number.isRequired})),m.bool]),max:m.number,min:m.number,name:m.string,onChange:m.func,onChangeCommitted:m.func,orientation:m.oneOf(["horizontal","vertical"]),scale:m.func,shiftStep:m.number,size:m.oneOfType([m.oneOf(["small","medium"]),m.string]),slotProps:m.shape({input:m.oneOfType([m.func,m.object]),mark:m.oneOfType([m.func,m.object]),markLabel:m.oneOfType([m.func,m.object]),rail:m.oneOfType([m.func,m.object]),root:m.oneOfType([m.func,m.object]),thumb:m.oneOfType([m.func,m.object]),track:m.oneOfType([m.func,m.object]),valueLabel:m.oneOfType([m.func,m.shape({children:m.element,className:m.string,open:m.bool,style:m.object,value:m.number,valueLabelDisplay:m.oneOf(["auto","off","on"])})])}),slots:m.shape({input:m.elementType,mark:m.elementType,markLabel:m.elementType,rail:m.elementType,root:m.elementType,thumb:m.elementType,track:m.elementType,valueLabel:m.elementType}),step:m.number,sx:m.oneOfType([m.arrayOf(m.oneOfType([m.func,m.object,m.bool])),m.func,m.object]),tabIndex:m.number,track:m.oneOf(["inverted","normal",!1]),value:m.oneOfType([m.arrayOf(m.number),m.number]),valueLabelDisplay:m.oneOf(["auto","off","on"]),valueLabelFormat:m.oneOfType([m.func,m.string])});var M0="[object Number]";function I0(e){return typeof e=="number"||qt(e)&&Zt(e)==M0}const wl=He.observer(e=>{const t=L.useTheme(),r=e.valueLabelFormat||(o=>`${o}`);function n(o,a){a===e.velocity||!I0(a)||e.onVelocityChange(a)}return s.jsxs(s.Fragment,{children:[s.jsx(L.Typography,{sx:{textAlign:"center",fontSize:"14px",opacity:.8,color:t.palette.text.primary},children:r(e.velocity)}),s.jsx(vl,{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"}}})]})}),Rl=He.observer(({store:e})=>{const{t}=Ft.useTranslation(),r=He.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(L.Stack,{sx:{margin:"0px 20px",marginTop:"24px",marginBottom:"24px"},children:s.jsx(L.Stack,{sx:{width:"380px",maxWidth:"90%",margin:"auto"},children:s.jsx(wl,{velocity:e.velocityInCurrentUnits,min:e.minVelocityInCurrentUnits,max:e.maxVelocityInCurrentUnits,onVelocityChange:e.setVelocityFromSlider,disabled:e.isLocked,valueLabelFormat:r.valueLabelFormat})})})}),jl=Z.forwardRef(({label:e,value:t},r)=>s.jsxs(s.Fragment,{children:[e&&s.jsx(L.InputLabel,{children:e}),s.jsx(L.Chip,{ref:r,sx:{fontSize:"14px",opacity:.8,marginTop:"4px !important"},value:t})]})),L0=He.observer(({store:e})=>{const t=Z.useRef(null);function r(){const n=e.jogger.motionStream.rapidlyChangingMotionState.tcp_pose;return n?$t.poseToWandelscriptString(n):""}return Sr(()=>{t.current&&(t.current.textContent=r())}),s.jsx(L.Stack,{alignItems:"left",spacing:2,sx:{padding:"8px 16px",paddingTop:"16px","& label":{opacity:.7,fontSize:"12px",marginBottom:"4px"}},children:s.jsx(jl,{label:"Pose",value:r(),ref:t})})});function k0(){this.__data__=[],this.size=0}function Cl(e,t){return e===t||e!==e&&t!==t}function uo(e,t){for(var r=e.length;r--;)if(Cl(e[r][0],t))return r;return-1}var $0=Array.prototype,N0=$0.splice;function F0(e){var t=this.__data__,r=uo(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():N0.call(t,r,1),--this.size,!0}function D0(e){var t=this.__data__,r=uo(t,e);return r<0?void 0:t[r][1]}function U0(e){return uo(this.__data__,e)>-1}function B0(e,t){var r=this.__data__,n=uo(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}function At(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}At.prototype.clear=k0;At.prototype.delete=F0;At.prototype.get=D0;At.prototype.has=U0;At.prototype.set=B0;function J0(){this.__data__=new At,this.size=0}function V0(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function G0(e){return this.__data__.get(e)}function z0(e){return this.__data__.has(e)}var W0="[object AsyncFunction]",H0="[object Function]",K0="[object GeneratorFunction]",q0="[object Proxy]";function Al(e){if(!Kt(e))return!1;var t=Zt(e);return t==H0||t==K0||t==W0||t==q0}var No=_t["__core-js_shared__"],Us=function(){var e=/[^.]+$/.exec(No&&No.keys&&No.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function X0(e){return!!Us&&Us in e}var Y0=Function.prototype,Z0=Y0.toString;function Qt(e){if(e!=null){try{return Z0.call(e)}catch{}try{return e+""}catch{}}return""}var Q0=/[\\^$.*+?()[\]{}|]/g,ep=/^\[object .+?Constructor\]$/,tp=Function.prototype,rp=Object.prototype,np=tp.toString,op=rp.hasOwnProperty,ap=RegExp("^"+np.call(op).replace(Q0,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function sp(e){if(!Kt(e)||X0(e))return!1;var t=Al(e)?ap:ep;return t.test(Qt(e))}function ip(e,t){return e==null?void 0:e[t]}function er(e,t){var r=ip(e,t);return sp(r)?r:void 0}var Yr=er(_t,"Map"),Zr=er(Object,"create");function lp(){this.__data__=Zr?Zr(null):{},this.size=0}function cp(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var up="__lodash_hash_undefined__",dp=Object.prototype,fp=dp.hasOwnProperty;function hp(e){var t=this.__data__;if(Zr){var r=t[e];return r===up?void 0:r}return fp.call(t,e)?t[e]:void 0}var mp=Object.prototype,pp=mp.hasOwnProperty;function gp(e){var t=this.__data__;return Zr?t[e]!==void 0:pp.call(t,e)}var yp="__lodash_hash_undefined__";function _p(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Zr&&t===void 0?yp:t,this}function Xt(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Xt.prototype.clear=lp;Xt.prototype.delete=cp;Xt.prototype.get=hp;Xt.prototype.has=gp;Xt.prototype.set=_p;function bp(){this.size=0,this.__data__={hash:new Xt,map:new(Yr||At),string:new Xt}}function xp(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function fo(e,t){var r=e.__data__;return xp(t)?r[typeof t=="string"?"string":"hash"]:r.map}function Sp(e){var t=fo(this,e).delete(e);return this.size-=t?1:0,t}function vp(e){return fo(this,e).get(e)}function wp(e){return fo(this,e).has(e)}function Rp(e,t){var r=fo(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}function Pt(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Pt.prototype.clear=bp;Pt.prototype.delete=Sp;Pt.prototype.get=vp;Pt.prototype.has=wp;Pt.prototype.set=Rp;var jp=200;function Cp(e,t){var r=this.__data__;if(r instanceof At){var n=r.__data__;if(!Yr||n.length<jp-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new Pt(n)}return r.set(e,t),this.size=r.size,this}function Rt(e){var t=this.__data__=new At(e);this.size=t.size}Rt.prototype.clear=J0;Rt.prototype.delete=V0;Rt.prototype.get=G0;Rt.prototype.has=z0;Rt.prototype.set=Cp;var Ap="__lodash_hash_undefined__";function Pp(e){return this.__data__.set(e,Ap),this}function Op(e){return this.__data__.has(e)}function zn(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new Pt;++t<r;)this.add(e[t])}zn.prototype.add=zn.prototype.push=Pp;zn.prototype.has=Op;function Tp(e,t){for(var r=-1,n=e==null?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}function Ep(e,t){return e.has(t)}var Mp=1,Ip=2;function Pl(e,t,r,n,o,a){var i=r&Mp,l=e.length,c=t.length;if(l!=c&&!(i&&c>l))return!1;var u=a.get(e),d=a.get(t);if(u&&d)return u==t&&d==e;var h=-1,f=!0,b=r&Ip?new zn:void 0;for(a.set(e,t),a.set(t,e);++h<l;){var y=e[h],_=t[h];if(n)var g=i?n(_,y,h,t,e,a):n(y,_,h,e,t,a);if(g!==void 0){if(g)continue;f=!1;break}if(b){if(!Tp(t,function(v,R){if(!Ep(b,R)&&(y===v||o(y,v,r,n,a)))return b.push(R)})){f=!1;break}}else if(!(y===_||o(y,_,r,n,a))){f=!1;break}}return a.delete(e),a.delete(t),f}var Bs=_t.Uint8Array;function Lp(e){var t=-1,r=Array(e.size);return e.forEach(function(n,o){r[++t]=[o,n]}),r}function kp(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var $p=1,Np=2,Fp="[object Boolean]",Dp="[object Date]",Up="[object Error]",Bp="[object Map]",Jp="[object Number]",Vp="[object RegExp]",Gp="[object Set]",zp="[object String]",Wp="[object Symbol]",Hp="[object ArrayBuffer]",Kp="[object DataView]",Js=Nt?Nt.prototype:void 0,Fo=Js?Js.valueOf:void 0;function qp(e,t,r,n,o,a,i){switch(r){case Kp:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Hp:return!(e.byteLength!=t.byteLength||!a(new Bs(e),new Bs(t)));case Fp:case Dp:case Jp:return Cl(+e,+t);case Up:return e.name==t.name&&e.message==t.message;case Vp:case zp:return e==t+"";case Bp:var l=Lp;case Gp:var c=n&$p;if(l||(l=kp),e.size!=t.size&&!c)return!1;var u=i.get(e);if(u)return u==t;n|=Np,i.set(e,t);var d=Pl(l(e),l(t),n,o,a,i);return i.delete(e),d;case Wp:if(Fo)return Fo.call(e)==Fo.call(t)}return!1}function Xp(e,t){for(var r=-1,n=t.length,o=e.length;++r<n;)e[o+r]=t[r];return e}var yt=Array.isArray;function Yp(e,t,r){var n=t(e);return yt(e)?n:Xp(n,r(e))}function Zp(e,t){for(var r=-1,n=e==null?0:e.length,o=0,a=[];++r<n;){var i=e[r];t(i,r,e)&&(a[o++]=i)}return a}function Qp(){return[]}var eg=Object.prototype,tg=eg.propertyIsEnumerable,Vs=Object.getOwnPropertySymbols,rg=Vs?function(e){return e==null?[]:(e=Object(e),Zp(Vs(e),function(t){return tg.call(e,t)}))}:Qp;function ng(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var og="[object Arguments]";function Gs(e){return qt(e)&&Zt(e)==og}var Ol=Object.prototype,ag=Ol.hasOwnProperty,sg=Ol.propertyIsEnumerable,Tl=Gs(function(){return arguments}())?Gs:function(e){return qt(e)&&ag.call(e,"callee")&&!sg.call(e,"callee")};function ig(){return!1}var El=typeof exports=="object"&&exports&&!exports.nodeType&&exports,zs=El&&typeof module=="object"&&module&&!module.nodeType&&module,lg=zs&&zs.exports===El,Ws=lg?_t.Buffer:void 0,cg=Ws?Ws.isBuffer:void 0,ra=cg||ig,ug=9007199254740991,dg=/^(?:0|[1-9]\d*)$/;function Ml(e,t){var r=typeof e;return t=t??ug,!!t&&(r=="number"||r!="symbol"&&dg.test(e))&&e>-1&&e%1==0&&e<t}var fg=9007199254740991;function Ma(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=fg}var hg="[object Arguments]",mg="[object Array]",pg="[object Boolean]",gg="[object Date]",yg="[object Error]",_g="[object Function]",bg="[object Map]",xg="[object Number]",Sg="[object Object]",vg="[object RegExp]",wg="[object Set]",Rg="[object String]",jg="[object WeakMap]",Cg="[object ArrayBuffer]",Ag="[object DataView]",Pg="[object Float32Array]",Og="[object Float64Array]",Tg="[object Int8Array]",Eg="[object Int16Array]",Mg="[object Int32Array]",Ig="[object Uint8Array]",Lg="[object Uint8ClampedArray]",kg="[object Uint16Array]",$g="[object Uint32Array]",de={};de[Pg]=de[Og]=de[Tg]=de[Eg]=de[Mg]=de[Ig]=de[Lg]=de[kg]=de[$g]=!0;de[hg]=de[mg]=de[Cg]=de[pg]=de[Ag]=de[gg]=de[yg]=de[_g]=de[bg]=de[xg]=de[Sg]=de[vg]=de[wg]=de[Rg]=de[jg]=!1;function Ng(e){return qt(e)&&Ma(e.length)&&!!de[Zt(e)]}function Fg(e){return function(t){return e(t)}}var Il=typeof exports=="object"&&exports&&!exports.nodeType&&exports,zr=Il&&typeof module=="object"&&module&&!module.nodeType&&module,Dg=zr&&zr.exports===Il,Do=Dg&&yl.process,Hs=function(){try{var e=zr&&zr.require&&zr.require("util").types;return e||Do&&Do.binding&&Do.binding("util")}catch{}}(),Ks=Hs&&Hs.isTypedArray,Ll=Ks?Fg(Ks):Ng,Ug=Object.prototype,Bg=Ug.hasOwnProperty;function Jg(e,t){var r=yt(e),n=!r&&Tl(e),o=!r&&!n&&ra(e),a=!r&&!n&&!o&&Ll(e),i=r||n||o||a,l=i?ng(e.length,String):[],c=l.length;for(var u in e)Bg.call(e,u)&&!(i&&(u=="length"||o&&(u=="offset"||u=="parent")||a&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||Ml(u,c)))&&l.push(u);return l}var Vg=Object.prototype;function Gg(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||Vg;return e===r}function zg(e,t){return function(r){return e(t(r))}}var Wg=zg(Object.keys,Object),Hg=Object.prototype,Kg=Hg.hasOwnProperty;function qg(e){if(!Gg(e))return Wg(e);var t=[];for(var r in Object(e))Kg.call(e,r)&&r!="constructor"&&t.push(r);return t}function kl(e){return e!=null&&Ma(e.length)&&!Al(e)}function Ia(e){return kl(e)?Jg(e):qg(e)}function qs(e){return Yp(e,Ia,rg)}var Xg=1,Yg=Object.prototype,Zg=Yg.hasOwnProperty;function Qg(e,t,r,n,o,a){var i=r&Xg,l=qs(e),c=l.length,u=qs(t),d=u.length;if(c!=d&&!i)return!1;for(var h=c;h--;){var f=l[h];if(!(i?f in t:Zg.call(t,f)))return!1}var b=a.get(e),y=a.get(t);if(b&&y)return b==t&&y==e;var _=!0;a.set(e,t),a.set(t,e);for(var g=i;++h<c;){f=l[h];var v=e[f],R=t[f];if(n)var C=i?n(R,v,f,t,e,a):n(v,R,f,e,t,a);if(!(C===void 0?v===R||o(v,R,r,n,a):C)){_=!1;break}g||(g=f=="constructor")}if(_&&!g){var k=e.constructor,j=t.constructor;k!=j&&"constructor"in e&&"constructor"in t&&!(typeof k=="function"&&k instanceof k&&typeof j=="function"&&j instanceof j)&&(_=!1)}return a.delete(e),a.delete(t),_}var na=er(_t,"DataView"),oa=er(_t,"Promise"),aa=er(_t,"Set"),sa=er(_t,"WeakMap"),Xs="[object Map]",ey="[object Object]",Ys="[object Promise]",Zs="[object Set]",Qs="[object WeakMap]",ei="[object DataView]",ty=Qt(na),ry=Qt(Yr),ny=Qt(oa),oy=Qt(aa),ay=Qt(sa),kt=Zt;(na&&kt(new na(new ArrayBuffer(1)))!=ei||Yr&&kt(new Yr)!=Xs||oa&&kt(oa.resolve())!=Ys||aa&&kt(new aa)!=Zs||sa&&kt(new sa)!=Qs)&&(kt=function(e){var t=Zt(e),r=t==ey?e.constructor:void 0,n=r?Qt(r):"";if(n)switch(n){case ty:return ei;case ry:return Xs;case ny:return Ys;case oy:return Zs;case ay:return Qs}return t});var sy=1,ti="[object Arguments]",ri="[object Array]",vn="[object Object]",iy=Object.prototype,ni=iy.hasOwnProperty;function ly(e,t,r,n,o,a){var i=yt(e),l=yt(t),c=i?ri:kt(e),u=l?ri:kt(t);c=c==ti?vn:c,u=u==ti?vn:u;var d=c==vn,h=u==vn,f=c==u;if(f&&ra(e)){if(!ra(t))return!1;i=!0,d=!1}if(f&&!d)return a||(a=new Rt),i||Ll(e)?Pl(e,t,r,n,o,a):qp(e,t,c,r,n,o,a);if(!(r&sy)){var b=d&&ni.call(e,"__wrapped__"),y=h&&ni.call(t,"__wrapped__");if(b||y){var _=b?e.value():e,g=y?t.value():t;return a||(a=new Rt),o(_,g,r,n,a)}}return f?(a||(a=new Rt),Qg(e,t,r,n,o,a)):!1}function ho(e,t,r,n,o){return e===t?!0:e==null||t==null||!qt(e)&&!qt(t)?e!==e&&t!==t:ly(e,t,r,n,ho,o)}function cy(e,t){return ho(e,t)}const uy=({store:e})=>{const{t}=Ft.useTranslation(),[r,n]=Z.useState(e.jogger.motionStream.rapidlyChangingMotionState.state.joint_limit_reached.limit_reached);Sr(()=>{const a=e.jogger.motionStream.rapidlyChangingMotionState.state.joint_limit_reached.limit_reached;cy(r,a)||n(a)});const o=[];return r.forEach((a,i)=>{a&&o.push(i)}),o.length?s.jsx(L.Typography,{color:"error",sx:{padding:"1rem",textAlign:"center"},children:t("Jogging.JointLimitsReached.lb",{jointNumbers:o.map(a=>a+1).join(", ")})}):null},dy=He.observer(({store:e})=>{const{t}=Ft.useTranslation();function r(h,f){(f==="translate"||f==="rotate")&&e.setSelectedCartesianMotionType(f)}Ti(()=>[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}),Z.useEffect(()=>(e.jogger.setJoggingMode("increment"),window.addEventListener("blur",o),()=>{window.removeEventListener("blur",o)}),[]);async function n(){e.jogger.setJoggingMode(e.selectedDiscreteIncrement?"increment":"cartesian",{tcpId:e.selectedTcpId,coordSystemId:e.selectedCoordSystemId})}async function o(){e.jogger.setJoggingMode("increment")}async function a(h,f){const b=e.jogger.motionStream.rapidlyChangingMotionState.tcp_pose,y=e.jogger.motionStream.rapidlyChangingMotionState.state.joint_position;b&&await e.withMotionLock(async()=>{await e.jogger.runIncrementalCartesianMotion({currentTcpPose:b,currentJoints:y,coordSystemId:e.selectedCoordSystemId,velocityInRelevantUnits:e.velocityInCurrentUnits,axis:h.axis,direction:h.direction,motion:e.selectedCartesianMotionType==="translate"?{type:"translate",distanceMm:f.mm}:{type:"rotate",distanceRads:$t.degreesToRadians(f.degrees)}})})}async function i(h){if(!e.isLocked){if(n(),e.selectedDiscreteIncrement)return a(h,e.selectedDiscreteIncrement);h.motionType==="translate"?await e.jogger.startTCPTranslation({axis:h.axis,direction:h.direction,velocityMmPerSec:e.translationVelocityMmPerSec}):await e.jogger.startTCPRotation({axis:h.axis,direction:h.direction,velocityRadsPerSec:e.rotationVelocityRadsPerSec})}}async function l(){e.isLocked||e.selectedDiscreteIncrement||await e.jogger.stop()}const c=[{id:"x",color:"#F14D42",icon:s.jsx(t0,{})},{id:"y",color:"#42A705",icon:s.jsx(n0,{})},{id:"z",color:"#0075FF",icon:s.jsx(a0,{})}];function u(h){return t("General.mm.variable",{amount:h.toFixed(1)})}function d(h){return t("General.degree.variable",{amount:$t.radiansToDegrees(h).toFixed(1)})}return s.jsxs(L.Stack,{onMouseEnter:n,onMouseLeave:o,children:[s.jsx(L0,{store:e}),s.jsx(u0,{store:e}),s.jsxs(L.Stack,{width:"80%",maxWidth:"296px",margin:"auto",marginTop:"16px",children:[s.jsxs(L.ToggleButtonGroup,{value:e.selectedCartesianMotionType,onChange:r,exclusive:!0,"aria-label":t("Jogging.Cartesian.MotionType.lb"),children:[s.jsx(L.ToggleButton,{value:"translate",children:t("Jogging.Cartesian.Translation.bt")}),s.jsx(L.ToggleButton,{value:"rotate",children:t("Jogging.Cartesian.Rotation.bt")})]}),e.selectedCartesianMotionType==="translate"&&c.map(h=>s.jsx(ta,{color:h.color,disabled:e.isLocked,sx:{marginTop:"12px"},label:s.jsxs(s.Fragment,{children:[h.icon,s.jsx(L.Typography,{sx:{fontSize:"24px",color:"white"},children:h.id.toUpperCase()})]}),getDisplayedValue:()=>{var f;return u(((f=e.jogger.motionStream.rapidlyChangingMotionState.tcp_pose)==null?void 0:f.position[h.id])||0)},startJogging:f=>i({axis:h.id,motionType:"translate",direction:f}),stopJogging:l},h.id)),e.selectedCartesianMotionType==="rotate"&&c.map(h=>s.jsx(ta,{color:h.color,disabled:e.isLocked,sx:{marginTop:"12px"},label:s.jsxs(s.Fragment,{children:[s.jsx(Qm,{}),s.jsx(L.Typography,{sx:{fontSize:"24px",color:"white"},children:h.id.toUpperCase()})]}),getDisplayedValue:()=>{var f,b;return d(((b=(f=e.jogger.motionStream.rapidlyChangingMotionState.tcp_pose)==null?void 0:f.orientation)==null?void 0:b[h.id])||0)},startJogging:f=>i({axis:h.id,motionType:"rotate",direction:f}),stopJogging:l},h.id))]}),s.jsx(Rl,{store:e}),s.jsx(uy,{store:e})]})}),fy=He.observer(({store:e})=>{const t=Z.useRef(null);Ft.useTranslation();function r(){const{joints:n}=e.jogger.motionStream.rapidlyChangingMotionState.state.joint_position;return`{${n.map(o=>parseFloat(o.toFixed(4))).join(", ")}}`}return Sr(()=>{t.current&&(t.current.textContent=r())}),s.jsx(L.Stack,{alignItems:"left",spacing:2,sx:{padding:"16px","& label":{opacity:.7,fontSize:"12px",marginBottom:"4px"}},children:s.jsx(jl,{label:"Pose",value:r(),ref:t})})}),hy=He.observer(({store:e})=>{Z.useEffect(()=>(e.jogger.setJoggingMode("increment"),window.addEventListener("blur",r),()=>{window.removeEventListener("blur",r)}),[]);async function t(){e.jogger.setJoggingMode("joint")}async function r(){e.jogger.setJoggingMode("increment")}async function n(a){await e.jogger.startJointRotation({joint:a.joint,direction:a.direction,velocityRadsPerSec:e.rotationVelocityRadsPerSec})}async function o(){await e.jogger.stop()}return s.jsxs(L.Stack,{onMouseEnter:t,onMouseLeave:r,children:[s.jsx(fy,{store:e}),s.jsx(L.Stack,{children:e.jogger.motionStream.joints.map(a=>{var u;const i=(u=e.motionGroupSpec.mechanical_joint_limits)==null?void 0:u[a.index],l=(i==null?void 0:i.lower_limit)!==void 0?$t.radiansToDegrees(i.lower_limit):void 0,c=(i==null?void 0:i.upper_limit)!==void 0?$t.radiansToDegrees(i.upper_limit):void 0;return s.jsxs(L.Stack,{direction:"row",alignItems:"center",gap:2,marginTop:"0.8rem",children:[s.jsx(L.Typography,{sx:{flexGrow:1,textAlign:"right"},children:`J${a.index+1}`}),s.jsx(bl,{disabled:e.isLocked,lowerLimitDegs:l,upperLimitDegs:c,getValueDegs:()=>{const d=e.jogger.motionStream.rapidlyChangingMotionState.state.joint_position.joints[a.index];return d!==void 0?$t.radiansToDegrees(d):void 0},startJogging:d=>n({joint:a.index,direction:d}),stopJogging:o},a.index),s.jsx(L.Typography,{sx:{flexGrow:1}})]},`joint-${a.index}`)})}),s.jsx(Rl,{store:e})]})});var oi=function(){try{var e=er(Object,"defineProperty");return e({},"",{}),e}catch{}}();function my(e,t,r){t=="__proto__"&&oi?oi(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function py(e,t,r,n){for(var o=-1,a=e==null?0:e.length;++o<a;){var i=e[o];t(n,i,r(i),e)}return n}function gy(e){return function(t,r,n){for(var o=-1,a=Object(t),i=n(t),l=i.length;l--;){var c=i[++o];if(r(a[c],c,a)===!1)break}return t}}var yy=gy();function _y(e,t){return e&&yy(e,t,Ia)}function by(e,t){return function(r,n){if(r==null)return r;if(!kl(r))return e(r,n);for(var o=r.length,a=-1,i=Object(r);++a<o&&n(i[a],a,i)!==!1;);return r}}var xy=by(_y);function Sy(e,t,r,n){return xy(e,function(o,a,i){t(n,o,r(o),i)}),n}var vy=1,wy=2;function Ry(e,t,r,n){var o=r.length,a=o;if(e==null)return!a;for(e=Object(e);o--;){var i=r[o];if(i[2]?i[1]!==e[i[0]]:!(i[0]in e))return!1}for(;++o<a;){i=r[o];var l=i[0],c=e[l],u=i[1];if(i[2]){if(c===void 0&&!(l in e))return!1}else{var d=new Rt,h;if(!(h===void 0?ho(u,c,vy|wy,n,d):h))return!1}}return!0}function $l(e){return e===e&&!Kt(e)}function jy(e){for(var t=Ia(e),r=t.length;r--;){var n=t[r],o=e[n];t[r]=[n,o,$l(o)]}return t}function Nl(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}function Cy(e){var t=jy(e);return t.length==1&&t[0][2]?Nl(t[0][0],t[0][1]):function(r){return r===e||Ry(r,e,t)}}var Ay=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Py=/^\w*$/;function La(e,t){if(yt(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||co(e)?!0:Py.test(e)||!Ay.test(e)||t!=null&&e in Object(t)}var Oy="Expected a function";function ka(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(Oy);var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],a=r.cache;if(a.has(o))return a.get(o);var i=e.apply(this,n);return r.cache=a.set(o,i)||a,i};return r.cache=new(ka.Cache||Pt),r}ka.Cache=Pt;var Ty=500;function Ey(e){var t=ka(e,function(n){return r.size===Ty&&r.clear(),n}),r=t.cache;return t}var My=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Iy=/\\(\\)?/g,Ly=Ey(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(My,function(r,n,o,a){t.push(o?a.replace(Iy,"$1"):n||r)}),t});function ky(e,t){for(var r=-1,n=e==null?0:e.length,o=Array(n);++r<n;)o[r]=t(e[r],r,e);return o}var $y=1/0,ai=Nt?Nt.prototype:void 0,si=ai?ai.toString:void 0;function Fl(e){if(typeof e=="string")return e;if(yt(e))return ky(e,Fl)+"";if(co(e))return si?si.call(e):"";var t=e+"";return t=="0"&&1/e==-$y?"-0":t}function Dl(e){return e==null?"":Fl(e)}function Ul(e,t){return yt(e)?e:La(e,t)?[e]:Ly(Dl(e))}var Ny=1/0;function mo(e){if(typeof e=="string"||co(e))return e;var t=e+"";return t=="0"&&1/e==-Ny?"-0":t}function Bl(e,t){t=Ul(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[mo(t[r++])];return r&&r==n?e:void 0}function Fy(e,t,r){var n=e==null?void 0:Bl(e,t);return n===void 0?r:n}function Dy(e,t){return e!=null&&t in Object(e)}function Uy(e,t,r){t=Ul(t,e);for(var n=-1,o=t.length,a=!1;++n<o;){var i=mo(t[n]);if(!(a=e!=null&&r(e,i)))break;e=e[i]}return a||++n!=o?a:(o=e==null?0:e.length,!!o&&Ma(o)&&Ml(i,o)&&(yt(e)||Tl(e)))}function By(e,t){return e!=null&&Uy(e,t,Dy)}var Jy=1,Vy=2;function Gy(e,t){return La(e)&&$l(t)?Nl(mo(e),t):function(r){var n=Fy(r,e);return n===void 0&&n===t?By(r,e):ho(t,n,Jy|Vy)}}function zy(e){return e}function Wy(e){return function(t){return t==null?void 0:t[e]}}function Hy(e){return function(t){return Bl(t,e)}}function Ky(e){return La(e)?Wy(mo(e)):Hy(e)}function qy(e){return typeof e=="function"?e:e==null?zy:typeof e=="object"?yt(e)?Gy(e[0],e[1]):Cy(e):Ky(e)}function Xy(e,t){return function(r,n){var o=yt(r)?py:Sy,a={};return o(r,e,qy(n),a)}}var wn=Xy(function(e,t,r){my(e,r,t)}),Yy=0;function Zy(e){var t=++Yy;return Dl(e)+t}const ia=[{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}],Qy=[{id:"continuous"},...ia];class $a{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)||"",br.makeAutoObservable(this,{},{autoBind:!0}),this.loadFromLocalStorage(),this.disposers.push(br.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 $a(t,n,o||[],a||[])}dispose(){for(const t of this.disposers)t();this.jogger.dispose()}loadFromLocalStorage(){const t=$t.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 Qy}get discreteIncrementOptions(){return ia}get incrementOptionsById(){return wn(this.incrementOptions,t=>t.id)}get tabsById(){return wn(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 wn(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 wn(this.tcps,t=>t.id)}get selectedDiscreteIncrement(){return ia.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=Zy();this.locks.add(r);try{return await t()}finally{this.locks.delete(r)}}}function Jl(e,t){return function(){return e.apply(t,arguments)}}const{toString:e1}=Object.prototype,{getPrototypeOf:Na}=Object,po=(e=>t=>{const r=e1.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),lt=e=>(e=e.toLowerCase(),t=>po(t)===e),go=e=>t=>typeof t===e,{isArray:jr}=Array,Qr=go("undefined");function t1(e){return e!==null&&!Qr(e)&&e.constructor!==null&&!Qr(e.constructor)&&We(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Vl=lt("ArrayBuffer");function r1(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Vl(e.buffer),t}const n1=go("string"),We=go("function"),Gl=go("number"),yo=e=>e!==null&&typeof e=="object",o1=e=>e===!0||e===!1,Mn=e=>{if(po(e)!=="object")return!1;const t=Na(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},a1=lt("Date"),s1=lt("File"),i1=lt("Blob"),l1=lt("FileList"),c1=e=>yo(e)&&We(e.pipe),u1=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||We(e.append)&&((t=po(e))==="formdata"||t==="object"&&We(e.toString)&&e.toString()==="[object FormData]"))},d1=lt("URLSearchParams"),[f1,h1,m1,p1]=["ReadableStream","Request","Response","Headers"].map(lt),g1=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function cn(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,o;if(typeof e!="object"&&(e=[e]),jr(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 zl(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 zt=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Wl=e=>!Qr(e)&&e!==zt;function la(){const{caseless:e}=Wl(this)&&this||{},t={},r=(n,o)=>{const a=e&&zl(t,o)||o;Mn(t[a])&&Mn(n)?t[a]=la(t[a],n):Mn(n)?t[a]=la({},n):jr(n)?t[a]=n.slice():t[a]=n};for(let n=0,o=arguments.length;n<o;n++)arguments[n]&&cn(arguments[n],r);return t}const y1=(e,t,r,{allOwnKeys:n}={})=>(cn(t,(o,a)=>{r&&We(o)?e[a]=Jl(o,r):e[a]=o},{allOwnKeys:n}),e),_1=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),b1=(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)},x1=(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&&Na(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},S1=(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},v1=e=>{if(!e)return null;if(jr(e))return e;let t=e.length;if(!Gl(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},w1=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Na(Uint8Array)),R1=(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])}},j1=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},C1=lt("HTMLFormElement"),A1=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,o){return n.toUpperCase()+o}),ii=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),P1=lt("RegExp"),Hl=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};cn(r,(o,a)=>{let i;(i=t(o,a,e))!==!1&&(n[a]=i||o)}),Object.defineProperties(e,n)},O1=e=>{Hl(e,(t,r)=>{if(We(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(We(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+"'")})}})},T1=(e,t)=>{const r={},n=o=>{o.forEach(a=>{r[a]=!0})};return jr(e)?n(e):n(String(e).split(t)),r},E1=()=>{},M1=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,Uo="abcdefghijklmnopqrstuvwxyz",li="0123456789",Kl={DIGIT:li,ALPHA:Uo,ALPHA_DIGIT:Uo+Uo.toUpperCase()+li},I1=(e=16,t=Kl.ALPHA_DIGIT)=>{let r="";const{length:n}=t;for(;e--;)r+=t[Math.random()*n|0];return r};function L1(e){return!!(e&&We(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const k1=e=>{const t=new Array(10),r=(n,o)=>{if(yo(n)){if(t.indexOf(n)>=0)return;if(!("toJSON"in n)){t[o]=n;const a=jr(n)?[]:{};return cn(n,(i,l)=>{const c=r(i,o+1);!Qr(c)&&(a[l]=c)}),t[o]=void 0,a}}return n};return r(e,0)},$1=lt("AsyncFunction"),N1=e=>e&&(yo(e)||We(e))&&We(e.then)&&We(e.catch),ql=((e,t)=>e?setImmediate:t?((r,n)=>(zt.addEventListener("message",({source:o,data:a})=>{o===zt&&a===r&&n.length&&n.shift()()},!1),o=>{n.push(o),zt.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",We(zt.postMessage)),F1=typeof queueMicrotask<"u"?queueMicrotask.bind(zt):typeof process<"u"&&process.nextTick||ql,x={isArray:jr,isArrayBuffer:Vl,isBuffer:t1,isFormData:u1,isArrayBufferView:r1,isString:n1,isNumber:Gl,isBoolean:o1,isObject:yo,isPlainObject:Mn,isReadableStream:f1,isRequest:h1,isResponse:m1,isHeaders:p1,isUndefined:Qr,isDate:a1,isFile:s1,isBlob:i1,isRegExp:P1,isFunction:We,isStream:c1,isURLSearchParams:d1,isTypedArray:w1,isFileList:l1,forEach:cn,merge:la,extend:y1,trim:g1,stripBOM:_1,inherits:b1,toFlatObject:x1,kindOf:po,kindOfTest:lt,endsWith:S1,toArray:v1,forEachEntry:R1,matchAll:j1,isHTMLForm:C1,hasOwnProperty:ii,hasOwnProp:ii,reduceDescriptors:Hl,freezeMethods:O1,toObjectSet:T1,toCamelCase:A1,noop:E1,toFiniteNumber:M1,findKey:zl,global:zt,isContextDefined:Wl,ALPHABET:Kl,generateString:I1,isSpecCompliantForm:L1,toJSONObject:k1,isAsyncFn:$1,isThenable:N1,setImmediate:ql,asap:F1};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 Xl=J.prototype,Yl={};["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=>{Yl[e]={value:e}});Object.defineProperties(J,Yl);Object.defineProperty(Xl,"isAxiosError",{value:!0});J.from=(e,t,r,n,o,a)=>{const i=Object.create(Xl);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 D1=null;function ca(e){return x.isPlainObject(e)||x.isArray(e)}function Zl(e){return x.endsWith(e,"[]")?e.slice(0,-2):e}function ci(e,t,r){return e?e.concat(t).map(function(o,a){return o=Zl(o),!r&&a?"["+o+"]":o}).join(r?".":""):t}function U1(e){return x.isArray(e)&&!e.some(ca)}const B1=x.toFlatObject(x,{},null,function(t){return/^is[A-Z]/.test(t)});function _o(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(_,g){return!x.isUndefined(g[_])});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(y){if(y===null)return"";if(x.isDate(y))return y.toISOString();if(!c&&x.isBlob(y))throw new J("Blob is not supported. Use a Buffer instead.");return x.isArrayBuffer(y)||x.isTypedArray(y)?c&&typeof Blob=="function"?new Blob([y]):Buffer.from(y):y}function d(y,_,g){let v=y;if(y&&!g&&typeof y=="object"){if(x.endsWith(_,"{}"))_=n?_:_.slice(0,-2),y=JSON.stringify(y);else if(x.isArray(y)&&U1(y)||(x.isFileList(y)||x.endsWith(_,"[]"))&&(v=x.toArray(y)))return _=Zl(_),v.forEach(function(C,k){!(x.isUndefined(C)||C===null)&&t.append(i===!0?ci([_],k,a):i===null?_:_+"[]",u(C))}),!1}return ca(y)?!0:(t.append(ci(g,_,a),u(y)),!1)}const h=[],f=Object.assign(B1,{defaultVisitor:d,convertValue:u,isVisitable:ca});function b(y,_){if(!x.isUndefined(y)){if(h.indexOf(y)!==-1)throw Error("Circular reference detected in "+_.join("."));h.push(y),x.forEach(y,function(v,R){(!(x.isUndefined(v)||v===null)&&o.call(t,v,x.isString(R)?R.trim():R,_,f))===!0&&b(v,_?_.concat(R):[R])}),h.pop()}}if(!x.isObject(e))throw new TypeError("data must be an object");return b(e),t}function ui(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function Fa(e,t){this._pairs=[],e&&_o(e,this,t)}const Ql=Fa.prototype;Ql.append=function(t,r){this._pairs.push([t,r])};Ql.toString=function(t){const r=t?function(n){return t.call(this,n,ui)}:ui;return this._pairs.map(function(o){return r(o[0])+"="+r(o[1])},"").join("&")};function J1(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function ec(e,t,r){if(!t)return e;const n=r&&r.encode||J1,o=r&&r.serialize;let a;if(o?a=o(t,r):a=x.isURLSearchParams(t)?t.toString():new Fa(t,r).toString(n),a){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+a}return e}class di{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 tc={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},V1=typeof URLSearchParams<"u"?URLSearchParams:Fa,G1=typeof FormData<"u"?FormData:null,z1=typeof Blob<"u"?Blob:null,W1={isBrowser:!0,classes:{URLSearchParams:V1,FormData:G1,Blob:z1},protocols:["http","https","file","blob","url","data"]},Da=typeof window<"u"&&typeof document<"u",H1=(e=>Da&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),K1=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",q1=Da&&window.location.href||"http://localhost",X1=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Da,hasStandardBrowserEnv:H1,hasStandardBrowserWebWorkerEnv:K1,origin:q1},Symbol.toStringTag,{value:"Module"})),st={...X1,...W1};function Y1(e,t){return _o(e,new st.classes.URLSearchParams,Object.assign({visitor:function(r,n,o,a){return st.isNode&&x.isBuffer(r)?(this.append(n,r.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)}},t))}function Z1(e){return x.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Q1(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 rc(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]=Q1(o[i])),!l)}if(x.isFormData(e)&&x.isFunction(e.entries)){const r={};return x.forEachEntry(e,(n,o)=>{t(Z1(n),o,r,0)}),r}return null}function e_(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 un={transitional:tc,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(rc(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 Y1(t,this.formSerializer).toString();if((l=x.isFileList(t))||n.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return _o(l?{"files[]":t}:t,c&&new c,this.formSerializer)}}return a||o?(r.setContentType("application/json",!1),e_(t)):t}],transformResponse:[function(t){const r=this.transitional||un.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:st.classes.FormData,Blob:st.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};x.forEach(["delete","get","head","post","put","patch"],e=>{un.headers[e]={}});const t_=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"]),r_=e=>{const t={};let r,n,o;return e&&e.split(`
|
|
78
|
+
`)),Yi.configure(e)}},xm=Object.freeze(Object.defineProperty({__proto__:null,capitalize:Oe,createChainedFunction:Cf,createSvgIcon:_m,debounce:Af,deprecatedPropType:Pf,isMuiElement:Of,ownerDocument:yr,ownerWindow:Tf,requirePropFactory:Ef,setRef:nl,unstable_ClassNameGenerator:bm,unstable_useEnhancedEffect:va,unstable_useId:If,unsupportedProp:Lf,useControlled:ol,useEventCallback:Pn,useForkRef:Bn,useIsFocusVisible:al},Symbol.toStringTag,{value:"Module"})),Sm=jt(xm);var Ms;function ml(){return Ms||(Ms=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=Sm}(ko)),ko}var vm=lo;Object.defineProperty(Ta,"__esModule",{value:!0});var pl=Ta.default=void 0,wm=vm(ml()),Rm=s;pl=Ta.default=(0,wm.default)((0,Rm.jsx)("path",{d:"M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"ChevronLeft");var Ea={},jm=lo;Object.defineProperty(Ea,"__esModule",{value:!0});var gl=Ea.default=void 0,Cm=jm(ml()),Am=s;gl=Ea.default=(0,Cm.default)((0,Am.jsx)("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"ChevronRight");function Kt(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var yl=typeof global=="object"&&global&&global.Object===Object&&global,Pm=typeof self=="object"&&self&&self.Object===Object&&self,_t=yl||Pm||Function("return this")(),$o=function(){return _t.Date.now()},Om=/\s/;function Tm(e){for(var t=e.length;t--&&Om.test(e.charAt(t)););return t}var Em=/^\s+/;function Mm(e){return e&&e.slice(0,Tm(e)+1).replace(Em,"")}var Nt=_t.Symbol,_l=Object.prototype,Im=_l.hasOwnProperty,Lm=_l.toString,Ur=Nt?Nt.toStringTag:void 0;function km(e){var t=Im.call(e,Ur),r=e[Ur];try{e[Ur]=void 0;var n=!0}catch{}var o=Lm.call(e);return n&&(t?e[Ur]=r:delete e[Ur]),o}var $m=Object.prototype,Nm=$m.toString;function Fm(e){return Nm.call(e)}var Dm="[object Null]",Um="[object Undefined]",Is=Nt?Nt.toStringTag:void 0;function Zt(e){return e==null?e===void 0?Um:Dm:Is&&Is in Object(e)?km(e):Fm(e)}function qt(e){return e!=null&&typeof e=="object"}var Bm="[object Symbol]";function co(e){return typeof e=="symbol"||qt(e)&&Zt(e)==Bm}var Ls=NaN,Jm=/^[-+]0x[0-9a-f]+$/i,Vm=/^0b[01]+$/i,Gm=/^0o[0-7]+$/i,zm=parseInt;function ks(e){if(typeof e=="number")return e;if(co(e))return Ls;if(Kt(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Kt(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Mm(e);var r=Vm.test(e);return r||Gm.test(e)?zm(e.slice(2),r?2:8):Jm.test(e)?Ls:+e}var Wm="Expected a function",Hm=Math.max,Km=Math.min;function qm(e,t,r){var n,o,a,i,l,c,u=0,d=!1,h=!1,f=!0;if(typeof e!="function")throw new TypeError(Wm);t=ks(t)||0,Kt(r)&&(d=!!r.leading,h="maxWait"in r,a=h?Hm(ks(r.maxWait)||0,t):a,f="trailing"in r?!!r.trailing:f);function b(P){var O=n,z=o;return n=o=void 0,u=P,i=e.apply(z,O),i}function y(P){return u=P,l=setTimeout(v,t),d?b(P):i}function _(P){var O=P-c,z=P-u,le=t-O;return h?Km(le,a-z):le}function g(P){var O=P-c,z=P-u;return c===void 0||O>=t||O<0||h&&z>=a}function v(){var P=$o();if(g(P))return R(P);l=setTimeout(v,_(P))}function R(P){return l=void 0,f&&n?b(P):(n=o=void 0,i)}function C(){l!==void 0&&clearTimeout(l),u=0,n=c=o=l=void 0}function k(){return l===void 0?i:R($o())}function j(){var P=$o(),O=g(P);if(n=arguments,o=this,c=P,O){if(l===void 0)return y(c);if(h)return clearTimeout(l),l=setTimeout(v,t),b(c)}return l===void 0&&(l=setTimeout(v,t)),i}return j.cancel=C,j.flush=k,j}var Xm="Expected a function";function Ym(e,t,r){var n=!0,o=!0;if(typeof e!="function")throw new TypeError(Xm);return Kt(r)&&(n="leading"in r?!!r.leading:n,o="trailing"in r?!!r.trailing:o),qm(e,t,{leading:n,maxWait:t,trailing:o})}const bl=en(He.observer(({startJogging:e,stopJogging:t,lowerLimitDegs:r,upperLimitDegs:n,getValueDegs:o,disabled:a,...i})=>{const{t:l}=Ft.useTranslation(),[c,u]=Z.useState(),d=He.useLocalObservable(()=>({activeJoggingDir:null,startJogging(v){this.activeJoggingDir=v,e(v)},stopJogging(){this.activeJoggingDir=null,t()}})),h=Ym(()=>{u(o())},50);Sr(h);function f(v){v.button===0&&d.startJogging("-")}function b(v){v.button===0&&d.startJogging("+")}function y(v){d.stopJogging()}function _(v){v.target===v.currentTarget&&d.stopJogging()}function g(v,R=1){if(v===void 0||isNaN(v))return"";const C=l("General.degree.variable",{amount:v.toFixed(R)});return v>0&&R===0?`+${C}`:C}return s.jsxs(_r,{height:"64px",width:"100%",maxWidth:"300px",direction:"row",...i,sx:{"& .MuiIconButton-root":{width:"52px",color:"white",alignContent:"center",backgroundColor:"#38445A","&:disabled":{opacity:.5,backgroundColor:"#38445A"},"& svg":{width:"42px",height:"42px"}}},children:[s.jsx(L.IconButton,{onPointerDown:f,onPointerUp:y,onPointerOut:_,disabled:a,sx:{borderRadius:"16px 0px 0px 16px",backgroundColor:d.activeJoggingDir==="-"?"#495975":void 0},children:s.jsx(pl,{})}),s.jsxs(_r,{flexGrow:1,alignItems:"center",justifyContent:"center",sx:{borderStyle:"solid",borderLeftWidth:0,borderRightWidth:0,borderTopWidth:"4px",borderBottomWidth:"4px",backgroundColor:"#38445A",borderColor:"#38445A",paddingLeft:"20px",paddingRight:"20px",zIndex:1},children:[s.jsx(L.Typography,{sx:{fontSize:"15px",position:"relative",top:"5px",color:"white"},children:g(c)}),s.jsx(L.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(L.IconButton,{onPointerDown:b,onPointerUp:y,onPointerOut:_,disabled:a,sx:{borderRadius:"0px 16px 16px 0px",backgroundColor:d.activeJoggingDir==="+"?"#495975 !important":"#38445A"},children:s.jsx(gl,{})})]})})),Zm=({title:e,titleId:t,...r},n)=>N.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:25,height:24,fill:"none",ref:n,"aria-labelledby":t,...r},e?N.createElement("title",{id:t},e):null,N.createElement("path",{stroke:"#fff",strokeLinecap:"round",strokeWidth:1.5,d:"M18.5 12a6 6 0 1 0-6 6"}),N.createElement("path",{stroke:"#fff",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"m16.5 11 2 2.5 2-2.5"})),Qm=Z.forwardRef(Zm),e0=({title:e,titleId:t,...r},n)=>N.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:19,height:10,fill:"none",ref:n,"aria-labelledby":t,...r},e?N.createElement("title",{id:t},e):null,N.createElement("path",{fill:"#fff",fillRule:"evenodd",d:"M5.131.312a.9.9 0 0 1 0 1.272L3.07 3.645h12.44l-2.06-2.061A.9.9 0 0 1 14.72.313l3.596 3.596a.9.9 0 0 1 0 1.271l-3.596 3.597a.9.9 0 0 1-1.271-1.272l2.061-2.062H3.07L5.13 7.505A.9.9 0 0 1 3.86 8.777L.263 5.18a.9.9 0 0 1 0-1.271L3.86.312a.9.9 0 0 1 1.271 0",clipRule:"evenodd"})),t0=Z.forwardRef(e0),r0=({title:e,titleId:t,...r},n)=>N.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:19,height:10,fill:"none",ref:n,"aria-labelledby":t,...r},e?N.createElement("title",{id:t},e):null,N.createElement("path",{fill:"#fff",fillRule:"evenodd",d:"M5.131.312a.9.9 0 0 1 0 1.272L3.07 3.645h12.44l-2.06-2.061A.9.9 0 0 1 14.72.313l3.596 3.596a.9.9 0 0 1 0 1.271l-3.596 3.597a.9.9 0 0 1-1.271-1.272l2.061-2.062H3.07L5.13 7.505A.9.9 0 0 1 3.86 8.777L.263 5.18a.9.9 0 0 1 0-1.271L3.86.312a.9.9 0 0 1 1.271 0",clipRule:"evenodd"})),n0=Z.forwardRef(r0),o0=({title:e,titleId:t,...r},n)=>N.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:10,height:19,fill:"none",ref:n,"aria-labelledby":t,...r},e?N.createElement("title",{id:t},e):null,N.createElement("path",{fill:"#fff",fillRule:"evenodd",d:"M9.522 14.811A.899.899 0 1 0 8.25 13.54L6.19 15.601V3.16L8.25 5.221A.9.9 0 0 0 9.522 3.95L5.926.354a.9.9 0 0 0-1.272 0L1.058 3.95a.9.9 0 1 0 1.271 1.271L4.391 3.16v12.442L2.329 13.54a.899.899 0 1 0-1.271 1.271l3.596 3.597a.9.9 0 0 0 1.272 0z",clipRule:"evenodd"})),a0=Z.forwardRef(o0),s0=({title:e,titleId:t,...r},n)=>N.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:21,height:21,fill:"none",viewBox:"0 0 23 22",ref:n,"aria-labelledby":t,...r},e?N.createElement("title",{id:t},e):null,N.createElement("path",{fill:"currentColor",d:"m21.71 16.262-1.09.346.66 2.071-2.923-1.461V9.857l-6.285-3.143V2.893L13.38 4.21l.812-.806-2.674-2.69-2.706 2.687.805.812L10.93 2.91v3.803L4.643 9.857v7.36l-2.914 1.458.657-2.067-1.09-.346-1.225 3.88 3.826 1.144.346-1.09-1.836-.583 2.874-1.436 6.22 3.109 6.217-3.11 2.877 1.439-1.831.581.345 1.09 3.82-1.143zM11.5 12.646l-4.94-2.47 4.94-2.47 4.94 2.47zm.572.993 5.143-2.572v6.083l-5.143 2.572zm-6.286-2.572 5.143 2.572v6.083L5.786 17.15z"})),i0=Z.forwardRef(s0),l0=({title:e,titleId:t,...r},n)=>N.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:15,height:17,fill:"none",ref:n,"aria-labelledby":t,...r},e?N.createElement("title",{id:t},e):null,N.createElement("path",{fill:"currentColor",d:"M12.9 7.667c-.133-.534-.533-1-1-1.134L10.367 6l-.4 1.267L11.5 7.8c.067 0 .133.067.133.2l1.067 4.867a.32.32 0 0 1-.133.4l-2.267 1.8c-.267.2-.333.666-.133.933s.666.333.933.133l2.267-1.8c.533-.4.733-1.133.6-1.733zM12.5 0H1.833A1.65 1.65 0 0 0 .167 1.667v1.4c0 .866.733 1.6 1.666 1.6h10.734c.866 0 1.6-.734 1.6-1.667V1.667A1.65 1.65 0 0 0 12.5 0M1.633 12.8 2.7 8c0-.067.067-.133.133-.2l1.534-.533-.4-1.2-1.534.466c-.533.2-.933.6-1 1.134L.367 12.533c-.134.667.066 1.334.6 1.734l2.266 1.8c.267.266.734.2.934-.067s.2-.733-.134-.933l-2.266-1.8c-.134-.134-.2-.267-.134-.467"})),c0=Z.forwardRef(l0),u0=He.observer(({store:e})=>{const{t}=Ft.useTranslation();function r(n,o){(o==="coordsys"||o==="tool")&&e.setSelectedOrientation(o)}return s.jsxs(s.Fragment,{children:[s.jsxs(L.Stack,{direction:"row",alignItems:"center",spacing:2,sx:{padding:"8px 16px","& label":{opacity:.7,fontSize:"12px",marginBottom:"4px"}},children:[s.jsxs(L.Stack,{width:"50%",children:[s.jsx(L.InputLabel,{id:"jogging-coord-select",children:"Coordinate Sys."}),s.jsx(L.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(L.MenuItem,{value:n.coordinate_system,children:n.name||n.coordinate_system},n.coordinate_system))})]}),s.jsxs(L.Stack,{width:"50%",children:[s.jsx(L.InputLabel,{id:"jogging-tcp-select",children:"TCP"}),s.jsx(L.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(L.MenuItem,{value:n.id,children:n.id},n.id))})]})]}),s.jsxs(L.Stack,{direction:"row",alignItems:"center",spacing:2,sx:{padding:"8px 16px","& label":{opacity:.7,fontSize:"12px",marginBottom:"4px"}},children:[s.jsxs(L.Stack,{width:"35%",children:[s.jsx(L.InputLabel,{id:"orientation-select",children:t("Jogging.Cartesian.Orientation.lb")}),s.jsxs(L.ToggleButtonGroup,{value:e.selectedOrientation,onChange:r,exclusive:!0,"aria-labelledby":"orientation-select",disabled:e.isLocked,children:[s.jsx(L.ToggleButton,{value:"coordsys",children:s.jsx(i0,{})}),s.jsx(L.ToggleButton,{value:"tool",children:s.jsx(c0,{})})]})]}),s.jsxs(L.Stack,{width:"65%",children:[s.jsx(L.InputLabel,{id:"jogging-increment-select",children:"Increment"}),s.jsxs(L.Select,{labelId:"jogging-increment-select",value:e.selectedIncrementId,onChange:n=>{e.setSelectedIncrementId(n.target.value)},disabled:e.isLocked,children:[s.jsx(L.MenuItem,{value:"continuous",children:t("Jogging.Increment.Continuous.dd")},"continuous"),e.discreteIncrementOptions.map(n=>s.jsx(L.MenuItem,{value:n.id,children:e.currentMotionType==="translate"?`${n.mm}mm`:`${n.degrees}°`},n.id))]})]})]})]})});function d0(e,t,r=(n,o)=>n===o){return e.length===t.length&&e.every((n,o)=>r(n,t[o]))}const f0=2;function xl(e,t){return e-t}function $s(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 _n(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 Gn(e,t,r){return(e-t)*100/(r-t)}function h0(e,t,r){return(r-t)*e+t}function m0(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 p0(e,t,r){const n=Math.round((e-r)/t)*t+r;return Number(n.toFixed(m0(t)))}function Ns({values:e,newValue:t,index:r}){const n=e.slice();return n[r]=t,n.sort(xl)}function bn({sliderRef:e,activeIndex:t,setActive:r}){var n,o;const a=yr(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 xn(e,t){return typeof e=="number"&&typeof t=="number"?e===t:typeof e=="object"&&typeof t=="object"?d0(e,t):!1}const g0={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}%`})}},y0=e=>e;let Sn;function Fs(){return Sn===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?Sn=CSS.supports("touch-action","none"):Sn=!0),Sn}function _0(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:f="horizontal",rootRef:b,scale:y=y0,step:_=1,shiftStep:g=10,tabIndex:v,value:R}=e,C=N.useRef(),[k,j]=N.useState(-1),[P,O]=N.useState(-1),[z,le]=N.useState(!1),ue=N.useRef(0),[D,q]=ol({controlled:R,default:r??c,name:"Slider"}),G=d&&((T,I,F)=>{const W=T.nativeEvent||T,Y=new W.constructor(W.type,W);Object.defineProperty(Y,"target",{writable:!0,value:{value:I,name:u}}),d(Y,I,F)}),X=Array.isArray(D);let K=X?D.slice().sort(xl):[D];K=K.map(T=>T==null?c:hr(T,c,l));const we=i===!0&&_!==null?[...Array(Math.floor((l-c)/_)+1)].map((T,I)=>({value:c+_*I})):i||[],ce=we.map(T=>T.value),{isFocusVisibleRef:Q,onBlur:Ae,onFocus:Ie,ref:ot}=al(),[bt,Ke]=N.useState(-1),Re=N.useRef(),Ot=Bn(ot,Re),ct=Bn(b,Ot),qe=T=>I=>{var F;const W=Number(I.currentTarget.getAttribute("data-index"));Ie(I),Q.current===!0&&Ke(W),O(W),T==null||(F=T.onFocus)==null||F.call(T,I)},Be=T=>I=>{var F;Ae(I),Q.current===!1&&Ke(-1),O(-1),T==null||(F=T.onBlur)==null||F.call(T,I)},ut=(T,I)=>{const F=Number(T.currentTarget.getAttribute("data-index")),W=K[F],Y=ce.indexOf(W);let H=I;if(we&&_==null){const Ve=ce[ce.length-1];H>Ve?H=Ve:H<ce[0]?H=ce[0]:H=H<W?ce[Y-1]:ce[Y+1]}if(H=hr(H,c,l),X){o&&(H=hr(H,K[F-1]||-1/0,K[F+1]||1/0));const Ve=H;H=Ns({values:K,newValue:H,index:F});let Xe=F;o||(Xe=H.indexOf(Ve)),bn({sliderRef:Re,activeIndex:Xe})}q(H),Ke(F),G&&!xn(H,D)&&G(T,H,F),h&&h(T,H)},dt=T=>I=>{var F;if(_!==null){const W=Number(I.currentTarget.getAttribute("data-index")),Y=K[W];let H=null;(I.key==="ArrowLeft"||I.key==="ArrowDown")&&I.shiftKey||I.key==="PageDown"?H=Math.max(Y-g,c):((I.key==="ArrowRight"||I.key==="ArrowUp")&&I.shiftKey||I.key==="PageUp")&&(H=Math.min(Y+g,l)),H!==null&&(ut(I,H),I.preventDefault())}T==null||(F=T.onKeyDown)==null||F.call(T,I)};va(()=>{if(n&&Re.current.contains(document.activeElement)){var T;(T=document.activeElement)==null||T.blur()}},[n]),n&&k!==-1&&j(-1),n&&bt!==-1&&Ke(-1);const Ut=T=>I=>{var F;(F=T.onChange)==null||F.call(T,I),ut(I,I.target.valueAsNumber)},xt=N.useRef();let Je=f;a&&f==="horizontal"&&(Je+="-reverse");const E=({finger:T,move:I=!1})=>{const{current:F}=Re,{width:W,height:Y,bottom:H,left:Ve}=F.getBoundingClientRect();let Xe;Je.indexOf("vertical")===0?Xe=(H-T.y)/Y:Xe=(T.x-Ve)/W,Je.indexOf("-reverse")!==-1&&(Xe=1-Xe);let te;if(te=h0(Xe,c,l),_)te=p0(te,_,c);else{const Mt=$s(ce,te);te=ce[Mt]}te=hr(te,c,l);let $e=0;if(X){I?$e=xt.current:$e=$s(K,te),o&&(te=hr(te,K[$e-1]||-1/0,K[$e+1]||1/0));const Mt=te;te=Ns({values:K,newValue:te,index:$e}),o&&I||($e=te.indexOf(Mt),xt.current=$e)}return{newValue:te,activeIndex:$e}},ee=Pn(T=>{const I=_n(T,C);if(!I)return;if(ue.current+=1,T.type==="mousemove"&&T.buttons===0){he(T);return}const{newValue:F,activeIndex:W}=E({finger:I,move:!0});bn({sliderRef:Re,activeIndex:W,setActive:j}),q(F),!z&&ue.current>f0&&le(!0),G&&!xn(F,D)&&G(T,F,W)}),he=Pn(T=>{const I=_n(T,C);if(le(!1),!I)return;const{newValue:F}=E({finger:I,move:!0});j(-1),T.type==="touchend"&&O(-1),h&&h(T,F),C.current=void 0,ke()}),Le=Pn(T=>{if(n)return;Fs()||T.preventDefault();const I=T.changedTouches[0];I!=null&&(C.current=I.identifier);const F=_n(T,C);if(F!==!1){const{newValue:Y,activeIndex:H}=E({finger:F});bn({sliderRef:Re,activeIndex:H,setActive:j}),q(Y),G&&!xn(Y,D)&&G(T,Y,H)}ue.current=0;const W=yr(Re.current);W.addEventListener("touchmove",ee,{passive:!0}),W.addEventListener("touchend",he,{passive:!0})}),ke=N.useCallback(()=>{const T=yr(Re.current);T.removeEventListener("mousemove",ee),T.removeEventListener("mouseup",he),T.removeEventListener("touchmove",ee),T.removeEventListener("touchend",he)},[he,ee]);N.useEffect(()=>{const{current:T}=Re;return T.addEventListener("touchstart",Le,{passive:Fs()}),()=>{T.removeEventListener("touchstart",Le),ke()}},[ke,Le]),N.useEffect(()=>{n&&ke()},[n,ke]);const Tt=T=>I=>{var F;if((F=T.onMouseDown)==null||F.call(T,I),n||I.defaultPrevented||I.button!==0)return;I.preventDefault();const W=_n(I,C);if(W!==!1){const{newValue:H,activeIndex:Ve}=E({finger:W});bn({sliderRef:Re,activeIndex:Ve,setActive:j}),q(H),G&&!xn(H,D)&&G(I,H,Ve)}ue.current=0;const Y=yr(Re.current);Y.addEventListener("mousemove",ee,{passive:!0}),Y.addEventListener("mouseup",he)},je=Gn(X?K[0]:c,c,l),Et=Gn(K[K.length-1],c,l)-je,Bt=(T={})=>{const I=On(T),F={onMouseDown:Tt(I||{})},W=A({},I,F);return A({},T,{ref:ct},W)},Ar=T=>I=>{var F;(F=T.onMouseOver)==null||F.call(T,I);const W=Number(I.currentTarget.getAttribute("data-index"));O(W)},Pr=T=>I=>{var F;(F=T.onMouseLeave)==null||F.call(T,I),O(-1)};return{active:k,axis:Je,axisProps:g0,dragging:z,focusedThumbIndex:bt,getHiddenInputProps:(T={})=>{var I;const F=On(T),W={onChange:Ut(F||{}),onFocus:qe(F||{}),onBlur:Be(F||{}),onKeyDown:dt(F||{})},Y=A({},F,W);return A({tabIndex:v,"aria-labelledby":t,"aria-orientation":f,"aria-valuemax":y(l),"aria-valuemin":y(c),name:u,type:"range",min:e.min,max:e.max,step:e.step===null&&e.marks?"any":(I=e.step)!=null?I:void 0,disabled:n},T,Y,{style:A({},Jf,{direction:a?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:Bt,getThumbProps:(T={})=>{const I=On(T),F={onMouseOver:Ar(I||{}),onMouseLeave:Pr(I||{})};return A({},T,I,F)},marks:we,open:P,range:X,rootRef:ct,trackLeap:Et,trackOffset:je,values:K,getThumbStyle:T=>({pointerEvents:k!==-1&&k!==T?"none":void 0})}}const b0=e=>!e||!Gr(e);function x0(e){return sn("MuiSlider",e)}const et=Qi("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"]),S0=e=>{const{open:t}=e;return{offset:gt(t&&et.valueLabelOpen),circle:et.valueLabelCircle,label:et.valueLabelLabel}};function Sl(e){const{children:t,className:r,value:n}=e,o=S0(e);return t?N.cloneElement(t,{className:gt(t.props.className)},s.jsxs(N.Fragment,{children:[t.props.children,s.jsx("span",{className:gt(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"&&(Sl.propTypes={children:m.element.isRequired,className:m.string,value:m.node});const v0=["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 Ds(e){return e}const w0=Ct("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`color${Oe(r.color)}`],r.size!=="medium"&&t[`size${Oe(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"},[`&.${et.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${et.dragging}`]:{[`& .${et.thumb}, & .${et.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}}]}}),R0=Ct("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}}]}),j0=Ct("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:Qo(e.palette[r].main,.62),borderColor:Qo(e.palette[r].main,.62)},e.applyStyles("dark",{backgroundColor:Zo(e.palette[r].main,.5)}),e.applyStyles("dark",{borderColor:Zo(e.palette[r].main,.5)})))}))]}}),C0=Ct("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.thumb,t[`thumbColor${Oe(r.color)}`],r.size!=="medium"&&t[`thumbSize${Oe(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%)"},[`&.${et.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, &.${et.focusVisible}`]:A({},e.vars?{boxShadow:`0px 0px 0px 8px rgba(${e.vars.palette[r].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 8px ${Rs(e.palette[r].main,.16)}`},{"@media (hover: none)":{boxShadow:"none"}}),[`&.${et.active}`]:A({},e.vars?{boxShadow:`0px 0px 0px 14px rgba(${e.vars.palette[r].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 14px ${Rs(e.palette[r].main,.16)}`})}}))]}}),A0=Ct(Sl,{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%"},[`&.${et.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%"},[`&.${et.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"}}]})),P0=Ct("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>Pa(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}}]})),O0=Ct("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>Pa(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}}]})),T0=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${Oe(l)}`,c&&`size${Oe(c)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",c&&`thumbSize${Oe(c)}`,l&&`thumbColor${Oe(l)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return Ra(u,x0,i)},E0=({children:e})=>e,vl=N.forwardRef(function(t,r){var n,o,a,i,l,c,u,d,h,f,b,y,_,g,v,R,C,k,j,P,O,z,le,ue;const D=Oa({props:t,name:"MuiSlider"}),q=Kf(),{"aria-label":G,"aria-valuetext":X,"aria-labelledby":K,component:we="span",components:ce={},componentsProps:Q={},color:Ae="primary",classes:Ie,className:ot,disableSwap:bt=!1,disabled:Ke=!1,getAriaLabel:Re,getAriaValueText:Ot,marks:ct=!1,max:qe=100,min:Be=0,orientation:ut="horizontal",shiftStep:dt=10,size:Ut="medium",step:xt=1,scale:Je=Ds,slotProps:E,slots:ee,track:he="normal",valueLabelDisplay:Le="off",valueLabelFormat:ke=Ds}=D,Tt=Ue(D,v0),je=A({},D,{isRtl:q,max:qe,min:Be,classes:Ie,disabled:Ke,disableSwap:bt,orientation:ut,marks:ct,color:Ae,size:Ut,step:xt,shiftStep:dt,scale:Je,track:he,valueLabelDisplay:Le,valueLabelFormat:ke}),{axisProps:Et,getRootProps:Bt,getHiddenInputProps:Ar,getThumbProps:Pr,open:Or,active:tr,axis:at,focusedThumbIndex:T,range:I,dragging:F,marks:W,values:Y,trackOffset:H,trackLeap:Ve,getThumbStyle:Xe}=_0(A({},je,{rootRef:r}));je.marked=W.length>0&&W.some($=>$.label),je.dragging=F,je.focusedThumbIndex=T;const te=T0(je),$e=(n=(o=ee==null?void 0:ee.root)!=null?o:ce.Root)!=null?n:w0,Mt=(a=(i=ee==null?void 0:ee.rail)!=null?i:ce.Rail)!=null?a:R0,rr=(l=(c=ee==null?void 0:ee.track)!=null?c:ce.Track)!=null?l:j0,Tr=(u=(d=ee==null?void 0:ee.thumb)!=null?d:ce.Thumb)!=null?u:C0,St=(h=(f=ee==null?void 0:ee.valueLabel)!=null?f:ce.ValueLabel)!=null?h:A0,Jt=(b=(y=ee==null?void 0:ee.mark)!=null?y:ce.Mark)!=null?b:P0,Vt=(_=(g=ee==null?void 0:ee.markLabel)!=null?g:ce.MarkLabel)!=null?_:O0,Er=(v=(R=ee==null?void 0:ee.input)!=null?R:ce.Input)!=null?v:"input",Mr=(C=E==null?void 0:E.root)!=null?C:Q.root,dn=(k=E==null?void 0:E.rail)!=null?k:Q.rail,Ir=(j=E==null?void 0:E.track)!=null?j:Q.track,nr=(P=E==null?void 0:E.thumb)!=null?P:Q.thumb,or=(O=E==null?void 0:E.valueLabel)!=null?O:Q.valueLabel,xo=(z=E==null?void 0:E.mark)!=null?z:Q.mark,So=(le=E==null?void 0:E.markLabel)!=null?le:Q.markLabel,fn=(ue=E==null?void 0:E.input)!=null?ue:Q.input,hn=It({elementType:$e,getSlotProps:Bt,externalSlotProps:Mr,externalForwardedProps:Tt,additionalProps:A({},b0($e)&&{as:we}),ownerState:A({},je,Mr==null?void 0:Mr.ownerState),className:[te.root,ot]}),vo=It({elementType:Mt,externalSlotProps:dn,ownerState:je,className:te.rail}),wo=It({elementType:rr,externalSlotProps:Ir,additionalProps:{style:A({},Et[at].offset(H),Et[at].leap(Ve))},ownerState:A({},je,Ir==null?void 0:Ir.ownerState),className:te.track}),Lr=It({elementType:Tr,getSlotProps:Pr,externalSlotProps:nr,ownerState:A({},je,nr==null?void 0:nr.ownerState),className:te.thumb}),Ro=It({elementType:St,externalSlotProps:or,ownerState:A({},je,or==null?void 0:or.ownerState),className:te.valueLabel}),p=It({elementType:Jt,externalSlotProps:xo,ownerState:je,className:te.mark}),w=It({elementType:Vt,externalSlotProps:So,ownerState:je,className:te.markLabel}),M=It({elementType:Er,getSlotProps:Ar,externalSlotProps:fn,ownerState:je});return s.jsxs($e,A({},hn,{children:[s.jsx(Mt,A({},vo)),s.jsx(rr,A({},wo)),W.filter($=>$.value>=Be&&$.value<=qe).map(($,U)=>{const re=Gn($.value,Be,qe),V=Et[at].offset(re);let B;return he===!1?B=Y.indexOf($.value)!==-1:B=he==="normal"&&(I?$.value>=Y[0]&&$.value<=Y[Y.length-1]:$.value<=Y[0])||he==="inverted"&&(I?$.value<=Y[0]||$.value>=Y[Y.length-1]:$.value>=Y[0]),s.jsxs(N.Fragment,{children:[s.jsx(Jt,A({"data-index":U},p,!Gr(Jt)&&{markActive:B},{style:A({},V,p.style),className:gt(p.className,B&&te.markActive)})),$.label!=null?s.jsx(Vt,A({"aria-hidden":!0,"data-index":U},w,!Gr(Vt)&&{markLabelActive:B},{style:A({},V,w.style),className:gt(te.markLabel,w.className,B&&te.markLabelActive),children:$.label})):null]},U)}),Y.map(($,U)=>{const re=Gn($,Be,qe),V=Et[at].offset(re),B=Le==="off"?E0:St;return s.jsx(B,A({},!Gr(B)&&{valueLabelFormat:ke,valueLabelDisplay:Le,value:typeof ke=="function"?ke(Je($),U):ke,index:U,open:Or===U||tr===U||Le==="on",disabled:Ke},Ro,{children:s.jsx(Tr,A({"data-index":U},Lr,{className:gt(te.thumb,Lr.className,tr===U&&te.active,T===U&&te.focusVisible),style:A({},V,Xe(U),Lr.style),children:s.jsx(Er,A({"data-index":U,"aria-label":Re?Re(U):G,"aria-valuenow":Je($),"aria-labelledby":K,"aria-valuetext":Ot?Ot(Je($),U):X,value:Y[U]},M))}))}),U)})]}))});process.env.NODE_ENV!=="production"&&(vl.propTypes={"aria-label":gs(m.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":m.string,"aria-valuetext":gs(m.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:m.node,classes:m.object,className:m.string,color:m.oneOfType([m.oneOf(["primary","secondary","error","info","success","warning"]),m.string]),components:m.shape({Input:m.elementType,Mark:m.elementType,MarkLabel:m.elementType,Rail:m.elementType,Root:m.elementType,Thumb:m.elementType,Track:m.elementType,ValueLabel:m.elementType}),componentsProps:m.shape({input:m.oneOfType([m.func,m.object]),mark:m.oneOfType([m.func,m.object]),markLabel:m.oneOfType([m.func,m.object]),rail:m.oneOfType([m.func,m.object]),root:m.oneOfType([m.func,m.object]),thumb:m.oneOfType([m.func,m.object]),track:m.oneOfType([m.func,m.object]),valueLabel:m.oneOfType([m.func,m.shape({children:m.element,className:m.string,open:m.bool,style:m.object,value:m.number,valueLabelDisplay:m.oneOf(["auto","off","on"])})])}),defaultValue:m.oneOfType([m.arrayOf(m.number),m.number]),disabled:m.bool,disableSwap:m.bool,getAriaLabel:m.func,getAriaValueText:m.func,marks:m.oneOfType([m.arrayOf(m.shape({label:m.node,value:m.number.isRequired})),m.bool]),max:m.number,min:m.number,name:m.string,onChange:m.func,onChangeCommitted:m.func,orientation:m.oneOf(["horizontal","vertical"]),scale:m.func,shiftStep:m.number,size:m.oneOfType([m.oneOf(["small","medium"]),m.string]),slotProps:m.shape({input:m.oneOfType([m.func,m.object]),mark:m.oneOfType([m.func,m.object]),markLabel:m.oneOfType([m.func,m.object]),rail:m.oneOfType([m.func,m.object]),root:m.oneOfType([m.func,m.object]),thumb:m.oneOfType([m.func,m.object]),track:m.oneOfType([m.func,m.object]),valueLabel:m.oneOfType([m.func,m.shape({children:m.element,className:m.string,open:m.bool,style:m.object,value:m.number,valueLabelDisplay:m.oneOf(["auto","off","on"])})])}),slots:m.shape({input:m.elementType,mark:m.elementType,markLabel:m.elementType,rail:m.elementType,root:m.elementType,thumb:m.elementType,track:m.elementType,valueLabel:m.elementType}),step:m.number,sx:m.oneOfType([m.arrayOf(m.oneOfType([m.func,m.object,m.bool])),m.func,m.object]),tabIndex:m.number,track:m.oneOf(["inverted","normal",!1]),value:m.oneOfType([m.arrayOf(m.number),m.number]),valueLabelDisplay:m.oneOf(["auto","off","on"]),valueLabelFormat:m.oneOfType([m.func,m.string])});var M0="[object Number]";function I0(e){return typeof e=="number"||qt(e)&&Zt(e)==M0}const wl=He.observer(e=>{const t=L.useTheme(),r=e.valueLabelFormat||(o=>`${o}`);function n(o,a){a===e.velocity||!I0(a)||e.onVelocityChange(a)}return s.jsxs(s.Fragment,{children:[s.jsx(L.Typography,{sx:{textAlign:"center",fontSize:"14px",opacity:.8,color:t.palette.text.primary},children:r(e.velocity)}),s.jsx(vl,{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"}}})]})}),Rl=He.observer(({store:e})=>{const{t}=Ft.useTranslation(),r=He.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(L.Stack,{sx:{margin:"0px 20px",marginTop:"24px",marginBottom:"24px"},children:s.jsx(L.Stack,{sx:{width:"380px",maxWidth:"90%",margin:"auto"},children:s.jsx(wl,{velocity:e.velocityInCurrentUnits,min:e.minVelocityInCurrentUnits,max:e.maxVelocityInCurrentUnits,onVelocityChange:e.setVelocityFromSlider,disabled:e.isLocked,valueLabelFormat:r.valueLabelFormat})})})}),jl=Z.forwardRef(({label:e,value:t},r)=>s.jsxs(s.Fragment,{children:[e&&s.jsx(L.InputLabel,{children:e}),s.jsx(L.Chip,{ref:r,sx:{fontSize:"14px",opacity:.8,marginTop:"4px !important"},value:t})]})),L0=He.observer(({store:e})=>{const t=Z.useRef(null);function r(){const n=e.jogger.motionStream.rapidlyChangingMotionState.tcp_pose;return n?$t.poseToWandelscriptString(n):""}return Sr(()=>{t.current&&(t.current.textContent=r())}),s.jsx(L.Stack,{alignItems:"left",spacing:2,sx:{padding:"8px 16px",paddingTop:"16px","& label":{opacity:.7,fontSize:"12px",marginBottom:"4px"}},children:s.jsx(jl,{label:"Pose",value:r(),ref:t})})});function k0(){this.__data__=[],this.size=0}function Cl(e,t){return e===t||e!==e&&t!==t}function uo(e,t){for(var r=e.length;r--;)if(Cl(e[r][0],t))return r;return-1}var $0=Array.prototype,N0=$0.splice;function F0(e){var t=this.__data__,r=uo(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():N0.call(t,r,1),--this.size,!0}function D0(e){var t=this.__data__,r=uo(t,e);return r<0?void 0:t[r][1]}function U0(e){return uo(this.__data__,e)>-1}function B0(e,t){var r=this.__data__,n=uo(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}function At(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}At.prototype.clear=k0;At.prototype.delete=F0;At.prototype.get=D0;At.prototype.has=U0;At.prototype.set=B0;function J0(){this.__data__=new At,this.size=0}function V0(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function G0(e){return this.__data__.get(e)}function z0(e){return this.__data__.has(e)}var W0="[object AsyncFunction]",H0="[object Function]",K0="[object GeneratorFunction]",q0="[object Proxy]";function Al(e){if(!Kt(e))return!1;var t=Zt(e);return t==H0||t==K0||t==W0||t==q0}var No=_t["__core-js_shared__"],Us=function(){var e=/[^.]+$/.exec(No&&No.keys&&No.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function X0(e){return!!Us&&Us in e}var Y0=Function.prototype,Z0=Y0.toString;function Qt(e){if(e!=null){try{return Z0.call(e)}catch{}try{return e+""}catch{}}return""}var Q0=/[\\^$.*+?()[\]{}|]/g,ep=/^\[object .+?Constructor\]$/,tp=Function.prototype,rp=Object.prototype,np=tp.toString,op=rp.hasOwnProperty,ap=RegExp("^"+np.call(op).replace(Q0,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function sp(e){if(!Kt(e)||X0(e))return!1;var t=Al(e)?ap:ep;return t.test(Qt(e))}function ip(e,t){return e==null?void 0:e[t]}function er(e,t){var r=ip(e,t);return sp(r)?r:void 0}var Yr=er(_t,"Map"),Zr=er(Object,"create");function lp(){this.__data__=Zr?Zr(null):{},this.size=0}function cp(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var up="__lodash_hash_undefined__",dp=Object.prototype,fp=dp.hasOwnProperty;function hp(e){var t=this.__data__;if(Zr){var r=t[e];return r===up?void 0:r}return fp.call(t,e)?t[e]:void 0}var mp=Object.prototype,pp=mp.hasOwnProperty;function gp(e){var t=this.__data__;return Zr?t[e]!==void 0:pp.call(t,e)}var yp="__lodash_hash_undefined__";function _p(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Zr&&t===void 0?yp:t,this}function Xt(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Xt.prototype.clear=lp;Xt.prototype.delete=cp;Xt.prototype.get=hp;Xt.prototype.has=gp;Xt.prototype.set=_p;function bp(){this.size=0,this.__data__={hash:new Xt,map:new(Yr||At),string:new Xt}}function xp(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function fo(e,t){var r=e.__data__;return xp(t)?r[typeof t=="string"?"string":"hash"]:r.map}function Sp(e){var t=fo(this,e).delete(e);return this.size-=t?1:0,t}function vp(e){return fo(this,e).get(e)}function wp(e){return fo(this,e).has(e)}function Rp(e,t){var r=fo(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}function Pt(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Pt.prototype.clear=bp;Pt.prototype.delete=Sp;Pt.prototype.get=vp;Pt.prototype.has=wp;Pt.prototype.set=Rp;var jp=200;function Cp(e,t){var r=this.__data__;if(r instanceof At){var n=r.__data__;if(!Yr||n.length<jp-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new Pt(n)}return r.set(e,t),this.size=r.size,this}function Rt(e){var t=this.__data__=new At(e);this.size=t.size}Rt.prototype.clear=J0;Rt.prototype.delete=V0;Rt.prototype.get=G0;Rt.prototype.has=z0;Rt.prototype.set=Cp;var Ap="__lodash_hash_undefined__";function Pp(e){return this.__data__.set(e,Ap),this}function Op(e){return this.__data__.has(e)}function zn(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new Pt;++t<r;)this.add(e[t])}zn.prototype.add=zn.prototype.push=Pp;zn.prototype.has=Op;function Tp(e,t){for(var r=-1,n=e==null?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}function Ep(e,t){return e.has(t)}var Mp=1,Ip=2;function Pl(e,t,r,n,o,a){var i=r&Mp,l=e.length,c=t.length;if(l!=c&&!(i&&c>l))return!1;var u=a.get(e),d=a.get(t);if(u&&d)return u==t&&d==e;var h=-1,f=!0,b=r&Ip?new zn:void 0;for(a.set(e,t),a.set(t,e);++h<l;){var y=e[h],_=t[h];if(n)var g=i?n(_,y,h,t,e,a):n(y,_,h,e,t,a);if(g!==void 0){if(g)continue;f=!1;break}if(b){if(!Tp(t,function(v,R){if(!Ep(b,R)&&(y===v||o(y,v,r,n,a)))return b.push(R)})){f=!1;break}}else if(!(y===_||o(y,_,r,n,a))){f=!1;break}}return a.delete(e),a.delete(t),f}var Bs=_t.Uint8Array;function Lp(e){var t=-1,r=Array(e.size);return e.forEach(function(n,o){r[++t]=[o,n]}),r}function kp(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var $p=1,Np=2,Fp="[object Boolean]",Dp="[object Date]",Up="[object Error]",Bp="[object Map]",Jp="[object Number]",Vp="[object RegExp]",Gp="[object Set]",zp="[object String]",Wp="[object Symbol]",Hp="[object ArrayBuffer]",Kp="[object DataView]",Js=Nt?Nt.prototype:void 0,Fo=Js?Js.valueOf:void 0;function qp(e,t,r,n,o,a,i){switch(r){case Kp:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Hp:return!(e.byteLength!=t.byteLength||!a(new Bs(e),new Bs(t)));case Fp:case Dp:case Jp:return Cl(+e,+t);case Up:return e.name==t.name&&e.message==t.message;case Vp:case zp:return e==t+"";case Bp:var l=Lp;case Gp:var c=n&$p;if(l||(l=kp),e.size!=t.size&&!c)return!1;var u=i.get(e);if(u)return u==t;n|=Np,i.set(e,t);var d=Pl(l(e),l(t),n,o,a,i);return i.delete(e),d;case Wp:if(Fo)return Fo.call(e)==Fo.call(t)}return!1}function Xp(e,t){for(var r=-1,n=t.length,o=e.length;++r<n;)e[o+r]=t[r];return e}var yt=Array.isArray;function Yp(e,t,r){var n=t(e);return yt(e)?n:Xp(n,r(e))}function Zp(e,t){for(var r=-1,n=e==null?0:e.length,o=0,a=[];++r<n;){var i=e[r];t(i,r,e)&&(a[o++]=i)}return a}function Qp(){return[]}var eg=Object.prototype,tg=eg.propertyIsEnumerable,Vs=Object.getOwnPropertySymbols,rg=Vs?function(e){return e==null?[]:(e=Object(e),Zp(Vs(e),function(t){return tg.call(e,t)}))}:Qp;function ng(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var og="[object Arguments]";function Gs(e){return qt(e)&&Zt(e)==og}var Ol=Object.prototype,ag=Ol.hasOwnProperty,sg=Ol.propertyIsEnumerable,Tl=Gs(function(){return arguments}())?Gs:function(e){return qt(e)&&ag.call(e,"callee")&&!sg.call(e,"callee")};function ig(){return!1}var El=typeof exports=="object"&&exports&&!exports.nodeType&&exports,zs=El&&typeof module=="object"&&module&&!module.nodeType&&module,lg=zs&&zs.exports===El,Ws=lg?_t.Buffer:void 0,cg=Ws?Ws.isBuffer:void 0,ra=cg||ig,ug=9007199254740991,dg=/^(?:0|[1-9]\d*)$/;function Ml(e,t){var r=typeof e;return t=t??ug,!!t&&(r=="number"||r!="symbol"&&dg.test(e))&&e>-1&&e%1==0&&e<t}var fg=9007199254740991;function Ma(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=fg}var hg="[object Arguments]",mg="[object Array]",pg="[object Boolean]",gg="[object Date]",yg="[object Error]",_g="[object Function]",bg="[object Map]",xg="[object Number]",Sg="[object Object]",vg="[object RegExp]",wg="[object Set]",Rg="[object String]",jg="[object WeakMap]",Cg="[object ArrayBuffer]",Ag="[object DataView]",Pg="[object Float32Array]",Og="[object Float64Array]",Tg="[object Int8Array]",Eg="[object Int16Array]",Mg="[object Int32Array]",Ig="[object Uint8Array]",Lg="[object Uint8ClampedArray]",kg="[object Uint16Array]",$g="[object Uint32Array]",de={};de[Pg]=de[Og]=de[Tg]=de[Eg]=de[Mg]=de[Ig]=de[Lg]=de[kg]=de[$g]=!0;de[hg]=de[mg]=de[Cg]=de[pg]=de[Ag]=de[gg]=de[yg]=de[_g]=de[bg]=de[xg]=de[Sg]=de[vg]=de[wg]=de[Rg]=de[jg]=!1;function Ng(e){return qt(e)&&Ma(e.length)&&!!de[Zt(e)]}function Fg(e){return function(t){return e(t)}}var Il=typeof exports=="object"&&exports&&!exports.nodeType&&exports,zr=Il&&typeof module=="object"&&module&&!module.nodeType&&module,Dg=zr&&zr.exports===Il,Do=Dg&&yl.process,Hs=function(){try{var e=zr&&zr.require&&zr.require("util").types;return e||Do&&Do.binding&&Do.binding("util")}catch{}}(),Ks=Hs&&Hs.isTypedArray,Ll=Ks?Fg(Ks):Ng,Ug=Object.prototype,Bg=Ug.hasOwnProperty;function Jg(e,t){var r=yt(e),n=!r&&Tl(e),o=!r&&!n&&ra(e),a=!r&&!n&&!o&&Ll(e),i=r||n||o||a,l=i?ng(e.length,String):[],c=l.length;for(var u in e)Bg.call(e,u)&&!(i&&(u=="length"||o&&(u=="offset"||u=="parent")||a&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||Ml(u,c)))&&l.push(u);return l}var Vg=Object.prototype;function Gg(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||Vg;return e===r}function zg(e,t){return function(r){return e(t(r))}}var Wg=zg(Object.keys,Object),Hg=Object.prototype,Kg=Hg.hasOwnProperty;function qg(e){if(!Gg(e))return Wg(e);var t=[];for(var r in Object(e))Kg.call(e,r)&&r!="constructor"&&t.push(r);return t}function kl(e){return e!=null&&Ma(e.length)&&!Al(e)}function Ia(e){return kl(e)?Jg(e):qg(e)}function qs(e){return Yp(e,Ia,rg)}var Xg=1,Yg=Object.prototype,Zg=Yg.hasOwnProperty;function Qg(e,t,r,n,o,a){var i=r&Xg,l=qs(e),c=l.length,u=qs(t),d=u.length;if(c!=d&&!i)return!1;for(var h=c;h--;){var f=l[h];if(!(i?f in t:Zg.call(t,f)))return!1}var b=a.get(e),y=a.get(t);if(b&&y)return b==t&&y==e;var _=!0;a.set(e,t),a.set(t,e);for(var g=i;++h<c;){f=l[h];var v=e[f],R=t[f];if(n)var C=i?n(R,v,f,t,e,a):n(v,R,f,e,t,a);if(!(C===void 0?v===R||o(v,R,r,n,a):C)){_=!1;break}g||(g=f=="constructor")}if(_&&!g){var k=e.constructor,j=t.constructor;k!=j&&"constructor"in e&&"constructor"in t&&!(typeof k=="function"&&k instanceof k&&typeof j=="function"&&j instanceof j)&&(_=!1)}return a.delete(e),a.delete(t),_}var na=er(_t,"DataView"),oa=er(_t,"Promise"),aa=er(_t,"Set"),sa=er(_t,"WeakMap"),Xs="[object Map]",ey="[object Object]",Ys="[object Promise]",Zs="[object Set]",Qs="[object WeakMap]",ei="[object DataView]",ty=Qt(na),ry=Qt(Yr),ny=Qt(oa),oy=Qt(aa),ay=Qt(sa),kt=Zt;(na&&kt(new na(new ArrayBuffer(1)))!=ei||Yr&&kt(new Yr)!=Xs||oa&&kt(oa.resolve())!=Ys||aa&&kt(new aa)!=Zs||sa&&kt(new sa)!=Qs)&&(kt=function(e){var t=Zt(e),r=t==ey?e.constructor:void 0,n=r?Qt(r):"";if(n)switch(n){case ty:return ei;case ry:return Xs;case ny:return Ys;case oy:return Zs;case ay:return Qs}return t});var sy=1,ti="[object Arguments]",ri="[object Array]",vn="[object Object]",iy=Object.prototype,ni=iy.hasOwnProperty;function ly(e,t,r,n,o,a){var i=yt(e),l=yt(t),c=i?ri:kt(e),u=l?ri:kt(t);c=c==ti?vn:c,u=u==ti?vn:u;var d=c==vn,h=u==vn,f=c==u;if(f&&ra(e)){if(!ra(t))return!1;i=!0,d=!1}if(f&&!d)return a||(a=new Rt),i||Ll(e)?Pl(e,t,r,n,o,a):qp(e,t,c,r,n,o,a);if(!(r&sy)){var b=d&&ni.call(e,"__wrapped__"),y=h&&ni.call(t,"__wrapped__");if(b||y){var _=b?e.value():e,g=y?t.value():t;return a||(a=new Rt),o(_,g,r,n,a)}}return f?(a||(a=new Rt),Qg(e,t,r,n,o,a)):!1}function ho(e,t,r,n,o){return e===t?!0:e==null||t==null||!qt(e)&&!qt(t)?e!==e&&t!==t:ly(e,t,r,n,ho,o)}function cy(e,t){return ho(e,t)}const uy=({store:e})=>{const{t}=Ft.useTranslation(),[r,n]=Z.useState(e.jogger.motionStream.rapidlyChangingMotionState.state.joint_limit_reached.limit_reached);Sr(()=>{const a=e.jogger.motionStream.rapidlyChangingMotionState.state.joint_limit_reached.limit_reached;cy(r,a)||n(a)});const o=[];return r.forEach((a,i)=>{a&&o.push(i)}),o.length?s.jsx(L.Typography,{color:"error",sx:{padding:"1rem",textAlign:"center"},children:t("Jogging.JointLimitsReached.lb",{jointNumbers:o.map(a=>a+1).join(", ")})}):null},dy=He.observer(({store:e})=>{const{t}=Ft.useTranslation();function r(h,f){(f==="translate"||f==="rotate")&&e.setSelectedCartesianMotionType(f)}Ti(()=>[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}),Z.useEffect(()=>(e.jogger.setJoggingMode("increment"),window.addEventListener("blur",o),()=>{window.removeEventListener("blur",o)}),[]);async function n(){e.jogger.setJoggingMode(e.selectedDiscreteIncrement?"increment":"cartesian",{tcpId:e.selectedTcpId,coordSystemId:e.selectedCoordSystemId})}async function o(){e.jogger.setJoggingMode("increment")}async function a(h,f){const b=e.jogger.motionStream.rapidlyChangingMotionState.tcp_pose,y=e.jogger.motionStream.rapidlyChangingMotionState.state.joint_position;b&&await e.withMotionLock(async()=>{await e.jogger.runIncrementalCartesianMotion({currentTcpPose:b,currentJoints:y,coordSystemId:e.selectedCoordSystemId,velocityInRelevantUnits:e.velocityInCurrentUnits,axis:h.axis,direction:h.direction,motion:e.selectedCartesianMotionType==="translate"?{type:"translate",distanceMm:f.mm}:{type:"rotate",distanceRads:$t.degreesToRadians(f.degrees)}})})}async function i(h){if(!e.isLocked){if(n(),e.selectedDiscreteIncrement)return a(h,e.selectedDiscreteIncrement);h.motionType==="translate"?await e.jogger.startTCPTranslation({axis:h.axis,direction:h.direction,velocityMmPerSec:e.translationVelocityMmPerSec}):await e.jogger.startTCPRotation({axis:h.axis,direction:h.direction,velocityRadsPerSec:e.rotationVelocityRadsPerSec})}}async function l(){e.isLocked||e.selectedDiscreteIncrement||await e.jogger.stop()}const c=[{id:"x",color:"#F14D42",icon:s.jsx(t0,{})},{id:"y",color:"#42A705",icon:s.jsx(n0,{})},{id:"z",color:"#0075FF",icon:s.jsx(a0,{})}];function u(h){return t("General.mm.variable",{amount:h.toFixed(1)})}function d(h){return t("General.degree.variable",{amount:$t.radiansToDegrees(h).toFixed(1)})}return s.jsxs(L.Stack,{onMouseEnter:n,onMouseLeave:o,children:[s.jsx(L0,{store:e}),s.jsx(u0,{store:e}),s.jsxs(L.Stack,{width:"80%",maxWidth:"296px",margin:"auto",marginTop:"16px",children:[s.jsxs(L.ToggleButtonGroup,{value:e.selectedCartesianMotionType,onChange:r,exclusive:!0,"aria-label":t("Jogging.Cartesian.MotionType.lb"),children:[s.jsx(L.ToggleButton,{value:"translate",children:t("Jogging.Cartesian.Translation.bt")}),s.jsx(L.ToggleButton,{value:"rotate",children:t("Jogging.Cartesian.Rotation.bt")})]}),e.selectedCartesianMotionType==="translate"&&c.map(h=>s.jsx(ta,{color:h.color,disabled:e.isLocked,sx:{marginTop:"12px"},label:s.jsxs(s.Fragment,{children:[h.icon,s.jsx(L.Typography,{sx:{fontSize:"24px",color:"white"},children:h.id.toUpperCase()})]}),getDisplayedValue:()=>{var f;return u(((f=e.jogger.motionStream.rapidlyChangingMotionState.tcp_pose)==null?void 0:f.position[h.id])||0)},startJogging:f=>i({axis:h.id,motionType:"translate",direction:f}),stopJogging:l},h.id)),e.selectedCartesianMotionType==="rotate"&&c.map(h=>s.jsx(ta,{color:h.color,disabled:e.isLocked,sx:{marginTop:"12px"},label:s.jsxs(s.Fragment,{children:[s.jsx(Qm,{}),s.jsx(L.Typography,{sx:{fontSize:"24px",color:"white"},children:h.id.toUpperCase()})]}),getDisplayedValue:()=>{var f,b;return d(((b=(f=e.jogger.motionStream.rapidlyChangingMotionState.tcp_pose)==null?void 0:f.orientation)==null?void 0:b[h.id])||0)},startJogging:f=>i({axis:h.id,motionType:"rotate",direction:f}),stopJogging:l},h.id))]}),s.jsx(Rl,{store:e}),s.jsx(uy,{store:e})]})}),fy=He.observer(({store:e})=>{const t=Z.useRef(null);Ft.useTranslation();function r(){const{joints:n}=e.jogger.motionStream.rapidlyChangingMotionState.state.joint_position;return`{${n.map(o=>parseFloat(o.toFixed(4))).join(", ")}}`}return Sr(()=>{t.current&&(t.current.textContent=r())}),s.jsx(L.Stack,{alignItems:"left",spacing:2,sx:{padding:"16px","& label":{opacity:.7,fontSize:"12px",marginBottom:"4px"}},children:s.jsx(jl,{label:"Pose",value:r(),ref:t})})}),hy=He.observer(({store:e})=>{Z.useEffect(()=>(e.jogger.setJoggingMode("increment"),window.addEventListener("blur",r),()=>{window.removeEventListener("blur",r)}),[]);async function t(){e.jogger.setJoggingMode("joint")}async function r(){e.jogger.setJoggingMode("increment")}async function n(a){await e.jogger.startJointRotation({joint:a.joint,direction:a.direction,velocityRadsPerSec:e.rotationVelocityRadsPerSec})}async function o(){await e.jogger.stop()}return s.jsxs(L.Stack,{onMouseEnter:t,onMouseLeave:r,children:[s.jsx(fy,{store:e}),s.jsx(L.Stack,{children:e.jogger.motionStream.joints.map(a=>{var u;const i=(u=e.motionGroupSpec.mechanical_joint_limits)==null?void 0:u[a.index],l=(i==null?void 0:i.lower_limit)!==void 0?$t.radiansToDegrees(i.lower_limit):void 0,c=(i==null?void 0:i.upper_limit)!==void 0?$t.radiansToDegrees(i.upper_limit):void 0;return s.jsxs(L.Stack,{direction:"row",alignItems:"center",gap:2,marginTop:"0.8rem",children:[s.jsx(L.Typography,{sx:{flexGrow:1,textAlign:"right"},children:`J${a.index+1}`}),s.jsx(bl,{disabled:e.isLocked,lowerLimitDegs:l,upperLimitDegs:c,getValueDegs:()=>{const d=e.jogger.motionStream.rapidlyChangingMotionState.state.joint_position.joints[a.index];return d!==void 0?$t.radiansToDegrees(d):void 0},startJogging:d=>n({joint:a.index,direction:d}),stopJogging:o},a.index),s.jsx(L.Typography,{sx:{flexGrow:1}})]},`joint-${a.index}`)})}),s.jsx(Rl,{store:e})]})});var oi=function(){try{var e=er(Object,"defineProperty");return e({},"",{}),e}catch{}}();function my(e,t,r){t=="__proto__"&&oi?oi(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function py(e,t,r,n){for(var o=-1,a=e==null?0:e.length;++o<a;){var i=e[o];t(n,i,r(i),e)}return n}function gy(e){return function(t,r,n){for(var o=-1,a=Object(t),i=n(t),l=i.length;l--;){var c=i[++o];if(r(a[c],c,a)===!1)break}return t}}var yy=gy();function _y(e,t){return e&&yy(e,t,Ia)}function by(e,t){return function(r,n){if(r==null)return r;if(!kl(r))return e(r,n);for(var o=r.length,a=-1,i=Object(r);++a<o&&n(i[a],a,i)!==!1;);return r}}var xy=by(_y);function Sy(e,t,r,n){return xy(e,function(o,a,i){t(n,o,r(o),i)}),n}var vy=1,wy=2;function Ry(e,t,r,n){var o=r.length,a=o;if(e==null)return!a;for(e=Object(e);o--;){var i=r[o];if(i[2]?i[1]!==e[i[0]]:!(i[0]in e))return!1}for(;++o<a;){i=r[o];var l=i[0],c=e[l],u=i[1];if(i[2]){if(c===void 0&&!(l in e))return!1}else{var d=new Rt,h;if(!(h===void 0?ho(u,c,vy|wy,n,d):h))return!1}}return!0}function $l(e){return e===e&&!Kt(e)}function jy(e){for(var t=Ia(e),r=t.length;r--;){var n=t[r],o=e[n];t[r]=[n,o,$l(o)]}return t}function Nl(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}function Cy(e){var t=jy(e);return t.length==1&&t[0][2]?Nl(t[0][0],t[0][1]):function(r){return r===e||Ry(r,e,t)}}var Ay=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Py=/^\w*$/;function La(e,t){if(yt(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||co(e)?!0:Py.test(e)||!Ay.test(e)||t!=null&&e in Object(t)}var Oy="Expected a function";function ka(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(Oy);var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],a=r.cache;if(a.has(o))return a.get(o);var i=e.apply(this,n);return r.cache=a.set(o,i)||a,i};return r.cache=new(ka.Cache||Pt),r}ka.Cache=Pt;var Ty=500;function Ey(e){var t=ka(e,function(n){return r.size===Ty&&r.clear(),n}),r=t.cache;return t}var My=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Iy=/\\(\\)?/g,Ly=Ey(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(My,function(r,n,o,a){t.push(o?a.replace(Iy,"$1"):n||r)}),t});function ky(e,t){for(var r=-1,n=e==null?0:e.length,o=Array(n);++r<n;)o[r]=t(e[r],r,e);return o}var $y=1/0,ai=Nt?Nt.prototype:void 0,si=ai?ai.toString:void 0;function Fl(e){if(typeof e=="string")return e;if(yt(e))return ky(e,Fl)+"";if(co(e))return si?si.call(e):"";var t=e+"";return t=="0"&&1/e==-$y?"-0":t}function Dl(e){return e==null?"":Fl(e)}function Ul(e,t){return yt(e)?e:La(e,t)?[e]:Ly(Dl(e))}var Ny=1/0;function mo(e){if(typeof e=="string"||co(e))return e;var t=e+"";return t=="0"&&1/e==-Ny?"-0":t}function Bl(e,t){t=Ul(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[mo(t[r++])];return r&&r==n?e:void 0}function Fy(e,t,r){var n=e==null?void 0:Bl(e,t);return n===void 0?r:n}function Dy(e,t){return e!=null&&t in Object(e)}function Uy(e,t,r){t=Ul(t,e);for(var n=-1,o=t.length,a=!1;++n<o;){var i=mo(t[n]);if(!(a=e!=null&&r(e,i)))break;e=e[i]}return a||++n!=o?a:(o=e==null?0:e.length,!!o&&Ma(o)&&Ml(i,o)&&(yt(e)||Tl(e)))}function By(e,t){return e!=null&&Uy(e,t,Dy)}var Jy=1,Vy=2;function Gy(e,t){return La(e)&&$l(t)?Nl(mo(e),t):function(r){var n=Fy(r,e);return n===void 0&&n===t?By(r,e):ho(t,n,Jy|Vy)}}function zy(e){return e}function Wy(e){return function(t){return t==null?void 0:t[e]}}function Hy(e){return function(t){return Bl(t,e)}}function Ky(e){return La(e)?Wy(mo(e)):Hy(e)}function qy(e){return typeof e=="function"?e:e==null?zy:typeof e=="object"?yt(e)?Gy(e[0],e[1]):Cy(e):Ky(e)}function Xy(e,t){return function(r,n){var o=yt(r)?py:Sy,a={};return o(r,e,qy(n),a)}}var wn=Xy(function(e,t,r){my(e,r,t)}),Yy=0;function Zy(e){var t=++Yy;return Dl(e)+t}const ia=[{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}],Qy=[{id:"continuous"},...ia];class $a{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)||"",br.makeAutoObservable(this,{},{autoBind:!0}),this.loadFromLocalStorage(),this.disposers.push(br.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 $a(t,n,o||[],a||[])}dispose(){for(const t of this.disposers)t();this.jogger.dispose()}loadFromLocalStorage(){const t=$t.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 Qy}get discreteIncrementOptions(){return ia}get incrementOptionsById(){return wn(this.incrementOptions,t=>t.id)}get tabsById(){return wn(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 wn(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 wn(this.tcps,t=>t.id)}get selectedDiscreteIncrement(){return ia.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=Zy();this.locks.add(r);try{return await t()}finally{this.locks.delete(r)}}}function Jl(e,t){return function(){return e.apply(t,arguments)}}const{toString:e1}=Object.prototype,{getPrototypeOf:Na}=Object,po=(e=>t=>{const r=e1.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),lt=e=>(e=e.toLowerCase(),t=>po(t)===e),go=e=>t=>typeof t===e,{isArray:jr}=Array,Qr=go("undefined");function t1(e){return e!==null&&!Qr(e)&&e.constructor!==null&&!Qr(e.constructor)&&We(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Vl=lt("ArrayBuffer");function r1(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Vl(e.buffer),t}const n1=go("string"),We=go("function"),Gl=go("number"),yo=e=>e!==null&&typeof e=="object",o1=e=>e===!0||e===!1,Mn=e=>{if(po(e)!=="object")return!1;const t=Na(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},a1=lt("Date"),s1=lt("File"),i1=lt("Blob"),l1=lt("FileList"),c1=e=>yo(e)&&We(e.pipe),u1=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||We(e.append)&&((t=po(e))==="formdata"||t==="object"&&We(e.toString)&&e.toString()==="[object FormData]"))},d1=lt("URLSearchParams"),[f1,h1,m1,p1]=["ReadableStream","Request","Response","Headers"].map(lt),g1=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function cn(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,o;if(typeof e!="object"&&(e=[e]),jr(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 zl(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 zt=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Wl=e=>!Qr(e)&&e!==zt;function la(){const{caseless:e}=Wl(this)&&this||{},t={},r=(n,o)=>{const a=e&&zl(t,o)||o;Mn(t[a])&&Mn(n)?t[a]=la(t[a],n):Mn(n)?t[a]=la({},n):jr(n)?t[a]=n.slice():t[a]=n};for(let n=0,o=arguments.length;n<o;n++)arguments[n]&&cn(arguments[n],r);return t}const y1=(e,t,r,{allOwnKeys:n}={})=>(cn(t,(o,a)=>{r&&We(o)?e[a]=Jl(o,r):e[a]=o},{allOwnKeys:n}),e),_1=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),b1=(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)},x1=(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&&Na(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},S1=(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},v1=e=>{if(!e)return null;if(jr(e))return e;let t=e.length;if(!Gl(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},w1=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Na(Uint8Array)),R1=(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])}},j1=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},C1=lt("HTMLFormElement"),A1=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,o){return n.toUpperCase()+o}),ii=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),P1=lt("RegExp"),Hl=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};cn(r,(o,a)=>{let i;(i=t(o,a,e))!==!1&&(n[a]=i||o)}),Object.defineProperties(e,n)},O1=e=>{Hl(e,(t,r)=>{if(We(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(We(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+"'")})}})},T1=(e,t)=>{const r={},n=o=>{o.forEach(a=>{r[a]=!0})};return jr(e)?n(e):n(String(e).split(t)),r},E1=()=>{},M1=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,Uo="abcdefghijklmnopqrstuvwxyz",li="0123456789",Kl={DIGIT:li,ALPHA:Uo,ALPHA_DIGIT:Uo+Uo.toUpperCase()+li},I1=(e=16,t=Kl.ALPHA_DIGIT)=>{let r="";const{length:n}=t;for(;e--;)r+=t[Math.random()*n|0];return r};function L1(e){return!!(e&&We(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const k1=e=>{const t=new Array(10),r=(n,o)=>{if(yo(n)){if(t.indexOf(n)>=0)return;if(!("toJSON"in n)){t[o]=n;const a=jr(n)?[]:{};return cn(n,(i,l)=>{const c=r(i,o+1);!Qr(c)&&(a[l]=c)}),t[o]=void 0,a}}return n};return r(e,0)},$1=lt("AsyncFunction"),N1=e=>e&&(yo(e)||We(e))&&We(e.then)&&We(e.catch),ql=((e,t)=>e?setImmediate:t?((r,n)=>(zt.addEventListener("message",({source:o,data:a})=>{o===zt&&a===r&&n.length&&n.shift()()},!1),o=>{n.push(o),zt.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",We(zt.postMessage)),F1=typeof queueMicrotask<"u"?queueMicrotask.bind(zt):typeof process<"u"&&process.nextTick||ql,x={isArray:jr,isArrayBuffer:Vl,isBuffer:t1,isFormData:u1,isArrayBufferView:r1,isString:n1,isNumber:Gl,isBoolean:o1,isObject:yo,isPlainObject:Mn,isReadableStream:f1,isRequest:h1,isResponse:m1,isHeaders:p1,isUndefined:Qr,isDate:a1,isFile:s1,isBlob:i1,isRegExp:P1,isFunction:We,isStream:c1,isURLSearchParams:d1,isTypedArray:w1,isFileList:l1,forEach:cn,merge:la,extend:y1,trim:g1,stripBOM:_1,inherits:b1,toFlatObject:x1,kindOf:po,kindOfTest:lt,endsWith:S1,toArray:v1,forEachEntry:R1,matchAll:j1,isHTMLForm:C1,hasOwnProperty:ii,hasOwnProp:ii,reduceDescriptors:Hl,freezeMethods:O1,toObjectSet:T1,toCamelCase:A1,noop:E1,toFiniteNumber:M1,findKey:zl,global:zt,isContextDefined:Wl,ALPHABET:Kl,generateString:I1,isSpecCompliantForm:L1,toJSONObject:k1,isAsyncFn:$1,isThenable:N1,setImmediate:ql,asap:F1};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 Xl=J.prototype,Yl={};["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=>{Yl[e]={value:e}});Object.defineProperties(J,Yl);Object.defineProperty(Xl,"isAxiosError",{value:!0});J.from=(e,t,r,n,o,a)=>{const i=Object.create(Xl);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 D1=null;function ca(e){return x.isPlainObject(e)||x.isArray(e)}function Zl(e){return x.endsWith(e,"[]")?e.slice(0,-2):e}function ci(e,t,r){return e?e.concat(t).map(function(o,a){return o=Zl(o),!r&&a?"["+o+"]":o}).join(r?".":""):t}function U1(e){return x.isArray(e)&&!e.some(ca)}const B1=x.toFlatObject(x,{},null,function(t){return/^is[A-Z]/.test(t)});function _o(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(_,g){return!x.isUndefined(g[_])});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(y){if(y===null)return"";if(x.isDate(y))return y.toISOString();if(!c&&x.isBlob(y))throw new J("Blob is not supported. Use a Buffer instead.");return x.isArrayBuffer(y)||x.isTypedArray(y)?c&&typeof Blob=="function"?new Blob([y]):Buffer.from(y):y}function d(y,_,g){let v=y;if(y&&!g&&typeof y=="object"){if(x.endsWith(_,"{}"))_=n?_:_.slice(0,-2),y=JSON.stringify(y);else if(x.isArray(y)&&U1(y)||(x.isFileList(y)||x.endsWith(_,"[]"))&&(v=x.toArray(y)))return _=Zl(_),v.forEach(function(C,k){!(x.isUndefined(C)||C===null)&&t.append(i===!0?ci([_],k,a):i===null?_:_+"[]",u(C))}),!1}return ca(y)?!0:(t.append(ci(g,_,a),u(y)),!1)}const h=[],f=Object.assign(B1,{defaultVisitor:d,convertValue:u,isVisitable:ca});function b(y,_){if(!x.isUndefined(y)){if(h.indexOf(y)!==-1)throw Error("Circular reference detected in "+_.join("."));h.push(y),x.forEach(y,function(v,R){(!(x.isUndefined(v)||v===null)&&o.call(t,v,x.isString(R)?R.trim():R,_,f))===!0&&b(v,_?_.concat(R):[R])}),h.pop()}}if(!x.isObject(e))throw new TypeError("data must be an object");return b(e),t}function ui(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function Fa(e,t){this._pairs=[],e&&_o(e,this,t)}const Ql=Fa.prototype;Ql.append=function(t,r){this._pairs.push([t,r])};Ql.toString=function(t){const r=t?function(n){return t.call(this,n,ui)}:ui;return this._pairs.map(function(o){return r(o[0])+"="+r(o[1])},"").join("&")};function J1(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function ec(e,t,r){if(!t)return e;const n=r&&r.encode||J1,o=r&&r.serialize;let a;if(o?a=o(t,r):a=x.isURLSearchParams(t)?t.toString():new Fa(t,r).toString(n),a){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+a}return e}class di{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 tc={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},V1=typeof URLSearchParams<"u"?URLSearchParams:Fa,G1=typeof FormData<"u"?FormData:null,z1=typeof Blob<"u"?Blob:null,W1={isBrowser:!0,classes:{URLSearchParams:V1,FormData:G1,Blob:z1},protocols:["http","https","file","blob","url","data"]},Da=typeof window<"u"&&typeof document<"u",H1=(e=>Da&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),K1=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",q1=Da&&window.location.href||"http://localhost",X1=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Da,hasStandardBrowserEnv:H1,hasStandardBrowserWebWorkerEnv:K1,origin:q1},Symbol.toStringTag,{value:"Module"})),st={...X1,...W1};function Y1(e,t){return _o(e,new st.classes.URLSearchParams,Object.assign({visitor:function(r,n,o,a){return st.isNode&&x.isBuffer(r)?(this.append(n,r.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)}},t))}function Z1(e){return x.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Q1(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 rc(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]=Q1(o[i])),!l)}if(x.isFormData(e)&&x.isFunction(e.entries)){const r={};return x.forEachEntry(e,(n,o)=>{t(Z1(n),o,r,0)}),r}return null}function e_(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 un={transitional:tc,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(rc(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 Y1(t,this.formSerializer).toString();if((l=x.isFileList(t))||n.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return _o(l?{"files[]":t}:t,c&&new c,this.formSerializer)}}return a||o?(r.setContentType("application/json",!1),e_(t)):t}],transformResponse:[function(t){const r=this.transitional||un.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:st.classes.FormData,Blob:st.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};x.forEach(["delete","get","head","post","put","patch"],e=>{un.headers[e]={}});const t_=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"]),r_=e=>{const t={};let r,n,o;return e&&e.split(`
|
|
79
79
|
`).forEach(function(i){o=i.indexOf(":"),r=i.substring(0,o).trim().toLowerCase(),n=i.substring(o+1).trim(),!(!r||t[r]&&t_[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t},fi=Symbol("internals");function Br(e){return e&&String(e).trim().toLowerCase()}function In(e){return e===!1||e==null?e:x.isArray(e)?e.map(In):String(e)}function n_(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 o_=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Bo(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 a_(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function s_(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 Fe=class{constructor(t){t&&this.set(t)}set(t,r,n){const o=this;function a(l,c,u){const d=Br(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]=In(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())&&!o_(t))i(r_(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=Br(t),t){const n=x.findKey(this,t);if(n){const o=this[n];if(!r)return o;if(r===!0)return n_(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=Br(t),t){const n=x.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||Bo(this,this[n],n,r)))}return!1}delete(t,r){const n=this;let o=!1;function a(i){if(i=Br(i),i){const l=x.findKey(n,i);l&&(!r||Bo(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||Bo(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]=In(o),delete r[a];return}const l=t?a_(a):String(a).trim();l!==a&&delete r[a],r[l]=In(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(`
|
|
80
80
|
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){const n=new this(t);return r.forEach(o=>n.set(o)),n}static accessor(t){const n=(this[fi]=this[fi]={accessors:{}}).accessors,o=this.prototype;function a(i){const l=Br(i);n[l]||(s_(o,i),n[l]=!0)}return x.isArray(t)?t.forEach(a):a(t),this}};Fe.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);x.reduceDescriptors(Fe.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}});x.freezeMethods(Fe);function Jo(e,t){const r=this||un,n=t||r,o=Fe.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 nc(e){return!!(e&&e.__CANCEL__)}function Cr(e,t,r){J.call(this,e??"canceled",J.ERR_CANCELED,t,r),this.name="CanceledError"}x.inherits(Cr,J,{__CANCEL__:!0});function oc(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 i_(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function l_(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,f=0;for(;h!==o;)f+=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(f*1e3/b):void 0}}function c_(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 Wn=(e,t,r=3)=>{let n=0;const o=l_(50,250);return c_(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)},hi=(e,t)=>{const r=e!=null;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},mi=e=>(...t)=>x.asap(()=>e(...t)),u_=st.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}}(),d_=st.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 f_(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function h_(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function ac(e,t){return e&&!f_(t)?h_(e,t):t}const pi=e=>e instanceof Fe?{...e}:e;function Yt(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(pi(u),pi(d),!0)};return x.forEach(Object.keys(Object.assign({},e,t)),function(d){const h=c[d]||o,f=h(e[d],t[d],d);x.isUndefined(f)&&h!==l||(r[d]=f)}),r}const sc=e=>{const t=Yt({},e);let{data:r,withXSRFToken:n,xsrfHeaderName:o,xsrfCookieName:a,headers:i,auth:l}=t;t.headers=i=Fe.from(i),t.url=ec(ac(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(st.hasStandardBrowserEnv||st.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(st.hasStandardBrowserEnv&&(n&&x.isFunction(n)&&(n=n(t)),n||n!==!1&&u_(t.url))){const u=o&&a&&d_.read(a);u&&i.set(o,u)}return t},m_=typeof XMLHttpRequest<"u",p_=m_&&function(e){return new Promise(function(r,n){const o=sc(e);let a=o.data;const i=Fe.from(o.headers).normalize();let{responseType:l,onUploadProgress:c,onDownloadProgress:u}=o,d,h,f,b,y;function _(){b&&b(),y&&y(),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 C=Fe.from("getAllResponseHeaders"in g&&g.getAllResponseHeaders()),j={data:!l||l==="text"||l==="json"?g.responseText:g.response,status:g.status,statusText:g.statusText,headers:C,config:e,request:g};oc(function(O){r(O),_()},function(O){n(O),_()},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 k=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const j=o.transitional||tc;o.timeoutErrorMessage&&(k=o.timeoutErrorMessage),n(new J(k,j.clarifyTimeoutError?J.ETIMEDOUT:J.ECONNABORTED,e,g)),g=null},a===void 0&&i.setContentType(null),"setRequestHeader"in g&&x.forEach(i.toJSON(),function(k,j){g.setRequestHeader(j,k)}),x.isUndefined(o.withCredentials)||(g.withCredentials=!!o.withCredentials),l&&l!=="json"&&(g.responseType=o.responseType),u&&([f,y]=Wn(u,!0),g.addEventListener("progress",f)),c&&g.upload&&([h,b]=Wn(c),g.upload.addEventListener("progress",h),g.upload.addEventListener("loadend",b)),(o.cancelToken||o.signal)&&(d=C=>{g&&(n(!C||C.type?new Cr(null,e,g):C),g.abort(),g=null)},o.cancelToken&&o.cancelToken.subscribe(d),o.signal&&(o.signal.aborted?d():o.signal.addEventListener("abort",d)));const R=i_(o.url);if(R&&st.protocols.indexOf(R)===-1){n(new J("Unsupported protocol "+R+":",J.ERR_BAD_REQUEST,e));return}g.send(a||null)})},g_=(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 Cr(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}]},y_=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},__=async function*(e,t,r){for await(const n of e)yield*y_(ArrayBuffer.isView(n)?n:await r(String(n)),t)},gi=(e,t,r,n,o)=>{const a=__(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 f=h.byteLength;if(r){let b=i+=f;r(b)}u.enqueue(new Uint8Array(h))}catch(d){throw c(d),d}},cancel(u){return c(u),a.return()}},{highWaterMark:2})},bo=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",ic=bo&&typeof ReadableStream=="function",ua=bo&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),lc=(e,...t)=>{try{return!!e(...t)}catch{return!1}},b_=ic&&lc(()=>{let e=!1;const t=new Request(st.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),yi=64*1024,da=ic&&lc(()=>x.isReadableStream(new Response("").body)),Hn={stream:da&&(e=>e.body)};bo&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!Hn[t]&&(Hn[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 x_=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 ua(e)).byteLength},S_=async(e,t)=>{const r=x.toFiniteNumber(e.getContentLength());return r??x_(t)},v_=bo&&(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:f}=sc(e);u=u?(u+"").toLowerCase():"text";let[b,y]=o||a||i?g_([o,a],i):[],_,g;const v=()=>{!_&&setTimeout(()=>{b&&b.unsubscribe()}),_=!0};let R;try{if(c&&b_&&r!=="get"&&r!=="head"&&(R=await S_(d,n))!==0){let P=new Request(t,{method:"POST",body:n,duplex:"half"}),O;if(x.isFormData(n)&&(O=P.headers.get("content-type"))&&d.setContentType(O),P.body){const[z,le]=hi(R,Wn(mi(c)));n=gi(P.body,yi,z,le,ua)}}x.isString(h)||(h=h?"include":"omit"),g=new Request(t,{...f,signal:b,method:r.toUpperCase(),headers:d.normalize().toJSON(),body:n,duplex:"half",credentials:h});let C=await fetch(g);const k=da&&(u==="stream"||u==="response");if(da&&(l||k)){const P={};["status","statusText","headers"].forEach(ue=>{P[ue]=C[ue]});const O=x.toFiniteNumber(C.headers.get("content-length")),[z,le]=l&&hi(O,Wn(mi(l),!0))||[];C=new Response(gi(C.body,yi,z,()=>{le&&le(),k&&v()},ua),P)}u=u||"text";let j=await Hn[x.findKey(Hn,u)||"text"](C,e);return!k&&v(),y&&y(),await new Promise((P,O)=>{oc(P,O,{data:j,headers:Fe.from(C.headers),status:C.status,statusText:C.statusText,config:e,request:g})})}catch(C){throw v(),C&&C.name==="TypeError"&&/fetch/i.test(C.message)?Object.assign(new J("Network Error",J.ERR_NETWORK,e,g),{cause:C.cause||C}):J.from(C,C&&C.code,e,g)}}),fa={http:D1,xhr:p_,fetch:v_};x.forEach(fa,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const _i=e=>`- ${e}`,w_=e=>x.isFunction(e)||e===null||e===!1,cc={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,!w_(r)&&(n=fa[(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 :
|
|
81
81
|
`+a.map(_i).join(`
|