@wandelbots/wandelbots-js-react-components 2.24.2 → 2.25.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";var Fd=Object.create;var co=Object.defineProperty;var Nd=Object.getOwnPropertyDescriptor;var Dd=Object.getOwnPropertyNames;var zd=Object.getPrototypeOf,Gd=Object.prototype.hasOwnProperty;var Jd=(e,t,r)=>t in e?co(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Hd=(e,t,r,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of Dd(t))!Gd.call(e,n)&&n!==r&&co(e,n,{get:()=>t[n],enumerable:!(a=Nd(t,n))||a.enumerable});return e};var uo=(e,t,r)=>(r=e!=null?Fd(zd(e)):{},Hd(t||!e||!e.__esModule?co(r,"default",{value:e,enumerable:!0}):r,e));var ia=(e,t,r)=>Jd(e,typeof t!="symbol"?t+"":t,r);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const ae=require("react"),mt=require("@react-three/drei"),qd=require("@react-three/fiber"),ht=require("three"),Wd=require("three-stdlib"),W=require("@mui/material"),ke=require("mobx-react-lite"),Me=require("react-i18next"),Kd=require("i18next-browser-languagedetector"),Be=require("mobx"),S=require("prop-types"),Qd=require("@emotion/styled"),Yd=require("@emotion/react"),cs=require("lodash-es"),ir=require("@wandelbots/nova-js"),Uo=require("@react-spring/three"),Xd=require("react-error-boundary");function Ul(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const a=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,a.get?a:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const J=Ul(ae),Ie=Ul(ht);var za={exports:{}},la={};/**
1
+ "use strict";var Fd=Object.create;var co=Object.defineProperty;var Nd=Object.getOwnPropertyDescriptor;var Dd=Object.getOwnPropertyNames;var zd=Object.getPrototypeOf,Gd=Object.prototype.hasOwnProperty;var Jd=(e,t,r)=>t in e?co(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Hd=(e,t,r,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of Dd(t))!Gd.call(e,n)&&n!==r&&co(e,n,{get:()=>t[n],enumerable:!(a=Nd(t,n))||a.enumerable});return e};var uo=(e,t,r)=>(r=e!=null?Fd(zd(e)):{},Hd(t||!e||!e.__esModule?co(r,"default",{value:e,enumerable:!0}):r,e));var ia=(e,t,r)=>Jd(e,typeof t!="symbol"?t+"":t,r);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const ae=require("react"),mt=require("@react-three/drei"),qd=require("@react-three/fiber"),ht=require("three"),Wd=require("three-stdlib"),q=require("@mui/material"),ke=require("mobx-react-lite"),Me=require("react-i18next"),Kd=require("i18next-browser-languagedetector"),Be=require("mobx"),S=require("prop-types"),Qd=require("@emotion/styled"),Yd=require("@emotion/react"),cs=require("lodash-es"),ir=require("@wandelbots/nova-js"),Uo=require("@react-spring/three"),Xd=require("react-error-boundary");function Ul(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const a=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,a.get?a:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const J=Ul(ae),Ie=Ul(ht);var za={exports:{}},la={};/**
2
2
  * @license React
3
3
  * react-jsx-runtime.production.min.js
4
4
  *
@@ -14,15 +14,15 @@
14
14
  *
15
15
  * This source code is licensed under the MIT license found in the
16
16
  * LICENSE file in the root directory of this source tree.
17
- */var Ms;function eu(){return Ms||(Ms=1,process.env.NODE_ENV!=="production"&&function(){var e=ae,t=Symbol.for("react.element"),r=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),i=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),u=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),f=Symbol.for("react.offscreen"),y=Symbol.iterator,h="@@iterator";function x(v){if(v===null||typeof v!="object")return null;var H=y&&v[y]||v[h];return typeof H=="function"?H:null}var I=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function k(v){{for(var H=arguments.length,Y=new Array(H>1?H-1:0),ne=1;ne<H;ne++)Y[ne-1]=arguments[ne];F("error",v,Y)}}function F(v,H,Y){{var ne=I.ReactDebugCurrentFrame,me=ne.getStackAddendum();me!==""&&(H+="%s",Y=Y.concat([me]));var be=Y.map(function(pe){return String(pe)});be.unshift("Warning: "+H),Function.prototype.apply.call(console[v],console,be)}}var N=!1,z=!1,K=!1,E=!1,$=!1,L;L=Symbol.for("react.module.reference");function g(v){return!!(typeof v=="string"||typeof v=="function"||v===a||v===o||$||v===n||v===c||v===d||E||v===f||N||z||K||typeof v=="object"&&v!==null&&(v.$$typeof===p||v.$$typeof===u||v.$$typeof===s||v.$$typeof===i||v.$$typeof===l||v.$$typeof===L||v.getModuleId!==void 0))}function M(v,H,Y){var ne=v.displayName;if(ne)return ne;var me=H.displayName||H.name||"";return me!==""?Y+"("+me+")":Y}function B(v){return v.displayName||"Context"}function G(v){if(v==null)return null;if(typeof v.tag=="number"&&k("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof v=="function")return v.displayName||v.name||null;if(typeof v=="string")return v;switch(v){case a:return"Fragment";case r:return"Portal";case o:return"Profiler";case n:return"StrictMode";case c:return"Suspense";case d:return"SuspenseList"}if(typeof v=="object")switch(v.$$typeof){case i:var H=v;return B(H)+".Consumer";case s:var Y=v;return B(Y._context)+".Provider";case l:return M(v,v.render,"ForwardRef");case u:var ne=v.displayName||null;return ne!==null?ne:G(v.type)||"Memo";case p:{var me=v,be=me._payload,pe=me._init;try{return G(pe(be))}catch{return null}}}return null}var D=Object.assign,re=0,Z,xe,X,ce,fe,le,He;function _t(){}_t.__reactDisabledLog=!0;function ra(){{if(re===0){Z=console.log,xe=console.info,X=console.warn,ce=console.error,fe=console.group,le=console.groupCollapsed,He=console.groupEnd;var v={configurable:!0,enumerable:!0,value:_t,writable:!0};Object.defineProperties(console,{info:v,log:v,warn:v,error:v,group:v,groupCollapsed:v,groupEnd:v})}re++}}function Sr(){{if(re--,re===0){var v={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:D({},v,{value:Z}),info:D({},v,{value:xe}),warn:D({},v,{value:X}),error:D({},v,{value:ce}),group:D({},v,{value:fe}),groupCollapsed:D({},v,{value:le}),groupEnd:D({},v,{value:He})})}re<0&&k("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var er=I.ReactCurrentDispatcher,Bt;function nt(v,H,Y){{if(Bt===void 0)try{throw Error()}catch(me){var ne=me.stack.trim().match(/\n( *(at )?)/);Bt=ne&&ne[1]||""}return`
17
+ */var Ms;function eu(){return Ms||(Ms=1,process.env.NODE_ENV!=="production"&&function(){var e=ae,t=Symbol.for("react.element"),r=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),i=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),u=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),f=Symbol.for("react.offscreen"),g=Symbol.iterator,h="@@iterator";function x(v){if(v===null||typeof v!="object")return null;var H=g&&v[g]||v[h];return typeof H=="function"?H:null}var E=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function U(v){{for(var H=arguments.length,Y=new Array(H>1?H-1:0),ne=1;ne<H;ne++)Y[ne-1]=arguments[ne];F("error",v,Y)}}function F(v,H,Y){{var ne=E.ReactDebugCurrentFrame,me=ne.getStackAddendum();me!==""&&(H+="%s",Y=Y.concat([me]));var be=Y.map(function(pe){return String(pe)});be.unshift("Warning: "+H),Function.prototype.apply.call(console[v],console,be)}}var N=!1,G=!1,K=!1,j=!1,L=!1,k;k=Symbol.for("react.module.reference");function y(v){return!!(typeof v=="string"||typeof v=="function"||v===a||v===o||L||v===n||v===c||v===d||j||v===f||N||G||K||typeof v=="object"&&v!==null&&(v.$$typeof===p||v.$$typeof===u||v.$$typeof===s||v.$$typeof===i||v.$$typeof===l||v.$$typeof===k||v.getModuleId!==void 0))}function M(v,H,Y){var ne=v.displayName;if(ne)return ne;var me=H.displayName||H.name||"";return me!==""?Y+"("+me+")":Y}function B(v){return v.displayName||"Context"}function z(v){if(v==null)return null;if(typeof v.tag=="number"&&U("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof v=="function")return v.displayName||v.name||null;if(typeof v=="string")return v;switch(v){case a:return"Fragment";case r:return"Portal";case o:return"Profiler";case n:return"StrictMode";case c:return"Suspense";case d:return"SuspenseList"}if(typeof v=="object")switch(v.$$typeof){case i:var H=v;return B(H)+".Consumer";case s:var Y=v;return B(Y._context)+".Provider";case l:return M(v,v.render,"ForwardRef");case u:var ne=v.displayName||null;return ne!==null?ne:z(v.type)||"Memo";case p:{var me=v,be=me._payload,pe=me._init;try{return z(pe(be))}catch{return null}}}return null}var D=Object.assign,re=0,Z,xe,X,ce,fe,le,He;function _t(){}_t.__reactDisabledLog=!0;function ra(){{if(re===0){Z=console.log,xe=console.info,X=console.warn,ce=console.error,fe=console.group,le=console.groupCollapsed,He=console.groupEnd;var v={configurable:!0,enumerable:!0,value:_t,writable:!0};Object.defineProperties(console,{info:v,log:v,warn:v,error:v,group:v,groupCollapsed:v,groupEnd:v})}re++}}function Sr(){{if(re--,re===0){var v={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:D({},v,{value:Z}),info:D({},v,{value:xe}),warn:D({},v,{value:X}),error:D({},v,{value:ce}),group:D({},v,{value:fe}),groupCollapsed:D({},v,{value:le}),groupEnd:D({},v,{value:He})})}re<0&&U("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var er=E.ReactCurrentDispatcher,Bt;function nt(v,H,Y){{if(Bt===void 0)try{throw Error()}catch(me){var ne=me.stack.trim().match(/\n( *(at )?)/);Bt=ne&&ne[1]||""}return`
18
18
  `+Bt+v}}var dt=!1,ot;{var At=typeof WeakMap=="function"?WeakMap:Map;ot=new At}function et(v,H){if(!v||dt)return"";{var Y=ot.get(v);if(Y!==void 0)return Y}var ne;dt=!0;var me=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var be;be=er.current,er.current=null,ra();try{if(H){var pe=function(){throw Error()};if(Object.defineProperty(pe.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(pe,[])}catch(Ye){ne=Ye}Reflect.construct(v,[],pe)}else{try{pe.call()}catch(Ye){ne=Ye}v.call(pe.prototype)}}else{try{throw Error()}catch(Ye){ne=Ye}v()}}catch(Ye){if(Ye&&ne&&typeof Ye.stack=="string"){for(var ue=Ye.stack.split(`
19
19
  `),qe=ne.stack.split(`
20
20
  `),Ee=ue.length-1,Le=qe.length-1;Ee>=1&&Le>=0&&ue[Ee]!==qe[Le];)Le--;for(;Ee>=1&&Le>=0;Ee--,Le--)if(ue[Ee]!==qe[Le]){if(Ee!==1||Le!==1)do if(Ee--,Le--,Le<0||ue[Ee]!==qe[Le]){var st=`
21
- `+ue[Ee].replace(" at new "," at ");return v.displayName&&st.includes("<anonymous>")&&(st=st.replace("<anonymous>",v.displayName)),typeof v=="function"&&ot.set(v,st),st}while(Ee>=1&&Le>=0);break}}}finally{dt=!1,er.current=be,Sr(),Error.prepareStackTrace=me}var Cr=v?v.displayName||v.name:"",ar=Cr?nt(Cr):"";return typeof v=="function"&&ot.set(v,ar),ar}function Ne(v,H,Y){return et(v,!1)}function Tt(v){var H=v.prototype;return!!(H&&H.isReactComponent)}function Ft(v,H,Y){if(v==null)return"";if(typeof v=="function")return et(v,Tt(v));if(typeof v=="string")return nt(v);switch(v){case c:return nt("Suspense");case d:return nt("SuspenseList")}if(typeof v=="object")switch(v.$$typeof){case l:return Ne(v.render);case u:return Ft(v.type,H,Y);case p:{var ne=v,me=ne._payload,be=ne._init;try{return Ft(be(me),H,Y)}catch{}}}return""}var yt=Object.prototype.hasOwnProperty,Fe={},Nt=I.ReactDebugCurrentFrame;function Et(v){if(v){var H=v._owner,Y=Ft(v.type,v._source,H?H.type:null);Nt.setExtraStackFrame(Y)}else Nt.setExtraStackFrame(null)}function vr(v,H,Y,ne,me){{var be=Function.call.bind(yt);for(var pe in v)if(be(v,pe)){var ue=void 0;try{if(typeof v[pe]!="function"){var qe=Error((ne||"React class")+": "+Y+" type `"+pe+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof v[pe]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw qe.name="Invariant Violation",qe}ue=v[pe](H,pe,ne,Y,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(Ee){ue=Ee}ue&&!(ue instanceof Error)&&(Et(me),k("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",ne||"React class",Y,pe,typeof ue),Et(null)),ue instanceof Error&&!(ue.message in Fe)&&(Fe[ue.message]=!0,Et(me),k("Failed %s type: %s",Y,ue.message),Et(null))}}}var xr=Array.isArray;function Dt(v){return xr(v)}function zt(v){{var H=typeof Symbol=="function"&&Symbol.toStringTag,Y=H&&v[Symbol.toStringTag]||v.constructor.name||"Object";return Y}}function Or(v){try{return q(v),!1}catch{return!0}}function q(v){return""+v}function Q(v){if(Or(v))return k("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",zt(v)),q(v)}var ee=I.ReactCurrentOwner,de={key:!0,ref:!0,__self:!0,__source:!0},he,te;function $e(v){if(yt.call(v,"ref")){var H=Object.getOwnPropertyDescriptor(v,"ref").get;if(H&&H.isReactWarning)return!1}return v.ref!==void 0}function De(v){if(yt.call(v,"key")){var H=Object.getOwnPropertyDescriptor(v,"key").get;if(H&&H.isReactWarning)return!1}return v.key!==void 0}function Te(v,H){typeof v.ref=="string"&&ee.current}function Qe(v,H){{var Y=function(){he||(he=!0,k("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",H))};Y.isReactWarning=!0,Object.defineProperty(v,"key",{get:Y,configurable:!0})}}function tr(v,H){{var Y=function(){te||(te=!0,k("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",H))};Y.isReactWarning=!0,Object.defineProperty(v,"ref",{get:Y,configurable:!0})}}var io=function(v,H,Y,ne,me,be,pe){var ue={$$typeof:t,type:v,key:H,ref:Y,props:pe,_owner:be};return ue._store={},Object.defineProperty(ue._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(ue,"_self",{configurable:!1,enumerable:!1,writable:!1,value:ne}),Object.defineProperty(ue,"_source",{configurable:!1,enumerable:!1,writable:!1,value:me}),Object.freeze&&(Object.freeze(ue.props),Object.freeze(ue)),ue};function aa(v,H,Y,ne,me){{var be,pe={},ue=null,qe=null;Y!==void 0&&(Q(Y),ue=""+Y),De(H)&&(Q(H.key),ue=""+H.key),$e(H)&&(qe=H.ref,Te(H,me));for(be in H)yt.call(H,be)&&!de.hasOwnProperty(be)&&(pe[be]=H[be]);if(v&&v.defaultProps){var Ee=v.defaultProps;for(be in Ee)pe[be]===void 0&&(pe[be]=Ee[be])}if(ue||qe){var Le=typeof v=="function"?v.displayName||v.name||"Unknown":v;ue&&Qe(pe,Le),qe&&tr(pe,Le)}return io(v,ue,qe,me,ne,ee.current,pe)}}var na=I.ReactCurrentOwner,wr=I.ReactDebugCurrentFrame;function bt(v){if(v){var H=v._owner,Y=Ft(v.type,v._source,H?H.type:null);wr.setExtraStackFrame(Y)}else wr.setExtraStackFrame(null)}var oa;oa=!1;function Ve(v){return typeof v=="object"&&v!==null&&v.$$typeof===t}function Ue(){{if(na.current){var v=G(na.current.type);if(v)return`
21
+ `+ue[Ee].replace(" at new "," at ");return v.displayName&&st.includes("<anonymous>")&&(st=st.replace("<anonymous>",v.displayName)),typeof v=="function"&&ot.set(v,st),st}while(Ee>=1&&Le>=0);break}}}finally{dt=!1,er.current=be,Sr(),Error.prepareStackTrace=me}var Cr=v?v.displayName||v.name:"",ar=Cr?nt(Cr):"";return typeof v=="function"&&ot.set(v,ar),ar}function Ne(v,H,Y){return et(v,!1)}function Tt(v){var H=v.prototype;return!!(H&&H.isReactComponent)}function Ft(v,H,Y){if(v==null)return"";if(typeof v=="function")return et(v,Tt(v));if(typeof v=="string")return nt(v);switch(v){case c:return nt("Suspense");case d:return nt("SuspenseList")}if(typeof v=="object")switch(v.$$typeof){case l:return Ne(v.render);case u:return Ft(v.type,H,Y);case p:{var ne=v,me=ne._payload,be=ne._init;try{return Ft(be(me),H,Y)}catch{}}}return""}var yt=Object.prototype.hasOwnProperty,Fe={},Nt=E.ReactDebugCurrentFrame;function Et(v){if(v){var H=v._owner,Y=Ft(v.type,v._source,H?H.type:null);Nt.setExtraStackFrame(Y)}else Nt.setExtraStackFrame(null)}function vr(v,H,Y,ne,me){{var be=Function.call.bind(yt);for(var pe in v)if(be(v,pe)){var ue=void 0;try{if(typeof v[pe]!="function"){var qe=Error((ne||"React class")+": "+Y+" type `"+pe+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof v[pe]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw qe.name="Invariant Violation",qe}ue=v[pe](H,pe,ne,Y,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(Ee){ue=Ee}ue&&!(ue instanceof Error)&&(Et(me),U("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",ne||"React class",Y,pe,typeof ue),Et(null)),ue instanceof Error&&!(ue.message in Fe)&&(Fe[ue.message]=!0,Et(me),U("Failed %s type: %s",Y,ue.message),Et(null))}}}var xr=Array.isArray;function Dt(v){return xr(v)}function zt(v){{var H=typeof Symbol=="function"&&Symbol.toStringTag,Y=H&&v[Symbol.toStringTag]||v.constructor.name||"Object";return Y}}function Or(v){try{return W(v),!1}catch{return!0}}function W(v){return""+v}function Q(v){if(Or(v))return U("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",zt(v)),W(v)}var ee=E.ReactCurrentOwner,de={key:!0,ref:!0,__self:!0,__source:!0},he,te;function $e(v){if(yt.call(v,"ref")){var H=Object.getOwnPropertyDescriptor(v,"ref").get;if(H&&H.isReactWarning)return!1}return v.ref!==void 0}function De(v){if(yt.call(v,"key")){var H=Object.getOwnPropertyDescriptor(v,"key").get;if(H&&H.isReactWarning)return!1}return v.key!==void 0}function Te(v,H){typeof v.ref=="string"&&ee.current}function Qe(v,H){{var Y=function(){he||(he=!0,U("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",H))};Y.isReactWarning=!0,Object.defineProperty(v,"key",{get:Y,configurable:!0})}}function tr(v,H){{var Y=function(){te||(te=!0,U("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",H))};Y.isReactWarning=!0,Object.defineProperty(v,"ref",{get:Y,configurable:!0})}}var io=function(v,H,Y,ne,me,be,pe){var ue={$$typeof:t,type:v,key:H,ref:Y,props:pe,_owner:be};return ue._store={},Object.defineProperty(ue._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(ue,"_self",{configurable:!1,enumerable:!1,writable:!1,value:ne}),Object.defineProperty(ue,"_source",{configurable:!1,enumerable:!1,writable:!1,value:me}),Object.freeze&&(Object.freeze(ue.props),Object.freeze(ue)),ue};function aa(v,H,Y,ne,me){{var be,pe={},ue=null,qe=null;Y!==void 0&&(Q(Y),ue=""+Y),De(H)&&(Q(H.key),ue=""+H.key),$e(H)&&(qe=H.ref,Te(H,me));for(be in H)yt.call(H,be)&&!de.hasOwnProperty(be)&&(pe[be]=H[be]);if(v&&v.defaultProps){var Ee=v.defaultProps;for(be in Ee)pe[be]===void 0&&(pe[be]=Ee[be])}if(ue||qe){var Le=typeof v=="function"?v.displayName||v.name||"Unknown":v;ue&&Qe(pe,Le),qe&&tr(pe,Le)}return io(v,ue,qe,me,ne,ee.current,pe)}}var na=E.ReactCurrentOwner,wr=E.ReactDebugCurrentFrame;function bt(v){if(v){var H=v._owner,Y=Ft(v.type,v._source,H?H.type:null);wr.setExtraStackFrame(Y)}else wr.setExtraStackFrame(null)}var oa;oa=!1;function Ve(v){return typeof v=="object"&&v!==null&&v.$$typeof===t}function Ue(){{if(na.current){var v=z(na.current.type);if(v)return`
22
22
 
23
23
  Check the render method of \``+v+"`."}return""}}function sa(v){return""}var rr={};function ut(v){{var H=Ue();if(!H){var Y=typeof v=="string"?v:v.displayName||v.name;Y&&(H=`
24
24
 
25
- Check the top-level render call using <`+Y+">.")}return H}}function _s(v,H){{if(!v._store||v._store.validated||v.key!=null)return;v._store.validated=!0;var Y=ut(H);if(rr[Y])return;rr[Y]=!0;var ne="";v&&v._owner&&v._owner!==na.current&&(ne=" It was passed a child from "+G(v._owner.type)+"."),bt(v),k('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',Y,ne),bt(null)}}function As(v,H){{if(typeof v!="object")return;if(Dt(v))for(var Y=0;Y<v.length;Y++){var ne=v[Y];Ve(ne)&&_s(ne,H)}else if(Ve(v))v._store&&(v._store.validated=!0);else if(v){var me=x(v);if(typeof me=="function"&&me!==v.entries)for(var be=me.call(v),pe;!(pe=be.next()).done;)Ve(pe.value)&&_s(pe.value,H)}}}function Id(v){{var H=v.type;if(H==null||typeof H=="string")return;var Y;if(typeof H=="function")Y=H.propTypes;else if(typeof H=="object"&&(H.$$typeof===l||H.$$typeof===u))Y=H.propTypes;else return;if(Y){var ne=G(H);vr(Y,v.props,"prop",ne,v)}else if(H.PropTypes!==void 0&&!oa){oa=!0;var me=G(H);k("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",me||"Unknown")}typeof H.getDefaultProps=="function"&&!H.getDefaultProps.isReactClassApproved&&k("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Md(v){{for(var H=Object.keys(v.props),Y=0;Y<H.length;Y++){var ne=H[Y];if(ne!=="children"&&ne!=="key"){bt(v),k("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",ne),bt(null);break}}v.ref!==null&&(bt(v),k("Invalid attribute `ref` supplied to `React.Fragment`."),bt(null))}}var Ts={};function Es(v,H,Y,ne,me,be){{var pe=g(v);if(!pe){var ue="";(v===void 0||typeof v=="object"&&v!==null&&Object.keys(v).length===0)&&(ue+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var qe=sa();qe?ue+=qe:ue+=Ue();var Ee;v===null?Ee="null":Dt(v)?Ee="array":v!==void 0&&v.$$typeof===t?(Ee="<"+(G(v.type)||"Unknown")+" />",ue=" Did you accidentally export a JSX literal instead of a component?"):Ee=typeof v,k("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Ee,ue)}var Le=aa(v,H,Y,me,be);if(Le==null)return Le;if(pe){var st=H.children;if(st!==void 0)if(ne)if(Dt(st)){for(var Cr=0;Cr<st.length;Cr++)As(st[Cr],v);Object.freeze&&Object.freeze(st)}else k("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else As(st,v)}if(yt.call(H,"key")){var ar=G(v),Ye=Object.keys(H).filter(function(Bd){return Bd!=="key"}),lo=Ye.length>0?"{key: someKey, "+Ye.join(": ..., ")+": ...}":"{key: someKey}";if(!Ts[ar+lo]){var kd=Ye.length>0?"{"+Ye.join(": ..., ")+": ...}":"{}";k(`A props object containing a "key" prop is being spread into JSX:
25
+ Check the top-level render call using <`+Y+">.")}return H}}function _s(v,H){{if(!v._store||v._store.validated||v.key!=null)return;v._store.validated=!0;var Y=ut(H);if(rr[Y])return;rr[Y]=!0;var ne="";v&&v._owner&&v._owner!==na.current&&(ne=" It was passed a child from "+z(v._owner.type)+"."),bt(v),U('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',Y,ne),bt(null)}}function As(v,H){{if(typeof v!="object")return;if(Dt(v))for(var Y=0;Y<v.length;Y++){var ne=v[Y];Ve(ne)&&_s(ne,H)}else if(Ve(v))v._store&&(v._store.validated=!0);else if(v){var me=x(v);if(typeof me=="function"&&me!==v.entries)for(var be=me.call(v),pe;!(pe=be.next()).done;)Ve(pe.value)&&_s(pe.value,H)}}}function Id(v){{var H=v.type;if(H==null||typeof H=="string")return;var Y;if(typeof H=="function")Y=H.propTypes;else if(typeof H=="object"&&(H.$$typeof===l||H.$$typeof===u))Y=H.propTypes;else return;if(Y){var ne=z(H);vr(Y,v.props,"prop",ne,v)}else if(H.PropTypes!==void 0&&!oa){oa=!0;var me=z(H);U("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",me||"Unknown")}typeof H.getDefaultProps=="function"&&!H.getDefaultProps.isReactClassApproved&&U("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Md(v){{for(var H=Object.keys(v.props),Y=0;Y<H.length;Y++){var ne=H[Y];if(ne!=="children"&&ne!=="key"){bt(v),U("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",ne),bt(null);break}}v.ref!==null&&(bt(v),U("Invalid attribute `ref` supplied to `React.Fragment`."),bt(null))}}var Ts={};function Es(v,H,Y,ne,me,be){{var pe=y(v);if(!pe){var ue="";(v===void 0||typeof v=="object"&&v!==null&&Object.keys(v).length===0)&&(ue+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var qe=sa();qe?ue+=qe:ue+=Ue();var Ee;v===null?Ee="null":Dt(v)?Ee="array":v!==void 0&&v.$$typeof===t?(Ee="<"+(z(v.type)||"Unknown")+" />",ue=" Did you accidentally export a JSX literal instead of a component?"):Ee=typeof v,U("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Ee,ue)}var Le=aa(v,H,Y,me,be);if(Le==null)return Le;if(pe){var st=H.children;if(st!==void 0)if(ne)if(Dt(st)){for(var Cr=0;Cr<st.length;Cr++)As(st[Cr],v);Object.freeze&&Object.freeze(st)}else U("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else As(st,v)}if(yt.call(H,"key")){var ar=z(v),Ye=Object.keys(H).filter(function(Bd){return Bd!=="key"}),lo=Ye.length>0?"{key: someKey, "+Ye.join(": ..., ")+": ...}":"{key: someKey}";if(!Ts[ar+lo]){var kd=Ye.length>0?"{"+Ye.join(": ..., ")+": ...}":"{}";U(`A props object containing a "key" prop is being spread into JSX:
26
26
  let props = %s;
27
27
  <%s {...props} />
28
28
  React keys must be passed directly to JSX without using spread:
@@ -42,7 +42,7 @@ React keys must be passed directly to JSX without using spread:
42
42
  *
43
43
  * This source code is licensed under the MIT license found in the
44
44
  * LICENSE file in the root directory of this source tree.
45
- */var Fs;function gu(){if(Fs)return ge;Fs=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),n=Symbol.for("react.profiler"),o=Symbol.for("react.consumer"),s=Symbol.for("react.context"),i=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),u=Symbol.for("react.lazy"),p=Symbol.for("react.offscreen"),f=Symbol.for("react.client.reference");function y(h){if(typeof h=="object"&&h!==null){var x=h.$$typeof;switch(x){case e:switch(h=h.type,h){case r:case n:case a:case l:case c:return h;default:switch(h=h&&h.$$typeof,h){case s:case i:case u:case d:return h;case o:return h;default:return x}}case t:return x}}}return ge.ContextConsumer=o,ge.ContextProvider=s,ge.Element=e,ge.ForwardRef=i,ge.Fragment=r,ge.Lazy=u,ge.Memo=d,ge.Portal=t,ge.Profiler=n,ge.StrictMode=a,ge.Suspense=l,ge.SuspenseList=c,ge.isContextConsumer=function(h){return y(h)===o},ge.isContextProvider=function(h){return y(h)===s},ge.isElement=function(h){return typeof h=="object"&&h!==null&&h.$$typeof===e},ge.isForwardRef=function(h){return y(h)===i},ge.isFragment=function(h){return y(h)===r},ge.isLazy=function(h){return y(h)===u},ge.isMemo=function(h){return y(h)===d},ge.isPortal=function(h){return y(h)===t},ge.isProfiler=function(h){return y(h)===n},ge.isStrictMode=function(h){return y(h)===a},ge.isSuspense=function(h){return y(h)===l},ge.isSuspenseList=function(h){return y(h)===c},ge.isValidElementType=function(h){return typeof h=="string"||typeof h=="function"||h===r||h===n||h===a||h===l||h===c||h===p||typeof h=="object"&&h!==null&&(h.$$typeof===u||h.$$typeof===d||h.$$typeof===s||h.$$typeof===o||h.$$typeof===i||h.$$typeof===f||h.getModuleId!==void 0)},ge.typeOf=y,ge}var ye={};/**
45
+ */var Fs;function gu(){if(Fs)return ge;Fs=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),n=Symbol.for("react.profiler"),o=Symbol.for("react.consumer"),s=Symbol.for("react.context"),i=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),u=Symbol.for("react.lazy"),p=Symbol.for("react.offscreen"),f=Symbol.for("react.client.reference");function g(h){if(typeof h=="object"&&h!==null){var x=h.$$typeof;switch(x){case e:switch(h=h.type,h){case r:case n:case a:case l:case c:return h;default:switch(h=h&&h.$$typeof,h){case s:case i:case u:case d:return h;case o:return h;default:return x}}case t:return x}}}return ge.ContextConsumer=o,ge.ContextProvider=s,ge.Element=e,ge.ForwardRef=i,ge.Fragment=r,ge.Lazy=u,ge.Memo=d,ge.Portal=t,ge.Profiler=n,ge.StrictMode=a,ge.Suspense=l,ge.SuspenseList=c,ge.isContextConsumer=function(h){return g(h)===o},ge.isContextProvider=function(h){return g(h)===s},ge.isElement=function(h){return typeof h=="object"&&h!==null&&h.$$typeof===e},ge.isForwardRef=function(h){return g(h)===i},ge.isFragment=function(h){return g(h)===r},ge.isLazy=function(h){return g(h)===u},ge.isMemo=function(h){return g(h)===d},ge.isPortal=function(h){return g(h)===t},ge.isProfiler=function(h){return g(h)===n},ge.isStrictMode=function(h){return g(h)===a},ge.isSuspense=function(h){return g(h)===l},ge.isSuspenseList=function(h){return g(h)===c},ge.isValidElementType=function(h){return typeof h=="string"||typeof h=="function"||h===r||h===n||h===a||h===l||h===c||h===p||typeof h=="object"&&h!==null&&(h.$$typeof===u||h.$$typeof===d||h.$$typeof===s||h.$$typeof===o||h.$$typeof===i||h.$$typeof===f||h.getModuleId!==void 0)},ge.typeOf=g,ge}var ye={};/**
46
46
  * @license React
47
47
  * react-is.development.js
48
48
  *
@@ -50,18 +50,18 @@ React keys must be passed directly to JSX without using spread:
50
50
  *
51
51
  * This source code is licensed under the MIT license found in the
52
52
  * LICENSE file in the root directory of this source tree.
53
- */var Ns;function yu(){return Ns||(Ns=1,process.env.NODE_ENV!=="production"&&function(){function e(h){if(typeof h=="object"&&h!==null){var x=h.$$typeof;switch(x){case t:switch(h=h.type,h){case a:case o:case n:case c:case d:return h;default:switch(h=h&&h.$$typeof,h){case i:case l:case p:case u:return h;case s:return h;default:return x}}case r:return x}}}var t=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),i=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),u=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),f=Symbol.for("react.offscreen"),y=Symbol.for("react.client.reference");ye.ContextConsumer=s,ye.ContextProvider=i,ye.Element=t,ye.ForwardRef=l,ye.Fragment=a,ye.Lazy=p,ye.Memo=u,ye.Portal=r,ye.Profiler=o,ye.StrictMode=n,ye.Suspense=c,ye.SuspenseList=d,ye.isContextConsumer=function(h){return e(h)===s},ye.isContextProvider=function(h){return e(h)===i},ye.isElement=function(h){return typeof h=="object"&&h!==null&&h.$$typeof===t},ye.isForwardRef=function(h){return e(h)===l},ye.isFragment=function(h){return e(h)===a},ye.isLazy=function(h){return e(h)===p},ye.isMemo=function(h){return e(h)===u},ye.isPortal=function(h){return e(h)===r},ye.isProfiler=function(h){return e(h)===o},ye.isStrictMode=function(h){return e(h)===n},ye.isSuspense=function(h){return e(h)===c},ye.isSuspenseList=function(h){return e(h)===d},ye.isValidElementType=function(h){return typeof h=="string"||typeof h=="function"||h===a||h===o||h===n||h===c||h===d||h===f||typeof h=="object"&&h!==null&&(h.$$typeof===p||h.$$typeof===u||h.$$typeof===i||h.$$typeof===s||h.$$typeof===l||h.$$typeof===y||h.getModuleId!==void 0)},ye.typeOf=e}()),ye}var Ds;function bu(){return Ds||(Ds=1,process.env.NODE_ENV==="production"?Ga.exports=gu():Ga.exports=yu()),Ga.exports}var yn=bu();function Ot(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function kl(e){if(J.isValidElement(e)||yn.isValidElementType(e)||!Ot(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=kl(e[r])}),t}function Ke(e,t,r={clone:!0}){const a=r.clone?{...e}:e;return Ot(e)&&Ot(t)&&Object.keys(t).forEach(n=>{J.isValidElement(t[n])||yn.isValidElementType(t[n])?a[n]=t[n]:Ot(t[n])&&Object.prototype.hasOwnProperty.call(e,n)&&Ot(e[n])?a[n]=Ke(e[n],t[n],r):r.clone?a[n]=Ot(t[n])?kl(t[n]):t[n]:a[n]=t[n]}),a}const Su=e=>{const t=Object.keys(e).map(r=>({key:r,val:e[r]}))||[];return t.sort((r,a)=>r.val-a.val),t.reduce((r,a)=>({...r,[a.key]:a.val}),{})};function vu(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:a=5,...n}=e,o=Su(t),s=Object.keys(o);function i(p){return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${r})`}function l(p){return`@media (max-width:${(typeof t[p]=="number"?t[p]:p)-a/100}${r})`}function c(p,f){const y=s.indexOf(f);return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${r}) and (max-width:${(y!==-1&&typeof t[s[y]]=="number"?t[s[y]]:f)-a/100}${r})`}function d(p){return s.indexOf(p)+1<s.length?c(p,s[s.indexOf(p)+1]):i(p)}function u(p){const f=s.indexOf(p);return f===0?i(s[1]):f===s.length-1?l(s[f]):c(p,s[s.indexOf(p)+1]).replace("@media","@media not all and")}return{keys:s,values:o,up:i,down:l,between:c,only:d,not:u,unit:r,...n}}function xu(e,t){if(!e.containerQueries)return t;const r=Object.keys(t).filter(a=>a.startsWith("@container")).sort((a,n)=>{var s,i;const o=/min-width:\s*([0-9.]+)/;return+(((s=a.match(o))==null?void 0:s[1])||0)-+(((i=n.match(o))==null?void 0:i[1])||0)});return r.length?r.reduce((a,n)=>{const o=t[n];return delete a[n],a[n]=o,a},{...t}):t}function Ou(e,t){return t==="@"||t.startsWith("@")&&(e.some(r=>t.startsWith(`@${r}`))||!!t.match(/^@\d/))}function wu(e,t){const r=t.match(/^@([^/]+)?\/?(.+)?$/);if(!r){if(process.env.NODE_ENV!=="production")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The provided shorthand ${`(${t})`} is invalid. The format should be \`@<breakpoint | number>\` or \`@<breakpoint | number>/<container>\`.
53
+ */var Ns;function yu(){return Ns||(Ns=1,process.env.NODE_ENV!=="production"&&function(){function e(h){if(typeof h=="object"&&h!==null){var x=h.$$typeof;switch(x){case t:switch(h=h.type,h){case a:case o:case n:case c:case d:return h;default:switch(h=h&&h.$$typeof,h){case i:case l:case p:case u:return h;case s:return h;default:return x}}case r:return x}}}var t=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),i=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),u=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),f=Symbol.for("react.offscreen"),g=Symbol.for("react.client.reference");ye.ContextConsumer=s,ye.ContextProvider=i,ye.Element=t,ye.ForwardRef=l,ye.Fragment=a,ye.Lazy=p,ye.Memo=u,ye.Portal=r,ye.Profiler=o,ye.StrictMode=n,ye.Suspense=c,ye.SuspenseList=d,ye.isContextConsumer=function(h){return e(h)===s},ye.isContextProvider=function(h){return e(h)===i},ye.isElement=function(h){return typeof h=="object"&&h!==null&&h.$$typeof===t},ye.isForwardRef=function(h){return e(h)===l},ye.isFragment=function(h){return e(h)===a},ye.isLazy=function(h){return e(h)===p},ye.isMemo=function(h){return e(h)===u},ye.isPortal=function(h){return e(h)===r},ye.isProfiler=function(h){return e(h)===o},ye.isStrictMode=function(h){return e(h)===n},ye.isSuspense=function(h){return e(h)===c},ye.isSuspenseList=function(h){return e(h)===d},ye.isValidElementType=function(h){return typeof h=="string"||typeof h=="function"||h===a||h===o||h===n||h===c||h===d||h===f||typeof h=="object"&&h!==null&&(h.$$typeof===p||h.$$typeof===u||h.$$typeof===i||h.$$typeof===s||h.$$typeof===l||h.$$typeof===g||h.getModuleId!==void 0)},ye.typeOf=e}()),ye}var Ds;function bu(){return Ds||(Ds=1,process.env.NODE_ENV==="production"?Ga.exports=gu():Ga.exports=yu()),Ga.exports}var yn=bu();function Ot(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function kl(e){if(J.isValidElement(e)||yn.isValidElementType(e)||!Ot(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=kl(e[r])}),t}function Ke(e,t,r={clone:!0}){const a=r.clone?{...e}:e;return Ot(e)&&Ot(t)&&Object.keys(t).forEach(n=>{J.isValidElement(t[n])||yn.isValidElementType(t[n])?a[n]=t[n]:Ot(t[n])&&Object.prototype.hasOwnProperty.call(e,n)&&Ot(e[n])?a[n]=Ke(e[n],t[n],r):r.clone?a[n]=Ot(t[n])?kl(t[n]):t[n]:a[n]=t[n]}),a}const Su=e=>{const t=Object.keys(e).map(r=>({key:r,val:e[r]}))||[];return t.sort((r,a)=>r.val-a.val),t.reduce((r,a)=>({...r,[a.key]:a.val}),{})};function vu(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:a=5,...n}=e,o=Su(t),s=Object.keys(o);function i(p){return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${r})`}function l(p){return`@media (max-width:${(typeof t[p]=="number"?t[p]:p)-a/100}${r})`}function c(p,f){const g=s.indexOf(f);return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${r}) and (max-width:${(g!==-1&&typeof t[s[g]]=="number"?t[s[g]]:f)-a/100}${r})`}function d(p){return s.indexOf(p)+1<s.length?c(p,s[s.indexOf(p)+1]):i(p)}function u(p){const f=s.indexOf(p);return f===0?i(s[1]):f===s.length-1?l(s[f]):c(p,s[s.indexOf(p)+1]).replace("@media","@media not all and")}return{keys:s,values:o,up:i,down:l,between:c,only:d,not:u,unit:r,...n}}function xu(e,t){if(!e.containerQueries)return t;const r=Object.keys(t).filter(a=>a.startsWith("@container")).sort((a,n)=>{var s,i;const o=/min-width:\s*([0-9.]+)/;return+(((s=a.match(o))==null?void 0:s[1])||0)-+(((i=n.match(o))==null?void 0:i[1])||0)});return r.length?r.reduce((a,n)=>{const o=t[n];return delete a[n],a[n]=o,a},{...t}):t}function Ou(e,t){return t==="@"||t.startsWith("@")&&(e.some(r=>t.startsWith(`@${r}`))||!!t.match(/^@\d/))}function wu(e,t){const r=t.match(/^@([^/]+)?\/?(.+)?$/);if(!r){if(process.env.NODE_ENV!=="production")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The provided shorthand ${`(${t})`} is invalid. The format should be \`@<breakpoint | number>\` or \`@<breakpoint | number>/<container>\`.
54
54
  For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.`:Qt(18,`(${t})`));return null}const[,a,n]=r,o=Number.isNaN(+a)?a||0:+a;return e.containerQueries(n).up(o)}function Cu(e){const t=(o,s)=>o.replace("@media",s?`@container ${s}`:"@container");function r(o,s){o.up=(...i)=>t(e.breakpoints.up(...i),s),o.down=(...i)=>t(e.breakpoints.down(...i),s),o.between=(...i)=>t(e.breakpoints.between(...i),s),o.only=(...i)=>t(e.breakpoints.only(...i),s),o.not=(...i)=>{const l=t(e.breakpoints.not(...i),s);return l.includes("not all and")?l.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):l}}const a={},n=o=>(r(a,o),a);return r(n),{...e,containerQueries:n}}const Pu={borderRadius:4},Zt=process.env.NODE_ENV!=="production"?S.oneOfType([S.number,S.string,S.object,S.array]):{};function wa(e,t){return t?Ke(e,t,{clone:!1}):e}const En={xs:0,sm:600,md:900,lg:1200,xl:1536},zs={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${En[e]}px)`},Vu={containerQueries:e=>({up:t=>{let r=typeof t=="number"?t:En[t]||t;return typeof r=="number"&&(r=`${r}px`),e?`@container ${e} (min-width:${r})`:`@container (min-width:${r})`}})};function ft(e,t,r){const a=e.theme||{};if(Array.isArray(t)){const o=a.breakpoints||zs;return t.reduce((s,i,l)=>(s[o.up(o.keys[l])]=r(t[l]),s),{})}if(typeof t=="object"){const o=a.breakpoints||zs;return Object.keys(t).reduce((s,i)=>{if(Ou(o.keys,i)){const l=wu(a.containerQueries?a:Vu,i);l&&(s[l]=r(t[i],i))}else if(Object.keys(o.values||En).includes(i)){const l=o.up(i);s[l]=r(t[i],i)}else{const l=i;s[l]=t[l]}return s},{})}return r(t)}function Bl(e={}){var r;return((r=e.keys)==null?void 0:r.reduce((a,n)=>{const o=e.up(n);return a[o]={},a},{}))||{}}function Fl(e,t){return e.reduce((r,a)=>{const n=r[a];return(!n||Object.keys(n).length===0)&&delete r[a],r},t)}function Ru(e,...t){const r=Bl(e),a=[r,...t].reduce((n,o)=>Ke(n,o),{});return Fl(Object.keys(r),a)}function _u(e,t){if(typeof e!="object")return{};const r={},a=Object.keys(t);return Array.isArray(e)?a.forEach((n,o)=>{o<e.length&&(r[n]=!0)}):a.forEach(n=>{e[n]!=null&&(r[n]=!0)}),r}function ho({values:e,breakpoints:t,base:r}){const a=r||_u(e,t),n=Object.keys(a);if(n.length===0)return e;let o;return n.reduce((s,i,l)=>(Array.isArray(e)?(s[i]=e[l]!=null?e[l]:e[o],o=l):typeof e=="object"?(s[i]=e[i]!=null?e[i]:e[o],o=i):s[i]=e,s),{})}function We(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":Qt(7));return e.charAt(0).toUpperCase()+e.slice(1)}function In(e,t,r=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&r){const a=`vars.${t}`.split(".").reduce((n,o)=>n&&n[o]?n[o]:null,e);if(a!=null)return a}return t.split(".").reduce((a,n)=>a&&a[n]!=null?a[n]:null,e)}function bn(e,t,r,a=r){let n;return typeof e=="function"?n=e(r):Array.isArray(e)?n=e[r]||a:n=In(e,r)||a,t&&(n=t(n,a,e)),n}function je(e){const{prop:t,cssProperty:r=e.prop,themeKey:a,transform:n}=e,o=s=>{if(s[t]==null)return null;const i=s[t],l=s.theme,c=In(l,a)||{};return ft(s,i,u=>{let p=bn(c,n,u);return u===p&&typeof u=="string"&&(p=bn(c,n,`${t}${u==="default"?"":We(u)}`,u)),r===!1?p:{[r]:p}})};return o.propTypes=process.env.NODE_ENV!=="production"?{[t]:Zt}:{},o.filterProps=[t],o}function Au(e){const t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}const Tu={m:"margin",p:"padding"},Eu={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Gs={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Iu=Au(e=>{if(e.length>2)if(Gs[e])e=Gs[e];else return[e];const[t,r]=e.split(""),a=Tu[t],n=Eu[r]||"";return Array.isArray(n)?n.map(o=>a+o):[a+n]}),Mn=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],jn=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],Mu=[...Mn,...jn];function La(e,t,r,a){const n=In(e,t,!0)??r;return typeof n=="number"||typeof n=="string"?o=>typeof o=="string"?o:(process.env.NODE_ENV!=="production"&&typeof o!="number"&&console.error(`MUI: Expected ${a} argument to be a number or a string, got ${o}.`),typeof n=="string"?`calc(${o} * ${n})`:n*o):Array.isArray(n)?o=>{if(typeof o=="string")return o;const s=Math.abs(o);process.env.NODE_ENV!=="production"&&(Number.isInteger(s)?s>n.length-1&&console.error([`MUI: The value provided (${s}) overflows.`,`The supported values are: ${JSON.stringify(n)}.`,`${s} > ${n.length-1}, you need to add the missing values.`].join(`
55
55
  `)):console.error([`MUI: The \`theme.${t}\` array type cannot be combined with non integer values.You should either use an integer value that can be used as index, or define the \`theme.${t}\` as a number.`].join(`
56
56
  `)));const i=n[s];return o>=0?i:typeof i=="number"?-i:`-${i}`}:typeof n=="function"?n:(process.env.NODE_ENV!=="production"&&console.error([`MUI: The \`theme.${t}\` value (${n}) is invalid.`,"It should be a number, an array or a function."].join(`
57
- `)),()=>{})}function $n(e){return La(e,"spacing",8,"spacing")}function cr(e,t){return typeof t=="string"||t==null?t:e(t)}function ju(e,t){return r=>e.reduce((a,n)=>(a[n]=cr(t,r),a),{})}function $u(e,t,r,a){if(!t.includes(r))return null;const n=Iu(r),o=ju(n,a),s=e[r];return ft(e,s,o)}function Nl(e,t){const r=$n(e.theme);return Object.keys(e).map(a=>$u(e,t,a,r)).reduce(wa,{})}function _e(e){return Nl(e,Mn)}_e.propTypes=process.env.NODE_ENV!=="production"?Mn.reduce((e,t)=>(e[t]=Zt,e),{}):{};_e.filterProps=Mn;function Ae(e){return Nl(e,jn)}Ae.propTypes=process.env.NODE_ENV!=="production"?jn.reduce((e,t)=>(e[t]=Zt,e),{}):{};Ae.filterProps=jn;process.env.NODE_ENV!=="production"&&Mu.reduce((e,t)=>(e[t]=Zt,e),{});function Dl(e=8,t=$n({spacing:e})){if(e.mui)return e;const r=(...a)=>(process.env.NODE_ENV!=="production"&&(a.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${a.length}`)),(a.length===0?[1]:a).map(o=>{const s=t(o);return typeof s=="number"?`${s}px`:s}).join(" "));return r.mui=!0,r}function Un(...e){const t=e.reduce((a,n)=>(n.filterProps.forEach(o=>{a[o]=n}),a),{}),r=a=>Object.keys(a).reduce((n,o)=>t[o]?wa(n,t[o](a)):n,{});return r.propTypes=process.env.NODE_ENV!=="production"?e.reduce((a,n)=>Object.assign(a,n.propTypes),{}):{},r.filterProps=e.reduce((a,n)=>a.concat(n.filterProps),[]),r}function it(e){return typeof e!="number"?e:`${e}px solid`}function ct(e,t){return je({prop:e,themeKey:"borders",transform:t})}const Uu=ct("border",it),Lu=ct("borderTop",it),ku=ct("borderRight",it),Bu=ct("borderBottom",it),Fu=ct("borderLeft",it),Nu=ct("borderColor"),Du=ct("borderTopColor"),zu=ct("borderRightColor"),Gu=ct("borderBottomColor"),Ju=ct("borderLeftColor"),Hu=ct("outline",it),qu=ct("outlineColor"),Ln=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=La(e.theme,"shape.borderRadius",4,"borderRadius"),r=a=>({borderRadius:cr(t,a)});return ft(e,e.borderRadius,r)}return null};Ln.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:Zt}:{};Ln.filterProps=["borderRadius"];Un(Uu,Lu,ku,Bu,Fu,Nu,Du,zu,Gu,Ju,Ln,Hu,qu);const kn=e=>{if(e.gap!==void 0&&e.gap!==null){const t=La(e.theme,"spacing",8,"gap"),r=a=>({gap:cr(t,a)});return ft(e,e.gap,r)}return null};kn.propTypes=process.env.NODE_ENV!=="production"?{gap:Zt}:{};kn.filterProps=["gap"];const Bn=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=La(e.theme,"spacing",8,"columnGap"),r=a=>({columnGap:cr(t,a)});return ft(e,e.columnGap,r)}return null};Bn.propTypes=process.env.NODE_ENV!=="production"?{columnGap:Zt}:{};Bn.filterProps=["columnGap"];const Fn=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=La(e.theme,"spacing",8,"rowGap"),r=a=>({rowGap:cr(t,a)});return ft(e,e.rowGap,r)}return null};Fn.propTypes=process.env.NODE_ENV!=="production"?{rowGap:Zt}:{};Fn.filterProps=["rowGap"];const Wu=je({prop:"gridColumn"}),Ku=je({prop:"gridRow"}),Qu=je({prop:"gridAutoFlow"}),Yu=je({prop:"gridAutoColumns"}),Xu=je({prop:"gridAutoRows"}),Zu=je({prop:"gridTemplateColumns"}),ep=je({prop:"gridTemplateRows"}),tp=je({prop:"gridTemplateAreas"}),rp=je({prop:"gridArea"});Un(kn,Bn,Fn,Wu,Ku,Qu,Yu,Xu,Zu,ep,tp,rp);function Nr(e,t){return t==="grey"?t:e}const ap=je({prop:"color",themeKey:"palette",transform:Nr}),np=je({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Nr}),op=je({prop:"backgroundColor",themeKey:"palette",transform:Nr});Un(ap,np,op);function rt(e){return e<=1&&e!==0?`${e*100}%`:e}const sp=je({prop:"width",transform:rt}),ds=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=r=>{var n,o,s,i,l;const a=((s=(o=(n=e.theme)==null?void 0:n.breakpoints)==null?void 0:o.values)==null?void 0:s[r])||En[r];return a?((l=(i=e.theme)==null?void 0:i.breakpoints)==null?void 0:l.unit)!=="px"?{maxWidth:`${a}${e.theme.breakpoints.unit}`}:{maxWidth:a}:{maxWidth:rt(r)}};return ft(e,e.maxWidth,t)}return null};ds.filterProps=["maxWidth"];const ip=je({prop:"minWidth",transform:rt}),lp=je({prop:"height",transform:rt}),cp=je({prop:"maxHeight",transform:rt}),dp=je({prop:"minHeight",transform:rt});je({prop:"size",cssProperty:"width",transform:rt});je({prop:"size",cssProperty:"height",transform:rt});const up=je({prop:"boxSizing"});Un(sp,ds,ip,lp,cp,dp,up);const ka={border:{themeKey:"borders",transform:it},borderTop:{themeKey:"borders",transform:it},borderRight:{themeKey:"borders",transform:it},borderBottom:{themeKey:"borders",transform:it},borderLeft:{themeKey:"borders",transform:it},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:it},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Ln},color:{themeKey:"palette",transform:Nr},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Nr},backgroundColor:{themeKey:"palette",transform:Nr},p:{style:Ae},pt:{style:Ae},pr:{style:Ae},pb:{style:Ae},pl:{style:Ae},px:{style:Ae},py:{style:Ae},padding:{style:Ae},paddingTop:{style:Ae},paddingRight:{style:Ae},paddingBottom:{style:Ae},paddingLeft:{style:Ae},paddingX:{style:Ae},paddingY:{style:Ae},paddingInline:{style:Ae},paddingInlineStart:{style:Ae},paddingInlineEnd:{style:Ae},paddingBlock:{style:Ae},paddingBlockStart:{style:Ae},paddingBlockEnd:{style:Ae},m:{style:_e},mt:{style:_e},mr:{style:_e},mb:{style:_e},ml:{style:_e},mx:{style:_e},my:{style:_e},margin:{style:_e},marginTop:{style:_e},marginRight:{style:_e},marginBottom:{style:_e},marginLeft:{style:_e},marginX:{style:_e},marginY:{style:_e},marginInline:{style:_e},marginInlineStart:{style:_e},marginInlineEnd:{style:_e},marginBlock:{style:_e},marginBlockStart:{style:_e},marginBlockEnd:{style:_e},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:kn},rowGap:{style:Fn},columnGap:{style:Bn},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:rt},maxWidth:{style:ds},minWidth:{transform:rt},height:{transform:rt},maxHeight:{transform:rt},minHeight:{transform:rt},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function pp(...e){const t=e.reduce((a,n)=>a.concat(Object.keys(n)),[]),r=new Set(t);return e.every(a=>r.size===Object.keys(a).length)}function hp(e,t){return typeof e=="function"?e(t):e}function mp(){function e(r,a,n,o){const s={[r]:a,theme:n},i=o[r];if(!i)return{[r]:a};const{cssProperty:l=r,themeKey:c,transform:d,style:u}=i;if(a==null)return null;if(c==="typography"&&a==="inherit")return{[r]:a};const p=In(n,c)||{};return u?u(s):ft(s,a,y=>{let h=bn(p,d,y);return y===h&&typeof y=="string"&&(h=bn(p,d,`${r}${y==="default"?"":We(y)}`,y)),l===!1?h:{[l]:h}})}function t(r){const{sx:a,theme:n={}}=r||{};if(!a)return null;const o=n.unstable_sxConfig??ka;function s(i){let l=i;if(typeof i=="function")l=i(n);else if(typeof i!="object")return i;if(!l)return null;const c=Bl(n.breakpoints),d=Object.keys(c);let u=c;return Object.keys(l).forEach(p=>{const f=hp(l[p],n);if(f!=null)if(typeof f=="object")if(o[p])u=wa(u,e(p,f,n,o));else{const y=ft({theme:n},f,h=>({[p]:h}));pp(y,f)?u[p]=t({sx:f,theme:n}):u=wa(u,y)}else u=wa(u,e(p,f,n,o))}),xu(n,Fl(d,u))}return Array.isArray(a)?a.map(s):s(a)}return t}const Jr=mp();Jr.filterProps=["sx"];function fp(e,t){var a;const r=this;if(r.vars){if(!((a=r.colorSchemes)!=null&&a[e])||typeof r.getColorSchemeSelector!="function")return{};let n=r.getColorSchemeSelector(e);return n==="&"?t:((n.includes("data-")||n.includes("."))&&(n=`*:where(${n.replace(/\s*&$/,"")}) &`),{[n]:t})}return r.palette.mode===e?t:{}}function Nn(e={},...t){const{breakpoints:r={},palette:a={},spacing:n,shape:o={},...s}=e,i=vu(r),l=Dl(n);let c=Ke({breakpoints:i,direction:"ltr",components:{},palette:{mode:"light",...a},spacing:l,shape:{...Pu,...o}},s);return c=Cu(c),c.applyStyles=fp,c=t.reduce((d,u)=>Ke(d,u),c),c.unstable_sxConfig={...ka,...s==null?void 0:s.unstable_sxConfig},c.unstable_sx=function(u){return Jr({sx:u,theme:this})},c}function gp(e){return Object.keys(e).length===0}function yp(e=null){const t=J.useContext(Yd.ThemeContext);return!t||gp(t)?e:t}const bp=Nn();function Sp(e=bp){return yp(e)}const vp=e=>{var a;const t={systemProps:{},otherProps:{}},r=((a=e==null?void 0:e.theme)==null?void 0:a.unstable_sxConfig)??ka;return Object.keys(e).forEach(n=>{r[n]?t.systemProps[n]=e[n]:t.otherProps[n]=e[n]}),t};function xp(e){const{sx:t,...r}=e,{systemProps:a,otherProps:n}=vp(r);let o;return Array.isArray(t)?o=[a,...t]:typeof t=="function"?o=(...s)=>{const i=t(...s);return Ot(i)?{...a,...i}:a}:o={...a,...t},{...n,sx:o}}const Js=e=>e,Op=()=>{let e=Js;return{configure(t){e=t},generate(t){return e(t)},reset(){e=Js}}},wp=Op();function zl(e){var t,r,a="";if(typeof e=="string"||typeof e=="number")a+=e;else if(typeof e=="object")if(Array.isArray(e)){var n=e.length;for(t=0;t<n;t++)e[t]&&(r=zl(e[t]))&&(a&&(a+=" "),a+=r)}else for(r in e)e[r]&&(a&&(a+=" "),a+=r);return a}function Pt(){for(var e,t,r=0,a="",n=arguments.length;r<n;r++)(e=arguments[r])&&(t=zl(e))&&(a&&(a+=" "),a+=t);return a}const Cp={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function Ba(e,t,r="Mui"){const a=Cp[t];return a?`${r}-${a}`:`${wp.generate(e)}-${t}`}function Gl(e,t,r="Mui"){const a={};return t.forEach(n=>{a[n]=Ba(e,n,r)}),a}function Jl(e,t=""){return e.displayName||e.name||t}function Hs(e,t,r){const a=Jl(t);return e.displayName||(a!==""?`${r}(${a})`:r)}function Pp(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return Jl(e,"Component");if(typeof e=="object")switch(e.$$typeof){case yn.ForwardRef:return Hs(e,e.render,"ForwardRef");case yn.Memo:return Hs(e,e.type,"memo");default:return}}}function Hl(e){const{variants:t,...r}=e,a={variants:t,style:Bs(r),isProcessed:!0};return a.style===r||t&&t.forEach(n=>{typeof n.style!="function"&&(n.style=Bs(n.style))}),a}const Vp=Nn();function mo(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function Rp(e){return e?(t,r)=>r[e]:null}function _p(e,t,r){e.theme=Ep(e.theme)?r:e.theme[t]||e.theme}function cn(e,t){const r=typeof t=="function"?t(e):t;if(Array.isArray(r))return r.flatMap(a=>cn(e,a));if(Array.isArray(r==null?void 0:r.variants)){let a;if(r.isProcessed)a=r.style;else{const{variants:n,...o}=r;a=o}return ql(e,r.variants,[a])}return r!=null&&r.isProcessed?r.style:r}function ql(e,t,r=[]){var n;let a;e:for(let o=0;o<t.length;o+=1){const s=t[o];if(typeof s.props=="function"){if(a??(a={...e,...e.ownerState,ownerState:e.ownerState}),!s.props(a))continue}else for(const i in s.props)if(e[i]!==s.props[i]&&((n=e.ownerState)==null?void 0:n[i])!==s.props[i])continue e;typeof s.style=="function"?(a??(a={...e,...e.ownerState,ownerState:e.ownerState}),r.push(s.style(a))):r.push(s.style)}return r}function Wl(e={}){const{themeId:t,defaultTheme:r=Vp,rootShouldForwardProp:a=mo,slotShouldForwardProp:n=mo}=e;function o(i){_p(i,t,r)}return(i,l={})=>{fu(i,z=>z.filter(K=>K!==Jr));const{name:c,slot:d,skipVariantsResolver:u,skipSx:p,overridesResolver:f=Rp(Kl(d)),...y}=l,h=u!==void 0?u:d&&d!=="Root"&&d!=="root"||!1,x=p||!1;let I=mo;d==="Root"||d==="root"?I=a:d?I=n:Ip(i)&&(I=void 0);const k=mu(i,{shouldForwardProp:I,label:Tp(c,d),...y}),F=z=>{if(typeof z=="function"&&z.__emotion_real!==z)return function(E){return cn(E,z)};if(Ot(z)){const K=Hl(z);return K.variants?function($){return cn($,K)}:K.style}return z},N=(...z)=>{const K=[],E=z.map(F),$=[];if(K.push(o),c&&f&&$.push(function(B){var Z,xe;const D=(xe=(Z=B.theme.components)==null?void 0:Z[c])==null?void 0:xe.styleOverrides;if(!D)return null;const re={};for(const X in D)re[X]=cn(B,D[X]);return f(B,re)}),c&&!h&&$.push(function(B){var re,Z;const G=B.theme,D=(Z=(re=G==null?void 0:G.components)==null?void 0:re[c])==null?void 0:Z.variants;return D?ql(B,D):null}),x||$.push(Jr),Array.isArray(E[0])){const M=E.shift(),B=new Array(K.length).fill(""),G=new Array($.length).fill("");let D;D=[...B,...M,...G],D.raw=[...B,...M.raw,...G],K.unshift(D)}const L=[...K,...E,...$],g=k(...L);return i.muiName&&(g.muiName=i.muiName),process.env.NODE_ENV!=="production"&&(g.displayName=Ap(c,d,i)),g};return k.withConfig&&(N.withConfig=k.withConfig),N}}function Ap(e,t,r){return e?`${e}${We(t||"")}`:`Styled(${Pp(r)})`}function Tp(e,t){let r;return process.env.NODE_ENV!=="production"&&e&&(r=`${e}-${Kl(t||"Root")}`),r}function Ep(e){for(const t in e)return!1;return!0}function Ip(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Kl(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}const Mp=Wl();function Sn(e,t){const r={...t};for(const a in e)if(Object.prototype.hasOwnProperty.call(e,a)){const n=a;if(n==="components"||n==="slots")r[n]={...e[n],...r[n]};else if(n==="componentsProps"||n==="slotProps"){const o=e[n],s=t[n];if(!s)r[n]=o||{};else if(!o)r[n]=s;else{r[n]={...s};for(const i in o)if(Object.prototype.hasOwnProperty.call(o,i)){const l=i;r[n][l]=Sn(o[l],s[l])}}}else r[n]===void 0&&(r[n]=e[n])}return r}function jp(e){const{theme:t,name:r,props:a}=e;return!t||!t.components||!t.components[r]||!t.components[r].defaultProps?a:Sn(t.components[r].defaultProps,a)}function $p({props:e,name:t,defaultTheme:r,themeId:a}){let n=Sp(r);return a&&(n=n[a]||n),jp({theme:n,name:t,props:e})}const Ql=typeof window<"u"?J.useLayoutEffect:J.useEffect;function Br(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}function us(e,t=0,r=1){return process.env.NODE_ENV!=="production"&&(e<t||e>r)&&console.error(`MUI: The value provided ${e} is out of range [${t}, ${r}].`),Br(e,t,r)}function Up(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&r[0].length===1&&(r=r.map(a=>a+a)),process.env.NODE_ENV!=="production"&&e.length!==e.trim().length&&console.error(`MUI: The color: "${e}" is invalid. Make sure the color input doesn't contain leading/trailing space.`),r?`rgb${r.length===4?"a":""}(${r.map((a,n)=>n<3?parseInt(a,16):Math.round(parseInt(a,16)/255*1e3)/1e3).join(", ")})`:""}function Yt(e){if(e.type)return e;if(e.charAt(0)==="#")return Yt(Up(e));const t=e.indexOf("("),r=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(r))throw new Error(process.env.NODE_ENV!=="production"?`MUI: Unsupported \`${e}\` color.
57
+ `)),()=>{})}function $n(e){return La(e,"spacing",8,"spacing")}function cr(e,t){return typeof t=="string"||t==null?t:e(t)}function ju(e,t){return r=>e.reduce((a,n)=>(a[n]=cr(t,r),a),{})}function $u(e,t,r,a){if(!t.includes(r))return null;const n=Iu(r),o=ju(n,a),s=e[r];return ft(e,s,o)}function Nl(e,t){const r=$n(e.theme);return Object.keys(e).map(a=>$u(e,t,a,r)).reduce(wa,{})}function _e(e){return Nl(e,Mn)}_e.propTypes=process.env.NODE_ENV!=="production"?Mn.reduce((e,t)=>(e[t]=Zt,e),{}):{};_e.filterProps=Mn;function Ae(e){return Nl(e,jn)}Ae.propTypes=process.env.NODE_ENV!=="production"?jn.reduce((e,t)=>(e[t]=Zt,e),{}):{};Ae.filterProps=jn;process.env.NODE_ENV!=="production"&&Mu.reduce((e,t)=>(e[t]=Zt,e),{});function Dl(e=8,t=$n({spacing:e})){if(e.mui)return e;const r=(...a)=>(process.env.NODE_ENV!=="production"&&(a.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${a.length}`)),(a.length===0?[1]:a).map(o=>{const s=t(o);return typeof s=="number"?`${s}px`:s}).join(" "));return r.mui=!0,r}function Un(...e){const t=e.reduce((a,n)=>(n.filterProps.forEach(o=>{a[o]=n}),a),{}),r=a=>Object.keys(a).reduce((n,o)=>t[o]?wa(n,t[o](a)):n,{});return r.propTypes=process.env.NODE_ENV!=="production"?e.reduce((a,n)=>Object.assign(a,n.propTypes),{}):{},r.filterProps=e.reduce((a,n)=>a.concat(n.filterProps),[]),r}function it(e){return typeof e!="number"?e:`${e}px solid`}function ct(e,t){return je({prop:e,themeKey:"borders",transform:t})}const Uu=ct("border",it),Lu=ct("borderTop",it),ku=ct("borderRight",it),Bu=ct("borderBottom",it),Fu=ct("borderLeft",it),Nu=ct("borderColor"),Du=ct("borderTopColor"),zu=ct("borderRightColor"),Gu=ct("borderBottomColor"),Ju=ct("borderLeftColor"),Hu=ct("outline",it),qu=ct("outlineColor"),Ln=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=La(e.theme,"shape.borderRadius",4,"borderRadius"),r=a=>({borderRadius:cr(t,a)});return ft(e,e.borderRadius,r)}return null};Ln.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:Zt}:{};Ln.filterProps=["borderRadius"];Un(Uu,Lu,ku,Bu,Fu,Nu,Du,zu,Gu,Ju,Ln,Hu,qu);const kn=e=>{if(e.gap!==void 0&&e.gap!==null){const t=La(e.theme,"spacing",8,"gap"),r=a=>({gap:cr(t,a)});return ft(e,e.gap,r)}return null};kn.propTypes=process.env.NODE_ENV!=="production"?{gap:Zt}:{};kn.filterProps=["gap"];const Bn=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=La(e.theme,"spacing",8,"columnGap"),r=a=>({columnGap:cr(t,a)});return ft(e,e.columnGap,r)}return null};Bn.propTypes=process.env.NODE_ENV!=="production"?{columnGap:Zt}:{};Bn.filterProps=["columnGap"];const Fn=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=La(e.theme,"spacing",8,"rowGap"),r=a=>({rowGap:cr(t,a)});return ft(e,e.rowGap,r)}return null};Fn.propTypes=process.env.NODE_ENV!=="production"?{rowGap:Zt}:{};Fn.filterProps=["rowGap"];const Wu=je({prop:"gridColumn"}),Ku=je({prop:"gridRow"}),Qu=je({prop:"gridAutoFlow"}),Yu=je({prop:"gridAutoColumns"}),Xu=je({prop:"gridAutoRows"}),Zu=je({prop:"gridTemplateColumns"}),ep=je({prop:"gridTemplateRows"}),tp=je({prop:"gridTemplateAreas"}),rp=je({prop:"gridArea"});Un(kn,Bn,Fn,Wu,Ku,Qu,Yu,Xu,Zu,ep,tp,rp);function Nr(e,t){return t==="grey"?t:e}const ap=je({prop:"color",themeKey:"palette",transform:Nr}),np=je({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Nr}),op=je({prop:"backgroundColor",themeKey:"palette",transform:Nr});Un(ap,np,op);function rt(e){return e<=1&&e!==0?`${e*100}%`:e}const sp=je({prop:"width",transform:rt}),ds=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=r=>{var n,o,s,i,l;const a=((s=(o=(n=e.theme)==null?void 0:n.breakpoints)==null?void 0:o.values)==null?void 0:s[r])||En[r];return a?((l=(i=e.theme)==null?void 0:i.breakpoints)==null?void 0:l.unit)!=="px"?{maxWidth:`${a}${e.theme.breakpoints.unit}`}:{maxWidth:a}:{maxWidth:rt(r)}};return ft(e,e.maxWidth,t)}return null};ds.filterProps=["maxWidth"];const ip=je({prop:"minWidth",transform:rt}),lp=je({prop:"height",transform:rt}),cp=je({prop:"maxHeight",transform:rt}),dp=je({prop:"minHeight",transform:rt});je({prop:"size",cssProperty:"width",transform:rt});je({prop:"size",cssProperty:"height",transform:rt});const up=je({prop:"boxSizing"});Un(sp,ds,ip,lp,cp,dp,up);const ka={border:{themeKey:"borders",transform:it},borderTop:{themeKey:"borders",transform:it},borderRight:{themeKey:"borders",transform:it},borderBottom:{themeKey:"borders",transform:it},borderLeft:{themeKey:"borders",transform:it},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:it},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Ln},color:{themeKey:"palette",transform:Nr},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Nr},backgroundColor:{themeKey:"palette",transform:Nr},p:{style:Ae},pt:{style:Ae},pr:{style:Ae},pb:{style:Ae},pl:{style:Ae},px:{style:Ae},py:{style:Ae},padding:{style:Ae},paddingTop:{style:Ae},paddingRight:{style:Ae},paddingBottom:{style:Ae},paddingLeft:{style:Ae},paddingX:{style:Ae},paddingY:{style:Ae},paddingInline:{style:Ae},paddingInlineStart:{style:Ae},paddingInlineEnd:{style:Ae},paddingBlock:{style:Ae},paddingBlockStart:{style:Ae},paddingBlockEnd:{style:Ae},m:{style:_e},mt:{style:_e},mr:{style:_e},mb:{style:_e},ml:{style:_e},mx:{style:_e},my:{style:_e},margin:{style:_e},marginTop:{style:_e},marginRight:{style:_e},marginBottom:{style:_e},marginLeft:{style:_e},marginX:{style:_e},marginY:{style:_e},marginInline:{style:_e},marginInlineStart:{style:_e},marginInlineEnd:{style:_e},marginBlock:{style:_e},marginBlockStart:{style:_e},marginBlockEnd:{style:_e},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:kn},rowGap:{style:Fn},columnGap:{style:Bn},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:rt},maxWidth:{style:ds},minWidth:{transform:rt},height:{transform:rt},maxHeight:{transform:rt},minHeight:{transform:rt},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function pp(...e){const t=e.reduce((a,n)=>a.concat(Object.keys(n)),[]),r=new Set(t);return e.every(a=>r.size===Object.keys(a).length)}function hp(e,t){return typeof e=="function"?e(t):e}function mp(){function e(r,a,n,o){const s={[r]:a,theme:n},i=o[r];if(!i)return{[r]:a};const{cssProperty:l=r,themeKey:c,transform:d,style:u}=i;if(a==null)return null;if(c==="typography"&&a==="inherit")return{[r]:a};const p=In(n,c)||{};return u?u(s):ft(s,a,g=>{let h=bn(p,d,g);return g===h&&typeof g=="string"&&(h=bn(p,d,`${r}${g==="default"?"":We(g)}`,g)),l===!1?h:{[l]:h}})}function t(r){const{sx:a,theme:n={}}=r||{};if(!a)return null;const o=n.unstable_sxConfig??ka;function s(i){let l=i;if(typeof i=="function")l=i(n);else if(typeof i!="object")return i;if(!l)return null;const c=Bl(n.breakpoints),d=Object.keys(c);let u=c;return Object.keys(l).forEach(p=>{const f=hp(l[p],n);if(f!=null)if(typeof f=="object")if(o[p])u=wa(u,e(p,f,n,o));else{const g=ft({theme:n},f,h=>({[p]:h}));pp(g,f)?u[p]=t({sx:f,theme:n}):u=wa(u,g)}else u=wa(u,e(p,f,n,o))}),xu(n,Fl(d,u))}return Array.isArray(a)?a.map(s):s(a)}return t}const Jr=mp();Jr.filterProps=["sx"];function fp(e,t){var a;const r=this;if(r.vars){if(!((a=r.colorSchemes)!=null&&a[e])||typeof r.getColorSchemeSelector!="function")return{};let n=r.getColorSchemeSelector(e);return n==="&"?t:((n.includes("data-")||n.includes("."))&&(n=`*:where(${n.replace(/\s*&$/,"")}) &`),{[n]:t})}return r.palette.mode===e?t:{}}function Nn(e={},...t){const{breakpoints:r={},palette:a={},spacing:n,shape:o={},...s}=e,i=vu(r),l=Dl(n);let c=Ke({breakpoints:i,direction:"ltr",components:{},palette:{mode:"light",...a},spacing:l,shape:{...Pu,...o}},s);return c=Cu(c),c.applyStyles=fp,c=t.reduce((d,u)=>Ke(d,u),c),c.unstable_sxConfig={...ka,...s==null?void 0:s.unstable_sxConfig},c.unstable_sx=function(u){return Jr({sx:u,theme:this})},c}function gp(e){return Object.keys(e).length===0}function yp(e=null){const t=J.useContext(Yd.ThemeContext);return!t||gp(t)?e:t}const bp=Nn();function Sp(e=bp){return yp(e)}const vp=e=>{var a;const t={systemProps:{},otherProps:{}},r=((a=e==null?void 0:e.theme)==null?void 0:a.unstable_sxConfig)??ka;return Object.keys(e).forEach(n=>{r[n]?t.systemProps[n]=e[n]:t.otherProps[n]=e[n]}),t};function xp(e){const{sx:t,...r}=e,{systemProps:a,otherProps:n}=vp(r);let o;return Array.isArray(t)?o=[a,...t]:typeof t=="function"?o=(...s)=>{const i=t(...s);return Ot(i)?{...a,...i}:a}:o={...a,...t},{...n,sx:o}}const Js=e=>e,Op=()=>{let e=Js;return{configure(t){e=t},generate(t){return e(t)},reset(){e=Js}}},wp=Op();function zl(e){var t,r,a="";if(typeof e=="string"||typeof e=="number")a+=e;else if(typeof e=="object")if(Array.isArray(e)){var n=e.length;for(t=0;t<n;t++)e[t]&&(r=zl(e[t]))&&(a&&(a+=" "),a+=r)}else for(r in e)e[r]&&(a&&(a+=" "),a+=r);return a}function Pt(){for(var e,t,r=0,a="",n=arguments.length;r<n;r++)(e=arguments[r])&&(t=zl(e))&&(a&&(a+=" "),a+=t);return a}const Cp={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function Ba(e,t,r="Mui"){const a=Cp[t];return a?`${r}-${a}`:`${wp.generate(e)}-${t}`}function Gl(e,t,r="Mui"){const a={};return t.forEach(n=>{a[n]=Ba(e,n,r)}),a}function Jl(e,t=""){return e.displayName||e.name||t}function Hs(e,t,r){const a=Jl(t);return e.displayName||(a!==""?`${r}(${a})`:r)}function Pp(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return Jl(e,"Component");if(typeof e=="object")switch(e.$$typeof){case yn.ForwardRef:return Hs(e,e.render,"ForwardRef");case yn.Memo:return Hs(e,e.type,"memo");default:return}}}function Hl(e){const{variants:t,...r}=e,a={variants:t,style:Bs(r),isProcessed:!0};return a.style===r||t&&t.forEach(n=>{typeof n.style!="function"&&(n.style=Bs(n.style))}),a}const Vp=Nn();function mo(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function Rp(e){return e?(t,r)=>r[e]:null}function _p(e,t,r){e.theme=Ep(e.theme)?r:e.theme[t]||e.theme}function cn(e,t){const r=typeof t=="function"?t(e):t;if(Array.isArray(r))return r.flatMap(a=>cn(e,a));if(Array.isArray(r==null?void 0:r.variants)){let a;if(r.isProcessed)a=r.style;else{const{variants:n,...o}=r;a=o}return ql(e,r.variants,[a])}return r!=null&&r.isProcessed?r.style:r}function ql(e,t,r=[]){var n;let a;e:for(let o=0;o<t.length;o+=1){const s=t[o];if(typeof s.props=="function"){if(a??(a={...e,...e.ownerState,ownerState:e.ownerState}),!s.props(a))continue}else for(const i in s.props)if(e[i]!==s.props[i]&&((n=e.ownerState)==null?void 0:n[i])!==s.props[i])continue e;typeof s.style=="function"?(a??(a={...e,...e.ownerState,ownerState:e.ownerState}),r.push(s.style(a))):r.push(s.style)}return r}function Wl(e={}){const{themeId:t,defaultTheme:r=Vp,rootShouldForwardProp:a=mo,slotShouldForwardProp:n=mo}=e;function o(i){_p(i,t,r)}return(i,l={})=>{fu(i,G=>G.filter(K=>K!==Jr));const{name:c,slot:d,skipVariantsResolver:u,skipSx:p,overridesResolver:f=Rp(Kl(d)),...g}=l,h=u!==void 0?u:d&&d!=="Root"&&d!=="root"||!1,x=p||!1;let E=mo;d==="Root"||d==="root"?E=a:d?E=n:Ip(i)&&(E=void 0);const U=mu(i,{shouldForwardProp:E,label:Tp(c,d),...g}),F=G=>{if(typeof G=="function"&&G.__emotion_real!==G)return function(j){return cn(j,G)};if(Ot(G)){const K=Hl(G);return K.variants?function(L){return cn(L,K)}:K.style}return G},N=(...G)=>{const K=[],j=G.map(F),L=[];if(K.push(o),c&&f&&L.push(function(B){var Z,xe;const D=(xe=(Z=B.theme.components)==null?void 0:Z[c])==null?void 0:xe.styleOverrides;if(!D)return null;const re={};for(const X in D)re[X]=cn(B,D[X]);return f(B,re)}),c&&!h&&L.push(function(B){var re,Z;const z=B.theme,D=(Z=(re=z==null?void 0:z.components)==null?void 0:re[c])==null?void 0:Z.variants;return D?ql(B,D):null}),x||L.push(Jr),Array.isArray(j[0])){const M=j.shift(),B=new Array(K.length).fill(""),z=new Array(L.length).fill("");let D;D=[...B,...M,...z],D.raw=[...B,...M.raw,...z],K.unshift(D)}const k=[...K,...j,...L],y=U(...k);return i.muiName&&(y.muiName=i.muiName),process.env.NODE_ENV!=="production"&&(y.displayName=Ap(c,d,i)),y};return U.withConfig&&(N.withConfig=U.withConfig),N}}function Ap(e,t,r){return e?`${e}${We(t||"")}`:`Styled(${Pp(r)})`}function Tp(e,t){let r;return process.env.NODE_ENV!=="production"&&e&&(r=`${e}-${Kl(t||"Root")}`),r}function Ep(e){for(const t in e)return!1;return!0}function Ip(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Kl(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}const Mp=Wl();function Sn(e,t){const r={...t};for(const a in e)if(Object.prototype.hasOwnProperty.call(e,a)){const n=a;if(n==="components"||n==="slots")r[n]={...e[n],...r[n]};else if(n==="componentsProps"||n==="slotProps"){const o=e[n],s=t[n];if(!s)r[n]=o||{};else if(!o)r[n]=s;else{r[n]={...s};for(const i in o)if(Object.prototype.hasOwnProperty.call(o,i)){const l=i;r[n][l]=Sn(o[l],s[l])}}}else r[n]===void 0&&(r[n]=e[n])}return r}function jp(e){const{theme:t,name:r,props:a}=e;return!t||!t.components||!t.components[r]||!t.components[r].defaultProps?a:Sn(t.components[r].defaultProps,a)}function $p({props:e,name:t,defaultTheme:r,themeId:a}){let n=Sp(r);return a&&(n=n[a]||n),jp({theme:n,name:t,props:e})}const Ql=typeof window<"u"?J.useLayoutEffect:J.useEffect;function Br(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}function us(e,t=0,r=1){return process.env.NODE_ENV!=="production"&&(e<t||e>r)&&console.error(`MUI: The value provided ${e} is out of range [${t}, ${r}].`),Br(e,t,r)}function Up(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&r[0].length===1&&(r=r.map(a=>a+a)),process.env.NODE_ENV!=="production"&&e.length!==e.trim().length&&console.error(`MUI: The color: "${e}" is invalid. Make sure the color input doesn't contain leading/trailing space.`),r?`rgb${r.length===4?"a":""}(${r.map((a,n)=>n<3?parseInt(a,16):Math.round(parseInt(a,16)/255*1e3)/1e3).join(", ")})`:""}function Yt(e){if(e.type)return e;if(e.charAt(0)==="#")return Yt(Up(e));const t=e.indexOf("("),r=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(r))throw new Error(process.env.NODE_ENV!=="production"?`MUI: Unsupported \`${e}\` color.
58
58
  The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:Qt(9,e));let a=e.substring(t+1,e.length-1),n;if(r==="color"){if(a=a.split(" "),n=a.shift(),a.length===4&&a[3].charAt(0)==="/"&&(a[3]=a[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(n))throw new Error(process.env.NODE_ENV!=="production"?`MUI: unsupported \`${n}\` color space.
59
59
  The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:Qt(10,n))}else a=a.split(",");return a=a.map(o=>parseFloat(o)),{type:r,values:a,colorSpace:n}}const Lp=e=>{const t=Yt(e);return t.values.slice(0,3).map((r,a)=>t.type.includes("hsl")&&a!==0?`${r}%`:r).join(" ")},xa=(e,t)=>{try{return Lp(e)}catch{return t&&process.env.NODE_ENV!=="production"&&console.warn(t),e}};function Dn(e){const{type:t,colorSpace:r}=e;let{values:a}=e;return t.includes("rgb")?a=a.map((n,o)=>o<3?parseInt(n,10):n):t.includes("hsl")&&(a[1]=`${a[1]}%`,a[2]=`${a[2]}%`),t.includes("color")?a=`${r} ${a.join(" ")}`:a=`${a.join(", ")}`,`${t}(${a})`}function Yl(e){e=Yt(e);const{values:t}=e,r=t[0],a=t[1]/100,n=t[2]/100,o=a*Math.min(n,1-n),s=(c,d=(c+r/30)%12)=>n-o*Math.max(Math.min(d-3,9-d,1),-1);let i="rgb";const l=[Math.round(s(0)*255),Math.round(s(8)*255),Math.round(s(4)*255)];return e.type==="hsla"&&(i+="a",l.push(t[3])),Dn({type:i,values:l})}function Lo(e){e=Yt(e);let t=e.type==="hsl"||e.type==="hsla"?Yt(Yl(e)).values:e.values;return t=t.map(r=>(e.type!=="color"&&(r/=255),r<=.03928?r/12.92:((r+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function qs(e,t){const r=Lo(e),a=Lo(t);return(Math.max(r,a)+.05)/(Math.min(r,a)+.05)}function ko(e,t){return e=Yt(e),t=us(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Dn(e)}function Ja(e,t,r){try{return ko(e,t)}catch{return e}}function Ra(e,t){if(e=Yt(e),t=us(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let r=0;r<3;r+=1)e.values[r]*=1-t;return Dn(e)}function Se(e,t,r){try{return Ra(e,t)}catch{return e}}function _a(e,t){if(e=Yt(e),t=us(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(e.type.includes("color"))for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return Dn(e)}function ve(e,t,r){try{return _a(e,t)}catch{return e}}function kp(e,t=.15){return Lo(e)>.5?Ra(e,t):_a(e,t)}function Ha(e,t,r){try{return kp(e,t)}catch{return e}}function Ws(e,t){return process.env.NODE_ENV==="production"?()=>null:function(...a){return e(...a)||t(...a)}}function dn(e){return e&&e.ownerDocument||document}function Bp(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function Fp({controlled:e,default:t,name:r,state:a="value"}){const{current:n}=J.useRef(e!==void 0),[o,s]=J.useState(t),i=n?e:o;if(process.env.NODE_ENV!=="production"){J.useEffect(()=>{n!==(e!==void 0)&&console.error([`MUI: A component is changing the ${n?"":"un"}controlled ${a} state of ${r} to be ${n?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${r} element for the lifetime of the component.`,"The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.","More info: https://fb.me/react-controlled-components"].join(`
60
60
  `))},[a,r,e]);const{current:c}=J.useRef(t);J.useEffect(()=>{!n&&!Object.is(c,t)&&console.error([`MUI: A component is changing the default ${a} state of an uncontrolled ${r} after being initialized. To suppress this warning opt to use a controlled ${r}.`].join(`
61
61
  `))},[JSON.stringify(t)])}const l=J.useCallback(c=>{n||s(c)},[]);return[i,l]}function fo(e){const t=J.useRef(e);return Ql(()=>{t.current=e}),J.useRef((...r)=>(0,t.current)(...r)).current}function Xl(...e){return J.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(r=>{Bp(r,t)})},e)}function Ks(e){try{return e.matches(":focus-visible")}catch{process.env.NODE_ENV!=="production"&&!/jsdom/.test(window.navigator.userAgent)&&console.warn(["MUI: The `:focus-visible` pseudo class is not supported in this browser.","Some components rely on this feature to work properly."].join(`
62
- `))}return!1}const Np={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function ps(e,t,r=void 0){const a={};for(const n in e){const o=e[n];let s="",i=!0;for(let l=0;l<o.length;l+=1){const c=o[l];c&&(s+=(i===!0?"":" ")+t(c),i=!1,r&&r[c]&&(s+=" "+r[c]))}a[n]=s}return a}function Dp(e){return typeof e=="string"}function zp(e,t,r){return e===void 0||Dp(e)?t:{...t,ownerState:{...t.ownerState,...r}}}function un(e,t=[]){if(e===void 0)return{};const r={};return Object.keys(e).filter(a=>a.match(/^on[A-Z]/)&&typeof e[a]=="function"&&!t.includes(a)).forEach(a=>{r[a]=e[a]}),r}function Qs(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(r=>!(r.match(/^on[A-Z]/)&&typeof e[r]=="function")).forEach(r=>{t[r]=e[r]}),t}function Gp(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:a,externalForwardedProps:n,className:o}=e;if(!t){const f=Pt(r==null?void 0:r.className,o,n==null?void 0:n.className,a==null?void 0:a.className),y={...r==null?void 0:r.style,...n==null?void 0:n.style,...a==null?void 0:a.style},h={...r,...n,...a};return f.length>0&&(h.className=f),Object.keys(y).length>0&&(h.style=y),{props:h,internalRef:void 0}}const s=un({...n,...a}),i=Qs(a),l=Qs(n),c=t(s),d=Pt(c==null?void 0:c.className,r==null?void 0:r.className,o,n==null?void 0:n.className,a==null?void 0:a.className),u={...c==null?void 0:c.style,...r==null?void 0:r.style,...n==null?void 0:n.style,...a==null?void 0:a.style},p={...c,...r,...l,...i};return d.length>0&&(p.className=d),Object.keys(u).length>0&&(p.style=u),{props:p,internalRef:c.ref}}function Jp(e,t,r){return typeof e=="function"?e(t,r):e}function Gt(e){var u;const{elementType:t,externalSlotProps:r,ownerState:a,skipResolvingSlotProps:n=!1,...o}=e,s=n?{}:Jp(r,a),{props:i,internalRef:l}=Gp({...o,externalSlotProps:s}),c=Xl(l,s==null?void 0:s.ref,(u=e.additionalProps)==null?void 0:u.ref);return zp(t,{...i,ref:c},a)}const Hp=J.createContext();process.env.NODE_ENV!=="production"&&(S.node,S.bool);const qp=()=>J.useContext(Hp)??!1,Wp=J.createContext(void 0);process.env.NODE_ENV!=="production"&&(S.node,S.object);function Kp(e){const{theme:t,name:r,props:a}=e;if(!t||!t.components||!t.components[r])return a;const n=t.components[r];return n.defaultProps?Sn(n.defaultProps,a):!n.styleOverrides&&!n.variants?Sn(n,a):a}function Qp({props:e,name:t}){const r=J.useContext(Wp);return Kp({props:e,name:t,theme:{components:r}})}const Ys={theme:void 0};function Yp(e){let t,r;return function(n){let o=t;return(o===void 0||n.theme!==r)&&(Ys.theme=n.theme,o=Hl(e(Ys)),t=o,r=n.theme),o}}function Xp(e=""){function t(...a){if(!a.length)return"";const n=a[0];return typeof n=="string"&&!n.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${e?`${e}-`:""}${n}${t(...a.slice(1))})`:`, ${n}`}return(a,...n)=>`var(--${e?`${e}-`:""}${a}${t(...n)})`}const Xs=(e,t,r,a=[])=>{let n=e;t.forEach((o,s)=>{s===t.length-1?Array.isArray(n)?n[Number(o)]=r:n&&typeof n=="object"&&(n[o]=r):n&&typeof n=="object"&&(n[o]||(n[o]=a.includes(o)?[]:{}),n=n[o])})},Zp=(e,t,r)=>{function a(n,o=[],s=[]){Object.entries(n).forEach(([i,l])=>{(!r||r&&!r([...o,i]))&&l!=null&&(typeof l=="object"&&Object.keys(l).length>0?a(l,[...o,i],Array.isArray(l)?[...s,i]:s):t([...o,i],l,s))})}a(e)},eh=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(a=>e.includes(a))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t;function go(e,t){const{prefix:r,shouldSkipGeneratingVar:a}=t||{},n={},o={},s={};return Zp(e,(i,l,c)=>{if((typeof l=="string"||typeof l=="number")&&(!a||!a(i,l))){const d=`--${r?`${r}-`:""}${i.join("-")}`,u=eh(i,l);Object.assign(n,{[d]:u}),Xs(o,i,`var(${d})`,c),Xs(s,i,`var(${d}, ${u})`,c)}},i=>i[0]==="vars"),{css:n,vars:o,varsWithDefaults:s}}function th(e,t={}){const{getSelector:r=x,disableCssColorScheme:a,colorSchemeSelector:n}=t,{colorSchemes:o={},components:s,defaultColorScheme:i="light",...l}=e,{vars:c,css:d,varsWithDefaults:u}=go(l,t);let p=u;const f={},{[i]:y,...h}=o;if(Object.entries(h||{}).forEach(([F,N])=>{const{vars:z,css:K,varsWithDefaults:E}=go(N,t);p=Ke(p,E),f[F]={css:K,vars:z}}),y){const{css:F,vars:N,varsWithDefaults:z}=go(y,t);p=Ke(p,z),f[i]={css:F,vars:N}}function x(F,N){var K,E;let z=n;if(n==="class"&&(z=".%s"),n==="data"&&(z="[data-%s]"),n!=null&&n.startsWith("data-")&&!n.includes("%s")&&(z=`[${n}="%s"]`),F){if(z==="media")return e.defaultColorScheme===F?":root":{[`@media (prefers-color-scheme: ${((E=(K=o[F])==null?void 0:K.palette)==null?void 0:E.mode)||F})`]:{":root":N}};if(z)return e.defaultColorScheme===F?`:root, ${z.replace("%s",String(F))}`:z.replace("%s",String(F))}return":root"}return{vars:p,generateThemeVars:()=>{let F={...c};return Object.entries(f).forEach(([,{vars:N}])=>{F=Ke(F,N)}),F},generateStyleSheets:()=>{var $,L;const F=[],N=e.defaultColorScheme||"light";function z(g,M){Object.keys(M).length&&F.push(typeof g=="string"?{[g]:{...M}}:g)}z(r(void 0,{...d}),d);const{[N]:K,...E}=f;if(K){const{css:g}=K,M=(L=($=o[N])==null?void 0:$.palette)==null?void 0:L.mode,B=!a&&M?{colorScheme:M,...g}:{...g};z(r(N,{...B}),B)}return Object.entries(E).forEach(([g,{css:M}])=>{var D,re;const B=(re=(D=o[g])==null?void 0:D.palette)==null?void 0:re.mode,G=!a&&B?{colorScheme:B,...M}:{...M};z(r(g,{...G}),G)}),F}}}function rh(e){return function(r){return e==="media"?(process.env.NODE_ENV!=="production"&&r!=="light"&&r!=="dark"&&console.error(`MUI: @media (prefers-color-scheme) supports only 'light' or 'dark', but receive '${r}'.`),`@media (prefers-color-scheme: ${r})`):e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${r}"] &`:e==="class"?`.${r} &`:e==="data"?`[data-${r}] &`:`${e.replace("%s",r)} &`:"&"}}const ah=Nn(),nh=Mp("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function oh(e){return $p({props:e,name:"MuiStack",defaultTheme:ah})}function sh(e,t){const r=J.Children.toArray(e).filter(Boolean);return r.reduce((a,n,o)=>(a.push(n),o<r.length-1&&a.push(J.cloneElement(t,{key:`separator-${o}`})),a),[])}const ih=e=>({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],lh=({ownerState:e,theme:t})=>{let r={display:"flex",flexDirection:"column",...ft({theme:t},ho({values:e.direction,breakpoints:t.breakpoints.values}),a=>({flexDirection:a}))};if(e.spacing){const a=$n(t),n=Object.keys(t.breakpoints.values).reduce((l,c)=>((typeof e.spacing=="object"&&e.spacing[c]!=null||typeof e.direction=="object"&&e.direction[c]!=null)&&(l[c]=!0),l),{}),o=ho({values:e.direction,base:n}),s=ho({values:e.spacing,base:n});typeof o=="object"&&Object.keys(o).forEach((l,c,d)=>{if(!o[l]){const p=c>0?o[d[c-1]]:"column";o[l]=p}}),r=Ke(r,ft({theme:t},s,(l,c)=>e.useFlexGap?{gap:cr(a,l)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${ih(c?o[c]:e.direction)}`]:cr(a,l)}}))}return r=Ru(t.breakpoints,r),r};function ch(e={}){const{createStyledComponent:t=nh,useThemeProps:r=oh,componentName:a="MuiStack"}=e,n=()=>ps({root:["root"]},l=>Ba(a,l),{}),o=t(lh),s=J.forwardRef(function(l,c){const d=r(l),u=xp(d),{component:p="div",direction:f="column",spacing:y=0,divider:h,children:x,className:I,useFlexGap:k=!1,...F}=u,N={direction:f,spacing:y,useFlexGap:k},z=n();return b.jsx(o,{as:p,ownerState:N,ref:c,className:Pt(z.root,I),...F,children:h?sh(x,h):x})});return process.env.NODE_ENV!=="production"&&(s.propTypes={children:S.node,direction:S.oneOfType([S.oneOf(["column-reverse","column","row-reverse","row"]),S.arrayOf(S.oneOf(["column-reverse","column","row-reverse","row"])),S.object]),divider:S.node,spacing:S.oneOfType([S.arrayOf(S.oneOfType([S.number,S.string])),S.number,S.object,S.string]),sx:S.oneOfType([S.arrayOf(S.oneOfType([S.func,S.object,S.bool])),S.func,S.object])}),s}const Aa={black:"#000",white:"#fff"},dh={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},Pr={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},Vr={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},da={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},Rr={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},_r={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},Ar={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"};function Zl(){return{text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:Aa.white,default:Aa.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}}}const uh=Zl();function ec(){return{text:{primary:Aa.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:Aa.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}}}const Zs=ec();function ei(e,t,r,a){const n=a.light||a,o=a.dark||a*1.5;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:t==="light"?e.light=_a(e.main,n):t==="dark"&&(e.dark=Ra(e.main,o)))}function ph(e="light"){return e==="dark"?{main:Rr[200],light:Rr[50],dark:Rr[400]}:{main:Rr[700],light:Rr[400],dark:Rr[800]}}function hh(e="light"){return e==="dark"?{main:Pr[200],light:Pr[50],dark:Pr[400]}:{main:Pr[500],light:Pr[300],dark:Pr[700]}}function mh(e="light"){return e==="dark"?{main:Vr[500],light:Vr[300],dark:Vr[700]}:{main:Vr[700],light:Vr[400],dark:Vr[800]}}function fh(e="light"){return e==="dark"?{main:_r[400],light:_r[300],dark:_r[700]}:{main:_r[700],light:_r[500],dark:_r[900]}}function gh(e="light"){return e==="dark"?{main:Ar[400],light:Ar[300],dark:Ar[700]}:{main:Ar[800],light:Ar[500],dark:Ar[900]}}function yh(e="light"){return e==="dark"?{main:da[400],light:da[300],dark:da[700]}:{main:"#ed6c02",light:da[500],dark:da[900]}}function hs(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:a=.2,...n}=e,o=e.primary||ph(t),s=e.secondary||hh(t),i=e.error||mh(t),l=e.info||fh(t),c=e.success||gh(t),d=e.warning||yh(t);function u(h){const x=qs(h,Zs.text.primary)>=r?Zs.text.primary:uh.text.primary;if(process.env.NODE_ENV!=="production"){const I=qs(h,x);I<3&&console.error([`MUI: The contrast ratio of ${I}:1 for ${x} on ${h}`,"falls below the WCAG recommended absolute minimum contrast ratio of 3:1.","https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast"].join(`
63
- `))}return x}const p=({color:h,name:x,mainShade:I=500,lightShade:k=300,darkShade:F=700})=>{if(h={...h},!h.main&&h[I]&&(h.main=h[I]),!h.hasOwnProperty("main"))throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${x?` (${x})`:""} provided to augmentColor(color) is invalid.
64
- The color object needs to have a \`main\` property or a \`${I}\` property.`:Qt(11,x?` (${x})`:"",I));if(typeof h.main!="string")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${x?` (${x})`:""} provided to augmentColor(color) is invalid.
62
+ `))}return!1}const Np={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function ps(e,t,r=void 0){const a={};for(const n in e){const o=e[n];let s="",i=!0;for(let l=0;l<o.length;l+=1){const c=o[l];c&&(s+=(i===!0?"":" ")+t(c),i=!1,r&&r[c]&&(s+=" "+r[c]))}a[n]=s}return a}function Dp(e){return typeof e=="string"}function zp(e,t,r){return e===void 0||Dp(e)?t:{...t,ownerState:{...t.ownerState,...r}}}function un(e,t=[]){if(e===void 0)return{};const r={};return Object.keys(e).filter(a=>a.match(/^on[A-Z]/)&&typeof e[a]=="function"&&!t.includes(a)).forEach(a=>{r[a]=e[a]}),r}function Qs(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(r=>!(r.match(/^on[A-Z]/)&&typeof e[r]=="function")).forEach(r=>{t[r]=e[r]}),t}function Gp(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:a,externalForwardedProps:n,className:o}=e;if(!t){const f=Pt(r==null?void 0:r.className,o,n==null?void 0:n.className,a==null?void 0:a.className),g={...r==null?void 0:r.style,...n==null?void 0:n.style,...a==null?void 0:a.style},h={...r,...n,...a};return f.length>0&&(h.className=f),Object.keys(g).length>0&&(h.style=g),{props:h,internalRef:void 0}}const s=un({...n,...a}),i=Qs(a),l=Qs(n),c=t(s),d=Pt(c==null?void 0:c.className,r==null?void 0:r.className,o,n==null?void 0:n.className,a==null?void 0:a.className),u={...c==null?void 0:c.style,...r==null?void 0:r.style,...n==null?void 0:n.style,...a==null?void 0:a.style},p={...c,...r,...l,...i};return d.length>0&&(p.className=d),Object.keys(u).length>0&&(p.style=u),{props:p,internalRef:c.ref}}function Jp(e,t,r){return typeof e=="function"?e(t,r):e}function Gt(e){var u;const{elementType:t,externalSlotProps:r,ownerState:a,skipResolvingSlotProps:n=!1,...o}=e,s=n?{}:Jp(r,a),{props:i,internalRef:l}=Gp({...o,externalSlotProps:s}),c=Xl(l,s==null?void 0:s.ref,(u=e.additionalProps)==null?void 0:u.ref);return zp(t,{...i,ref:c},a)}const Hp=J.createContext();process.env.NODE_ENV!=="production"&&(S.node,S.bool);const qp=()=>J.useContext(Hp)??!1,Wp=J.createContext(void 0);process.env.NODE_ENV!=="production"&&(S.node,S.object);function Kp(e){const{theme:t,name:r,props:a}=e;if(!t||!t.components||!t.components[r])return a;const n=t.components[r];return n.defaultProps?Sn(n.defaultProps,a):!n.styleOverrides&&!n.variants?Sn(n,a):a}function Qp({props:e,name:t}){const r=J.useContext(Wp);return Kp({props:e,name:t,theme:{components:r}})}const Ys={theme:void 0};function Yp(e){let t,r;return function(n){let o=t;return(o===void 0||n.theme!==r)&&(Ys.theme=n.theme,o=Hl(e(Ys)),t=o,r=n.theme),o}}function Xp(e=""){function t(...a){if(!a.length)return"";const n=a[0];return typeof n=="string"&&!n.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${e?`${e}-`:""}${n}${t(...a.slice(1))})`:`, ${n}`}return(a,...n)=>`var(--${e?`${e}-`:""}${a}${t(...n)})`}const Xs=(e,t,r,a=[])=>{let n=e;t.forEach((o,s)=>{s===t.length-1?Array.isArray(n)?n[Number(o)]=r:n&&typeof n=="object"&&(n[o]=r):n&&typeof n=="object"&&(n[o]||(n[o]=a.includes(o)?[]:{}),n=n[o])})},Zp=(e,t,r)=>{function a(n,o=[],s=[]){Object.entries(n).forEach(([i,l])=>{(!r||r&&!r([...o,i]))&&l!=null&&(typeof l=="object"&&Object.keys(l).length>0?a(l,[...o,i],Array.isArray(l)?[...s,i]:s):t([...o,i],l,s))})}a(e)},eh=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(a=>e.includes(a))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t;function go(e,t){const{prefix:r,shouldSkipGeneratingVar:a}=t||{},n={},o={},s={};return Zp(e,(i,l,c)=>{if((typeof l=="string"||typeof l=="number")&&(!a||!a(i,l))){const d=`--${r?`${r}-`:""}${i.join("-")}`,u=eh(i,l);Object.assign(n,{[d]:u}),Xs(o,i,`var(${d})`,c),Xs(s,i,`var(${d}, ${u})`,c)}},i=>i[0]==="vars"),{css:n,vars:o,varsWithDefaults:s}}function th(e,t={}){const{getSelector:r=x,disableCssColorScheme:a,colorSchemeSelector:n}=t,{colorSchemes:o={},components:s,defaultColorScheme:i="light",...l}=e,{vars:c,css:d,varsWithDefaults:u}=go(l,t);let p=u;const f={},{[i]:g,...h}=o;if(Object.entries(h||{}).forEach(([F,N])=>{const{vars:G,css:K,varsWithDefaults:j}=go(N,t);p=Ke(p,j),f[F]={css:K,vars:G}}),g){const{css:F,vars:N,varsWithDefaults:G}=go(g,t);p=Ke(p,G),f[i]={css:F,vars:N}}function x(F,N){var K,j;let G=n;if(n==="class"&&(G=".%s"),n==="data"&&(G="[data-%s]"),n!=null&&n.startsWith("data-")&&!n.includes("%s")&&(G=`[${n}="%s"]`),F){if(G==="media")return e.defaultColorScheme===F?":root":{[`@media (prefers-color-scheme: ${((j=(K=o[F])==null?void 0:K.palette)==null?void 0:j.mode)||F})`]:{":root":N}};if(G)return e.defaultColorScheme===F?`:root, ${G.replace("%s",String(F))}`:G.replace("%s",String(F))}return":root"}return{vars:p,generateThemeVars:()=>{let F={...c};return Object.entries(f).forEach(([,{vars:N}])=>{F=Ke(F,N)}),F},generateStyleSheets:()=>{var L,k;const F=[],N=e.defaultColorScheme||"light";function G(y,M){Object.keys(M).length&&F.push(typeof y=="string"?{[y]:{...M}}:y)}G(r(void 0,{...d}),d);const{[N]:K,...j}=f;if(K){const{css:y}=K,M=(k=(L=o[N])==null?void 0:L.palette)==null?void 0:k.mode,B=!a&&M?{colorScheme:M,...y}:{...y};G(r(N,{...B}),B)}return Object.entries(j).forEach(([y,{css:M}])=>{var D,re;const B=(re=(D=o[y])==null?void 0:D.palette)==null?void 0:re.mode,z=!a&&B?{colorScheme:B,...M}:{...M};G(r(y,{...z}),z)}),F}}}function rh(e){return function(r){return e==="media"?(process.env.NODE_ENV!=="production"&&r!=="light"&&r!=="dark"&&console.error(`MUI: @media (prefers-color-scheme) supports only 'light' or 'dark', but receive '${r}'.`),`@media (prefers-color-scheme: ${r})`):e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${r}"] &`:e==="class"?`.${r} &`:e==="data"?`[data-${r}] &`:`${e.replace("%s",r)} &`:"&"}}const ah=Nn(),nh=Mp("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function oh(e){return $p({props:e,name:"MuiStack",defaultTheme:ah})}function sh(e,t){const r=J.Children.toArray(e).filter(Boolean);return r.reduce((a,n,o)=>(a.push(n),o<r.length-1&&a.push(J.cloneElement(t,{key:`separator-${o}`})),a),[])}const ih=e=>({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],lh=({ownerState:e,theme:t})=>{let r={display:"flex",flexDirection:"column",...ft({theme:t},ho({values:e.direction,breakpoints:t.breakpoints.values}),a=>({flexDirection:a}))};if(e.spacing){const a=$n(t),n=Object.keys(t.breakpoints.values).reduce((l,c)=>((typeof e.spacing=="object"&&e.spacing[c]!=null||typeof e.direction=="object"&&e.direction[c]!=null)&&(l[c]=!0),l),{}),o=ho({values:e.direction,base:n}),s=ho({values:e.spacing,base:n});typeof o=="object"&&Object.keys(o).forEach((l,c,d)=>{if(!o[l]){const p=c>0?o[d[c-1]]:"column";o[l]=p}}),r=Ke(r,ft({theme:t},s,(l,c)=>e.useFlexGap?{gap:cr(a,l)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${ih(c?o[c]:e.direction)}`]:cr(a,l)}}))}return r=Ru(t.breakpoints,r),r};function ch(e={}){const{createStyledComponent:t=nh,useThemeProps:r=oh,componentName:a="MuiStack"}=e,n=()=>ps({root:["root"]},l=>Ba(a,l),{}),o=t(lh),s=J.forwardRef(function(l,c){const d=r(l),u=xp(d),{component:p="div",direction:f="column",spacing:g=0,divider:h,children:x,className:E,useFlexGap:U=!1,...F}=u,N={direction:f,spacing:g,useFlexGap:U},G=n();return b.jsx(o,{as:p,ownerState:N,ref:c,className:Pt(G.root,E),...F,children:h?sh(x,h):x})});return process.env.NODE_ENV!=="production"&&(s.propTypes={children:S.node,direction:S.oneOfType([S.oneOf(["column-reverse","column","row-reverse","row"]),S.arrayOf(S.oneOf(["column-reverse","column","row-reverse","row"])),S.object]),divider:S.node,spacing:S.oneOfType([S.arrayOf(S.oneOfType([S.number,S.string])),S.number,S.object,S.string]),sx:S.oneOfType([S.arrayOf(S.oneOfType([S.func,S.object,S.bool])),S.func,S.object])}),s}const Aa={black:"#000",white:"#fff"},dh={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},Pr={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},Vr={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},da={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},Rr={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},_r={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},Ar={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"};function Zl(){return{text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:Aa.white,default:Aa.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}}}const uh=Zl();function ec(){return{text:{primary:Aa.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:Aa.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}}}const Zs=ec();function ei(e,t,r,a){const n=a.light||a,o=a.dark||a*1.5;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:t==="light"?e.light=_a(e.main,n):t==="dark"&&(e.dark=Ra(e.main,o)))}function ph(e="light"){return e==="dark"?{main:Rr[200],light:Rr[50],dark:Rr[400]}:{main:Rr[700],light:Rr[400],dark:Rr[800]}}function hh(e="light"){return e==="dark"?{main:Pr[200],light:Pr[50],dark:Pr[400]}:{main:Pr[500],light:Pr[300],dark:Pr[700]}}function mh(e="light"){return e==="dark"?{main:Vr[500],light:Vr[300],dark:Vr[700]}:{main:Vr[700],light:Vr[400],dark:Vr[800]}}function fh(e="light"){return e==="dark"?{main:_r[400],light:_r[300],dark:_r[700]}:{main:_r[700],light:_r[500],dark:_r[900]}}function gh(e="light"){return e==="dark"?{main:Ar[400],light:Ar[300],dark:Ar[700]}:{main:Ar[800],light:Ar[500],dark:Ar[900]}}function yh(e="light"){return e==="dark"?{main:da[400],light:da[300],dark:da[700]}:{main:"#ed6c02",light:da[500],dark:da[900]}}function hs(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:a=.2,...n}=e,o=e.primary||ph(t),s=e.secondary||hh(t),i=e.error||mh(t),l=e.info||fh(t),c=e.success||gh(t),d=e.warning||yh(t);function u(h){const x=qs(h,Zs.text.primary)>=r?Zs.text.primary:uh.text.primary;if(process.env.NODE_ENV!=="production"){const E=qs(h,x);E<3&&console.error([`MUI: The contrast ratio of ${E}:1 for ${x} on ${h}`,"falls below the WCAG recommended absolute minimum contrast ratio of 3:1.","https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast"].join(`
63
+ `))}return x}const p=({color:h,name:x,mainShade:E=500,lightShade:U=300,darkShade:F=700})=>{if(h={...h},!h.main&&h[E]&&(h.main=h[E]),!h.hasOwnProperty("main"))throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${x?` (${x})`:""} provided to augmentColor(color) is invalid.
64
+ The color object needs to have a \`main\` property or a \`${E}\` property.`:Qt(11,x?` (${x})`:"",E));if(typeof h.main!="string")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${x?` (${x})`:""} provided to augmentColor(color) is invalid.
65
65
  \`color.main\` should be a string, but \`${JSON.stringify(h.main)}\` was provided instead.
66
66
 
67
67
  Did you intend to use one of the following approaches?
@@ -74,7 +74,7 @@ const theme1 = createTheme({ palette: {
74
74
 
75
75
  const theme2 = createTheme({ palette: {
76
76
  primary: { main: green[500] },
77
- } });`:Qt(12,x?` (${x})`:"",JSON.stringify(h.main)));return ei(h,"light",k,a),ei(h,"dark",F,a),h.contrastText||(h.contrastText=u(h.main)),h};let f;return t==="light"?f=Zl():t==="dark"&&(f=ec()),process.env.NODE_ENV!=="production"&&(f||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),Ke({common:{...Aa},mode:t,primary:p({color:o,name:"primary"}),secondary:p({color:s,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:i,name:"error"}),warning:p({color:d,name:"warning"}),info:p({color:l,name:"info"}),success:p({color:c,name:"success"}),grey:dh,contrastThreshold:r,getContrastText:u,augmentColor:p,tonalOffset:a,...f},n)}function bh(e){const t={};return Object.entries(e).forEach(a=>{const[n,o]=a;typeof o=="object"&&(t[n]=`${o.fontStyle?`${o.fontStyle} `:""}${o.fontVariant?`${o.fontVariant} `:""}${o.fontWeight?`${o.fontWeight} `:""}${o.fontStretch?`${o.fontStretch} `:""}${o.fontSize||""}${o.lineHeight?`/${o.lineHeight} `:""}${o.fontFamily||""}`)}),t}function Sh(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function vh(e){return Math.round(e*1e5)/1e5}const ti={textTransform:"uppercase"},ri='"Roboto", "Helvetica", "Arial", sans-serif';function xh(e,t){const{fontFamily:r=ri,fontSize:a=14,fontWeightLight:n=300,fontWeightRegular:o=400,fontWeightMedium:s=500,fontWeightBold:i=700,htmlFontSize:l=16,allVariants:c,pxToRem:d,...u}=typeof t=="function"?t(e):t;process.env.NODE_ENV!=="production"&&(typeof a!="number"&&console.error("MUI: `fontSize` is required to be a number."),typeof l!="number"&&console.error("MUI: `htmlFontSize` is required to be a number."));const p=a/14,f=d||(x=>`${x/l*p}rem`),y=(x,I,k,F,N)=>({fontFamily:r,fontWeight:x,fontSize:f(I),lineHeight:k,...r===ri?{letterSpacing:`${vh(F/I)}em`}:{},...N,...c}),h={h1:y(n,96,1.167,-1.5),h2:y(n,60,1.2,-.5),h3:y(o,48,1.167,0),h4:y(o,34,1.235,.25),h5:y(o,24,1.334,0),h6:y(s,20,1.6,.15),subtitle1:y(o,16,1.75,.15),subtitle2:y(s,14,1.57,.1),body1:y(o,16,1.5,.15),body2:y(o,14,1.43,.15),button:y(s,14,1.75,.4,ti),caption:y(o,12,1.66,.4),overline:y(o,12,2.66,1,ti),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Ke({htmlFontSize:l,pxToRem:f,fontFamily:r,fontSize:a,fontWeightLight:n,fontWeightRegular:o,fontWeightMedium:s,fontWeightBold:i,...h},u,{clone:!1})}const Oh=.2,wh=.14,Ch=.12;function Re(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${Oh})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${wh})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${Ch})`].join(",")}const Ph=["none",Re(0,2,1,-1,0,1,1,0,0,1,3,0),Re(0,3,1,-2,0,2,2,0,0,1,5,0),Re(0,3,3,-2,0,3,4,0,0,1,8,0),Re(0,2,4,-1,0,4,5,0,0,1,10,0),Re(0,3,5,-1,0,5,8,0,0,1,14,0),Re(0,3,5,-1,0,6,10,0,0,1,18,0),Re(0,4,5,-2,0,7,10,1,0,2,16,1),Re(0,5,5,-3,0,8,10,1,0,3,14,2),Re(0,5,6,-3,0,9,12,1,0,3,16,2),Re(0,6,6,-3,0,10,14,1,0,4,18,3),Re(0,6,7,-4,0,11,15,1,0,4,20,3),Re(0,7,8,-4,0,12,17,2,0,5,22,4),Re(0,7,8,-4,0,13,19,2,0,5,24,4),Re(0,7,9,-4,0,14,21,2,0,5,26,4),Re(0,8,9,-5,0,15,22,2,0,6,28,5),Re(0,8,10,-5,0,16,24,2,0,6,30,5),Re(0,8,11,-5,0,17,26,2,0,6,32,5),Re(0,9,11,-5,0,18,28,2,0,7,34,6),Re(0,9,12,-6,0,19,29,2,0,7,36,6),Re(0,10,13,-6,0,20,31,3,0,8,38,7),Re(0,10,13,-6,0,21,33,3,0,8,40,7),Re(0,10,14,-6,0,22,35,3,0,8,42,7),Re(0,11,14,-7,0,23,36,3,0,9,44,8),Re(0,11,15,-7,0,24,38,3,0,9,46,8)],Vh={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)"},Rh={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function ai(e){return`${Math.round(e)}ms`}function _h(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function Ah(e){const t={...Vh,...e.easing},r={...Rh,...e.duration};return{getAutoHeightDuration:_h,create:(n=["all"],o={})=>{const{duration:s=r.standard,easing:i=t.easeInOut,delay:l=0,...c}=o;if(process.env.NODE_ENV!=="production"){const d=p=>typeof p=="string",u=p=>!Number.isNaN(parseFloat(p));!d(n)&&!Array.isArray(n)&&console.error('MUI: Argument "props" must be a string or Array.'),!u(s)&&!d(s)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${s}.`),d(i)||console.error('MUI: Argument "easing" must be a string.'),!u(l)&&!d(l)&&console.error('MUI: Argument "delay" must be a number or a string.'),typeof o!="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(`
77
+ } });`:Qt(12,x?` (${x})`:"",JSON.stringify(h.main)));return ei(h,"light",U,a),ei(h,"dark",F,a),h.contrastText||(h.contrastText=u(h.main)),h};let f;return t==="light"?f=Zl():t==="dark"&&(f=ec()),process.env.NODE_ENV!=="production"&&(f||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),Ke({common:{...Aa},mode:t,primary:p({color:o,name:"primary"}),secondary:p({color:s,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:i,name:"error"}),warning:p({color:d,name:"warning"}),info:p({color:l,name:"info"}),success:p({color:c,name:"success"}),grey:dh,contrastThreshold:r,getContrastText:u,augmentColor:p,tonalOffset:a,...f},n)}function bh(e){const t={};return Object.entries(e).forEach(a=>{const[n,o]=a;typeof o=="object"&&(t[n]=`${o.fontStyle?`${o.fontStyle} `:""}${o.fontVariant?`${o.fontVariant} `:""}${o.fontWeight?`${o.fontWeight} `:""}${o.fontStretch?`${o.fontStretch} `:""}${o.fontSize||""}${o.lineHeight?`/${o.lineHeight} `:""}${o.fontFamily||""}`)}),t}function Sh(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function vh(e){return Math.round(e*1e5)/1e5}const ti={textTransform:"uppercase"},ri='"Roboto", "Helvetica", "Arial", sans-serif';function xh(e,t){const{fontFamily:r=ri,fontSize:a=14,fontWeightLight:n=300,fontWeightRegular:o=400,fontWeightMedium:s=500,fontWeightBold:i=700,htmlFontSize:l=16,allVariants:c,pxToRem:d,...u}=typeof t=="function"?t(e):t;process.env.NODE_ENV!=="production"&&(typeof a!="number"&&console.error("MUI: `fontSize` is required to be a number."),typeof l!="number"&&console.error("MUI: `htmlFontSize` is required to be a number."));const p=a/14,f=d||(x=>`${x/l*p}rem`),g=(x,E,U,F,N)=>({fontFamily:r,fontWeight:x,fontSize:f(E),lineHeight:U,...r===ri?{letterSpacing:`${vh(F/E)}em`}:{},...N,...c}),h={h1:g(n,96,1.167,-1.5),h2:g(n,60,1.2,-.5),h3:g(o,48,1.167,0),h4:g(o,34,1.235,.25),h5:g(o,24,1.334,0),h6:g(s,20,1.6,.15),subtitle1:g(o,16,1.75,.15),subtitle2:g(s,14,1.57,.1),body1:g(o,16,1.5,.15),body2:g(o,14,1.43,.15),button:g(s,14,1.75,.4,ti),caption:g(o,12,1.66,.4),overline:g(o,12,2.66,1,ti),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Ke({htmlFontSize:l,pxToRem:f,fontFamily:r,fontSize:a,fontWeightLight:n,fontWeightRegular:o,fontWeightMedium:s,fontWeightBold:i,...h},u,{clone:!1})}const Oh=.2,wh=.14,Ch=.12;function Re(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${Oh})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${wh})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${Ch})`].join(",")}const Ph=["none",Re(0,2,1,-1,0,1,1,0,0,1,3,0),Re(0,3,1,-2,0,2,2,0,0,1,5,0),Re(0,3,3,-2,0,3,4,0,0,1,8,0),Re(0,2,4,-1,0,4,5,0,0,1,10,0),Re(0,3,5,-1,0,5,8,0,0,1,14,0),Re(0,3,5,-1,0,6,10,0,0,1,18,0),Re(0,4,5,-2,0,7,10,1,0,2,16,1),Re(0,5,5,-3,0,8,10,1,0,3,14,2),Re(0,5,6,-3,0,9,12,1,0,3,16,2),Re(0,6,6,-3,0,10,14,1,0,4,18,3),Re(0,6,7,-4,0,11,15,1,0,4,20,3),Re(0,7,8,-4,0,12,17,2,0,5,22,4),Re(0,7,8,-4,0,13,19,2,0,5,24,4),Re(0,7,9,-4,0,14,21,2,0,5,26,4),Re(0,8,9,-5,0,15,22,2,0,6,28,5),Re(0,8,10,-5,0,16,24,2,0,6,30,5),Re(0,8,11,-5,0,17,26,2,0,6,32,5),Re(0,9,11,-5,0,18,28,2,0,7,34,6),Re(0,9,12,-6,0,19,29,2,0,7,36,6),Re(0,10,13,-6,0,20,31,3,0,8,38,7),Re(0,10,13,-6,0,21,33,3,0,8,40,7),Re(0,10,14,-6,0,22,35,3,0,8,42,7),Re(0,11,14,-7,0,23,36,3,0,9,44,8),Re(0,11,15,-7,0,24,38,3,0,9,46,8)],Vh={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)"},Rh={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function ai(e){return`${Math.round(e)}ms`}function _h(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function Ah(e){const t={...Vh,...e.easing},r={...Rh,...e.duration};return{getAutoHeightDuration:_h,create:(n=["all"],o={})=>{const{duration:s=r.standard,easing:i=t.easeInOut,delay:l=0,...c}=o;if(process.env.NODE_ENV!=="production"){const d=p=>typeof p=="string",u=p=>!Number.isNaN(parseFloat(p));!d(n)&&!Array.isArray(n)&&console.error('MUI: Argument "props" must be a string or Array.'),!u(s)&&!d(s)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${s}.`),d(i)||console.error('MUI: Argument "easing" must be a string.'),!u(l)&&!d(l)&&console.error('MUI: Argument "delay" must be a number or a string.'),typeof o!="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(`
78
78
  `)),Object.keys(c).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(c).join(",")}].`)}return(Array.isArray(n)?n:[n]).map(d=>`${d} ${typeof s=="string"?s:ai(s)} ${i} ${typeof l=="string"?l:ai(l)}`).join(",")},...e,easing:t,duration:r}}const Th={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function Eh(e){return Ot(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function tc(e={}){const t={...e};function r(a){const n=Object.entries(a);for(let o=0;o<n.length;o++){const[s,i]=n[o];!Eh(i)||s.startsWith("unstable_")?delete a[s]:Ot(i)&&(a[s]={...i},r(a[s]))}}return r(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
79
79
 
80
80
  const theme = ${JSON.stringify(t,null,2)};
@@ -82,10 +82,10 @@ const theme = ${JSON.stringify(t,null,2)};
82
82
  theme.breakpoints = createBreakpoints(theme.breakpoints || {});
83
83
  theme.transitions = createTransitions(theme.transitions || {});
84
84
 
85
- export default theme;`}function Bo(e={},...t){const{breakpoints:r,mixins:a={},spacing:n,palette:o={},transitions:s={},typography:i={},shape:l,...c}=e;if(e.vars&&e.generateThemeVars===void 0)throw new Error(process.env.NODE_ENV!=="production"?"MUI: `vars` is a private field used for CSS variables support.\nPlease use another name or follow the [docs](https://mui.com/material-ui/customization/css-theme-variables/usage/) to enable the feature.":Qt(20));const d=hs(o),u=Nn(e);let p=Ke(u,{mixins:Sh(u.breakpoints,a),palette:d,shadows:Ph.slice(),typography:xh(d,i),transitions:Ah(s),zIndex:{...Th}});if(p=Ke(p,c),p=t.reduce((f,y)=>Ke(f,y),p),process.env.NODE_ENV!=="production"){const f=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],y=(h,x)=>{let I;for(I in h){const k=h[I];if(f.includes(I)&&Object.keys(k).length>0){if(process.env.NODE_ENV!=="production"){const F=Ba("",I);console.error([`MUI: The \`${x}\` component increases the CSS specificity of the \`${I}\` internal state.`,"You can not override it like this: ",JSON.stringify(h,null,2),"",`Instead, you need to use the '&.${F}' syntax:`,JSON.stringify({root:{[`&.${F}`]:k}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
86
- `))}h[I]={}}}};Object.keys(p.components).forEach(h=>{const x=p.components[h].styleOverrides;x&&h.startsWith("Mui")&&y(x,h)})}return p.unstable_sxConfig={...ka,...c==null?void 0:c.unstable_sxConfig},p.unstable_sx=function(y){return Jr({sx:y,theme:this})},p.toRuntimeSource=tc,p}function Ih(e){let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,Math.round(t*10)/1e3}const Mh=[...Array(25)].map((e,t)=>{if(t===0)return"none";const r=Ih(t);return`linear-gradient(rgba(255 255 255 / ${r}), rgba(255 255 255 / ${r}))`});function rc(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function ac(e){return e==="dark"?Mh:[]}function jh(e){const{palette:t={mode:"light"},opacity:r,overlays:a,...n}=e,o=hs(t);return{palette:o,opacity:{...rc(o.mode),...r},overlays:a||ac(o.mode),...n}}function $h(e){var t;return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!((t=e[1])!=null&&t.match(/(mode|contrastThreshold|tonalOffset)/))}const Uh=e=>[...[...Array(25)].map((t,r)=>`--${e?`${e}-`:""}overlays-${r}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],Lh=e=>(t,r)=>{const a=e.rootSelector||":root",n=e.colorSchemeSelector;let o=n;if(n==="class"&&(o=".%s"),n==="data"&&(o="[data-%s]"),n!=null&&n.startsWith("data-")&&!n.includes("%s")&&(o=`[${n}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const s={};return Uh(e.cssVarPrefix).forEach(i=>{s[i]=r[i],delete r[i]}),o==="media"?{[a]:r,"@media (prefers-color-scheme: dark)":{[a]:s}}:o?{[o.replace("%s",t)]:s,[`${a}, ${o.replace("%s",t)}`]:r}:{[a]:{...r,...s}}}if(o&&o!=="media")return`${a}, ${o.replace("%s",String(t))}`}else if(t){if(o==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[a]:r}};if(o)return o.replace("%s",String(t))}return a};function kh(e,t){t.forEach(r=>{e[r]||(e[r]={})})}function U(e,t,r){!e[t]&&r&&(e[t]=r)}function Oa(e){return typeof e!="string"||!e.startsWith("hsl")?e:Yl(e)}function It(e,t){`${t}Channel`in e||(e[`${t}Channel`]=xa(Oa(e[t]),`MUI: Can't create \`palette.${t}Channel\` because \`palette.${t}\` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().
87
- To suppress this warning, you need to explicitly provide the \`palette.${t}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`))}function Bh(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const St=e=>{try{return e()}catch{}},Fh=(e="mui")=>Xp(e);function yo(e,t,r,a){if(!t)return;t=t===!0?{}:t;const n=a==="dark"?"dark":"light";if(!r){e[a]=jh({...t,palette:{mode:n,...t==null?void 0:t.palette}});return}const{palette:o,...s}=Bo({...r,palette:{mode:n,...t==null?void 0:t.palette}});return e[a]={...t,palette:o,opacity:{...rc(n),...t==null?void 0:t.opacity},overlays:(t==null?void 0:t.overlays)||ac(n)},s}function Nh(e={},...t){const{colorSchemes:r={light:!0},defaultColorScheme:a,disableCssColorScheme:n=!1,cssVarPrefix:o="mui",shouldSkipGeneratingVar:s=$h,colorSchemeSelector:i=r.light&&r.dark?"media":void 0,rootSelector:l=":root",...c}=e,d=Object.keys(r)[0],u=a||(r.light&&d!=="light"?"light":d),p=Fh(o),{[u]:f,light:y,dark:h,...x}=r,I={...x};let k=f;if((u==="dark"&&!("dark"in r)||u==="light"&&!("light"in r))&&(k=!0),!k)throw new Error(process.env.NODE_ENV!=="production"?`MUI: The \`colorSchemes.${u}\` option is either missing or invalid.`:Qt(21,u));const F=yo(I,k,c,u);y&&!I.light&&yo(I,y,void 0,"light"),h&&!I.dark&&yo(I,h,void 0,"dark");let N={defaultColorScheme:u,...F,cssVarPrefix:o,colorSchemeSelector:i,rootSelector:l,getCssVar:p,colorSchemes:I,font:{...bh(F.typography),...F.font},spacing:Bh(c.spacing)};Object.keys(N.colorSchemes).forEach(L=>{const g=N.colorSchemes[L].palette,M=B=>{const G=B.split("-"),D=G[1],re=G[2];return p(B,g[D][re])};if(g.mode==="light"&&(U(g.common,"background","#fff"),U(g.common,"onBackground","#000")),g.mode==="dark"&&(U(g.common,"background","#000"),U(g.common,"onBackground","#fff")),kh(g,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),g.mode==="light"){U(g.Alert,"errorColor",Se(g.error.light,.6)),U(g.Alert,"infoColor",Se(g.info.light,.6)),U(g.Alert,"successColor",Se(g.success.light,.6)),U(g.Alert,"warningColor",Se(g.warning.light,.6)),U(g.Alert,"errorFilledBg",M("palette-error-main")),U(g.Alert,"infoFilledBg",M("palette-info-main")),U(g.Alert,"successFilledBg",M("palette-success-main")),U(g.Alert,"warningFilledBg",M("palette-warning-main")),U(g.Alert,"errorFilledColor",St(()=>g.getContrastText(g.error.main))),U(g.Alert,"infoFilledColor",St(()=>g.getContrastText(g.info.main))),U(g.Alert,"successFilledColor",St(()=>g.getContrastText(g.success.main))),U(g.Alert,"warningFilledColor",St(()=>g.getContrastText(g.warning.main))),U(g.Alert,"errorStandardBg",ve(g.error.light,.9)),U(g.Alert,"infoStandardBg",ve(g.info.light,.9)),U(g.Alert,"successStandardBg",ve(g.success.light,.9)),U(g.Alert,"warningStandardBg",ve(g.warning.light,.9)),U(g.Alert,"errorIconColor",M("palette-error-main")),U(g.Alert,"infoIconColor",M("palette-info-main")),U(g.Alert,"successIconColor",M("palette-success-main")),U(g.Alert,"warningIconColor",M("palette-warning-main")),U(g.AppBar,"defaultBg",M("palette-grey-100")),U(g.Avatar,"defaultBg",M("palette-grey-400")),U(g.Button,"inheritContainedBg",M("palette-grey-300")),U(g.Button,"inheritContainedHoverBg",M("palette-grey-A100")),U(g.Chip,"defaultBorder",M("palette-grey-400")),U(g.Chip,"defaultAvatarColor",M("palette-grey-700")),U(g.Chip,"defaultIconColor",M("palette-grey-700")),U(g.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),U(g.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),U(g.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),U(g.LinearProgress,"primaryBg",ve(g.primary.main,.62)),U(g.LinearProgress,"secondaryBg",ve(g.secondary.main,.62)),U(g.LinearProgress,"errorBg",ve(g.error.main,.62)),U(g.LinearProgress,"infoBg",ve(g.info.main,.62)),U(g.LinearProgress,"successBg",ve(g.success.main,.62)),U(g.LinearProgress,"warningBg",ve(g.warning.main,.62)),U(g.Skeleton,"bg",`rgba(${M("palette-text-primaryChannel")} / 0.11)`),U(g.Slider,"primaryTrack",ve(g.primary.main,.62)),U(g.Slider,"secondaryTrack",ve(g.secondary.main,.62)),U(g.Slider,"errorTrack",ve(g.error.main,.62)),U(g.Slider,"infoTrack",ve(g.info.main,.62)),U(g.Slider,"successTrack",ve(g.success.main,.62)),U(g.Slider,"warningTrack",ve(g.warning.main,.62));const B=Ha(g.background.default,.8);U(g.SnackbarContent,"bg",B),U(g.SnackbarContent,"color",St(()=>g.getContrastText(B))),U(g.SpeedDialAction,"fabHoverBg",Ha(g.background.paper,.15)),U(g.StepConnector,"border",M("palette-grey-400")),U(g.StepContent,"border",M("palette-grey-400")),U(g.Switch,"defaultColor",M("palette-common-white")),U(g.Switch,"defaultDisabledColor",M("palette-grey-100")),U(g.Switch,"primaryDisabledColor",ve(g.primary.main,.62)),U(g.Switch,"secondaryDisabledColor",ve(g.secondary.main,.62)),U(g.Switch,"errorDisabledColor",ve(g.error.main,.62)),U(g.Switch,"infoDisabledColor",ve(g.info.main,.62)),U(g.Switch,"successDisabledColor",ve(g.success.main,.62)),U(g.Switch,"warningDisabledColor",ve(g.warning.main,.62)),U(g.TableCell,"border",ve(Ja(g.divider,1),.88)),U(g.Tooltip,"bg",Ja(g.grey[700],.92))}if(g.mode==="dark"){U(g.Alert,"errorColor",ve(g.error.light,.6)),U(g.Alert,"infoColor",ve(g.info.light,.6)),U(g.Alert,"successColor",ve(g.success.light,.6)),U(g.Alert,"warningColor",ve(g.warning.light,.6)),U(g.Alert,"errorFilledBg",M("palette-error-dark")),U(g.Alert,"infoFilledBg",M("palette-info-dark")),U(g.Alert,"successFilledBg",M("palette-success-dark")),U(g.Alert,"warningFilledBg",M("palette-warning-dark")),U(g.Alert,"errorFilledColor",St(()=>g.getContrastText(g.error.dark))),U(g.Alert,"infoFilledColor",St(()=>g.getContrastText(g.info.dark))),U(g.Alert,"successFilledColor",St(()=>g.getContrastText(g.success.dark))),U(g.Alert,"warningFilledColor",St(()=>g.getContrastText(g.warning.dark))),U(g.Alert,"errorStandardBg",Se(g.error.light,.9)),U(g.Alert,"infoStandardBg",Se(g.info.light,.9)),U(g.Alert,"successStandardBg",Se(g.success.light,.9)),U(g.Alert,"warningStandardBg",Se(g.warning.light,.9)),U(g.Alert,"errorIconColor",M("palette-error-main")),U(g.Alert,"infoIconColor",M("palette-info-main")),U(g.Alert,"successIconColor",M("palette-success-main")),U(g.Alert,"warningIconColor",M("palette-warning-main")),U(g.AppBar,"defaultBg",M("palette-grey-900")),U(g.AppBar,"darkBg",M("palette-background-paper")),U(g.AppBar,"darkColor",M("palette-text-primary")),U(g.Avatar,"defaultBg",M("palette-grey-600")),U(g.Button,"inheritContainedBg",M("palette-grey-800")),U(g.Button,"inheritContainedHoverBg",M("palette-grey-700")),U(g.Chip,"defaultBorder",M("palette-grey-700")),U(g.Chip,"defaultAvatarColor",M("palette-grey-300")),U(g.Chip,"defaultIconColor",M("palette-grey-300")),U(g.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),U(g.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),U(g.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),U(g.LinearProgress,"primaryBg",Se(g.primary.main,.5)),U(g.LinearProgress,"secondaryBg",Se(g.secondary.main,.5)),U(g.LinearProgress,"errorBg",Se(g.error.main,.5)),U(g.LinearProgress,"infoBg",Se(g.info.main,.5)),U(g.LinearProgress,"successBg",Se(g.success.main,.5)),U(g.LinearProgress,"warningBg",Se(g.warning.main,.5)),U(g.Skeleton,"bg",`rgba(${M("palette-text-primaryChannel")} / 0.13)`),U(g.Slider,"primaryTrack",Se(g.primary.main,.5)),U(g.Slider,"secondaryTrack",Se(g.secondary.main,.5)),U(g.Slider,"errorTrack",Se(g.error.main,.5)),U(g.Slider,"infoTrack",Se(g.info.main,.5)),U(g.Slider,"successTrack",Se(g.success.main,.5)),U(g.Slider,"warningTrack",Se(g.warning.main,.5));const B=Ha(g.background.default,.98);U(g.SnackbarContent,"bg",B),U(g.SnackbarContent,"color",St(()=>g.getContrastText(B))),U(g.SpeedDialAction,"fabHoverBg",Ha(g.background.paper,.15)),U(g.StepConnector,"border",M("palette-grey-600")),U(g.StepContent,"border",M("palette-grey-600")),U(g.Switch,"defaultColor",M("palette-grey-300")),U(g.Switch,"defaultDisabledColor",M("palette-grey-600")),U(g.Switch,"primaryDisabledColor",Se(g.primary.main,.55)),U(g.Switch,"secondaryDisabledColor",Se(g.secondary.main,.55)),U(g.Switch,"errorDisabledColor",Se(g.error.main,.55)),U(g.Switch,"infoDisabledColor",Se(g.info.main,.55)),U(g.Switch,"successDisabledColor",Se(g.success.main,.55)),U(g.Switch,"warningDisabledColor",Se(g.warning.main,.55)),U(g.TableCell,"border",Se(Ja(g.divider,1),.68)),U(g.Tooltip,"bg",Ja(g.grey[700],.92))}It(g.background,"default"),It(g.background,"paper"),It(g.common,"background"),It(g.common,"onBackground"),It(g,"divider"),Object.keys(g).forEach(B=>{const G=g[B];B!=="tonalOffset"&&G&&typeof G=="object"&&(G.main&&U(g[B],"mainChannel",xa(Oa(G.main))),G.light&&U(g[B],"lightChannel",xa(Oa(G.light))),G.dark&&U(g[B],"darkChannel",xa(Oa(G.dark))),G.contrastText&&U(g[B],"contrastTextChannel",xa(Oa(G.contrastText))),B==="text"&&(It(g[B],"primary"),It(g[B],"secondary")),B==="action"&&(G.active&&It(g[B],"active"),G.selected&&It(g[B],"selected")))})}),N=t.reduce((L,g)=>Ke(L,g),N);const z={prefix:o,disableCssColorScheme:n,shouldSkipGeneratingVar:s,getSelector:Lh(N)},{vars:K,generateThemeVars:E,generateStyleSheets:$}=th(N,z);return N.vars=K,Object.entries(N.colorSchemes[N.defaultColorScheme]).forEach(([L,g])=>{N[L]=g}),N.generateThemeVars=E,N.generateStyleSheets=$,N.generateSpacing=function(){return Dl(c.spacing,$n(this))},N.getColorSchemeSelector=rh(i),N.spacing=N.generateSpacing(),N.shouldSkipGeneratingVar=s,N.unstable_sxConfig={...ka,...c==null?void 0:c.unstable_sxConfig},N.unstable_sx=function(g){return Jr({sx:g,theme:this})},N.toRuntimeSource=tc,N}function ni(e,t,r){e.colorSchemes&&r&&(e.colorSchemes[t]={...r!==!0&&r,palette:hs({...r===!0?{}:r.palette,mode:t})})}function nc(e={},...t){const{palette:r,cssVariables:a=!1,colorSchemes:n=r?void 0:{light:!0},defaultColorScheme:o=r==null?void 0:r.mode,...s}=e,i=o||"light",l=n==null?void 0:n[i],c={...n,...r?{[i]:{...typeof l!="boolean"&&l,palette:r}}:void 0};if(a===!1){if(!("colorSchemes"in e))return Bo(e,...t);let d=r;"palette"in e||c[i]&&(c[i]!==!0?d=c[i].palette:i==="dark"&&(d={mode:"dark"}));const u=Bo({...e,palette:d},...t);return u.defaultColorScheme=i,u.colorSchemes=c,u.palette.mode==="light"&&(u.colorSchemes.light={...c.light!==!0&&c.light,palette:u.palette},ni(u,"dark",c.dark)),u.palette.mode==="dark"&&(u.colorSchemes.dark={...c.dark!==!0&&c.dark,palette:u.palette},ni(u,"light",c.light)),u}return!r&&!("light"in c)&&i==="light"&&(c.light=!0),Nh({...s,colorSchemes:c,defaultColorScheme:i,...typeof a!="boolean"&&a},...t)}const Dh=nc(),zh="$$material";function ms(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Gh=e=>ms(e)&&e!=="classes",$t=Wl({themeId:zh,defaultTheme:Dh,rootShouldForwardProp:Gh});process.env.NODE_ENV!=="production"&&(S.node,S.object.isRequired);function fs(e){return Qp(e)}const Dr=ch({createStyledComponent:$t("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>fs({props:e,name:"MuiStack"})});process.env.NODE_ENV!=="production"&&(Dr.propTypes={children:S.node,component:S.elementType,direction:S.oneOfType([S.oneOf(["column-reverse","column","row-reverse","row"]),S.arrayOf(S.oneOf(["column-reverse","column","row-reverse","row"])),S.object]),divider:S.node,spacing:S.oneOfType([S.arrayOf(S.oneOfType([S.number,S.string])),S.number,S.object,S.string]),sx:S.oneOfType([S.arrayOf(S.oneOfType([S.func,S.object,S.bool])),S.func,S.object]),useFlexGap:S.bool});const oe=e=>typeof e=="string",ua=()=>{let e,t;const r=new Promise((a,n)=>{e=a,t=n});return r.resolve=e,r.reject=t,r},oi=e=>e==null?"":""+e,Jh=(e,t,r)=>{e.forEach(a=>{t[a]&&(r[a]=t[a])})},Hh=/###/g,si=e=>e&&e.indexOf("###")>-1?e.replace(Hh,"."):e,ii=e=>!e||oe(e),Ca=(e,t,r)=>{const a=oe(t)?t.split("."):t;let n=0;for(;n<a.length-1;){if(ii(e))return{};const o=si(a[n]);!e[o]&&r&&(e[o]=new r),Object.prototype.hasOwnProperty.call(e,o)?e=e[o]:e={},++n}return ii(e)?{}:{obj:e,k:si(a[n])}},li=(e,t,r)=>{const{obj:a,k:n}=Ca(e,t,Object);if(a!==void 0||t.length===1){a[n]=r;return}let o=t[t.length-1],s=t.slice(0,t.length-1),i=Ca(e,s,Object);for(;i.obj===void 0&&s.length;)o=`${s[s.length-1]}.${o}`,s=s.slice(0,s.length-1),i=Ca(e,s,Object),i!=null&&i.obj&&typeof i.obj[`${i.k}.${o}`]<"u"&&(i.obj=void 0);i.obj[`${i.k}.${o}`]=r},qh=(e,t,r,a)=>{const{obj:n,k:o}=Ca(e,t,Object);n[o]=n[o]||[],n[o].push(r)},vn=(e,t)=>{const{obj:r,k:a}=Ca(e,t);if(r&&Object.prototype.hasOwnProperty.call(r,a))return r[a]},Wh=(e,t,r)=>{const a=vn(e,r);return a!==void 0?a:vn(t,r)},oc=(e,t,r)=>{for(const a in t)a!=="__proto__"&&a!=="constructor"&&(a in e?oe(e[a])||e[a]instanceof String||oe(t[a])||t[a]instanceof String?r&&(e[a]=t[a]):oc(e[a],t[a],r):e[a]=t[a]);return e},Tr=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var Kh={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};const Qh=e=>oe(e)?e.replace(/[&<>"'\/]/g,t=>Kh[t]):e;class Yh{constructor(t){this.capacity=t,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(t){const r=this.regExpMap.get(t);if(r!==void 0)return r;const a=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,a),this.regExpQueue.push(t),a}}const Xh=[" ",",","?","!",";"],Zh=new Yh(20),em=(e,t,r)=>{t=t||"",r=r||"";const a=Xh.filter(s=>t.indexOf(s)<0&&r.indexOf(s)<0);if(a.length===0)return!0;const n=Zh.getRegExp(`(${a.map(s=>s==="?"?"\\?":s).join("|")})`);let o=!n.test(e);if(!o){const s=e.indexOf(r);s>0&&!n.test(e.substring(0,s))&&(o=!0)}return o},Fo=function(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!e)return;if(e[t])return Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0;const a=t.split(r);let n=e;for(let o=0;o<a.length;){if(!n||typeof n!="object")return;let s,i="";for(let l=o;l<a.length;++l)if(l!==o&&(i+=r),i+=a[l],s=n[i],s!==void 0){if(["string","number","boolean"].indexOf(typeof s)>-1&&l<a.length-1)continue;o+=l-o+1;break}n=s}return n},xn=e=>e==null?void 0:e.replace("_","-"),tm={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){var r,a;(a=(r=console==null?void 0:console[e])==null?void 0:r.apply)==null||a.call(r,console,t)}};class On{constructor(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(t,r)}init(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=r.prefix||"i18next:",this.logger=t||tm,this.options=r,this.debug=r.debug}log(){for(var t=arguments.length,r=new Array(t),a=0;a<t;a++)r[a]=arguments[a];return this.forward(r,"log","",!0)}warn(){for(var t=arguments.length,r=new Array(t),a=0;a<t;a++)r[a]=arguments[a];return this.forward(r,"warn","",!0)}error(){for(var t=arguments.length,r=new Array(t),a=0;a<t;a++)r[a]=arguments[a];return this.forward(r,"error","")}deprecate(){for(var t=arguments.length,r=new Array(t),a=0;a<t;a++)r[a]=arguments[a];return this.forward(r,"warn","WARNING DEPRECATED: ",!0)}forward(t,r,a,n){return n&&!this.debug?null:(oe(t[0])&&(t[0]=`${a}${this.prefix} ${t[0]}`),this.logger[r](t))}create(t){return new On(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new On(this.logger,t)}}var Ct=new On;class zn{constructor(){this.observers={}}on(t,r){return t.split(" ").forEach(a=>{this.observers[a]||(this.observers[a]=new Map);const n=this.observers[a].get(r)||0;this.observers[a].set(r,n+1)}),this}off(t,r){if(this.observers[t]){if(!r){delete this.observers[t];return}this.observers[t].delete(r)}}emit(t){for(var r=arguments.length,a=new Array(r>1?r-1:0),n=1;n<r;n++)a[n-1]=arguments[n];this.observers[t]&&Array.from(this.observers[t].entries()).forEach(s=>{let[i,l]=s;for(let c=0;c<l;c++)i(...a)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(s=>{let[i,l]=s;for(let c=0;c<l;c++)i.apply(i,[t,...a])})}}class ci extends zn{constructor(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=t||{},this.options=r,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){const r=this.options.ns.indexOf(t);r>-1&&this.options.ns.splice(r,1)}getResource(t,r,a){var c,d;let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const o=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,s=n.ignoreJSONStructure!==void 0?n.ignoreJSONStructure:this.options.ignoreJSONStructure;let i;t.indexOf(".")>-1?i=t.split("."):(i=[t,r],a&&(Array.isArray(a)?i.push(...a):oe(a)&&o?i.push(...a.split(o)):i.push(a)));const l=vn(this.data,i);return!l&&!r&&!a&&t.indexOf(".")>-1&&(t=i[0],r=i[1],a=i.slice(2).join(".")),l||!s||!oe(a)?l:Fo((d=(c=this.data)==null?void 0:c[t])==null?void 0:d[r],a,o)}addResource(t,r,a,n){let o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const s=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator;let i=[t,r];a&&(i=i.concat(s?a.split(s):a)),t.indexOf(".")>-1&&(i=t.split("."),n=r,r=i[1]),this.addNamespaces(r),li(this.data,i,n),o.silent||this.emit("added",t,r,a,n)}addResources(t,r,a){let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const o in a)(oe(a[o])||Array.isArray(a[o]))&&this.addResource(t,r,o,a[o],{silent:!0});n.silent||this.emit("added",t,r,a)}addResourceBundle(t,r,a,n,o){let s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},i=[t,r];t.indexOf(".")>-1&&(i=t.split("."),n=a,a=r,r=i[1]),this.addNamespaces(r);let l=vn(this.data,i)||{};s.skipCopy||(a=JSON.parse(JSON.stringify(a))),n?oc(l,a,o):l={...l,...a},li(this.data,i,l),s.silent||this.emit("added",t,r,a)}removeResourceBundle(t,r){this.hasResourceBundle(t,r)&&delete this.data[t][r],this.removeNamespaces(r),this.emit("removed",t,r)}hasResourceBundle(t,r){return this.getResource(t,r)!==void 0}getResourceBundle(t,r){return r||(r=this.options.defaultNS),this.getResource(t,r)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){const r=this.getDataByLanguage(t);return!!(r&&Object.keys(r)||[]).find(n=>r[n]&&Object.keys(r[n]).length>0)}toJSON(){return this.data}}var sc={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,r,a,n){return e.forEach(o=>{var s;t=((s=this.processors[o])==null?void 0:s.process(t,r,a,n))??t}),t}};const di={},ui=e=>!oe(e)&&typeof e!="boolean"&&typeof e!="number";class wn extends zn{constructor(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),Jh(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=r,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Ct.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(t==null)return!1;const a=this.resolve(t,r);return(a==null?void 0:a.res)!==void 0}extractFromKey(t,r){let a=r.nsSeparator!==void 0?r.nsSeparator:this.options.nsSeparator;a===void 0&&(a=":");const n=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator;let o=r.ns||this.options.defaultNS||[];const s=a&&t.indexOf(a)>-1,i=!this.options.userDefinedKeySeparator&&!r.keySeparator&&!this.options.userDefinedNsSeparator&&!r.nsSeparator&&!em(t,a,n);if(s&&!i){const l=t.match(this.interpolator.nestingRegexp);if(l&&l.length>0)return{key:t,namespaces:oe(o)?[o]:o};const c=t.split(a);(a!==n||a===n&&this.options.ns.indexOf(c[0])>-1)&&(o=c.shift()),t=c.join(n)}return{key:t,namespaces:oe(o)?[o]:o}}translate(t,r,a){if(typeof r!="object"&&this.options.overloadTranslationOptionHandler&&(r=this.options.overloadTranslationOptionHandler(arguments)),typeof r=="object"&&(r={...r}),r||(r={}),t==null)return"";Array.isArray(t)||(t=[String(t)]);const n=r.returnDetails!==void 0?r.returnDetails:this.options.returnDetails,o=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator,{key:s,namespaces:i}=this.extractFromKey(t[t.length-1],r),l=i[i.length-1],c=r.lng||this.language,d=r.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if((c==null?void 0:c.toLowerCase())==="cimode"){if(d){const M=r.nsSeparator||this.options.nsSeparator;return n?{res:`${l}${M}${s}`,usedKey:s,exactUsedKey:s,usedLng:c,usedNS:l,usedParams:this.getUsedParamsDetails(r)}:`${l}${M}${s}`}return n?{res:s,usedKey:s,exactUsedKey:s,usedLng:c,usedNS:l,usedParams:this.getUsedParamsDetails(r)}:s}const u=this.resolve(t,r);let p=u==null?void 0:u.res;const f=(u==null?void 0:u.usedKey)||s,y=(u==null?void 0:u.exactUsedKey)||s,h=["[object Number]","[object Function]","[object RegExp]"],x=r.joinArrays!==void 0?r.joinArrays:this.options.joinArrays,I=!this.i18nFormat||this.i18nFormat.handleAsObject,k=r.count!==void 0&&!oe(r.count),F=wn.hasDefaultValue(r),N=k?this.pluralResolver.getSuffix(c,r.count,r):"",z=r.ordinal&&k?this.pluralResolver.getSuffix(c,r.count,{ordinal:!1}):"",K=k&&!r.ordinal&&r.count===0,E=K&&r[`defaultValue${this.options.pluralSeparator}zero`]||r[`defaultValue${N}`]||r[`defaultValue${z}`]||r.defaultValue;let $=p;I&&!p&&F&&($=E);const L=ui($),g=Object.prototype.toString.apply($);if(I&&$&&L&&h.indexOf(g)<0&&!(oe(x)&&Array.isArray($))){if(!r.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const M=this.options.returnedObjectHandler?this.options.returnedObjectHandler(f,$,{...r,ns:i}):`key '${s} (${this.language})' returned an object instead of string.`;return n?(u.res=M,u.usedParams=this.getUsedParamsDetails(r),u):M}if(o){const M=Array.isArray($),B=M?[]:{},G=M?y:f;for(const D in $)if(Object.prototype.hasOwnProperty.call($,D)){const re=`${G}${o}${D}`;F&&!p?B[D]=this.translate(re,{...r,defaultValue:ui(E)?E[D]:void 0,joinArrays:!1,ns:i}):B[D]=this.translate(re,{...r,joinArrays:!1,ns:i}),B[D]===re&&(B[D]=$[D])}p=B}}else if(I&&oe(x)&&Array.isArray(p))p=p.join(x),p&&(p=this.extendTranslation(p,t,r,a));else{let M=!1,B=!1;!this.isValidLookup(p)&&F&&(M=!0,p=E),this.isValidLookup(p)||(B=!0,p=s);const D=(r.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&B?void 0:p,re=F&&E!==p&&this.options.updateMissing;if(B||M||re){if(this.logger.log(re?"updateKey":"missingKey",c,l,s,re?E:p),o){const ce=this.resolve(s,{...r,keySeparator:!1});ce&&ce.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let Z=[];const xe=this.languageUtils.getFallbackCodes(this.options.fallbackLng,r.lng||this.language);if(this.options.saveMissingTo==="fallback"&&xe&&xe[0])for(let ce=0;ce<xe.length;ce++)Z.push(xe[ce]);else this.options.saveMissingTo==="all"?Z=this.languageUtils.toResolveHierarchy(r.lng||this.language):Z.push(r.lng||this.language);const X=(ce,fe,le)=>{var _t;const He=F&&le!==p?le:D;this.options.missingKeyHandler?this.options.missingKeyHandler(ce,l,fe,He,re,r):(_t=this.backendConnector)!=null&&_t.saveMissing&&this.backendConnector.saveMissing(ce,l,fe,He,re,r),this.emit("missingKey",ce,l,fe,p)};this.options.saveMissing&&(this.options.saveMissingPlurals&&k?Z.forEach(ce=>{const fe=this.pluralResolver.getSuffixes(ce,r);K&&r[`defaultValue${this.options.pluralSeparator}zero`]&&fe.indexOf(`${this.options.pluralSeparator}zero`)<0&&fe.push(`${this.options.pluralSeparator}zero`),fe.forEach(le=>{X([ce],s+le,r[`defaultValue${le}`]||E)})}):X(Z,s,E))}p=this.extendTranslation(p,t,r,u,a),B&&p===s&&this.options.appendNamespaceToMissingKey&&(p=`${l}:${s}`),(B||M)&&this.options.parseMissingKeyHandler&&(p=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${l}:${s}`:s,M?p:void 0))}return n?(u.res=p,u.usedParams=this.getUsedParamsDetails(r),u):p}extendTranslation(t,r,a,n,o){var c,d;var s=this;if((c=this.i18nFormat)!=null&&c.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...a},a.lng||this.language||n.usedLng,n.usedNS,n.usedKey,{resolved:n});else if(!a.skipInterpolation){a.interpolation&&this.interpolator.init({...a,interpolation:{...this.options.interpolation,...a.interpolation}});const u=oe(t)&&(((d=a==null?void 0:a.interpolation)==null?void 0:d.skipOnVariables)!==void 0?a.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let p;if(u){const y=t.match(this.interpolator.nestingRegexp);p=y&&y.length}let f=a.replace&&!oe(a.replace)?a.replace:a;if(this.options.interpolation.defaultVariables&&(f={...this.options.interpolation.defaultVariables,...f}),t=this.interpolator.interpolate(t,f,a.lng||this.language||n.usedLng,a),u){const y=t.match(this.interpolator.nestingRegexp),h=y&&y.length;p<h&&(a.nest=!1)}!a.lng&&n&&n.res&&(a.lng=this.language||n.usedLng),a.nest!==!1&&(t=this.interpolator.nest(t,function(){for(var y=arguments.length,h=new Array(y),x=0;x<y;x++)h[x]=arguments[x];return(o==null?void 0:o[0])===h[0]&&!a.context?(s.logger.warn(`It seems you are nesting recursively key: ${h[0]} in key: ${r[0]}`),null):s.translate(...h,r)},a)),a.interpolation&&this.interpolator.reset()}const i=a.postProcess||this.options.postProcess,l=oe(i)?[i]:i;return t!=null&&(l!=null&&l.length)&&a.applyPostProcessor!==!1&&(t=sc.handle(l,t,r,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...n,usedParams:this.getUsedParamsDetails(a)},...a}:a,this)),t}resolve(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a,n,o,s,i;return oe(t)&&(t=[t]),t.forEach(l=>{if(this.isValidLookup(a))return;const c=this.extractFromKey(l,r),d=c.key;n=d;let u=c.namespaces;this.options.fallbackNS&&(u=u.concat(this.options.fallbackNS));const p=r.count!==void 0&&!oe(r.count),f=p&&!r.ordinal&&r.count===0,y=r.context!==void 0&&(oe(r.context)||typeof r.context=="number")&&r.context!=="",h=r.lngs?r.lngs:this.languageUtils.toResolveHierarchy(r.lng||this.language,r.fallbackLng);u.forEach(x=>{var I,k;this.isValidLookup(a)||(i=x,!di[`${h[0]}-${x}`]&&((I=this.utils)!=null&&I.hasLoadedNamespace)&&!((k=this.utils)!=null&&k.hasLoadedNamespace(i))&&(di[`${h[0]}-${x}`]=!0,this.logger.warn(`key "${n}" for languages "${h.join(", ")}" won't get resolved as namespace "${i}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),h.forEach(F=>{var K;if(this.isValidLookup(a))return;s=F;const N=[d];if((K=this.i18nFormat)!=null&&K.addLookupKeys)this.i18nFormat.addLookupKeys(N,d,F,x,r);else{let E;p&&(E=this.pluralResolver.getSuffix(F,r.count,r));const $=`${this.options.pluralSeparator}zero`,L=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(p&&(N.push(d+E),r.ordinal&&E.indexOf(L)===0&&N.push(d+E.replace(L,this.options.pluralSeparator)),f&&N.push(d+$)),y){const g=`${d}${this.options.contextSeparator}${r.context}`;N.push(g),p&&(N.push(g+E),r.ordinal&&E.indexOf(L)===0&&N.push(g+E.replace(L,this.options.pluralSeparator)),f&&N.push(g+$))}}let z;for(;z=N.pop();)this.isValidLookup(a)||(o=z,a=this.getResource(F,x,z,r))}))})}),{res:a,usedKey:n,exactUsedKey:o,usedLng:s,usedNS:i}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,r,a){var o;let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return(o=this.i18nFormat)!=null&&o.getResource?this.i18nFormat.getResource(t,r,a,n):this.resourceStore.getResource(t,r,a,n)}getUsedParamsDetails(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const r=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],a=t.replace&&!oe(t.replace);let n=a?t.replace:t;if(a&&typeof t.count<"u"&&(n.count=t.count),this.options.interpolation.defaultVariables&&(n={...this.options.interpolation.defaultVariables,...n}),!a){n={...n};for(const o of r)delete n[o]}return n}static hasDefaultValue(t){const r="defaultValue";for(const a in t)if(Object.prototype.hasOwnProperty.call(t,a)&&r===a.substring(0,r.length)&&t[a]!==void 0)return!0;return!1}}class pi{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Ct.create("languageUtils")}getScriptPartFromCode(t){if(t=xn(t),!t||t.indexOf("-")<0)return null;const r=t.split("-");return r.length===2||(r.pop(),r[r.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(r.join("-"))}getLanguagePartFromCode(t){if(t=xn(t),!t||t.indexOf("-")<0)return t;const r=t.split("-");return this.formatLanguageCode(r[0])}formatLanguageCode(t){if(oe(t)&&t.indexOf("-")>-1){let r;try{r=Intl.getCanonicalLocales(t)[0]}catch{}return r&&this.options.lowerCaseLng&&(r=r.toLowerCase()),r||(this.options.lowerCaseLng?t.toLowerCase():t)}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let r;return t.forEach(a=>{if(r)return;const n=this.formatLanguageCode(a);(!this.options.supportedLngs||this.isSupportedCode(n))&&(r=n)}),!r&&this.options.supportedLngs&&t.forEach(a=>{if(r)return;const n=this.getLanguagePartFromCode(a);if(this.isSupportedCode(n))return r=n;r=this.options.supportedLngs.find(o=>{if(o===n)return o;if(!(o.indexOf("-")<0&&n.indexOf("-")<0)&&(o.indexOf("-")>0&&n.indexOf("-")<0&&o.substring(0,o.indexOf("-"))===n||o.indexOf(n)===0&&n.length>1))return o})}),r||(r=this.getFallbackCodes(this.options.fallbackLng)[0]),r}getFallbackCodes(t,r){if(!t)return[];if(typeof t=="function"&&(t=t(r)),oe(t)&&(t=[t]),Array.isArray(t))return t;if(!r)return t.default||[];let a=t[r];return a||(a=t[this.getScriptPartFromCode(r)]),a||(a=t[this.formatLanguageCode(r)]),a||(a=t[this.getLanguagePartFromCode(r)]),a||(a=t.default),a||[]}toResolveHierarchy(t,r){const a=this.getFallbackCodes(r||this.options.fallbackLng||[],t),n=[],o=s=>{s&&(this.isSupportedCode(s)?n.push(s):this.logger.warn(`rejecting language code not found in supportedLngs: ${s}`))};return oe(t)&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&o(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&o(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&o(this.getLanguagePartFromCode(t))):oe(t)&&o(this.formatLanguageCode(t)),a.forEach(s=>{n.indexOf(s)<0&&o(this.formatLanguageCode(s))}),n}}const hi={zero:0,one:1,two:2,few:3,many:4,other:5},mi={select:e=>e===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class rm{constructor(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=t,this.options=r,this.logger=Ct.create("pluralResolver"),this.pluralRulesCache={}}addRule(t,r){this.rules[t]=r}clearCache(){this.pluralRulesCache={}}getRule(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const a=xn(t==="dev"?"en":t),n=r.ordinal?"ordinal":"cardinal",o=JSON.stringify({cleanedCode:a,type:n});if(o in this.pluralRulesCache)return this.pluralRulesCache[o];let s;try{s=new Intl.PluralRules(a,{type:n})}catch{if(!Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),mi;if(!t.match(/-|_/))return mi;const l=this.languageUtils.getLanguagePartFromCode(t);s=this.getRule(l,r)}return this.pluralRulesCache[o]=s,s}needsPlural(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=this.getRule(t,r);return a||(a=this.getRule("dev",r)),(a==null?void 0:a.resolvedOptions().pluralCategories.length)>1}getPluralFormsOfKey(t,r){let a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(t,a).map(n=>`${r}${n}`)}getSuffixes(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=this.getRule(t,r);return a||(a=this.getRule("dev",r)),a?a.resolvedOptions().pluralCategories.sort((n,o)=>hi[n]-hi[o]).map(n=>`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${n}`):[]}getSuffix(t,r){let a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const n=this.getRule(t,a);return n?`${this.options.prepend}${a.ordinal?`ordinal${this.options.prepend}`:""}${n.select(r)}`:(this.logger.warn(`no plural rule found for: ${t}`),this.getSuffix("dev",r,a))}}const fi=function(e,t,r){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",n=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,o=Wh(e,t,r);return!o&&n&&oe(r)&&(o=Fo(e,r,a),o===void 0&&(o=Fo(t,r,a))),o},bo=e=>e.replace(/\$/g,"$$$$");class am{constructor(){var r;let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Ct.create("interpolator"),this.options=t,this.format=((r=t==null?void 0:t.interpolation)==null?void 0:r.format)||(a=>a),this.init(t)}init(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});const{escape:r,escapeValue:a,useRawValueToEscape:n,prefix:o,prefixEscaped:s,suffix:i,suffixEscaped:l,formatSeparator:c,unescapeSuffix:d,unescapePrefix:u,nestingPrefix:p,nestingPrefixEscaped:f,nestingSuffix:y,nestingSuffixEscaped:h,nestingOptionsSeparator:x,maxReplaces:I,alwaysFormat:k}=t.interpolation;this.escape=r!==void 0?r:Qh,this.escapeValue=a!==void 0?a:!0,this.useRawValueToEscape=n!==void 0?n:!1,this.prefix=o?Tr(o):s||"{{",this.suffix=i?Tr(i):l||"}}",this.formatSeparator=c||",",this.unescapePrefix=d?"":u||"-",this.unescapeSuffix=this.unescapePrefix?"":d||"",this.nestingPrefix=p?Tr(p):f||Tr("$t("),this.nestingSuffix=y?Tr(y):h||Tr(")"),this.nestingOptionsSeparator=x||",",this.maxReplaces=I||1e3,this.alwaysFormat=k!==void 0?k:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=(r,a)=>(r==null?void 0:r.source)===a?(r.lastIndex=0,r):new RegExp(a,"g");this.regexp=t(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=t(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=t(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(t,r,a,n){var f;let o,s,i;const l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},c=y=>{if(y.indexOf(this.formatSeparator)<0){const k=fi(r,l,y,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(k,void 0,a,{...n,...r,interpolationkey:y}):k}const h=y.split(this.formatSeparator),x=h.shift().trim(),I=h.join(this.formatSeparator).trim();return this.format(fi(r,l,x,this.options.keySeparator,this.options.ignoreJSONStructure),I,a,{...n,...r,interpolationkey:x})};this.resetRegExp();const d=(n==null?void 0:n.missingInterpolationHandler)||this.options.missingInterpolationHandler,u=((f=n==null?void 0:n.interpolation)==null?void 0:f.skipOnVariables)!==void 0?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:y=>bo(y)},{regex:this.regexp,safeValue:y=>this.escapeValue?bo(this.escape(y)):bo(y)}].forEach(y=>{for(i=0;o=y.regex.exec(t);){const h=o[1].trim();if(s=c(h),s===void 0)if(typeof d=="function"){const I=d(t,o,n);s=oe(I)?I:""}else if(n&&Object.prototype.hasOwnProperty.call(n,h))s="";else if(u){s=o[0];continue}else this.logger.warn(`missed to pass in variable ${h} for interpolating ${t}`),s="";else!oe(s)&&!this.useRawValueToEscape&&(s=oi(s));const x=y.safeValue(s);if(t=t.replace(o[0],x),u?(y.regex.lastIndex+=s.length,y.regex.lastIndex-=o[0].length):y.regex.lastIndex=0,i++,i>=this.maxReplaces)break}}),t}nest(t,r){let a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n,o,s;const i=(l,c)=>{const d=this.nestingOptionsSeparator;if(l.indexOf(d)<0)return l;const u=l.split(new RegExp(`${d}[ ]*{`));let p=`{${u[1]}`;l=u[0],p=this.interpolate(p,s);const f=p.match(/'/g),y=p.match(/"/g);(((f==null?void 0:f.length)??0)%2===0&&!y||y.length%2!==0)&&(p=p.replace(/'/g,'"'));try{s=JSON.parse(p),c&&(s={...c,...s})}catch(h){return this.logger.warn(`failed parsing options string in nesting for key ${l}`,h),`${l}${d}${p}`}return s.defaultValue&&s.defaultValue.indexOf(this.prefix)>-1&&delete s.defaultValue,l};for(;n=this.nestingRegexp.exec(t);){let l=[];s={...a},s=s.replace&&!oe(s.replace)?s.replace:s,s.applyPostProcessor=!1,delete s.defaultValue;let c=!1;if(n[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(n[1])){const d=n[1].split(this.formatSeparator).map(u=>u.trim());n[1]=d.shift(),l=d,c=!0}if(o=r(i.call(this,n[1].trim(),s),s),o&&n[0]===t&&!oe(o))return o;oe(o)||(o=oi(o)),o||(this.logger.warn(`missed to resolve ${n[1]} for nesting ${t}`),o=""),c&&(o=l.reduce((d,u)=>this.format(d,u,a.lng,{...a,interpolationkey:n[1].trim()}),o.trim())),t=t.replace(n[0],o),this.regexp.lastIndex=0}return t}}const nm=e=>{let t=e.toLowerCase().trim();const r={};if(e.indexOf("(")>-1){const a=e.split("(");t=a[0].toLowerCase().trim();const n=a[1].substring(0,a[1].length-1);t==="currency"&&n.indexOf(":")<0?r.currency||(r.currency=n.trim()):t==="relativetime"&&n.indexOf(":")<0?r.range||(r.range=n.trim()):n.split(";").forEach(s=>{if(s){const[i,...l]=s.split(":"),c=l.join(":").trim().replace(/^'+|'+$/g,""),d=i.trim();r[d]||(r[d]=c),c==="false"&&(r[d]=!1),c==="true"&&(r[d]=!0),isNaN(c)||(r[d]=parseInt(c,10))}})}return{formatName:t,formatOptions:r}},Er=e=>{const t={};return(r,a,n)=>{let o=n;n&&n.interpolationkey&&n.formatParams&&n.formatParams[n.interpolationkey]&&n[n.interpolationkey]&&(o={...o,[n.interpolationkey]:void 0});const s=a+JSON.stringify(o);let i=t[s];return i||(i=e(xn(a),n),t[s]=i),i(r)}};class om{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Ct.create("formatter"),this.options=t,this.formats={number:Er((r,a)=>{const n=new Intl.NumberFormat(r,{...a});return o=>n.format(o)}),currency:Er((r,a)=>{const n=new Intl.NumberFormat(r,{...a,style:"currency"});return o=>n.format(o)}),datetime:Er((r,a)=>{const n=new Intl.DateTimeFormat(r,{...a});return o=>n.format(o)}),relativetime:Er((r,a)=>{const n=new Intl.RelativeTimeFormat(r,{...a});return o=>n.format(o,a.range||"day")}),list:Er((r,a)=>{const n=new Intl.ListFormat(r,{...a});return o=>n.format(o)})},this.init(t)}init(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};this.formatSeparator=r.interpolation.formatSeparator||","}add(t,r){this.formats[t.toLowerCase().trim()]=r}addCached(t,r){this.formats[t.toLowerCase().trim()]=Er(r)}format(t,r,a){let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const o=r.split(this.formatSeparator);if(o.length>1&&o[0].indexOf("(")>1&&o[0].indexOf(")")<0&&o.find(i=>i.indexOf(")")>-1)){const i=o.findIndex(l=>l.indexOf(")")>-1);o[0]=[o[0],...o.splice(1,i)].join(this.formatSeparator)}return o.reduce((i,l)=>{var u;const{formatName:c,formatOptions:d}=nm(l);if(this.formats[c]){let p=i;try{const f=((u=n==null?void 0:n.formatParams)==null?void 0:u[n.interpolationkey])||{},y=f.locale||f.lng||n.locale||n.lng||a;p=this.formats[c](i,y,{...d,...n,...f})}catch(f){this.logger.warn(f)}return p}else this.logger.warn(`there was no format function for ${c}`);return i},t)}}const sm=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)};class im extends zn{constructor(t,r,a){var o,s;let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=t,this.store=r,this.services=a,this.languageUtils=a.languageUtils,this.options=n,this.logger=Ct.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=n.maxParallelReads||10,this.readingCalls=0,this.maxRetries=n.maxRetries>=0?n.maxRetries:5,this.retryTimeout=n.retryTimeout>=1?n.retryTimeout:350,this.state={},this.queue=[],(s=(o=this.backend)==null?void 0:o.init)==null||s.call(o,a,n.backend,n)}queueLoad(t,r,a,n){const o={},s={},i={},l={};return t.forEach(c=>{let d=!0;r.forEach(u=>{const p=`${c}|${u}`;!a.reload&&this.store.hasResourceBundle(c,u)?this.state[p]=2:this.state[p]<0||(this.state[p]===1?s[p]===void 0&&(s[p]=!0):(this.state[p]=1,d=!1,s[p]===void 0&&(s[p]=!0),o[p]===void 0&&(o[p]=!0),l[u]===void 0&&(l[u]=!0)))}),d||(i[c]=!0)}),(Object.keys(o).length||Object.keys(s).length)&&this.queue.push({pending:s,pendingCount:Object.keys(s).length,loaded:{},errors:[],callback:n}),{toLoad:Object.keys(o),pending:Object.keys(s),toLoadLanguages:Object.keys(i),toLoadNamespaces:Object.keys(l)}}loaded(t,r,a){const n=t.split("|"),o=n[0],s=n[1];r&&this.emit("failedLoading",o,s,r),!r&&a&&this.store.addResourceBundle(o,s,a,void 0,void 0,{skipCopy:!0}),this.state[t]=r?-1:2,r&&a&&(this.state[t]=0);const i={};this.queue.forEach(l=>{qh(l.loaded,[o],s),sm(l,t),r&&l.errors.push(r),l.pendingCount===0&&!l.done&&(Object.keys(l.loaded).forEach(c=>{i[c]||(i[c]={});const d=l.loaded[c];d.length&&d.forEach(u=>{i[c][u]===void 0&&(i[c][u]=!0)})}),l.done=!0,l.errors.length?l.callback(l.errors):l.callback())}),this.emit("loaded",i),this.queue=this.queue.filter(l=>!l.done)}read(t,r,a){let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,s=arguments.length>5?arguments[5]:void 0;if(!t.length)return s(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:r,fcName:a,tried:n,wait:o,callback:s});return}this.readingCalls++;const i=(c,d)=>{if(this.readingCalls--,this.waitingReads.length>0){const u=this.waitingReads.shift();this.read(u.lng,u.ns,u.fcName,u.tried,u.wait,u.callback)}if(c&&d&&n<this.maxRetries){setTimeout(()=>{this.read.call(this,t,r,a,n+1,o*2,s)},o);return}s(c,d)},l=this.backend[a].bind(this.backend);if(l.length===2){try{const c=l(t,r);c&&typeof c.then=="function"?c.then(d=>i(null,d)).catch(i):i(null,c)}catch(c){i(c)}return}return l(t,r,i)}prepareLoading(t,r){let a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),n&&n();oe(t)&&(t=this.languageUtils.toResolveHierarchy(t)),oe(r)&&(r=[r]);const o=this.queueLoad(t,r,a,n);if(!o.toLoad.length)return o.pending.length||n(),null;o.toLoad.forEach(s=>{this.loadOne(s)})}load(t,r,a){this.prepareLoading(t,r,{},a)}reload(t,r,a){this.prepareLoading(t,r,{reload:!0},a)}loadOne(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const a=t.split("|"),n=a[0],o=a[1];this.read(n,o,"read",void 0,void 0,(s,i)=>{s&&this.logger.warn(`${r}loading namespace ${o} for language ${n} failed`,s),!s&&i&&this.logger.log(`${r}loaded namespace ${o} for language ${n}`,i),this.loaded(t,s,i)})}saveMissing(t,r,a,n,o){var l,c,d,u,p;let s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},i=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if((c=(l=this.services)==null?void 0:l.utils)!=null&&c.hasLoadedNamespace&&!((u=(d=this.services)==null?void 0:d.utils)!=null&&u.hasLoadedNamespace(r))){this.logger.warn(`did not save key "${a}" as the namespace "${r}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(a==null||a==="")){if((p=this.backend)!=null&&p.create){const f={...s,isUpdate:o},y=this.backend.create.bind(this.backend);if(y.length<6)try{let h;y.length===5?h=y(t,r,a,n,f):h=y(t,r,a,n),h&&typeof h.then=="function"?h.then(x=>i(null,x)).catch(i):i(null,h)}catch(h){i(h)}else y(t,r,a,n,i,f)}!t||!t[0]||this.store.addResource(t[0],r,a,n)}}}const gi=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if(typeof e[1]=="object"&&(t=e[1]),oe(e[1])&&(t.defaultValue=e[1]),oe(e[2])&&(t.tDescription=e[2]),typeof e[2]=="object"||typeof e[3]=="object"){const r=e[3]||e[2];Object.keys(r).forEach(a=>{t[a]=r[a]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),yi=e=>{var t,r;return oe(e.ns)&&(e.ns=[e.ns]),oe(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),oe(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),((r=(t=e.supportedLngs)==null?void 0:t.indexOf)==null?void 0:r.call(t,"cimode"))<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),typeof e.initImmediate=="boolean"&&(e.initAsync=e.initImmediate),e},qa=()=>{},lm=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(r=>{typeof e[r]=="function"&&(e[r]=e[r].bind(e))})};class Ta extends zn{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;if(super(),this.options=yi(t),this.services={},this.logger=Ct,this.modules={external:[]},lm(this),r&&!this.isInitialized&&!t.isClone){if(!this.options.initAsync)return this.init(t,r),this;setTimeout(()=>{this.init(t,r)},0)}}init(){var t=this;let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof r=="function"&&(a=r,r={}),r.defaultNS==null&&r.ns&&(oe(r.ns)?r.defaultNS=r.ns:r.ns.indexOf("translation")<0&&(r.defaultNS=r.ns[0]));const n=gi();this.options={...n,...this.options,...yi(r)},this.options.interpolation={...n.interpolation,...this.options.interpolation},r.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=r.keySeparator),r.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=r.nsSeparator);const o=d=>d?typeof d=="function"?new d:d:null;if(!this.options.isClone){this.modules.logger?Ct.init(o(this.modules.logger),this.options):Ct.init(null,this.options);let d;this.modules.formatter?d=this.modules.formatter:d=om;const u=new pi(this.options);this.store=new ci(this.options.resources,this.options);const p=this.services;p.logger=Ct,p.resourceStore=this.store,p.languageUtils=u,p.pluralResolver=new rm(u,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),d&&(!this.options.interpolation.format||this.options.interpolation.format===n.interpolation.format)&&(p.formatter=o(d),p.formatter.init(p,this.options),this.options.interpolation.format=p.formatter.format.bind(p.formatter)),p.interpolator=new am(this.options),p.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},p.backendConnector=new im(o(this.modules.backend),p.resourceStore,p,this.options),p.backendConnector.on("*",function(f){for(var y=arguments.length,h=new Array(y>1?y-1:0),x=1;x<y;x++)h[x-1]=arguments[x];t.emit(f,...h)}),this.modules.languageDetector&&(p.languageDetector=o(this.modules.languageDetector),p.languageDetector.init&&p.languageDetector.init(p,this.options.detection,this.options)),this.modules.i18nFormat&&(p.i18nFormat=o(this.modules.i18nFormat),p.i18nFormat.init&&p.i18nFormat.init(this)),this.translator=new wn(this.services,this.options),this.translator.on("*",function(f){for(var y=arguments.length,h=new Array(y>1?y-1:0),x=1;x<y;x++)h[x-1]=arguments[x];t.emit(f,...h)}),this.modules.external.forEach(f=>{f.init&&f.init(this)})}if(this.format=this.options.interpolation.format,a||(a=qa),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const d=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);d.length>0&&d[0]!=="dev"&&(this.options.lng=d[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(d=>{this[d]=function(){return t.store[d](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(d=>{this[d]=function(){return t.store[d](...arguments),t}});const l=ua(),c=()=>{const d=(u,p)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),l.resolve(p),a(u,p)};if(this.languages&&!this.isInitialized)return d(null,this.t.bind(this));this.changeLanguage(this.options.lng,d)};return this.options.resources||!this.options.initAsync?c():setTimeout(c,0),l}loadResources(t){var o,s;let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:qa;const n=oe(t)?t:this.language;if(typeof t=="function"&&(a=t),!this.options.resources||this.options.partialBundledLanguages){if((n==null?void 0:n.toLowerCase())==="cimode"&&(!this.options.preload||this.options.preload.length===0))return a();const i=[],l=c=>{if(!c||c==="cimode")return;this.services.languageUtils.toResolveHierarchy(c).forEach(u=>{u!=="cimode"&&i.indexOf(u)<0&&i.push(u)})};n?l(n):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(d=>l(d)),(s=(o=this.options.preload)==null?void 0:o.forEach)==null||s.call(o,c=>l(c)),this.services.backendConnector.load(i,this.options.ns,c=>{!c&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),a(c)})}else a(null)}reloadResources(t,r,a){const n=ua();return typeof t=="function"&&(a=t,t=void 0),typeof r=="function"&&(a=r,r=void 0),t||(t=this.languages),r||(r=this.options.ns),a||(a=qa),this.services.backendConnector.reload(t,r,o=>{n.resolve(),a(o)}),n}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return t.type==="backend"&&(this.modules.backend=t),(t.type==="logger"||t.log&&t.warn&&t.error)&&(this.modules.logger=t),t.type==="languageDetector"&&(this.modules.languageDetector=t),t.type==="i18nFormat"&&(this.modules.i18nFormat=t),t.type==="postProcessor"&&sc.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}setResolvedLanguage(t){if(!(!t||!this.languages)&&!(["cimode","dev"].indexOf(t)>-1))for(let r=0;r<this.languages.length;r++){const a=this.languages[r];if(!(["cimode","dev"].indexOf(a)>-1)&&this.store.hasLanguageSomeTranslations(a)){this.resolvedLanguage=a;break}}}changeLanguage(t,r){var a=this;this.isLanguageChangingTo=t;const n=ua();this.emit("languageChanging",t);const o=l=>{this.language=l,this.languages=this.services.languageUtils.toResolveHierarchy(l),this.resolvedLanguage=void 0,this.setResolvedLanguage(l)},s=(l,c)=>{c?(o(c),this.translator.changeLanguage(c),this.isLanguageChangingTo=void 0,this.emit("languageChanged",c),this.logger.log("languageChanged",c)):this.isLanguageChangingTo=void 0,n.resolve(function(){return a.t(...arguments)}),r&&r(l,function(){return a.t(...arguments)})},i=l=>{var d,u;!t&&!l&&this.services.languageDetector&&(l=[]);const c=oe(l)?l:this.services.languageUtils.getBestMatchFromCodes(l);c&&(this.language||o(c),this.translator.language||this.translator.changeLanguage(c),(u=(d=this.services.languageDetector)==null?void 0:d.cacheUserLanguage)==null||u.call(d,c)),this.loadResources(c,p=>{s(p,c)})};return!t&&this.services.languageDetector&&!this.services.languageDetector.async?i(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(i):this.services.languageDetector.detect(i):i(t),n}getFixedT(t,r,a){var n=this;const o=function(s,i){let l;if(typeof i!="object"){for(var c=arguments.length,d=new Array(c>2?c-2:0),u=2;u<c;u++)d[u-2]=arguments[u];l=n.options.overloadTranslationOptionHandler([s,i].concat(d))}else l={...i};l.lng=l.lng||o.lng,l.lngs=l.lngs||o.lngs,l.ns=l.ns||o.ns,l.keyPrefix!==""&&(l.keyPrefix=l.keyPrefix||a||o.keyPrefix);const p=n.options.keySeparator||".";let f;return l.keyPrefix&&Array.isArray(s)?f=s.map(y=>`${l.keyPrefix}${p}${y}`):f=l.keyPrefix?`${l.keyPrefix}${p}${s}`:s,n.t(f,l)};return oe(t)?o.lng=t:o.lngs=t,o.ns=r,o.keyPrefix=a,o}t(){var n;for(var t=arguments.length,r=new Array(t),a=0;a<t;a++)r[a]=arguments[a];return(n=this.translator)==null?void 0:n.translate(...r)}exists(){var n;for(var t=arguments.length,r=new Array(t),a=0;a<t;a++)r[a]=arguments[a];return(n=this.translator)==null?void 0:n.exists(...r)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const a=r.lng||this.resolvedLanguage||this.languages[0],n=this.options?this.options.fallbackLng:!1,o=this.languages[this.languages.length-1];if(a.toLowerCase()==="cimode")return!0;const s=(i,l)=>{const c=this.services.backendConnector.state[`${i}|${l}`];return c===-1||c===0||c===2};if(r.precheck){const i=r.precheck(this,s);if(i!==void 0)return i}return!!(this.hasResourceBundle(a,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||s(a,t)&&(!n||s(o,t)))}loadNamespaces(t,r){const a=ua();return this.options.ns?(oe(t)&&(t=[t]),t.forEach(n=>{this.options.ns.indexOf(n)<0&&this.options.ns.push(n)}),this.loadResources(n=>{a.resolve(),r&&r(n)}),a):(r&&r(),Promise.resolve())}loadLanguages(t,r){const a=ua();oe(t)&&(t=[t]);const n=this.options.preload||[],o=t.filter(s=>n.indexOf(s)<0&&this.services.languageUtils.isSupportedCode(s));return o.length?(this.options.preload=n.concat(o),this.loadResources(s=>{a.resolve(),r&&r(s)}),a):(r&&r(),Promise.resolve())}dir(t){var n,o;if(t||(t=this.resolvedLanguage||(((n=this.languages)==null?void 0:n.length)>0?this.languages[0]:this.language)),!t)return"rtl";const r=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],a=((o=this.services)==null?void 0:o.languageUtils)||new pi(gi());return r.indexOf(a.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;return new Ta(t,r)}cloneInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:qa;const a=t.forkResourceStore;a&&delete t.forkResourceStore;const n={...this.options,...t,isClone:!0},o=new Ta(n);if((t.debug!==void 0||t.prefix!==void 0)&&(o.logger=o.logger.clone(t)),["store","services","language"].forEach(i=>{o[i]=this[i]}),o.services={...this.services},o.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},a){const i=Object.keys(this.store.data).reduce((l,c)=>(l[c]={...this.store.data[c]},Object.keys(l[c]).reduce((d,u)=>(d[u]={...l[c][u]},d),{})),{});o.store=new ci(i,n),o.services.resourceStore=o.store}return o.translator=new wn(o.services,n),o.translator.on("*",function(i){for(var l=arguments.length,c=new Array(l>1?l-1:0),d=1;d<l;d++)c[d-1]=arguments[d];o.emit(i,...c)}),o.init(n,r),o.translator.options=n,o.translator.backendConnector.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},o}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const Je=Ta.createInstance();Je.createInstance=Ta.createInstance;Je.createInstance;Je.dir;Je.init;Je.loadResources;Je.reloadResources;Je.use;Je.changeLanguage;Je.getFixedT;Je.t;Je.exists;Je.setDefaultNamespace;Je.hasLoadedNamespace;Je.loadNamespaces;Je.loadLanguages;const cm={"Jogging.Cartesian.Translation.velocityMmPerSec.lb":"{{amount}} mm/s","Jogging.Cartesian.Rotation.velocityDegPerSec.lb":"{{amount}}°/s","Jogging.Velocity.lb":"Geschwindigkeit","General.degree.variable":"{{amount}}°","General.mm.variable":"{{amount}} mm","Jogging.Cartesian.MotionType.lb":"Bewegungstyp","Jogging.Cartesian.Translation.bt":"Translation","Jogging.Cartesian.Rotation.bt":"Rotation","Jogging.Joints.JointValues.lb":"Gelenkwerte","Jogging.Increment.Continuous.dd":"Fortlaufend","Jogging.Cartesian.Orientation.lb":"Orientierung","Jogging.JointLimitsReached.lb":"Gelenkgrenzen für Gelenk {{jointNumbers}} erreicht","Jogging.Orientation.coordsys":"Roboterbasis","Jogging.Orientation.tool":"Werkzeug","SafetyBar.ActivationToggle.Activate.bt":"Aktivieren","SafetyBar.ActivationToggle.Activated.bt":"Aktiviert","SafetyBar.ActivationToggle.Activating.bt":"Wird aktiviert…","SafetyBar.ActivationToggle.Deactivating.bt":"Wird deaktiviert…","SafetyBar.ControllerType.Physical.lb":"Physische Robotersteuerung","SafetyBar.ControllerType.Virtual.lb":"Virtuelle Robotersteuerung","SafetyBar.MotionGroup.Physical.Explanation.lb":"<code>{{motionGroupId}}</code> ist ein physische Robotersteuerung. Für die Bewegung dieses Roboters sind <strong>Sicherheitsmaßnahmen</strong> aktiv.","SafetyBar.MotionGroup.Virtual.Explanation.lb":"<1>{{motionGroupId}}</1> ist eine virtuelle Robotersteuerung ohne physisches Gegenstück. Der Roboter kann ohne Sicherheitsmaßnahmen bewegt werden.","SafetyBar.OperationMode.Auto.Explanation.lb":"Automatischer Betriebsmodus der Robotersteuerung aktiv. Automatisierte Bewegung ohne manuelle Bestätigung freigegeben.","SafetyBar.OperationMode.Automatic.ti":"Automatisch","SafetyBar.OperationMode.Error.Explanation.lb":"Fehler beim Abrufen des Betriebsmodus. Originalhandbediengerät des Roboters verwenden, um Fehler zu lösen.","SafetyBar.OperationMode.Error.lb":"Fehler","SafetyBar.OperationMode.Manual.Explanation.lb":`Die Robotersteuerung befindet sich im manuellen Betriebsmodus.
88
- Bei einem physischen Roboter bedeutet dies im Allgemeinen, dass ein Freigabeschalter gedrückt werden muss, damit sich der Roboter erfolgreich bewegen kann.`,"SafetyBar.OperationMode.Manual.lb":"Manuell","SafetyBar.OperationMode.ti":"Betriebsmodus","SafetyBar.SafetyState.Error.Explanation.lb":"Die Robotersteuerung ist in einen unerwarteten Sicherheitszustand eingetreten.","SafetyBar.SafetyState.Error.lb":"Fehler","SafetyBar.SafetyState.Estop.lb":"NOT-AUS","SafetyBar.SafetyState.ManualActionRequired.Explanation.lb":"Die Robotersteuerung ist in einen Sicherheitszustand eingetreten, der manuelle Maßnahmen zur Behebung erfordert.","SafetyBar.SafetyState.ManualActionRequired.lb":"Aktion erforderlich","SafetyBar.SafetyState.Normal.Explanation.lb":"Die Robotersteuerung befindet sich in einem sicheren Zustand. Roboterbewegungen sind möglich.","SafetyBar.SafetyState.Normal.lb":"Sicher","SafetyBar.SafetyState.Stop.Explanation.lb":"Die Robotersteuerung ist in einen Stoppzustand übergegangen. Bis der Stoppzustand aufgelöst ist, ist keine Bewegung mehr möglich.","SafetyBar.SafetyState.Stop.lb":"Stopp","SafetyBar.SafetyState.ti":"Sicherheitszustand","SafetyBar.StopState.Estop.Explanation.lb":"NOT-AUS aktiviert. NOT-AUS freischalten, um Roboter zu bewegen.","Jogging.Increment.hlb":"Schrittgröße","Jogging.CoordinateSystem.hlb":"Koordinatensystem","Jogging.Cartesian.bt":"Kartesisch","Jogging.Joints.bt":"Gelenke","Jogging.Velocity.bt":"Geschwindigkeit"},dm={"Jogging.Cartesian.Translation.velocityMmPerSec.lb":"{{amount}} mm/s","Jogging.Cartesian.Rotation.velocityDegPerSec.lb":"{{amount}}°/s","Jogging.Velocity.lb":"Velocity","General.degree.variable":"{{amount}}°","General.mm.variable":"{{amount}} mm","Jogging.Cartesian.MotionType.lb":"Motion type","Jogging.Cartesian.Translation.bt":"Translation","Jogging.Cartesian.Rotation.bt":"Rotation","Jogging.Joints.JointValues.lb":"Joint values","Jogging.Increment.Continuous.dd":"Continuous","Jogging.Cartesian.Orientation.lb":"Orientation","Jogging.Activating.lb":"Activating jogging","Jogging.JointLimitsReached.lb":"Joint limit reached for joint {{jointNumbers}}","Jogging.Orientation.coordsys":"Robot base","Jogging.Orientation.tool":"Tool","SafetyBar.ActivationToggle.Activate.bt":"Activate","SafetyBar.ActivationToggle.Activated.bt":"Activated","SafetyBar.ActivationToggle.Activating.bt":"Activating","SafetyBar.ActivationToggle.Deactivating.bt":"Deactivating","SafetyBar.ControllerType.Physical.lb":"Physical controller","SafetyBar.ControllerType.Virtual.lb":"Virtual controller","SafetyBar.MotionGroup.Physical.Explanation.lb":"<code>{{motionGroupId}}</code> is a physical robot controller. <strong>Safety precautions</strong> are active for the movement of this robot.","SafetyBar.MotionGroup.Virtual.Explanation.lb":"<1>{{motionGroupId}}</1> is a virtual robot controller with no physical counterpart. It can be freely manipulated without safety precautions.","SafetyBar.OperationMode.Auto.Explanation.lb":"Automatic operation mode active. Automated movement without manual confirmation enabled.","SafetyBar.OperationMode.Automatic.ti":"Automatic","SafetyBar.OperationMode.Error.Explanation.lb":"Failed to get operation mode. Use the original control panel to resolve the error.","SafetyBar.OperationMode.Error.lb":"Error","SafetyBar.OperationMode.Manual.Explanation.lb":"The robot controller is in manual operation mode. On a physical robot, this generally indicates that an enabling switch must be held for the robot to move successfully.","SafetyBar.OperationMode.Manual.lb":"Manual","SafetyBar.OperationMode.ti":"Operation mode","SafetyBar.SafetyState.Error.Explanation.lb":"The robot controller has entered an unexpected safety state.","SafetyBar.SafetyState.Error.lb":"Error","SafetyBar.SafetyState.Estop.lb":"E-Stop","SafetyBar.SafetyState.ManualActionRequired.Explanation.lb":"The robot controller has entered a safety state requiring manual action to resolve.","SafetyBar.SafetyState.ManualActionRequired.lb":"Action required","SafetyBar.SafetyState.Normal.Explanation.lb":"The robot controller is in a safe state. Robot movement is enabled.","SafetyBar.SafetyState.Normal.lb":"Safe","SafetyBar.SafetyState.Stop.Explanation.lb":"The robot controller has entered a stop state. Movement is no longer possible until the stop state is resolved.","SafetyBar.SafetyState.Stop.lb":"Stop","SafetyBar.SafetyState.ti":"Safety state","SafetyBar.StopState.Estop.Explanation.lb":"An emergency stop of the robot controller has been triggered. Movement of the robot is no longer possible until the estop is released.","Jogging.Increment.hlb":"Increment","Jogging.CoordinateSystem.hlb":"Coordinate system","Jogging.Cartesian.bt":"Cartesian","Jogging.Joints.bt":"Joints","Jogging.Velocity.bt":"Velocity"},gs=Je.createInstance();gs.use(Kd).init({supportedLngs:["en","de"],resources:{en:{translations:dm},de:{translations:cm}},ns:["translations"],defaultNS:"translations",detection:{order:["navigator","htmlTag"]}});function qr(e){return r=>b.jsx(um,{children:b.jsx(e,{...r})})}const um=({children:e})=>b.jsx(Me.I18nextProvider,{i18n:gs,children:e}),pm=({title:e,titleId:t,...r},a)=>J.createElement("svg",{width:21,height:21,viewBox:"0 0 21 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:a,"aria-labelledby":t,...r},e?J.createElement("title",{id:t},e):null,J.createElement("g",{id:"JogMinus"},J.createElement("path",{id:"Minus",d:"M0 13V8H21V13H0Z",fill:"white"}))),hm=ae.forwardRef(pm),mm=({title:e,titleId:t,...r},a)=>J.createElement("svg",{width:21,height:21,viewBox:"0 0 21 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:a,"aria-labelledby":t,...r},e?J.createElement("title",{id:t},e):null,J.createElement("g",{id:"JogPlus"},J.createElement("g",{id:"Plus"},J.createElement("path",{d:"M0 13V8H8V13H0Z",fill:"white"}),J.createElement("path",{d:"M8 0L13 2.18557e-07L13 21H8L8 0Z",fill:"white"}),J.createElement("path",{d:"M13 13V8H21V13H13Z",fill:"white"})))),fm=ae.forwardRef(mm);function Gn(e){ae.useEffect(e,[])}function ic(e){Gn(()=>Be.autorun(e))}function lc(e,t,r){Gn(()=>Be.reaction(e,t,r))}function Wr(e){return Gn(()=>{let t;function r(){e(),t=requestAnimationFrame(r)}return t=requestAnimationFrame(r),()=>{cancelAnimationFrame(t)}})}const No=qr(ke.observer(({colors:e,label:t,getDisplayedValue:r,startJogging:a,stopJogging:n,disabled:o,activeJoggingDirection:s,...i})=>{var F,N,z,K,E,$,L;Wr(()=>{const g=r(),M=p.current;M&&(M.textContent=g)});const l=W.useTheme(),[c,d]=ae.useState(null);ae.useEffect(()=>{o&&k()},[o]);const u=s||c,p=ae.useRef(null);e||(e={color:"#fff",backgroundColor:"#000",borderColor:"#000",buttonBackgroundColor:{disabled:"#000",default:"#000",hovered:"#000",pressed:"#000"},labelColor:"#000"});const f=u?(F=e.buttonBackgroundColor)==null?void 0:F.pressed:e.borderColor,y={width:"55px",color:e.color,path:{fill:e.color},alignContent:"center",fontSize:"37px",svg:{pointerEvents:"none"}},h={...y,backgroundColor:(N=e.buttonBackgroundColor)==null?void 0:N.default,":hover":{backgroundColor:(z=e.buttonBackgroundColor)==null?void 0:z.hovered},":active":{backgroundColor:(K=e.buttonBackgroundColor)==null?void 0:K.pressed,color:e.backgroundColor,path:{fill:e.backgroundColor}},":disabled":{backgroundColor:(E=e.buttonBackgroundColor)==null?void 0:E.disabled,"svg path":{fill:l.palette.action.disabled}}},x={...y,backgroundColor:($=e.buttonBackgroundColor)==null?void 0:$.pressed,color:e.backgroundColor,path:{fill:e.backgroundColor},":disabled":{backgroundColor:(L=e.buttonBackgroundColor)==null?void 0:L.pressed,"svg path":{fill:l.palette.action.disabled}}};function I(g,M){o||g.button===0&&(d(M),a(M))}function k(){d(null),n()}return b.jsxs(Dr,{height:"64px",direction:"row",justifyContent:"center",...i,children:[b.jsx(W.IconButton,{disabled:o,disableRipple:!0,onPointerDown:g=>I(g,"-"),onPointerUp:k,onPointerOut:k,size:"large",sx:{...u==="-"?x:h,borderRadius:"16px 0px 0px 16px",borderLeft:`2px solid ${f??"#fff"}`,borderBottom:`2px solid ${f??"#fff"}`,borderTop:`2px solid ${f??"#fff"}`},children:b.jsx(hm,{})}),b.jsxs(Dr,{spacing:"6px",sx:{width:"150px",backgroundColor:e.backgroundColor,alignItems:"center",justifyContent:"center",opacity:"0.9",borderBottom:`2px solid ${f??"#fff"}`,borderTop:`2px solid ${f??"#fff"}`},children:[b.jsx(Dr,{height:"22px",direction:"row",alignItems:"center",justifyItems:"center",spacing:1,sx:{userSelect:"none",color:e.color,".MuiTypography-root":{fontWeight:700,...o?{color:l.palette.action.disabled}:{}},...o?{"svg path":{fill:l.palette.action.disabled}}:{}},children:t}),b.jsx(W.Typography,{height:"22px",sx:{fontSize:"15px",color:o?l.palette.action.disabled:e.color,fontWeight:700},ref:p,children:r()})]}),b.jsx(W.IconButton,{disableRipple:!0,disabled:o,onPointerDown:g=>I(g,"+"),onPointerUp:k,onPointerOut:k,size:"large",sx:{...u==="+"?x:h,borderRadius:"0px 16px 16px 0px",borderRight:`2px solid ${f??"#fff"}`,borderBottom:`2px solid ${f??"#fff"}`,borderTop:`2px solid ${f??"#fff"}`},children:b.jsx(fm,{})})]})})),mr=Yp;function gm(e){return Ba("MuiSvgIcon",e)}Gl("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const ym=e=>{const{color:t,fontSize:r,classes:a}=e,n={root:["root",t!=="inherit"&&`color${We(t)}`,`fontSize${We(r)}`]};return ps(n,gm,a)},bm=$t("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="inherit"&&t[`color${We(r.color)}`],t[`fontSize${We(r.fontSize)}`]]}})(mr(({theme:e})=>{var t,r,a,n,o,s,i,l,c,d,u,p,f,y;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:(n=(t=e.transitions)==null?void 0:t.create)==null?void 0:n.call(t,"fill",{duration:(a=(r=(e.vars??e).transitions)==null?void 0:r.duration)==null?void 0:a.shorter}),variants:[{props:h=>!h.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:((s=(o=e.typography)==null?void 0:o.pxToRem)==null?void 0:s.call(o,20))||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:((l=(i=e.typography)==null?void 0:i.pxToRem)==null?void 0:l.call(i,24))||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:((d=(c=e.typography)==null?void 0:c.pxToRem)==null?void 0:d.call(c,35))||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,h])=>h&&h.main).map(([h])=>{var x,I;return{props:{color:h},style:{color:(I=(x=(e.vars??e).palette)==null?void 0:x[h])==null?void 0:I.main}}}),{props:{color:"action"},style:{color:(p=(u=(e.vars??e).palette)==null?void 0:u.action)==null?void 0:p.active}},{props:{color:"disabled"},style:{color:(y=(f=(e.vars??e).palette)==null?void 0:f.action)==null?void 0:y.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),Cn=J.forwardRef(function(t,r){const a=fs({props:t,name:"MuiSvgIcon"}),{children:n,className:o,color:s="inherit",component:i="svg",fontSize:l="medium",htmlColor:c,inheritViewBox:d=!1,titleAccess:u,viewBox:p="0 0 24 24",...f}=a,y=J.isValidElement(n)&&n.type==="svg",h={...a,color:s,component:i,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:d,viewBox:p,hasSvgAsChild:y},x={};d||(x.viewBox=p);const I=ym(h);return b.jsxs(bm,{as:i,className:Pt(I.root,o),focusable:"false",color:c,"aria-hidden":u?void 0:!0,role:u?"img":void 0,ref:r,...x,...f,...y&&n.props,ownerState:h,children:[y?n.props.children:n,u?b.jsx("title",{children:u}):null]})});process.env.NODE_ENV!=="production"&&(Cn.propTypes={children:S.node,classes:S.object,className:S.string,color:S.oneOfType([S.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),S.string]),component:S.elementType,fontSize:S.oneOfType([S.oneOf(["inherit","large","medium","small"]),S.string]),htmlColor:S.string,inheritViewBox:S.bool,shapeRendering:S.string,sx:S.oneOfType([S.arrayOf(S.oneOfType([S.func,S.object,S.bool])),S.func,S.object]),titleAccess:S.string,viewBox:S.string});Cn.muiName="SvgIcon";function Jn(e,t){function r(a,n){return b.jsx(Cn,{"data-testid":`${t}Icon`,ref:n,...a,children:e})}return process.env.NODE_ENV!=="production"&&(r.displayName=`${t}Icon`),r.muiName=Cn.muiName,J.memo(J.forwardRef(r))}const Sm=Jn(b.jsx("path",{d:"M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"ChevronLeft"),vm=Jn(b.jsx("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"ChevronRight");function dr(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var cc=typeof global=="object"&&global&&global.Object===Object&&global,xm=typeof self=="object"&&self&&self.Object===Object&&self,Rt=cc||xm||Function("return this")(),So=function(){return Rt.Date.now()},Om=/\s/;function wm(e){for(var t=e.length;t--&&Om.test(e.charAt(t)););return t}var Cm=/^\s+/;function Pm(e){return e&&e.slice(0,wm(e)+1).replace(Cm,"")}var Xt=Rt.Symbol,dc=Object.prototype,Vm=dc.hasOwnProperty,Rm=dc.toString,pa=Xt?Xt.toStringTag:void 0;function _m(e){var t=Vm.call(e,pa),r=e[pa];try{e[pa]=void 0;var a=!0}catch{}var n=Rm.call(e);return a&&(t?e[pa]=r:delete e[pa]),n}var Am=Object.prototype,Tm=Am.toString;function Em(e){return Tm.call(e)}var Im="[object Null]",Mm="[object Undefined]",bi=Xt?Xt.toStringTag:void 0;function fr(e){return e==null?e===void 0?Mm:Im:bi&&bi in Object(e)?_m(e):Em(e)}function ur(e){return e!=null&&typeof e=="object"}var jm="[object Symbol]";function Hn(e){return typeof e=="symbol"||ur(e)&&fr(e)==jm}var Si=NaN,$m=/^[-+]0x[0-9a-f]+$/i,Um=/^0b[01]+$/i,Lm=/^0o[0-7]+$/i,km=parseInt;function vi(e){if(typeof e=="number")return e;if(Hn(e))return Si;if(dr(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=dr(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Pm(e);var r=Um.test(e);return r||Lm.test(e)?km(e.slice(2),r?2:8):$m.test(e)?Si:+e}var Bm="Expected a function",Fm=Math.max,Nm=Math.min;function Dm(e,t,r){var a,n,o,s,i,l,c=0,d=!1,u=!1,p=!0;if(typeof e!="function")throw new TypeError(Bm);t=vi(t)||0,dr(r)&&(d=!!r.leading,u="maxWait"in r,o=u?Fm(vi(r.maxWait)||0,t):o,p="trailing"in r?!!r.trailing:p);function f(K){var E=a,$=n;return a=n=void 0,c=K,s=e.apply($,E),s}function y(K){return c=K,i=setTimeout(I,t),d?f(K):s}function h(K){var E=K-l,$=K-c,L=t-E;return u?Nm(L,o-$):L}function x(K){var E=K-l,$=K-c;return l===void 0||E>=t||E<0||u&&$>=o}function I(){var K=So();if(x(K))return k(K);i=setTimeout(I,h(K))}function k(K){return i=void 0,p&&a?f(K):(a=n=void 0,s)}function F(){i!==void 0&&clearTimeout(i),c=0,a=l=n=i=void 0}function N(){return i===void 0?s:k(So())}function z(){var K=So(),E=x(K);if(a=arguments,n=this,l=K,E){if(i===void 0)return y(l);if(u)return clearTimeout(i),i=setTimeout(I,t),f(l)}return i===void 0&&(i=setTimeout(I,t)),s}return z.cancel=F,z.flush=N,z}var zm="Expected a function";function Gm(e,t,r){var a=!0,n=!0;if(typeof e!="function")throw new TypeError(zm);return dr(r)&&(a="leading"in r?!!r.leading:a,n="trailing"in r?!!r.trailing:n),Dm(e,t,{leading:a,maxWait:t,trailing:n})}const uc=qr(ke.observer(({startJogging:e,stopJogging:t,lowerLimitDegs:r,upperLimitDegs:a,getValueDegs:n,disabled:o,...s})=>{var F,N,z,K,E,$,L,g,M,B,G,D,re,Z,xe;const{t:i}=Me.useTranslation(),[l,c]=ae.useState(),d=W.useTheme(),u={background:(F=d.palette.backgroundPaperElevation)==null?void 0:F[4],color:(N=d.palette.backgroundPaperElevation)==null?void 0:N[11]},p=ke.useLocalObservable(()=>({activeJoggingDir:null,startJogging(X){this.activeJoggingDir=X,e(X)},stopJogging(){this.activeJoggingDir=null,t()}})),f=Gm(()=>{c(n())},50);Wr(f);function y(X){X.button===0&&p.startJogging("-")}function h(X){X.button===0&&p.startJogging("+")}function x(X){p.stopJogging()}function I(X){p.stopJogging()}function k(X,ce=1){if(X===void 0||isNaN(X))return"";const fe=i("General.degree.variable",{amount:X.toFixed(ce)});return X>0&&ce===0?`+${fe}`:fe}return b.jsxs(Dr,{height:"64px",width:"100%",maxWidth:"260px",direction:"row",...s,sx:{"& .MuiIconButton-root":{width:"52px",color:d.palette.text.primary,alignContent:"center",backgroundColor:(z=d.palette.backgroundPaperElevation)==null?void 0:z[11],"& svg":{width:"42px",height:"42px"},"&.Mui-disabled":{backgroundColor:(K=d.palette.backgroundPaperElevation)==null?void 0:K[11],color:d.palette.action.disabled,opacity:1},"&:hover":{backgroundColor:(E=d.palette.backgroundPaperElevation)==null?void 0:E[9]},"&:active":{...u}}},children:[b.jsx(W.IconButton,{onPointerDown:y,onPointerUp:x,onPointerOut:I,disabled:o,disableRipple:!0,sx:{borderRadius:"16px 0px 0px 16px",...p.activeJoggingDir==="-"?u:{}},children:b.jsx(Sm,{sx:{pointerEvents:"none",color:(M=(g=(L=($=d.componentsExt)==null?void 0:$.JoggingPanel)==null?void 0:L.JoggingJoint)==null?void 0:g.Joint)==null?void 0:M.arrowColor}})}),b.jsxs(Dr,{flexGrow:1,alignItems:"center",justifyContent:"center",sx:{borderStyle:"solid",borderLeftWidth:0,borderRightWidth:0,border:"none",backgroundColor:(B=d.palette.backgroundPaperElevation)==null?void 0:B[11],paddingLeft:"20px",paddingRight:"20px",zIndex:1},children:[b.jsx(W.Typography,{sx:{fontSize:"15px",fontWeight:700,position:"relative",top:"5px",color:o?d.palette.action.disabled:d.palette.text.primary},children:k(l)}),b.jsx(W.Slider,{disabled:!0,"aria-label":"Joint position",min:r,max:a,value:l||0,track:!1,sx:{"& .MuiSlider-mark":{display:"none"},"& .MuiSlider-thumb":{width:"5px",height:"12px",borderRadius:"2px",color:o?d.palette.action.disabled:d.palette.text.primary},"& .MuiSlider-markLabel":{top:"20px",fontSize:"12px",color:o?d.palette.action.disabled:d.palette.text.secondary},"& .MuiSlider-rail":{backgroundColor:(G=d.palette.backgroundPaperElevation)==null?void 0:G[5],opacity:1}},marks:r!==void 0&&a!==void 0&&[{value:r,label:k(r,0)},{value:a,label:k(a,0)}]})]}),b.jsx(W.IconButton,{onPointerDown:h,onPointerUp:x,onPointerOut:I,disabled:o,disableRipple:!0,sx:{borderRadius:"0px 16px 16px 0px",...p.activeJoggingDir==="+"?u:{}},children:b.jsx(vm,{sx:{pointerEvents:"none",color:(xe=(Z=(re=(D=d.componentsExt)==null?void 0:D.JoggingPanel)==null?void 0:re.JoggingJoint)==null?void 0:Z.Joint)==null?void 0:xe.arrowColor}})})]})})),Jm=Jn(b.jsx("path",{d:"M10 9h4V6h3l-5-5-5 5h3zm-1 1H6V7l-5 5 5 5v-3h3zm14 2-5-5v3h-3v4h3v3zm-9 3h-4v3H7l5 5 5-5h-3z"}),"OpenWith"),Hm=Jn(b.jsx("path",{d:"M18 16.08c-.76 0-1.44.3-1.96.77L8.91 12.7c.05-.23.09-.46.09-.7s-.04-.47-.09-.7l7.05-4.11c.54.5 1.25.81 2.04.81 1.66 0 3-1.34 3-3s-1.34-3-3-3-3 1.34-3 3c0 .24.04.47.09.7L8.04 9.81C7.5 9.31 6.79 9 6 9c-1.66 0-3 1.34-3 3s1.34 3 3 3c.79 0 1.5-.31 2.04-.81l7.12 4.16c-.05.21-.08.43-.08.65 0 1.61 1.31 2.92 2.92 2.92s2.92-1.31 2.92-2.92-1.31-2.92-2.92-2.92"}),"Share");function qm(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var pc=qm;function Wm(){this.__data__=[],this.size=0}var Km=Wm;function Qm(e,t){return e===t||e!==e&&t!==t}var hc=Qm;function Ym(e,t){for(var r=e.length;r--;)if(hc(e[r][0],t))return r;return-1}var qn=Ym,Xm=Array.prototype,Zm=Xm.splice;function ef(e){var t=this.__data__,r=qn(t,e);if(r<0)return!1;var a=t.length-1;return r==a?t.pop():Zm.call(t,r,1),--this.size,!0}var tf=ef;function rf(e){var t=this.__data__,r=qn(t,e);return r<0?void 0:t[r][1]}var af=rf;function nf(e){return qn(this.__data__,e)>-1}var of=nf;function sf(e,t){var r=this.__data__,a=qn(r,e);return a<0?(++this.size,r.push([e,t])):r[a][1]=t,this}var lf=sf;function Kr(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var a=e[t];this.set(a[0],a[1])}}Kr.prototype.clear=Km;Kr.prototype.delete=tf;Kr.prototype.get=af;Kr.prototype.has=of;Kr.prototype.set=lf;var Wn=Kr;function cf(){this.__data__=new Wn,this.size=0}var df=cf;function uf(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}var pf=uf;function hf(e){return this.__data__.get(e)}var mf=hf;function ff(e){return this.__data__.has(e)}var gf=ff,yf=typeof global=="object"&&global&&global.Object===Object&&global,mc=yf,bf=typeof self=="object"&&self&&self.Object===Object&&self,Sf=mc||bf||Function("return this")(),Ut=Sf,vf=Ut.Symbol,Hr=vf,fc=Object.prototype,xf=fc.hasOwnProperty,Of=fc.toString,ha=Hr?Hr.toStringTag:void 0;function wf(e){var t=xf.call(e,ha),r=e[ha];try{e[ha]=void 0;var a=!0}catch{}var n=Of.call(e);return a&&(t?e[ha]=r:delete e[ha]),n}var Cf=wf,Pf=Object.prototype,Vf=Pf.toString;function Rf(e){return Vf.call(e)}var _f=Rf,Af="[object Null]",Tf="[object Undefined]",xi=Hr?Hr.toStringTag:void 0;function Ef(e){return e==null?e===void 0?Tf:Af:xi&&xi in Object(e)?Cf(e):_f(e)}var Fa=Ef,If="[object AsyncFunction]",Mf="[object Function]",jf="[object GeneratorFunction]",$f="[object Proxy]";function Uf(e){if(!pc(e))return!1;var t=Fa(e);return t==Mf||t==jf||t==If||t==$f}var gc=Uf,Lf=Ut["__core-js_shared__"],vo=Lf,Oi=function(){var e=/[^.]+$/.exec(vo&&vo.keys&&vo.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function kf(e){return!!Oi&&Oi in e}var Bf=kf,Ff=Function.prototype,Nf=Ff.toString;function Df(e){if(e!=null){try{return Nf.call(e)}catch{}try{return e+""}catch{}}return""}var gr=Df,zf=/[\\^$.*+?()[\]{}|]/g,Gf=/^\[object .+?Constructor\]$/,Jf=Function.prototype,Hf=Object.prototype,qf=Jf.toString,Wf=Hf.hasOwnProperty,Kf=RegExp("^"+qf.call(Wf).replace(zf,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Qf(e){if(!pc(e)||Bf(e))return!1;var t=gc(e)?Kf:Gf;return t.test(gr(e))}var Yf=Qf;function Xf(e,t){return e==null?void 0:e[t]}var Zf=Xf;function eg(e,t){var r=Zf(e,t);return Yf(r)?r:void 0}var Qr=eg,tg=Qr(Ut,"Map"),Ea=tg,rg=Qr(Object,"create"),Ia=rg;function ag(){this.__data__=Ia?Ia(null):{},this.size=0}var ng=ag;function og(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var sg=og,ig="__lodash_hash_undefined__",lg=Object.prototype,cg=lg.hasOwnProperty;function dg(e){var t=this.__data__;if(Ia){var r=t[e];return r===ig?void 0:r}return cg.call(t,e)?t[e]:void 0}var ug=dg,pg=Object.prototype,hg=pg.hasOwnProperty;function mg(e){var t=this.__data__;return Ia?t[e]!==void 0:hg.call(t,e)}var fg=mg,gg="__lodash_hash_undefined__";function yg(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Ia&&t===void 0?gg:t,this}var bg=yg;function Yr(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var a=e[t];this.set(a[0],a[1])}}Yr.prototype.clear=ng;Yr.prototype.delete=sg;Yr.prototype.get=ug;Yr.prototype.has=fg;Yr.prototype.set=bg;var wi=Yr;function Sg(){this.size=0,this.__data__={hash:new wi,map:new(Ea||Wn),string:new wi}}var vg=Sg;function xg(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var Og=xg;function wg(e,t){var r=e.__data__;return Og(t)?r[typeof t=="string"?"string":"hash"]:r.map}var Kn=wg;function Cg(e){var t=Kn(this,e).delete(e);return this.size-=t?1:0,t}var Pg=Cg;function Vg(e){return Kn(this,e).get(e)}var Rg=Vg;function _g(e){return Kn(this,e).has(e)}var Ag=_g;function Tg(e,t){var r=Kn(this,e),a=r.size;return r.set(e,t),this.size+=r.size==a?0:1,this}var Eg=Tg;function Xr(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var a=e[t];this.set(a[0],a[1])}}Xr.prototype.clear=vg;Xr.prototype.delete=Pg;Xr.prototype.get=Rg;Xr.prototype.has=Ag;Xr.prototype.set=Eg;var yc=Xr,Ig=200;function Mg(e,t){var r=this.__data__;if(r instanceof Wn){var a=r.__data__;if(!Ea||a.length<Ig-1)return a.push([e,t]),this.size=++r.size,this;r=this.__data__=new yc(a)}return r.set(e,t),this.size=r.size,this}var jg=Mg;function Zr(e){var t=this.__data__=new Wn(e);this.size=t.size}Zr.prototype.clear=df;Zr.prototype.delete=pf;Zr.prototype.get=mf;Zr.prototype.has=gf;Zr.prototype.set=jg;var xo=Zr,$g="__lodash_hash_undefined__";function Ug(e){return this.__data__.set(e,$g),this}var Lg=Ug;function kg(e){return this.__data__.has(e)}var Bg=kg;function Pn(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new yc;++t<r;)this.add(e[t])}Pn.prototype.add=Pn.prototype.push=Lg;Pn.prototype.has=Bg;var Fg=Pn;function Ng(e,t){for(var r=-1,a=e==null?0:e.length;++r<a;)if(t(e[r],r,e))return!0;return!1}var Dg=Ng;function zg(e,t){return e.has(t)}var Gg=zg,Jg=1,Hg=2;function qg(e,t,r,a,n,o){var s=r&Jg,i=e.length,l=t.length;if(i!=l&&!(s&&l>i))return!1;var c=o.get(e),d=o.get(t);if(c&&d)return c==t&&d==e;var u=-1,p=!0,f=r&Hg?new Fg:void 0;for(o.set(e,t),o.set(t,e);++u<i;){var y=e[u],h=t[u];if(a)var x=s?a(h,y,u,t,e,o):a(y,h,u,e,t,o);if(x!==void 0){if(x)continue;p=!1;break}if(f){if(!Dg(t,function(I,k){if(!Gg(f,k)&&(y===I||n(y,I,r,a,o)))return f.push(k)})){p=!1;break}}else if(!(y===h||n(y,h,r,a,o))){p=!1;break}}return o.delete(e),o.delete(t),p}var bc=qg,Wg=Ut.Uint8Array,Ci=Wg;function Kg(e){var t=-1,r=Array(e.size);return e.forEach(function(a,n){r[++t]=[n,a]}),r}var Qg=Kg;function Yg(e){var t=-1,r=Array(e.size);return e.forEach(function(a){r[++t]=a}),r}var Xg=Yg,Zg=1,ey=2,ty="[object Boolean]",ry="[object Date]",ay="[object Error]",ny="[object Map]",oy="[object Number]",sy="[object RegExp]",iy="[object Set]",ly="[object String]",cy="[object Symbol]",dy="[object ArrayBuffer]",uy="[object DataView]",Pi=Hr?Hr.prototype:void 0,Oo=Pi?Pi.valueOf:void 0;function py(e,t,r,a,n,o,s){switch(r){case uy:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case dy:return!(e.byteLength!=t.byteLength||!o(new Ci(e),new Ci(t)));case ty:case ry:case oy:return hc(+e,+t);case ay:return e.name==t.name&&e.message==t.message;case sy:case ly:return e==t+"";case ny:var i=Qg;case iy:var l=a&Zg;if(i||(i=Xg),e.size!=t.size&&!l)return!1;var c=s.get(e);if(c)return c==t;a|=ey,s.set(e,t);var d=bc(i(e),i(t),a,n,o,s);return s.delete(e),d;case cy:if(Oo)return Oo.call(e)==Oo.call(t)}return!1}var hy=py;function my(e,t){for(var r=-1,a=t.length,n=e.length;++r<a;)e[n+r]=t[r];return e}var fy=my,gy=Array.isArray,Vn=gy;function yy(e,t,r){var a=t(e);return Vn(e)?a:fy(a,r(e))}var by=yy;function Sy(e,t){for(var r=-1,a=e==null?0:e.length,n=0,o=[];++r<a;){var s=e[r];t(s,r,e)&&(o[n++]=s)}return o}var vy=Sy;function xy(){return[]}var Oy=xy,wy=Object.prototype,Cy=wy.propertyIsEnumerable,Vi=Object.getOwnPropertySymbols,Py=Vi?function(e){return e==null?[]:(e=Object(e),vy(Vi(e),function(t){return Cy.call(e,t)}))}:Oy,Vy=Py;function Ry(e,t){for(var r=-1,a=Array(e);++r<e;)a[r]=t(r);return a}var _y=Ry;function Ay(e){return e!=null&&typeof e=="object"}var Ma=Ay,Ty="[object Arguments]";function Ey(e){return Ma(e)&&Fa(e)==Ty}var Ri=Ey,Sc=Object.prototype,Iy=Sc.hasOwnProperty,My=Sc.propertyIsEnumerable,jy=Ri(function(){return arguments}())?Ri:function(e){return Ma(e)&&Iy.call(e,"callee")&&!My.call(e,"callee")},$y=jy;function Uy(){return!1}var Ly=Uy,vc=typeof exports=="object"&&exports&&!exports.nodeType&&exports,_i=vc&&typeof module=="object"&&module&&!module.nodeType&&module,ky=_i&&_i.exports===vc,Ai=ky?Ut.Buffer:void 0,By=Ai?Ai.isBuffer:void 0,Fy=By||Ly,Do=Fy,Ny=9007199254740991,Dy=/^(?:0|[1-9]\d*)$/;function zy(e,t){var r=typeof e;return t=t??Ny,!!t&&(r=="number"||r!="symbol"&&Dy.test(e))&&e>-1&&e%1==0&&e<t}var Gy=zy,Jy=9007199254740991;function Hy(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Jy}var xc=Hy,qy="[object Arguments]",Wy="[object Array]",Ky="[object Boolean]",Qy="[object Date]",Yy="[object Error]",Xy="[object Function]",Zy="[object Map]",eb="[object Number]",tb="[object Object]",rb="[object RegExp]",ab="[object Set]",nb="[object String]",ob="[object WeakMap]",sb="[object ArrayBuffer]",ib="[object DataView]",lb="[object Float32Array]",cb="[object Float64Array]",db="[object Int8Array]",ub="[object Int16Array]",pb="[object Int32Array]",hb="[object Uint8Array]",mb="[object Uint8ClampedArray]",fb="[object Uint16Array]",gb="[object Uint32Array]",Oe={};Oe[lb]=Oe[cb]=Oe[db]=Oe[ub]=Oe[pb]=Oe[hb]=Oe[mb]=Oe[fb]=Oe[gb]=!0;Oe[qy]=Oe[Wy]=Oe[sb]=Oe[Ky]=Oe[ib]=Oe[Qy]=Oe[Yy]=Oe[Xy]=Oe[Zy]=Oe[eb]=Oe[tb]=Oe[rb]=Oe[ab]=Oe[nb]=Oe[ob]=!1;function yb(e){return Ma(e)&&xc(e.length)&&!!Oe[Fa(e)]}var bb=yb;function Sb(e){return function(t){return e(t)}}var vb=Sb,Oc=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Pa=Oc&&typeof module=="object"&&module&&!module.nodeType&&module,xb=Pa&&Pa.exports===Oc,wo=xb&&mc.process,Ob=function(){try{var e=Pa&&Pa.require&&Pa.require("util").types;return e||wo&&wo.binding&&wo.binding("util")}catch{}}(),Ti=Ob,Ei=Ti&&Ti.isTypedArray,wb=Ei?vb(Ei):bb,wc=wb,Cb=Object.prototype,Pb=Cb.hasOwnProperty;function Vb(e,t){var r=Vn(e),a=!r&&$y(e),n=!r&&!a&&Do(e),o=!r&&!a&&!n&&wc(e),s=r||a||n||o,i=s?_y(e.length,String):[],l=i.length;for(var c in e)(t||Pb.call(e,c))&&!(s&&(c=="length"||n&&(c=="offset"||c=="parent")||o&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||Gy(c,l)))&&i.push(c);return i}var Rb=Vb,_b=Object.prototype;function Ab(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||_b;return e===r}var Tb=Ab;function Eb(e,t){return function(r){return e(t(r))}}var Ib=Eb,Mb=Ib(Object.keys,Object),jb=Mb,$b=Object.prototype,Ub=$b.hasOwnProperty;function Lb(e){if(!Tb(e))return jb(e);var t=[];for(var r in Object(e))Ub.call(e,r)&&r!="constructor"&&t.push(r);return t}var kb=Lb;function Bb(e){return e!=null&&xc(e.length)&&!gc(e)}var Fb=Bb;function Nb(e){return Fb(e)?Rb(e):kb(e)}var Db=Nb;function zb(e){return by(e,Db,Vy)}var Ii=zb,Gb=1,Jb=Object.prototype,Hb=Jb.hasOwnProperty;function qb(e,t,r,a,n,o){var s=r&Gb,i=Ii(e),l=i.length,c=Ii(t),d=c.length;if(l!=d&&!s)return!1;for(var u=l;u--;){var p=i[u];if(!(s?p in t:Hb.call(t,p)))return!1}var f=o.get(e),y=o.get(t);if(f&&y)return f==t&&y==e;var h=!0;o.set(e,t),o.set(t,e);for(var x=s;++u<l;){p=i[u];var I=e[p],k=t[p];if(a)var F=s?a(k,I,p,t,e,o):a(I,k,p,e,t,o);if(!(F===void 0?I===k||n(I,k,r,a,o):F)){h=!1;break}x||(x=p=="constructor")}if(h&&!x){var N=e.constructor,z=t.constructor;N!=z&&"constructor"in e&&"constructor"in t&&!(typeof N=="function"&&N instanceof N&&typeof z=="function"&&z instanceof z)&&(h=!1)}return o.delete(e),o.delete(t),h}var Wb=qb,Kb=Qr(Ut,"DataView"),zo=Kb,Qb=Qr(Ut,"Promise"),Go=Qb,Yb=Qr(Ut,"Set"),Jo=Yb,Xb=Qr(Ut,"WeakMap"),Ho=Xb,Mi="[object Map]",Zb="[object Object]",ji="[object Promise]",$i="[object Set]",Ui="[object WeakMap]",Li="[object DataView]",e0=gr(zo),t0=gr(Ea),r0=gr(Go),a0=gr(Jo),n0=gr(Ho),or=Fa;(zo&&or(new zo(new ArrayBuffer(1)))!=Li||Ea&&or(new Ea)!=Mi||Go&&or(Go.resolve())!=ji||Jo&&or(new Jo)!=$i||Ho&&or(new Ho)!=Ui)&&(or=function(e){var t=Fa(e),r=t==Zb?e.constructor:void 0,a=r?gr(r):"";if(a)switch(a){case e0:return Li;case t0:return Mi;case r0:return ji;case a0:return $i;case n0:return Ui}return t});var ki=or,o0=1,Bi="[object Arguments]",Fi="[object Array]",Wa="[object Object]",s0=Object.prototype,Ni=s0.hasOwnProperty;function i0(e,t,r,a,n,o){var s=Vn(e),i=Vn(t),l=s?Fi:ki(e),c=i?Fi:ki(t);l=l==Bi?Wa:l,c=c==Bi?Wa:c;var d=l==Wa,u=c==Wa,p=l==c;if(p&&Do(e)){if(!Do(t))return!1;s=!0,d=!1}if(p&&!d)return o||(o=new xo),s||wc(e)?bc(e,t,r,a,n,o):hy(e,t,l,r,a,n,o);if(!(r&o0)){var f=d&&Ni.call(e,"__wrapped__"),y=u&&Ni.call(t,"__wrapped__");if(f||y){var h=f?e.value():e,x=y?t.value():t;return o||(o=new xo),n(h,x,r,a,o)}}return p?(o||(o=new xo),Wb(e,t,r,a,n,o)):!1}var l0=i0;function Cc(e,t,r,a,n){return e===t?!0:e==null||t==null||!Ma(e)&&!Ma(t)?e!==e&&t!==t:l0(e,t,r,a,Cc,n)}var c0=Cc;function d0(e,t){return c0(e,t)}var u0=d0;/*! *****************************************************************************
85
+ export default theme;`}function Bo(e={},...t){const{breakpoints:r,mixins:a={},spacing:n,palette:o={},transitions:s={},typography:i={},shape:l,...c}=e;if(e.vars&&e.generateThemeVars===void 0)throw new Error(process.env.NODE_ENV!=="production"?"MUI: `vars` is a private field used for CSS variables support.\nPlease use another name or follow the [docs](https://mui.com/material-ui/customization/css-theme-variables/usage/) to enable the feature.":Qt(20));const d=hs(o),u=Nn(e);let p=Ke(u,{mixins:Sh(u.breakpoints,a),palette:d,shadows:Ph.slice(),typography:xh(d,i),transitions:Ah(s),zIndex:{...Th}});if(p=Ke(p,c),p=t.reduce((f,g)=>Ke(f,g),p),process.env.NODE_ENV!=="production"){const f=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],g=(h,x)=>{let E;for(E in h){const U=h[E];if(f.includes(E)&&Object.keys(U).length>0){if(process.env.NODE_ENV!=="production"){const F=Ba("",E);console.error([`MUI: The \`${x}\` component increases the CSS specificity of the \`${E}\` internal state.`,"You can not override it like this: ",JSON.stringify(h,null,2),"",`Instead, you need to use the '&.${F}' syntax:`,JSON.stringify({root:{[`&.${F}`]:U}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
86
+ `))}h[E]={}}}};Object.keys(p.components).forEach(h=>{const x=p.components[h].styleOverrides;x&&h.startsWith("Mui")&&g(x,h)})}return p.unstable_sxConfig={...ka,...c==null?void 0:c.unstable_sxConfig},p.unstable_sx=function(g){return Jr({sx:g,theme:this})},p.toRuntimeSource=tc,p}function Ih(e){let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,Math.round(t*10)/1e3}const Mh=[...Array(25)].map((e,t)=>{if(t===0)return"none";const r=Ih(t);return`linear-gradient(rgba(255 255 255 / ${r}), rgba(255 255 255 / ${r}))`});function rc(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function ac(e){return e==="dark"?Mh:[]}function jh(e){const{palette:t={mode:"light"},opacity:r,overlays:a,...n}=e,o=hs(t);return{palette:o,opacity:{...rc(o.mode),...r},overlays:a||ac(o.mode),...n}}function $h(e){var t;return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!((t=e[1])!=null&&t.match(/(mode|contrastThreshold|tonalOffset)/))}const Uh=e=>[...[...Array(25)].map((t,r)=>`--${e?`${e}-`:""}overlays-${r}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],Lh=e=>(t,r)=>{const a=e.rootSelector||":root",n=e.colorSchemeSelector;let o=n;if(n==="class"&&(o=".%s"),n==="data"&&(o="[data-%s]"),n!=null&&n.startsWith("data-")&&!n.includes("%s")&&(o=`[${n}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const s={};return Uh(e.cssVarPrefix).forEach(i=>{s[i]=r[i],delete r[i]}),o==="media"?{[a]:r,"@media (prefers-color-scheme: dark)":{[a]:s}}:o?{[o.replace("%s",t)]:s,[`${a}, ${o.replace("%s",t)}`]:r}:{[a]:{...r,...s}}}if(o&&o!=="media")return`${a}, ${o.replace("%s",String(t))}`}else if(t){if(o==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[a]:r}};if(o)return o.replace("%s",String(t))}return a};function kh(e,t){t.forEach(r=>{e[r]||(e[r]={})})}function $(e,t,r){!e[t]&&r&&(e[t]=r)}function Oa(e){return typeof e!="string"||!e.startsWith("hsl")?e:Yl(e)}function It(e,t){`${t}Channel`in e||(e[`${t}Channel`]=xa(Oa(e[t]),`MUI: Can't create \`palette.${t}Channel\` because \`palette.${t}\` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().
87
+ To suppress this warning, you need to explicitly provide the \`palette.${t}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`))}function Bh(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const St=e=>{try{return e()}catch{}},Fh=(e="mui")=>Xp(e);function yo(e,t,r,a){if(!t)return;t=t===!0?{}:t;const n=a==="dark"?"dark":"light";if(!r){e[a]=jh({...t,palette:{mode:n,...t==null?void 0:t.palette}});return}const{palette:o,...s}=Bo({...r,palette:{mode:n,...t==null?void 0:t.palette}});return e[a]={...t,palette:o,opacity:{...rc(n),...t==null?void 0:t.opacity},overlays:(t==null?void 0:t.overlays)||ac(n)},s}function Nh(e={},...t){const{colorSchemes:r={light:!0},defaultColorScheme:a,disableCssColorScheme:n=!1,cssVarPrefix:o="mui",shouldSkipGeneratingVar:s=$h,colorSchemeSelector:i=r.light&&r.dark?"media":void 0,rootSelector:l=":root",...c}=e,d=Object.keys(r)[0],u=a||(r.light&&d!=="light"?"light":d),p=Fh(o),{[u]:f,light:g,dark:h,...x}=r,E={...x};let U=f;if((u==="dark"&&!("dark"in r)||u==="light"&&!("light"in r))&&(U=!0),!U)throw new Error(process.env.NODE_ENV!=="production"?`MUI: The \`colorSchemes.${u}\` option is either missing or invalid.`:Qt(21,u));const F=yo(E,U,c,u);g&&!E.light&&yo(E,g,void 0,"light"),h&&!E.dark&&yo(E,h,void 0,"dark");let N={defaultColorScheme:u,...F,cssVarPrefix:o,colorSchemeSelector:i,rootSelector:l,getCssVar:p,colorSchemes:E,font:{...bh(F.typography),...F.font},spacing:Bh(c.spacing)};Object.keys(N.colorSchemes).forEach(k=>{const y=N.colorSchemes[k].palette,M=B=>{const z=B.split("-"),D=z[1],re=z[2];return p(B,y[D][re])};if(y.mode==="light"&&($(y.common,"background","#fff"),$(y.common,"onBackground","#000")),y.mode==="dark"&&($(y.common,"background","#000"),$(y.common,"onBackground","#fff")),kh(y,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),y.mode==="light"){$(y.Alert,"errorColor",Se(y.error.light,.6)),$(y.Alert,"infoColor",Se(y.info.light,.6)),$(y.Alert,"successColor",Se(y.success.light,.6)),$(y.Alert,"warningColor",Se(y.warning.light,.6)),$(y.Alert,"errorFilledBg",M("palette-error-main")),$(y.Alert,"infoFilledBg",M("palette-info-main")),$(y.Alert,"successFilledBg",M("palette-success-main")),$(y.Alert,"warningFilledBg",M("palette-warning-main")),$(y.Alert,"errorFilledColor",St(()=>y.getContrastText(y.error.main))),$(y.Alert,"infoFilledColor",St(()=>y.getContrastText(y.info.main))),$(y.Alert,"successFilledColor",St(()=>y.getContrastText(y.success.main))),$(y.Alert,"warningFilledColor",St(()=>y.getContrastText(y.warning.main))),$(y.Alert,"errorStandardBg",ve(y.error.light,.9)),$(y.Alert,"infoStandardBg",ve(y.info.light,.9)),$(y.Alert,"successStandardBg",ve(y.success.light,.9)),$(y.Alert,"warningStandardBg",ve(y.warning.light,.9)),$(y.Alert,"errorIconColor",M("palette-error-main")),$(y.Alert,"infoIconColor",M("palette-info-main")),$(y.Alert,"successIconColor",M("palette-success-main")),$(y.Alert,"warningIconColor",M("palette-warning-main")),$(y.AppBar,"defaultBg",M("palette-grey-100")),$(y.Avatar,"defaultBg",M("palette-grey-400")),$(y.Button,"inheritContainedBg",M("palette-grey-300")),$(y.Button,"inheritContainedHoverBg",M("palette-grey-A100")),$(y.Chip,"defaultBorder",M("palette-grey-400")),$(y.Chip,"defaultAvatarColor",M("palette-grey-700")),$(y.Chip,"defaultIconColor",M("palette-grey-700")),$(y.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),$(y.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),$(y.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),$(y.LinearProgress,"primaryBg",ve(y.primary.main,.62)),$(y.LinearProgress,"secondaryBg",ve(y.secondary.main,.62)),$(y.LinearProgress,"errorBg",ve(y.error.main,.62)),$(y.LinearProgress,"infoBg",ve(y.info.main,.62)),$(y.LinearProgress,"successBg",ve(y.success.main,.62)),$(y.LinearProgress,"warningBg",ve(y.warning.main,.62)),$(y.Skeleton,"bg",`rgba(${M("palette-text-primaryChannel")} / 0.11)`),$(y.Slider,"primaryTrack",ve(y.primary.main,.62)),$(y.Slider,"secondaryTrack",ve(y.secondary.main,.62)),$(y.Slider,"errorTrack",ve(y.error.main,.62)),$(y.Slider,"infoTrack",ve(y.info.main,.62)),$(y.Slider,"successTrack",ve(y.success.main,.62)),$(y.Slider,"warningTrack",ve(y.warning.main,.62));const B=Ha(y.background.default,.8);$(y.SnackbarContent,"bg",B),$(y.SnackbarContent,"color",St(()=>y.getContrastText(B))),$(y.SpeedDialAction,"fabHoverBg",Ha(y.background.paper,.15)),$(y.StepConnector,"border",M("palette-grey-400")),$(y.StepContent,"border",M("palette-grey-400")),$(y.Switch,"defaultColor",M("palette-common-white")),$(y.Switch,"defaultDisabledColor",M("palette-grey-100")),$(y.Switch,"primaryDisabledColor",ve(y.primary.main,.62)),$(y.Switch,"secondaryDisabledColor",ve(y.secondary.main,.62)),$(y.Switch,"errorDisabledColor",ve(y.error.main,.62)),$(y.Switch,"infoDisabledColor",ve(y.info.main,.62)),$(y.Switch,"successDisabledColor",ve(y.success.main,.62)),$(y.Switch,"warningDisabledColor",ve(y.warning.main,.62)),$(y.TableCell,"border",ve(Ja(y.divider,1),.88)),$(y.Tooltip,"bg",Ja(y.grey[700],.92))}if(y.mode==="dark"){$(y.Alert,"errorColor",ve(y.error.light,.6)),$(y.Alert,"infoColor",ve(y.info.light,.6)),$(y.Alert,"successColor",ve(y.success.light,.6)),$(y.Alert,"warningColor",ve(y.warning.light,.6)),$(y.Alert,"errorFilledBg",M("palette-error-dark")),$(y.Alert,"infoFilledBg",M("palette-info-dark")),$(y.Alert,"successFilledBg",M("palette-success-dark")),$(y.Alert,"warningFilledBg",M("palette-warning-dark")),$(y.Alert,"errorFilledColor",St(()=>y.getContrastText(y.error.dark))),$(y.Alert,"infoFilledColor",St(()=>y.getContrastText(y.info.dark))),$(y.Alert,"successFilledColor",St(()=>y.getContrastText(y.success.dark))),$(y.Alert,"warningFilledColor",St(()=>y.getContrastText(y.warning.dark))),$(y.Alert,"errorStandardBg",Se(y.error.light,.9)),$(y.Alert,"infoStandardBg",Se(y.info.light,.9)),$(y.Alert,"successStandardBg",Se(y.success.light,.9)),$(y.Alert,"warningStandardBg",Se(y.warning.light,.9)),$(y.Alert,"errorIconColor",M("palette-error-main")),$(y.Alert,"infoIconColor",M("palette-info-main")),$(y.Alert,"successIconColor",M("palette-success-main")),$(y.Alert,"warningIconColor",M("palette-warning-main")),$(y.AppBar,"defaultBg",M("palette-grey-900")),$(y.AppBar,"darkBg",M("palette-background-paper")),$(y.AppBar,"darkColor",M("palette-text-primary")),$(y.Avatar,"defaultBg",M("palette-grey-600")),$(y.Button,"inheritContainedBg",M("palette-grey-800")),$(y.Button,"inheritContainedHoverBg",M("palette-grey-700")),$(y.Chip,"defaultBorder",M("palette-grey-700")),$(y.Chip,"defaultAvatarColor",M("palette-grey-300")),$(y.Chip,"defaultIconColor",M("palette-grey-300")),$(y.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),$(y.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),$(y.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),$(y.LinearProgress,"primaryBg",Se(y.primary.main,.5)),$(y.LinearProgress,"secondaryBg",Se(y.secondary.main,.5)),$(y.LinearProgress,"errorBg",Se(y.error.main,.5)),$(y.LinearProgress,"infoBg",Se(y.info.main,.5)),$(y.LinearProgress,"successBg",Se(y.success.main,.5)),$(y.LinearProgress,"warningBg",Se(y.warning.main,.5)),$(y.Skeleton,"bg",`rgba(${M("palette-text-primaryChannel")} / 0.13)`),$(y.Slider,"primaryTrack",Se(y.primary.main,.5)),$(y.Slider,"secondaryTrack",Se(y.secondary.main,.5)),$(y.Slider,"errorTrack",Se(y.error.main,.5)),$(y.Slider,"infoTrack",Se(y.info.main,.5)),$(y.Slider,"successTrack",Se(y.success.main,.5)),$(y.Slider,"warningTrack",Se(y.warning.main,.5));const B=Ha(y.background.default,.98);$(y.SnackbarContent,"bg",B),$(y.SnackbarContent,"color",St(()=>y.getContrastText(B))),$(y.SpeedDialAction,"fabHoverBg",Ha(y.background.paper,.15)),$(y.StepConnector,"border",M("palette-grey-600")),$(y.StepContent,"border",M("palette-grey-600")),$(y.Switch,"defaultColor",M("palette-grey-300")),$(y.Switch,"defaultDisabledColor",M("palette-grey-600")),$(y.Switch,"primaryDisabledColor",Se(y.primary.main,.55)),$(y.Switch,"secondaryDisabledColor",Se(y.secondary.main,.55)),$(y.Switch,"errorDisabledColor",Se(y.error.main,.55)),$(y.Switch,"infoDisabledColor",Se(y.info.main,.55)),$(y.Switch,"successDisabledColor",Se(y.success.main,.55)),$(y.Switch,"warningDisabledColor",Se(y.warning.main,.55)),$(y.TableCell,"border",Se(Ja(y.divider,1),.68)),$(y.Tooltip,"bg",Ja(y.grey[700],.92))}It(y.background,"default"),It(y.background,"paper"),It(y.common,"background"),It(y.common,"onBackground"),It(y,"divider"),Object.keys(y).forEach(B=>{const z=y[B];B!=="tonalOffset"&&z&&typeof z=="object"&&(z.main&&$(y[B],"mainChannel",xa(Oa(z.main))),z.light&&$(y[B],"lightChannel",xa(Oa(z.light))),z.dark&&$(y[B],"darkChannel",xa(Oa(z.dark))),z.contrastText&&$(y[B],"contrastTextChannel",xa(Oa(z.contrastText))),B==="text"&&(It(y[B],"primary"),It(y[B],"secondary")),B==="action"&&(z.active&&It(y[B],"active"),z.selected&&It(y[B],"selected")))})}),N=t.reduce((k,y)=>Ke(k,y),N);const G={prefix:o,disableCssColorScheme:n,shouldSkipGeneratingVar:s,getSelector:Lh(N)},{vars:K,generateThemeVars:j,generateStyleSheets:L}=th(N,G);return N.vars=K,Object.entries(N.colorSchemes[N.defaultColorScheme]).forEach(([k,y])=>{N[k]=y}),N.generateThemeVars=j,N.generateStyleSheets=L,N.generateSpacing=function(){return Dl(c.spacing,$n(this))},N.getColorSchemeSelector=rh(i),N.spacing=N.generateSpacing(),N.shouldSkipGeneratingVar=s,N.unstable_sxConfig={...ka,...c==null?void 0:c.unstable_sxConfig},N.unstable_sx=function(y){return Jr({sx:y,theme:this})},N.toRuntimeSource=tc,N}function ni(e,t,r){e.colorSchemes&&r&&(e.colorSchemes[t]={...r!==!0&&r,palette:hs({...r===!0?{}:r.palette,mode:t})})}function nc(e={},...t){const{palette:r,cssVariables:a=!1,colorSchemes:n=r?void 0:{light:!0},defaultColorScheme:o=r==null?void 0:r.mode,...s}=e,i=o||"light",l=n==null?void 0:n[i],c={...n,...r?{[i]:{...typeof l!="boolean"&&l,palette:r}}:void 0};if(a===!1){if(!("colorSchemes"in e))return Bo(e,...t);let d=r;"palette"in e||c[i]&&(c[i]!==!0?d=c[i].palette:i==="dark"&&(d={mode:"dark"}));const u=Bo({...e,palette:d},...t);return u.defaultColorScheme=i,u.colorSchemes=c,u.palette.mode==="light"&&(u.colorSchemes.light={...c.light!==!0&&c.light,palette:u.palette},ni(u,"dark",c.dark)),u.palette.mode==="dark"&&(u.colorSchemes.dark={...c.dark!==!0&&c.dark,palette:u.palette},ni(u,"light",c.light)),u}return!r&&!("light"in c)&&i==="light"&&(c.light=!0),Nh({...s,colorSchemes:c,defaultColorScheme:i,...typeof a!="boolean"&&a},...t)}const Dh=nc(),zh="$$material";function ms(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Gh=e=>ms(e)&&e!=="classes",$t=Wl({themeId:zh,defaultTheme:Dh,rootShouldForwardProp:Gh});process.env.NODE_ENV!=="production"&&(S.node,S.object.isRequired);function fs(e){return Qp(e)}const Dr=ch({createStyledComponent:$t("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>fs({props:e,name:"MuiStack"})});process.env.NODE_ENV!=="production"&&(Dr.propTypes={children:S.node,component:S.elementType,direction:S.oneOfType([S.oneOf(["column-reverse","column","row-reverse","row"]),S.arrayOf(S.oneOf(["column-reverse","column","row-reverse","row"])),S.object]),divider:S.node,spacing:S.oneOfType([S.arrayOf(S.oneOfType([S.number,S.string])),S.number,S.object,S.string]),sx:S.oneOfType([S.arrayOf(S.oneOfType([S.func,S.object,S.bool])),S.func,S.object]),useFlexGap:S.bool});const oe=e=>typeof e=="string",ua=()=>{let e,t;const r=new Promise((a,n)=>{e=a,t=n});return r.resolve=e,r.reject=t,r},oi=e=>e==null?"":""+e,Jh=(e,t,r)=>{e.forEach(a=>{t[a]&&(r[a]=t[a])})},Hh=/###/g,si=e=>e&&e.indexOf("###")>-1?e.replace(Hh,"."):e,ii=e=>!e||oe(e),Ca=(e,t,r)=>{const a=oe(t)?t.split("."):t;let n=0;for(;n<a.length-1;){if(ii(e))return{};const o=si(a[n]);!e[o]&&r&&(e[o]=new r),Object.prototype.hasOwnProperty.call(e,o)?e=e[o]:e={},++n}return ii(e)?{}:{obj:e,k:si(a[n])}},li=(e,t,r)=>{const{obj:a,k:n}=Ca(e,t,Object);if(a!==void 0||t.length===1){a[n]=r;return}let o=t[t.length-1],s=t.slice(0,t.length-1),i=Ca(e,s,Object);for(;i.obj===void 0&&s.length;)o=`${s[s.length-1]}.${o}`,s=s.slice(0,s.length-1),i=Ca(e,s,Object),i!=null&&i.obj&&typeof i.obj[`${i.k}.${o}`]<"u"&&(i.obj=void 0);i.obj[`${i.k}.${o}`]=r},qh=(e,t,r,a)=>{const{obj:n,k:o}=Ca(e,t,Object);n[o]=n[o]||[],n[o].push(r)},vn=(e,t)=>{const{obj:r,k:a}=Ca(e,t);if(r&&Object.prototype.hasOwnProperty.call(r,a))return r[a]},Wh=(e,t,r)=>{const a=vn(e,r);return a!==void 0?a:vn(t,r)},oc=(e,t,r)=>{for(const a in t)a!=="__proto__"&&a!=="constructor"&&(a in e?oe(e[a])||e[a]instanceof String||oe(t[a])||t[a]instanceof String?r&&(e[a]=t[a]):oc(e[a],t[a],r):e[a]=t[a]);return e},Tr=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var Kh={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};const Qh=e=>oe(e)?e.replace(/[&<>"'\/]/g,t=>Kh[t]):e;class Yh{constructor(t){this.capacity=t,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(t){const r=this.regExpMap.get(t);if(r!==void 0)return r;const a=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,a),this.regExpQueue.push(t),a}}const Xh=[" ",",","?","!",";"],Zh=new Yh(20),em=(e,t,r)=>{t=t||"",r=r||"";const a=Xh.filter(s=>t.indexOf(s)<0&&r.indexOf(s)<0);if(a.length===0)return!0;const n=Zh.getRegExp(`(${a.map(s=>s==="?"?"\\?":s).join("|")})`);let o=!n.test(e);if(!o){const s=e.indexOf(r);s>0&&!n.test(e.substring(0,s))&&(o=!0)}return o},Fo=function(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!e)return;if(e[t])return Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0;const a=t.split(r);let n=e;for(let o=0;o<a.length;){if(!n||typeof n!="object")return;let s,i="";for(let l=o;l<a.length;++l)if(l!==o&&(i+=r),i+=a[l],s=n[i],s!==void 0){if(["string","number","boolean"].indexOf(typeof s)>-1&&l<a.length-1)continue;o+=l-o+1;break}n=s}return n},xn=e=>e==null?void 0:e.replace("_","-"),tm={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){var r,a;(a=(r=console==null?void 0:console[e])==null?void 0:r.apply)==null||a.call(r,console,t)}};class On{constructor(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(t,r)}init(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=r.prefix||"i18next:",this.logger=t||tm,this.options=r,this.debug=r.debug}log(){for(var t=arguments.length,r=new Array(t),a=0;a<t;a++)r[a]=arguments[a];return this.forward(r,"log","",!0)}warn(){for(var t=arguments.length,r=new Array(t),a=0;a<t;a++)r[a]=arguments[a];return this.forward(r,"warn","",!0)}error(){for(var t=arguments.length,r=new Array(t),a=0;a<t;a++)r[a]=arguments[a];return this.forward(r,"error","")}deprecate(){for(var t=arguments.length,r=new Array(t),a=0;a<t;a++)r[a]=arguments[a];return this.forward(r,"warn","WARNING DEPRECATED: ",!0)}forward(t,r,a,n){return n&&!this.debug?null:(oe(t[0])&&(t[0]=`${a}${this.prefix} ${t[0]}`),this.logger[r](t))}create(t){return new On(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new On(this.logger,t)}}var Ct=new On;class zn{constructor(){this.observers={}}on(t,r){return t.split(" ").forEach(a=>{this.observers[a]||(this.observers[a]=new Map);const n=this.observers[a].get(r)||0;this.observers[a].set(r,n+1)}),this}off(t,r){if(this.observers[t]){if(!r){delete this.observers[t];return}this.observers[t].delete(r)}}emit(t){for(var r=arguments.length,a=new Array(r>1?r-1:0),n=1;n<r;n++)a[n-1]=arguments[n];this.observers[t]&&Array.from(this.observers[t].entries()).forEach(s=>{let[i,l]=s;for(let c=0;c<l;c++)i(...a)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(s=>{let[i,l]=s;for(let c=0;c<l;c++)i.apply(i,[t,...a])})}}class ci extends zn{constructor(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=t||{},this.options=r,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){const r=this.options.ns.indexOf(t);r>-1&&this.options.ns.splice(r,1)}getResource(t,r,a){var c,d;let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const o=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,s=n.ignoreJSONStructure!==void 0?n.ignoreJSONStructure:this.options.ignoreJSONStructure;let i;t.indexOf(".")>-1?i=t.split("."):(i=[t,r],a&&(Array.isArray(a)?i.push(...a):oe(a)&&o?i.push(...a.split(o)):i.push(a)));const l=vn(this.data,i);return!l&&!r&&!a&&t.indexOf(".")>-1&&(t=i[0],r=i[1],a=i.slice(2).join(".")),l||!s||!oe(a)?l:Fo((d=(c=this.data)==null?void 0:c[t])==null?void 0:d[r],a,o)}addResource(t,r,a,n){let o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const s=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator;let i=[t,r];a&&(i=i.concat(s?a.split(s):a)),t.indexOf(".")>-1&&(i=t.split("."),n=r,r=i[1]),this.addNamespaces(r),li(this.data,i,n),o.silent||this.emit("added",t,r,a,n)}addResources(t,r,a){let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const o in a)(oe(a[o])||Array.isArray(a[o]))&&this.addResource(t,r,o,a[o],{silent:!0});n.silent||this.emit("added",t,r,a)}addResourceBundle(t,r,a,n,o){let s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},i=[t,r];t.indexOf(".")>-1&&(i=t.split("."),n=a,a=r,r=i[1]),this.addNamespaces(r);let l=vn(this.data,i)||{};s.skipCopy||(a=JSON.parse(JSON.stringify(a))),n?oc(l,a,o):l={...l,...a},li(this.data,i,l),s.silent||this.emit("added",t,r,a)}removeResourceBundle(t,r){this.hasResourceBundle(t,r)&&delete this.data[t][r],this.removeNamespaces(r),this.emit("removed",t,r)}hasResourceBundle(t,r){return this.getResource(t,r)!==void 0}getResourceBundle(t,r){return r||(r=this.options.defaultNS),this.getResource(t,r)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){const r=this.getDataByLanguage(t);return!!(r&&Object.keys(r)||[]).find(n=>r[n]&&Object.keys(r[n]).length>0)}toJSON(){return this.data}}var sc={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,r,a,n){return e.forEach(o=>{var s;t=((s=this.processors[o])==null?void 0:s.process(t,r,a,n))??t}),t}};const di={},ui=e=>!oe(e)&&typeof e!="boolean"&&typeof e!="number";class wn extends zn{constructor(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),Jh(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=r,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Ct.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(t==null)return!1;const a=this.resolve(t,r);return(a==null?void 0:a.res)!==void 0}extractFromKey(t,r){let a=r.nsSeparator!==void 0?r.nsSeparator:this.options.nsSeparator;a===void 0&&(a=":");const n=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator;let o=r.ns||this.options.defaultNS||[];const s=a&&t.indexOf(a)>-1,i=!this.options.userDefinedKeySeparator&&!r.keySeparator&&!this.options.userDefinedNsSeparator&&!r.nsSeparator&&!em(t,a,n);if(s&&!i){const l=t.match(this.interpolator.nestingRegexp);if(l&&l.length>0)return{key:t,namespaces:oe(o)?[o]:o};const c=t.split(a);(a!==n||a===n&&this.options.ns.indexOf(c[0])>-1)&&(o=c.shift()),t=c.join(n)}return{key:t,namespaces:oe(o)?[o]:o}}translate(t,r,a){if(typeof r!="object"&&this.options.overloadTranslationOptionHandler&&(r=this.options.overloadTranslationOptionHandler(arguments)),typeof r=="object"&&(r={...r}),r||(r={}),t==null)return"";Array.isArray(t)||(t=[String(t)]);const n=r.returnDetails!==void 0?r.returnDetails:this.options.returnDetails,o=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator,{key:s,namespaces:i}=this.extractFromKey(t[t.length-1],r),l=i[i.length-1],c=r.lng||this.language,d=r.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if((c==null?void 0:c.toLowerCase())==="cimode"){if(d){const M=r.nsSeparator||this.options.nsSeparator;return n?{res:`${l}${M}${s}`,usedKey:s,exactUsedKey:s,usedLng:c,usedNS:l,usedParams:this.getUsedParamsDetails(r)}:`${l}${M}${s}`}return n?{res:s,usedKey:s,exactUsedKey:s,usedLng:c,usedNS:l,usedParams:this.getUsedParamsDetails(r)}:s}const u=this.resolve(t,r);let p=u==null?void 0:u.res;const f=(u==null?void 0:u.usedKey)||s,g=(u==null?void 0:u.exactUsedKey)||s,h=["[object Number]","[object Function]","[object RegExp]"],x=r.joinArrays!==void 0?r.joinArrays:this.options.joinArrays,E=!this.i18nFormat||this.i18nFormat.handleAsObject,U=r.count!==void 0&&!oe(r.count),F=wn.hasDefaultValue(r),N=U?this.pluralResolver.getSuffix(c,r.count,r):"",G=r.ordinal&&U?this.pluralResolver.getSuffix(c,r.count,{ordinal:!1}):"",K=U&&!r.ordinal&&r.count===0,j=K&&r[`defaultValue${this.options.pluralSeparator}zero`]||r[`defaultValue${N}`]||r[`defaultValue${G}`]||r.defaultValue;let L=p;E&&!p&&F&&(L=j);const k=ui(L),y=Object.prototype.toString.apply(L);if(E&&L&&k&&h.indexOf(y)<0&&!(oe(x)&&Array.isArray(L))){if(!r.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const M=this.options.returnedObjectHandler?this.options.returnedObjectHandler(f,L,{...r,ns:i}):`key '${s} (${this.language})' returned an object instead of string.`;return n?(u.res=M,u.usedParams=this.getUsedParamsDetails(r),u):M}if(o){const M=Array.isArray(L),B=M?[]:{},z=M?g:f;for(const D in L)if(Object.prototype.hasOwnProperty.call(L,D)){const re=`${z}${o}${D}`;F&&!p?B[D]=this.translate(re,{...r,defaultValue:ui(j)?j[D]:void 0,joinArrays:!1,ns:i}):B[D]=this.translate(re,{...r,joinArrays:!1,ns:i}),B[D]===re&&(B[D]=L[D])}p=B}}else if(E&&oe(x)&&Array.isArray(p))p=p.join(x),p&&(p=this.extendTranslation(p,t,r,a));else{let M=!1,B=!1;!this.isValidLookup(p)&&F&&(M=!0,p=j),this.isValidLookup(p)||(B=!0,p=s);const D=(r.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&B?void 0:p,re=F&&j!==p&&this.options.updateMissing;if(B||M||re){if(this.logger.log(re?"updateKey":"missingKey",c,l,s,re?j:p),o){const ce=this.resolve(s,{...r,keySeparator:!1});ce&&ce.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let Z=[];const xe=this.languageUtils.getFallbackCodes(this.options.fallbackLng,r.lng||this.language);if(this.options.saveMissingTo==="fallback"&&xe&&xe[0])for(let ce=0;ce<xe.length;ce++)Z.push(xe[ce]);else this.options.saveMissingTo==="all"?Z=this.languageUtils.toResolveHierarchy(r.lng||this.language):Z.push(r.lng||this.language);const X=(ce,fe,le)=>{var _t;const He=F&&le!==p?le:D;this.options.missingKeyHandler?this.options.missingKeyHandler(ce,l,fe,He,re,r):(_t=this.backendConnector)!=null&&_t.saveMissing&&this.backendConnector.saveMissing(ce,l,fe,He,re,r),this.emit("missingKey",ce,l,fe,p)};this.options.saveMissing&&(this.options.saveMissingPlurals&&U?Z.forEach(ce=>{const fe=this.pluralResolver.getSuffixes(ce,r);K&&r[`defaultValue${this.options.pluralSeparator}zero`]&&fe.indexOf(`${this.options.pluralSeparator}zero`)<0&&fe.push(`${this.options.pluralSeparator}zero`),fe.forEach(le=>{X([ce],s+le,r[`defaultValue${le}`]||j)})}):X(Z,s,j))}p=this.extendTranslation(p,t,r,u,a),B&&p===s&&this.options.appendNamespaceToMissingKey&&(p=`${l}:${s}`),(B||M)&&this.options.parseMissingKeyHandler&&(p=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${l}:${s}`:s,M?p:void 0))}return n?(u.res=p,u.usedParams=this.getUsedParamsDetails(r),u):p}extendTranslation(t,r,a,n,o){var c,d;var s=this;if((c=this.i18nFormat)!=null&&c.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...a},a.lng||this.language||n.usedLng,n.usedNS,n.usedKey,{resolved:n});else if(!a.skipInterpolation){a.interpolation&&this.interpolator.init({...a,interpolation:{...this.options.interpolation,...a.interpolation}});const u=oe(t)&&(((d=a==null?void 0:a.interpolation)==null?void 0:d.skipOnVariables)!==void 0?a.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let p;if(u){const g=t.match(this.interpolator.nestingRegexp);p=g&&g.length}let f=a.replace&&!oe(a.replace)?a.replace:a;if(this.options.interpolation.defaultVariables&&(f={...this.options.interpolation.defaultVariables,...f}),t=this.interpolator.interpolate(t,f,a.lng||this.language||n.usedLng,a),u){const g=t.match(this.interpolator.nestingRegexp),h=g&&g.length;p<h&&(a.nest=!1)}!a.lng&&n&&n.res&&(a.lng=this.language||n.usedLng),a.nest!==!1&&(t=this.interpolator.nest(t,function(){for(var g=arguments.length,h=new Array(g),x=0;x<g;x++)h[x]=arguments[x];return(o==null?void 0:o[0])===h[0]&&!a.context?(s.logger.warn(`It seems you are nesting recursively key: ${h[0]} in key: ${r[0]}`),null):s.translate(...h,r)},a)),a.interpolation&&this.interpolator.reset()}const i=a.postProcess||this.options.postProcess,l=oe(i)?[i]:i;return t!=null&&(l!=null&&l.length)&&a.applyPostProcessor!==!1&&(t=sc.handle(l,t,r,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...n,usedParams:this.getUsedParamsDetails(a)},...a}:a,this)),t}resolve(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a,n,o,s,i;return oe(t)&&(t=[t]),t.forEach(l=>{if(this.isValidLookup(a))return;const c=this.extractFromKey(l,r),d=c.key;n=d;let u=c.namespaces;this.options.fallbackNS&&(u=u.concat(this.options.fallbackNS));const p=r.count!==void 0&&!oe(r.count),f=p&&!r.ordinal&&r.count===0,g=r.context!==void 0&&(oe(r.context)||typeof r.context=="number")&&r.context!=="",h=r.lngs?r.lngs:this.languageUtils.toResolveHierarchy(r.lng||this.language,r.fallbackLng);u.forEach(x=>{var E,U;this.isValidLookup(a)||(i=x,!di[`${h[0]}-${x}`]&&((E=this.utils)!=null&&E.hasLoadedNamespace)&&!((U=this.utils)!=null&&U.hasLoadedNamespace(i))&&(di[`${h[0]}-${x}`]=!0,this.logger.warn(`key "${n}" for languages "${h.join(", ")}" won't get resolved as namespace "${i}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),h.forEach(F=>{var K;if(this.isValidLookup(a))return;s=F;const N=[d];if((K=this.i18nFormat)!=null&&K.addLookupKeys)this.i18nFormat.addLookupKeys(N,d,F,x,r);else{let j;p&&(j=this.pluralResolver.getSuffix(F,r.count,r));const L=`${this.options.pluralSeparator}zero`,k=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(p&&(N.push(d+j),r.ordinal&&j.indexOf(k)===0&&N.push(d+j.replace(k,this.options.pluralSeparator)),f&&N.push(d+L)),g){const y=`${d}${this.options.contextSeparator}${r.context}`;N.push(y),p&&(N.push(y+j),r.ordinal&&j.indexOf(k)===0&&N.push(y+j.replace(k,this.options.pluralSeparator)),f&&N.push(y+L))}}let G;for(;G=N.pop();)this.isValidLookup(a)||(o=G,a=this.getResource(F,x,G,r))}))})}),{res:a,usedKey:n,exactUsedKey:o,usedLng:s,usedNS:i}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,r,a){var o;let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return(o=this.i18nFormat)!=null&&o.getResource?this.i18nFormat.getResource(t,r,a,n):this.resourceStore.getResource(t,r,a,n)}getUsedParamsDetails(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const r=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],a=t.replace&&!oe(t.replace);let n=a?t.replace:t;if(a&&typeof t.count<"u"&&(n.count=t.count),this.options.interpolation.defaultVariables&&(n={...this.options.interpolation.defaultVariables,...n}),!a){n={...n};for(const o of r)delete n[o]}return n}static hasDefaultValue(t){const r="defaultValue";for(const a in t)if(Object.prototype.hasOwnProperty.call(t,a)&&r===a.substring(0,r.length)&&t[a]!==void 0)return!0;return!1}}class pi{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Ct.create("languageUtils")}getScriptPartFromCode(t){if(t=xn(t),!t||t.indexOf("-")<0)return null;const r=t.split("-");return r.length===2||(r.pop(),r[r.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(r.join("-"))}getLanguagePartFromCode(t){if(t=xn(t),!t||t.indexOf("-")<0)return t;const r=t.split("-");return this.formatLanguageCode(r[0])}formatLanguageCode(t){if(oe(t)&&t.indexOf("-")>-1){let r;try{r=Intl.getCanonicalLocales(t)[0]}catch{}return r&&this.options.lowerCaseLng&&(r=r.toLowerCase()),r||(this.options.lowerCaseLng?t.toLowerCase():t)}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let r;return t.forEach(a=>{if(r)return;const n=this.formatLanguageCode(a);(!this.options.supportedLngs||this.isSupportedCode(n))&&(r=n)}),!r&&this.options.supportedLngs&&t.forEach(a=>{if(r)return;const n=this.getLanguagePartFromCode(a);if(this.isSupportedCode(n))return r=n;r=this.options.supportedLngs.find(o=>{if(o===n)return o;if(!(o.indexOf("-")<0&&n.indexOf("-")<0)&&(o.indexOf("-")>0&&n.indexOf("-")<0&&o.substring(0,o.indexOf("-"))===n||o.indexOf(n)===0&&n.length>1))return o})}),r||(r=this.getFallbackCodes(this.options.fallbackLng)[0]),r}getFallbackCodes(t,r){if(!t)return[];if(typeof t=="function"&&(t=t(r)),oe(t)&&(t=[t]),Array.isArray(t))return t;if(!r)return t.default||[];let a=t[r];return a||(a=t[this.getScriptPartFromCode(r)]),a||(a=t[this.formatLanguageCode(r)]),a||(a=t[this.getLanguagePartFromCode(r)]),a||(a=t.default),a||[]}toResolveHierarchy(t,r){const a=this.getFallbackCodes(r||this.options.fallbackLng||[],t),n=[],o=s=>{s&&(this.isSupportedCode(s)?n.push(s):this.logger.warn(`rejecting language code not found in supportedLngs: ${s}`))};return oe(t)&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&o(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&o(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&o(this.getLanguagePartFromCode(t))):oe(t)&&o(this.formatLanguageCode(t)),a.forEach(s=>{n.indexOf(s)<0&&o(this.formatLanguageCode(s))}),n}}const hi={zero:0,one:1,two:2,few:3,many:4,other:5},mi={select:e=>e===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class rm{constructor(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=t,this.options=r,this.logger=Ct.create("pluralResolver"),this.pluralRulesCache={}}addRule(t,r){this.rules[t]=r}clearCache(){this.pluralRulesCache={}}getRule(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const a=xn(t==="dev"?"en":t),n=r.ordinal?"ordinal":"cardinal",o=JSON.stringify({cleanedCode:a,type:n});if(o in this.pluralRulesCache)return this.pluralRulesCache[o];let s;try{s=new Intl.PluralRules(a,{type:n})}catch{if(!Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),mi;if(!t.match(/-|_/))return mi;const l=this.languageUtils.getLanguagePartFromCode(t);s=this.getRule(l,r)}return this.pluralRulesCache[o]=s,s}needsPlural(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=this.getRule(t,r);return a||(a=this.getRule("dev",r)),(a==null?void 0:a.resolvedOptions().pluralCategories.length)>1}getPluralFormsOfKey(t,r){let a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(t,a).map(n=>`${r}${n}`)}getSuffixes(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=this.getRule(t,r);return a||(a=this.getRule("dev",r)),a?a.resolvedOptions().pluralCategories.sort((n,o)=>hi[n]-hi[o]).map(n=>`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${n}`):[]}getSuffix(t,r){let a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const n=this.getRule(t,a);return n?`${this.options.prepend}${a.ordinal?`ordinal${this.options.prepend}`:""}${n.select(r)}`:(this.logger.warn(`no plural rule found for: ${t}`),this.getSuffix("dev",r,a))}}const fi=function(e,t,r){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",n=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,o=Wh(e,t,r);return!o&&n&&oe(r)&&(o=Fo(e,r,a),o===void 0&&(o=Fo(t,r,a))),o},bo=e=>e.replace(/\$/g,"$$$$");class am{constructor(){var r;let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Ct.create("interpolator"),this.options=t,this.format=((r=t==null?void 0:t.interpolation)==null?void 0:r.format)||(a=>a),this.init(t)}init(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});const{escape:r,escapeValue:a,useRawValueToEscape:n,prefix:o,prefixEscaped:s,suffix:i,suffixEscaped:l,formatSeparator:c,unescapeSuffix:d,unescapePrefix:u,nestingPrefix:p,nestingPrefixEscaped:f,nestingSuffix:g,nestingSuffixEscaped:h,nestingOptionsSeparator:x,maxReplaces:E,alwaysFormat:U}=t.interpolation;this.escape=r!==void 0?r:Qh,this.escapeValue=a!==void 0?a:!0,this.useRawValueToEscape=n!==void 0?n:!1,this.prefix=o?Tr(o):s||"{{",this.suffix=i?Tr(i):l||"}}",this.formatSeparator=c||",",this.unescapePrefix=d?"":u||"-",this.unescapeSuffix=this.unescapePrefix?"":d||"",this.nestingPrefix=p?Tr(p):f||Tr("$t("),this.nestingSuffix=g?Tr(g):h||Tr(")"),this.nestingOptionsSeparator=x||",",this.maxReplaces=E||1e3,this.alwaysFormat=U!==void 0?U:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=(r,a)=>(r==null?void 0:r.source)===a?(r.lastIndex=0,r):new RegExp(a,"g");this.regexp=t(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=t(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=t(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(t,r,a,n){var f;let o,s,i;const l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},c=g=>{if(g.indexOf(this.formatSeparator)<0){const U=fi(r,l,g,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(U,void 0,a,{...n,...r,interpolationkey:g}):U}const h=g.split(this.formatSeparator),x=h.shift().trim(),E=h.join(this.formatSeparator).trim();return this.format(fi(r,l,x,this.options.keySeparator,this.options.ignoreJSONStructure),E,a,{...n,...r,interpolationkey:x})};this.resetRegExp();const d=(n==null?void 0:n.missingInterpolationHandler)||this.options.missingInterpolationHandler,u=((f=n==null?void 0:n.interpolation)==null?void 0:f.skipOnVariables)!==void 0?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:g=>bo(g)},{regex:this.regexp,safeValue:g=>this.escapeValue?bo(this.escape(g)):bo(g)}].forEach(g=>{for(i=0;o=g.regex.exec(t);){const h=o[1].trim();if(s=c(h),s===void 0)if(typeof d=="function"){const E=d(t,o,n);s=oe(E)?E:""}else if(n&&Object.prototype.hasOwnProperty.call(n,h))s="";else if(u){s=o[0];continue}else this.logger.warn(`missed to pass in variable ${h} for interpolating ${t}`),s="";else!oe(s)&&!this.useRawValueToEscape&&(s=oi(s));const x=g.safeValue(s);if(t=t.replace(o[0],x),u?(g.regex.lastIndex+=s.length,g.regex.lastIndex-=o[0].length):g.regex.lastIndex=0,i++,i>=this.maxReplaces)break}}),t}nest(t,r){let a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n,o,s;const i=(l,c)=>{const d=this.nestingOptionsSeparator;if(l.indexOf(d)<0)return l;const u=l.split(new RegExp(`${d}[ ]*{`));let p=`{${u[1]}`;l=u[0],p=this.interpolate(p,s);const f=p.match(/'/g),g=p.match(/"/g);(((f==null?void 0:f.length)??0)%2===0&&!g||g.length%2!==0)&&(p=p.replace(/'/g,'"'));try{s=JSON.parse(p),c&&(s={...c,...s})}catch(h){return this.logger.warn(`failed parsing options string in nesting for key ${l}`,h),`${l}${d}${p}`}return s.defaultValue&&s.defaultValue.indexOf(this.prefix)>-1&&delete s.defaultValue,l};for(;n=this.nestingRegexp.exec(t);){let l=[];s={...a},s=s.replace&&!oe(s.replace)?s.replace:s,s.applyPostProcessor=!1,delete s.defaultValue;let c=!1;if(n[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(n[1])){const d=n[1].split(this.formatSeparator).map(u=>u.trim());n[1]=d.shift(),l=d,c=!0}if(o=r(i.call(this,n[1].trim(),s),s),o&&n[0]===t&&!oe(o))return o;oe(o)||(o=oi(o)),o||(this.logger.warn(`missed to resolve ${n[1]} for nesting ${t}`),o=""),c&&(o=l.reduce((d,u)=>this.format(d,u,a.lng,{...a,interpolationkey:n[1].trim()}),o.trim())),t=t.replace(n[0],o),this.regexp.lastIndex=0}return t}}const nm=e=>{let t=e.toLowerCase().trim();const r={};if(e.indexOf("(")>-1){const a=e.split("(");t=a[0].toLowerCase().trim();const n=a[1].substring(0,a[1].length-1);t==="currency"&&n.indexOf(":")<0?r.currency||(r.currency=n.trim()):t==="relativetime"&&n.indexOf(":")<0?r.range||(r.range=n.trim()):n.split(";").forEach(s=>{if(s){const[i,...l]=s.split(":"),c=l.join(":").trim().replace(/^'+|'+$/g,""),d=i.trim();r[d]||(r[d]=c),c==="false"&&(r[d]=!1),c==="true"&&(r[d]=!0),isNaN(c)||(r[d]=parseInt(c,10))}})}return{formatName:t,formatOptions:r}},Er=e=>{const t={};return(r,a,n)=>{let o=n;n&&n.interpolationkey&&n.formatParams&&n.formatParams[n.interpolationkey]&&n[n.interpolationkey]&&(o={...o,[n.interpolationkey]:void 0});const s=a+JSON.stringify(o);let i=t[s];return i||(i=e(xn(a),n),t[s]=i),i(r)}};class om{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Ct.create("formatter"),this.options=t,this.formats={number:Er((r,a)=>{const n=new Intl.NumberFormat(r,{...a});return o=>n.format(o)}),currency:Er((r,a)=>{const n=new Intl.NumberFormat(r,{...a,style:"currency"});return o=>n.format(o)}),datetime:Er((r,a)=>{const n=new Intl.DateTimeFormat(r,{...a});return o=>n.format(o)}),relativetime:Er((r,a)=>{const n=new Intl.RelativeTimeFormat(r,{...a});return o=>n.format(o,a.range||"day")}),list:Er((r,a)=>{const n=new Intl.ListFormat(r,{...a});return o=>n.format(o)})},this.init(t)}init(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};this.formatSeparator=r.interpolation.formatSeparator||","}add(t,r){this.formats[t.toLowerCase().trim()]=r}addCached(t,r){this.formats[t.toLowerCase().trim()]=Er(r)}format(t,r,a){let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const o=r.split(this.formatSeparator);if(o.length>1&&o[0].indexOf("(")>1&&o[0].indexOf(")")<0&&o.find(i=>i.indexOf(")")>-1)){const i=o.findIndex(l=>l.indexOf(")")>-1);o[0]=[o[0],...o.splice(1,i)].join(this.formatSeparator)}return o.reduce((i,l)=>{var u;const{formatName:c,formatOptions:d}=nm(l);if(this.formats[c]){let p=i;try{const f=((u=n==null?void 0:n.formatParams)==null?void 0:u[n.interpolationkey])||{},g=f.locale||f.lng||n.locale||n.lng||a;p=this.formats[c](i,g,{...d,...n,...f})}catch(f){this.logger.warn(f)}return p}else this.logger.warn(`there was no format function for ${c}`);return i},t)}}const sm=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)};class im extends zn{constructor(t,r,a){var o,s;let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=t,this.store=r,this.services=a,this.languageUtils=a.languageUtils,this.options=n,this.logger=Ct.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=n.maxParallelReads||10,this.readingCalls=0,this.maxRetries=n.maxRetries>=0?n.maxRetries:5,this.retryTimeout=n.retryTimeout>=1?n.retryTimeout:350,this.state={},this.queue=[],(s=(o=this.backend)==null?void 0:o.init)==null||s.call(o,a,n.backend,n)}queueLoad(t,r,a,n){const o={},s={},i={},l={};return t.forEach(c=>{let d=!0;r.forEach(u=>{const p=`${c}|${u}`;!a.reload&&this.store.hasResourceBundle(c,u)?this.state[p]=2:this.state[p]<0||(this.state[p]===1?s[p]===void 0&&(s[p]=!0):(this.state[p]=1,d=!1,s[p]===void 0&&(s[p]=!0),o[p]===void 0&&(o[p]=!0),l[u]===void 0&&(l[u]=!0)))}),d||(i[c]=!0)}),(Object.keys(o).length||Object.keys(s).length)&&this.queue.push({pending:s,pendingCount:Object.keys(s).length,loaded:{},errors:[],callback:n}),{toLoad:Object.keys(o),pending:Object.keys(s),toLoadLanguages:Object.keys(i),toLoadNamespaces:Object.keys(l)}}loaded(t,r,a){const n=t.split("|"),o=n[0],s=n[1];r&&this.emit("failedLoading",o,s,r),!r&&a&&this.store.addResourceBundle(o,s,a,void 0,void 0,{skipCopy:!0}),this.state[t]=r?-1:2,r&&a&&(this.state[t]=0);const i={};this.queue.forEach(l=>{qh(l.loaded,[o],s),sm(l,t),r&&l.errors.push(r),l.pendingCount===0&&!l.done&&(Object.keys(l.loaded).forEach(c=>{i[c]||(i[c]={});const d=l.loaded[c];d.length&&d.forEach(u=>{i[c][u]===void 0&&(i[c][u]=!0)})}),l.done=!0,l.errors.length?l.callback(l.errors):l.callback())}),this.emit("loaded",i),this.queue=this.queue.filter(l=>!l.done)}read(t,r,a){let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,s=arguments.length>5?arguments[5]:void 0;if(!t.length)return s(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:r,fcName:a,tried:n,wait:o,callback:s});return}this.readingCalls++;const i=(c,d)=>{if(this.readingCalls--,this.waitingReads.length>0){const u=this.waitingReads.shift();this.read(u.lng,u.ns,u.fcName,u.tried,u.wait,u.callback)}if(c&&d&&n<this.maxRetries){setTimeout(()=>{this.read.call(this,t,r,a,n+1,o*2,s)},o);return}s(c,d)},l=this.backend[a].bind(this.backend);if(l.length===2){try{const c=l(t,r);c&&typeof c.then=="function"?c.then(d=>i(null,d)).catch(i):i(null,c)}catch(c){i(c)}return}return l(t,r,i)}prepareLoading(t,r){let a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),n&&n();oe(t)&&(t=this.languageUtils.toResolveHierarchy(t)),oe(r)&&(r=[r]);const o=this.queueLoad(t,r,a,n);if(!o.toLoad.length)return o.pending.length||n(),null;o.toLoad.forEach(s=>{this.loadOne(s)})}load(t,r,a){this.prepareLoading(t,r,{},a)}reload(t,r,a){this.prepareLoading(t,r,{reload:!0},a)}loadOne(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const a=t.split("|"),n=a[0],o=a[1];this.read(n,o,"read",void 0,void 0,(s,i)=>{s&&this.logger.warn(`${r}loading namespace ${o} for language ${n} failed`,s),!s&&i&&this.logger.log(`${r}loaded namespace ${o} for language ${n}`,i),this.loaded(t,s,i)})}saveMissing(t,r,a,n,o){var l,c,d,u,p;let s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},i=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if((c=(l=this.services)==null?void 0:l.utils)!=null&&c.hasLoadedNamespace&&!((u=(d=this.services)==null?void 0:d.utils)!=null&&u.hasLoadedNamespace(r))){this.logger.warn(`did not save key "${a}" as the namespace "${r}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(a==null||a==="")){if((p=this.backend)!=null&&p.create){const f={...s,isUpdate:o},g=this.backend.create.bind(this.backend);if(g.length<6)try{let h;g.length===5?h=g(t,r,a,n,f):h=g(t,r,a,n),h&&typeof h.then=="function"?h.then(x=>i(null,x)).catch(i):i(null,h)}catch(h){i(h)}else g(t,r,a,n,i,f)}!t||!t[0]||this.store.addResource(t[0],r,a,n)}}}const gi=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if(typeof e[1]=="object"&&(t=e[1]),oe(e[1])&&(t.defaultValue=e[1]),oe(e[2])&&(t.tDescription=e[2]),typeof e[2]=="object"||typeof e[3]=="object"){const r=e[3]||e[2];Object.keys(r).forEach(a=>{t[a]=r[a]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),yi=e=>{var t,r;return oe(e.ns)&&(e.ns=[e.ns]),oe(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),oe(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),((r=(t=e.supportedLngs)==null?void 0:t.indexOf)==null?void 0:r.call(t,"cimode"))<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),typeof e.initImmediate=="boolean"&&(e.initAsync=e.initImmediate),e},qa=()=>{},lm=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(r=>{typeof e[r]=="function"&&(e[r]=e[r].bind(e))})};class Ta extends zn{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;if(super(),this.options=yi(t),this.services={},this.logger=Ct,this.modules={external:[]},lm(this),r&&!this.isInitialized&&!t.isClone){if(!this.options.initAsync)return this.init(t,r),this;setTimeout(()=>{this.init(t,r)},0)}}init(){var t=this;let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof r=="function"&&(a=r,r={}),r.defaultNS==null&&r.ns&&(oe(r.ns)?r.defaultNS=r.ns:r.ns.indexOf("translation")<0&&(r.defaultNS=r.ns[0]));const n=gi();this.options={...n,...this.options,...yi(r)},this.options.interpolation={...n.interpolation,...this.options.interpolation},r.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=r.keySeparator),r.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=r.nsSeparator);const o=d=>d?typeof d=="function"?new d:d:null;if(!this.options.isClone){this.modules.logger?Ct.init(o(this.modules.logger),this.options):Ct.init(null,this.options);let d;this.modules.formatter?d=this.modules.formatter:d=om;const u=new pi(this.options);this.store=new ci(this.options.resources,this.options);const p=this.services;p.logger=Ct,p.resourceStore=this.store,p.languageUtils=u,p.pluralResolver=new rm(u,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),d&&(!this.options.interpolation.format||this.options.interpolation.format===n.interpolation.format)&&(p.formatter=o(d),p.formatter.init(p,this.options),this.options.interpolation.format=p.formatter.format.bind(p.formatter)),p.interpolator=new am(this.options),p.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},p.backendConnector=new im(o(this.modules.backend),p.resourceStore,p,this.options),p.backendConnector.on("*",function(f){for(var g=arguments.length,h=new Array(g>1?g-1:0),x=1;x<g;x++)h[x-1]=arguments[x];t.emit(f,...h)}),this.modules.languageDetector&&(p.languageDetector=o(this.modules.languageDetector),p.languageDetector.init&&p.languageDetector.init(p,this.options.detection,this.options)),this.modules.i18nFormat&&(p.i18nFormat=o(this.modules.i18nFormat),p.i18nFormat.init&&p.i18nFormat.init(this)),this.translator=new wn(this.services,this.options),this.translator.on("*",function(f){for(var g=arguments.length,h=new Array(g>1?g-1:0),x=1;x<g;x++)h[x-1]=arguments[x];t.emit(f,...h)}),this.modules.external.forEach(f=>{f.init&&f.init(this)})}if(this.format=this.options.interpolation.format,a||(a=qa),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const d=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);d.length>0&&d[0]!=="dev"&&(this.options.lng=d[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(d=>{this[d]=function(){return t.store[d](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(d=>{this[d]=function(){return t.store[d](...arguments),t}});const l=ua(),c=()=>{const d=(u,p)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),l.resolve(p),a(u,p)};if(this.languages&&!this.isInitialized)return d(null,this.t.bind(this));this.changeLanguage(this.options.lng,d)};return this.options.resources||!this.options.initAsync?c():setTimeout(c,0),l}loadResources(t){var o,s;let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:qa;const n=oe(t)?t:this.language;if(typeof t=="function"&&(a=t),!this.options.resources||this.options.partialBundledLanguages){if((n==null?void 0:n.toLowerCase())==="cimode"&&(!this.options.preload||this.options.preload.length===0))return a();const i=[],l=c=>{if(!c||c==="cimode")return;this.services.languageUtils.toResolveHierarchy(c).forEach(u=>{u!=="cimode"&&i.indexOf(u)<0&&i.push(u)})};n?l(n):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(d=>l(d)),(s=(o=this.options.preload)==null?void 0:o.forEach)==null||s.call(o,c=>l(c)),this.services.backendConnector.load(i,this.options.ns,c=>{!c&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),a(c)})}else a(null)}reloadResources(t,r,a){const n=ua();return typeof t=="function"&&(a=t,t=void 0),typeof r=="function"&&(a=r,r=void 0),t||(t=this.languages),r||(r=this.options.ns),a||(a=qa),this.services.backendConnector.reload(t,r,o=>{n.resolve(),a(o)}),n}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return t.type==="backend"&&(this.modules.backend=t),(t.type==="logger"||t.log&&t.warn&&t.error)&&(this.modules.logger=t),t.type==="languageDetector"&&(this.modules.languageDetector=t),t.type==="i18nFormat"&&(this.modules.i18nFormat=t),t.type==="postProcessor"&&sc.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}setResolvedLanguage(t){if(!(!t||!this.languages)&&!(["cimode","dev"].indexOf(t)>-1))for(let r=0;r<this.languages.length;r++){const a=this.languages[r];if(!(["cimode","dev"].indexOf(a)>-1)&&this.store.hasLanguageSomeTranslations(a)){this.resolvedLanguage=a;break}}}changeLanguage(t,r){var a=this;this.isLanguageChangingTo=t;const n=ua();this.emit("languageChanging",t);const o=l=>{this.language=l,this.languages=this.services.languageUtils.toResolveHierarchy(l),this.resolvedLanguage=void 0,this.setResolvedLanguage(l)},s=(l,c)=>{c?(o(c),this.translator.changeLanguage(c),this.isLanguageChangingTo=void 0,this.emit("languageChanged",c),this.logger.log("languageChanged",c)):this.isLanguageChangingTo=void 0,n.resolve(function(){return a.t(...arguments)}),r&&r(l,function(){return a.t(...arguments)})},i=l=>{var d,u;!t&&!l&&this.services.languageDetector&&(l=[]);const c=oe(l)?l:this.services.languageUtils.getBestMatchFromCodes(l);c&&(this.language||o(c),this.translator.language||this.translator.changeLanguage(c),(u=(d=this.services.languageDetector)==null?void 0:d.cacheUserLanguage)==null||u.call(d,c)),this.loadResources(c,p=>{s(p,c)})};return!t&&this.services.languageDetector&&!this.services.languageDetector.async?i(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(i):this.services.languageDetector.detect(i):i(t),n}getFixedT(t,r,a){var n=this;const o=function(s,i){let l;if(typeof i!="object"){for(var c=arguments.length,d=new Array(c>2?c-2:0),u=2;u<c;u++)d[u-2]=arguments[u];l=n.options.overloadTranslationOptionHandler([s,i].concat(d))}else l={...i};l.lng=l.lng||o.lng,l.lngs=l.lngs||o.lngs,l.ns=l.ns||o.ns,l.keyPrefix!==""&&(l.keyPrefix=l.keyPrefix||a||o.keyPrefix);const p=n.options.keySeparator||".";let f;return l.keyPrefix&&Array.isArray(s)?f=s.map(g=>`${l.keyPrefix}${p}${g}`):f=l.keyPrefix?`${l.keyPrefix}${p}${s}`:s,n.t(f,l)};return oe(t)?o.lng=t:o.lngs=t,o.ns=r,o.keyPrefix=a,o}t(){var n;for(var t=arguments.length,r=new Array(t),a=0;a<t;a++)r[a]=arguments[a];return(n=this.translator)==null?void 0:n.translate(...r)}exists(){var n;for(var t=arguments.length,r=new Array(t),a=0;a<t;a++)r[a]=arguments[a];return(n=this.translator)==null?void 0:n.exists(...r)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const a=r.lng||this.resolvedLanguage||this.languages[0],n=this.options?this.options.fallbackLng:!1,o=this.languages[this.languages.length-1];if(a.toLowerCase()==="cimode")return!0;const s=(i,l)=>{const c=this.services.backendConnector.state[`${i}|${l}`];return c===-1||c===0||c===2};if(r.precheck){const i=r.precheck(this,s);if(i!==void 0)return i}return!!(this.hasResourceBundle(a,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||s(a,t)&&(!n||s(o,t)))}loadNamespaces(t,r){const a=ua();return this.options.ns?(oe(t)&&(t=[t]),t.forEach(n=>{this.options.ns.indexOf(n)<0&&this.options.ns.push(n)}),this.loadResources(n=>{a.resolve(),r&&r(n)}),a):(r&&r(),Promise.resolve())}loadLanguages(t,r){const a=ua();oe(t)&&(t=[t]);const n=this.options.preload||[],o=t.filter(s=>n.indexOf(s)<0&&this.services.languageUtils.isSupportedCode(s));return o.length?(this.options.preload=n.concat(o),this.loadResources(s=>{a.resolve(),r&&r(s)}),a):(r&&r(),Promise.resolve())}dir(t){var n,o;if(t||(t=this.resolvedLanguage||(((n=this.languages)==null?void 0:n.length)>0?this.languages[0]:this.language)),!t)return"rtl";const r=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],a=((o=this.services)==null?void 0:o.languageUtils)||new pi(gi());return r.indexOf(a.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;return new Ta(t,r)}cloneInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:qa;const a=t.forkResourceStore;a&&delete t.forkResourceStore;const n={...this.options,...t,isClone:!0},o=new Ta(n);if((t.debug!==void 0||t.prefix!==void 0)&&(o.logger=o.logger.clone(t)),["store","services","language"].forEach(i=>{o[i]=this[i]}),o.services={...this.services},o.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},a){const i=Object.keys(this.store.data).reduce((l,c)=>(l[c]={...this.store.data[c]},Object.keys(l[c]).reduce((d,u)=>(d[u]={...l[c][u]},d),{})),{});o.store=new ci(i,n),o.services.resourceStore=o.store}return o.translator=new wn(o.services,n),o.translator.on("*",function(i){for(var l=arguments.length,c=new Array(l>1?l-1:0),d=1;d<l;d++)c[d-1]=arguments[d];o.emit(i,...c)}),o.init(n,r),o.translator.options=n,o.translator.backendConnector.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},o}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const Je=Ta.createInstance();Je.createInstance=Ta.createInstance;Je.createInstance;Je.dir;Je.init;Je.loadResources;Je.reloadResources;Je.use;Je.changeLanguage;Je.getFixedT;Je.t;Je.exists;Je.setDefaultNamespace;Je.hasLoadedNamespace;Je.loadNamespaces;Je.loadLanguages;const cm={"Jogging.Cartesian.Translation.velocityMmPerSec.lb":"{{amount}} mm/s","Jogging.Cartesian.Rotation.velocityDegPerSec.lb":"{{amount}}°/s","Jogging.Velocity.lb":"Geschwindigkeit","General.degree.variable":"{{amount}}°","General.mm.variable":"{{amount}} mm","Jogging.Cartesian.MotionType.lb":"Bewegungstyp","Jogging.Cartesian.Translation.bt":"Translation","Jogging.Cartesian.Rotation.bt":"Rotation","Jogging.Joints.JointValues.lb":"Gelenkwerte","Jogging.Increment.Continuous.dd":"Fortlaufend","Jogging.Cartesian.Orientation.lb":"Orientierung","Jogging.JointLimitsReached.lb":"Gelenkgrenzen für Gelenk {{jointNumbers}} erreicht","Jogging.Orientation.coordsys":"Roboterbasis","Jogging.Orientation.tool":"Werkzeug","SafetyBar.ActivationToggle.Activate.bt":"Aktivieren","SafetyBar.ActivationToggle.Activated.bt":"Aktiviert","SafetyBar.ActivationToggle.Activating.bt":"Wird aktiviert…","SafetyBar.ActivationToggle.Deactivating.bt":"Wird deaktiviert…","SafetyBar.ControllerType.Physical.lb":"Physische Robotersteuerung","SafetyBar.ControllerType.Virtual.lb":"Virtuelle Robotersteuerung","SafetyBar.MotionGroup.Physical.Explanation.lb":"<code>{{motionGroupId}}</code> ist ein physische Robotersteuerung. Für die Bewegung dieses Roboters sind <strong>Sicherheitsmaßnahmen</strong> aktiv.","SafetyBar.MotionGroup.Virtual.Explanation.lb":"<1>{{motionGroupId}}</1> ist eine virtuelle Robotersteuerung ohne physisches Gegenstück. Der Roboter kann ohne Sicherheitsmaßnahmen bewegt werden.","SafetyBar.OperationMode.Auto.Explanation.lb":"Automatischer Betriebsmodus der Robotersteuerung aktiv. Automatisierte Bewegung ohne manuelle Bestätigung freigegeben.","SafetyBar.OperationMode.Automatic.ti":"Automatisch","SafetyBar.OperationMode.Error.Explanation.lb":"Fehler beim Abrufen des Betriebsmodus. Originalhandbediengerät des Roboters verwenden, um Fehler zu lösen.","SafetyBar.OperationMode.Error.lb":"Fehler","SafetyBar.OperationMode.Manual.Explanation.lb":`Die Robotersteuerung befindet sich im manuellen Betriebsmodus.
88
+ Bei einem physischen Roboter bedeutet dies im Allgemeinen, dass ein Freigabeschalter gedrückt werden muss, damit sich der Roboter erfolgreich bewegen kann.`,"SafetyBar.OperationMode.Manual.lb":"Manuell","SafetyBar.OperationMode.ti":"Betriebsmodus","SafetyBar.SafetyState.Error.Explanation.lb":"Die Robotersteuerung ist in einen unerwarteten Sicherheitszustand eingetreten.","SafetyBar.SafetyState.Error.lb":"Fehler","SafetyBar.SafetyState.Estop.lb":"NOT-AUS","SafetyBar.SafetyState.ManualActionRequired.Explanation.lb":"Die Robotersteuerung ist in einen Sicherheitszustand eingetreten, der manuelle Maßnahmen zur Behebung erfordert.","SafetyBar.SafetyState.ManualActionRequired.lb":"Aktion erforderlich","SafetyBar.SafetyState.Normal.Explanation.lb":"Die Robotersteuerung befindet sich in einem sicheren Zustand. Roboterbewegungen sind möglich.","SafetyBar.SafetyState.Normal.lb":"Sicher","SafetyBar.SafetyState.Stop.Explanation.lb":"Die Robotersteuerung ist in einen Stoppzustand übergegangen. Bis der Stoppzustand aufgelöst ist, ist keine Bewegung mehr möglich.","SafetyBar.SafetyState.Stop.lb":"Stopp","SafetyBar.SafetyState.ti":"Sicherheitszustand","SafetyBar.StopState.Estop.Explanation.lb":"NOT-AUS aktiviert. NOT-AUS freischalten, um Roboter zu bewegen.","Jogging.Increment.hlb":"Schrittgröße","Jogging.CoordinateSystem.hlb":"Koordinatensystem","Jogging.Cartesian.bt":"Kartesisch","Jogging.Joints.bt":"Gelenke","Jogging.Velocity.bt":"Geschwindigkeit"},dm={"Jogging.Cartesian.Translation.velocityMmPerSec.lb":"{{amount}} mm/s","Jogging.Cartesian.Rotation.velocityDegPerSec.lb":"{{amount}}°/s","Jogging.Velocity.lb":"Velocity","General.degree.variable":"{{amount}}°","General.mm.variable":"{{amount}} mm","Jogging.Cartesian.MotionType.lb":"Motion type","Jogging.Cartesian.Translation.bt":"Translation","Jogging.Cartesian.Rotation.bt":"Rotation","Jogging.Joints.JointValues.lb":"Joint values","Jogging.Increment.Continuous.dd":"Continuous","Jogging.Cartesian.Orientation.lb":"Orientation","Jogging.Activating.lb":"Activating jogging","Jogging.JointLimitsReached.lb":"Joint limit reached for joint {{jointNumbers}}","Jogging.Orientation.coordsys":"Robot base","Jogging.Orientation.tool":"Tool","SafetyBar.ActivationToggle.Activate.bt":"Activate","SafetyBar.ActivationToggle.Activated.bt":"Activated","SafetyBar.ActivationToggle.Activating.bt":"Activating","SafetyBar.ActivationToggle.Deactivating.bt":"Deactivating","SafetyBar.ControllerType.Physical.lb":"Physical controller","SafetyBar.ControllerType.Virtual.lb":"Virtual controller","SafetyBar.MotionGroup.Physical.Explanation.lb":"<code>{{motionGroupId}}</code> is a physical robot controller. <strong>Safety precautions</strong> are active for the movement of this robot.","SafetyBar.MotionGroup.Virtual.Explanation.lb":"<1>{{motionGroupId}}</1> is a virtual robot controller with no physical counterpart. It can be freely manipulated without safety precautions.","SafetyBar.OperationMode.Auto.Explanation.lb":"Automatic operation mode active. Automated movement without manual confirmation enabled.","SafetyBar.OperationMode.Automatic.ti":"Automatic","SafetyBar.OperationMode.Error.Explanation.lb":"Failed to get operation mode. Use the original control panel to resolve the error.","SafetyBar.OperationMode.Error.lb":"Error","SafetyBar.OperationMode.Manual.Explanation.lb":"The robot controller is in manual operation mode. On a physical robot, this generally indicates that an enabling switch must be held for the robot to move successfully.","SafetyBar.OperationMode.Manual.lb":"Manual","SafetyBar.OperationMode.ti":"Operation mode","SafetyBar.SafetyState.Error.Explanation.lb":"The robot controller has entered an unexpected safety state.","SafetyBar.SafetyState.Error.lb":"Error","SafetyBar.SafetyState.Estop.lb":"E-Stop","SafetyBar.SafetyState.ManualActionRequired.Explanation.lb":"The robot controller has entered a safety state requiring manual action to resolve.","SafetyBar.SafetyState.ManualActionRequired.lb":"Action required","SafetyBar.SafetyState.Normal.Explanation.lb":"The robot controller is in a safe state. Robot movement is enabled.","SafetyBar.SafetyState.Normal.lb":"Safe","SafetyBar.SafetyState.Stop.Explanation.lb":"The robot controller has entered a stop state. Movement is no longer possible until the stop state is resolved.","SafetyBar.SafetyState.Stop.lb":"Stop","SafetyBar.SafetyState.ti":"Safety state","SafetyBar.StopState.Estop.Explanation.lb":"An emergency stop of the robot controller has been triggered. Movement of the robot is no longer possible until the estop is released.","Jogging.Increment.hlb":"Increment","Jogging.CoordinateSystem.hlb":"Coordinate system","Jogging.Cartesian.bt":"Cartesian","Jogging.Joints.bt":"Joints","Jogging.Velocity.bt":"Velocity"},gs=Je.createInstance();gs.use(Kd).init({supportedLngs:["en","de"],resources:{en:{translations:dm},de:{translations:cm}},ns:["translations"],defaultNS:"translations",detection:{order:["navigator","htmlTag"]}});function qr(e){return r=>b.jsx(um,{children:b.jsx(e,{...r})})}const um=({children:e})=>b.jsx(Me.I18nextProvider,{i18n:gs,children:e}),pm=({title:e,titleId:t,...r},a)=>J.createElement("svg",{width:21,height:21,viewBox:"0 0 21 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:a,"aria-labelledby":t,...r},e?J.createElement("title",{id:t},e):null,J.createElement("g",{id:"JogMinus"},J.createElement("path",{id:"Minus",d:"M0 13V8H21V13H0Z",fill:"white"}))),hm=ae.forwardRef(pm),mm=({title:e,titleId:t,...r},a)=>J.createElement("svg",{width:21,height:21,viewBox:"0 0 21 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:a,"aria-labelledby":t,...r},e?J.createElement("title",{id:t},e):null,J.createElement("g",{id:"JogPlus"},J.createElement("g",{id:"Plus"},J.createElement("path",{d:"M0 13V8H8V13H0Z",fill:"white"}),J.createElement("path",{d:"M8 0L13 2.18557e-07L13 21H8L8 0Z",fill:"white"}),J.createElement("path",{d:"M13 13V8H21V13H13Z",fill:"white"})))),fm=ae.forwardRef(mm);function Gn(e){ae.useEffect(e,[])}function ic(e){Gn(()=>Be.autorun(e))}function lc(e,t,r){Gn(()=>Be.reaction(e,t,r))}function Wr(e){return Gn(()=>{let t;function r(){e(),t=requestAnimationFrame(r)}return t=requestAnimationFrame(r),()=>{cancelAnimationFrame(t)}})}const No=qr(ke.observer(({colors:e,label:t,getDisplayedValue:r,startJogging:a,stopJogging:n,disabled:o,activeJoggingDirection:s,...i})=>{var F,N,G,K,j,L,k;Wr(()=>{const y=r(),M=p.current;M&&(M.textContent=y)});const l=q.useTheme(),[c,d]=ae.useState(null);ae.useEffect(()=>{o&&U()},[o]);const u=s||c,p=ae.useRef(null);e||(e={color:"#fff",backgroundColor:"#000",borderColor:"#000",buttonBackgroundColor:{disabled:"#000",default:"#000",hovered:"#000",pressed:"#000"},labelColor:"#000"});const f=u?(F=e.buttonBackgroundColor)==null?void 0:F.pressed:e.borderColor,g={width:"55px",color:e.color,path:{fill:e.color},alignContent:"center",fontSize:"37px",svg:{pointerEvents:"none"}},h={...g,backgroundColor:(N=e.buttonBackgroundColor)==null?void 0:N.default,":hover":{backgroundColor:(G=e.buttonBackgroundColor)==null?void 0:G.hovered},":active":{backgroundColor:(K=e.buttonBackgroundColor)==null?void 0:K.pressed,color:e.backgroundColor,path:{fill:e.backgroundColor}},":disabled":{backgroundColor:(j=e.buttonBackgroundColor)==null?void 0:j.disabled,"svg path":{fill:l.palette.action.disabled}}},x={...g,backgroundColor:(L=e.buttonBackgroundColor)==null?void 0:L.pressed,color:e.backgroundColor,path:{fill:e.backgroundColor},":disabled":{backgroundColor:(k=e.buttonBackgroundColor)==null?void 0:k.pressed,"svg path":{fill:l.palette.action.disabled}}};function E(y,M){o||y.button===0&&(d(M),a(M))}function U(){d(null),n()}return b.jsxs(Dr,{height:"64px",direction:"row",justifyContent:"center",...i,children:[b.jsx(q.IconButton,{disabled:o,disableRipple:!0,onPointerDown:y=>E(y,"-"),onPointerUp:U,onPointerOut:U,size:"large",sx:{...u==="-"?x:h,borderRadius:"16px 0px 0px 16px",borderLeft:`2px solid ${f??"#fff"}`,borderBottom:`2px solid ${f??"#fff"}`,borderTop:`2px solid ${f??"#fff"}`},children:b.jsx(hm,{})}),b.jsxs(Dr,{spacing:"6px",sx:{width:"150px",backgroundColor:e.backgroundColor,alignItems:"center",justifyContent:"center",opacity:"0.9",borderBottom:`2px solid ${f??"#fff"}`,borderTop:`2px solid ${f??"#fff"}`},children:[b.jsx(Dr,{height:"22px",direction:"row",alignItems:"center",justifyItems:"center",spacing:1,sx:{userSelect:"none",color:e.color,".MuiTypography-root":{fontWeight:700,...o?{color:l.palette.action.disabled}:{}},...o?{"svg path":{fill:l.palette.action.disabled}}:{}},children:t}),b.jsx(q.Typography,{height:"22px",sx:{fontSize:"15px",color:o?l.palette.action.disabled:e.color,fontWeight:700},ref:p,children:r()})]}),b.jsx(q.IconButton,{disableRipple:!0,disabled:o,onPointerDown:y=>E(y,"+"),onPointerUp:U,onPointerOut:U,size:"large",sx:{...u==="+"?x:h,borderRadius:"0px 16px 16px 0px",borderRight:`2px solid ${f??"#fff"}`,borderBottom:`2px solid ${f??"#fff"}`,borderTop:`2px solid ${f??"#fff"}`},children:b.jsx(fm,{})})]})})),mr=Yp;function gm(e){return Ba("MuiSvgIcon",e)}Gl("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const ym=e=>{const{color:t,fontSize:r,classes:a}=e,n={root:["root",t!=="inherit"&&`color${We(t)}`,`fontSize${We(r)}`]};return ps(n,gm,a)},bm=$t("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="inherit"&&t[`color${We(r.color)}`],t[`fontSize${We(r.fontSize)}`]]}})(mr(({theme:e})=>{var t,r,a,n,o,s,i,l,c,d,u,p,f,g;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:(n=(t=e.transitions)==null?void 0:t.create)==null?void 0:n.call(t,"fill",{duration:(a=(r=(e.vars??e).transitions)==null?void 0:r.duration)==null?void 0:a.shorter}),variants:[{props:h=>!h.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:((s=(o=e.typography)==null?void 0:o.pxToRem)==null?void 0:s.call(o,20))||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:((l=(i=e.typography)==null?void 0:i.pxToRem)==null?void 0:l.call(i,24))||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:((d=(c=e.typography)==null?void 0:c.pxToRem)==null?void 0:d.call(c,35))||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,h])=>h&&h.main).map(([h])=>{var x,E;return{props:{color:h},style:{color:(E=(x=(e.vars??e).palette)==null?void 0:x[h])==null?void 0:E.main}}}),{props:{color:"action"},style:{color:(p=(u=(e.vars??e).palette)==null?void 0:u.action)==null?void 0:p.active}},{props:{color:"disabled"},style:{color:(g=(f=(e.vars??e).palette)==null?void 0:f.action)==null?void 0:g.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),Cn=J.forwardRef(function(t,r){const a=fs({props:t,name:"MuiSvgIcon"}),{children:n,className:o,color:s="inherit",component:i="svg",fontSize:l="medium",htmlColor:c,inheritViewBox:d=!1,titleAccess:u,viewBox:p="0 0 24 24",...f}=a,g=J.isValidElement(n)&&n.type==="svg",h={...a,color:s,component:i,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:d,viewBox:p,hasSvgAsChild:g},x={};d||(x.viewBox=p);const E=ym(h);return b.jsxs(bm,{as:i,className:Pt(E.root,o),focusable:"false",color:c,"aria-hidden":u?void 0:!0,role:u?"img":void 0,ref:r,...x,...f,...g&&n.props,ownerState:h,children:[g?n.props.children:n,u?b.jsx("title",{children:u}):null]})});process.env.NODE_ENV!=="production"&&(Cn.propTypes={children:S.node,classes:S.object,className:S.string,color:S.oneOfType([S.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),S.string]),component:S.elementType,fontSize:S.oneOfType([S.oneOf(["inherit","large","medium","small"]),S.string]),htmlColor:S.string,inheritViewBox:S.bool,shapeRendering:S.string,sx:S.oneOfType([S.arrayOf(S.oneOfType([S.func,S.object,S.bool])),S.func,S.object]),titleAccess:S.string,viewBox:S.string});Cn.muiName="SvgIcon";function Jn(e,t){function r(a,n){return b.jsx(Cn,{"data-testid":`${t}Icon`,ref:n,...a,children:e})}return process.env.NODE_ENV!=="production"&&(r.displayName=`${t}Icon`),r.muiName=Cn.muiName,J.memo(J.forwardRef(r))}const Sm=Jn(b.jsx("path",{d:"M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"ChevronLeft"),vm=Jn(b.jsx("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"ChevronRight");function dr(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var cc=typeof global=="object"&&global&&global.Object===Object&&global,xm=typeof self=="object"&&self&&self.Object===Object&&self,Rt=cc||xm||Function("return this")(),So=function(){return Rt.Date.now()},Om=/\s/;function wm(e){for(var t=e.length;t--&&Om.test(e.charAt(t)););return t}var Cm=/^\s+/;function Pm(e){return e&&e.slice(0,wm(e)+1).replace(Cm,"")}var Xt=Rt.Symbol,dc=Object.prototype,Vm=dc.hasOwnProperty,Rm=dc.toString,pa=Xt?Xt.toStringTag:void 0;function _m(e){var t=Vm.call(e,pa),r=e[pa];try{e[pa]=void 0;var a=!0}catch{}var n=Rm.call(e);return a&&(t?e[pa]=r:delete e[pa]),n}var Am=Object.prototype,Tm=Am.toString;function Em(e){return Tm.call(e)}var Im="[object Null]",Mm="[object Undefined]",bi=Xt?Xt.toStringTag:void 0;function fr(e){return e==null?e===void 0?Mm:Im:bi&&bi in Object(e)?_m(e):Em(e)}function ur(e){return e!=null&&typeof e=="object"}var jm="[object Symbol]";function Hn(e){return typeof e=="symbol"||ur(e)&&fr(e)==jm}var Si=NaN,$m=/^[-+]0x[0-9a-f]+$/i,Um=/^0b[01]+$/i,Lm=/^0o[0-7]+$/i,km=parseInt;function vi(e){if(typeof e=="number")return e;if(Hn(e))return Si;if(dr(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=dr(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Pm(e);var r=Um.test(e);return r||Lm.test(e)?km(e.slice(2),r?2:8):$m.test(e)?Si:+e}var Bm="Expected a function",Fm=Math.max,Nm=Math.min;function Dm(e,t,r){var a,n,o,s,i,l,c=0,d=!1,u=!1,p=!0;if(typeof e!="function")throw new TypeError(Bm);t=vi(t)||0,dr(r)&&(d=!!r.leading,u="maxWait"in r,o=u?Fm(vi(r.maxWait)||0,t):o,p="trailing"in r?!!r.trailing:p);function f(K){var j=a,L=n;return a=n=void 0,c=K,s=e.apply(L,j),s}function g(K){return c=K,i=setTimeout(E,t),d?f(K):s}function h(K){var j=K-l,L=K-c,k=t-j;return u?Nm(k,o-L):k}function x(K){var j=K-l,L=K-c;return l===void 0||j>=t||j<0||u&&L>=o}function E(){var K=So();if(x(K))return U(K);i=setTimeout(E,h(K))}function U(K){return i=void 0,p&&a?f(K):(a=n=void 0,s)}function F(){i!==void 0&&clearTimeout(i),c=0,a=l=n=i=void 0}function N(){return i===void 0?s:U(So())}function G(){var K=So(),j=x(K);if(a=arguments,n=this,l=K,j){if(i===void 0)return g(l);if(u)return clearTimeout(i),i=setTimeout(E,t),f(l)}return i===void 0&&(i=setTimeout(E,t)),s}return G.cancel=F,G.flush=N,G}var zm="Expected a function";function Gm(e,t,r){var a=!0,n=!0;if(typeof e!="function")throw new TypeError(zm);return dr(r)&&(a="leading"in r?!!r.leading:a,n="trailing"in r?!!r.trailing:n),Dm(e,t,{leading:a,maxWait:t,trailing:n})}const uc=qr(ke.observer(({startJogging:e,stopJogging:t,lowerLimitDegs:r,upperLimitDegs:a,getValueDegs:n,disabled:o,...s})=>{var F,N,G,K,j,L,k,y,M,B,z,D,re,Z,xe;const{t:i}=Me.useTranslation(),[l,c]=ae.useState(),d=q.useTheme(),u={background:(F=d.palette.backgroundPaperElevation)==null?void 0:F[4],color:(N=d.palette.backgroundPaperElevation)==null?void 0:N[11]},p=ke.useLocalObservable(()=>({activeJoggingDir:null,startJogging(X){this.activeJoggingDir=X,e(X)},stopJogging(){this.activeJoggingDir=null,t()}})),f=Gm(()=>{c(n())},50);Wr(f);function g(X){X.button===0&&p.startJogging("-")}function h(X){X.button===0&&p.startJogging("+")}function x(X){p.stopJogging()}function E(X){p.stopJogging()}function U(X,ce=1){if(X===void 0||isNaN(X))return"";const fe=i("General.degree.variable",{amount:X.toFixed(ce)});return X>0&&ce===0?`+${fe}`:fe}return b.jsxs(Dr,{height:"64px",width:"100%",maxWidth:"260px",direction:"row",...s,sx:{"& .MuiIconButton-root":{width:"52px",color:d.palette.text.primary,alignContent:"center",backgroundColor:(G=d.palette.backgroundPaperElevation)==null?void 0:G[11],"& svg":{width:"42px",height:"42px"},"&.Mui-disabled":{backgroundColor:(K=d.palette.backgroundPaperElevation)==null?void 0:K[11],color:d.palette.action.disabled,opacity:1},"&:hover":{backgroundColor:(j=d.palette.backgroundPaperElevation)==null?void 0:j[9]},"&:active":{...u}}},children:[b.jsx(q.IconButton,{onPointerDown:g,onPointerUp:x,onPointerOut:E,disabled:o,disableRipple:!0,sx:{borderRadius:"16px 0px 0px 16px",...p.activeJoggingDir==="-"?u:{}},children:b.jsx(Sm,{sx:{pointerEvents:"none",color:(M=(y=(k=(L=d.componentsExt)==null?void 0:L.JoggingPanel)==null?void 0:k.JoggingJoint)==null?void 0:y.Joint)==null?void 0:M.arrowColor}})}),b.jsxs(Dr,{flexGrow:1,alignItems:"center",justifyContent:"center",sx:{borderStyle:"solid",borderLeftWidth:0,borderRightWidth:0,border:"none",backgroundColor:(B=d.palette.backgroundPaperElevation)==null?void 0:B[11],paddingLeft:"20px",paddingRight:"20px",zIndex:1},children:[b.jsx(q.Typography,{sx:{fontSize:"15px",fontWeight:700,position:"relative",top:"5px",color:o?d.palette.action.disabled:d.palette.text.primary},children:U(l)}),b.jsx(q.Slider,{disabled:!0,"aria-label":"Joint position",min:r,max:a,value:l||0,track:!1,sx:{"& .MuiSlider-mark":{display:"none"},"& .MuiSlider-thumb":{width:"5px",height:"12px",borderRadius:"2px",color:o?d.palette.action.disabled:d.palette.text.primary},"& .MuiSlider-markLabel":{top:"20px",fontSize:"12px",color:o?d.palette.action.disabled:d.palette.text.secondary},"& .MuiSlider-rail":{backgroundColor:(z=d.palette.backgroundPaperElevation)==null?void 0:z[5],opacity:1}},marks:r!==void 0&&a!==void 0&&[{value:r,label:U(r,0)},{value:a,label:U(a,0)}]})]}),b.jsx(q.IconButton,{onPointerDown:h,onPointerUp:x,onPointerOut:E,disabled:o,disableRipple:!0,sx:{borderRadius:"0px 16px 16px 0px",...p.activeJoggingDir==="+"?u:{}},children:b.jsx(vm,{sx:{pointerEvents:"none",color:(xe=(Z=(re=(D=d.componentsExt)==null?void 0:D.JoggingPanel)==null?void 0:re.JoggingJoint)==null?void 0:Z.Joint)==null?void 0:xe.arrowColor}})})]})})),Jm=Jn(b.jsx("path",{d:"M10 9h4V6h3l-5-5-5 5h3zm-1 1H6V7l-5 5 5 5v-3h3zm14 2-5-5v3h-3v4h3v3zm-9 3h-4v3H7l5 5 5-5h-3z"}),"OpenWith"),Hm=Jn(b.jsx("path",{d:"M18 16.08c-.76 0-1.44.3-1.96.77L8.91 12.7c.05-.23.09-.46.09-.7s-.04-.47-.09-.7l7.05-4.11c.54.5 1.25.81 2.04.81 1.66 0 3-1.34 3-3s-1.34-3-3-3-3 1.34-3 3c0 .24.04.47.09.7L8.04 9.81C7.5 9.31 6.79 9 6 9c-1.66 0-3 1.34-3 3s1.34 3 3 3c.79 0 1.5-.31 2.04-.81l7.12 4.16c-.05.21-.08.43-.08.65 0 1.61 1.31 2.92 2.92 2.92s2.92-1.31 2.92-2.92-1.31-2.92-2.92-2.92"}),"Share");function qm(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var pc=qm;function Wm(){this.__data__=[],this.size=0}var Km=Wm;function Qm(e,t){return e===t||e!==e&&t!==t}var hc=Qm;function Ym(e,t){for(var r=e.length;r--;)if(hc(e[r][0],t))return r;return-1}var qn=Ym,Xm=Array.prototype,Zm=Xm.splice;function ef(e){var t=this.__data__,r=qn(t,e);if(r<0)return!1;var a=t.length-1;return r==a?t.pop():Zm.call(t,r,1),--this.size,!0}var tf=ef;function rf(e){var t=this.__data__,r=qn(t,e);return r<0?void 0:t[r][1]}var af=rf;function nf(e){return qn(this.__data__,e)>-1}var of=nf;function sf(e,t){var r=this.__data__,a=qn(r,e);return a<0?(++this.size,r.push([e,t])):r[a][1]=t,this}var lf=sf;function Kr(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var a=e[t];this.set(a[0],a[1])}}Kr.prototype.clear=Km;Kr.prototype.delete=tf;Kr.prototype.get=af;Kr.prototype.has=of;Kr.prototype.set=lf;var Wn=Kr;function cf(){this.__data__=new Wn,this.size=0}var df=cf;function uf(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}var pf=uf;function hf(e){return this.__data__.get(e)}var mf=hf;function ff(e){return this.__data__.has(e)}var gf=ff,yf=typeof global=="object"&&global&&global.Object===Object&&global,mc=yf,bf=typeof self=="object"&&self&&self.Object===Object&&self,Sf=mc||bf||Function("return this")(),Ut=Sf,vf=Ut.Symbol,Hr=vf,fc=Object.prototype,xf=fc.hasOwnProperty,Of=fc.toString,ha=Hr?Hr.toStringTag:void 0;function wf(e){var t=xf.call(e,ha),r=e[ha];try{e[ha]=void 0;var a=!0}catch{}var n=Of.call(e);return a&&(t?e[ha]=r:delete e[ha]),n}var Cf=wf,Pf=Object.prototype,Vf=Pf.toString;function Rf(e){return Vf.call(e)}var _f=Rf,Af="[object Null]",Tf="[object Undefined]",xi=Hr?Hr.toStringTag:void 0;function Ef(e){return e==null?e===void 0?Tf:Af:xi&&xi in Object(e)?Cf(e):_f(e)}var Fa=Ef,If="[object AsyncFunction]",Mf="[object Function]",jf="[object GeneratorFunction]",$f="[object Proxy]";function Uf(e){if(!pc(e))return!1;var t=Fa(e);return t==Mf||t==jf||t==If||t==$f}var gc=Uf,Lf=Ut["__core-js_shared__"],vo=Lf,Oi=function(){var e=/[^.]+$/.exec(vo&&vo.keys&&vo.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function kf(e){return!!Oi&&Oi in e}var Bf=kf,Ff=Function.prototype,Nf=Ff.toString;function Df(e){if(e!=null){try{return Nf.call(e)}catch{}try{return e+""}catch{}}return""}var gr=Df,zf=/[\\^$.*+?()[\]{}|]/g,Gf=/^\[object .+?Constructor\]$/,Jf=Function.prototype,Hf=Object.prototype,qf=Jf.toString,Wf=Hf.hasOwnProperty,Kf=RegExp("^"+qf.call(Wf).replace(zf,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Qf(e){if(!pc(e)||Bf(e))return!1;var t=gc(e)?Kf:Gf;return t.test(gr(e))}var Yf=Qf;function Xf(e,t){return e==null?void 0:e[t]}var Zf=Xf;function eg(e,t){var r=Zf(e,t);return Yf(r)?r:void 0}var Qr=eg,tg=Qr(Ut,"Map"),Ea=tg,rg=Qr(Object,"create"),Ia=rg;function ag(){this.__data__=Ia?Ia(null):{},this.size=0}var ng=ag;function og(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var sg=og,ig="__lodash_hash_undefined__",lg=Object.prototype,cg=lg.hasOwnProperty;function dg(e){var t=this.__data__;if(Ia){var r=t[e];return r===ig?void 0:r}return cg.call(t,e)?t[e]:void 0}var ug=dg,pg=Object.prototype,hg=pg.hasOwnProperty;function mg(e){var t=this.__data__;return Ia?t[e]!==void 0:hg.call(t,e)}var fg=mg,gg="__lodash_hash_undefined__";function yg(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Ia&&t===void 0?gg:t,this}var bg=yg;function Yr(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var a=e[t];this.set(a[0],a[1])}}Yr.prototype.clear=ng;Yr.prototype.delete=sg;Yr.prototype.get=ug;Yr.prototype.has=fg;Yr.prototype.set=bg;var wi=Yr;function Sg(){this.size=0,this.__data__={hash:new wi,map:new(Ea||Wn),string:new wi}}var vg=Sg;function xg(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var Og=xg;function wg(e,t){var r=e.__data__;return Og(t)?r[typeof t=="string"?"string":"hash"]:r.map}var Kn=wg;function Cg(e){var t=Kn(this,e).delete(e);return this.size-=t?1:0,t}var Pg=Cg;function Vg(e){return Kn(this,e).get(e)}var Rg=Vg;function _g(e){return Kn(this,e).has(e)}var Ag=_g;function Tg(e,t){var r=Kn(this,e),a=r.size;return r.set(e,t),this.size+=r.size==a?0:1,this}var Eg=Tg;function Xr(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var a=e[t];this.set(a[0],a[1])}}Xr.prototype.clear=vg;Xr.prototype.delete=Pg;Xr.prototype.get=Rg;Xr.prototype.has=Ag;Xr.prototype.set=Eg;var yc=Xr,Ig=200;function Mg(e,t){var r=this.__data__;if(r instanceof Wn){var a=r.__data__;if(!Ea||a.length<Ig-1)return a.push([e,t]),this.size=++r.size,this;r=this.__data__=new yc(a)}return r.set(e,t),this.size=r.size,this}var jg=Mg;function Zr(e){var t=this.__data__=new Wn(e);this.size=t.size}Zr.prototype.clear=df;Zr.prototype.delete=pf;Zr.prototype.get=mf;Zr.prototype.has=gf;Zr.prototype.set=jg;var xo=Zr,$g="__lodash_hash_undefined__";function Ug(e){return this.__data__.set(e,$g),this}var Lg=Ug;function kg(e){return this.__data__.has(e)}var Bg=kg;function Pn(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new yc;++t<r;)this.add(e[t])}Pn.prototype.add=Pn.prototype.push=Lg;Pn.prototype.has=Bg;var Fg=Pn;function Ng(e,t){for(var r=-1,a=e==null?0:e.length;++r<a;)if(t(e[r],r,e))return!0;return!1}var Dg=Ng;function zg(e,t){return e.has(t)}var Gg=zg,Jg=1,Hg=2;function qg(e,t,r,a,n,o){var s=r&Jg,i=e.length,l=t.length;if(i!=l&&!(s&&l>i))return!1;var c=o.get(e),d=o.get(t);if(c&&d)return c==t&&d==e;var u=-1,p=!0,f=r&Hg?new Fg:void 0;for(o.set(e,t),o.set(t,e);++u<i;){var g=e[u],h=t[u];if(a)var x=s?a(h,g,u,t,e,o):a(g,h,u,e,t,o);if(x!==void 0){if(x)continue;p=!1;break}if(f){if(!Dg(t,function(E,U){if(!Gg(f,U)&&(g===E||n(g,E,r,a,o)))return f.push(U)})){p=!1;break}}else if(!(g===h||n(g,h,r,a,o))){p=!1;break}}return o.delete(e),o.delete(t),p}var bc=qg,Wg=Ut.Uint8Array,Ci=Wg;function Kg(e){var t=-1,r=Array(e.size);return e.forEach(function(a,n){r[++t]=[n,a]}),r}var Qg=Kg;function Yg(e){var t=-1,r=Array(e.size);return e.forEach(function(a){r[++t]=a}),r}var Xg=Yg,Zg=1,ey=2,ty="[object Boolean]",ry="[object Date]",ay="[object Error]",ny="[object Map]",oy="[object Number]",sy="[object RegExp]",iy="[object Set]",ly="[object String]",cy="[object Symbol]",dy="[object ArrayBuffer]",uy="[object DataView]",Pi=Hr?Hr.prototype:void 0,Oo=Pi?Pi.valueOf:void 0;function py(e,t,r,a,n,o,s){switch(r){case uy:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case dy:return!(e.byteLength!=t.byteLength||!o(new Ci(e),new Ci(t)));case ty:case ry:case oy:return hc(+e,+t);case ay:return e.name==t.name&&e.message==t.message;case sy:case ly:return e==t+"";case ny:var i=Qg;case iy:var l=a&Zg;if(i||(i=Xg),e.size!=t.size&&!l)return!1;var c=s.get(e);if(c)return c==t;a|=ey,s.set(e,t);var d=bc(i(e),i(t),a,n,o,s);return s.delete(e),d;case cy:if(Oo)return Oo.call(e)==Oo.call(t)}return!1}var hy=py;function my(e,t){for(var r=-1,a=t.length,n=e.length;++r<a;)e[n+r]=t[r];return e}var fy=my,gy=Array.isArray,Vn=gy;function yy(e,t,r){var a=t(e);return Vn(e)?a:fy(a,r(e))}var by=yy;function Sy(e,t){for(var r=-1,a=e==null?0:e.length,n=0,o=[];++r<a;){var s=e[r];t(s,r,e)&&(o[n++]=s)}return o}var vy=Sy;function xy(){return[]}var Oy=xy,wy=Object.prototype,Cy=wy.propertyIsEnumerable,Vi=Object.getOwnPropertySymbols,Py=Vi?function(e){return e==null?[]:(e=Object(e),vy(Vi(e),function(t){return Cy.call(e,t)}))}:Oy,Vy=Py;function Ry(e,t){for(var r=-1,a=Array(e);++r<e;)a[r]=t(r);return a}var _y=Ry;function Ay(e){return e!=null&&typeof e=="object"}var Ma=Ay,Ty="[object Arguments]";function Ey(e){return Ma(e)&&Fa(e)==Ty}var Ri=Ey,Sc=Object.prototype,Iy=Sc.hasOwnProperty,My=Sc.propertyIsEnumerable,jy=Ri(function(){return arguments}())?Ri:function(e){return Ma(e)&&Iy.call(e,"callee")&&!My.call(e,"callee")},$y=jy;function Uy(){return!1}var Ly=Uy,vc=typeof exports=="object"&&exports&&!exports.nodeType&&exports,_i=vc&&typeof module=="object"&&module&&!module.nodeType&&module,ky=_i&&_i.exports===vc,Ai=ky?Ut.Buffer:void 0,By=Ai?Ai.isBuffer:void 0,Fy=By||Ly,Do=Fy,Ny=9007199254740991,Dy=/^(?:0|[1-9]\d*)$/;function zy(e,t){var r=typeof e;return t=t??Ny,!!t&&(r=="number"||r!="symbol"&&Dy.test(e))&&e>-1&&e%1==0&&e<t}var Gy=zy,Jy=9007199254740991;function Hy(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Jy}var xc=Hy,qy="[object Arguments]",Wy="[object Array]",Ky="[object Boolean]",Qy="[object Date]",Yy="[object Error]",Xy="[object Function]",Zy="[object Map]",eb="[object Number]",tb="[object Object]",rb="[object RegExp]",ab="[object Set]",nb="[object String]",ob="[object WeakMap]",sb="[object ArrayBuffer]",ib="[object DataView]",lb="[object Float32Array]",cb="[object Float64Array]",db="[object Int8Array]",ub="[object Int16Array]",pb="[object Int32Array]",hb="[object Uint8Array]",mb="[object Uint8ClampedArray]",fb="[object Uint16Array]",gb="[object Uint32Array]",Oe={};Oe[lb]=Oe[cb]=Oe[db]=Oe[ub]=Oe[pb]=Oe[hb]=Oe[mb]=Oe[fb]=Oe[gb]=!0;Oe[qy]=Oe[Wy]=Oe[sb]=Oe[Ky]=Oe[ib]=Oe[Qy]=Oe[Yy]=Oe[Xy]=Oe[Zy]=Oe[eb]=Oe[tb]=Oe[rb]=Oe[ab]=Oe[nb]=Oe[ob]=!1;function yb(e){return Ma(e)&&xc(e.length)&&!!Oe[Fa(e)]}var bb=yb;function Sb(e){return function(t){return e(t)}}var vb=Sb,Oc=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Pa=Oc&&typeof module=="object"&&module&&!module.nodeType&&module,xb=Pa&&Pa.exports===Oc,wo=xb&&mc.process,Ob=function(){try{var e=Pa&&Pa.require&&Pa.require("util").types;return e||wo&&wo.binding&&wo.binding("util")}catch{}}(),Ti=Ob,Ei=Ti&&Ti.isTypedArray,wb=Ei?vb(Ei):bb,wc=wb,Cb=Object.prototype,Pb=Cb.hasOwnProperty;function Vb(e,t){var r=Vn(e),a=!r&&$y(e),n=!r&&!a&&Do(e),o=!r&&!a&&!n&&wc(e),s=r||a||n||o,i=s?_y(e.length,String):[],l=i.length;for(var c in e)(t||Pb.call(e,c))&&!(s&&(c=="length"||n&&(c=="offset"||c=="parent")||o&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||Gy(c,l)))&&i.push(c);return i}var Rb=Vb,_b=Object.prototype;function Ab(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||_b;return e===r}var Tb=Ab;function Eb(e,t){return function(r){return e(t(r))}}var Ib=Eb,Mb=Ib(Object.keys,Object),jb=Mb,$b=Object.prototype,Ub=$b.hasOwnProperty;function Lb(e){if(!Tb(e))return jb(e);var t=[];for(var r in Object(e))Ub.call(e,r)&&r!="constructor"&&t.push(r);return t}var kb=Lb;function Bb(e){return e!=null&&xc(e.length)&&!gc(e)}var Fb=Bb;function Nb(e){return Fb(e)?Rb(e):kb(e)}var Db=Nb;function zb(e){return by(e,Db,Vy)}var Ii=zb,Gb=1,Jb=Object.prototype,Hb=Jb.hasOwnProperty;function qb(e,t,r,a,n,o){var s=r&Gb,i=Ii(e),l=i.length,c=Ii(t),d=c.length;if(l!=d&&!s)return!1;for(var u=l;u--;){var p=i[u];if(!(s?p in t:Hb.call(t,p)))return!1}var f=o.get(e),g=o.get(t);if(f&&g)return f==t&&g==e;var h=!0;o.set(e,t),o.set(t,e);for(var x=s;++u<l;){p=i[u];var E=e[p],U=t[p];if(a)var F=s?a(U,E,p,t,e,o):a(E,U,p,e,t,o);if(!(F===void 0?E===U||n(E,U,r,a,o):F)){h=!1;break}x||(x=p=="constructor")}if(h&&!x){var N=e.constructor,G=t.constructor;N!=G&&"constructor"in e&&"constructor"in t&&!(typeof N=="function"&&N instanceof N&&typeof G=="function"&&G instanceof G)&&(h=!1)}return o.delete(e),o.delete(t),h}var Wb=qb,Kb=Qr(Ut,"DataView"),zo=Kb,Qb=Qr(Ut,"Promise"),Go=Qb,Yb=Qr(Ut,"Set"),Jo=Yb,Xb=Qr(Ut,"WeakMap"),Ho=Xb,Mi="[object Map]",Zb="[object Object]",ji="[object Promise]",$i="[object Set]",Ui="[object WeakMap]",Li="[object DataView]",e0=gr(zo),t0=gr(Ea),r0=gr(Go),a0=gr(Jo),n0=gr(Ho),or=Fa;(zo&&or(new zo(new ArrayBuffer(1)))!=Li||Ea&&or(new Ea)!=Mi||Go&&or(Go.resolve())!=ji||Jo&&or(new Jo)!=$i||Ho&&or(new Ho)!=Ui)&&(or=function(e){var t=Fa(e),r=t==Zb?e.constructor:void 0,a=r?gr(r):"";if(a)switch(a){case e0:return Li;case t0:return Mi;case r0:return ji;case a0:return $i;case n0:return Ui}return t});var ki=or,o0=1,Bi="[object Arguments]",Fi="[object Array]",Wa="[object Object]",s0=Object.prototype,Ni=s0.hasOwnProperty;function i0(e,t,r,a,n,o){var s=Vn(e),i=Vn(t),l=s?Fi:ki(e),c=i?Fi:ki(t);l=l==Bi?Wa:l,c=c==Bi?Wa:c;var d=l==Wa,u=c==Wa,p=l==c;if(p&&Do(e)){if(!Do(t))return!1;s=!0,d=!1}if(p&&!d)return o||(o=new xo),s||wc(e)?bc(e,t,r,a,n,o):hy(e,t,l,r,a,n,o);if(!(r&o0)){var f=d&&Ni.call(e,"__wrapped__"),g=u&&Ni.call(t,"__wrapped__");if(f||g){var h=f?e.value():e,x=g?t.value():t;return o||(o=new xo),n(h,x,r,a,o)}}return p?(o||(o=new xo),Wb(e,t,r,a,n,o)):!1}var l0=i0;function Cc(e,t,r,a,n){return e===t?!0:e==null||t==null||!Ma(e)&&!Ma(t)?e!==e&&t!==t:l0(e,t,r,a,Cc,n)}var c0=Cc;function d0(e,t){return c0(e,t)}var u0=d0;/*! *****************************************************************************
89
89
  Copyright (c) Microsoft Corporation. All rights reserved.
90
90
  Licensed under the Apache License, Version 2.0 (the "License"); you may not use
91
91
  this file except in compliance with the License. You may obtain a copy of the
@@ -103,13 +103,13 @@ and limitations under the License.
103
103
  * by Pedro Ladaria <pedro.ladaria@gmail.com>
104
104
  * https://github.com/pladaria/reconnecting-websocket
105
105
  * License MIT
106
- */var y0=function(){if(typeof WebSocket<"u")return WebSocket},b0=function(e){return typeof e<"u"&&!!e&&e.CLOSING===2},nr={maxReconnectionDelay:1e4,minReconnectionDelay:1e3+Math.random()*4e3,minUptime:5e3,reconnectionDelayGrowFactor:1.3,connectionTimeout:4e3,maxRetries:1/0,maxEnqueuedMessages:1/0},S0=function(){function e(t,r,a){var n=this;a===void 0&&(a={}),this._listeners={error:[],message:[],open:[],close:[]},this._retryCount=-1,this._shouldReconnect=!0,this._connectLock=!1,this._binaryType="blob",this._closeCalled=!1,this._messageQueue=[],this.onclose=null,this.onerror=null,this.onmessage=null,this.onopen=null,this._handleOpen=function(o){n._debug("open event");var s=n._options.minUptime,i=s===void 0?nr.minUptime:s;clearTimeout(n._connectTimeout),n._uptimeTimeout=setTimeout(function(){return n._acceptOpen()},i),n._ws.binaryType=n._binaryType,n._messageQueue.forEach(function(l){return n._ws.send(l)}),n._messageQueue=[],n.onopen&&n.onopen(o),n._listeners.open.forEach(function(l){return n._callEventListener(o,l)})},this._handleMessage=function(o){n._debug("message event"),n.onmessage&&n.onmessage(o),n._listeners.message.forEach(function(s){return n._callEventListener(o,s)})},this._handleError=function(o){n._debug("error event",o.message),n._disconnect(void 0,o.message==="TIMEOUT"?"timeout":void 0),n.onerror&&n.onerror(o),n._debug("exec error listeners"),n._listeners.error.forEach(function(s){return n._callEventListener(o,s)}),n._connect()},this._handleClose=function(o){n._debug("close event"),n._clearTimeouts(),n._shouldReconnect&&n._connect(),n.onclose&&n.onclose(o),n._listeners.close.forEach(function(s){return n._callEventListener(o,s)})},this._url=t,this._protocols=r,this._options=a,this._options.startClosed&&(this._shouldReconnect=!1),this._connect()}return Object.defineProperty(e,"CONNECTING",{get:function(){return 0},enumerable:!0,configurable:!0}),Object.defineProperty(e,"OPEN",{get:function(){return 1},enumerable:!0,configurable:!0}),Object.defineProperty(e,"CLOSING",{get:function(){return 2},enumerable:!0,configurable:!0}),Object.defineProperty(e,"CLOSED",{get:function(){return 3},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"CONNECTING",{get:function(){return e.CONNECTING},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"OPEN",{get:function(){return e.OPEN},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"CLOSING",{get:function(){return e.CLOSING},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"CLOSED",{get:function(){return e.CLOSED},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"binaryType",{get:function(){return this._ws?this._ws.binaryType:this._binaryType},set:function(t){this._binaryType=t,this._ws&&(this._ws.binaryType=t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"retryCount",{get:function(){return Math.max(this._retryCount,0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"bufferedAmount",{get:function(){var t=this._messageQueue.reduce(function(r,a){return typeof a=="string"?r+=a.length:a instanceof Blob?r+=a.size:r+=a.byteLength,r},0);return t+(this._ws?this._ws.bufferedAmount:0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"extensions",{get:function(){return this._ws?this._ws.extensions:""},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"protocol",{get:function(){return this._ws?this._ws.protocol:""},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"readyState",{get:function(){return this._ws?this._ws.readyState:this._options.startClosed?e.CLOSED:e.CONNECTING},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"url",{get:function(){return this._ws?this._ws.url:""},enumerable:!0,configurable:!0}),e.prototype.close=function(t,r){if(t===void 0&&(t=1e3),this._closeCalled=!0,this._shouldReconnect=!1,this._clearTimeouts(),!this._ws){this._debug("close enqueued: no ws instance");return}if(this._ws.readyState===this.CLOSED){this._debug("close: already closed");return}this._ws.close(t,r)},e.prototype.reconnect=function(t,r){this._shouldReconnect=!0,this._closeCalled=!1,this._retryCount=-1,!this._ws||this._ws.readyState===this.CLOSED?this._connect():(this._disconnect(t,r),this._connect())},e.prototype.send=function(t){if(this._ws&&this._ws.readyState===this.OPEN)this._debug("send",t),this._ws.send(t);else{var r=this._options.maxEnqueuedMessages,a=r===void 0?nr.maxEnqueuedMessages:r;this._messageQueue.length<a&&(this._debug("enqueue",t),this._messageQueue.push(t))}},e.prototype.addEventListener=function(t,r){this._listeners[t]&&this._listeners[t].push(r)},e.prototype.dispatchEvent=function(t){var r,a,n=this._listeners[t.type];if(n)try{for(var o=p0(n),s=o.next();!s.done;s=o.next()){var i=s.value;this._callEventListener(t,i)}}catch(l){r={error:l}}finally{try{s&&!s.done&&(a=o.return)&&a.call(o)}finally{if(r)throw r.error}}return!0},e.prototype.removeEventListener=function(t,r){this._listeners[t]&&(this._listeners[t]=this._listeners[t].filter(function(a){return a!==r}))},e.prototype._debug=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];this._options.debug&&console.log.apply(console,m0(["RWS>"],t))},e.prototype._getNextDelay=function(){var t=this._options,r=t.reconnectionDelayGrowFactor,a=r===void 0?nr.reconnectionDelayGrowFactor:r,n=t.minReconnectionDelay,o=n===void 0?nr.minReconnectionDelay:n,s=t.maxReconnectionDelay,i=s===void 0?nr.maxReconnectionDelay:s,l=0;return this._retryCount>0&&(l=o*Math.pow(a,this._retryCount-1),l>i&&(l=i)),this._debug("next delay",l),l},e.prototype._wait=function(){var t=this;return new Promise(function(r){setTimeout(r,t._getNextDelay())})},e.prototype._getNextUrl=function(t){if(typeof t=="string")return Promise.resolve(t);if(typeof t=="function"){var r=t();if(typeof r=="string")return Promise.resolve(r);if(r.then)return r}throw Error("Invalid URL")},e.prototype._connect=function(){var t=this;if(!(this._connectLock||!this._shouldReconnect)){this._connectLock=!0;var r=this._options,a=r.maxRetries,n=a===void 0?nr.maxRetries:a,o=r.connectionTimeout,s=o===void 0?nr.connectionTimeout:o,i=r.WebSocket,l=i===void 0?y0():i;if(this._retryCount>=n){this._debug("max retries reached",this._retryCount,">=",n);return}if(this._retryCount++,this._debug("connect",this._retryCount),this._removeListeners(),!b0(l))throw Error("No valid WebSocket class provided");this._wait().then(function(){return t._getNextUrl(t._url)}).then(function(c){t._closeCalled||(t._debug("connect",{url:c,protocols:t._protocols}),t._ws=t._protocols?new l(c,t._protocols):new l(c),t._ws.binaryType=t._binaryType,t._connectLock=!1,t._addListeners(),t._connectTimeout=setTimeout(function(){return t._handleTimeout()},s))})}},e.prototype._handleTimeout=function(){this._debug("timeout event"),this._handleError(new f0(Error("TIMEOUT"),this))},e.prototype._disconnect=function(t,r){if(t===void 0&&(t=1e3),this._clearTimeouts(),!!this._ws){this._removeListeners();try{this._ws.close(t,r),this._handleClose(new g0(t,r,this))}catch{}}},e.prototype._acceptOpen=function(){this._debug("accept open"),this._retryCount=0},e.prototype._callEventListener=function(t,r){"handleEvent"in r?r.handleEvent(t):r(t)},e.prototype._removeListeners=function(){this._ws&&(this._debug("removeListeners"),this._ws.removeEventListener("open",this._handleOpen),this._ws.removeEventListener("close",this._handleClose),this._ws.removeEventListener("message",this._handleMessage),this._ws.removeEventListener("error",this._handleError))},e.prototype._addListeners=function(){this._ws&&(this._debug("addListeners"),this._ws.addEventListener("open",this._handleOpen),this._ws.addEventListener("close",this._handleClose),this._ws.addEventListener("message",this._handleMessage),this._ws.addEventListener("error",this._handleError))},e.prototype._clearTimeouts=function(){clearTimeout(this._connectTimeout),clearTimeout(this._uptimeTimeout)},e}(),v0=Object.defineProperty,x0=Object.defineProperties,O0=Object.getOwnPropertyDescriptors,Di=Object.getOwnPropertySymbols,w0=Object.prototype.hasOwnProperty,C0=Object.prototype.propertyIsEnumerable,zi=(e,t,r)=>t in e?v0(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Fr=(e,t)=>{for(var r in t||(t={}))w0.call(t,r)&&zi(e,r,t[r]);if(Di)for(var r of Di(t))C0.call(t,r)&&zi(e,r,t[r]);return e},Wo=(e,t)=>x0(e,O0(t)),Ce=(e,t,r)=>new Promise((a,n)=>{var o=l=>{try{i(r.next(l))}catch(c){n(c)}},s=l=>{try{i(r.throw(l))}catch(c){n(c)}},i=l=>l.done?a(l.value):Promise.resolve(l.value).then(o,s);i((r=r.apply(e,t)).next())}),P0=class extends S0{constructor(e,t={}){console.log("Opening websocket to",e),super(()=>this.targetUrl||e,void 0,{startClosed:!0}),this.opts=t,this.disposed=!1,Object.defineProperty(this,"url",{get(){return this.targetUrl}}),this.targetUrl=e,this.addEventListener("open",()=>{console.log(`Websocket to ${this.url} opened`)}),this.addEventListener("message",a=>{this.receivedFirstMessage||(this.receivedFirstMessage=a)}),this.addEventListener("close",()=>{console.log(`Websocket to ${this.url} closed`)});const r=this.reconnect;this.reconnect=()=>{this.opts.mock?this.opts.mock.handleWebsocketConnection(this):r.apply(this)},this.reconnect()}changeUrl(e){this.receivedFirstMessage=void 0,this.targetUrl=e,this.reconnect()}sendJson(e){this.opts.mock?this.opts.mock.handleWebsocketMessage(this,JSON.stringify(e)):this.send(JSON.stringify(e))}dispose(){this.close(),this.disposed=!0,this.opts.onDispose&&this.opts.onDispose()}opened(){return Ce(this,null,function*(){return new Promise((e,t)=>{this.readyState===WebSocket.OPEN?e():(this.addEventListener("open",()=>e()),this.addEventListener("error",t))})})}closed(){return Ce(this,null,function*(){return new Promise((e,t)=>{this.readyState===WebSocket.CLOSED?e():(this.addEventListener("close",()=>e()),this.addEventListener("error",t))})})}firstMessage(){return Ce(this,null,function*(){return this.receivedFirstMessage?this.receivedFirstMessage:new Promise((e,t)=>{const r=n=>{this.receivedFirstMessage=n,this.removeEventListener("message",r),this.removeEventListener("error",a),e(n)},a=n=>{this.removeEventListener("message",r),this.removeEventListener("error",a),t(n)};this.addEventListener("message",r),this.addEventListener("error",a)})})}nextMessage(){return Ce(this,null,function*(){return new Promise((e,t)=>{const r=n=>{this.removeEventListener("message",r),this.removeEventListener("error",a),e(n)},a=n=>{this.removeEventListener("message",r),this.removeEventListener("error",a),t(n)};this.addEventListener("message",r),this.addEventListener("error",a)})})}},V0=class{constructor(){this.available=typeof window<"u"&&!!window.localStorage}getJSON(e){if(!this.available)return null;const t=window.localStorage.getItem(e);if(t===null)return null;try{return JSON.parse(t)}catch{return null}}setJSON(e,t){if(!this.available)return null;window.localStorage.setItem(e,JSON.stringify(t))}delete(e){if(!this.available)return null;window.localStorage.removeItem(e)}setString(e,t){if(!this.available)return null;window.localStorage.setItem(e,t)}getString(e){return this.available?window.localStorage.getItem(e):null}},Co=new V0;function Kt(e){try{return JSON.parse(e)}catch{return}}function R0(e,t){return e||(e="world"),t||(t="world"),e===t}var zr="wandelbots.io",Po={dev:{domain:`https://auth.portal.dev.${zr}`,clientId:"fLbJD0RLp5r2Dpucm5j8BjwMR6Hunfha"},stg:{domain:`https://auth.portal.stg.${zr}`,clientId:"joVDeD9e786WzFNSGCqoVq7HNkWt5j6s"},prod:{domain:`https://auth.portal.${zr}`,clientId:"J7WJUi38xVQdJAEBNRT9Xw1b0fXDb4J2"}},_0=e=>{if(e.includes(`dev.${zr}`))return Po.dev;if(e.includes(`stg.${zr}`))return Po.stg;if(e.includes(zr))return Po.prod;throw new Error("Unsupported instance URL. Cannot determine Auth0 configuration.")},A0=e=>Ce(void 0,null,function*(){var t;if(typeof window>"u")throw new Error("Access token must be set to use NovaClient when not in a browser environment.");const r=_0(e);if(new URL(e).origin===window.location.origin)throw window.location.reload(),new Error("Failed to reload page to get auth details, please refresh manually");const{Auth0Client:a}=yield Promise.resolve().then(()=>require("./auth0-spa-js.production.esm-BLRAk7Yh.cjs")),n=new a({domain:r.domain,clientId:(t=r.clientId)!=null?t:"",useRefreshTokens:!1,authorizationParams:{audience:"nova-api",redirect_uri:window.location.origin}});if(window.location.search.includes("code=")&&window.location.search.includes("state=")){const{appState:s}=yield n.handleRedirectCallback();window.history.replaceState({},document.title,(s==null?void 0:s.returnTo)||window.location.pathname)}else yield n.loginWithRedirect();return yield n.getTokenSilently()});function Rc(e,t){return function(){return e.apply(t,arguments)}}const{toString:T0}=Object.prototype,{getPrototypeOf:ys}=Object,Qn=(e=>t=>{const r=T0.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),gt=e=>(e=e.toLowerCase(),t=>Qn(t)===e),Yn=e=>t=>typeof t===e,{isArray:ea}=Array,ja=Yn("undefined");function E0(e){return e!==null&&!ja(e)&&e.constructor!==null&&!ja(e.constructor)&&at(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const _c=gt("ArrayBuffer");function I0(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&_c(e.buffer),t}const M0=Yn("string"),at=Yn("function"),Ac=Yn("number"),Xn=e=>e!==null&&typeof e=="object",j0=e=>e===!0||e===!1,pn=e=>{if(Qn(e)!=="object")return!1;const t=ys(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},$0=gt("Date"),U0=gt("File"),L0=gt("Blob"),k0=gt("FileList"),B0=e=>Xn(e)&&at(e.pipe),F0=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||at(e.append)&&((t=Qn(e))==="formdata"||t==="object"&&at(e.toString)&&e.toString()==="[object FormData]"))},N0=gt("URLSearchParams"),[D0,z0,G0,J0]=["ReadableStream","Request","Response","Headers"].map(gt),H0=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Na(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let a,n;if(typeof e!="object"&&(e=[e]),ea(e))for(a=0,n=e.length;a<n;a++)t.call(null,e[a],a,e);else{const o=r?Object.getOwnPropertyNames(e):Object.keys(e),s=o.length;let i;for(a=0;a<s;a++)i=o[a],t.call(null,e[i],i,e)}}function Tc(e,t){t=t.toLowerCase();const r=Object.keys(e);let a=r.length,n;for(;a-- >0;)if(n=r[a],t===n.toLowerCase())return n;return null}const sr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Ec=e=>!ja(e)&&e!==sr;function Ko(){const{caseless:e}=Ec(this)&&this||{},t={},r=(a,n)=>{const o=e&&Tc(t,n)||n;pn(t[o])&&pn(a)?t[o]=Ko(t[o],a):pn(a)?t[o]=Ko({},a):ea(a)?t[o]=a.slice():t[o]=a};for(let a=0,n=arguments.length;a<n;a++)arguments[a]&&Na(arguments[a],r);return t}const q0=(e,t,r,{allOwnKeys:a}={})=>(Na(t,(n,o)=>{r&&at(n)?e[o]=Rc(n,r):e[o]=n},{allOwnKeys:a}),e),W0=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),K0=(e,t,r,a)=>{e.prototype=Object.create(t.prototype,a),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},Q0=(e,t,r,a)=>{let n,o,s;const i={};if(t=t||{},e==null)return t;do{for(n=Object.getOwnPropertyNames(e),o=n.length;o-- >0;)s=n[o],(!a||a(s,e,t))&&!i[s]&&(t[s]=e[s],i[s]=!0);e=r!==!1&&ys(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},Y0=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const a=e.indexOf(t,r);return a!==-1&&a===r},X0=e=>{if(!e)return null;if(ea(e))return e;let t=e.length;if(!Ac(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},Z0=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&ys(Uint8Array)),eS=(e,t)=>{const a=(e&&e[Symbol.iterator]).call(e);let n;for(;(n=a.next())&&!n.done;){const o=n.value;t.call(e,o[0],o[1])}},tS=(e,t)=>{let r;const a=[];for(;(r=e.exec(t))!==null;)a.push(r);return a},rS=gt("HTMLFormElement"),aS=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,a,n){return a.toUpperCase()+n}),Gi=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),nS=gt("RegExp"),Ic=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),a={};Na(r,(n,o)=>{let s;(s=t(n,o,e))!==!1&&(a[o]=s||n)}),Object.defineProperties(e,a)},oS=e=>{Ic(e,(t,r)=>{if(at(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const a=e[r];if(at(a)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},sS=(e,t)=>{const r={},a=n=>{n.forEach(o=>{r[o]=!0})};return ea(e)?a(e):a(String(e).split(t)),r},iS=()=>{},lS=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function cS(e){return!!(e&&at(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const dS=e=>{const t=new Array(10),r=(a,n)=>{if(Xn(a)){if(t.indexOf(a)>=0)return;if(!("toJSON"in a)){t[n]=a;const o=ea(a)?[]:{};return Na(a,(s,i)=>{const l=r(s,n+1);!ja(l)&&(o[i]=l)}),t[n]=void 0,o}}return a};return r(e,0)},uS=gt("AsyncFunction"),pS=e=>e&&(Xn(e)||at(e))&&at(e.then)&&at(e.catch),Mc=((e,t)=>e?setImmediate:t?((r,a)=>(sr.addEventListener("message",({source:n,data:o})=>{n===sr&&o===r&&a.length&&a.shift()()},!1),n=>{a.push(n),sr.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",at(sr.postMessage)),hS=typeof queueMicrotask<"u"?queueMicrotask.bind(sr):typeof process<"u"&&process.nextTick||Mc,j={isArray:ea,isArrayBuffer:_c,isBuffer:E0,isFormData:F0,isArrayBufferView:I0,isString:M0,isNumber:Ac,isBoolean:j0,isObject:Xn,isPlainObject:pn,isReadableStream:D0,isRequest:z0,isResponse:G0,isHeaders:J0,isUndefined:ja,isDate:$0,isFile:U0,isBlob:L0,isRegExp:nS,isFunction:at,isStream:B0,isURLSearchParams:N0,isTypedArray:Z0,isFileList:k0,forEach:Na,merge:Ko,extend:q0,trim:H0,stripBOM:W0,inherits:K0,toFlatObject:Q0,kindOf:Qn,kindOfTest:gt,endsWith:Y0,toArray:X0,forEachEntry:eS,matchAll:tS,isHTMLForm:rS,hasOwnProperty:Gi,hasOwnProp:Gi,reduceDescriptors:Ic,freezeMethods:oS,toObjectSet:sS,toCamelCase:aS,noop:iS,toFiniteNumber:lS,findKey:Tc,global:sr,isContextDefined:Ec,isSpecCompliantForm:cS,toJSONObject:dS,isAsyncFn:uS,isThenable:pS,setImmediate:Mc,asap:hS};function ie(e,t,r,a,n){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),a&&(this.request=a),n&&(this.response=n,this.status=n.status?n.status:null)}j.inherits(ie,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:j.toJSONObject(this.config),code:this.code,status:this.status}}});const jc=ie.prototype,$c={};["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=>{$c[e]={value:e}});Object.defineProperties(ie,$c);Object.defineProperty(jc,"isAxiosError",{value:!0});ie.from=(e,t,r,a,n,o)=>{const s=Object.create(jc);return j.toFlatObject(e,s,function(l){return l!==Error.prototype},i=>i!=="isAxiosError"),ie.call(s,e.message,t,r,a,n),s.cause=e,s.name=e.name,o&&Object.assign(s,o),s};const mS=null;function Qo(e){return j.isPlainObject(e)||j.isArray(e)}function Uc(e){return j.endsWith(e,"[]")?e.slice(0,-2):e}function Ji(e,t,r){return e?e.concat(t).map(function(n,o){return n=Uc(n),!r&&o?"["+n+"]":n}).join(r?".":""):t}function fS(e){return j.isArray(e)&&!e.some(Qo)}const gS=j.toFlatObject(j,{},null,function(t){return/^is[A-Z]/.test(t)});function Zn(e,t,r){if(!j.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=j.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(h,x){return!j.isUndefined(x[h])});const a=r.metaTokens,n=r.visitor||d,o=r.dots,s=r.indexes,l=(r.Blob||typeof Blob<"u"&&Blob)&&j.isSpecCompliantForm(t);if(!j.isFunction(n))throw new TypeError("visitor must be a function");function c(y){if(y===null)return"";if(j.isDate(y))return y.toISOString();if(!l&&j.isBlob(y))throw new ie("Blob is not supported. Use a Buffer instead.");return j.isArrayBuffer(y)||j.isTypedArray(y)?l&&typeof Blob=="function"?new Blob([y]):Buffer.from(y):y}function d(y,h,x){let I=y;if(y&&!x&&typeof y=="object"){if(j.endsWith(h,"{}"))h=a?h:h.slice(0,-2),y=JSON.stringify(y);else if(j.isArray(y)&&fS(y)||(j.isFileList(y)||j.endsWith(h,"[]"))&&(I=j.toArray(y)))return h=Uc(h),I.forEach(function(F,N){!(j.isUndefined(F)||F===null)&&t.append(s===!0?Ji([h],N,o):s===null?h:h+"[]",c(F))}),!1}return Qo(y)?!0:(t.append(Ji(x,h,o),c(y)),!1)}const u=[],p=Object.assign(gS,{defaultVisitor:d,convertValue:c,isVisitable:Qo});function f(y,h){if(!j.isUndefined(y)){if(u.indexOf(y)!==-1)throw Error("Circular reference detected in "+h.join("."));u.push(y),j.forEach(y,function(I,k){(!(j.isUndefined(I)||I===null)&&n.call(t,I,j.isString(k)?k.trim():k,h,p))===!0&&f(I,h?h.concat(k):[k])}),u.pop()}}if(!j.isObject(e))throw new TypeError("data must be an object");return f(e),t}function Hi(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(a){return t[a]})}function bs(e,t){this._pairs=[],e&&Zn(e,this,t)}const Lc=bs.prototype;Lc.append=function(t,r){this._pairs.push([t,r])};Lc.toString=function(t){const r=t?function(a){return t.call(this,a,Hi)}:Hi;return this._pairs.map(function(n){return r(n[0])+"="+r(n[1])},"").join("&")};function yS(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function kc(e,t,r){if(!t)return e;const a=r&&r.encode||yS;j.isFunction(r)&&(r={serialize:r});const n=r&&r.serialize;let o;if(n?o=n(t,r):o=j.isURLSearchParams(t)?t.toString():new bs(t,r).toString(a),o){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class qi{constructor(){this.handlers=[]}use(t,r,a){return this.handlers.push({fulfilled:t,rejected:r,synchronous:a?a.synchronous:!1,runWhen:a?a.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){j.forEach(this.handlers,function(a){a!==null&&t(a)})}}const Bc={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},bS=typeof URLSearchParams<"u"?URLSearchParams:bs,SS=typeof FormData<"u"?FormData:null,vS=typeof Blob<"u"?Blob:null,xS={isBrowser:!0,classes:{URLSearchParams:bS,FormData:SS,Blob:vS},protocols:["http","https","file","blob","url","data"]},Ss=typeof window<"u"&&typeof document<"u",Yo=typeof navigator=="object"&&navigator||void 0,OS=Ss&&(!Yo||["ReactNative","NativeScript","NS"].indexOf(Yo.product)<0),wS=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",CS=Ss&&window.location.href||"http://localhost",PS=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Ss,hasStandardBrowserEnv:OS,hasStandardBrowserWebWorkerEnv:wS,navigator:Yo,origin:CS},Symbol.toStringTag,{value:"Module"})),Ge={...PS,...xS};function VS(e,t){return Zn(e,new Ge.classes.URLSearchParams,Object.assign({visitor:function(r,a,n,o){return Ge.isNode&&j.isBuffer(r)?(this.append(a,r.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function RS(e){return j.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function _S(e){const t={},r=Object.keys(e);let a;const n=r.length;let o;for(a=0;a<n;a++)o=r[a],t[o]=e[o];return t}function Fc(e){function t(r,a,n,o){let s=r[o++];if(s==="__proto__")return!0;const i=Number.isFinite(+s),l=o>=r.length;return s=!s&&j.isArray(n)?n.length:s,l?(j.hasOwnProp(n,s)?n[s]=[n[s],a]:n[s]=a,!i):((!n[s]||!j.isObject(n[s]))&&(n[s]=[]),t(r,a,n[s],o)&&j.isArray(n[s])&&(n[s]=_S(n[s])),!i)}if(j.isFormData(e)&&j.isFunction(e.entries)){const r={};return j.forEachEntry(e,(a,n)=>{t(RS(a),n,r,0)}),r}return null}function AS(e,t,r){if(j.isString(e))try{return(t||JSON.parse)(e),j.trim(e)}catch(a){if(a.name!=="SyntaxError")throw a}return(r||JSON.stringify)(e)}const Da={transitional:Bc,adapter:["xhr","http","fetch"],transformRequest:[function(t,r){const a=r.getContentType()||"",n=a.indexOf("application/json")>-1,o=j.isObject(t);if(o&&j.isHTMLForm(t)&&(t=new FormData(t)),j.isFormData(t))return n?JSON.stringify(Fc(t)):t;if(j.isArrayBuffer(t)||j.isBuffer(t)||j.isStream(t)||j.isFile(t)||j.isBlob(t)||j.isReadableStream(t))return t;if(j.isArrayBufferView(t))return t.buffer;if(j.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let i;if(o){if(a.indexOf("application/x-www-form-urlencoded")>-1)return VS(t,this.formSerializer).toString();if((i=j.isFileList(t))||a.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return Zn(i?{"files[]":t}:t,l&&new l,this.formSerializer)}}return o||n?(r.setContentType("application/json",!1),AS(t)):t}],transformResponse:[function(t){const r=this.transitional||Da.transitional,a=r&&r.forcedJSONParsing,n=this.responseType==="json";if(j.isResponse(t)||j.isReadableStream(t))return t;if(t&&j.isString(t)&&(a&&!this.responseType||n)){const s=!(r&&r.silentJSONParsing)&&n;try{return JSON.parse(t)}catch(i){if(s)throw i.name==="SyntaxError"?ie.from(i,ie.ERR_BAD_RESPONSE,this,null,this.response):i}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ge.classes.FormData,Blob:Ge.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};j.forEach(["delete","get","head","post","put","patch"],e=>{Da.headers[e]={}});const TS=j.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"]),ES=e=>{const t={};let r,a,n;return e&&e.split(`
107
- `).forEach(function(s){n=s.indexOf(":"),r=s.substring(0,n).trim().toLowerCase(),a=s.substring(n+1).trim(),!(!r||t[r]&&TS[r])&&(r==="set-cookie"?t[r]?t[r].push(a):t[r]=[a]:t[r]=t[r]?t[r]+", "+a:a)}),t},Wi=Symbol("internals");function ma(e){return e&&String(e).trim().toLowerCase()}function hn(e){return e===!1||e==null?e:j.isArray(e)?e.map(hn):String(e)}function IS(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let a;for(;a=r.exec(e);)t[a[1]]=a[2];return t}const MS=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Vo(e,t,r,a,n){if(j.isFunction(a))return a.call(this,t,r);if(n&&(t=r),!!j.isString(t)){if(j.isString(a))return t.indexOf(a)!==-1;if(j.isRegExp(a))return a.test(t)}}function jS(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,a)=>r.toUpperCase()+a)}function $S(e,t){const r=j.toCamelCase(" "+t);["get","set","has"].forEach(a=>{Object.defineProperty(e,a+r,{value:function(n,o,s){return this[a].call(this,t,n,o,s)},configurable:!0})})}let Ze=class{constructor(t){t&&this.set(t)}set(t,r,a){const n=this;function o(i,l,c){const d=ma(l);if(!d)throw new Error("header name must be a non-empty string");const u=j.findKey(n,d);(!u||n[u]===void 0||c===!0||c===void 0&&n[u]!==!1)&&(n[u||l]=hn(i))}const s=(i,l)=>j.forEach(i,(c,d)=>o(c,d,l));if(j.isPlainObject(t)||t instanceof this.constructor)s(t,r);else if(j.isString(t)&&(t=t.trim())&&!MS(t))s(ES(t),r);else if(j.isHeaders(t))for(const[i,l]of t.entries())o(l,i,a);else t!=null&&o(r,t,a);return this}get(t,r){if(t=ma(t),t){const a=j.findKey(this,t);if(a){const n=this[a];if(!r)return n;if(r===!0)return IS(n);if(j.isFunction(r))return r.call(this,n,a);if(j.isRegExp(r))return r.exec(n);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=ma(t),t){const a=j.findKey(this,t);return!!(a&&this[a]!==void 0&&(!r||Vo(this,this[a],a,r)))}return!1}delete(t,r){const a=this;let n=!1;function o(s){if(s=ma(s),s){const i=j.findKey(a,s);i&&(!r||Vo(a,a[i],i,r))&&(delete a[i],n=!0)}}return j.isArray(t)?t.forEach(o):o(t),n}clear(t){const r=Object.keys(this);let a=r.length,n=!1;for(;a--;){const o=r[a];(!t||Vo(this,this[o],o,t,!0))&&(delete this[o],n=!0)}return n}normalize(t){const r=this,a={};return j.forEach(this,(n,o)=>{const s=j.findKey(a,o);if(s){r[s]=hn(n),delete r[o];return}const i=t?jS(o):String(o).trim();i!==o&&delete r[o],r[i]=hn(n),a[i]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const r=Object.create(null);return j.forEach(this,(a,n)=>{a!=null&&a!==!1&&(r[n]=t&&j.isArray(a)?a.join(", "):a)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,r])=>t+": "+r).join(`
108
- `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){const a=new this(t);return r.forEach(n=>a.set(n)),a}static accessor(t){const a=(this[Wi]=this[Wi]={accessors:{}}).accessors,n=this.prototype;function o(s){const i=ma(s);a[i]||($S(n,s),a[i]=!0)}return j.isArray(t)?t.forEach(o):o(t),this}};Ze.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);j.reduceDescriptors(Ze.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(a){this[r]=a}}});j.freezeMethods(Ze);function Ro(e,t){const r=this||Da,a=t||r,n=Ze.from(a.headers);let o=a.data;return j.forEach(e,function(i){o=i.call(r,o,n.normalize(),t?t.status:void 0)}),n.normalize(),o}function Nc(e){return!!(e&&e.__CANCEL__)}function ta(e,t,r){ie.call(this,e??"canceled",ie.ERR_CANCELED,t,r),this.name="CanceledError"}j.inherits(ta,ie,{__CANCEL__:!0});function Dc(e,t,r){const a=r.config.validateStatus;!r.status||!a||a(r.status)?e(r):t(new ie("Request failed with status code "+r.status,[ie.ERR_BAD_REQUEST,ie.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function US(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function LS(e,t){e=e||10;const r=new Array(e),a=new Array(e);let n=0,o=0,s;return t=t!==void 0?t:1e3,function(l){const c=Date.now(),d=a[o];s||(s=c),r[n]=l,a[n]=c;let u=o,p=0;for(;u!==n;)p+=r[u++],u=u%e;if(n=(n+1)%e,n===o&&(o=(o+1)%e),c-s<t)return;const f=d&&c-d;return f?Math.round(p*1e3/f):void 0}}function kS(e,t){let r=0,a=1e3/t,n,o;const s=(c,d=Date.now())=>{r=d,n=null,o&&(clearTimeout(o),o=null),e.apply(null,c)};return[(...c)=>{const d=Date.now(),u=d-r;u>=a?s(c,d):(n=c,o||(o=setTimeout(()=>{o=null,s(n)},a-u)))},()=>n&&s(n)]}const Rn=(e,t,r=3)=>{let a=0;const n=LS(50,250);return kS(o=>{const s=o.loaded,i=o.lengthComputable?o.total:void 0,l=s-a,c=n(l),d=s<=i;a=s;const u={loaded:s,total:i,progress:i?s/i:void 0,bytes:l,rate:c||void 0,estimated:c&&i&&d?(i-s)/c:void 0,event:o,lengthComputable:i!=null,[t?"download":"upload"]:!0};e(u)},r)},Ki=(e,t)=>{const r=e!=null;return[a=>t[0]({lengthComputable:r,total:e,loaded:a}),t[1]]},Qi=e=>(...t)=>j.asap(()=>e(...t)),BS=Ge.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,Ge.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(Ge.origin),Ge.navigator&&/(msie|trident)/i.test(Ge.navigator.userAgent)):()=>!0,FS=Ge.hasStandardBrowserEnv?{write(e,t,r,a,n,o){const s=[e+"="+encodeURIComponent(t)];j.isNumber(r)&&s.push("expires="+new Date(r).toGMTString()),j.isString(a)&&s.push("path="+a),j.isString(n)&&s.push("domain="+n),o===!0&&s.push("secure"),document.cookie=s.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 NS(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function DS(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function zc(e,t,r){let a=!NS(t);return e&&a||r==!1?DS(e,t):t}const Yi=e=>e instanceof Ze?{...e}:e;function pr(e,t){t=t||{};const r={};function a(c,d,u,p){return j.isPlainObject(c)&&j.isPlainObject(d)?j.merge.call({caseless:p},c,d):j.isPlainObject(d)?j.merge({},d):j.isArray(d)?d.slice():d}function n(c,d,u,p){if(j.isUndefined(d)){if(!j.isUndefined(c))return a(void 0,c,u,p)}else return a(c,d,u,p)}function o(c,d){if(!j.isUndefined(d))return a(void 0,d)}function s(c,d){if(j.isUndefined(d)){if(!j.isUndefined(c))return a(void 0,c)}else return a(void 0,d)}function i(c,d,u){if(u in t)return a(c,d);if(u in e)return a(void 0,c)}const l={url:o,method:o,data:o,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:i,headers:(c,d,u)=>n(Yi(c),Yi(d),u,!0)};return j.forEach(Object.keys(Object.assign({},e,t)),function(d){const u=l[d]||n,p=u(e[d],t[d],d);j.isUndefined(p)&&u!==i||(r[d]=p)}),r}const Gc=e=>{const t=pr({},e);let{data:r,withXSRFToken:a,xsrfHeaderName:n,xsrfCookieName:o,headers:s,auth:i}=t;t.headers=s=Ze.from(s),t.url=kc(zc(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),i&&s.set("Authorization","Basic "+btoa((i.username||"")+":"+(i.password?unescape(encodeURIComponent(i.password)):"")));let l;if(j.isFormData(r)){if(Ge.hasStandardBrowserEnv||Ge.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if((l=s.getContentType())!==!1){const[c,...d]=l?l.split(";").map(u=>u.trim()).filter(Boolean):[];s.setContentType([c||"multipart/form-data",...d].join("; "))}}if(Ge.hasStandardBrowserEnv&&(a&&j.isFunction(a)&&(a=a(t)),a||a!==!1&&BS(t.url))){const c=n&&o&&FS.read(o);c&&s.set(n,c)}return t},zS=typeof XMLHttpRequest<"u",GS=zS&&function(e){return new Promise(function(r,a){const n=Gc(e);let o=n.data;const s=Ze.from(n.headers).normalize();let{responseType:i,onUploadProgress:l,onDownloadProgress:c}=n,d,u,p,f,y;function h(){f&&f(),y&&y(),n.cancelToken&&n.cancelToken.unsubscribe(d),n.signal&&n.signal.removeEventListener("abort",d)}let x=new XMLHttpRequest;x.open(n.method.toUpperCase(),n.url,!0),x.timeout=n.timeout;function I(){if(!x)return;const F=Ze.from("getAllResponseHeaders"in x&&x.getAllResponseHeaders()),z={data:!i||i==="text"||i==="json"?x.responseText:x.response,status:x.status,statusText:x.statusText,headers:F,config:e,request:x};Dc(function(E){r(E),h()},function(E){a(E),h()},z),x=null}"onloadend"in x?x.onloadend=I:x.onreadystatechange=function(){!x||x.readyState!==4||x.status===0&&!(x.responseURL&&x.responseURL.indexOf("file:")===0)||setTimeout(I)},x.onabort=function(){x&&(a(new ie("Request aborted",ie.ECONNABORTED,e,x)),x=null)},x.onerror=function(){a(new ie("Network Error",ie.ERR_NETWORK,e,x)),x=null},x.ontimeout=function(){let N=n.timeout?"timeout of "+n.timeout+"ms exceeded":"timeout exceeded";const z=n.transitional||Bc;n.timeoutErrorMessage&&(N=n.timeoutErrorMessage),a(new ie(N,z.clarifyTimeoutError?ie.ETIMEDOUT:ie.ECONNABORTED,e,x)),x=null},o===void 0&&s.setContentType(null),"setRequestHeader"in x&&j.forEach(s.toJSON(),function(N,z){x.setRequestHeader(z,N)}),j.isUndefined(n.withCredentials)||(x.withCredentials=!!n.withCredentials),i&&i!=="json"&&(x.responseType=n.responseType),c&&([p,y]=Rn(c,!0),x.addEventListener("progress",p)),l&&x.upload&&([u,f]=Rn(l),x.upload.addEventListener("progress",u),x.upload.addEventListener("loadend",f)),(n.cancelToken||n.signal)&&(d=F=>{x&&(a(!F||F.type?new ta(null,e,x):F),x.abort(),x=null)},n.cancelToken&&n.cancelToken.subscribe(d),n.signal&&(n.signal.aborted?d():n.signal.addEventListener("abort",d)));const k=US(n.url);if(k&&Ge.protocols.indexOf(k)===-1){a(new ie("Unsupported protocol "+k+":",ie.ERR_BAD_REQUEST,e));return}x.send(o||null)})},JS=(e,t)=>{const{length:r}=e=e?e.filter(Boolean):[];if(t||r){let a=new AbortController,n;const o=function(c){if(!n){n=!0,i();const d=c instanceof Error?c:this.reason;a.abort(d instanceof ie?d:new ta(d instanceof Error?d.message:d))}};let s=t&&setTimeout(()=>{s=null,o(new ie(`timeout ${t} of ms exceeded`,ie.ETIMEDOUT))},t);const i=()=>{e&&(s&&clearTimeout(s),s=null,e.forEach(c=>{c.unsubscribe?c.unsubscribe(o):c.removeEventListener("abort",o)}),e=null)};e.forEach(c=>c.addEventListener("abort",o));const{signal:l}=a;return l.unsubscribe=()=>j.asap(i),l}},HS=function*(e,t){let r=e.byteLength;if(r<t){yield e;return}let a=0,n;for(;a<r;)n=a+t,yield e.slice(a,n),a=n},qS=async function*(e,t){for await(const r of WS(e))yield*HS(r,t)},WS=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:r,value:a}=await t.read();if(r)break;yield a}}finally{await t.cancel()}},Xi=(e,t,r,a)=>{const n=qS(e,t);let o=0,s,i=l=>{s||(s=!0,a&&a(l))};return new ReadableStream({async pull(l){try{const{done:c,value:d}=await n.next();if(c){i(),l.close();return}let u=d.byteLength;if(r){let p=o+=u;r(p)}l.enqueue(new Uint8Array(d))}catch(c){throw i(c),c}},cancel(l){return i(l),n.return()}},{highWaterMark:2})},eo=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Jc=eo&&typeof ReadableStream=="function",KS=eo&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Hc=(e,...t)=>{try{return!!e(...t)}catch{return!1}},QS=Jc&&Hc(()=>{let e=!1;const t=new Request(Ge.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),Zi=64*1024,Xo=Jc&&Hc(()=>j.isReadableStream(new Response("").body)),_n={stream:Xo&&(e=>e.body)};eo&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!_n[t]&&(_n[t]=j.isFunction(e[t])?r=>r[t]():(r,a)=>{throw new ie(`Response type '${t}' is not supported`,ie.ERR_NOT_SUPPORT,a)})})})(new Response);const YS=async e=>{if(e==null)return 0;if(j.isBlob(e))return e.size;if(j.isSpecCompliantForm(e))return(await new Request(Ge.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(j.isArrayBufferView(e)||j.isArrayBuffer(e))return e.byteLength;if(j.isURLSearchParams(e)&&(e=e+""),j.isString(e))return(await KS(e)).byteLength},XS=async(e,t)=>{const r=j.toFiniteNumber(e.getContentLength());return r??YS(t)},ZS=eo&&(async e=>{let{url:t,method:r,data:a,signal:n,cancelToken:o,timeout:s,onDownloadProgress:i,onUploadProgress:l,responseType:c,headers:d,withCredentials:u="same-origin",fetchOptions:p}=Gc(e);c=c?(c+"").toLowerCase():"text";let f=JS([n,o&&o.toAbortSignal()],s),y;const h=f&&f.unsubscribe&&(()=>{f.unsubscribe()});let x;try{if(l&&QS&&r!=="get"&&r!=="head"&&(x=await XS(d,a))!==0){let z=new Request(t,{method:"POST",body:a,duplex:"half"}),K;if(j.isFormData(a)&&(K=z.headers.get("content-type"))&&d.setContentType(K),z.body){const[E,$]=Ki(x,Rn(Qi(l)));a=Xi(z.body,Zi,E,$)}}j.isString(u)||(u=u?"include":"omit");const I="credentials"in Request.prototype;y=new Request(t,{...p,signal:f,method:r.toUpperCase(),headers:d.normalize().toJSON(),body:a,duplex:"half",credentials:I?u:void 0});let k=await fetch(y);const F=Xo&&(c==="stream"||c==="response");if(Xo&&(i||F&&h)){const z={};["status","statusText","headers"].forEach(L=>{z[L]=k[L]});const K=j.toFiniteNumber(k.headers.get("content-length")),[E,$]=i&&Ki(K,Rn(Qi(i),!0))||[];k=new Response(Xi(k.body,Zi,E,()=>{$&&$(),h&&h()}),z)}c=c||"text";let N=await _n[j.findKey(_n,c)||"text"](k,e);return!F&&h&&h(),await new Promise((z,K)=>{Dc(z,K,{data:N,headers:Ze.from(k.headers),status:k.status,statusText:k.statusText,config:e,request:y})})}catch(I){throw h&&h(),I&&I.name==="TypeError"&&/fetch/i.test(I.message)?Object.assign(new ie("Network Error",ie.ERR_NETWORK,e,y),{cause:I.cause||I}):ie.from(I,I&&I.code,e,y)}}),Zo={http:mS,xhr:GS,fetch:ZS};j.forEach(Zo,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const el=e=>`- ${e}`,ev=e=>j.isFunction(e)||e===null||e===!1,qc={getAdapter:e=>{e=j.isArray(e)?e:[e];const{length:t}=e;let r,a;const n={};for(let o=0;o<t;o++){r=e[o];let s;if(a=r,!ev(r)&&(a=Zo[(s=String(r)).toLowerCase()],a===void 0))throw new ie(`Unknown adapter '${s}'`);if(a)break;n[s||"#"+o]=a}if(!a){const o=Object.entries(n).map(([i,l])=>`adapter ${i} `+(l===!1?"is not supported by the environment":"is not available in the build"));let s=t?o.length>1?`since :
106
+ */var y0=function(){if(typeof WebSocket<"u")return WebSocket},b0=function(e){return typeof e<"u"&&!!e&&e.CLOSING===2},nr={maxReconnectionDelay:1e4,minReconnectionDelay:1e3+Math.random()*4e3,minUptime:5e3,reconnectionDelayGrowFactor:1.3,connectionTimeout:4e3,maxRetries:1/0,maxEnqueuedMessages:1/0},S0=function(){function e(t,r,a){var n=this;a===void 0&&(a={}),this._listeners={error:[],message:[],open:[],close:[]},this._retryCount=-1,this._shouldReconnect=!0,this._connectLock=!1,this._binaryType="blob",this._closeCalled=!1,this._messageQueue=[],this.onclose=null,this.onerror=null,this.onmessage=null,this.onopen=null,this._handleOpen=function(o){n._debug("open event");var s=n._options.minUptime,i=s===void 0?nr.minUptime:s;clearTimeout(n._connectTimeout),n._uptimeTimeout=setTimeout(function(){return n._acceptOpen()},i),n._ws.binaryType=n._binaryType,n._messageQueue.forEach(function(l){return n._ws.send(l)}),n._messageQueue=[],n.onopen&&n.onopen(o),n._listeners.open.forEach(function(l){return n._callEventListener(o,l)})},this._handleMessage=function(o){n._debug("message event"),n.onmessage&&n.onmessage(o),n._listeners.message.forEach(function(s){return n._callEventListener(o,s)})},this._handleError=function(o){n._debug("error event",o.message),n._disconnect(void 0,o.message==="TIMEOUT"?"timeout":void 0),n.onerror&&n.onerror(o),n._debug("exec error listeners"),n._listeners.error.forEach(function(s){return n._callEventListener(o,s)}),n._connect()},this._handleClose=function(o){n._debug("close event"),n._clearTimeouts(),n._shouldReconnect&&n._connect(),n.onclose&&n.onclose(o),n._listeners.close.forEach(function(s){return n._callEventListener(o,s)})},this._url=t,this._protocols=r,this._options=a,this._options.startClosed&&(this._shouldReconnect=!1),this._connect()}return Object.defineProperty(e,"CONNECTING",{get:function(){return 0},enumerable:!0,configurable:!0}),Object.defineProperty(e,"OPEN",{get:function(){return 1},enumerable:!0,configurable:!0}),Object.defineProperty(e,"CLOSING",{get:function(){return 2},enumerable:!0,configurable:!0}),Object.defineProperty(e,"CLOSED",{get:function(){return 3},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"CONNECTING",{get:function(){return e.CONNECTING},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"OPEN",{get:function(){return e.OPEN},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"CLOSING",{get:function(){return e.CLOSING},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"CLOSED",{get:function(){return e.CLOSED},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"binaryType",{get:function(){return this._ws?this._ws.binaryType:this._binaryType},set:function(t){this._binaryType=t,this._ws&&(this._ws.binaryType=t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"retryCount",{get:function(){return Math.max(this._retryCount,0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"bufferedAmount",{get:function(){var t=this._messageQueue.reduce(function(r,a){return typeof a=="string"?r+=a.length:a instanceof Blob?r+=a.size:r+=a.byteLength,r},0);return t+(this._ws?this._ws.bufferedAmount:0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"extensions",{get:function(){return this._ws?this._ws.extensions:""},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"protocol",{get:function(){return this._ws?this._ws.protocol:""},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"readyState",{get:function(){return this._ws?this._ws.readyState:this._options.startClosed?e.CLOSED:e.CONNECTING},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"url",{get:function(){return this._ws?this._ws.url:""},enumerable:!0,configurable:!0}),e.prototype.close=function(t,r){if(t===void 0&&(t=1e3),this._closeCalled=!0,this._shouldReconnect=!1,this._clearTimeouts(),!this._ws){this._debug("close enqueued: no ws instance");return}if(this._ws.readyState===this.CLOSED){this._debug("close: already closed");return}this._ws.close(t,r)},e.prototype.reconnect=function(t,r){this._shouldReconnect=!0,this._closeCalled=!1,this._retryCount=-1,!this._ws||this._ws.readyState===this.CLOSED?this._connect():(this._disconnect(t,r),this._connect())},e.prototype.send=function(t){if(this._ws&&this._ws.readyState===this.OPEN)this._debug("send",t),this._ws.send(t);else{var r=this._options.maxEnqueuedMessages,a=r===void 0?nr.maxEnqueuedMessages:r;this._messageQueue.length<a&&(this._debug("enqueue",t),this._messageQueue.push(t))}},e.prototype.addEventListener=function(t,r){this._listeners[t]&&this._listeners[t].push(r)},e.prototype.dispatchEvent=function(t){var r,a,n=this._listeners[t.type];if(n)try{for(var o=p0(n),s=o.next();!s.done;s=o.next()){var i=s.value;this._callEventListener(t,i)}}catch(l){r={error:l}}finally{try{s&&!s.done&&(a=o.return)&&a.call(o)}finally{if(r)throw r.error}}return!0},e.prototype.removeEventListener=function(t,r){this._listeners[t]&&(this._listeners[t]=this._listeners[t].filter(function(a){return a!==r}))},e.prototype._debug=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];this._options.debug&&console.log.apply(console,m0(["RWS>"],t))},e.prototype._getNextDelay=function(){var t=this._options,r=t.reconnectionDelayGrowFactor,a=r===void 0?nr.reconnectionDelayGrowFactor:r,n=t.minReconnectionDelay,o=n===void 0?nr.minReconnectionDelay:n,s=t.maxReconnectionDelay,i=s===void 0?nr.maxReconnectionDelay:s,l=0;return this._retryCount>0&&(l=o*Math.pow(a,this._retryCount-1),l>i&&(l=i)),this._debug("next delay",l),l},e.prototype._wait=function(){var t=this;return new Promise(function(r){setTimeout(r,t._getNextDelay())})},e.prototype._getNextUrl=function(t){if(typeof t=="string")return Promise.resolve(t);if(typeof t=="function"){var r=t();if(typeof r=="string")return Promise.resolve(r);if(r.then)return r}throw Error("Invalid URL")},e.prototype._connect=function(){var t=this;if(!(this._connectLock||!this._shouldReconnect)){this._connectLock=!0;var r=this._options,a=r.maxRetries,n=a===void 0?nr.maxRetries:a,o=r.connectionTimeout,s=o===void 0?nr.connectionTimeout:o,i=r.WebSocket,l=i===void 0?y0():i;if(this._retryCount>=n){this._debug("max retries reached",this._retryCount,">=",n);return}if(this._retryCount++,this._debug("connect",this._retryCount),this._removeListeners(),!b0(l))throw Error("No valid WebSocket class provided");this._wait().then(function(){return t._getNextUrl(t._url)}).then(function(c){t._closeCalled||(t._debug("connect",{url:c,protocols:t._protocols}),t._ws=t._protocols?new l(c,t._protocols):new l(c),t._ws.binaryType=t._binaryType,t._connectLock=!1,t._addListeners(),t._connectTimeout=setTimeout(function(){return t._handleTimeout()},s))})}},e.prototype._handleTimeout=function(){this._debug("timeout event"),this._handleError(new f0(Error("TIMEOUT"),this))},e.prototype._disconnect=function(t,r){if(t===void 0&&(t=1e3),this._clearTimeouts(),!!this._ws){this._removeListeners();try{this._ws.close(t,r),this._handleClose(new g0(t,r,this))}catch{}}},e.prototype._acceptOpen=function(){this._debug("accept open"),this._retryCount=0},e.prototype._callEventListener=function(t,r){"handleEvent"in r?r.handleEvent(t):r(t)},e.prototype._removeListeners=function(){this._ws&&(this._debug("removeListeners"),this._ws.removeEventListener("open",this._handleOpen),this._ws.removeEventListener("close",this._handleClose),this._ws.removeEventListener("message",this._handleMessage),this._ws.removeEventListener("error",this._handleError))},e.prototype._addListeners=function(){this._ws&&(this._debug("addListeners"),this._ws.addEventListener("open",this._handleOpen),this._ws.addEventListener("close",this._handleClose),this._ws.addEventListener("message",this._handleMessage),this._ws.addEventListener("error",this._handleError))},e.prototype._clearTimeouts=function(){clearTimeout(this._connectTimeout),clearTimeout(this._uptimeTimeout)},e}(),v0=Object.defineProperty,x0=Object.defineProperties,O0=Object.getOwnPropertyDescriptors,Di=Object.getOwnPropertySymbols,w0=Object.prototype.hasOwnProperty,C0=Object.prototype.propertyIsEnumerable,zi=(e,t,r)=>t in e?v0(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Fr=(e,t)=>{for(var r in t||(t={}))w0.call(t,r)&&zi(e,r,t[r]);if(Di)for(var r of Di(t))C0.call(t,r)&&zi(e,r,t[r]);return e},Wo=(e,t)=>x0(e,O0(t)),Ce=(e,t,r)=>new Promise((a,n)=>{var o=l=>{try{i(r.next(l))}catch(c){n(c)}},s=l=>{try{i(r.throw(l))}catch(c){n(c)}},i=l=>l.done?a(l.value):Promise.resolve(l.value).then(o,s);i((r=r.apply(e,t)).next())}),P0=class extends S0{constructor(e,t={}){console.log("Opening websocket to",e),super(()=>this.targetUrl||e,void 0,{startClosed:!0}),this.opts=t,this.disposed=!1,Object.defineProperty(this,"url",{get(){return this.targetUrl}}),this.targetUrl=e,this.addEventListener("open",()=>{console.log(`Websocket to ${this.url} opened`)}),this.addEventListener("message",a=>{this.receivedFirstMessage||(this.receivedFirstMessage=a)}),this.addEventListener("close",()=>{console.log(`Websocket to ${this.url} closed`)});const r=this.reconnect;this.reconnect=()=>{this.opts.mock?this.opts.mock.handleWebsocketConnection(this):r.apply(this)},this.reconnect()}changeUrl(e){this.receivedFirstMessage=void 0,this.targetUrl=e,this.reconnect()}sendJson(e){this.opts.mock?this.opts.mock.handleWebsocketMessage(this,JSON.stringify(e)):this.send(JSON.stringify(e))}dispose(){this.close(),this.disposed=!0,this.opts.onDispose&&this.opts.onDispose()}opened(){return Ce(this,null,function*(){return new Promise((e,t)=>{this.readyState===WebSocket.OPEN?e():(this.addEventListener("open",()=>e()),this.addEventListener("error",t))})})}closed(){return Ce(this,null,function*(){return new Promise((e,t)=>{this.readyState===WebSocket.CLOSED?e():(this.addEventListener("close",()=>e()),this.addEventListener("error",t))})})}firstMessage(){return Ce(this,null,function*(){return this.receivedFirstMessage?this.receivedFirstMessage:new Promise((e,t)=>{const r=n=>{this.receivedFirstMessage=n,this.removeEventListener("message",r),this.removeEventListener("error",a),e(n)},a=n=>{this.removeEventListener("message",r),this.removeEventListener("error",a),t(n)};this.addEventListener("message",r),this.addEventListener("error",a)})})}nextMessage(){return Ce(this,null,function*(){return new Promise((e,t)=>{const r=n=>{this.removeEventListener("message",r),this.removeEventListener("error",a),e(n)},a=n=>{this.removeEventListener("message",r),this.removeEventListener("error",a),t(n)};this.addEventListener("message",r),this.addEventListener("error",a)})})}},V0=class{constructor(){this.available=typeof window<"u"&&!!window.localStorage}getJSON(e){if(!this.available)return null;const t=window.localStorage.getItem(e);if(t===null)return null;try{return JSON.parse(t)}catch{return null}}setJSON(e,t){if(!this.available)return null;window.localStorage.setItem(e,JSON.stringify(t))}delete(e){if(!this.available)return null;window.localStorage.removeItem(e)}setString(e,t){if(!this.available)return null;window.localStorage.setItem(e,t)}getString(e){return this.available?window.localStorage.getItem(e):null}},Co=new V0;function Kt(e){try{return JSON.parse(e)}catch{return}}function R0(e,t){return e||(e="world"),t||(t="world"),e===t}var zr="wandelbots.io",Po={dev:{domain:`https://auth.portal.dev.${zr}`,clientId:"fLbJD0RLp5r2Dpucm5j8BjwMR6Hunfha"},stg:{domain:`https://auth.portal.stg.${zr}`,clientId:"joVDeD9e786WzFNSGCqoVq7HNkWt5j6s"},prod:{domain:`https://auth.portal.${zr}`,clientId:"J7WJUi38xVQdJAEBNRT9Xw1b0fXDb4J2"}},_0=e=>{if(e.includes(`dev.${zr}`))return Po.dev;if(e.includes(`stg.${zr}`))return Po.stg;if(e.includes(zr))return Po.prod;throw new Error("Unsupported instance URL. Cannot determine Auth0 configuration.")},A0=e=>Ce(void 0,null,function*(){var t;if(typeof window>"u")throw new Error("Access token must be set to use NovaClient when not in a browser environment.");const r=_0(e);if(new URL(e).origin===window.location.origin)throw window.location.reload(),new Error("Failed to reload page to get auth details, please refresh manually");const{Auth0Client:a}=yield Promise.resolve().then(()=>require("./auth0-spa-js.production.esm-BLRAk7Yh.cjs")),n=new a({domain:r.domain,clientId:(t=r.clientId)!=null?t:"",useRefreshTokens:!1,authorizationParams:{audience:"nova-api",redirect_uri:window.location.origin}});if(window.location.search.includes("code=")&&window.location.search.includes("state=")){const{appState:s}=yield n.handleRedirectCallback();window.history.replaceState({},document.title,(s==null?void 0:s.returnTo)||window.location.pathname)}else yield n.loginWithRedirect();return yield n.getTokenSilently()});function Rc(e,t){return function(){return e.apply(t,arguments)}}const{toString:T0}=Object.prototype,{getPrototypeOf:ys}=Object,Qn=(e=>t=>{const r=T0.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),gt=e=>(e=e.toLowerCase(),t=>Qn(t)===e),Yn=e=>t=>typeof t===e,{isArray:ea}=Array,ja=Yn("undefined");function E0(e){return e!==null&&!ja(e)&&e.constructor!==null&&!ja(e.constructor)&&at(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const _c=gt("ArrayBuffer");function I0(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&_c(e.buffer),t}const M0=Yn("string"),at=Yn("function"),Ac=Yn("number"),Xn=e=>e!==null&&typeof e=="object",j0=e=>e===!0||e===!1,pn=e=>{if(Qn(e)!=="object")return!1;const t=ys(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},$0=gt("Date"),U0=gt("File"),L0=gt("Blob"),k0=gt("FileList"),B0=e=>Xn(e)&&at(e.pipe),F0=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||at(e.append)&&((t=Qn(e))==="formdata"||t==="object"&&at(e.toString)&&e.toString()==="[object FormData]"))},N0=gt("URLSearchParams"),[D0,z0,G0,J0]=["ReadableStream","Request","Response","Headers"].map(gt),H0=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Na(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let a,n;if(typeof e!="object"&&(e=[e]),ea(e))for(a=0,n=e.length;a<n;a++)t.call(null,e[a],a,e);else{const o=r?Object.getOwnPropertyNames(e):Object.keys(e),s=o.length;let i;for(a=0;a<s;a++)i=o[a],t.call(null,e[i],i,e)}}function Tc(e,t){t=t.toLowerCase();const r=Object.keys(e);let a=r.length,n;for(;a-- >0;)if(n=r[a],t===n.toLowerCase())return n;return null}const sr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Ec=e=>!ja(e)&&e!==sr;function Ko(){const{caseless:e}=Ec(this)&&this||{},t={},r=(a,n)=>{const o=e&&Tc(t,n)||n;pn(t[o])&&pn(a)?t[o]=Ko(t[o],a):pn(a)?t[o]=Ko({},a):ea(a)?t[o]=a.slice():t[o]=a};for(let a=0,n=arguments.length;a<n;a++)arguments[a]&&Na(arguments[a],r);return t}const q0=(e,t,r,{allOwnKeys:a}={})=>(Na(t,(n,o)=>{r&&at(n)?e[o]=Rc(n,r):e[o]=n},{allOwnKeys:a}),e),W0=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),K0=(e,t,r,a)=>{e.prototype=Object.create(t.prototype,a),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},Q0=(e,t,r,a)=>{let n,o,s;const i={};if(t=t||{},e==null)return t;do{for(n=Object.getOwnPropertyNames(e),o=n.length;o-- >0;)s=n[o],(!a||a(s,e,t))&&!i[s]&&(t[s]=e[s],i[s]=!0);e=r!==!1&&ys(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},Y0=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const a=e.indexOf(t,r);return a!==-1&&a===r},X0=e=>{if(!e)return null;if(ea(e))return e;let t=e.length;if(!Ac(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},Z0=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&ys(Uint8Array)),eS=(e,t)=>{const a=(e&&e[Symbol.iterator]).call(e);let n;for(;(n=a.next())&&!n.done;){const o=n.value;t.call(e,o[0],o[1])}},tS=(e,t)=>{let r;const a=[];for(;(r=e.exec(t))!==null;)a.push(r);return a},rS=gt("HTMLFormElement"),aS=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,a,n){return a.toUpperCase()+n}),Gi=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),nS=gt("RegExp"),Ic=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),a={};Na(r,(n,o)=>{let s;(s=t(n,o,e))!==!1&&(a[o]=s||n)}),Object.defineProperties(e,a)},oS=e=>{Ic(e,(t,r)=>{if(at(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const a=e[r];if(at(a)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},sS=(e,t)=>{const r={},a=n=>{n.forEach(o=>{r[o]=!0})};return ea(e)?a(e):a(String(e).split(t)),r},iS=()=>{},lS=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function cS(e){return!!(e&&at(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const dS=e=>{const t=new Array(10),r=(a,n)=>{if(Xn(a)){if(t.indexOf(a)>=0)return;if(!("toJSON"in a)){t[n]=a;const o=ea(a)?[]:{};return Na(a,(s,i)=>{const l=r(s,n+1);!ja(l)&&(o[i]=l)}),t[n]=void 0,o}}return a};return r(e,0)},uS=gt("AsyncFunction"),pS=e=>e&&(Xn(e)||at(e))&&at(e.then)&&at(e.catch),Mc=((e,t)=>e?setImmediate:t?((r,a)=>(sr.addEventListener("message",({source:n,data:o})=>{n===sr&&o===r&&a.length&&a.shift()()},!1),n=>{a.push(n),sr.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",at(sr.postMessage)),hS=typeof queueMicrotask<"u"?queueMicrotask.bind(sr):typeof process<"u"&&process.nextTick||Mc,I={isArray:ea,isArrayBuffer:_c,isBuffer:E0,isFormData:F0,isArrayBufferView:I0,isString:M0,isNumber:Ac,isBoolean:j0,isObject:Xn,isPlainObject:pn,isReadableStream:D0,isRequest:z0,isResponse:G0,isHeaders:J0,isUndefined:ja,isDate:$0,isFile:U0,isBlob:L0,isRegExp:nS,isFunction:at,isStream:B0,isURLSearchParams:N0,isTypedArray:Z0,isFileList:k0,forEach:Na,merge:Ko,extend:q0,trim:H0,stripBOM:W0,inherits:K0,toFlatObject:Q0,kindOf:Qn,kindOfTest:gt,endsWith:Y0,toArray:X0,forEachEntry:eS,matchAll:tS,isHTMLForm:rS,hasOwnProperty:Gi,hasOwnProp:Gi,reduceDescriptors:Ic,freezeMethods:oS,toObjectSet:sS,toCamelCase:aS,noop:iS,toFiniteNumber:lS,findKey:Tc,global:sr,isContextDefined:Ec,isSpecCompliantForm:cS,toJSONObject:dS,isAsyncFn:uS,isThenable:pS,setImmediate:Mc,asap:hS};function ie(e,t,r,a,n){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),a&&(this.request=a),n&&(this.response=n,this.status=n.status?n.status:null)}I.inherits(ie,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:I.toJSONObject(this.config),code:this.code,status:this.status}}});const jc=ie.prototype,$c={};["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=>{$c[e]={value:e}});Object.defineProperties(ie,$c);Object.defineProperty(jc,"isAxiosError",{value:!0});ie.from=(e,t,r,a,n,o)=>{const s=Object.create(jc);return I.toFlatObject(e,s,function(l){return l!==Error.prototype},i=>i!=="isAxiosError"),ie.call(s,e.message,t,r,a,n),s.cause=e,s.name=e.name,o&&Object.assign(s,o),s};const mS=null;function Qo(e){return I.isPlainObject(e)||I.isArray(e)}function Uc(e){return I.endsWith(e,"[]")?e.slice(0,-2):e}function Ji(e,t,r){return e?e.concat(t).map(function(n,o){return n=Uc(n),!r&&o?"["+n+"]":n}).join(r?".":""):t}function fS(e){return I.isArray(e)&&!e.some(Qo)}const gS=I.toFlatObject(I,{},null,function(t){return/^is[A-Z]/.test(t)});function Zn(e,t,r){if(!I.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=I.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(h,x){return!I.isUndefined(x[h])});const a=r.metaTokens,n=r.visitor||d,o=r.dots,s=r.indexes,l=(r.Blob||typeof Blob<"u"&&Blob)&&I.isSpecCompliantForm(t);if(!I.isFunction(n))throw new TypeError("visitor must be a function");function c(g){if(g===null)return"";if(I.isDate(g))return g.toISOString();if(!l&&I.isBlob(g))throw new ie("Blob is not supported. Use a Buffer instead.");return I.isArrayBuffer(g)||I.isTypedArray(g)?l&&typeof Blob=="function"?new Blob([g]):Buffer.from(g):g}function d(g,h,x){let E=g;if(g&&!x&&typeof g=="object"){if(I.endsWith(h,"{}"))h=a?h:h.slice(0,-2),g=JSON.stringify(g);else if(I.isArray(g)&&fS(g)||(I.isFileList(g)||I.endsWith(h,"[]"))&&(E=I.toArray(g)))return h=Uc(h),E.forEach(function(F,N){!(I.isUndefined(F)||F===null)&&t.append(s===!0?Ji([h],N,o):s===null?h:h+"[]",c(F))}),!1}return Qo(g)?!0:(t.append(Ji(x,h,o),c(g)),!1)}const u=[],p=Object.assign(gS,{defaultVisitor:d,convertValue:c,isVisitable:Qo});function f(g,h){if(!I.isUndefined(g)){if(u.indexOf(g)!==-1)throw Error("Circular reference detected in "+h.join("."));u.push(g),I.forEach(g,function(E,U){(!(I.isUndefined(E)||E===null)&&n.call(t,E,I.isString(U)?U.trim():U,h,p))===!0&&f(E,h?h.concat(U):[U])}),u.pop()}}if(!I.isObject(e))throw new TypeError("data must be an object");return f(e),t}function Hi(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(a){return t[a]})}function bs(e,t){this._pairs=[],e&&Zn(e,this,t)}const Lc=bs.prototype;Lc.append=function(t,r){this._pairs.push([t,r])};Lc.toString=function(t){const r=t?function(a){return t.call(this,a,Hi)}:Hi;return this._pairs.map(function(n){return r(n[0])+"="+r(n[1])},"").join("&")};function yS(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function kc(e,t,r){if(!t)return e;const a=r&&r.encode||yS;I.isFunction(r)&&(r={serialize:r});const n=r&&r.serialize;let o;if(n?o=n(t,r):o=I.isURLSearchParams(t)?t.toString():new bs(t,r).toString(a),o){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class qi{constructor(){this.handlers=[]}use(t,r,a){return this.handlers.push({fulfilled:t,rejected:r,synchronous:a?a.synchronous:!1,runWhen:a?a.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){I.forEach(this.handlers,function(a){a!==null&&t(a)})}}const Bc={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},bS=typeof URLSearchParams<"u"?URLSearchParams:bs,SS=typeof FormData<"u"?FormData:null,vS=typeof Blob<"u"?Blob:null,xS={isBrowser:!0,classes:{URLSearchParams:bS,FormData:SS,Blob:vS},protocols:["http","https","file","blob","url","data"]},Ss=typeof window<"u"&&typeof document<"u",Yo=typeof navigator=="object"&&navigator||void 0,OS=Ss&&(!Yo||["ReactNative","NativeScript","NS"].indexOf(Yo.product)<0),wS=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",CS=Ss&&window.location.href||"http://localhost",PS=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Ss,hasStandardBrowserEnv:OS,hasStandardBrowserWebWorkerEnv:wS,navigator:Yo,origin:CS},Symbol.toStringTag,{value:"Module"})),Ge={...PS,...xS};function VS(e,t){return Zn(e,new Ge.classes.URLSearchParams,Object.assign({visitor:function(r,a,n,o){return Ge.isNode&&I.isBuffer(r)?(this.append(a,r.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function RS(e){return I.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function _S(e){const t={},r=Object.keys(e);let a;const n=r.length;let o;for(a=0;a<n;a++)o=r[a],t[o]=e[o];return t}function Fc(e){function t(r,a,n,o){let s=r[o++];if(s==="__proto__")return!0;const i=Number.isFinite(+s),l=o>=r.length;return s=!s&&I.isArray(n)?n.length:s,l?(I.hasOwnProp(n,s)?n[s]=[n[s],a]:n[s]=a,!i):((!n[s]||!I.isObject(n[s]))&&(n[s]=[]),t(r,a,n[s],o)&&I.isArray(n[s])&&(n[s]=_S(n[s])),!i)}if(I.isFormData(e)&&I.isFunction(e.entries)){const r={};return I.forEachEntry(e,(a,n)=>{t(RS(a),n,r,0)}),r}return null}function AS(e,t,r){if(I.isString(e))try{return(t||JSON.parse)(e),I.trim(e)}catch(a){if(a.name!=="SyntaxError")throw a}return(r||JSON.stringify)(e)}const Da={transitional:Bc,adapter:["xhr","http","fetch"],transformRequest:[function(t,r){const a=r.getContentType()||"",n=a.indexOf("application/json")>-1,o=I.isObject(t);if(o&&I.isHTMLForm(t)&&(t=new FormData(t)),I.isFormData(t))return n?JSON.stringify(Fc(t)):t;if(I.isArrayBuffer(t)||I.isBuffer(t)||I.isStream(t)||I.isFile(t)||I.isBlob(t)||I.isReadableStream(t))return t;if(I.isArrayBufferView(t))return t.buffer;if(I.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let i;if(o){if(a.indexOf("application/x-www-form-urlencoded")>-1)return VS(t,this.formSerializer).toString();if((i=I.isFileList(t))||a.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return Zn(i?{"files[]":t}:t,l&&new l,this.formSerializer)}}return o||n?(r.setContentType("application/json",!1),AS(t)):t}],transformResponse:[function(t){const r=this.transitional||Da.transitional,a=r&&r.forcedJSONParsing,n=this.responseType==="json";if(I.isResponse(t)||I.isReadableStream(t))return t;if(t&&I.isString(t)&&(a&&!this.responseType||n)){const s=!(r&&r.silentJSONParsing)&&n;try{return JSON.parse(t)}catch(i){if(s)throw i.name==="SyntaxError"?ie.from(i,ie.ERR_BAD_RESPONSE,this,null,this.response):i}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ge.classes.FormData,Blob:Ge.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};I.forEach(["delete","get","head","post","put","patch"],e=>{Da.headers[e]={}});const TS=I.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"]),ES=e=>{const t={};let r,a,n;return e&&e.split(`
107
+ `).forEach(function(s){n=s.indexOf(":"),r=s.substring(0,n).trim().toLowerCase(),a=s.substring(n+1).trim(),!(!r||t[r]&&TS[r])&&(r==="set-cookie"?t[r]?t[r].push(a):t[r]=[a]:t[r]=t[r]?t[r]+", "+a:a)}),t},Wi=Symbol("internals");function ma(e){return e&&String(e).trim().toLowerCase()}function hn(e){return e===!1||e==null?e:I.isArray(e)?e.map(hn):String(e)}function IS(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let a;for(;a=r.exec(e);)t[a[1]]=a[2];return t}const MS=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Vo(e,t,r,a,n){if(I.isFunction(a))return a.call(this,t,r);if(n&&(t=r),!!I.isString(t)){if(I.isString(a))return t.indexOf(a)!==-1;if(I.isRegExp(a))return a.test(t)}}function jS(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,a)=>r.toUpperCase()+a)}function $S(e,t){const r=I.toCamelCase(" "+t);["get","set","has"].forEach(a=>{Object.defineProperty(e,a+r,{value:function(n,o,s){return this[a].call(this,t,n,o,s)},configurable:!0})})}let Ze=class{constructor(t){t&&this.set(t)}set(t,r,a){const n=this;function o(i,l,c){const d=ma(l);if(!d)throw new Error("header name must be a non-empty string");const u=I.findKey(n,d);(!u||n[u]===void 0||c===!0||c===void 0&&n[u]!==!1)&&(n[u||l]=hn(i))}const s=(i,l)=>I.forEach(i,(c,d)=>o(c,d,l));if(I.isPlainObject(t)||t instanceof this.constructor)s(t,r);else if(I.isString(t)&&(t=t.trim())&&!MS(t))s(ES(t),r);else if(I.isHeaders(t))for(const[i,l]of t.entries())o(l,i,a);else t!=null&&o(r,t,a);return this}get(t,r){if(t=ma(t),t){const a=I.findKey(this,t);if(a){const n=this[a];if(!r)return n;if(r===!0)return IS(n);if(I.isFunction(r))return r.call(this,n,a);if(I.isRegExp(r))return r.exec(n);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=ma(t),t){const a=I.findKey(this,t);return!!(a&&this[a]!==void 0&&(!r||Vo(this,this[a],a,r)))}return!1}delete(t,r){const a=this;let n=!1;function o(s){if(s=ma(s),s){const i=I.findKey(a,s);i&&(!r||Vo(a,a[i],i,r))&&(delete a[i],n=!0)}}return I.isArray(t)?t.forEach(o):o(t),n}clear(t){const r=Object.keys(this);let a=r.length,n=!1;for(;a--;){const o=r[a];(!t||Vo(this,this[o],o,t,!0))&&(delete this[o],n=!0)}return n}normalize(t){const r=this,a={};return I.forEach(this,(n,o)=>{const s=I.findKey(a,o);if(s){r[s]=hn(n),delete r[o];return}const i=t?jS(o):String(o).trim();i!==o&&delete r[o],r[i]=hn(n),a[i]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const r=Object.create(null);return I.forEach(this,(a,n)=>{a!=null&&a!==!1&&(r[n]=t&&I.isArray(a)?a.join(", "):a)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,r])=>t+": "+r).join(`
108
+ `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){const a=new this(t);return r.forEach(n=>a.set(n)),a}static accessor(t){const a=(this[Wi]=this[Wi]={accessors:{}}).accessors,n=this.prototype;function o(s){const i=ma(s);a[i]||($S(n,s),a[i]=!0)}return I.isArray(t)?t.forEach(o):o(t),this}};Ze.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);I.reduceDescriptors(Ze.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(a){this[r]=a}}});I.freezeMethods(Ze);function Ro(e,t){const r=this||Da,a=t||r,n=Ze.from(a.headers);let o=a.data;return I.forEach(e,function(i){o=i.call(r,o,n.normalize(),t?t.status:void 0)}),n.normalize(),o}function Nc(e){return!!(e&&e.__CANCEL__)}function ta(e,t,r){ie.call(this,e??"canceled",ie.ERR_CANCELED,t,r),this.name="CanceledError"}I.inherits(ta,ie,{__CANCEL__:!0});function Dc(e,t,r){const a=r.config.validateStatus;!r.status||!a||a(r.status)?e(r):t(new ie("Request failed with status code "+r.status,[ie.ERR_BAD_REQUEST,ie.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function US(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function LS(e,t){e=e||10;const r=new Array(e),a=new Array(e);let n=0,o=0,s;return t=t!==void 0?t:1e3,function(l){const c=Date.now(),d=a[o];s||(s=c),r[n]=l,a[n]=c;let u=o,p=0;for(;u!==n;)p+=r[u++],u=u%e;if(n=(n+1)%e,n===o&&(o=(o+1)%e),c-s<t)return;const f=d&&c-d;return f?Math.round(p*1e3/f):void 0}}function kS(e,t){let r=0,a=1e3/t,n,o;const s=(c,d=Date.now())=>{r=d,n=null,o&&(clearTimeout(o),o=null),e.apply(null,c)};return[(...c)=>{const d=Date.now(),u=d-r;u>=a?s(c,d):(n=c,o||(o=setTimeout(()=>{o=null,s(n)},a-u)))},()=>n&&s(n)]}const Rn=(e,t,r=3)=>{let a=0;const n=LS(50,250);return kS(o=>{const s=o.loaded,i=o.lengthComputable?o.total:void 0,l=s-a,c=n(l),d=s<=i;a=s;const u={loaded:s,total:i,progress:i?s/i:void 0,bytes:l,rate:c||void 0,estimated:c&&i&&d?(i-s)/c:void 0,event:o,lengthComputable:i!=null,[t?"download":"upload"]:!0};e(u)},r)},Ki=(e,t)=>{const r=e!=null;return[a=>t[0]({lengthComputable:r,total:e,loaded:a}),t[1]]},Qi=e=>(...t)=>I.asap(()=>e(...t)),BS=Ge.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,Ge.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(Ge.origin),Ge.navigator&&/(msie|trident)/i.test(Ge.navigator.userAgent)):()=>!0,FS=Ge.hasStandardBrowserEnv?{write(e,t,r,a,n,o){const s=[e+"="+encodeURIComponent(t)];I.isNumber(r)&&s.push("expires="+new Date(r).toGMTString()),I.isString(a)&&s.push("path="+a),I.isString(n)&&s.push("domain="+n),o===!0&&s.push("secure"),document.cookie=s.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 NS(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function DS(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function zc(e,t,r){let a=!NS(t);return e&&a||r==!1?DS(e,t):t}const Yi=e=>e instanceof Ze?{...e}:e;function pr(e,t){t=t||{};const r={};function a(c,d,u,p){return I.isPlainObject(c)&&I.isPlainObject(d)?I.merge.call({caseless:p},c,d):I.isPlainObject(d)?I.merge({},d):I.isArray(d)?d.slice():d}function n(c,d,u,p){if(I.isUndefined(d)){if(!I.isUndefined(c))return a(void 0,c,u,p)}else return a(c,d,u,p)}function o(c,d){if(!I.isUndefined(d))return a(void 0,d)}function s(c,d){if(I.isUndefined(d)){if(!I.isUndefined(c))return a(void 0,c)}else return a(void 0,d)}function i(c,d,u){if(u in t)return a(c,d);if(u in e)return a(void 0,c)}const l={url:o,method:o,data:o,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:i,headers:(c,d,u)=>n(Yi(c),Yi(d),u,!0)};return I.forEach(Object.keys(Object.assign({},e,t)),function(d){const u=l[d]||n,p=u(e[d],t[d],d);I.isUndefined(p)&&u!==i||(r[d]=p)}),r}const Gc=e=>{const t=pr({},e);let{data:r,withXSRFToken:a,xsrfHeaderName:n,xsrfCookieName:o,headers:s,auth:i}=t;t.headers=s=Ze.from(s),t.url=kc(zc(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),i&&s.set("Authorization","Basic "+btoa((i.username||"")+":"+(i.password?unescape(encodeURIComponent(i.password)):"")));let l;if(I.isFormData(r)){if(Ge.hasStandardBrowserEnv||Ge.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if((l=s.getContentType())!==!1){const[c,...d]=l?l.split(";").map(u=>u.trim()).filter(Boolean):[];s.setContentType([c||"multipart/form-data",...d].join("; "))}}if(Ge.hasStandardBrowserEnv&&(a&&I.isFunction(a)&&(a=a(t)),a||a!==!1&&BS(t.url))){const c=n&&o&&FS.read(o);c&&s.set(n,c)}return t},zS=typeof XMLHttpRequest<"u",GS=zS&&function(e){return new Promise(function(r,a){const n=Gc(e);let o=n.data;const s=Ze.from(n.headers).normalize();let{responseType:i,onUploadProgress:l,onDownloadProgress:c}=n,d,u,p,f,g;function h(){f&&f(),g&&g(),n.cancelToken&&n.cancelToken.unsubscribe(d),n.signal&&n.signal.removeEventListener("abort",d)}let x=new XMLHttpRequest;x.open(n.method.toUpperCase(),n.url,!0),x.timeout=n.timeout;function E(){if(!x)return;const F=Ze.from("getAllResponseHeaders"in x&&x.getAllResponseHeaders()),G={data:!i||i==="text"||i==="json"?x.responseText:x.response,status:x.status,statusText:x.statusText,headers:F,config:e,request:x};Dc(function(j){r(j),h()},function(j){a(j),h()},G),x=null}"onloadend"in x?x.onloadend=E:x.onreadystatechange=function(){!x||x.readyState!==4||x.status===0&&!(x.responseURL&&x.responseURL.indexOf("file:")===0)||setTimeout(E)},x.onabort=function(){x&&(a(new ie("Request aborted",ie.ECONNABORTED,e,x)),x=null)},x.onerror=function(){a(new ie("Network Error",ie.ERR_NETWORK,e,x)),x=null},x.ontimeout=function(){let N=n.timeout?"timeout of "+n.timeout+"ms exceeded":"timeout exceeded";const G=n.transitional||Bc;n.timeoutErrorMessage&&(N=n.timeoutErrorMessage),a(new ie(N,G.clarifyTimeoutError?ie.ETIMEDOUT:ie.ECONNABORTED,e,x)),x=null},o===void 0&&s.setContentType(null),"setRequestHeader"in x&&I.forEach(s.toJSON(),function(N,G){x.setRequestHeader(G,N)}),I.isUndefined(n.withCredentials)||(x.withCredentials=!!n.withCredentials),i&&i!=="json"&&(x.responseType=n.responseType),c&&([p,g]=Rn(c,!0),x.addEventListener("progress",p)),l&&x.upload&&([u,f]=Rn(l),x.upload.addEventListener("progress",u),x.upload.addEventListener("loadend",f)),(n.cancelToken||n.signal)&&(d=F=>{x&&(a(!F||F.type?new ta(null,e,x):F),x.abort(),x=null)},n.cancelToken&&n.cancelToken.subscribe(d),n.signal&&(n.signal.aborted?d():n.signal.addEventListener("abort",d)));const U=US(n.url);if(U&&Ge.protocols.indexOf(U)===-1){a(new ie("Unsupported protocol "+U+":",ie.ERR_BAD_REQUEST,e));return}x.send(o||null)})},JS=(e,t)=>{const{length:r}=e=e?e.filter(Boolean):[];if(t||r){let a=new AbortController,n;const o=function(c){if(!n){n=!0,i();const d=c instanceof Error?c:this.reason;a.abort(d instanceof ie?d:new ta(d instanceof Error?d.message:d))}};let s=t&&setTimeout(()=>{s=null,o(new ie(`timeout ${t} of ms exceeded`,ie.ETIMEDOUT))},t);const i=()=>{e&&(s&&clearTimeout(s),s=null,e.forEach(c=>{c.unsubscribe?c.unsubscribe(o):c.removeEventListener("abort",o)}),e=null)};e.forEach(c=>c.addEventListener("abort",o));const{signal:l}=a;return l.unsubscribe=()=>I.asap(i),l}},HS=function*(e,t){let r=e.byteLength;if(r<t){yield e;return}let a=0,n;for(;a<r;)n=a+t,yield e.slice(a,n),a=n},qS=async function*(e,t){for await(const r of WS(e))yield*HS(r,t)},WS=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:r,value:a}=await t.read();if(r)break;yield a}}finally{await t.cancel()}},Xi=(e,t,r,a)=>{const n=qS(e,t);let o=0,s,i=l=>{s||(s=!0,a&&a(l))};return new ReadableStream({async pull(l){try{const{done:c,value:d}=await n.next();if(c){i(),l.close();return}let u=d.byteLength;if(r){let p=o+=u;r(p)}l.enqueue(new Uint8Array(d))}catch(c){throw i(c),c}},cancel(l){return i(l),n.return()}},{highWaterMark:2})},eo=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Jc=eo&&typeof ReadableStream=="function",KS=eo&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Hc=(e,...t)=>{try{return!!e(...t)}catch{return!1}},QS=Jc&&Hc(()=>{let e=!1;const t=new Request(Ge.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),Zi=64*1024,Xo=Jc&&Hc(()=>I.isReadableStream(new Response("").body)),_n={stream:Xo&&(e=>e.body)};eo&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!_n[t]&&(_n[t]=I.isFunction(e[t])?r=>r[t]():(r,a)=>{throw new ie(`Response type '${t}' is not supported`,ie.ERR_NOT_SUPPORT,a)})})})(new Response);const YS=async e=>{if(e==null)return 0;if(I.isBlob(e))return e.size;if(I.isSpecCompliantForm(e))return(await new Request(Ge.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(I.isArrayBufferView(e)||I.isArrayBuffer(e))return e.byteLength;if(I.isURLSearchParams(e)&&(e=e+""),I.isString(e))return(await KS(e)).byteLength},XS=async(e,t)=>{const r=I.toFiniteNumber(e.getContentLength());return r??YS(t)},ZS=eo&&(async e=>{let{url:t,method:r,data:a,signal:n,cancelToken:o,timeout:s,onDownloadProgress:i,onUploadProgress:l,responseType:c,headers:d,withCredentials:u="same-origin",fetchOptions:p}=Gc(e);c=c?(c+"").toLowerCase():"text";let f=JS([n,o&&o.toAbortSignal()],s),g;const h=f&&f.unsubscribe&&(()=>{f.unsubscribe()});let x;try{if(l&&QS&&r!=="get"&&r!=="head"&&(x=await XS(d,a))!==0){let G=new Request(t,{method:"POST",body:a,duplex:"half"}),K;if(I.isFormData(a)&&(K=G.headers.get("content-type"))&&d.setContentType(K),G.body){const[j,L]=Ki(x,Rn(Qi(l)));a=Xi(G.body,Zi,j,L)}}I.isString(u)||(u=u?"include":"omit");const E="credentials"in Request.prototype;g=new Request(t,{...p,signal:f,method:r.toUpperCase(),headers:d.normalize().toJSON(),body:a,duplex:"half",credentials:E?u:void 0});let U=await fetch(g);const F=Xo&&(c==="stream"||c==="response");if(Xo&&(i||F&&h)){const G={};["status","statusText","headers"].forEach(k=>{G[k]=U[k]});const K=I.toFiniteNumber(U.headers.get("content-length")),[j,L]=i&&Ki(K,Rn(Qi(i),!0))||[];U=new Response(Xi(U.body,Zi,j,()=>{L&&L(),h&&h()}),G)}c=c||"text";let N=await _n[I.findKey(_n,c)||"text"](U,e);return!F&&h&&h(),await new Promise((G,K)=>{Dc(G,K,{data:N,headers:Ze.from(U.headers),status:U.status,statusText:U.statusText,config:e,request:g})})}catch(E){throw h&&h(),E&&E.name==="TypeError"&&/fetch/i.test(E.message)?Object.assign(new ie("Network Error",ie.ERR_NETWORK,e,g),{cause:E.cause||E}):ie.from(E,E&&E.code,e,g)}}),Zo={http:mS,xhr:GS,fetch:ZS};I.forEach(Zo,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const el=e=>`- ${e}`,ev=e=>I.isFunction(e)||e===null||e===!1,qc={getAdapter:e=>{e=I.isArray(e)?e:[e];const{length:t}=e;let r,a;const n={};for(let o=0;o<t;o++){r=e[o];let s;if(a=r,!ev(r)&&(a=Zo[(s=String(r)).toLowerCase()],a===void 0))throw new ie(`Unknown adapter '${s}'`);if(a)break;n[s||"#"+o]=a}if(!a){const o=Object.entries(n).map(([i,l])=>`adapter ${i} `+(l===!1?"is not supported by the environment":"is not available in the build"));let s=t?o.length>1?`since :
109
109
  `+o.map(el).join(`
110
110
  `):" "+el(o[0]):"as no adapter specified";throw new ie("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return a},adapters:Zo};function _o(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new ta(null,e)}function tl(e){return _o(e),e.headers=Ze.from(e.headers),e.data=Ro.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),qc.getAdapter(e.adapter||Da.adapter)(e).then(function(a){return _o(e),a.data=Ro.call(e,e.transformResponse,a),a.headers=Ze.from(a.headers),a},function(a){return Nc(a)||(_o(e),a&&a.response&&(a.response.data=Ro.call(e,e.transformResponse,a.response),a.response.headers=Ze.from(a.response.headers))),Promise.reject(a)})}const Wc="1.8.3",to={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{to[e]=function(a){return typeof a===e||"a"+(t<1?"n ":" ")+e}});const rl={};to.transitional=function(t,r,a){function n(o,s){return"[Axios v"+Wc+"] Transitional option '"+o+"'"+s+(a?". "+a:"")}return(o,s,i)=>{if(t===!1)throw new ie(n(s," has been removed"+(r?" in "+r:"")),ie.ERR_DEPRECATED);return r&&!rl[s]&&(rl[s]=!0,console.warn(n(s," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(o,s,i):!0}};to.spelling=function(t){return(r,a)=>(console.warn(`${a} is likely a misspelling of ${t}`),!0)};function tv(e,t,r){if(typeof e!="object")throw new ie("options must be an object",ie.ERR_BAD_OPTION_VALUE);const a=Object.keys(e);let n=a.length;for(;n-- >0;){const o=a[n],s=t[o];if(s){const i=e[o],l=i===void 0||s(i,o,e);if(l!==!0)throw new ie("option "+o+" must be "+l,ie.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new ie("Unknown option "+o,ie.ERR_BAD_OPTION)}}const mn={assertOptions:tv,validators:to},vt=mn.validators;let lr=class{constructor(t){this.defaults=t,this.interceptors={request:new qi,response:new qi}}async request(t,r){try{return await this._request(t,r)}catch(a){if(a instanceof Error){let n={};Error.captureStackTrace?Error.captureStackTrace(n):n=new Error;const o=n.stack?n.stack.replace(/^.+\n/,""):"";try{a.stack?o&&!String(a.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(a.stack+=`
111
- `+o):a.stack=o}catch{}}throw a}}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=pr(this.defaults,r);const{transitional:a,paramsSerializer:n,headers:o}=r;a!==void 0&&mn.assertOptions(a,{silentJSONParsing:vt.transitional(vt.boolean),forcedJSONParsing:vt.transitional(vt.boolean),clarifyTimeoutError:vt.transitional(vt.boolean)},!1),n!=null&&(j.isFunction(n)?r.paramsSerializer={serialize:n}:mn.assertOptions(n,{encode:vt.function,serialize:vt.function},!0)),r.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?r.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:r.allowAbsoluteUrls=!0),mn.assertOptions(r,{baseUrl:vt.spelling("baseURL"),withXsrfToken:vt.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let s=o&&j.merge(o.common,o[r.method]);o&&j.forEach(["delete","get","head","post","put","patch","common"],y=>{delete o[y]}),r.headers=Ze.concat(s,o);const i=[];let l=!0;this.interceptors.request.forEach(function(h){typeof h.runWhen=="function"&&h.runWhen(r)===!1||(l=l&&h.synchronous,i.unshift(h.fulfilled,h.rejected))});const c=[];this.interceptors.response.forEach(function(h){c.push(h.fulfilled,h.rejected)});let d,u=0,p;if(!l){const y=[tl.bind(this),void 0];for(y.unshift.apply(y,i),y.push.apply(y,c),p=y.length,d=Promise.resolve(r);u<p;)d=d.then(y[u++],y[u++]);return d}p=i.length;let f=r;for(u=0;u<p;){const y=i[u++],h=i[u++];try{f=y(f)}catch(x){h.call(this,x);break}}try{d=tl.call(this,f)}catch(y){return Promise.reject(y)}for(u=0,p=c.length;u<p;)d=d.then(c[u++],c[u++]);return d}getUri(t){t=pr(this.defaults,t);const r=zc(t.baseURL,t.url,t.allowAbsoluteUrls);return kc(r,t.params,t.paramsSerializer)}};j.forEach(["delete","get","head","options"],function(t){lr.prototype[t]=function(r,a){return this.request(pr(a||{},{method:t,url:r,data:(a||{}).data}))}});j.forEach(["post","put","patch"],function(t){function r(a){return function(o,s,i){return this.request(pr(i||{},{method:t,headers:a?{"Content-Type":"multipart/form-data"}:{},url:o,data:s}))}}lr.prototype[t]=r(),lr.prototype[t+"Form"]=r(!0)});let rv=class Kc{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(o){r=o});const a=this;this.promise.then(n=>{if(!a._listeners)return;let o=a._listeners.length;for(;o-- >0;)a._listeners[o](n);a._listeners=null}),this.promise.then=n=>{let o;const s=new Promise(i=>{a.subscribe(i),o=i}).then(n);return s.cancel=function(){a.unsubscribe(o)},s},t(function(o,s,i){a.reason||(a.reason=new ta(o,s,i),r(a.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){const t=new AbortController,r=a=>{t.abort(a)};return this.subscribe(r),t.signal.unsubscribe=()=>this.unsubscribe(r),t.signal}static source(){let t;return{token:new Kc(function(n){t=n}),cancel:t}}};function av(e){return function(r){return e.apply(null,r)}}function nv(e){return j.isObject(e)&&e.isAxiosError===!0}const es={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(es).forEach(([e,t])=>{es[t]=e});function Qc(e){const t=new lr(e),r=Rc(lr.prototype.request,t);return j.extend(r,lr.prototype,t,{allOwnKeys:!0}),j.extend(r,t,null,{allOwnKeys:!0}),r.create=function(n){return Qc(pr(e,n))},r}const O=Qc(Da);O.Axios=lr;O.CanceledError=ta;O.CancelToken=rv;O.isCancel=Nc;O.VERSION=Wc;O.toFormData=Zn;O.AxiosError=ie;O.Cancel=O.CanceledError;O.all=function(t){return Promise.all(t)};O.spread=av;O.isAxiosError=nv;O.mergeConfig=pr;O.AxiosHeaders=Ze;O.formToJSON=e=>Fc(j.isHTMLForm(e)?new FormData(e):e);O.getAdapter=qc.getAdapter;O.HttpStatusCode=es;O.default=O;const{Axios:uP,AxiosError:ts,CanceledError:pP,isCancel:hP,CancelToken:mP,VERSION:fP,all:gP,Cancel:yP,isAxiosError:ov,spread:bP,toFormData:SP,AxiosHeaders:vP,HttpStatusCode:xP,formToJSON:OP,getAdapter:wP,mergeConfig:CP}=O,w="/api/v1".replace(/\/+$/,"");class Pe{constructor(t,r=w,a=O){ia(this,"basePath");ia(this,"axios");ia(this,"configuration");this.basePath=r,this.axios=a,t&&(this.configuration=t,this.basePath=t.basePath??r)}}class sv extends Error{constructor(r,a){super(a);ia(this,"field");this.field=r,this.name="RequiredError"}}const C={},P="https://example.com",m=function(e,t,r){if(r==null)throw new sv(t,`Required parameter ${t} was null or undefined when calling ${e}.`)},V=function(e,t){t&&(t.username||t.password)&&(e.auth={username:t.username,password:t.password})},R=async function(e,t){if(t&&t.accessToken){const r=typeof t.accessToken=="function"?await t.accessToken():await t.accessToken;e.Authorization="Bearer "+r}};function rs(e,t,r=""){t!=null&&(typeof t=="object"?Array.isArray(t)?t.forEach(a=>rs(e,a,r)):Object.keys(t).forEach(a=>rs(e,t[a],`${r}${r!==""?".":""}${a}`)):e.has(r)?e.append(r,t):e.set(r,t))}const _=function(e,...t){const r=new URLSearchParams(e.search);rs(r,t),e.search=r.toString()},se=function(e,t,r){const a=typeof e!="string";return(a&&r&&r.isJsonMime?r.isJsonMime(t.headers["Content-Type"]):a)?JSON.stringify(e!==void 0?e:{}):e||""},A=function(e){return e.pathname+e.search+e.hash},T=function(e,t,r,a){return(n=t,o=r)=>{const s={...e.options,url:(n.defaults.baseURL?"":(a==null?void 0:a.basePath)??o)+e.url};return n.request(s)}},iv=function(e){return{addApp:async(t,r,a,n={})=>{m("addApp","cell",t),m("addApp","app",r);const o="/cells/{cell}/apps".replace("{cell}",encodeURIComponent(String(t))),s=new URL(o,P);let i;e&&(i=e.baseOptions);const l={method:"POST",...i,...n},c={},d={};V(l,e),await R(c,e),a!==void 0&&(d.completionTimeout=a),c["Content-Type"]="application/json",_(s,d);let u=i&&i.headers?i.headers:{};return l.headers={...c,...u,...n.headers},l.data=se(r,l,e),{url:A(s),options:l}},clearApps:async(t,r,a={})=>{m("clearApps","cell",t);const n="/cells/{cell}/apps".replace("{cell}",encodeURIComponent(String(t))),o=new URL(n,P);let s;e&&(s=e.baseOptions);const i={method:"DELETE",...s,...a},l={},c={};V(i,e),await R(l,e),r!==void 0&&(c.completionTimeout=r),_(o,c);let d=s&&s.headers?s.headers:{};return i.headers={...l,...d,...a.headers},{url:A(o),options:i}},deleteApp:async(t,r,a,n={})=>{m("deleteApp","cell",t),m("deleteApp","app",r);const o="/cells/{cell}/apps/{app}".replace("{cell}",encodeURIComponent(String(t))).replace("{app}",encodeURIComponent(String(r))),s=new URL(o,P);let i;e&&(i=e.baseOptions);const l={method:"DELETE",...i,...n},c={},d={};V(l,e),await R(c,e),a!==void 0&&(d.completionTimeout=a),_(s,d);let u=i&&i.headers?i.headers:{};return l.headers={...c,...u,...n.headers},{url:A(s),options:l}},getApp:async(t,r,a={})=>{m("getApp","cell",t),m("getApp","app",r);const n="/cells/{cell}/apps/{app}".replace("{cell}",encodeURIComponent(String(t))).replace("{app}",encodeURIComponent(String(r))),o=new URL(n,P);let s;e&&(s=e.baseOptions);const i={method:"GET",...s,...a},l={},c={};V(i,e),await R(l,e),_(o,c);let d=s&&s.headers?s.headers:{};return i.headers={...l,...d,...a.headers},{url:A(o),options:i}},listApps:async(t,r={})=>{m("listApps","cell",t);const a="/cells/{cell}/apps".replace("{cell}",encodeURIComponent(String(t))),n=new URL(a,P);let o;e&&(o=e.baseOptions);const s={method:"GET",...o,...r},i={},l={};V(s,e),await R(i,e),_(n,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},{url:A(n),options:s}},updateApp:async(t,r,a,n,o={})=>{m("updateApp","cell",t),m("updateApp","app",r),m("updateApp","app2",a);const s="/cells/{cell}/apps/{app}".replace("{cell}",encodeURIComponent(String(t))).replace("{app}",encodeURIComponent(String(r))),i=new URL(s,P);let l;e&&(l=e.baseOptions);const c={method:"PUT",...l,...o},d={},u={};V(c,e),await R(d,e),n!==void 0&&(u.completionTimeout=n),d["Content-Type"]="application/json",_(i,u);let p=l&&l.headers?l.headers:{};return c.headers={...d,...p,...o.headers},c.data=se(a,c,e),{url:A(i),options:c}}}},Ir=function(e){const t=iv(e);return{async addApp(r,a,n,o){var c,d;const s=await t.addApp(r,a,n,o),i=(e==null?void 0:e.serverIndex)??0,l=(d=(c=C["ApplicationApi.addApp"])==null?void 0:c[i])==null?void 0:d.url;return(u,p)=>T(s,O,w,e)(u,l||p)},async clearApps(r,a,n){var l,c;const o=await t.clearApps(r,a,n),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["ApplicationApi.clearApps"])==null?void 0:l[s])==null?void 0:c.url;return(d,u)=>T(o,O,w,e)(d,i||u)},async deleteApp(r,a,n,o){var c,d;const s=await t.deleteApp(r,a,n,o),i=(e==null?void 0:e.serverIndex)??0,l=(d=(c=C["ApplicationApi.deleteApp"])==null?void 0:c[i])==null?void 0:d.url;return(u,p)=>T(s,O,w,e)(u,l||p)},async getApp(r,a,n){var l,c;const o=await t.getApp(r,a,n),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["ApplicationApi.getApp"])==null?void 0:l[s])==null?void 0:c.url;return(d,u)=>T(o,O,w,e)(d,i||u)},async listApps(r,a){var i,l;const n=await t.listApps(r,a),o=(e==null?void 0:e.serverIndex)??0,s=(l=(i=C["ApplicationApi.listApps"])==null?void 0:i[o])==null?void 0:l.url;return(c,d)=>T(n,O,w,e)(c,s||d)},async updateApp(r,a,n,o,s){var d,u;const i=await t.updateApp(r,a,n,o,s),l=(e==null?void 0:e.serverIndex)??0,c=(u=(d=C["ApplicationApi.updateApp"])==null?void 0:d[l])==null?void 0:u.url;return(p,f)=>T(i,O,w,e)(p,c||f)}}};class al extends Pe{addApp(t,r,a,n){return Ir(this.configuration).addApp(t,r,a,n).then(o=>o(this.axios,this.basePath))}clearApps(t,r,a){return Ir(this.configuration).clearApps(t,r,a).then(n=>n(this.axios,this.basePath))}deleteApp(t,r,a,n){return Ir(this.configuration).deleteApp(t,r,a,n).then(o=>o(this.axios,this.basePath))}getApp(t,r,a){return Ir(this.configuration).getApp(t,r,a).then(n=>n(this.axios,this.basePath))}listApps(t,r){return Ir(this.configuration).listApps(t,r).then(a=>a(this.axios,this.basePath))}updateApp(t,r,a,n,o){return Ir(this.configuration).updateApp(t,r,a,n,o).then(s=>s(this.axios,this.basePath))}}const lv=function(e){return{deleteCell:async(t,r,a={})=>{m("deleteCell","cell",t);const n="/cells/{cell}".replace("{cell}",encodeURIComponent(String(t))),o=new URL(n,P);let s;e&&(s=e.baseOptions);const i={method:"DELETE",...s,...a},l={},c={};V(i,e),await R(l,e),r!==void 0&&(c.completionTimeout=r),_(o,c);let d=s&&s.headers?s.headers:{};return i.headers={...l,...d,...a.headers},{url:A(o),options:i}},deployCell:async(t,r,a={})=>{m("deployCell","cell",t);const n="/cells",o=new URL(n,P);let s;e&&(s=e.baseOptions);const i={method:"POST",...s,...a},l={},c={};V(i,e),await R(l,e),r!==void 0&&(c.completionTimeout=r),l["Content-Type"]="application/json",_(o,c);let d=s&&s.headers?s.headers:{};return i.headers={...l,...d,...a.headers},i.data=se(t,i,e),{url:A(o),options:i}},getCell:async(t,r={})=>{m("getCell","cell",t);const a="/cells/{cell}".replace("{cell}",encodeURIComponent(String(t))),n=new URL(a,P);let o;e&&(o=e.baseOptions);const s={method:"GET",...o,...r},i={},l={};V(s,e),await R(i,e),_(n,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},{url:A(n),options:s}},getCellStatus:async(t,r={})=>{m("getCellStatus","cell",t);const a="/cells/{cell}/status".replace("{cell}",encodeURIComponent(String(t))),n=new URL(a,P);let o;e&&(o=e.baseOptions);const s={method:"GET",...o,...r},i={},l={};V(s,e),await R(i,e),_(n,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},{url:A(n),options:s}},listCells:async(t={})=>{const r="/cells",a=new URL(r,P);let n;e&&(n=e.baseOptions);const o={method:"GET",...n,...t},s={},i={};V(o,e),await R(s,e),_(a,i);let l=n&&n.headers?n.headers:{};return o.headers={...s,...l,...t.headers},{url:A(a),options:o}},updateCell:async(t,r,a,n={})=>{m("updateCell","cell",t),m("updateCell","cell2",r);const o="/cells/{cell}".replace("{cell}",encodeURIComponent(String(t))),s=new URL(o,P);let i;e&&(i=e.baseOptions);const l={method:"PUT",...i,...n},c={},d={};V(l,e),await R(c,e),a!==void 0&&(d.completionTimeout=a),c["Content-Type"]="application/json",_(s,d);let u=i&&i.headers?i.headers:{};return l.headers={...c,...u,...n.headers},l.data=se(r,l,e),{url:A(s),options:l}}}},Mr=function(e){const t=lv(e);return{async deleteCell(r,a,n){var l,c;const o=await t.deleteCell(r,a,n),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["CellApi.deleteCell"])==null?void 0:l[s])==null?void 0:c.url;return(d,u)=>T(o,O,w,e)(d,i||u)},async deployCell(r,a,n){var l,c;const o=await t.deployCell(r,a,n),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["CellApi.deployCell"])==null?void 0:l[s])==null?void 0:c.url;return(d,u)=>T(o,O,w,e)(d,i||u)},async getCell(r,a){var i,l;const n=await t.getCell(r,a),o=(e==null?void 0:e.serverIndex)??0,s=(l=(i=C["CellApi.getCell"])==null?void 0:i[o])==null?void 0:l.url;return(c,d)=>T(n,O,w,e)(c,s||d)},async getCellStatus(r,a){var i,l;const n=await t.getCellStatus(r,a),o=(e==null?void 0:e.serverIndex)??0,s=(l=(i=C["CellApi.getCellStatus"])==null?void 0:i[o])==null?void 0:l.url;return(c,d)=>T(n,O,w,e)(c,s||d)},async listCells(r){var s,i;const a=await t.listCells(r),n=(e==null?void 0:e.serverIndex)??0,o=(i=(s=C["CellApi.listCells"])==null?void 0:s[n])==null?void 0:i.url;return(l,c)=>T(a,O,w,e)(l,o||c)},async updateCell(r,a,n,o){var c,d;const s=await t.updateCell(r,a,n,o),i=(e==null?void 0:e.serverIndex)??0,l=(d=(c=C["CellApi.updateCell"])==null?void 0:c[i])==null?void 0:d.url;return(u,p)=>T(s,O,w,e)(u,l||p)}}};class cv extends Pe{deleteCell(t,r,a){return Mr(this.configuration).deleteCell(t,r,a).then(n=>n(this.axios,this.basePath))}deployCell(t,r,a){return Mr(this.configuration).deployCell(t,r,a).then(n=>n(this.axios,this.basePath))}getCell(t,r){return Mr(this.configuration).getCell(t,r).then(a=>a(this.axios,this.basePath))}getCellStatus(t,r){return Mr(this.configuration).getCellStatus(t,r).then(a=>a(this.axios,this.basePath))}listCells(t){return Mr(this.configuration).listCells(t).then(r=>r(this.axios,this.basePath))}updateCell(t,r,a,n){return Mr(this.configuration).updateCell(t,r,a,n).then(o=>o(this.axios,this.basePath))}}const dv=function(e){return{addRobotController:async(t,r,a,n={})=>{m("addRobotController","cell",t),m("addRobotController","robotController",r);const o="/cells/{cell}/controllers".replace("{cell}",encodeURIComponent(String(t))),s=new URL(o,P);let i;e&&(i=e.baseOptions);const l={method:"POST",...i,...n},c={},d={};V(l,e),await R(c,e),a!==void 0&&(d.completionTimeout=a),c["Content-Type"]="application/json",_(s,d);let u=i&&i.headers?i.headers:{};return l.headers={...c,...u,...n.headers},l.data=se(r,l,e),{url:A(s),options:l}},clearRobotControllers:async(t,r,a={})=>{m("clearRobotControllers","cell",t);const n="/cells/{cell}/controllers".replace("{cell}",encodeURIComponent(String(t))),o=new URL(n,P);let s;e&&(s=e.baseOptions);const i={method:"DELETE",...s,...a},l={},c={};V(i,e),await R(l,e),r!==void 0&&(c.completionTimeout=r),_(o,c);let d=s&&s.headers?s.headers:{};return i.headers={...l,...d,...a.headers},{url:A(o),options:i}},deleteRobotController:async(t,r,a,n={})=>{m("deleteRobotController","cell",t),m("deleteRobotController","controller",r);const o="/cells/{cell}/controllers/{controller}".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))),s=new URL(o,P);let i;e&&(i=e.baseOptions);const l={method:"DELETE",...i,...n},c={},d={};V(l,e),await R(c,e),a!==void 0&&(d.completionTimeout=a),_(s,d);let u=i&&i.headers?i.headers:{};return l.headers={...c,...u,...n.headers},{url:A(s),options:l}},getCurrentRobotControllerState:async(t,r,a={})=>{m("getCurrentRobotControllerState","cell",t),m("getCurrentRobotControllerState","controller",r);const n="/cells/{cell}/controllers/{controller}/state".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))),o=new URL(n,P);let s;e&&(s=e.baseOptions);const i={method:"GET",...s,...a},l={},c={};V(i,e),await R(l,e),_(o,c);let d=s&&s.headers?s.headers:{};return i.headers={...l,...d,...a.headers},{url:A(o),options:i}},getMode:async(t,r,a={})=>{m("getMode","cell",t),m("getMode","controller",r);const n="/cells/{cell}/controllers/{controller}/mode".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))),o=new URL(n,P);let s;e&&(s=e.baseOptions);const i={method:"GET",...s,...a},l={},c={};V(i,e),await R(l,e),_(o,c);let d=s&&s.headers?s.headers:{};return i.headers={...l,...d,...a.headers},{url:A(o),options:i}},getRobotController:async(t,r,a={})=>{m("getRobotController","cell",t),m("getRobotController","controller",r);const n="/cells/{cell}/controllers/{controller}".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))),o=new URL(n,P);let s;e&&(s=e.baseOptions);const i={method:"GET",...s,...a},l={},c={};V(i,e),await R(l,e),_(o,c);let d=s&&s.headers?s.headers:{};return i.headers={...l,...d,...a.headers},{url:A(o),options:i}},getSupportedModes:async(t,r,a={})=>{m("getSupportedModes","cell",t),m("getSupportedModes","controller",r);const n="/cells/{cell}/controllers/{controller}/controller-capabilities".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))),o=new URL(n,P);let s;e&&(s=e.baseOptions);const i={method:"GET",...s,...a},l={},c={};V(i,e),await R(l,e),_(o,c);let d=s&&s.headers?s.headers:{};return i.headers={...l,...d,...a.headers},{url:A(o),options:i}},getVirtualRobotConfiguration:async(t,r,a={})=>{m("getVirtualRobotConfiguration","cell",t),m("getVirtualRobotConfiguration","controller",r);const n="/cells/{cell}/controllers/{controller}/virtual-robot-configuration".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))),o=new URL(n,P);let s;e&&(s=e.baseOptions);const i={method:"GET",...s,...a},l={},c={};V(i,e),await R(l,e),_(o,c);let d=s&&s.headers?s.headers:{};return i.headers={...l,...d,...a.headers},{url:A(o),options:i}},listControllers:async(t,r={})=>{m("listControllers","cell",t);const a="/cells/{cell}/controllers".replace("{cell}",encodeURIComponent(String(t))),n=new URL(a,P);let o;e&&(o=e.baseOptions);const s={method:"GET",...o,...r},i={},l={};V(s,e),await R(i,e),_(n,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},{url:A(n),options:s}},setDefaultMode:async(t,r,a,n={})=>{m("setDefaultMode","cell",t),m("setDefaultMode","controller",r),m("setDefaultMode","mode",a);const o="/cells/{cell}/controllers/{controller}/mode".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))),s=new URL(o,P);let i;e&&(i=e.baseOptions);const l={method:"PUT",...i,...n},c={},d={};V(l,e),await R(c,e),a!==void 0&&(d.mode=a),_(s,d);let u=i&&i.headers?i.headers:{};return l.headers={...c,...u,...n.headers},{url:A(s),options:l}},streamFreeDrive:async(t,r,a,n={})=>{m("streamFreeDrive","cell",t),m("streamFreeDrive","controller",r);const o="/cells/{cell}/controllers/{controller}/free-drive-stream".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))),s=new URL(o,P);let i;e&&(i=e.baseOptions);const l={method:"GET",...i,...n},c={},d={};V(l,e),await R(c,e),a!==void 0&&(d.response_rate=a),_(s,d);let u=i&&i.headers?i.headers:{};return l.headers={...c,...u,...n.headers},{url:A(s),options:l}},streamModeChange:async(t,r,a={})=>{m("streamModeChange","cell",t),m("streamModeChange","controller",r);const n="/cells/{cell}/controllers/{controller}/mode-stream".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))),o=new URL(n,P);let s;e&&(s=e.baseOptions);const i={method:"GET",...s,...a},l={},c={};V(i,e),await R(l,e),_(o,c);let d=s&&s.headers?s.headers:{};return i.headers={...l,...d,...a.headers},{url:A(o),options:i}},streamRobotControllerState:async(t,r,a,n={})=>{m("streamRobotControllerState","cell",t),m("streamRobotControllerState","controller",r);const o="/cells/{cell}/controllers/{controller}/state-stream".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))),s=new URL(o,P);let i;e&&(i=e.baseOptions);const l={method:"GET",...i,...n},c={},d={};V(l,e),await R(c,e),a!==void 0&&(d.response_rate=a),_(s,d);let u=i&&i.headers?i.headers:{};return l.headers={...c,...u,...n.headers},{url:A(s),options:l}},updateRobotController:async(t,r,a,n,o={})=>{m("updateRobotController","cell",t),m("updateRobotController","controller",r),m("updateRobotController","robotController",a);const s="/cells/{cell}/controllers/{controller}".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))),i=new URL(s,P);let l;e&&(l=e.baseOptions);const c={method:"PUT",...l,...o},d={},u={};V(c,e),await R(d,e),n!==void 0&&(u.completionTimeout=n),d["Content-Type"]="application/json",_(i,u);let p=l&&l.headers?l.headers:{};return c.headers={...d,...p,...o.headers},c.data=se(a,c,e),{url:A(i),options:c}}}},Xe=function(e){const t=dv(e);return{async addRobotController(r,a,n,o){var c,d;const s=await t.addRobotController(r,a,n,o),i=(e==null?void 0:e.serverIndex)??0,l=(d=(c=C["ControllerApi.addRobotController"])==null?void 0:c[i])==null?void 0:d.url;return(u,p)=>T(s,O,w,e)(u,l||p)},async clearRobotControllers(r,a,n){var l,c;const o=await t.clearRobotControllers(r,a,n),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["ControllerApi.clearRobotControllers"])==null?void 0:l[s])==null?void 0:c.url;return(d,u)=>T(o,O,w,e)(d,i||u)},async deleteRobotController(r,a,n,o){var c,d;const s=await t.deleteRobotController(r,a,n,o),i=(e==null?void 0:e.serverIndex)??0,l=(d=(c=C["ControllerApi.deleteRobotController"])==null?void 0:c[i])==null?void 0:d.url;return(u,p)=>T(s,O,w,e)(u,l||p)},async getCurrentRobotControllerState(r,a,n){var l,c;const o=await t.getCurrentRobotControllerState(r,a,n),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["ControllerApi.getCurrentRobotControllerState"])==null?void 0:l[s])==null?void 0:c.url;return(d,u)=>T(o,O,w,e)(d,i||u)},async getMode(r,a,n){var l,c;const o=await t.getMode(r,a,n),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["ControllerApi.getMode"])==null?void 0:l[s])==null?void 0:c.url;return(d,u)=>T(o,O,w,e)(d,i||u)},async getRobotController(r,a,n){var l,c;const o=await t.getRobotController(r,a,n),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["ControllerApi.getRobotController"])==null?void 0:l[s])==null?void 0:c.url;return(d,u)=>T(o,O,w,e)(d,i||u)},async getSupportedModes(r,a,n){var l,c;const o=await t.getSupportedModes(r,a,n),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["ControllerApi.getSupportedModes"])==null?void 0:l[s])==null?void 0:c.url;return(d,u)=>T(o,O,w,e)(d,i||u)},async getVirtualRobotConfiguration(r,a,n){var l,c;const o=await t.getVirtualRobotConfiguration(r,a,n),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["ControllerApi.getVirtualRobotConfiguration"])==null?void 0:l[s])==null?void 0:c.url;return(d,u)=>T(o,O,w,e)(d,i||u)},async listControllers(r,a){var i,l;const n=await t.listControllers(r,a),o=(e==null?void 0:e.serverIndex)??0,s=(l=(i=C["ControllerApi.listControllers"])==null?void 0:i[o])==null?void 0:l.url;return(c,d)=>T(n,O,w,e)(c,s||d)},async setDefaultMode(r,a,n,o){var c,d;const s=await t.setDefaultMode(r,a,n,o),i=(e==null?void 0:e.serverIndex)??0,l=(d=(c=C["ControllerApi.setDefaultMode"])==null?void 0:c[i])==null?void 0:d.url;return(u,p)=>T(s,O,w,e)(u,l||p)},async streamFreeDrive(r,a,n,o){var c,d;const s=await t.streamFreeDrive(r,a,n,o),i=(e==null?void 0:e.serverIndex)??0,l=(d=(c=C["ControllerApi.streamFreeDrive"])==null?void 0:c[i])==null?void 0:d.url;return(u,p)=>T(s,O,w,e)(u,l||p)},async streamModeChange(r,a,n){var l,c;const o=await t.streamModeChange(r,a,n),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["ControllerApi.streamModeChange"])==null?void 0:l[s])==null?void 0:c.url;return(d,u)=>T(o,O,w,e)(d,i||u)},async streamRobotControllerState(r,a,n,o){var c,d;const s=await t.streamRobotControllerState(r,a,n,o),i=(e==null?void 0:e.serverIndex)??0,l=(d=(c=C["ControllerApi.streamRobotControllerState"])==null?void 0:c[i])==null?void 0:d.url;return(u,p)=>T(s,O,w,e)(u,l||p)},async updateRobotController(r,a,n,o,s){var d,u;const i=await t.updateRobotController(r,a,n,o,s),l=(e==null?void 0:e.serverIndex)??0,c=(u=(d=C["ControllerApi.updateRobotController"])==null?void 0:d[l])==null?void 0:u.url;return(p,f)=>T(i,O,w,e)(p,c||f)}}};class uv extends Pe{addRobotController(t,r,a,n){return Xe(this.configuration).addRobotController(t,r,a,n).then(o=>o(this.axios,this.basePath))}clearRobotControllers(t,r,a){return Xe(this.configuration).clearRobotControllers(t,r,a).then(n=>n(this.axios,this.basePath))}deleteRobotController(t,r,a,n){return Xe(this.configuration).deleteRobotController(t,r,a,n).then(o=>o(this.axios,this.basePath))}getCurrentRobotControllerState(t,r,a){return Xe(this.configuration).getCurrentRobotControllerState(t,r,a).then(n=>n(this.axios,this.basePath))}getMode(t,r,a){return Xe(this.configuration).getMode(t,r,a).then(n=>n(this.axios,this.basePath))}getRobotController(t,r,a){return Xe(this.configuration).getRobotController(t,r,a).then(n=>n(this.axios,this.basePath))}getSupportedModes(t,r,a){return Xe(this.configuration).getSupportedModes(t,r,a).then(n=>n(this.axios,this.basePath))}getVirtualRobotConfiguration(t,r,a){return Xe(this.configuration).getVirtualRobotConfiguration(t,r,a).then(n=>n(this.axios,this.basePath))}listControllers(t,r){return Xe(this.configuration).listControllers(t,r).then(a=>a(this.axios,this.basePath))}setDefaultMode(t,r,a,n){return Xe(this.configuration).setDefaultMode(t,r,a,n).then(o=>o(this.axios,this.basePath))}streamFreeDrive(t,r,a,n){return Xe(this.configuration).streamFreeDrive(t,r,a,n).then(o=>o(this.axios,this.basePath))}streamModeChange(t,r,a){return Xe(this.configuration).streamModeChange(t,r,a).then(n=>n(this.axios,this.basePath))}streamRobotControllerState(t,r,a,n){return Xe(this.configuration).streamRobotControllerState(t,r,a,n).then(o=>o(this.axios,this.basePath))}updateRobotController(t,r,a,n,o){return Xe(this.configuration).updateRobotController(t,r,a,n,o).then(s=>s(this.axios,this.basePath))}}const pv=function(e){return{listIODescriptions:async(t,r,a,n={})=>{m("listIODescriptions","cell",t),m("listIODescriptions","controller",r);const o="/cells/{cell}/controllers/{controller}/ios/description".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))),s=new URL(o,P);let i;e&&(i=e.baseOptions);const l={method:"GET",...i,...n},c={},d={};V(l,e),await R(c,e),a&&(d.ios=a),_(s,d);let u=i&&i.headers?i.headers:{};return l.headers={...c,...u,...n.headers},{url:A(s),options:l}},listIOValues:async(t,r,a,n={})=>{m("listIOValues","cell",t),m("listIOValues","controller",r);const o="/cells/{cell}/controllers/{controller}/ios/values".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))),s=new URL(o,P);let i;e&&(i=e.baseOptions);const l={method:"GET",...i,...n},c={},d={};V(l,e),await R(c,e),a&&(d.ios=a),_(s,d);let u=i&&i.headers?i.headers:{};return l.headers={...c,...u,...n.headers},{url:A(s),options:l}},setOutputValues:async(t,r,a,n={})=>{m("setOutputValues","cell",t),m("setOutputValues","controller",r),m("setOutputValues","iOValue",a);const o="/cells/{cell}/controllers/{controller}/ios/values".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))),s=new URL(o,P);let i;e&&(i=e.baseOptions);const l={method:"PUT",...i,...n},c={},d={};V(l,e),await R(c,e),c["Content-Type"]="application/json",_(s,d);let u=i&&i.headers?i.headers:{};return l.headers={...c,...u,...n.headers},l.data=se(a,l,e),{url:A(s),options:l}},streamIOValues:async(t,r,a,n={})=>{m("streamIOValues","cell",t),m("streamIOValues","controller",r);const o="/cells/{cell}/controllers/{controller}/ios/stream".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))),s=new URL(o,P);let i;e&&(i=e.baseOptions);const l={method:"GET",...i,...n},c={},d={};V(l,e),await R(c,e),a&&(d.ios=a),_(s,d);let u=i&&i.headers?i.headers:{};return l.headers={...c,...u,...n.headers},{url:A(s),options:l}},waitForIOEvent:async(t,r,a,n,o,s,i,l={})=>{m("waitForIOEvent","cell",t),m("waitForIOEvent","controller",r),m("waitForIOEvent","io",a),m("waitForIOEvent","comparisonType",n);const c="/cells/{cell}/controllers/{controller}/ios/wait-for".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))),d=new URL(c,P);let u;e&&(u=e.baseOptions);const p={method:"GET",...u,...l},f={},y={};V(p,e),await R(f,e),a!==void 0&&(y.io=a),n!==void 0&&(y.comparison_type=n),o!==void 0&&(y.boolean_value=o),s!==void 0&&(y.integer_value=s),i!==void 0&&(y.floating_value=i),_(d,y);let h=u&&u.headers?u.headers:{};return p.headers={...f,...h,...l.headers},{url:A(d),options:p}}}},fa=function(e){const t=pv(e);return{async listIODescriptions(r,a,n,o){var c,d;const s=await t.listIODescriptions(r,a,n,o),i=(e==null?void 0:e.serverIndex)??0,l=(d=(c=C["ControllerIOsApi.listIODescriptions"])==null?void 0:c[i])==null?void 0:d.url;return(u,p)=>T(s,O,w,e)(u,l||p)},async listIOValues(r,a,n,o){var c,d;const s=await t.listIOValues(r,a,n,o),i=(e==null?void 0:e.serverIndex)??0,l=(d=(c=C["ControllerIOsApi.listIOValues"])==null?void 0:c[i])==null?void 0:d.url;return(u,p)=>T(s,O,w,e)(u,l||p)},async setOutputValues(r,a,n,o){var c,d;const s=await t.setOutputValues(r,a,n,o),i=(e==null?void 0:e.serverIndex)??0,l=(d=(c=C["ControllerIOsApi.setOutputValues"])==null?void 0:c[i])==null?void 0:d.url;return(u,p)=>T(s,O,w,e)(u,l||p)},async streamIOValues(r,a,n,o){var c,d;const s=await t.streamIOValues(r,a,n,o),i=(e==null?void 0:e.serverIndex)??0,l=(d=(c=C["ControllerIOsApi.streamIOValues"])==null?void 0:c[i])==null?void 0:d.url;return(u,p)=>T(s,O,w,e)(u,l||p)},async waitForIOEvent(r,a,n,o,s,i,l,c){var f,y;const d=await t.waitForIOEvent(r,a,n,o,s,i,l,c),u=(e==null?void 0:e.serverIndex)??0,p=(y=(f=C["ControllerIOsApi.waitForIOEvent"])==null?void 0:f[u])==null?void 0:y.url;return(h,x)=>T(d,O,w,e)(h,p||x)}}};class hv extends Pe{listIODescriptions(t,r,a,n){return fa(this.configuration).listIODescriptions(t,r,a,n).then(o=>o(this.axios,this.basePath))}listIOValues(t,r,a,n){return fa(this.configuration).listIOValues(t,r,a,n).then(o=>o(this.axios,this.basePath))}setOutputValues(t,r,a,n){return fa(this.configuration).setOutputValues(t,r,a,n).then(o=>o(this.axios,this.basePath))}streamIOValues(t,r,a,n){return fa(this.configuration).streamIOValues(t,r,a,n).then(o=>o(this.axios,this.basePath))}waitForIOEvent(t,r,a,n,o,s,i,l){return fa(this.configuration).waitForIOEvent(t,r,a,n,o,s,i,l).then(c=>c(this.axios,this.basePath))}}const mv=function(e){return{addCoordinateSystem:async(t,r,a={})=>{m("addCoordinateSystem","cell",t),m("addCoordinateSystem","addRequest",r);const n="/cells/{cell}/coordinate-systems".replace("{cell}",encodeURIComponent(String(t))),o=new URL(n,P);let s;e&&(s=e.baseOptions);const i={method:"PUT",...s,...a},l={},c={};V(i,e),await R(l,e),l["Content-Type"]="application/json",_(o,c);let d=s&&s.headers?s.headers:{};return i.headers={...l,...d,...a.headers},i.data=se(r,i,e),{url:A(o),options:i}},deleteCoordinateSystem:async(t,r,a={})=>{m("deleteCoordinateSystem","cell",t),m("deleteCoordinateSystem","coordinateSystem",r);const n="/cells/{cell}/coordinate-systems/{coordinate-system}".replace("{cell}",encodeURIComponent(String(t))).replace("{coordinate-system}",encodeURIComponent(String(r))),o=new URL(n,P);let s;e&&(s=e.baseOptions);const i={method:"DELETE",...s,...a},l={},c={};V(i,e),await R(l,e),_(o,c);let d=s&&s.headers?s.headers:{};return i.headers={...l,...d,...a.headers},{url:A(o),options:i}},getCoordinateSystem:async(t,r,a,n={})=>{m("getCoordinateSystem","cell",t),m("getCoordinateSystem","coordinateSystem",r);const o="/cells/{cell}/coordinate-systems/{coordinate-system}".replace("{cell}",encodeURIComponent(String(t))).replace("{coordinate-system}",encodeURIComponent(String(r))),s=new URL(o,P);let i;e&&(i=e.baseOptions);const l={method:"GET",...i,...n},c={},d={};V(l,e),await R(c,e),a!==void 0&&(d.rotation_type=a),_(s,d);let u=i&&i.headers?i.headers:{};return l.headers={...c,...u,...n.headers},{url:A(s),options:l}},listCoordinateSystems:async(t,r,a={})=>{m("listCoordinateSystems","cell",t);const n="/cells/{cell}/coordinate-systems".replace("{cell}",encodeURIComponent(String(t))),o=new URL(n,P);let s;e&&(s=e.baseOptions);const i={method:"GET",...s,...a},l={},c={};V(i,e),await R(l,e),r!==void 0&&(c.rotation_type=r),_(o,c);let d=s&&s.headers?s.headers:{};return i.headers={...l,...d,...a.headers},{url:A(o),options:i}},transformInCoordinateSystem:async(t,r,a,n={})=>{m("transformInCoordinateSystem","cell",t),m("transformInCoordinateSystem","coordinateSystem",r),m("transformInCoordinateSystem","pose",a);const o="/cells/{cell}/coordinate-systems/{coordinate-system}/transform".replace("{cell}",encodeURIComponent(String(t))).replace("{coordinate-system}",encodeURIComponent(String(r))),s=new URL(o,P);let i;e&&(i=e.baseOptions);const l={method:"POST",...i,...n},c={},d={};V(l,e),await R(c,e),c["Content-Type"]="application/json",_(s,d);let u=i&&i.headers?i.headers:{};return l.headers={...c,...u,...n.headers},l.data=se(a,l,e),{url:A(s),options:l}}}},ga=function(e){const t=mv(e);return{async addCoordinateSystem(r,a,n){var l,c;const o=await t.addCoordinateSystem(r,a,n),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["CoordinateSystemsApi.addCoordinateSystem"])==null?void 0:l[s])==null?void 0:c.url;return(d,u)=>T(o,O,w,e)(d,i||u)},async deleteCoordinateSystem(r,a,n){var l,c;const o=await t.deleteCoordinateSystem(r,a,n),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["CoordinateSystemsApi.deleteCoordinateSystem"])==null?void 0:l[s])==null?void 0:c.url;return(d,u)=>T(o,O,w,e)(d,i||u)},async getCoordinateSystem(r,a,n,o){var c,d;const s=await t.getCoordinateSystem(r,a,n,o),i=(e==null?void 0:e.serverIndex)??0,l=(d=(c=C["CoordinateSystemsApi.getCoordinateSystem"])==null?void 0:c[i])==null?void 0:d.url;return(u,p)=>T(s,O,w,e)(u,l||p)},async listCoordinateSystems(r,a,n){var l,c;const o=await t.listCoordinateSystems(r,a,n),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["CoordinateSystemsApi.listCoordinateSystems"])==null?void 0:l[s])==null?void 0:c.url;return(d,u)=>T(o,O,w,e)(d,i||u)},async transformInCoordinateSystem(r,a,n,o){var c,d;const s=await t.transformInCoordinateSystem(r,a,n,o),i=(e==null?void 0:e.serverIndex)??0,l=(d=(c=C["CoordinateSystemsApi.transformInCoordinateSystem"])==null?void 0:c[i])==null?void 0:d.url;return(u,p)=>T(s,O,w,e)(u,l||p)}}};class fv extends Pe{addCoordinateSystem(t,r,a){return ga(this.configuration).addCoordinateSystem(t,r,a).then(n=>n(this.axios,this.basePath))}deleteCoordinateSystem(t,r,a){return ga(this.configuration).deleteCoordinateSystem(t,r,a).then(n=>n(this.axios,this.basePath))}getCoordinateSystem(t,r,a,n){return ga(this.configuration).getCoordinateSystem(t,r,a,n).then(o=>o(this.axios,this.basePath))}listCoordinateSystems(t,r,a){return ga(this.configuration).listCoordinateSystems(t,r,a).then(n=>n(this.axios,this.basePath))}transformInCoordinateSystem(t,r,a,n){return ga(this.configuration).transformInCoordinateSystem(t,r,a,n).then(o=>o(this.axios,this.basePath))}}const gv=function(e){return{clearDevices:async(t,r={})=>{m("clearDevices","cell",t);const a="/cells/{cell}/devices".replace("{cell}",encodeURIComponent(String(t))),n=new URL(a,P);let o;e&&(o=e.baseOptions);const s={method:"DELETE",...o,...r},i={},l={};V(s,e),await R(i,e),_(n,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},{url:A(n),options:s}},createDevice:async(t,r,a={})=>{m("createDevice","cell",t),m("createDevice","createDeviceRequestInner",r);const n="/cells/{cell}/devices".replace("{cell}",encodeURIComponent(String(t))),o=new URL(n,P);let s;e&&(s=e.baseOptions);const i={method:"POST",...s,...a},l={},c={};V(i,e),await R(l,e),l["Content-Type"]="application/json",_(o,c);let d=s&&s.headers?s.headers:{};return i.headers={...l,...d,...a.headers},i.data=se(r,i,e),{url:A(o),options:i}},deleteDevice:async(t,r,a={})=>{m("deleteDevice","cell",t),m("deleteDevice","identifier",r);const n="/cells/{cell}/devices/{identifier}".replace("{cell}",encodeURIComponent(String(t))).replace("{identifier}",encodeURIComponent(String(r))),o=new URL(n,P);let s;e&&(s=e.baseOptions);const i={method:"DELETE",...s,...a},l={},c={};V(i,e),await R(l,e),_(o,c);let d=s&&s.headers?s.headers:{};return i.headers={...l,...d,...a.headers},{url:A(o),options:i}},getDevice:async(t,r,a={})=>{m("getDevice","cell",t),m("getDevice","identifier",r);const n="/cells/{cell}/devices/{identifier}".replace("{cell}",encodeURIComponent(String(t))).replace("{identifier}",encodeURIComponent(String(r))),o=new URL(n,P);let s;e&&(s=e.baseOptions);const i={method:"GET",...s,...a},l={},c={};V(i,e),await R(l,e),_(o,c);let d=s&&s.headers?s.headers:{};return i.headers={...l,...d,...a.headers},{url:A(o),options:i}},listDevices:async(t,r={})=>{m("listDevices","cell",t);const a="/cells/{cell}/devices".replace("{cell}",encodeURIComponent(String(t))),n=new URL(a,P);let o;e&&(o=e.baseOptions);const s={method:"GET",...o,...r},i={},l={};V(s,e),await R(i,e),_(n,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},{url:A(n),options:s}}}},ya=function(e){const t=gv(e);return{async clearDevices(r,a){var i,l;const n=await t.clearDevices(r,a),o=(e==null?void 0:e.serverIndex)??0,s=(l=(i=C["DeviceConfigurationApi.clearDevices"])==null?void 0:i[o])==null?void 0:l.url;return(c,d)=>T(n,O,w,e)(c,s||d)},async createDevice(r,a,n){var l,c;const o=await t.createDevice(r,a,n),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["DeviceConfigurationApi.createDevice"])==null?void 0:l[s])==null?void 0:c.url;return(d,u)=>T(o,O,w,e)(d,i||u)},async deleteDevice(r,a,n){var l,c;const o=await t.deleteDevice(r,a,n),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["DeviceConfigurationApi.deleteDevice"])==null?void 0:l[s])==null?void 0:c.url;return(d,u)=>T(o,O,w,e)(d,i||u)},async getDevice(r,a,n){var l,c;const o=await t.getDevice(r,a,n),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["DeviceConfigurationApi.getDevice"])==null?void 0:l[s])==null?void 0:c.url;return(d,u)=>T(o,O,w,e)(d,i||u)},async listDevices(r,a){var i,l;const n=await t.listDevices(r,a),o=(e==null?void 0:e.serverIndex)??0,s=(l=(i=C["DeviceConfigurationApi.listDevices"])==null?void 0:i[o])==null?void 0:l.url;return(c,d)=>T(n,O,w,e)(c,s||d)}}};class yv extends Pe{clearDevices(t,r){return ya(this.configuration).clearDevices(t,r).then(a=>a(this.axios,this.basePath))}createDevice(t,r,a){return ya(this.configuration).createDevice(t,r,a).then(n=>n(this.axios,this.basePath))}deleteDevice(t,r,a){return ya(this.configuration).deleteDevice(t,r,a).then(n=>n(this.axios,this.basePath))}getDevice(t,r,a){return ya(this.configuration).getDevice(t,r,a).then(n=>n(this.axios,this.basePath))}listDevices(t,r){return ya(this.configuration).listDevices(t,r).then(a=>a(this.axios,this.basePath))}}const bv=function(e){return{createProgram:async(t,r,a,n={})=>{m("createProgram","cell",t),m("createProgram","body",r);const o="/cells/{cell}/store/programs".replace("{cell}",encodeURIComponent(String(t))),s=new URL(o,P);let i;e&&(i=e.baseOptions);const l={method:"POST",...i,...n},c={},d={};V(l,e),await R(c,e),a!==void 0&&(d.name=a),c["Content-Type"]="text/plain",_(s,d);let u=i&&i.headers?i.headers:{};return l.headers={...c,...u,...n.headers},l.data=se(r,l,e),{url:A(s),options:l}},deleteProgram:async(t,r,a={})=>{m("deleteProgram","cell",t),m("deleteProgram","program",r);const n="/cells/{cell}/store/programs/{program}".replace("{cell}",encodeURIComponent(String(t))).replace("{program}",encodeURIComponent(String(r))),o=new URL(n,P);let s;e&&(s=e.baseOptions);const i={method:"DELETE",...s,...a},l={},c={};V(i,e),await R(l,e),_(o,c);let d=s&&s.headers?s.headers:{};return i.headers={...l,...d,...a.headers},{url:A(o),options:i}},deleteProgramList:async(t,r,a={})=>{m("deleteProgramList","cell",t),m("deleteProgramList","programIds",r);const n="/cells/{cell}/store/programs".replace("{cell}",encodeURIComponent(String(t))),o=new URL(n,P);let s;e&&(s=e.baseOptions);const i={method:"DELETE",...s,...a},l={},c={};V(i,e),await R(l,e),r&&(c.program_ids=r),_(o,c);let d=s&&s.headers?s.headers:{};return i.headers={...l,...d,...a.headers},{url:A(o),options:i}},getProgram:async(t,r,a={})=>{m("getProgram","cell",t),m("getProgram","program",r);const n="/cells/{cell}/store/programs/{program}".replace("{cell}",encodeURIComponent(String(t))).replace("{program}",encodeURIComponent(String(r))),o=new URL(n,P);let s;e&&(s=e.baseOptions);const i={method:"GET",...s,...a},l={},c={};V(i,e),await R(l,e),_(o,c);let d=s&&s.headers?s.headers:{};return i.headers={...l,...d,...a.headers},{url:A(o),options:i}},updateProgram:async(t,r,a,n={})=>{m("updateProgram","cell",t),m("updateProgram","program",r),m("updateProgram","body",a);const o="/cells/{cell}/store/programs/{program}".replace("{cell}",encodeURIComponent(String(t))).replace("{program}",encodeURIComponent(String(r))),s=new URL(o,P);let i;e&&(i=e.baseOptions);const l={method:"PUT",...i,...n},c={},d={};V(l,e),await R(c,e),c["Content-Type"]="text/plain",_(s,d);let u=i&&i.headers?i.headers:{};return l.headers={...c,...u,...n.headers},l.data=se(a,l,e),{url:A(s),options:l}}}},ba=function(e){const t=bv(e);return{async createProgram(r,a,n,o){var c,d;const s=await t.createProgram(r,a,n,o),i=(e==null?void 0:e.serverIndex)??0,l=(d=(c=C["LibraryProgramApi.createProgram"])==null?void 0:c[i])==null?void 0:d.url;return(u,p)=>T(s,O,w,e)(u,l||p)},async deleteProgram(r,a,n){var l,c;const o=await t.deleteProgram(r,a,n),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["LibraryProgramApi.deleteProgram"])==null?void 0:l[s])==null?void 0:c.url;return(d,u)=>T(o,O,w,e)(d,i||u)},async deleteProgramList(r,a,n){var l,c;const o=await t.deleteProgramList(r,a,n),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["LibraryProgramApi.deleteProgramList"])==null?void 0:l[s])==null?void 0:c.url;return(d,u)=>T(o,O,w,e)(d,i||u)},async getProgram(r,a,n){var l,c;const o=await t.getProgram(r,a,n),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["LibraryProgramApi.getProgram"])==null?void 0:l[s])==null?void 0:c.url;return(d,u)=>T(o,O,w,e)(d,i||u)},async updateProgram(r,a,n,o){var c,d;const s=await t.updateProgram(r,a,n,o),i=(e==null?void 0:e.serverIndex)??0,l=(d=(c=C["LibraryProgramApi.updateProgram"])==null?void 0:c[i])==null?void 0:d.url;return(u,p)=>T(s,O,w,e)(u,l||p)}}};class Sv extends Pe{createProgram(t,r,a,n){return ba(this.configuration).createProgram(t,r,a,n).then(o=>o(this.axios,this.basePath))}deleteProgram(t,r,a){return ba(this.configuration).deleteProgram(t,r,a).then(n=>n(this.axios,this.basePath))}deleteProgramList(t,r,a){return ba(this.configuration).deleteProgramList(t,r,a).then(n=>n(this.axios,this.basePath))}getProgram(t,r,a){return ba(this.configuration).getProgram(t,r,a).then(n=>n(this.axios,this.basePath))}updateProgram(t,r,a,n){return ba(this.configuration).updateProgram(t,r,a,n).then(o=>o(this.axios,this.basePath))}}const vv=function(e){return{getProgramMetadata:async(t,r,a={})=>{m("getProgramMetadata","cell",t),m("getProgramMetadata","program",r);const n="/cells/{cell}/store/programs/{program}/metadata".replace("{cell}",encodeURIComponent(String(t))).replace("{program}",encodeURIComponent(String(r))),o=new URL(n,P);let s;e&&(s=e.baseOptions);const i={method:"GET",...s,...a},l={},c={};V(i,e),await R(l,e),_(o,c);let d=s&&s.headers?s.headers:{};return i.headers={...l,...d,...a.headers},{url:A(o),options:i}},listProgramMetadata:async(t,r,a={})=>{m("listProgramMetadata","cell",t);const n="/cells/{cell}/store/programs".replace("{cell}",encodeURIComponent(String(t))),o=new URL(n,P);let s;e&&(s=e.baseOptions);const i={method:"GET",...s,...a},l={},c={};V(i,e),await R(l,e),r!==void 0&&(c.show_hidden=r),_(o,c);let d=s&&s.headers?s.headers:{};return i.headers={...l,...d,...a.headers},{url:A(o),options:i}},updateProgramMetadata:async(t,r,a,n={})=>{m("updateProgramMetadata","cell",t),m("updateProgramMetadata","program",r),m("updateProgramMetadata","updateProgramMetadataRequest",a);const o="/cells/{cell}/store/programs/{program}/metadata".replace("{cell}",encodeURIComponent(String(t))).replace("{program}",encodeURIComponent(String(r))),s=new URL(o,P);let i;e&&(i=e.baseOptions);const l={method:"PUT",...i,...n},c={},d={};V(l,e),await R(c,e),c["Content-Type"]="application/json",_(s,d);let u=i&&i.headers?i.headers:{};return l.headers={...c,...u,...n.headers},l.data=se(a,l,e),{url:A(s),options:l}},uploadProgramMetadataImage:async(t,r,a,n={})=>{m("uploadProgramMetadataImage","cell",t),m("uploadProgramMetadataImage","program",r),m("uploadProgramMetadataImage","file",a);const o="/cells/{cell}/store/programs/{program}/metadata/image".replace("{cell}",encodeURIComponent(String(t))).replace("{program}",encodeURIComponent(String(r))),s=new URL(o,P);let i;e&&(i=e.baseOptions);const l={method:"POST",...i,...n},c={},d={},u=new(e&&e.formDataCtor||FormData);V(l,e),await R(c,e),a!==void 0&&u.append("file",a),c["Content-Type"]="multipart/form-data",_(s,d);let p=i&&i.headers?i.headers:{};return l.headers={...c,...p,...n.headers},l.data=u,{url:A(s),options:l}}}},Ka=function(e){const t=vv(e);return{async getProgramMetadata(r,a,n){var l,c;const o=await t.getProgramMetadata(r,a,n),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["LibraryProgramMetadataApi.getProgramMetadata"])==null?void 0:l[s])==null?void 0:c.url;return(d,u)=>T(o,O,w,e)(d,i||u)},async listProgramMetadata(r,a,n){var l,c;const o=await t.listProgramMetadata(r,a,n),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["LibraryProgramMetadataApi.listProgramMetadata"])==null?void 0:l[s])==null?void 0:c.url;return(d,u)=>T(o,O,w,e)(d,i||u)},async updateProgramMetadata(r,a,n,o){var c,d;const s=await t.updateProgramMetadata(r,a,n,o),i=(e==null?void 0:e.serverIndex)??0,l=(d=(c=C["LibraryProgramMetadataApi.updateProgramMetadata"])==null?void 0:c[i])==null?void 0:d.url;return(u,p)=>T(s,O,w,e)(u,l||p)},async uploadProgramMetadataImage(r,a,n,o){var c,d;const s=await t.uploadProgramMetadataImage(r,a,n,o),i=(e==null?void 0:e.serverIndex)??0,l=(d=(c=C["LibraryProgramMetadataApi.uploadProgramMetadataImage"])==null?void 0:c[i])==null?void 0:d.url;return(u,p)=>T(s,O,w,e)(u,l||p)}}};class xv extends Pe{getProgramMetadata(t,r,a){return Ka(this.configuration).getProgramMetadata(t,r,a).then(n=>n(this.axios,this.basePath))}listProgramMetadata(t,r,a){return Ka(this.configuration).listProgramMetadata(t,r,a).then(n=>n(this.axios,this.basePath))}updateProgramMetadata(t,r,a,n){return Ka(this.configuration).updateProgramMetadata(t,r,a,n).then(o=>o(this.axios,this.basePath))}uploadProgramMetadataImage(t,r,a,n){return Ka(this.configuration).uploadProgramMetadataImage(t,r,a,n).then(o=>o(this.axios,this.basePath))}}const Ov=function(e){return{createRecipe:async(t,r,a,n,o={})=>{m("createRecipe","cell",t),m("createRecipe","programId",r),m("createRecipe","body",a);const s="/cells/{cell}/store/recipes".replace("{cell}",encodeURIComponent(String(t))),i=new URL(s,P);let l;e&&(l=e.baseOptions);const c={method:"POST",...l,...o},d={},u={};V(c,e),await R(d,e),r!==void 0&&(u.program_id=r),n!==void 0&&(u.name=n),d["Content-Type"]="application/json",_(i,u);let p=l&&l.headers?l.headers:{};return c.headers={...d,...p,...o.headers},c.data=se(a,c,e),{url:A(i),options:c}},deleteRecipe:async(t,r,a={})=>{m("deleteRecipe","cell",t),m("deleteRecipe","recipe",r);const n="/cells/{cell}/store/recipes/{recipe}".replace("{cell}",encodeURIComponent(String(t))).replace("{recipe}",encodeURIComponent(String(r))),o=new URL(n,P);let s;e&&(s=e.baseOptions);const i={method:"DELETE",...s,...a},l={},c={};V(i,e),await R(l,e),_(o,c);let d=s&&s.headers?s.headers:{};return i.headers={...l,...d,...a.headers},{url:A(o),options:i}},deleteRecipeList:async(t,r,a={})=>{m("deleteRecipeList","cell",t),m("deleteRecipeList","recipeIds",r);const n="/cells/{cell}/store/recipes".replace("{cell}",encodeURIComponent(String(t))),o=new URL(n,P);let s;e&&(s=e.baseOptions);const i={method:"DELETE",...s,...a},l={},c={};V(i,e),await R(l,e),r&&(c.recipe_ids=r),_(o,c);let d=s&&s.headers?s.headers:{};return i.headers={...l,...d,...a.headers},{url:A(o),options:i}},getRecipe:async(t,r,a={})=>{m("getRecipe","cell",t),m("getRecipe","recipe",r);const n="/cells/{cell}/store/recipes/{recipe}".replace("{cell}",encodeURIComponent(String(t))).replace("{recipe}",encodeURIComponent(String(r))),o=new URL(n,P);let s;e&&(s=e.baseOptions);const i={method:"GET",...s,...a},l={},c={};V(i,e),await R(l,e),_(o,c);let d=s&&s.headers?s.headers:{};return i.headers={...l,...d,...a.headers},{url:A(o),options:i}},updateRecipe:async(t,r,a,n={})=>{m("updateRecipe","cell",t),m("updateRecipe","recipe",r),m("updateRecipe","body",a);const o="/cells/{cell}/store/recipes/{recipe}".replace("{cell}",encodeURIComponent(String(t))).replace("{recipe}",encodeURIComponent(String(r))),s=new URL(o,P);let i;e&&(i=e.baseOptions);const l={method:"PUT",...i,...n},c={},d={};V(l,e),await R(c,e),c["Content-Type"]="application/json",_(s,d);let u=i&&i.headers?i.headers:{};return l.headers={...c,...u,...n.headers},l.data=se(a,l,e),{url:A(s),options:l}}}},Sa=function(e){const t=Ov(e);return{async createRecipe(r,a,n,o,s){var d,u;const i=await t.createRecipe(r,a,n,o,s),l=(e==null?void 0:e.serverIndex)??0,c=(u=(d=C["LibraryRecipeApi.createRecipe"])==null?void 0:d[l])==null?void 0:u.url;return(p,f)=>T(i,O,w,e)(p,c||f)},async deleteRecipe(r,a,n){var l,c;const o=await t.deleteRecipe(r,a,n),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["LibraryRecipeApi.deleteRecipe"])==null?void 0:l[s])==null?void 0:c.url;return(d,u)=>T(o,O,w,e)(d,i||u)},async deleteRecipeList(r,a,n){var l,c;const o=await t.deleteRecipeList(r,a,n),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["LibraryRecipeApi.deleteRecipeList"])==null?void 0:l[s])==null?void 0:c.url;return(d,u)=>T(o,O,w,e)(d,i||u)},async getRecipe(r,a,n){var l,c;const o=await t.getRecipe(r,a,n),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["LibraryRecipeApi.getRecipe"])==null?void 0:l[s])==null?void 0:c.url;return(d,u)=>T(o,O,w,e)(d,i||u)},async updateRecipe(r,a,n,o){var c,d;const s=await t.updateRecipe(r,a,n,o),i=(e==null?void 0:e.serverIndex)??0,l=(d=(c=C["LibraryRecipeApi.updateRecipe"])==null?void 0:c[i])==null?void 0:d.url;return(u,p)=>T(s,O,w,e)(u,l||p)}}};class wv extends Pe{createRecipe(t,r,a,n,o){return Sa(this.configuration).createRecipe(t,r,a,n,o).then(s=>s(this.axios,this.basePath))}deleteRecipe(t,r,a){return Sa(this.configuration).deleteRecipe(t,r,a).then(n=>n(this.axios,this.basePath))}deleteRecipeList(t,r,a){return Sa(this.configuration).deleteRecipeList(t,r,a).then(n=>n(this.axios,this.basePath))}getRecipe(t,r,a){return Sa(this.configuration).getRecipe(t,r,a).then(n=>n(this.axios,this.basePath))}updateRecipe(t,r,a,n){return Sa(this.configuration).updateRecipe(t,r,a,n).then(o=>o(this.axios,this.basePath))}}const Cv=function(e){return{getRecipeMetadata:async(t,r,a={})=>{m("getRecipeMetadata","cell",t),m("getRecipeMetadata","recipe",r);const n="/cells/{cell}/store/recipes/{recipe}/metadata".replace("{cell}",encodeURIComponent(String(t))).replace("{recipe}",encodeURIComponent(String(r))),o=new URL(n,P);let s;e&&(s=e.baseOptions);const i={method:"GET",...s,...a},l={},c={};V(i,e),await R(l,e),_(o,c);let d=s&&s.headers?s.headers:{};return i.headers={...l,...d,...a.headers},{url:A(o),options:i}},listRecipeMetadata:async(t,r={})=>{m("listRecipeMetadata","cell",t);const a="/cells/{cell}/store/recipes".replace("{cell}",encodeURIComponent(String(t))),n=new URL(a,P);let o;e&&(o=e.baseOptions);const s={method:"GET",...o,...r},i={},l={};V(s,e),await R(i,e),_(n,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},{url:A(n),options:s}},updateRecipeMetadata:async(t,r,a,n={})=>{m("updateRecipeMetadata","cell",t),m("updateRecipeMetadata","recipe",r),m("updateRecipeMetadata","updateRecipeMetadataRequest",a);const o="/cells/{cell}/store/recipes/{recipe}/metadata".replace("{cell}",encodeURIComponent(String(t))).replace("{recipe}",encodeURIComponent(String(r))),s=new URL(o,P);let i;e&&(i=e.baseOptions);const l={method:"PUT",...i,...n},c={},d={};V(l,e),await R(c,e),c["Content-Type"]="application/json",_(s,d);let u=i&&i.headers?i.headers:{};return l.headers={...c,...u,...n.headers},l.data=se(a,l,e),{url:A(s),options:l}},uploadRecipeMetadataImage:async(t,r,a,n={})=>{m("uploadRecipeMetadataImage","cell",t),m("uploadRecipeMetadataImage","recipe",r),m("uploadRecipeMetadataImage","file",a);const o="/cells/{cell}/store/recipes/{recipe}/metadata/image".replace("{cell}",encodeURIComponent(String(t))).replace("{recipe}",encodeURIComponent(String(r))),s=new URL(o,P);let i;e&&(i=e.baseOptions);const l={method:"POST",...i,...n},c={},d={},u=new(e&&e.formDataCtor||FormData);V(l,e),await R(c,e),a!==void 0&&u.append("file",a),c["Content-Type"]="multipart/form-data",_(s,d);let p=i&&i.headers?i.headers:{};return l.headers={...c,...p,...n.headers},l.data=u,{url:A(s),options:l}}}},Qa=function(e){const t=Cv(e);return{async getRecipeMetadata(r,a,n){var l,c;const o=await t.getRecipeMetadata(r,a,n),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["LibraryRecipeMetadataApi.getRecipeMetadata"])==null?void 0:l[s])==null?void 0:c.url;return(d,u)=>T(o,O,w,e)(d,i||u)},async listRecipeMetadata(r,a){var i,l;const n=await t.listRecipeMetadata(r,a),o=(e==null?void 0:e.serverIndex)??0,s=(l=(i=C["LibraryRecipeMetadataApi.listRecipeMetadata"])==null?void 0:i[o])==null?void 0:l.url;return(c,d)=>T(n,O,w,e)(c,s||d)},async updateRecipeMetadata(r,a,n,o){var c,d;const s=await t.updateRecipeMetadata(r,a,n,o),i=(e==null?void 0:e.serverIndex)??0,l=(d=(c=C["LibraryRecipeMetadataApi.updateRecipeMetadata"])==null?void 0:c[i])==null?void 0:d.url;return(u,p)=>T(s,O,w,e)(u,l||p)},async uploadRecipeMetadataImage(r,a,n,o){var c,d;const s=await t.uploadRecipeMetadataImage(r,a,n,o),i=(e==null?void 0:e.serverIndex)??0,l=(d=(c=C["LibraryRecipeMetadataApi.uploadRecipeMetadataImage"])==null?void 0:c[i])==null?void 0:d.url;return(u,p)=>T(s,O,w,e)(u,l||p)}}};class Pv extends Pe{getRecipeMetadata(t,r,a){return Qa(this.configuration).getRecipeMetadata(t,r,a).then(n=>n(this.axios,this.basePath))}listRecipeMetadata(t,r){return Qa(this.configuration).listRecipeMetadata(t,r).then(a=>a(this.axios,this.basePath))}updateRecipeMetadata(t,r,a,n){return Qa(this.configuration).updateRecipeMetadata(t,r,a,n).then(o=>o(this.axios,this.basePath))}uploadRecipeMetadataImage(t,r,a,n){return Qa(this.configuration).uploadRecipeMetadataImage(t,r,a,n).then(o=>o(this.axios,this.basePath))}}const Vv=function(e){return{deleteAllMotions:async(t,r={})=>{m("deleteAllMotions","cell",t);const a="/cells/{cell}/motions".replace("{cell}",encodeURIComponent(String(t))),n=new URL(a,P);let o;e&&(o=e.baseOptions);const s={method:"DELETE",...o,...r},i={},l={};V(s,e),await R(i,e),_(n,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},{url:A(n),options:s}},deleteMotion:async(t,r,a={})=>{m("deleteMotion","cell",t),m("deleteMotion","motion",r);const n="/cells/{cell}/motions/{motion}/delete".replace("{cell}",encodeURIComponent(String(t))).replace("{motion}",encodeURIComponent(String(r))),o=new URL(n,P);let s;e&&(s=e.baseOptions);const i={method:"DELETE",...s,...a},l={},c={};V(i,e),await R(l,e),_(o,c);let d=s&&s.headers?s.headers:{};return i.headers={...l,...d,...a.headers},{url:A(o),options:i}},executeTrajectory:async(t,r,a={})=>{m("executeTrajectory","cell",t),m("executeTrajectory","executeTrajectoryRequest",r);const n="/cells/{cell}/motions/executetrajectory".replace("{cell}",encodeURIComponent(String(t))),o=new URL(n,P);let s;e&&(s=e.baseOptions);const i={method:"GET",...s,...a},l={},c={};V(i,e),await R(l,e),l["Content-Type"]="application/json",_(o,c);let d=s&&s.headers?s.headers:{};return i.headers={...l,...d,...a.headers},i.data=se(r,i,e),{url:A(o),options:i}},getMotionTrajectory:async(t,r,a,n,o={})=>{m("getMotionTrajectory","cell",t),m("getMotionTrajectory","motion",r),m("getMotionTrajectory","sampleTime",a);const s="/cells/{cell}/motions/{motion}/trajectory".replace("{cell}",encodeURIComponent(String(t))).replace("{motion}",encodeURIComponent(String(r))),i=new URL(s,P);let l;e&&(l=e.baseOptions);const c={method:"GET",...l,...o},d={},u={};V(c,e),await R(d,e),a!==void 0&&(u.sample_time=a),n!==void 0&&(u.responses_coordinate_system=n),_(i,u);let p=l&&l.headers?l.headers:{};return c.headers={...d,...p,...o.headers},{url:A(i),options:c}},getMotionTrajectorySample:async(t,r,a,n,o={})=>{m("getMotionTrajectorySample","cell",t),m("getMotionTrajectorySample","motion",r);const s="/cells/{cell}/motions/{motion}/trajectorysample".replace("{cell}",encodeURIComponent(String(t))).replace("{motion}",encodeURIComponent(String(r))),i=new URL(s,P);let l;e&&(l=e.baseOptions);const c={method:"GET",...l,...o},d={},u={};V(c,e),await R(d,e),a!==void 0&&(u.location_on_trajectory=a),n!==void 0&&(u.response_coordinate_system=n),_(i,u);let p=l&&l.headers?l.headers:{};return c.headers={...d,...p,...o.headers},{url:A(i),options:c}},getPlannedMotion:async(t,r,a,n={})=>{m("getPlannedMotion","cell",t),m("getPlannedMotion","motion",r);const o="/cells/{cell}/motions/{motion}/planned-motion".replace("{cell}",encodeURIComponent(String(t))).replace("{motion}",encodeURIComponent(String(r))),s=new URL(o,P);let i;e&&(i=e.baseOptions);const l={method:"GET",...i,...n},c={},d={};V(l,e),await R(c,e),a!==void 0&&(d.sample_time=a),_(s,d);let u=i&&i.headers?i.headers:{};return l.headers={...c,...u,...n.headers},{url:A(s),options:l}},getPlanningMotionGroupModels:async(t,r={})=>{m("getPlanningMotionGroupModels","cell",t);const a="/cells/{cell}/motion-planning/motion-group-models".replace("{cell}",encodeURIComponent(String(t))),n=new URL(a,P);let o;e&&(o=e.baseOptions);const s={method:"GET",...o,...r},i={},l={};V(s,e),await R(i,e),_(n,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},{url:A(n),options:s}},listMotions:async(t,r={})=>{m("listMotions","cell",t);const a="/cells/{cell}/motions".replace("{cell}",encodeURIComponent(String(t))),n=new URL(a,P);let o;e&&(o=e.baseOptions);const s={method:"GET",...o,...r},i={},l={};V(s,e),await R(i,e),_(n,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},{url:A(n),options:s}},loadPlannedMotion:async(t,r,a={})=>{m("loadPlannedMotion","cell",t),m("loadPlannedMotion","plannedMotion",r);const n="/cells/{cell}/planned-motions".replace("{cell}",encodeURIComponent(String(t))),o=new URL(n,P);let s;e&&(s=e.baseOptions);const i={method:"POST",...s,...a},l={},c={};V(i,e),await R(l,e),l["Content-Type"]="application/json",_(o,c);let d=s&&s.headers?s.headers:{};return i.headers={...l,...d,...a.headers},i.data=se(r,i,e),{url:A(o),options:i}},planCollisionFreePTP:async(t,r,a={})=>{m("planCollisionFreePTP","cell",t);const n="/cells/{cell}/motion-planning/plan-collision-free-ptp".replace("{cell}",encodeURIComponent(String(t))),o=new URL(n,P);let s;e&&(s=e.baseOptions);const i={method:"POST",...s,...a},l={},c={};V(i,e),await R(l,e),l["Content-Type"]="application/json",_(o,c);let d=s&&s.headers?s.headers:{};return i.headers={...l,...d,...a.headers},i.data=se(r,i,e),{url:A(o),options:i}},planMotion:async(t,r,a={})=>{m("planMotion","cell",t),m("planMotion","planRequest",r);const n="/cells/{cell}/motions".replace("{cell}",encodeURIComponent(String(t))),o=new URL(n,P);let s;e&&(s=e.baseOptions);const i={method:"POST",...s,...a},l={},c={};V(i,e),await R(l,e),l["Content-Type"]="application/json",_(o,c);let d=s&&s.headers?s.headers:{};return i.headers={...l,...d,...a.headers},i.data=se(r,i,e),{url:A(o),options:i}},planTrajectory:async(t,r,a={})=>{m("planTrajectory","cell",t);const n="/cells/{cell}/motion-planning/plan-trajectory".replace("{cell}",encodeURIComponent(String(t))),o=new URL(n,P);let s;e&&(s=e.baseOptions);const i={method:"POST",...s,...a},l={},c={};V(i,e),await R(l,e),l["Content-Type"]="application/json",_(o,c);let d=s&&s.headers?s.headers:{};return i.headers={...l,...d,...a.headers},i.data=se(r,i,e),{url:A(o),options:i}},stopExecution:async(t,r,a={})=>{m("stopExecution","cell",t),m("stopExecution","motion",r);const n="/cells/{cell}/motions/{motion}/stop".replace("{cell}",encodeURIComponent(String(t))).replace("{motion}",encodeURIComponent(String(r))),o=new URL(n,P);let s;e&&(s=e.baseOptions);const i={method:"PUT",...s,...a},l={},c={};V(i,e),await R(l,e),_(o,c);let d=s&&s.headers?s.headers:{};return i.headers={...l,...d,...a.headers},{url:A(o),options:i}},streamMove:async(t,r,a={})=>{m("streamMove","cell",t),m("streamMove","streamMoveRequest",r);const n="/cells/{cell}/motions/streammove".replace("{cell}",encodeURIComponent(String(t))),o=new URL(n,P);let s;e&&(s=e.baseOptions);const i={method:"GET",...s,...a},l={},c={};V(i,e),await R(l,e),l["Content-Type"]="application/json",_(o,c);let d=s&&s.headers?s.headers:{};return i.headers={...l,...d,...a.headers},i.data=se(r,i,e),{url:A(o),options:i}},streamMoveBackward:async(t,r,a,n,o,s,i={})=>{m("streamMoveBackward","cell",t),m("streamMoveBackward","motion",r),m("streamMoveBackward","playbackSpeedInPercent",a);const l="/cells/{cell}/motions/{motion}/executebackward".replace("{cell}",encodeURIComponent(String(t))).replace("{motion}",encodeURIComponent(String(r))),c=new URL(l,P);let d;e&&(d=e.baseOptions);const u={method:"GET",...d,...i},p={},f={};V(u,e),await R(p,e),a!==void 0&&(f.playback_speed_in_percent=a),n!==void 0&&(f.response_rate=n),o!==void 0&&(f.response_coordinate_system=o),s!==void 0&&(f.start_location_on_trajectory=s),_(c,f);let y=d&&d.headers?d.headers:{};return u.headers={...p,...y,...i.headers},{url:A(c),options:u}},streamMoveForward:async(t,r,a,n,o,s,i={})=>{m("streamMoveForward","cell",t),m("streamMoveForward","motion",r),m("streamMoveForward","playbackSpeedInPercent",a);const l="/cells/{cell}/motions/{motion}/executeforward".replace("{cell}",encodeURIComponent(String(t))).replace("{motion}",encodeURIComponent(String(r))),c=new URL(l,P);let d;e&&(d=e.baseOptions);const u={method:"GET",...d,...i},p={},f={};V(u,e),await R(p,e),a!==void 0&&(f.playback_speed_in_percent=a),n!==void 0&&(f.response_rate=n),o!==void 0&&(f.response_coordinate_system=o),s!==void 0&&(f.start_location_on_trajectory=s),_(c,f);let y=d&&d.headers?d.headers:{};return u.headers={...p,...y,...i.headers},{url:A(c),options:u}},streamMoveToTrajectoryViaJointPTP:async(t,r,a,n,o,s,i,l,c,d,u={})=>{m("streamMoveToTrajectoryViaJointPTP","cell",t),m("streamMoveToTrajectoryViaJointPTP","motion",r),m("streamMoveToTrajectoryViaJointPTP","locationOnTrajectory",a);const p="/cells/{cell}/motions/{motion}/executetotrajectory".replace("{cell}",encodeURIComponent(String(t))).replace("{motion}",encodeURIComponent(String(r))),f=new URL(p,P);let y;e&&(y=e.baseOptions);const h={method:"GET",...y,...u},x={},I={};V(h,e),await R(x,e),a!==void 0&&(I.location_on_trajectory=a),n&&(I["limit_override.joint_velocity_limits.joints"]=n),o&&(I["limit_override.joint_acceleration_limits.joints"]=o),s!==void 0&&(I["limit_override.tcp_velocity_limit"]=s),i!==void 0&&(I["limit_override.tcp_acceleration_limit"]=i),l!==void 0&&(I["limit_override.tcp_orientation_velocity_limit"]=l),c!==void 0&&(I["limit_override.tcp_orientation_acceleration_limit"]=c),d!==void 0&&(I.responses_coordinate_system=d),_(f,I);let k=y&&y.headers?y.headers:{};return h.headers={...x,...k,...u.headers},{url:A(f),options:h}}}},ze=function(e){const t=Vv(e);return{async deleteAllMotions(r,a){var i,l;const n=await t.deleteAllMotions(r,a),o=(e==null?void 0:e.serverIndex)??0,s=(l=(i=C["MotionApi.deleteAllMotions"])==null?void 0:i[o])==null?void 0:l.url;return(c,d)=>T(n,O,w,e)(c,s||d)},async deleteMotion(r,a,n){var l,c;const o=await t.deleteMotion(r,a,n),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["MotionApi.deleteMotion"])==null?void 0:l[s])==null?void 0:c.url;return(d,u)=>T(o,O,w,e)(d,i||u)},async executeTrajectory(r,a,n){var l,c;const o=await t.executeTrajectory(r,a,n),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["MotionApi.executeTrajectory"])==null?void 0:l[s])==null?void 0:c.url;return(d,u)=>T(o,O,w,e)(d,i||u)},async getMotionTrajectory(r,a,n,o,s){var d,u;const i=await t.getMotionTrajectory(r,a,n,o,s),l=(e==null?void 0:e.serverIndex)??0,c=(u=(d=C["MotionApi.getMotionTrajectory"])==null?void 0:d[l])==null?void 0:u.url;return(p,f)=>T(i,O,w,e)(p,c||f)},async getMotionTrajectorySample(r,a,n,o,s){var d,u;const i=await t.getMotionTrajectorySample(r,a,n,o,s),l=(e==null?void 0:e.serverIndex)??0,c=(u=(d=C["MotionApi.getMotionTrajectorySample"])==null?void 0:d[l])==null?void 0:u.url;return(p,f)=>T(i,O,w,e)(p,c||f)},async getPlannedMotion(r,a,n,o){var c,d;const s=await t.getPlannedMotion(r,a,n,o),i=(e==null?void 0:e.serverIndex)??0,l=(d=(c=C["MotionApi.getPlannedMotion"])==null?void 0:c[i])==null?void 0:d.url;return(u,p)=>T(s,O,w,e)(u,l||p)},async getPlanningMotionGroupModels(r,a){var i,l;const n=await t.getPlanningMotionGroupModels(r,a),o=(e==null?void 0:e.serverIndex)??0,s=(l=(i=C["MotionApi.getPlanningMotionGroupModels"])==null?void 0:i[o])==null?void 0:l.url;return(c,d)=>T(n,O,w,e)(c,s||d)},async listMotions(r,a){var i,l;const n=await t.listMotions(r,a),o=(e==null?void 0:e.serverIndex)??0,s=(l=(i=C["MotionApi.listMotions"])==null?void 0:i[o])==null?void 0:l.url;return(c,d)=>T(n,O,w,e)(c,s||d)},async loadPlannedMotion(r,a,n){var l,c;const o=await t.loadPlannedMotion(r,a,n),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["MotionApi.loadPlannedMotion"])==null?void 0:l[s])==null?void 0:c.url;return(d,u)=>T(o,O,w,e)(d,i||u)},async planCollisionFreePTP(r,a,n){var l,c;const o=await t.planCollisionFreePTP(r,a,n),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["MotionApi.planCollisionFreePTP"])==null?void 0:l[s])==null?void 0:c.url;return(d,u)=>T(o,O,w,e)(d,i||u)},async planMotion(r,a,n){var l,c;const o=await t.planMotion(r,a,n),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["MotionApi.planMotion"])==null?void 0:l[s])==null?void 0:c.url;return(d,u)=>T(o,O,w,e)(d,i||u)},async planTrajectory(r,a,n){var l,c;const o=await t.planTrajectory(r,a,n),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["MotionApi.planTrajectory"])==null?void 0:l[s])==null?void 0:c.url;return(d,u)=>T(o,O,w,e)(d,i||u)},async stopExecution(r,a,n){var l,c;const o=await t.stopExecution(r,a,n),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["MotionApi.stopExecution"])==null?void 0:l[s])==null?void 0:c.url;return(d,u)=>T(o,O,w,e)(d,i||u)},async streamMove(r,a,n){var l,c;const o=await t.streamMove(r,a,n),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["MotionApi.streamMove"])==null?void 0:l[s])==null?void 0:c.url;return(d,u)=>T(o,O,w,e)(d,i||u)},async streamMoveBackward(r,a,n,o,s,i,l){var p,f;const c=await t.streamMoveBackward(r,a,n,o,s,i,l),d=(e==null?void 0:e.serverIndex)??0,u=(f=(p=C["MotionApi.streamMoveBackward"])==null?void 0:p[d])==null?void 0:f.url;return(y,h)=>T(c,O,w,e)(y,u||h)},async streamMoveForward(r,a,n,o,s,i,l){var p,f;const c=await t.streamMoveForward(r,a,n,o,s,i,l),d=(e==null?void 0:e.serverIndex)??0,u=(f=(p=C["MotionApi.streamMoveForward"])==null?void 0:p[d])==null?void 0:f.url;return(y,h)=>T(c,O,w,e)(y,u||h)},async streamMoveToTrajectoryViaJointPTP(r,a,n,o,s,i,l,c,d,u,p){var x,I;const f=await t.streamMoveToTrajectoryViaJointPTP(r,a,n,o,s,i,l,c,d,u,p),y=(e==null?void 0:e.serverIndex)??0,h=(I=(x=C["MotionApi.streamMoveToTrajectoryViaJointPTP"])==null?void 0:x[y])==null?void 0:I.url;return(k,F)=>T(f,O,w,e)(k,h||F)}}};class Rv extends Pe{deleteAllMotions(t,r){return ze(this.configuration).deleteAllMotions(t,r).then(a=>a(this.axios,this.basePath))}deleteMotion(t,r,a){return ze(this.configuration).deleteMotion(t,r,a).then(n=>n(this.axios,this.basePath))}executeTrajectory(t,r,a){return ze(this.configuration).executeTrajectory(t,r,a).then(n=>n(this.axios,this.basePath))}getMotionTrajectory(t,r,a,n,o){return ze(this.configuration).getMotionTrajectory(t,r,a,n,o).then(s=>s(this.axios,this.basePath))}getMotionTrajectorySample(t,r,a,n,o){return ze(this.configuration).getMotionTrajectorySample(t,r,a,n,o).then(s=>s(this.axios,this.basePath))}getPlannedMotion(t,r,a,n){return ze(this.configuration).getPlannedMotion(t,r,a,n).then(o=>o(this.axios,this.basePath))}getPlanningMotionGroupModels(t,r){return ze(this.configuration).getPlanningMotionGroupModels(t,r).then(a=>a(this.axios,this.basePath))}listMotions(t,r){return ze(this.configuration).listMotions(t,r).then(a=>a(this.axios,this.basePath))}loadPlannedMotion(t,r,a){return ze(this.configuration).loadPlannedMotion(t,r,a).then(n=>n(this.axios,this.basePath))}planCollisionFreePTP(t,r,a){return ze(this.configuration).planCollisionFreePTP(t,r,a).then(n=>n(this.axios,this.basePath))}planMotion(t,r,a){return ze(this.configuration).planMotion(t,r,a).then(n=>n(this.axios,this.basePath))}planTrajectory(t,r,a){return ze(this.configuration).planTrajectory(t,r,a).then(n=>n(this.axios,this.basePath))}stopExecution(t,r,a){return ze(this.configuration).stopExecution(t,r,a).then(n=>n(this.axios,this.basePath))}streamMove(t,r,a){return ze(this.configuration).streamMove(t,r,a).then(n=>n(this.axios,this.basePath))}streamMoveBackward(t,r,a,n,o,s,i){return ze(this.configuration).streamMoveBackward(t,r,a,n,o,s,i).then(l=>l(this.axios,this.basePath))}streamMoveForward(t,r,a,n,o,s,i){return ze(this.configuration).streamMoveForward(t,r,a,n,o,s,i).then(l=>l(this.axios,this.basePath))}streamMoveToTrajectoryViaJointPTP(t,r,a,n,o,s,i,l,c,d,u){return ze(this.configuration).streamMoveToTrajectoryViaJointPTP(t,r,a,n,o,s,i,l,c,d,u).then(p=>p(this.axios,this.basePath))}}const _v=function(e){return{activateAllMotionGroups:async(t,r,a={})=>{m("activateAllMotionGroups","cell",t),m("activateAllMotionGroups","controller",r);const n="/cells/{cell}/motion-groups/all".replace("{cell}",encodeURIComponent(String(t))),o=new URL(n,P);let s;e&&(s=e.baseOptions);const i={method:"POST",...s,...a},l={},c={};V(i,e),await R(l,e),r!==void 0&&(c.controller=r),_(o,c);let d=s&&s.headers?s.headers:{};return i.headers={...l,...d,...a.headers},{url:A(o),options:i}},activateMotionGroup:async(t,r,a={})=>{m("activateMotionGroup","cell",t),m("activateMotionGroup","motionGroup",r);const n="/cells/{cell}/motion-groups".replace("{cell}",encodeURIComponent(String(t))),o=new URL(n,P);let s;e&&(s=e.baseOptions);const i={method:"POST",...s,...a},l={},c={};V(i,e),await R(l,e),r!==void 0&&(c.motion_group=r),_(o,c);let d=s&&s.headers?s.headers:{};return i.headers={...l,...d,...a.headers},{url:A(o),options:i}},deactivateMotionGroup:async(t,r,a={})=>{m("deactivateMotionGroup","cell",t),m("deactivateMotionGroup","motionGroup",r);const n="/cells/{cell}/motion-groups/{motion-group}".replace("{cell}",encodeURIComponent(String(t))).replace("{motion-group}",encodeURIComponent(String(r))),o=new URL(n,P);let s;e&&(s=e.baseOptions);const i={method:"DELETE",...s,...a},l={},c={};V(i,e),await R(l,e),_(o,c);let d=s&&s.headers?s.headers:{};return i.headers={...l,...d,...a.headers},{url:A(o),options:i}},listMotionGroups:async(t,r={})=>{m("listMotionGroups","cell",t);const a="/cells/{cell}/motion-groups".replace("{cell}",encodeURIComponent(String(t))),n=new URL(a,P);let o;e&&(o=e.baseOptions);const s={method:"GET",...o,...r},i={},l={};V(s,e),await R(i,e),_(n,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},{url:A(n),options:s}}}},Ya=function(e){const t=_v(e);return{async activateAllMotionGroups(r,a,n){var l,c;const o=await t.activateAllMotionGroups(r,a,n),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["MotionGroupApi.activateAllMotionGroups"])==null?void 0:l[s])==null?void 0:c.url;return(d,u)=>T(o,O,w,e)(d,i||u)},async activateMotionGroup(r,a,n){var l,c;const o=await t.activateMotionGroup(r,a,n),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["MotionGroupApi.activateMotionGroup"])==null?void 0:l[s])==null?void 0:c.url;return(d,u)=>T(o,O,w,e)(d,i||u)},async deactivateMotionGroup(r,a,n){var l,c;const o=await t.deactivateMotionGroup(r,a,n),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["MotionGroupApi.deactivateMotionGroup"])==null?void 0:l[s])==null?void 0:c.url;return(d,u)=>T(o,O,w,e)(d,i||u)},async listMotionGroups(r,a){var i,l;const n=await t.listMotionGroups(r,a),o=(e==null?void 0:e.serverIndex)??0,s=(l=(i=C["MotionGroupApi.listMotionGroups"])==null?void 0:i[o])==null?void 0:l.url;return(c,d)=>T(n,O,w,e)(c,s||d)}}};class Av extends Pe{activateAllMotionGroups(t,r,a){return Ya(this.configuration).activateAllMotionGroups(t,r,a).then(n=>n(this.axios,this.basePath))}activateMotionGroup(t,r,a){return Ya(this.configuration).activateMotionGroup(t,r,a).then(n=>n(this.axios,this.basePath))}deactivateMotionGroup(t,r,a){return Ya(this.configuration).deactivateMotionGroup(t,r,a).then(n=>n(this.axios,this.basePath))}listMotionGroups(t,r){return Ya(this.configuration).listMotionGroups(t,r).then(a=>a(this.axios,this.basePath))}}const Tv=function(e){return{getActivePayload:async(t,r,a={})=>{m("getActivePayload","cell",t),m("getActivePayload","motionGroup",r);const n="/cells/{cell}/motion-groups/{motion-group}/payloads/current".replace("{cell}",encodeURIComponent(String(t))).replace("{motion-group}",encodeURIComponent(String(r))),o=new URL(n,P);let s;e&&(s=e.baseOptions);const i={method:"GET",...s,...a},l={},c={};V(i,e),await R(l,e),_(o,c);let d=s&&s.headers?s.headers:{};return i.headers={...l,...d,...a.headers},{url:A(o),options:i}},getActiveTcp:async(t,r,a,n={})=>{m("getActiveTcp","cell",t),m("getActiveTcp","motionGroup",r);const o="/cells/{cell}/motion-groups/{motion-group}/tcps/current".replace("{cell}",encodeURIComponent(String(t))).replace("{motion-group}",encodeURIComponent(String(r))),s=new URL(o,P);let i;e&&(i=e.baseOptions);const l={method:"GET",...i,...n},c={},d={};V(l,e),await R(c,e),a!==void 0&&(d.rotation_type=a),_(s,d);let u=i&&i.headers?i.headers:{};return l.headers={...c,...u,...n.headers},{url:A(s),options:l}},getCurrentMotionGroupState:async(t,r,a,n,o={})=>{m("getCurrentMotionGroupState","cell",t),m("getCurrentMotionGroupState","motionGroup",r);const s="/cells/{cell}/motion-groups/{motion-group}/state".replace("{cell}",encodeURIComponent(String(t))).replace("{motion-group}",encodeURIComponent(String(r))),i=new URL(s,P);let l;e&&(l=e.baseOptions);const c={method:"GET",...l,...o},d={},u={};V(c,e),await R(d,e),a!==void 0&&(u.tcp=a),n!==void 0&&(u.response_coordinate_system=n),_(i,u);let p=l&&l.headers?l.headers:{};return c.headers={...d,...p,...o.headers},{url:A(i),options:c}},getInfoCapabilities:async(t,r,a={})=>{m("getInfoCapabilities","cell",t),m("getInfoCapabilities","motionGroup",r);const n="/cells/{cell}/motion-groups/{motion-group}/info-capabilities".replace("{cell}",encodeURIComponent(String(t))).replace("{motion-group}",encodeURIComponent(String(r))),o=new URL(n,P);let s;e&&(s=e.baseOptions);const i={method:"GET",...s,...a},l={},c={};V(i,e),await R(l,e),_(o,c);let d=s&&s.headers?s.headers:{};return i.headers={...l,...d,...a.headers},{url:A(o),options:i}},getMotionGroupSpecification:async(t,r,a={})=>{m("getMotionGroupSpecification","cell",t),m("getMotionGroupSpecification","motionGroup",r);const n="/cells/{cell}/motion-groups/{motion-group}/specification".replace("{cell}",encodeURIComponent(String(t))).replace("{motion-group}",encodeURIComponent(String(r))),o=new URL(n,P);let s;e&&(s=e.baseOptions);const i={method:"GET",...s,...a},l={},c={};V(i,e),await R(l,e),_(o,c);let d=s&&s.headers?s.headers:{};return i.headers={...l,...d,...a.headers},{url:A(o),options:i}},getMounting:async(t,r,a={})=>{m("getMounting","cell",t),m("getMounting","motionGroup",r);const n="/cells/{cell}/motion-groups/{motion-group}/mounting".replace("{cell}",encodeURIComponent(String(t))).replace("{motion-group}",encodeURIComponent(String(r))),o=new URL(n,P);let s;e&&(s=e.baseOptions);const i={method:"GET",...s,...a},l={},c={};V(i,e),await R(l,e),_(o,c);let d=s&&s.headers?s.headers:{};return i.headers={...l,...d,...a.headers},{url:A(o),options:i}},getOptimizerConfiguration:async(t,r,a,n={})=>{m("getOptimizerConfiguration","cell",t),m("getOptimizerConfiguration","motionGroup",r);const o="/cells/{cell}/motion-groups/{motion-group}/optimizer-setup".replace("{cell}",encodeURIComponent(String(t))).replace("{motion-group}",encodeURIComponent(String(r))),s=new URL(o,P);let i;e&&(i=e.baseOptions);const l={method:"GET",...i,...n},c={},d={};V(l,e),await R(c,e),a!==void 0&&(d.tcp=a),_(s,d);let u=i&&i.headers?i.headers:{};return l.headers={...c,...u,...n.headers},{url:A(s),options:l}},getSafetySetup:async(t,r,a={})=>{m("getSafetySetup","cell",t),m("getSafetySetup","motionGroup",r);const n="/cells/{cell}/motion-groups/{motion-group}/safety-setup".replace("{cell}",encodeURIComponent(String(t))).replace("{motion-group}",encodeURIComponent(String(r))),o=new URL(n,P);let s;e&&(s=e.baseOptions);const i={method:"GET",...s,...a},l={},c={};V(i,e),await R(l,e),_(o,c);let d=s&&s.headers?s.headers:{};return i.headers={...l,...d,...a.headers},{url:A(o),options:i}},listPayloads:async(t,r,a={})=>{m("listPayloads","cell",t),m("listPayloads","motionGroup",r);const n="/cells/{cell}/motion-groups/{motion-group}/payloads".replace("{cell}",encodeURIComponent(String(t))).replace("{motion-group}",encodeURIComponent(String(r))),o=new URL(n,P);let s;e&&(s=e.baseOptions);const i={method:"GET",...s,...a},l={},c={};V(i,e),await R(l,e),_(o,c);let d=s&&s.headers?s.headers:{};return i.headers={...l,...d,...a.headers},{url:A(o),options:i}},listTcps:async(t,r,a,n={})=>{m("listTcps","cell",t),m("listTcps","motionGroup",r);const o="/cells/{cell}/motion-groups/{motion-group}/tcps".replace("{cell}",encodeURIComponent(String(t))).replace("{motion-group}",encodeURIComponent(String(r))),s=new URL(o,P);let i;e&&(i=e.baseOptions);const l={method:"GET",...i,...n},c={},d={};V(l,e),await R(c,e),a!==void 0&&(d.rotation_type=a),_(s,d);let u=i&&i.headers?i.headers:{};return l.headers={...c,...u,...n.headers},{url:A(s),options:l}},streamMotionGroupState:async(t,r,a,n,o,s={})=>{m("streamMotionGroupState","cell",t),m("streamMotionGroupState","motionGroup",r);const i="/cells/{cell}/motion-groups/{motion-group}/state-stream".replace("{cell}",encodeURIComponent(String(t))).replace("{motion-group}",encodeURIComponent(String(r))),l=new URL(i,P);let c;e&&(c=e.baseOptions);const d={method:"GET",...c,...s},u={},p={};V(d,e),await R(u,e),a!==void 0&&(p.response_rate=a),n!==void 0&&(p.response_coordinate_system=n),o!==void 0&&(p.tcp=o),_(l,p);let f=c&&c.headers?c.headers:{};return d.headers={...u,...f,...s.headers},{url:A(l),options:d}}}},pt=function(e){const t=Tv(e);return{async getActivePayload(r,a,n){var l,c;const o=await t.getActivePayload(r,a,n),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["MotionGroupInfosApi.getActivePayload"])==null?void 0:l[s])==null?void 0:c.url;return(d,u)=>T(o,O,w,e)(d,i||u)},async getActiveTcp(r,a,n,o){var c,d;const s=await t.getActiveTcp(r,a,n,o),i=(e==null?void 0:e.serverIndex)??0,l=(d=(c=C["MotionGroupInfosApi.getActiveTcp"])==null?void 0:c[i])==null?void 0:d.url;return(u,p)=>T(s,O,w,e)(u,l||p)},async getCurrentMotionGroupState(r,a,n,o,s){var d,u;const i=await t.getCurrentMotionGroupState(r,a,n,o,s),l=(e==null?void 0:e.serverIndex)??0,c=(u=(d=C["MotionGroupInfosApi.getCurrentMotionGroupState"])==null?void 0:d[l])==null?void 0:u.url;return(p,f)=>T(i,O,w,e)(p,c||f)},async getInfoCapabilities(r,a,n){var l,c;const o=await t.getInfoCapabilities(r,a,n),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["MotionGroupInfosApi.getInfoCapabilities"])==null?void 0:l[s])==null?void 0:c.url;return(d,u)=>T(o,O,w,e)(d,i||u)},async getMotionGroupSpecification(r,a,n){var l,c;const o=await t.getMotionGroupSpecification(r,a,n),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["MotionGroupInfosApi.getMotionGroupSpecification"])==null?void 0:l[s])==null?void 0:c.url;return(d,u)=>T(o,O,w,e)(d,i||u)},async getMounting(r,a,n){var l,c;const o=await t.getMounting(r,a,n),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["MotionGroupInfosApi.getMounting"])==null?void 0:l[s])==null?void 0:c.url;return(d,u)=>T(o,O,w,e)(d,i||u)},async getOptimizerConfiguration(r,a,n,o){var c,d;const s=await t.getOptimizerConfiguration(r,a,n,o),i=(e==null?void 0:e.serverIndex)??0,l=(d=(c=C["MotionGroupInfosApi.getOptimizerConfiguration"])==null?void 0:c[i])==null?void 0:d.url;return(u,p)=>T(s,O,w,e)(u,l||p)},async getSafetySetup(r,a,n){var l,c;const o=await t.getSafetySetup(r,a,n),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["MotionGroupInfosApi.getSafetySetup"])==null?void 0:l[s])==null?void 0:c.url;return(d,u)=>T(o,O,w,e)(d,i||u)},async listPayloads(r,a,n){var l,c;const o=await t.listPayloads(r,a,n),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["MotionGroupInfosApi.listPayloads"])==null?void 0:l[s])==null?void 0:c.url;return(d,u)=>T(o,O,w,e)(d,i||u)},async listTcps(r,a,n,o){var c,d;const s=await t.listTcps(r,a,n,o),i=(e==null?void 0:e.serverIndex)??0,l=(d=(c=C["MotionGroupInfosApi.listTcps"])==null?void 0:c[i])==null?void 0:d.url;return(u,p)=>T(s,O,w,e)(u,l||p)},async streamMotionGroupState(r,a,n,o,s,i){var u,p;const l=await t.streamMotionGroupState(r,a,n,o,s,i),c=(e==null?void 0:e.serverIndex)??0,d=(p=(u=C["MotionGroupInfosApi.streamMotionGroupState"])==null?void 0:u[c])==null?void 0:p.url;return(f,y)=>T(l,O,w,e)(f,d||y)}}};class Ev extends Pe{getActivePayload(t,r,a){return pt(this.configuration).getActivePayload(t,r,a).then(n=>n(this.axios,this.basePath))}getActiveTcp(t,r,a,n){return pt(this.configuration).getActiveTcp(t,r,a,n).then(o=>o(this.axios,this.basePath))}getCurrentMotionGroupState(t,r,a,n,o){return pt(this.configuration).getCurrentMotionGroupState(t,r,a,n,o).then(s=>s(this.axios,this.basePath))}getInfoCapabilities(t,r,a){return pt(this.configuration).getInfoCapabilities(t,r,a).then(n=>n(this.axios,this.basePath))}getMotionGroupSpecification(t,r,a){return pt(this.configuration).getMotionGroupSpecification(t,r,a).then(n=>n(this.axios,this.basePath))}getMounting(t,r,a){return pt(this.configuration).getMounting(t,r,a).then(n=>n(this.axios,this.basePath))}getOptimizerConfiguration(t,r,a,n){return pt(this.configuration).getOptimizerConfiguration(t,r,a,n).then(o=>o(this.axios,this.basePath))}getSafetySetup(t,r,a){return pt(this.configuration).getSafetySetup(t,r,a).then(n=>n(this.axios,this.basePath))}listPayloads(t,r,a){return pt(this.configuration).listPayloads(t,r,a).then(n=>n(this.axios,this.basePath))}listTcps(t,r,a,n){return pt(this.configuration).listTcps(t,r,a,n).then(o=>o(this.axios,this.basePath))}streamMotionGroupState(t,r,a,n,o,s){return pt(this.configuration).streamMotionGroupState(t,r,a,n,o,s).then(i=>i(this.axios,this.basePath))}}const Iv=function(e){return{directionJogging:async(t,r,a={})=>{m("directionJogging","cell",t),m("directionJogging","directionJoggingRequest",r);const n="/cells/{cell}/motion-groups/move-tcp".replace("{cell}",encodeURIComponent(String(t))),o=new URL(n,P);let s;e&&(s=e.baseOptions);const i={method:"GET",...s,...a},l={},c={};V(i,e),await R(l,e),l["Content-Type"]="application/json",_(o,c);let d=s&&s.headers?s.headers:{};return i.headers={...l,...d,...a.headers},i.data=se(r,i,e),{url:A(o),options:i}},getJoggingCapabilities:async(t,r,a={})=>{m("getJoggingCapabilities","cell",t),m("getJoggingCapabilities","motionGroup",r);const n="/cells/{cell}/motion-groups/{motion-group}/jogging-capabilities".replace("{cell}",encodeURIComponent(String(t))).replace("{motion-group}",encodeURIComponent(String(r))),o=new URL(n,P);let s;e&&(s=e.baseOptions);const i={method:"GET",...s,...a},l={},c={};V(i,e),await R(l,e),_(o,c);let d=s&&s.headers?s.headers:{};return i.headers={...l,...d,...a.headers},{url:A(o),options:i}},jointJogging:async(t,r,a={})=>{m("jointJogging","cell",t),m("jointJogging","jointJoggingRequest",r);const n="/cells/{cell}/motion-groups/move-joint".replace("{cell}",encodeURIComponent(String(t))),o=new URL(n,P);let s;e&&(s=e.baseOptions);const i={method:"GET",...s,...a},l={},c={};V(i,e),await R(l,e),l["Content-Type"]="application/json",_(o,c);let d=s&&s.headers?s.headers:{};return i.headers={...l,...d,...a.headers},i.data=se(r,i,e),{url:A(o),options:i}},stopJogging:async(t,r,a={})=>{m("stopJogging","cell",t),m("stopJogging","motionGroup",r);const n="/cells/{cell}/motion-groups/{motion-group}/stop".replace("{cell}",encodeURIComponent(String(t))).replace("{motion-group}",encodeURIComponent(String(r))),o=new URL(n,P);let s;e&&(s=e.baseOptions);const i={method:"PUT",...s,...a},l={},c={};V(i,e),await R(l,e),_(o,c);let d=s&&s.headers?s.headers:{};return i.headers={...l,...d,...a.headers},{url:A(o),options:i}}}},Xa=function(e){const t=Iv(e);return{async directionJogging(r,a,n){var l,c;const o=await t.directionJogging(r,a,n),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["MotionGroupJoggingApi.directionJogging"])==null?void 0:l[s])==null?void 0:c.url;return(d,u)=>T(o,O,w,e)(d,i||u)},async getJoggingCapabilities(r,a,n){var l,c;const o=await t.getJoggingCapabilities(r,a,n),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["MotionGroupJoggingApi.getJoggingCapabilities"])==null?void 0:l[s])==null?void 0:c.url;return(d,u)=>T(o,O,w,e)(d,i||u)},async jointJogging(r,a,n){var l,c;const o=await t.jointJogging(r,a,n),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["MotionGroupJoggingApi.jointJogging"])==null?void 0:l[s])==null?void 0:c.url;return(d,u)=>T(o,O,w,e)(d,i||u)},async stopJogging(r,a,n){var l,c;const o=await t.stopJogging(r,a,n),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["MotionGroupJoggingApi.stopJogging"])==null?void 0:l[s])==null?void 0:c.url;return(d,u)=>T(o,O,w,e)(d,i||u)}}};class Mv extends Pe{directionJogging(t,r,a){return Xa(this.configuration).directionJogging(t,r,a).then(n=>n(this.axios,this.basePath))}getJoggingCapabilities(t,r,a){return Xa(this.configuration).getJoggingCapabilities(t,r,a).then(n=>n(this.axios,this.basePath))}jointJogging(t,r,a){return Xa(this.configuration).jointJogging(t,r,a).then(n=>n(this.axios,this.basePath))}stopJogging(t,r,a){return Xa(this.configuration).stopJogging(t,r,a).then(n=>n(this.axios,this.basePath))}}const jv=function(e){return{calculateAllInverseKinematic:async(t,r,a,n={})=>{m("calculateAllInverseKinematic","cell",t),m("calculateAllInverseKinematic","motionGroup",r),m("calculateAllInverseKinematic","allJointPositionsRequest",a);const o="/cells/{cell}/motion-groups/{motion-group}/kinematic/calculate-all-joint-positions".replace("{cell}",encodeURIComponent(String(t))).replace("{motion-group}",encodeURIComponent(String(r))),s=new URL(o,P);let i;e&&(i=e.baseOptions);const l={method:"POST",...i,...n},c={},d={};V(l,e),await R(c,e),c["Content-Type"]="application/json",_(s,d);let u=i&&i.headers?i.headers:{};return l.headers={...c,...u,...n.headers},l.data=se(a,l,e),{url:A(s),options:l}},calculateForwardKinematic:async(t,r,a,n={})=>{m("calculateForwardKinematic","cell",t),m("calculateForwardKinematic","motionGroup",r),m("calculateForwardKinematic","tcpPoseRequest",a);const o="/cells/{cell}/motion-groups/{motion-group}/kinematic/calculate-tcp-pose".replace("{cell}",encodeURIComponent(String(t))).replace("{motion-group}",encodeURIComponent(String(r))),s=new URL(o,P);let i;e&&(i=e.baseOptions);const l={method:"POST",...i,...n},c={},d={};V(l,e),await R(c,e),c["Content-Type"]="application/json",_(s,d);let u=i&&i.headers?i.headers:{};return l.headers={...c,...u,...n.headers},l.data=se(a,l,e),{url:A(s),options:l}},calculateInverseKinematic:async(t,r,a,n={})=>{m("calculateInverseKinematic","cell",t),m("calculateInverseKinematic","motionGroup",r),m("calculateInverseKinematic","jointPositionRequest",a);const o="/cells/{cell}/motion-groups/{motion-group}/kinematic/calculate-joint-position".replace("{cell}",encodeURIComponent(String(t))).replace("{motion-group}",encodeURIComponent(String(r))),s=new URL(o,P);let i;e&&(i=e.baseOptions);const l={method:"POST",...i,...n},c={},d={};V(l,e),await R(c,e),c["Content-Type"]="application/json",_(s,d);let u=i&&i.headers?i.headers:{};return l.headers={...c,...u,...n.headers},l.data=se(a,l,e),{url:A(s),options:l}},getKinematicCapabilities:async(t,r,a={})=>{m("getKinematicCapabilities","cell",t),m("getKinematicCapabilities","motionGroup",r);const n="/cells/{cell}/motion-groups/{motion-group}/kinematic-capabilities".replace("{cell}",encodeURIComponent(String(t))).replace("{motion-group}",encodeURIComponent(String(r))),o=new URL(n,P);let s;e&&(s=e.baseOptions);const i={method:"GET",...s,...a},l={},c={};V(i,e),await R(l,e),_(o,c);let d=s&&s.headers?s.headers:{};return i.headers={...l,...d,...a.headers},{url:A(o),options:i}}}},Za=function(e){const t=jv(e);return{async calculateAllInverseKinematic(r,a,n,o){var c,d;const s=await t.calculateAllInverseKinematic(r,a,n,o),i=(e==null?void 0:e.serverIndex)??0,l=(d=(c=C["MotionGroupKinematicApi.calculateAllInverseKinematic"])==null?void 0:c[i])==null?void 0:d.url;return(u,p)=>T(s,O,w,e)(u,l||p)},async calculateForwardKinematic(r,a,n,o){var c,d;const s=await t.calculateForwardKinematic(r,a,n,o),i=(e==null?void 0:e.serverIndex)??0,l=(d=(c=C["MotionGroupKinematicApi.calculateForwardKinematic"])==null?void 0:c[i])==null?void 0:d.url;return(u,p)=>T(s,O,w,e)(u,l||p)},async calculateInverseKinematic(r,a,n,o){var c,d;const s=await t.calculateInverseKinematic(r,a,n,o),i=(e==null?void 0:e.serverIndex)??0,l=(d=(c=C["MotionGroupKinematicApi.calculateInverseKinematic"])==null?void 0:c[i])==null?void 0:d.url;return(u,p)=>T(s,O,w,e)(u,l||p)},async getKinematicCapabilities(r,a,n){var l,c;const o=await t.getKinematicCapabilities(r,a,n),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["MotionGroupKinematicApi.getKinematicCapabilities"])==null?void 0:l[s])==null?void 0:c.url;return(d,u)=>T(o,O,w,e)(d,i||u)}}};class $v extends Pe{calculateAllInverseKinematic(t,r,a,n){return Za(this.configuration).calculateAllInverseKinematic(t,r,a,n).then(o=>o(this.axios,this.basePath))}calculateForwardKinematic(t,r,a,n){return Za(this.configuration).calculateForwardKinematic(t,r,a,n).then(o=>o(this.axios,this.basePath))}calculateInverseKinematic(t,r,a,n){return Za(this.configuration).calculateInverseKinematic(t,r,a,n).then(o=>o(this.axios,this.basePath))}getKinematicCapabilities(t,r,a){return Za(this.configuration).getKinematicCapabilities(t,r,a).then(n=>n(this.axios,this.basePath))}}const Uv=function(e){return{createProgramRunner:async(t,r,a={})=>{m("createProgramRunner","cell",t),m("createProgramRunner","request",r);const n="/cells/{cell}/programs/runners".replace("{cell}",encodeURIComponent(String(t))),o=new URL(n,P);let s;e&&(s=e.baseOptions);const i={method:"POST",...s,...a},l={},c={};V(i,e),await R(l,e),l["Content-Type"]="text/plain",_(o,c);let d=s&&s.headers?s.headers:{};return i.headers={...l,...d,...a.headers},i.data=se(r,i,e),{url:A(o),options:i}},executeProgram:async(t,r,a={})=>{m("executeProgram","cell",t),m("executeProgram","codeWithArguments",r);const n="/cells/{cell}/programs/execute".replace("{cell}",encodeURIComponent(String(t))),o=new URL(n,P);let s;e&&(s=e.baseOptions);const i={method:"POST",...s,...a},l={},c={};V(i,e),await R(l,e),l["Content-Type"]="application/json",_(o,c);let d=s&&s.headers?s.headers:{};return i.headers={...l,...d,...a.headers},i.data=se(r,i,e),{url:A(o),options:i}},getProgramRunner:async(t,r,a={})=>{m("getProgramRunner","cell",t),m("getProgramRunner","runner",r);const n="/cells/{cell}/programs/runners/{runner}".replace("{cell}",encodeURIComponent(String(t))).replace("{runner}",encodeURIComponent(String(r))),o=new URL(n,P);let s;e&&(s=e.baseOptions);const i={method:"GET",...s,...a},l={},c={};V(i,e),await R(l,e),_(o,c);let d=s&&s.headers?s.headers:{};return i.headers={...l,...d,...a.headers},{url:A(o),options:i}},listProgramRunners:async(t,r={})=>{m("listProgramRunners","cell",t);const a="/cells/{cell}/programs/runners".replace("{cell}",encodeURIComponent(String(t))),n=new URL(a,P);let o;e&&(o=e.baseOptions);const s={method:"GET",...o,...r},i={},l={};V(s,e),await R(i,e),_(n,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},{url:A(n),options:s}},migrateProgram:async(t,r,a={})=>{m("migrateProgram","cell",t),m("migrateProgram","request1",r);const n="/cells/{cell}/programs/migrate".replace("{cell}",encodeURIComponent(String(t))),o=new URL(n,P);let s;e&&(s=e.baseOptions);const i={method:"POST",...s,...a},l={},c={};V(i,e),await R(l,e),l["Content-Type"]="text/plain",_(o,c);let d=s&&s.headers?s.headers:{};return i.headers={...l,...d,...a.headers},i.data=se(r,i,e),{url:A(o),options:i}},planProgram:async(t,r,a,n={})=>{m("planProgram","cell",t),m("planProgram","request",r);const o="/cells/{cell}/programs/plan".replace("{cell}",encodeURIComponent(String(t))),s=new URL(o,P);let i;e&&(i=e.baseOptions);const l={method:"POST",...i,...n},c={},d={};V(l,e),await R(c,e),a!==void 0&&(d.identifier=a),c["Content-Type"]="text/plain",_(s,d);let u=i&&i.headers?i.headers:{};return l.headers={...c,...u,...n.headers},l.data=se(r,l,e),{url:A(s),options:l}},stopAllProgramRunner:async(t,r={})=>{m("stopAllProgramRunner","cell",t);const a="/cells/{cell}/programs/runners/stop".replace("{cell}",encodeURIComponent(String(t))),n=new URL(a,P);let o;e&&(o=e.baseOptions);const s={method:"POST",...o,...r},i={},l={};V(s,e),await R(i,e),_(n,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},{url:A(n),options:s}},stopProgramRunner:async(t,r,a={})=>{m("stopProgramRunner","cell",t),m("stopProgramRunner","runner",r);const n="/cells/{cell}/programs/runners/{runner}/stop".replace("{cell}",encodeURIComponent(String(t))).replace("{runner}",encodeURIComponent(String(r))),o=new URL(n,P);let s;e&&(s=e.baseOptions);const i={method:"POST",...s,...a},l={},c={};V(i,e),await R(l,e),_(o,c);let d=s&&s.headers?s.headers:{};return i.headers={...l,...d,...a.headers},{url:A(o),options:i}}}},Jt=function(e){const t=Uv(e);return{async createProgramRunner(r,a,n){var l,c;const o=await t.createProgramRunner(r,a,n),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["ProgramApi.createProgramRunner"])==null?void 0:l[s])==null?void 0:c.url;return(d,u)=>T(o,O,w,e)(d,i||u)},async executeProgram(r,a,n){var l,c;const o=await t.executeProgram(r,a,n),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["ProgramApi.executeProgram"])==null?void 0:l[s])==null?void 0:c.url;return(d,u)=>T(o,O,w,e)(d,i||u)},async getProgramRunner(r,a,n){var l,c;const o=await t.getProgramRunner(r,a,n),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["ProgramApi.getProgramRunner"])==null?void 0:l[s])==null?void 0:c.url;return(d,u)=>T(o,O,w,e)(d,i||u)},async listProgramRunners(r,a){var i,l;const n=await t.listProgramRunners(r,a),o=(e==null?void 0:e.serverIndex)??0,s=(l=(i=C["ProgramApi.listProgramRunners"])==null?void 0:i[o])==null?void 0:l.url;return(c,d)=>T(n,O,w,e)(c,s||d)},async migrateProgram(r,a,n){var l,c;const o=await t.migrateProgram(r,a,n),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["ProgramApi.migrateProgram"])==null?void 0:l[s])==null?void 0:c.url;return(d,u)=>T(o,O,w,e)(d,i||u)},async planProgram(r,a,n,o){var c,d;const s=await t.planProgram(r,a,n,o),i=(e==null?void 0:e.serverIndex)??0,l=(d=(c=C["ProgramApi.planProgram"])==null?void 0:c[i])==null?void 0:d.url;return(u,p)=>T(s,O,w,e)(u,l||p)},async stopAllProgramRunner(r,a){var i,l;const n=await t.stopAllProgramRunner(r,a),o=(e==null?void 0:e.serverIndex)??0,s=(l=(i=C["ProgramApi.stopAllProgramRunner"])==null?void 0:i[o])==null?void 0:l.url;return(c,d)=>T(n,O,w,e)(c,s||d)},async stopProgramRunner(r,a,n){var l,c;const o=await t.stopProgramRunner(r,a,n),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["ProgramApi.stopProgramRunner"])==null?void 0:l[s])==null?void 0:c.url;return(d,u)=>T(o,O,w,e)(d,i||u)}}};class Lv extends Pe{createProgramRunner(t,r,a){return Jt(this.configuration).createProgramRunner(t,r,a).then(n=>n(this.axios,this.basePath))}executeProgram(t,r,a){return Jt(this.configuration).executeProgram(t,r,a).then(n=>n(this.axios,this.basePath))}getProgramRunner(t,r,a){return Jt(this.configuration).getProgramRunner(t,r,a).then(n=>n(this.axios,this.basePath))}listProgramRunners(t,r){return Jt(this.configuration).listProgramRunners(t,r).then(a=>a(this.axios,this.basePath))}migrateProgram(t,r,a){return Jt(this.configuration).migrateProgram(t,r,a).then(n=>n(this.axios,this.basePath))}planProgram(t,r,a,n){return Jt(this.configuration).planProgram(t,r,a,n).then(o=>o(this.axios,this.basePath))}stopAllProgramRunner(t,r){return Jt(this.configuration).stopAllProgramRunner(t,r).then(a=>a(this.axios,this.basePath))}stopProgramRunner(t,r,a){return Jt(this.configuration).stopProgramRunner(t,r,a).then(n=>n(this.axios,this.basePath))}}const kv=function(e){return{clearProgramsValues:async(t,r={})=>{m("clearProgramsValues","cell",t);const a="/cells/{cell}/programs/values".replace("{cell}",encodeURIComponent(String(t))),n=new URL(a,P);let o;e&&(o=e.baseOptions);const s={method:"DELETE",...o,...r},i={},l={};V(s,e),await R(i,e),_(n,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},{url:A(n),options:s}},createProgramsValue:async(t,r,a={})=>{m("createProgramsValue","cell",t),m("createProgramsValue","requestBody",r);const n="/cells/{cell}/programs/values".replace("{cell}",encodeURIComponent(String(t))),o=new URL(n,P);let s;e&&(s=e.baseOptions);const i={method:"POST",...s,...a},l={},c={};V(i,e),await R(l,e),l["Content-Type"]="application/json",_(o,c);let d=s&&s.headers?s.headers:{};return i.headers={...l,...d,...a.headers},i.data=se(r,i,e),{url:A(o),options:i}},deleteProgramValue:async(t,r,a={})=>{m("deleteProgramValue","cell",t),m("deleteProgramValue","key",r);const n="/cells/{cell}/programs/values/{key}".replace("{cell}",encodeURIComponent(String(t))).replace("{key}",encodeURIComponent(String(r))),o=new URL(n,P);let s;e&&(s=e.baseOptions);const i={method:"DELETE",...s,...a},l={},c={};V(i,e),await R(l,e),_(o,c);let d=s&&s.headers?s.headers:{};return i.headers={...l,...d,...a.headers},{url:A(o),options:i}},getProgramValue:async(t,r,a={})=>{m("getProgramValue","cell",t),m("getProgramValue","key",r);const n="/cells/{cell}/programs/values/{key}".replace("{cell}",encodeURIComponent(String(t))).replace("{key}",encodeURIComponent(String(r))),o=new URL(n,P);let s;e&&(s=e.baseOptions);const i={method:"GET",...s,...a},l={},c={};V(i,e),await R(l,e),_(o,c);let d=s&&s.headers?s.headers:{};return i.headers={...l,...d,...a.headers},{url:A(o),options:i}},listProgramsValues:async(t,r={})=>{m("listProgramsValues","cell",t);const a="/cells/{cell}/programs/values".replace("{cell}",encodeURIComponent(String(t))),n=new URL(a,P);let o;e&&(o=e.baseOptions);const s={method:"GET",...o,...r},i={},l={};V(s,e),await R(i,e),_(n,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},{url:A(n),options:s}},updateProgramValue:async(t,r,a,n={})=>{m("updateProgramValue","cell",t),m("updateProgramValue","key",r),m("updateProgramValue","value",a);const o="/cells/{cell}/programs/values/{key}".replace("{cell}",encodeURIComponent(String(t))).replace("{key}",encodeURIComponent(String(r))),s=new URL(o,P);let i;e&&(i=e.baseOptions);const l={method:"PUT",...i,...n},c={},d={};V(l,e),await R(c,e),c["Content-Type"]="application/json",_(s,d);let u=i&&i.headers?i.headers:{};return l.headers={...c,...u,...n.headers},l.data=se(a,l,e),{url:A(s),options:l}}}},jr=function(e){const t=kv(e);return{async clearProgramsValues(r,a){var i,l;const n=await t.clearProgramsValues(r,a),o=(e==null?void 0:e.serverIndex)??0,s=(l=(i=C["ProgramValuesApi.clearProgramsValues"])==null?void 0:i[o])==null?void 0:l.url;return(c,d)=>T(n,O,w,e)(c,s||d)},async createProgramsValue(r,a,n){var l,c;const o=await t.createProgramsValue(r,a,n),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["ProgramValuesApi.createProgramsValue"])==null?void 0:l[s])==null?void 0:c.url;return(d,u)=>T(o,O,w,e)(d,i||u)},async deleteProgramValue(r,a,n){var l,c;const o=await t.deleteProgramValue(r,a,n),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["ProgramValuesApi.deleteProgramValue"])==null?void 0:l[s])==null?void 0:c.url;return(d,u)=>T(o,O,w,e)(d,i||u)},async getProgramValue(r,a,n){var l,c;const o=await t.getProgramValue(r,a,n),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["ProgramValuesApi.getProgramValue"])==null?void 0:l[s])==null?void 0:c.url;return(d,u)=>T(o,O,w,e)(d,i||u)},async listProgramsValues(r,a){var i,l;const n=await t.listProgramsValues(r,a),o=(e==null?void 0:e.serverIndex)??0,s=(l=(i=C["ProgramValuesApi.listProgramsValues"])==null?void 0:i[o])==null?void 0:l.url;return(c,d)=>T(n,O,w,e)(c,s||d)},async updateProgramValue(r,a,n,o){var c,d;const s=await t.updateProgramValue(r,a,n,o),i=(e==null?void 0:e.serverIndex)??0,l=(d=(c=C["ProgramValuesApi.updateProgramValue"])==null?void 0:c[i])==null?void 0:d.url;return(u,p)=>T(s,O,w,e)(u,l||p)}}};class Bv extends Pe{clearProgramsValues(t,r){return jr(this.configuration).clearProgramsValues(t,r).then(a=>a(this.axios,this.basePath))}createProgramsValue(t,r,a){return jr(this.configuration).createProgramsValue(t,r,a).then(n=>n(this.axios,this.basePath))}deleteProgramValue(t,r,a){return jr(this.configuration).deleteProgramValue(t,r,a).then(n=>n(this.axios,this.basePath))}getProgramValue(t,r,a){return jr(this.configuration).getProgramValue(t,r,a).then(n=>n(this.axios,this.basePath))}listProgramsValues(t,r){return jr(this.configuration).listProgramsValues(t,r).then(a=>a(this.axios,this.basePath))}updateProgramValue(t,r,a,n){return jr(this.configuration).updateProgramValue(t,r,a,n).then(o=>o(this.axios,this.basePath))}}const Fv=function(e){return{deleteStoredCollider:async(t,r,a={})=>{m("deleteStoredCollider","cell",t),m("deleteStoredCollider","collider",r);const n="/cells/{cell}/store/collision/colliders/{collider}".replace("{cell}",encodeURIComponent(String(t))).replace("{collider}",encodeURIComponent(String(r))),o=new URL(n,P);let s;e&&(s=e.baseOptions);const i={method:"DELETE",...s,...a},l={},c={};V(i,e),await R(l,e),_(o,c);let d=s&&s.headers?s.headers:{};return i.headers={...l,...d,...a.headers},{url:A(o),options:i}},deleteStoredCollisionLinkChain:async(t,r,a={})=>{m("deleteStoredCollisionLinkChain","cell",t),m("deleteStoredCollisionLinkChain","linkChain",r);const n="/cells/{cell}/store/collision/link-chains/{link-chain}".replace("{cell}",encodeURIComponent(String(t))).replace("{link-chain}",encodeURIComponent(String(r))),o=new URL(n,P);let s;e&&(s=e.baseOptions);const i={method:"DELETE",...s,...a},l={},c={};V(i,e),await R(l,e),_(o,c);let d=s&&s.headers?s.headers:{};return i.headers={...l,...d,...a.headers},{url:A(o),options:i}},deleteStoredCollisionTool:async(t,r,a={})=>{m("deleteStoredCollisionTool","cell",t),m("deleteStoredCollisionTool","tool",r);const n="/cells/{cell}/store/collision/tools/{tool}".replace("{cell}",encodeURIComponent(String(t))).replace("{tool}",encodeURIComponent(String(r))),o=new URL(n,P);let s;e&&(s=e.baseOptions);const i={method:"DELETE",...s,...a},l={},c={};V(i,e),await R(l,e),_(o,c);let d=s&&s.headers?s.headers:{};return i.headers={...l,...d,...a.headers},{url:A(o),options:i}},getDefaultLinkChain:async(t,r,a={})=>{m("getDefaultLinkChain","cell",t),m("getDefaultLinkChain","motionGroupModel",r);const n="/cells/{cell}/store/collision/default-link-chains/{motion-group-model}".replace("{cell}",encodeURIComponent(String(t))).replace("{motion-group-model}",encodeURIComponent(String(r))),o=new URL(n,P);let s;e&&(s=e.baseOptions);const i={method:"GET",...s,...a},l={},c={};V(i,e),await R(l,e),_(o,c);let d=s&&s.headers?s.headers:{};return i.headers={...l,...d,...a.headers},{url:A(o),options:i}},getStoredCollider:async(t,r,a={})=>{m("getStoredCollider","cell",t),m("getStoredCollider","collider",r);const n="/cells/{cell}/store/collision/colliders/{collider}".replace("{cell}",encodeURIComponent(String(t))).replace("{collider}",encodeURIComponent(String(r))),o=new URL(n,P);let s;e&&(s=e.baseOptions);const i={method:"GET",...s,...a},l={},c={};V(i,e),await R(l,e),_(o,c);let d=s&&s.headers?s.headers:{};return i.headers={...l,...d,...a.headers},{url:A(o),options:i}},getStoredCollisionLinkChain:async(t,r,a={})=>{m("getStoredCollisionLinkChain","cell",t),m("getStoredCollisionLinkChain","linkChain",r);const n="/cells/{cell}/store/collision/link-chains/{link-chain}".replace("{cell}",encodeURIComponent(String(t))).replace("{link-chain}",encodeURIComponent(String(r))),o=new URL(n,P);let s;e&&(s=e.baseOptions);const i={method:"GET",...s,...a},l={},c={};V(i,e),await R(l,e),_(o,c);let d=s&&s.headers?s.headers:{};return i.headers={...l,...d,...a.headers},{url:A(o),options:i}},getStoredCollisionTool:async(t,r,a={})=>{m("getStoredCollisionTool","cell",t),m("getStoredCollisionTool","tool",r);const n="/cells/{cell}/store/collision/tools/{tool}".replace("{cell}",encodeURIComponent(String(t))).replace("{tool}",encodeURIComponent(String(r))),o=new URL(n,P);let s;e&&(s=e.baseOptions);const i={method:"GET",...s,...a},l={},c={};V(i,e),await R(l,e),_(o,c);let d=s&&s.headers?s.headers:{};return i.headers={...l,...d,...a.headers},{url:A(o),options:i}},listCollisionLinkChains:async(t,r={})=>{m("listCollisionLinkChains","cell",t);const a="/cells/{cell}/store/collision/link-chains".replace("{cell}",encodeURIComponent(String(t))),n=new URL(a,P);let o;e&&(o=e.baseOptions);const s={method:"GET",...o,...r},i={},l={};V(s,e),await R(i,e),_(n,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},{url:A(n),options:s}},listStoredColliders:async(t,r={})=>{m("listStoredColliders","cell",t);const a="/cells/{cell}/store/collision/colliders".replace("{cell}",encodeURIComponent(String(t))),n=new URL(a,P);let o;e&&(o=e.baseOptions);const s={method:"GET",...o,...r},i={},l={};V(s,e),await R(i,e),_(n,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},{url:A(n),options:s}},listStoredCollisionTools:async(t,r={})=>{m("listStoredCollisionTools","cell",t);const a="/cells/{cell}/store/collision/tools".replace("{cell}",encodeURIComponent(String(t))),n=new URL(a,P);let o;e&&(o=e.baseOptions);const s={method:"GET",...o,...r},i={},l={};V(s,e),await R(i,e),_(n,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},{url:A(n),options:s}},storeCollider:async(t,r,a,n={})=>{m("storeCollider","cell",t),m("storeCollider","collider",r),m("storeCollider","collider2",a);const o="/cells/{cell}/store/collision/colliders/{collider}".replace("{cell}",encodeURIComponent(String(t))).replace("{collider}",encodeURIComponent(String(r))),s=new URL(o,P);let i;e&&(i=e.baseOptions);const l={method:"PUT",...i,...n},c={},d={};V(l,e),await R(c,e),c["Content-Type"]="application/json",_(s,d);let u=i&&i.headers?i.headers:{};return l.headers={...c,...u,...n.headers},l.data=se(a,l,e),{url:A(s),options:l}},storeCollisionLinkChain:async(t,r,a,n={})=>{m("storeCollisionLinkChain","cell",t),m("storeCollisionLinkChain","linkChain",r),m("storeCollisionLinkChain","collider",a);const o="/cells/{cell}/store/collision/link-chains/{link-chain}".replace("{cell}",encodeURIComponent(String(t))).replace("{link-chain}",encodeURIComponent(String(r))),s=new URL(o,P);let i;e&&(i=e.baseOptions);const l={method:"PUT",...i,...n},c={},d={};V(l,e),await R(c,e),c["Content-Type"]="application/json",_(s,d);let u=i&&i.headers?i.headers:{};return l.headers={...c,...u,...n.headers},l.data=se(a,l,e),{url:A(s),options:l}},storeCollisionTool:async(t,r,a,n={})=>{m("storeCollisionTool","cell",t),m("storeCollisionTool","tool",r),m("storeCollisionTool","requestBody",a);const o="/cells/{cell}/store/collision/tools/{tool}".replace("{cell}",encodeURIComponent(String(t))).replace("{tool}",encodeURIComponent(String(r))),s=new URL(o,P);let i;e&&(i=e.baseOptions);const l={method:"PUT",...i,...n},c={},d={};V(l,e),await R(c,e),c["Content-Type"]="application/json",_(s,d);let u=i&&i.headers?i.headers:{};return l.headers={...c,...u,...n.headers},l.data=se(a,l,e),{url:A(s),options:l}}}},tt=function(e){const t=Fv(e);return{async deleteStoredCollider(r,a,n){var l,c;const o=await t.deleteStoredCollider(r,a,n),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["StoreCollisionComponentsApi.deleteStoredCollider"])==null?void 0:l[s])==null?void 0:c.url;return(d,u)=>T(o,O,w,e)(d,i||u)},async deleteStoredCollisionLinkChain(r,a,n){var l,c;const o=await t.deleteStoredCollisionLinkChain(r,a,n),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["StoreCollisionComponentsApi.deleteStoredCollisionLinkChain"])==null?void 0:l[s])==null?void 0:c.url;return(d,u)=>T(o,O,w,e)(d,i||u)},async deleteStoredCollisionTool(r,a,n){var l,c;const o=await t.deleteStoredCollisionTool(r,a,n),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["StoreCollisionComponentsApi.deleteStoredCollisionTool"])==null?void 0:l[s])==null?void 0:c.url;return(d,u)=>T(o,O,w,e)(d,i||u)},async getDefaultLinkChain(r,a,n){var l,c;const o=await t.getDefaultLinkChain(r,a,n),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["StoreCollisionComponentsApi.getDefaultLinkChain"])==null?void 0:l[s])==null?void 0:c.url;return(d,u)=>T(o,O,w,e)(d,i||u)},async getStoredCollider(r,a,n){var l,c;const o=await t.getStoredCollider(r,a,n),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["StoreCollisionComponentsApi.getStoredCollider"])==null?void 0:l[s])==null?void 0:c.url;return(d,u)=>T(o,O,w,e)(d,i||u)},async getStoredCollisionLinkChain(r,a,n){var l,c;const o=await t.getStoredCollisionLinkChain(r,a,n),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["StoreCollisionComponentsApi.getStoredCollisionLinkChain"])==null?void 0:l[s])==null?void 0:c.url;return(d,u)=>T(o,O,w,e)(d,i||u)},async getStoredCollisionTool(r,a,n){var l,c;const o=await t.getStoredCollisionTool(r,a,n),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["StoreCollisionComponentsApi.getStoredCollisionTool"])==null?void 0:l[s])==null?void 0:c.url;return(d,u)=>T(o,O,w,e)(d,i||u)},async listCollisionLinkChains(r,a){var i,l;const n=await t.listCollisionLinkChains(r,a),o=(e==null?void 0:e.serverIndex)??0,s=(l=(i=C["StoreCollisionComponentsApi.listCollisionLinkChains"])==null?void 0:i[o])==null?void 0:l.url;return(c,d)=>T(n,O,w,e)(c,s||d)},async listStoredColliders(r,a){var i,l;const n=await t.listStoredColliders(r,a),o=(e==null?void 0:e.serverIndex)??0,s=(l=(i=C["StoreCollisionComponentsApi.listStoredColliders"])==null?void 0:i[o])==null?void 0:l.url;return(c,d)=>T(n,O,w,e)(c,s||d)},async listStoredCollisionTools(r,a){var i,l;const n=await t.listStoredCollisionTools(r,a),o=(e==null?void 0:e.serverIndex)??0,s=(l=(i=C["StoreCollisionComponentsApi.listStoredCollisionTools"])==null?void 0:i[o])==null?void 0:l.url;return(c,d)=>T(n,O,w,e)(c,s||d)},async storeCollider(r,a,n,o){var c,d;const s=await t.storeCollider(r,a,n,o),i=(e==null?void 0:e.serverIndex)??0,l=(d=(c=C["StoreCollisionComponentsApi.storeCollider"])==null?void 0:c[i])==null?void 0:d.url;return(u,p)=>T(s,O,w,e)(u,l||p)},async storeCollisionLinkChain(r,a,n,o){var c,d;const s=await t.storeCollisionLinkChain(r,a,n,o),i=(e==null?void 0:e.serverIndex)??0,l=(d=(c=C["StoreCollisionComponentsApi.storeCollisionLinkChain"])==null?void 0:c[i])==null?void 0:d.url;return(u,p)=>T(s,O,w,e)(u,l||p)},async storeCollisionTool(r,a,n,o){var c,d;const s=await t.storeCollisionTool(r,a,n,o),i=(e==null?void 0:e.serverIndex)??0,l=(d=(c=C["StoreCollisionComponentsApi.storeCollisionTool"])==null?void 0:c[i])==null?void 0:d.url;return(u,p)=>T(s,O,w,e)(u,l||p)}}};class Nv extends Pe{deleteStoredCollider(t,r,a){return tt(this.configuration).deleteStoredCollider(t,r,a).then(n=>n(this.axios,this.basePath))}deleteStoredCollisionLinkChain(t,r,a){return tt(this.configuration).deleteStoredCollisionLinkChain(t,r,a).then(n=>n(this.axios,this.basePath))}deleteStoredCollisionTool(t,r,a){return tt(this.configuration).deleteStoredCollisionTool(t,r,a).then(n=>n(this.axios,this.basePath))}getDefaultLinkChain(t,r,a){return tt(this.configuration).getDefaultLinkChain(t,r,a).then(n=>n(this.axios,this.basePath))}getStoredCollider(t,r,a){return tt(this.configuration).getStoredCollider(t,r,a).then(n=>n(this.axios,this.basePath))}getStoredCollisionLinkChain(t,r,a){return tt(this.configuration).getStoredCollisionLinkChain(t,r,a).then(n=>n(this.axios,this.basePath))}getStoredCollisionTool(t,r,a){return tt(this.configuration).getStoredCollisionTool(t,r,a).then(n=>n(this.axios,this.basePath))}listCollisionLinkChains(t,r){return tt(this.configuration).listCollisionLinkChains(t,r).then(a=>a(this.axios,this.basePath))}listStoredColliders(t,r){return tt(this.configuration).listStoredColliders(t,r).then(a=>a(this.axios,this.basePath))}listStoredCollisionTools(t,r){return tt(this.configuration).listStoredCollisionTools(t,r).then(a=>a(this.axios,this.basePath))}storeCollider(t,r,a,n){return tt(this.configuration).storeCollider(t,r,a,n).then(o=>o(this.axios,this.basePath))}storeCollisionLinkChain(t,r,a,n){return tt(this.configuration).storeCollisionLinkChain(t,r,a,n).then(o=>o(this.axios,this.basePath))}storeCollisionTool(t,r,a,n){return tt(this.configuration).storeCollisionTool(t,r,a,n).then(o=>o(this.axios,this.basePath))}}const Dv=function(e){return{deleteStoredCollisionScene:async(t,r,a={})=>{m("deleteStoredCollisionScene","cell",t),m("deleteStoredCollisionScene","scene",r);const n="/cells/{cell}/store/collision/scenes/{scene}".replace("{cell}",encodeURIComponent(String(t))).replace("{scene}",encodeURIComponent(String(r))),o=new URL(n,P);let s;e&&(s=e.baseOptions);const i={method:"DELETE",...s,...a},l={},c={};V(i,e),await R(l,e),_(o,c);let d=s&&s.headers?s.headers:{};return i.headers={...l,...d,...a.headers},{url:A(o),options:i}},getStoredCollisionScene:async(t,r,a={})=>{m("getStoredCollisionScene","cell",t),m("getStoredCollisionScene","scene",r);const n="/cells/{cell}/store/collision/scenes/{scene}".replace("{cell}",encodeURIComponent(String(t))).replace("{scene}",encodeURIComponent(String(r))),o=new URL(n,P);let s;e&&(s=e.baseOptions);const i={method:"GET",...s,...a},l={},c={};V(i,e),await R(l,e),_(o,c);let d=s&&s.headers?s.headers:{};return i.headers={...l,...d,...a.headers},{url:A(o),options:i}},listStoredCollisionScenes:async(t,r={})=>{m("listStoredCollisionScenes","cell",t);const a="/cells/{cell}/store/collision/scenes".replace("{cell}",encodeURIComponent(String(t))),n=new URL(a,P);let o;e&&(o=e.baseOptions);const s={method:"GET",...o,...r},i={},l={};V(s,e),await R(i,e),_(n,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},{url:A(n),options:s}},storeCollisionScene:async(t,r,a,n={})=>{m("storeCollisionScene","cell",t),m("storeCollisionScene","scene",r),m("storeCollisionScene","collisionSceneAssembly",a);const o="/cells/{cell}/store/collision/scenes/{scene}".replace("{cell}",encodeURIComponent(String(t))).replace("{scene}",encodeURIComponent(String(r))),s=new URL(o,P);let i;e&&(i=e.baseOptions);const l={method:"PUT",...i,...n},c={},d={};V(l,e),await R(c,e),c["Content-Type"]="application/json",_(s,d);let u=i&&i.headers?i.headers:{};return l.headers={...c,...u,...n.headers},l.data=se(a,l,e),{url:A(s),options:l}}}},en=function(e){const t=Dv(e);return{async deleteStoredCollisionScene(r,a,n){var l,c;const o=await t.deleteStoredCollisionScene(r,a,n),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["StoreCollisionScenesApi.deleteStoredCollisionScene"])==null?void 0:l[s])==null?void 0:c.url;return(d,u)=>T(o,O,w,e)(d,i||u)},async getStoredCollisionScene(r,a,n){var l,c;const o=await t.getStoredCollisionScene(r,a,n),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["StoreCollisionScenesApi.getStoredCollisionScene"])==null?void 0:l[s])==null?void 0:c.url;return(d,u)=>T(o,O,w,e)(d,i||u)},async listStoredCollisionScenes(r,a){var i,l;const n=await t.listStoredCollisionScenes(r,a),o=(e==null?void 0:e.serverIndex)??0,s=(l=(i=C["StoreCollisionScenesApi.listStoredCollisionScenes"])==null?void 0:i[o])==null?void 0:l.url;return(c,d)=>T(n,O,w,e)(c,s||d)},async storeCollisionScene(r,a,n,o){var c,d;const s=await t.storeCollisionScene(r,a,n,o),i=(e==null?void 0:e.serverIndex)??0,l=(d=(c=C["StoreCollisionScenesApi.storeCollisionScene"])==null?void 0:c[i])==null?void 0:d.url;return(u,p)=>T(s,O,w,e)(u,l||p)}}};class zv extends Pe{deleteStoredCollisionScene(t,r,a){return en(this.configuration).deleteStoredCollisionScene(t,r,a).then(n=>n(this.axios,this.basePath))}getStoredCollisionScene(t,r,a){return en(this.configuration).getStoredCollisionScene(t,r,a).then(n=>n(this.axios,this.basePath))}listStoredCollisionScenes(t,r){return en(this.configuration).listStoredCollisionScenes(t,r).then(a=>a(this.axios,this.basePath))}storeCollisionScene(t,r,a,n){return en(this.configuration).storeCollisionScene(t,r,a,n).then(o=>o(this.axios,this.basePath))}}const Gv=function(e){return{clearAllObjects:async(t,r={})=>{m("clearAllObjects","cell",t);const a="/cells/{cell}/store/objects".replace("{cell}",encodeURIComponent(String(t))),n=new URL(a,P);let o;e&&(o=e.baseOptions);const s={method:"DELETE",...o,...r},i={},l={};V(s,e),await R(i,e),_(n,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},{url:A(n),options:s}},deleteObject:async(t,r,a={})=>{m("deleteObject","cell",t),m("deleteObject","key",r);const n="/cells/{cell}/store/objects/{key}".replace("{cell}",encodeURIComponent(String(t))).replace("{key}",encodeURIComponent(String(r))),o=new URL(n,P);let s;e&&(s=e.baseOptions);const i={method:"DELETE",...s,...a},l={},c={};V(i,e),await R(l,e),_(o,c);let d=s&&s.headers?s.headers:{};return i.headers={...l,...d,...a.headers},{url:A(o),options:i}},getObject:async(t,r,a={})=>{m("getObject","cell",t),m("getObject","key",r);const n="/cells/{cell}/store/objects/{key}".replace("{cell}",encodeURIComponent(String(t))).replace("{key}",encodeURIComponent(String(r))),o=new URL(n,P);let s;e&&(s=e.baseOptions);const i={method:"GET",...s,...a},l={},c={};V(i,e),await R(l,e),_(o,c);let d=s&&s.headers?s.headers:{};return i.headers={...l,...d,...a.headers},{url:A(o),options:i}},getObjectMetadata:async(t,r,a={})=>{m("getObjectMetadata","cell",t),m("getObjectMetadata","key",r);const n="/cells/{cell}/store/objects/{key}".replace("{cell}",encodeURIComponent(String(t))).replace("{key}",encodeURIComponent(String(r))),o=new URL(n,P);let s;e&&(s=e.baseOptions);const i={method:"HEAD",...s,...a},l={},c={};V(i,e),await R(l,e),_(o,c);let d=s&&s.headers?s.headers:{};return i.headers={...l,...d,...a.headers},{url:A(o),options:i}},listAllObjectKeys:async(t,r={})=>{m("listAllObjectKeys","cell",t);const a="/cells/{cell}/store/objects".replace("{cell}",encodeURIComponent(String(t))),n=new URL(a,P);let o;e&&(o=e.baseOptions);const s={method:"GET",...o,...r},i={},l={};V(s,e),await R(i,e),_(n,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},{url:A(n),options:s}},storeObject:async(t,r,a,n,o={})=>{m("storeObject","cell",t),m("storeObject","key",r);const s="/cells/{cell}/store/objects/{key}".replace("{cell}",encodeURIComponent(String(t))).replace("{key}",encodeURIComponent(String(r))),i=new URL(s,P);let l;e&&(l=e.baseOptions);const c={method:"PUT",...l,...o},d={},u={},p=new(e&&e.formDataCtor||FormData);V(c,e),await R(d,e),n!==void 0&&p.append("AnyValue",new Blob([JSON.stringify(n)],{type:"application/json"})),d["Content-Type"]="multipart/form-data",a!=null&&(d["X-Metadata"]=typeof a=="string"?a:JSON.stringify(a)),_(i,u);let f=l&&l.headers?l.headers:{};return c.headers={...d,...f,...o.headers},c.data=p,{url:A(i),options:c}}}},$r=function(e){const t=Gv(e);return{async clearAllObjects(r,a){var i,l;const n=await t.clearAllObjects(r,a),o=(e==null?void 0:e.serverIndex)??0,s=(l=(i=C["StoreObjectApi.clearAllObjects"])==null?void 0:i[o])==null?void 0:l.url;return(c,d)=>T(n,O,w,e)(c,s||d)},async deleteObject(r,a,n){var l,c;const o=await t.deleteObject(r,a,n),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["StoreObjectApi.deleteObject"])==null?void 0:l[s])==null?void 0:c.url;return(d,u)=>T(o,O,w,e)(d,i||u)},async getObject(r,a,n){var l,c;const o=await t.getObject(r,a,n),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["StoreObjectApi.getObject"])==null?void 0:l[s])==null?void 0:c.url;return(d,u)=>T(o,O,w,e)(d,i||u)},async getObjectMetadata(r,a,n){var l,c;const o=await t.getObjectMetadata(r,a,n),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["StoreObjectApi.getObjectMetadata"])==null?void 0:l[s])==null?void 0:c.url;return(d,u)=>T(o,O,w,e)(d,i||u)},async listAllObjectKeys(r,a){var i,l;const n=await t.listAllObjectKeys(r,a),o=(e==null?void 0:e.serverIndex)??0,s=(l=(i=C["StoreObjectApi.listAllObjectKeys"])==null?void 0:i[o])==null?void 0:l.url;return(c,d)=>T(n,O,w,e)(c,s||d)},async storeObject(r,a,n,o,s){var d,u;const i=await t.storeObject(r,a,n,o,s),l=(e==null?void 0:e.serverIndex)??0,c=(u=(d=C["StoreObjectApi.storeObject"])==null?void 0:d[l])==null?void 0:u.url;return(p,f)=>T(i,O,w,e)(p,c||f)}}};class Jv extends Pe{clearAllObjects(t,r){return $r(this.configuration).clearAllObjects(t,r).then(a=>a(this.axios,this.basePath))}deleteObject(t,r,a){return $r(this.configuration).deleteObject(t,r,a).then(n=>n(this.axios,this.basePath))}getObject(t,r,a){return $r(this.configuration).getObject(t,r,a).then(n=>n(this.axios,this.basePath))}getObjectMetadata(t,r,a){return $r(this.configuration).getObjectMetadata(t,r,a).then(n=>n(this.axios,this.basePath))}listAllObjectKeys(t,r){return $r(this.configuration).listAllObjectKeys(t,r).then(a=>a(this.axios,this.basePath))}storeObject(t,r,a,n,o){return $r(this.configuration).storeObject(t,r,a,n,o).then(s=>s(this.axios,this.basePath))}}const Hv=function(e){return{checkNovaVersionUpdate:async(t,r={})=>{m("checkNovaVersionUpdate","channel",t);const a="/system/update",n=new URL(a,P);let o;e&&(o=e.baseOptions);const s={method:"GET",...o,...r},i={},l={};V(s,e),await R(i,e),t!==void 0&&(l.channel=t),_(n,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},{url:A(n),options:s}},getDiagnosePackage:async(t={})=>{const r="/system/diagnosis-package/zip",a=new URL(r,P);let n;e&&(n=e.baseOptions);const o={method:"GET",...n,...t},s={},i={};V(o,e),await R(s,e),_(a,i);let l=n&&n.headers?n.headers:{};return o.headers={...s,...l,...t.headers},{url:A(a),options:o}},getSystemStatus:async(t={})=>{const r="/system/status",a=new URL(r,P);let n;e&&(n=e.baseOptions);const o={method:"GET",...n,...t},s={},i={};V(o,e),await R(s,e),_(a,i);let l=n&&n.headers?n.headers:{};return o.headers={...s,...l,...t.headers},{url:A(a),options:o}},getSystemVersion:async(t={})=>{const r="/system/version",a=new URL(r,P);let n;e&&(n=e.baseOptions);const o={method:"GET",...n,...t},s={},i={};V(o,e),await R(s,e),_(a,i);let l=n&&n.headers?n.headers:{};return o.headers={...s,...l,...t.headers},{url:A(a),options:o}},updateNovaVersion:async(t,r={})=>{m("updateNovaVersion","updateNovaVersionRequest",t);const a="/system/update",n=new URL(a,P);let o;e&&(o=e.baseOptions);const s={method:"PUT",...o,...r},i={},l={};V(s,e),await R(i,e),i["Content-Type"]="application/json",_(n,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},s.data=se(t,s,e),{url:A(n),options:s}}}},va=function(e){const t=Hv(e);return{async checkNovaVersionUpdate(r,a){var i,l;const n=await t.checkNovaVersionUpdate(r,a),o=(e==null?void 0:e.serverIndex)??0,s=(l=(i=C["SystemApi.checkNovaVersionUpdate"])==null?void 0:i[o])==null?void 0:l.url;return(c,d)=>T(n,O,w,e)(c,s||d)},async getDiagnosePackage(r){var s,i;const a=await t.getDiagnosePackage(r),n=(e==null?void 0:e.serverIndex)??0,o=(i=(s=C["SystemApi.getDiagnosePackage"])==null?void 0:s[n])==null?void 0:i.url;return(l,c)=>T(a,O,w,e)(l,o||c)},async getSystemStatus(r){var s,i;const a=await t.getSystemStatus(r),n=(e==null?void 0:e.serverIndex)??0,o=(i=(s=C["SystemApi.getSystemStatus"])==null?void 0:s[n])==null?void 0:i.url;return(l,c)=>T(a,O,w,e)(l,o||c)},async getSystemVersion(r){var s,i;const a=await t.getSystemVersion(r),n=(e==null?void 0:e.serverIndex)??0,o=(i=(s=C["SystemApi.getSystemVersion"])==null?void 0:s[n])==null?void 0:i.url;return(l,c)=>T(a,O,w,e)(l,o||c)},async updateNovaVersion(r,a){var i,l;const n=await t.updateNovaVersion(r,a),o=(e==null?void 0:e.serverIndex)??0,s=(l=(i=C["SystemApi.updateNovaVersion"])==null?void 0:i[o])==null?void 0:l.url;return(c,d)=>T(n,O,w,e)(c,s||d)}}};class qv extends Pe{checkNovaVersionUpdate(t,r){return va(this.configuration).checkNovaVersionUpdate(t,r).then(a=>a(this.axios,this.basePath))}getDiagnosePackage(t){return va(this.configuration).getDiagnosePackage(t).then(r=>r(this.axios,this.basePath))}getSystemStatus(t){return va(this.configuration).getSystemStatus(t).then(r=>r(this.axios,this.basePath))}getSystemVersion(t){return va(this.configuration).getSystemVersion(t).then(r=>r(this.axios,this.basePath))}updateNovaVersion(t,r){return va(this.configuration).updateNovaVersion(t,r).then(a=>a(this.axios,this.basePath))}}const Wv=function(e){return{getMotionGroupState:async(t,r,a,n={})=>{m("getMotionGroupState","cell",t),m("getMotionGroupState","controller",r),m("getMotionGroupState","id",a);const o="/cells/{cell}/controllers/{controller}/teach-pendant/motion-groups/{id}".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))).replace("{id}",encodeURIComponent(String(a))),s=new URL(o,P);let i;e&&(i=e.baseOptions);const l={method:"GET",...i,...n},c={},d={};V(l,e),await R(c,e),_(s,d);let u=i&&i.headers?i.headers:{};return l.headers={...c,...u,...n.headers},{url:A(s),options:l}},getMotionGroups:async(t,r,a={})=>{m("getMotionGroups","cell",t),m("getMotionGroups","controller",r);const n="/cells/{cell}/controllers/{controller}/teach-pendant/motiongroups".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))),o=new URL(n,P);let s;e&&(s=e.baseOptions);const i={method:"GET",...s,...a},l={},c={};V(i,e),await R(l,e),_(o,c);let d=s&&s.headers?s.headers:{};return i.headers={...l,...d,...a.headers},{url:A(o),options:i}},getVirtualRobotIOValue:async(t,r,a,n={})=>{m("getVirtualRobotIOValue","cell",t),m("getVirtualRobotIOValue","controller",r),m("getVirtualRobotIOValue","io",a);const o="/cells/{cell}/controllers/{controller}/teach-pendant/ios/{io}".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))).replace("{io}",encodeURIComponent(String(a))),s=new URL(o,P);let i;e&&(i=e.baseOptions);const l={method:"GET",...i,...n},c={},d={};V(l,e),await R(c,e),_(s,d);let u=i&&i.headers?i.headers:{};return l.headers={...c,...u,...n.headers},{url:A(s),options:l}},listIOs:async(t,r,a={})=>{m("listIOs","cell",t),m("listIOs","controller",r);const n="/cells/{cell}/controllers/{controller}/teach-pendant/ios".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))),o=new URL(n,P);let s;e&&(s=e.baseOptions);const i={method:"GET",...s,...a},l={},c={};V(i,e),await R(l,e),_(o,c);let d=s&&s.headers?s.headers:{};return i.headers={...l,...d,...a.headers},{url:A(o),options:i}},setMotionGroupState:async(t,r,a,n,o={})=>{m("setMotionGroupState","cell",t),m("setMotionGroupState","controller",r),m("setMotionGroupState","id",a),m("setMotionGroupState","motionGroupJoints",n);const s="/cells/{cell}/controllers/{controller}/teach-pendant/motion-groups/{id}".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))).replace("{id}",encodeURIComponent(String(a))),i=new URL(s,P);let l;e&&(l=e.baseOptions);const c={method:"PUT",...l,...o},d={},u={};V(c,e),await R(d,e),d["Content-Type"]="application/json",_(i,u);let p=l&&l.headers?l.headers:{};return c.headers={...d,...p,...o.headers},c.data=se(n,c,e),{url:A(i),options:c}},setVirtualRobotIOValue:async(t,r,a,n,o,s,i={})=>{m("setVirtualRobotIOValue","cell",t),m("setVirtualRobotIOValue","controller",r),m("setVirtualRobotIOValue","io",a);const l="/cells/{cell}/controllers/{controller}/teach-pendant/ios/{io}".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))).replace("{io}",encodeURIComponent(String(a))),c=new URL(l,P);let d;e&&(d=e.baseOptions);const u={method:"PUT",...d,...i},p={},f={};V(u,e),await R(p,e),n!==void 0&&(f.bool=n),o!==void 0&&(f.integer=o),s!==void 0&&(f.double=s),_(c,f);let y=d&&d.headers?d.headers:{};return u.headers={...p,...y,...i.headers},{url:A(c),options:u}}}},Ur=function(e){const t=Wv(e);return{async getMotionGroupState(r,a,n,o){var c,d;const s=await t.getMotionGroupState(r,a,n,o),i=(e==null?void 0:e.serverIndex)??0,l=(d=(c=C["VirtualRobotApi.getMotionGroupState"])==null?void 0:c[i])==null?void 0:d.url;return(u,p)=>T(s,O,w,e)(u,l||p)},async getMotionGroups(r,a,n){var l,c;const o=await t.getMotionGroups(r,a,n),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["VirtualRobotApi.getMotionGroups"])==null?void 0:l[s])==null?void 0:c.url;return(d,u)=>T(o,O,w,e)(d,i||u)},async getVirtualRobotIOValue(r,a,n,o){var c,d;const s=await t.getVirtualRobotIOValue(r,a,n,o),i=(e==null?void 0:e.serverIndex)??0,l=(d=(c=C["VirtualRobotApi.getVirtualRobotIOValue"])==null?void 0:c[i])==null?void 0:d.url;return(u,p)=>T(s,O,w,e)(u,l||p)},async listIOs(r,a,n){var l,c;const o=await t.listIOs(r,a,n),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["VirtualRobotApi.listIOs"])==null?void 0:l[s])==null?void 0:c.url;return(d,u)=>T(o,O,w,e)(d,i||u)},async setMotionGroupState(r,a,n,o,s){var d,u;const i=await t.setMotionGroupState(r,a,n,o,s),l=(e==null?void 0:e.serverIndex)??0,c=(u=(d=C["VirtualRobotApi.setMotionGroupState"])==null?void 0:d[l])==null?void 0:u.url;return(p,f)=>T(i,O,w,e)(p,c||f)},async setVirtualRobotIOValue(r,a,n,o,s,i,l){var p,f;const c=await t.setVirtualRobotIOValue(r,a,n,o,s,i,l),d=(e==null?void 0:e.serverIndex)??0,u=(f=(p=C["VirtualRobotApi.setVirtualRobotIOValue"])==null?void 0:p[d])==null?void 0:f.url;return(y,h)=>T(c,O,w,e)(y,u||h)}}};class Kv extends Pe{getMotionGroupState(t,r,a,n){return Ur(this.configuration).getMotionGroupState(t,r,a,n).then(o=>o(this.axios,this.basePath))}getMotionGroups(t,r,a){return Ur(this.configuration).getMotionGroups(t,r,a).then(n=>n(this.axios,this.basePath))}getVirtualRobotIOValue(t,r,a,n){return Ur(this.configuration).getVirtualRobotIOValue(t,r,a,n).then(o=>o(this.axios,this.basePath))}listIOs(t,r,a){return Ur(this.configuration).listIOs(t,r,a).then(n=>n(this.axios,this.basePath))}setMotionGroupState(t,r,a,n,o){return Ur(this.configuration).setMotionGroupState(t,r,a,n,o).then(s=>s(this.axios,this.basePath))}setVirtualRobotIOValue(t,r,a,n,o,s,i){return Ur(this.configuration).setVirtualRobotIOValue(t,r,a,n,o,s,i).then(l=>l(this.axios,this.basePath))}}const Qv=function(e){return{externalJointsStream:async(t,r,a,n={})=>{m("externalJointsStream","cell",t),m("externalJointsStream","controller",r),m("externalJointsStream","externalJointStreamDatapoint",a);const o="/cells/{cell}/controllers/{controller}/teach-pendant/motion-groups/externalJointsStream".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))),s=new URL(o,P);let i;e&&(i=e.baseOptions);const l={method:"GET",...i,...n},c={},d={};V(l,e),await R(c,e),c["Content-Type"]="application/json",_(s,d);let u=i&&i.headers?i.headers:{};return l.headers={...c,...u,...n.headers},l.data=se(a,l,e),{url:A(s),options:l}},getMotionGroupBehavior:async(t,r,a,n={})=>{m("getMotionGroupBehavior","cell",t),m("getMotionGroupBehavior","controller",r),m("getMotionGroupBehavior","id",a);const o="/cells/{cell}/controllers/{controller}/teach-pendant/motion-groups/{id}/behavior".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))).replace("{id}",encodeURIComponent(String(a))),s=new URL(o,P);let i;e&&(i=e.baseOptions);const l={method:"GET",...i,...n},c={},d={};V(l,e),await R(c,e),_(s,d);let u=i&&i.headers?i.headers:{};return l.headers={...c,...u,...n.headers},{url:A(s),options:l}},setMotionGroupBehavior:async(t,r,a,n,o={})=>{m("setMotionGroupBehavior","cell",t),m("setMotionGroupBehavior","controller",r),m("setMotionGroupBehavior","id",a);const s="/cells/{cell}/controllers/{controller}/teach-pendant/motion-groups/{id}/behavior".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))).replace("{id}",encodeURIComponent(String(a))),i=new URL(s,P);let l;e&&(l=e.baseOptions);const c={method:"PUT",...l,...o},d={},u={};V(c,e),await R(d,e),n!==void 0&&(u.behavior=n),_(i,u);let p=l&&l.headers?l.headers:{};return c.headers={...d,...p,...o.headers},{url:A(i),options:c}}}},Ao=function(e){const t=Qv(e);return{async externalJointsStream(r,a,n,o){var c,d;const s=await t.externalJointsStream(r,a,n,o),i=(e==null?void 0:e.serverIndex)??0,l=(d=(c=C["VirtualRobotBehaviorApi.externalJointsStream"])==null?void 0:c[i])==null?void 0:d.url;return(u,p)=>T(s,O,w,e)(u,l||p)},async getMotionGroupBehavior(r,a,n,o){var c,d;const s=await t.getMotionGroupBehavior(r,a,n,o),i=(e==null?void 0:e.serverIndex)??0,l=(d=(c=C["VirtualRobotBehaviorApi.getMotionGroupBehavior"])==null?void 0:c[i])==null?void 0:d.url;return(u,p)=>T(s,O,w,e)(u,l||p)},async setMotionGroupBehavior(r,a,n,o,s){var d,u;const i=await t.setMotionGroupBehavior(r,a,n,o,s),l=(e==null?void 0:e.serverIndex)??0,c=(u=(d=C["VirtualRobotBehaviorApi.setMotionGroupBehavior"])==null?void 0:d[l])==null?void 0:u.url;return(p,f)=>T(i,O,w,e)(p,c||f)}}};class Yv extends Pe{externalJointsStream(t,r,a,n){return Ao(this.configuration).externalJointsStream(t,r,a,n).then(o=>o(this.axios,this.basePath))}getMotionGroupBehavior(t,r,a,n){return Ao(this.configuration).getMotionGroupBehavior(t,r,a,n).then(o=>o(this.axios,this.basePath))}setMotionGroupBehavior(t,r,a,n,o){return Ao(this.configuration).setMotionGroupBehavior(t,r,a,n,o).then(s=>s(this.axios,this.basePath))}}const Xv=function(e){return{getCycleTime:async(t,r,a={})=>{m("getCycleTime","cell",t),m("getCycleTime","controller",r);const n="/cells/{cell}/controllers/{controller}/teach-pendant/cycle-time".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))),o=new URL(n,P);let s;e&&(s=e.baseOptions);const i={method:"GET",...s,...a},l={},c={};V(i,e),await R(l,e),_(o,c);let d=s&&s.headers?s.headers:{};return i.headers={...l,...d,...a.headers},{url:A(o),options:i}},getEStop:async(t,r,a={})=>{m("getEStop","cell",t),m("getEStop","controller",r);const n="/cells/{cell}/controllers/{controller}/teach-pendant/estop".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))),o=new URL(n,P);let s;e&&(s=e.baseOptions);const i={method:"GET",...s,...a},l={},c={};V(i,e),await R(l,e),_(o,c);let d=s&&s.headers?s.headers:{};return i.headers={...l,...d,...a.headers},{url:A(o),options:i}},getOperationMode:async(t,r,a={})=>{m("getOperationMode","cell",t),m("getOperationMode","controller",r);const n="/cells/{cell}/controllers/{controller}/teach-pendant/operationmode".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))),o=new URL(n,P);let s;e&&(s=e.baseOptions);const i={method:"GET",...s,...a},l={},c={};V(i,e),await R(l,e),_(o,c);let d=s&&s.headers?s.headers:{};return i.headers={...l,...d,...a.headers},{url:A(o),options:i}},pushEStop:async(t,r,a={})=>{m("pushEStop","cell",t),m("pushEStop","controller",r);const n="/cells/{cell}/controllers/{controller}/teach-pendant/estop/push".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))),o=new URL(n,P);let s;e&&(s=e.baseOptions);const i={method:"PUT",...s,...a},l={},c={};V(i,e),await R(l,e),_(o,c);let d=s&&s.headers?s.headers:{};return i.headers={...l,...d,...a.headers},{url:A(o),options:i}},releaseEStop:async(t,r,a={})=>{m("releaseEStop","cell",t),m("releaseEStop","controller",r);const n="/cells/{cell}/controllers/{controller}/teach-pendant/estop/release".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))),o=new URL(n,P);let s;e&&(s=e.baseOptions);const i={method:"PUT",...s,...a},l={},c={};V(i,e),await R(l,e),_(o,c);let d=s&&s.headers?s.headers:{};return i.headers={...l,...d,...a.headers},{url:A(o),options:i}},setOperationMode:async(t,r,a,n={})=>{m("setOperationMode","cell",t),m("setOperationMode","controller",r),m("setOperationMode","mode",a);const o="/cells/{cell}/controllers/{controller}/teach-pendant/operationmode".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))),s=new URL(o,P);let i;e&&(i=e.baseOptions);const l={method:"PUT",...i,...n},c={},d={};V(l,e),await R(c,e),a!==void 0&&(d.mode=a),_(s,d);let u=i&&i.headers?i.headers:{};return l.headers={...c,...u,...n.headers},{url:A(s),options:l}}}},Lr=function(e){const t=Xv(e);return{async getCycleTime(r,a,n){var l,c;const o=await t.getCycleTime(r,a,n),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["VirtualRobotModeApi.getCycleTime"])==null?void 0:l[s])==null?void 0:c.url;return(d,u)=>T(o,O,w,e)(d,i||u)},async getEStop(r,a,n){var l,c;const o=await t.getEStop(r,a,n),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["VirtualRobotModeApi.getEStop"])==null?void 0:l[s])==null?void 0:c.url;return(d,u)=>T(o,O,w,e)(d,i||u)},async getOperationMode(r,a,n){var l,c;const o=await t.getOperationMode(r,a,n),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["VirtualRobotModeApi.getOperationMode"])==null?void 0:l[s])==null?void 0:c.url;return(d,u)=>T(o,O,w,e)(d,i||u)},async pushEStop(r,a,n){var l,c;const o=await t.pushEStop(r,a,n),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["VirtualRobotModeApi.pushEStop"])==null?void 0:l[s])==null?void 0:c.url;return(d,u)=>T(o,O,w,e)(d,i||u)},async releaseEStop(r,a,n){var l,c;const o=await t.releaseEStop(r,a,n),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["VirtualRobotModeApi.releaseEStop"])==null?void 0:l[s])==null?void 0:c.url;return(d,u)=>T(o,O,w,e)(d,i||u)},async setOperationMode(r,a,n,o){var c,d;const s=await t.setOperationMode(r,a,n,o),i=(e==null?void 0:e.serverIndex)??0,l=(d=(c=C["VirtualRobotModeApi.setOperationMode"])==null?void 0:c[i])==null?void 0:d.url;return(u,p)=>T(s,O,w,e)(u,l||p)}}};class Zv extends Pe{getCycleTime(t,r,a){return Lr(this.configuration).getCycleTime(t,r,a).then(n=>n(this.axios,this.basePath))}getEStop(t,r,a){return Lr(this.configuration).getEStop(t,r,a).then(n=>n(this.axios,this.basePath))}getOperationMode(t,r,a){return Lr(this.configuration).getOperationMode(t,r,a).then(n=>n(this.axios,this.basePath))}pushEStop(t,r,a){return Lr(this.configuration).pushEStop(t,r,a).then(n=>n(this.axios,this.basePath))}releaseEStop(t,r,a){return Lr(this.configuration).releaseEStop(t,r,a).then(n=>n(this.axios,this.basePath))}setOperationMode(t,r,a,n){return Lr(this.configuration).setOperationMode(t,r,a,n).then(o=>o(this.axios,this.basePath))}}const e1=function(e){return{addVirtualRobotCoordinateSystem:async(t,r,a,n={})=>{m("addVirtualRobotCoordinateSystem","cell",t),m("addVirtualRobotCoordinateSystem","controller",r),m("addVirtualRobotCoordinateSystem","coordinateSystem",a);const o="/cells/{cell}/controllers/{controller}/teach-pendant/coordinate-systems".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))),s=new URL(o,P);let i;e&&(i=e.baseOptions);const l={method:"PUT",...i,...n},c={},d={};V(l,e),await R(c,e),c["Content-Type"]="application/json",_(s,d);let u=i&&i.headers?i.headers:{};return l.headers={...c,...u,...n.headers},l.data=se(a,l,e),{url:A(s),options:l}},addVirtualRobotTcp:async(t,r,a,n,o={})=>{m("addVirtualRobotTcp","cell",t),m("addVirtualRobotTcp","controller",r),m("addVirtualRobotTcp","id",a),m("addVirtualRobotTcp","robotTcp",n);const s="/cells/{cell}/controllers/{controller}/teach-pendant/motion-groups/{id}/tcps".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))).replace("{id}",encodeURIComponent(String(a))),i=new URL(s,P);let l;e&&(l=e.baseOptions);const c={method:"PUT",...l,...o},d={},u={};V(c,e),await R(d,e),d["Content-Type"]="application/json",_(i,u);let p=l&&l.headers?l.headers:{};return c.headers={...d,...p,...o.headers},c.data=se(n,c,e),{url:A(i),options:c}},deleteVirtualRobotCoordinateSystem:async(t,r,a,n,o={})=>{m("deleteVirtualRobotCoordinateSystem","cell",t),m("deleteVirtualRobotCoordinateSystem","controller",r),m("deleteVirtualRobotCoordinateSystem","coordinateSystem",a);const s="/cells/{cell}/controllers/{controller}/teach-pendant/coordinate-systems/{coordinate-system}".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))).replace("{coordinate-system}",encodeURIComponent(String(a))),i=new URL(s,P);let l;e&&(l=e.baseOptions);const c={method:"DELETE",...l,...o},d={},u={};V(c,e),await R(d,e),n!==void 0&&(u.delete_dependent=n),_(i,u);let p=l&&l.headers?l.headers:{};return c.headers={...d,...p,...o.headers},{url:A(i),options:c}},deleteVirtualRobotTcp:async(t,r,a,n,o={})=>{m("deleteVirtualRobotTcp","cell",t),m("deleteVirtualRobotTcp","controller",r),m("deleteVirtualRobotTcp","id",a),m("deleteVirtualRobotTcp","tcp",n);const s="/cells/{cell}/controllers/{controller}/teach-pendant/motion-groups/{id}/tcps/{tcp}".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))).replace("{id}",encodeURIComponent(String(a))).replace("{tcp}",encodeURIComponent(String(n))),i=new URL(s,P);let l;e&&(l=e.baseOptions);const c={method:"DELETE",...l,...o},d={},u={};V(c,e),await R(d,e),_(i,u);let p=l&&l.headers?l.headers:{};return c.headers={...d,...p,...o.headers},{url:A(i),options:c}},getVirtualRobotMounting:async(t,r,a,n={})=>{m("getVirtualRobotMounting","cell",t),m("getVirtualRobotMounting","controller",r),m("getVirtualRobotMounting","id",a);const o="/cells/{cell}/controllers/{controller}/teach-pendant/motion-groups/{id}/mounting".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))).replace("{id}",encodeURIComponent(String(a))),s=new URL(o,P);let i;e&&(i=e.baseOptions);const l={method:"GET",...i,...n},c={},d={};V(l,e),await R(c,e),_(s,d);let u=i&&i.headers?i.headers:{};return l.headers={...c,...u,...n.headers},{url:A(s),options:l}},listVirtualRobotCoordinateSystems:async(t,r,a={})=>{m("listVirtualRobotCoordinateSystems","cell",t),m("listVirtualRobotCoordinateSystems","controller",r);const n="/cells/{cell}/controllers/{controller}/teach-pendant/coordinate-systems".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))),o=new URL(n,P);let s;e&&(s=e.baseOptions);const i={method:"GET",...s,...a},l={},c={};V(i,e),await R(l,e),_(o,c);let d=s&&s.headers?s.headers:{};return i.headers={...l,...d,...a.headers},{url:A(o),options:i}},listVirtualRobotTcps:async(t,r,a,n={})=>{m("listVirtualRobotTcps","cell",t),m("listVirtualRobotTcps","controller",r),m("listVirtualRobotTcps","id",a);const o="/cells/{cell}/controllers/{controller}/teach-pendant/motion-groups/{id}/tcps".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))).replace("{id}",encodeURIComponent(String(a))),s=new URL(o,P);let i;e&&(i=e.baseOptions);const l={method:"GET",...i,...n},c={},d={};V(l,e),await R(c,e),_(s,d);let u=i&&i.headers?i.headers:{};return l.headers={...c,...u,...n.headers},{url:A(s),options:l}},setVirtualRobotMounting:async(t,r,a,n,o={})=>{m("setVirtualRobotMounting","cell",t),m("setVirtualRobotMounting","controller",r),m("setVirtualRobotMounting","id",a),m("setVirtualRobotMounting","coordinateSystem",n);const s="/cells/{cell}/controllers/{controller}/teach-pendant/motion-groups/{id}/mounting".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))).replace("{id}",encodeURIComponent(String(a))),i=new URL(s,P);let l;e&&(l=e.baseOptions);const c={method:"PUT",...l,...o},d={},u={};V(c,e),await R(d,e),d["Content-Type"]="application/json",_(i,u);let p=l&&l.headers?l.headers:{};return c.headers={...d,...p,...o.headers},c.data=se(n,c,e),{url:A(i),options:c}}}},Ht=function(e){const t=e1(e);return{async addVirtualRobotCoordinateSystem(r,a,n,o){var c,d;const s=await t.addVirtualRobotCoordinateSystem(r,a,n,o),i=(e==null?void 0:e.serverIndex)??0,l=(d=(c=C["VirtualRobotSetupApi.addVirtualRobotCoordinateSystem"])==null?void 0:c[i])==null?void 0:d.url;return(u,p)=>T(s,O,w,e)(u,l||p)},async addVirtualRobotTcp(r,a,n,o,s){var d,u;const i=await t.addVirtualRobotTcp(r,a,n,o,s),l=(e==null?void 0:e.serverIndex)??0,c=(u=(d=C["VirtualRobotSetupApi.addVirtualRobotTcp"])==null?void 0:d[l])==null?void 0:u.url;return(p,f)=>T(i,O,w,e)(p,c||f)},async deleteVirtualRobotCoordinateSystem(r,a,n,o,s){var d,u;const i=await t.deleteVirtualRobotCoordinateSystem(r,a,n,o,s),l=(e==null?void 0:e.serverIndex)??0,c=(u=(d=C["VirtualRobotSetupApi.deleteVirtualRobotCoordinateSystem"])==null?void 0:d[l])==null?void 0:u.url;return(p,f)=>T(i,O,w,e)(p,c||f)},async deleteVirtualRobotTcp(r,a,n,o,s){var d,u;const i=await t.deleteVirtualRobotTcp(r,a,n,o,s),l=(e==null?void 0:e.serverIndex)??0,c=(u=(d=C["VirtualRobotSetupApi.deleteVirtualRobotTcp"])==null?void 0:d[l])==null?void 0:u.url;return(p,f)=>T(i,O,w,e)(p,c||f)},async getVirtualRobotMounting(r,a,n,o){var c,d;const s=await t.getVirtualRobotMounting(r,a,n,o),i=(e==null?void 0:e.serverIndex)??0,l=(d=(c=C["VirtualRobotSetupApi.getVirtualRobotMounting"])==null?void 0:c[i])==null?void 0:d.url;return(u,p)=>T(s,O,w,e)(u,l||p)},async listVirtualRobotCoordinateSystems(r,a,n){var l,c;const o=await t.listVirtualRobotCoordinateSystems(r,a,n),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["VirtualRobotSetupApi.listVirtualRobotCoordinateSystems"])==null?void 0:l[s])==null?void 0:c.url;return(d,u)=>T(o,O,w,e)(d,i||u)},async listVirtualRobotTcps(r,a,n,o){var c,d;const s=await t.listVirtualRobotTcps(r,a,n,o),i=(e==null?void 0:e.serverIndex)??0,l=(d=(c=C["VirtualRobotSetupApi.listVirtualRobotTcps"])==null?void 0:c[i])==null?void 0:d.url;return(u,p)=>T(s,O,w,e)(u,l||p)},async setVirtualRobotMounting(r,a,n,o,s){var d,u;const i=await t.setVirtualRobotMounting(r,a,n,o,s),l=(e==null?void 0:e.serverIndex)??0,c=(u=(d=C["VirtualRobotSetupApi.setVirtualRobotMounting"])==null?void 0:d[l])==null?void 0:u.url;return(p,f)=>T(i,O,w,e)(p,c||f)}}};class t1 extends Pe{addVirtualRobotCoordinateSystem(t,r,a,n){return Ht(this.configuration).addVirtualRobotCoordinateSystem(t,r,a,n).then(o=>o(this.axios,this.basePath))}addVirtualRobotTcp(t,r,a,n,o){return Ht(this.configuration).addVirtualRobotTcp(t,r,a,n,o).then(s=>s(this.axios,this.basePath))}deleteVirtualRobotCoordinateSystem(t,r,a,n,o){return Ht(this.configuration).deleteVirtualRobotCoordinateSystem(t,r,a,n,o).then(s=>s(this.axios,this.basePath))}deleteVirtualRobotTcp(t,r,a,n,o){return Ht(this.configuration).deleteVirtualRobotTcp(t,r,a,n,o).then(s=>s(this.axios,this.basePath))}getVirtualRobotMounting(t,r,a,n){return Ht(this.configuration).getVirtualRobotMounting(t,r,a,n).then(o=>o(this.axios,this.basePath))}listVirtualRobotCoordinateSystems(t,r,a){return Ht(this.configuration).listVirtualRobotCoordinateSystems(t,r,a).then(n=>n(this.axios,this.basePath))}listVirtualRobotTcps(t,r,a,n){return Ht(this.configuration).listVirtualRobotTcps(t,r,a,n).then(o=>o(this.axios,this.basePath))}setVirtualRobotMounting(t,r,a,n,o){return Ht(this.configuration).setVirtualRobotMounting(t,r,a,n,o).then(s=>s(this.axios,this.basePath))}}function Mt(e,t,r){return Math.max(t,Math.min(r,e))}class r1{constructor(t=0,r=0,a=0,n=1){this.isQuaternion=!0,this._x=t,this._y=r,this._z=a,this._w=n}static slerpFlat(t,r,a,n,o,s,i){let l=a[n+0],c=a[n+1],d=a[n+2],u=a[n+3];const p=o[s+0],f=o[s+1],y=o[s+2],h=o[s+3];if(i===0){t[r+0]=l,t[r+1]=c,t[r+2]=d,t[r+3]=u;return}if(i===1){t[r+0]=p,t[r+1]=f,t[r+2]=y,t[r+3]=h;return}if(u!==h||l!==p||c!==f||d!==y){let x=1-i;const I=l*p+c*f+d*y+u*h,k=I>=0?1:-1,F=1-I*I;if(F>Number.EPSILON){const z=Math.sqrt(F),K=Math.atan2(z,I*k);x=Math.sin(x*K)/z,i=Math.sin(i*K)/z}const N=i*k;if(l=l*x+p*N,c=c*x+f*N,d=d*x+y*N,u=u*x+h*N,x===1-i){const z=1/Math.sqrt(l*l+c*c+d*d+u*u);l*=z,c*=z,d*=z,u*=z}}t[r]=l,t[r+1]=c,t[r+2]=d,t[r+3]=u}static multiplyQuaternionsFlat(t,r,a,n,o,s){const i=a[n],l=a[n+1],c=a[n+2],d=a[n+3],u=o[s],p=o[s+1],f=o[s+2],y=o[s+3];return t[r]=i*y+d*u+l*f-c*p,t[r+1]=l*y+d*p+c*u-i*f,t[r+2]=c*y+d*f+i*p-l*u,t[r+3]=d*y-i*u-l*p-c*f,t}get x(){return this._x}set x(t){this._x=t,this._onChangeCallback()}get y(){return this._y}set y(t){this._y=t,this._onChangeCallback()}get z(){return this._z}set z(t){this._z=t,this._onChangeCallback()}get w(){return this._w}set w(t){this._w=t,this._onChangeCallback()}set(t,r,a,n){return this._x=t,this._y=r,this._z=a,this._w=n,this._onChangeCallback(),this}clone(){return new this.constructor(this._x,this._y,this._z,this._w)}copy(t){return this._x=t.x,this._y=t.y,this._z=t.z,this._w=t.w,this._onChangeCallback(),this}setFromEuler(t,r=!0){const a=t._x,n=t._y,o=t._z,s=t._order,i=Math.cos,l=Math.sin,c=i(a/2),d=i(n/2),u=i(o/2),p=l(a/2),f=l(n/2),y=l(o/2);switch(s){case"XYZ":this._x=p*d*u+c*f*y,this._y=c*f*u-p*d*y,this._z=c*d*y+p*f*u,this._w=c*d*u-p*f*y;break;case"YXZ":this._x=p*d*u+c*f*y,this._y=c*f*u-p*d*y,this._z=c*d*y-p*f*u,this._w=c*d*u+p*f*y;break;case"ZXY":this._x=p*d*u-c*f*y,this._y=c*f*u+p*d*y,this._z=c*d*y+p*f*u,this._w=c*d*u-p*f*y;break;case"ZYX":this._x=p*d*u-c*f*y,this._y=c*f*u+p*d*y,this._z=c*d*y-p*f*u,this._w=c*d*u+p*f*y;break;case"YZX":this._x=p*d*u+c*f*y,this._y=c*f*u+p*d*y,this._z=c*d*y-p*f*u,this._w=c*d*u-p*f*y;break;case"XZY":this._x=p*d*u-c*f*y,this._y=c*f*u-p*d*y,this._z=c*d*y+p*f*u,this._w=c*d*u+p*f*y;break;default:console.warn("THREE.Quaternion: .setFromEuler() encountered an unknown order: "+s)}return r===!0&&this._onChangeCallback(),this}setFromAxisAngle(t,r){const a=r/2,n=Math.sin(a);return this._x=t.x*n,this._y=t.y*n,this._z=t.z*n,this._w=Math.cos(a),this._onChangeCallback(),this}setFromRotationMatrix(t){const r=t.elements,a=r[0],n=r[4],o=r[8],s=r[1],i=r[5],l=r[9],c=r[2],d=r[6],u=r[10],p=a+i+u;if(p>0){const f=.5/Math.sqrt(p+1);this._w=.25/f,this._x=(d-l)*f,this._y=(o-c)*f,this._z=(s-n)*f}else if(a>i&&a>u){const f=2*Math.sqrt(1+a-i-u);this._w=(d-l)/f,this._x=.25*f,this._y=(n+s)/f,this._z=(o+c)/f}else if(i>u){const f=2*Math.sqrt(1+i-a-u);this._w=(o-c)/f,this._x=(n+s)/f,this._y=.25*f,this._z=(l+d)/f}else{const f=2*Math.sqrt(1+u-a-i);this._w=(s-n)/f,this._x=(o+c)/f,this._y=(l+d)/f,this._z=.25*f}return this._onChangeCallback(),this}setFromUnitVectors(t,r){let a=t.dot(r)+1;return a<Number.EPSILON?(a=0,Math.abs(t.x)>Math.abs(t.z)?(this._x=-t.y,this._y=t.x,this._z=0,this._w=a):(this._x=0,this._y=-t.z,this._z=t.y,this._w=a)):(this._x=t.y*r.z-t.z*r.y,this._y=t.z*r.x-t.x*r.z,this._z=t.x*r.y-t.y*r.x,this._w=a),this.normalize()}angleTo(t){return 2*Math.acos(Math.abs(Mt(this.dot(t),-1,1)))}rotateTowards(t,r){const a=this.angleTo(t);if(a===0)return this;const n=Math.min(1,r/a);return this.slerp(t,n),this}identity(){return this.set(0,0,0,1)}invert(){return this.conjugate()}conjugate(){return this._x*=-1,this._y*=-1,this._z*=-1,this._onChangeCallback(),this}dot(t){return this._x*t._x+this._y*t._y+this._z*t._z+this._w*t._w}lengthSq(){return this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w}length(){return Math.sqrt(this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w)}normalize(){let t=this.length();return t===0?(this._x=0,this._y=0,this._z=0,this._w=1):(t=1/t,this._x=this._x*t,this._y=this._y*t,this._z=this._z*t,this._w=this._w*t),this._onChangeCallback(),this}multiply(t){return this.multiplyQuaternions(this,t)}premultiply(t){return this.multiplyQuaternions(t,this)}multiplyQuaternions(t,r){const a=t._x,n=t._y,o=t._z,s=t._w,i=r._x,l=r._y,c=r._z,d=r._w;return this._x=a*d+s*i+n*c-o*l,this._y=n*d+s*l+o*i-a*c,this._z=o*d+s*c+a*l-n*i,this._w=s*d-a*i-n*l-o*c,this._onChangeCallback(),this}slerp(t,r){if(r===0)return this;if(r===1)return this.copy(t);const a=this._x,n=this._y,o=this._z,s=this._w;let i=s*t._w+a*t._x+n*t._y+o*t._z;if(i<0?(this._w=-t._w,this._x=-t._x,this._y=-t._y,this._z=-t._z,i=-i):this.copy(t),i>=1)return this._w=s,this._x=a,this._y=n,this._z=o,this;const l=1-i*i;if(l<=Number.EPSILON){const f=1-r;return this._w=f*s+r*this._w,this._x=f*a+r*this._x,this._y=f*n+r*this._y,this._z=f*o+r*this._z,this.normalize(),this}const c=Math.sqrt(l),d=Math.atan2(c,i),u=Math.sin((1-r)*d)/c,p=Math.sin(r*d)/c;return this._w=s*u+this._w*p,this._x=a*u+this._x*p,this._y=n*u+this._y*p,this._z=o*u+this._z*p,this._onChangeCallback(),this}slerpQuaternions(t,r,a){return this.copy(t).slerp(r,a)}random(){const t=2*Math.PI*Math.random(),r=2*Math.PI*Math.random(),a=Math.random(),n=Math.sqrt(1-a),o=Math.sqrt(a);return this.set(n*Math.sin(t),n*Math.cos(t),o*Math.sin(r),o*Math.cos(r))}equals(t){return t._x===this._x&&t._y===this._y&&t._z===this._z&&t._w===this._w}fromArray(t,r=0){return this._x=t[r],this._y=t[r+1],this._z=t[r+2],this._w=t[r+3],this._onChangeCallback(),this}toArray(t=[],r=0){return t[r]=this._x,t[r+1]=this._y,t[r+2]=this._z,t[r+3]=this._w,t}fromBufferAttribute(t,r){return this._x=t.getX(r),this._y=t.getY(r),this._z=t.getZ(r),this._w=t.getW(r),this._onChangeCallback(),this}toJSON(){return this.toArray()}_onChange(t){return this._onChangeCallback=t,this}_onChangeCallback(){}*[Symbol.iterator](){yield this._x,yield this._y,yield this._z,yield this._w}}class Gr{constructor(t=0,r=0,a=0){Gr.prototype.isVector3=!0,this.x=t,this.y=r,this.z=a}set(t,r,a){return a===void 0&&(a=this.z),this.x=t,this.y=r,this.z=a,this}setScalar(t){return this.x=t,this.y=t,this.z=t,this}setX(t){return this.x=t,this}setY(t){return this.y=t,this}setZ(t){return this.z=t,this}setComponent(t,r){switch(t){case 0:this.x=r;break;case 1:this.y=r;break;case 2:this.z=r;break;default:throw new Error("index is out of range: "+t)}return this}getComponent(t){switch(t){case 0:return this.x;case 1:return this.y;case 2:return this.z;default:throw new Error("index is out of range: "+t)}}clone(){return new this.constructor(this.x,this.y,this.z)}copy(t){return this.x=t.x,this.y=t.y,this.z=t.z,this}add(t){return this.x+=t.x,this.y+=t.y,this.z+=t.z,this}addScalar(t){return this.x+=t,this.y+=t,this.z+=t,this}addVectors(t,r){return this.x=t.x+r.x,this.y=t.y+r.y,this.z=t.z+r.z,this}addScaledVector(t,r){return this.x+=t.x*r,this.y+=t.y*r,this.z+=t.z*r,this}sub(t){return this.x-=t.x,this.y-=t.y,this.z-=t.z,this}subScalar(t){return this.x-=t,this.y-=t,this.z-=t,this}subVectors(t,r){return this.x=t.x-r.x,this.y=t.y-r.y,this.z=t.z-r.z,this}multiply(t){return this.x*=t.x,this.y*=t.y,this.z*=t.z,this}multiplyScalar(t){return this.x*=t,this.y*=t,this.z*=t,this}multiplyVectors(t,r){return this.x=t.x*r.x,this.y=t.y*r.y,this.z=t.z*r.z,this}applyEuler(t){return this.applyQuaternion(nl.setFromEuler(t))}applyAxisAngle(t,r){return this.applyQuaternion(nl.setFromAxisAngle(t,r))}applyMatrix3(t){const r=this.x,a=this.y,n=this.z,o=t.elements;return this.x=o[0]*r+o[3]*a+o[6]*n,this.y=o[1]*r+o[4]*a+o[7]*n,this.z=o[2]*r+o[5]*a+o[8]*n,this}applyNormalMatrix(t){return this.applyMatrix3(t).normalize()}applyMatrix4(t){const r=this.x,a=this.y,n=this.z,o=t.elements,s=1/(o[3]*r+o[7]*a+o[11]*n+o[15]);return this.x=(o[0]*r+o[4]*a+o[8]*n+o[12])*s,this.y=(o[1]*r+o[5]*a+o[9]*n+o[13])*s,this.z=(o[2]*r+o[6]*a+o[10]*n+o[14])*s,this}applyQuaternion(t){const r=this.x,a=this.y,n=this.z,o=t.x,s=t.y,i=t.z,l=t.w,c=2*(s*n-i*a),d=2*(i*r-o*n),u=2*(o*a-s*r);return this.x=r+l*c+s*u-i*d,this.y=a+l*d+i*c-o*u,this.z=n+l*u+o*d-s*c,this}project(t){return this.applyMatrix4(t.matrixWorldInverse).applyMatrix4(t.projectionMatrix)}unproject(t){return this.applyMatrix4(t.projectionMatrixInverse).applyMatrix4(t.matrixWorld)}transformDirection(t){const r=this.x,a=this.y,n=this.z,o=t.elements;return this.x=o[0]*r+o[4]*a+o[8]*n,this.y=o[1]*r+o[5]*a+o[9]*n,this.z=o[2]*r+o[6]*a+o[10]*n,this.normalize()}divide(t){return this.x/=t.x,this.y/=t.y,this.z/=t.z,this}divideScalar(t){return this.multiplyScalar(1/t)}min(t){return this.x=Math.min(this.x,t.x),this.y=Math.min(this.y,t.y),this.z=Math.min(this.z,t.z),this}max(t){return this.x=Math.max(this.x,t.x),this.y=Math.max(this.y,t.y),this.z=Math.max(this.z,t.z),this}clamp(t,r){return this.x=Mt(this.x,t.x,r.x),this.y=Mt(this.y,t.y,r.y),this.z=Mt(this.z,t.z,r.z),this}clampScalar(t,r){return this.x=Mt(this.x,t,r),this.y=Mt(this.y,t,r),this.z=Mt(this.z,t,r),this}clampLength(t,r){const a=this.length();return this.divideScalar(a||1).multiplyScalar(Mt(a,t,r))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this.z=Math.floor(this.z),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this.z=Math.ceil(this.z),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this.z=Math.round(this.z),this}roundToZero(){return this.x=Math.trunc(this.x),this.y=Math.trunc(this.y),this.z=Math.trunc(this.z),this}negate(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this}dot(t){return this.x*t.x+this.y*t.y+this.z*t.z}lengthSq(){return this.x*this.x+this.y*this.y+this.z*this.z}length(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)}normalize(){return this.divideScalar(this.length()||1)}setLength(t){return this.normalize().multiplyScalar(t)}lerp(t,r){return this.x+=(t.x-this.x)*r,this.y+=(t.y-this.y)*r,this.z+=(t.z-this.z)*r,this}lerpVectors(t,r,a){return this.x=t.x+(r.x-t.x)*a,this.y=t.y+(r.y-t.y)*a,this.z=t.z+(r.z-t.z)*a,this}cross(t){return this.crossVectors(this,t)}crossVectors(t,r){const a=t.x,n=t.y,o=t.z,s=r.x,i=r.y,l=r.z;return this.x=n*l-o*i,this.y=o*s-a*l,this.z=a*i-n*s,this}projectOnVector(t){const r=t.lengthSq();if(r===0)return this.set(0,0,0);const a=t.dot(this)/r;return this.copy(t).multiplyScalar(a)}projectOnPlane(t){return To.copy(this).projectOnVector(t),this.sub(To)}reflect(t){return this.sub(To.copy(t).multiplyScalar(2*this.dot(t)))}angleTo(t){const r=Math.sqrt(this.lengthSq()*t.lengthSq());if(r===0)return Math.PI/2;const a=this.dot(t)/r;return Math.acos(Mt(a,-1,1))}distanceTo(t){return Math.sqrt(this.distanceToSquared(t))}distanceToSquared(t){const r=this.x-t.x,a=this.y-t.y,n=this.z-t.z;return r*r+a*a+n*n}manhattanDistanceTo(t){return Math.abs(this.x-t.x)+Math.abs(this.y-t.y)+Math.abs(this.z-t.z)}setFromSpherical(t){return this.setFromSphericalCoords(t.radius,t.phi,t.theta)}setFromSphericalCoords(t,r,a){const n=Math.sin(r)*t;return this.x=n*Math.sin(a),this.y=Math.cos(r)*t,this.z=n*Math.cos(a),this}setFromCylindrical(t){return this.setFromCylindricalCoords(t.radius,t.theta,t.y)}setFromCylindricalCoords(t,r,a){return this.x=t*Math.sin(r),this.y=a,this.z=t*Math.cos(r),this}setFromMatrixPosition(t){const r=t.elements;return this.x=r[12],this.y=r[13],this.z=r[14],this}setFromMatrixScale(t){const r=this.setFromMatrixColumn(t,0).length(),a=this.setFromMatrixColumn(t,1).length(),n=this.setFromMatrixColumn(t,2).length();return this.x=r,this.y=a,this.z=n,this}setFromMatrixColumn(t,r){return this.fromArray(t.elements,r*4)}setFromMatrix3Column(t,r){return this.fromArray(t.elements,r*3)}setFromEuler(t){return this.x=t._x,this.y=t._y,this.z=t._z,this}setFromColor(t){return this.x=t.r,this.y=t.g,this.z=t.b,this}equals(t){return t.x===this.x&&t.y===this.y&&t.z===this.z}fromArray(t,r=0){return this.x=t[r],this.y=t[r+1],this.z=t[r+2],this}toArray(t=[],r=0){return t[r]=this.x,t[r+1]=this.y,t[r+2]=this.z,t}fromBufferAttribute(t,r){return this.x=t.getX(r),this.y=t.getY(r),this.z=t.getZ(r),this}random(){return this.x=Math.random(),this.y=Math.random(),this.z=Math.random(),this}randomDirection(){const t=Math.random()*Math.PI*2,r=Math.random()*2-1,a=Math.sqrt(1-r*r);return this.x=a*Math.cos(t),this.y=r,this.z=a*Math.sin(t),this}*[Symbol.iterator](){yield this.x,yield this.y,yield this.z}}const To=new Gr,nl=new r1;function a1(e){var t=[];if(e.length===0)return"";if(typeof e[0]!="string")throw new TypeError("Url must be a string. Received "+e[0]);if(e[0].match(/^[^/:]+:\/*$/)&&e.length>1){var r=e.shift();e[0]=r+e[0]}e[0].match(/^file:\/\/\//)?e[0]=e[0].replace(/^([^/:]+):\/*/,"$1:///"):e[0]=e[0].replace(/^([^/:]+):\/*/,"$1://");for(var a=0;a<e.length;a++){var n=e[a];if(typeof n!="string")throw new TypeError("Url must be a string. Received "+n);n!==""&&(a>0&&(n=n.replace(/^[\/]+/,"")),a<e.length-1?n=n.replace(/[\/]+$/,""):n=n.replace(/[\/]+$/,"/"),t.push(n))}var o=t.join("/");o=o.replace(/\/(\?|&|#[^!])/g,"$1");var s=o.split("?");return o=s.shift()+(s.length>0?"?":"")+s.join("&"),o}function Eo(){var e;return typeof arguments[0]=="object"?e=arguments[0]:e=[].slice.call(arguments),a1(e)}var xt={},ol;function n1(){if(ol)return xt;ol=1,Object.defineProperty(xt,"__esModule",{value:!0}),xt.TokenData=void 0,xt.parse=u,xt.compile=p,xt.match=h,xt.pathToRegexp=x,xt.stringify=N;const e="/",t=E=>E,r=/^[$_\p{ID_Start}]$/u,a=/^[$\u200c\u200d\p{ID_Continue}]$/u,n="https://git.new/pathToRegexpError",o={"{":"{","}":"}","(":"(",")":")","[":"[","]":"]","+":"+","?":"?","!":"!"};function s(E){return E.replace(/[{}()\[\]+?!:*]/g,"\\$&")}function i(E){return E.replace(/[.+*?^${}()[\]|/\\]/g,"\\$&")}function*l(E){const $=[...E];let L=0;function g(){let M="";if(r.test($[++L]))for(M+=$[L];a.test($[++L]);)M+=$[L];else if($[L]==='"'){let B=L;for(;L<$.length;){if($[++L]==='"'){L++,B=0;break}$[L]==="\\"?M+=$[++L]:M+=$[L]}if(B)throw new TypeError(`Unterminated quote at ${B}: ${n}`)}if(!M)throw new TypeError(`Missing parameter name at ${L}: ${n}`);return M}for(;L<$.length;){const M=$[L],B=o[M];if(B)yield{type:B,index:L++,value:M};else if(M==="\\")yield{type:"ESCAPED",index:L++,value:$[L++]};else if(M===":"){const G=g();yield{type:"PARAM",index:L,value:G}}else if(M==="*"){const G=g();yield{type:"WILDCARD",index:L,value:G}}else yield{type:"CHAR",index:L,value:$[L++]}}return{type:"END",index:L,value:""}}class c{constructor($){this.tokens=$}peek(){if(!this._peek){const $=this.tokens.next();this._peek=$.value}return this._peek}tryConsume($){const L=this.peek();if(L.type===$)return this._peek=void 0,L.value}consume($){const L=this.tryConsume($);if(L!==void 0)return L;const{type:g,index:M}=this.peek();throw new TypeError(`Unexpected ${g} at ${M}, expected ${$}: ${n}`)}text(){let $="",L;for(;L=this.tryConsume("CHAR")||this.tryConsume("ESCAPED");)$+=L;return $}}class d{constructor($){this.tokens=$}}xt.TokenData=d;function u(E,$={}){const{encodePath:L=t}=$,g=new c(l(E));function M(G){const D=[];for(;;){const re=g.text();re&&D.push({type:"text",value:L(re)});const Z=g.tryConsume("PARAM");if(Z){D.push({type:"param",name:Z});continue}const xe=g.tryConsume("WILDCARD");if(xe){D.push({type:"wildcard",name:xe});continue}if(g.tryConsume("{")){D.push({type:"group",tokens:M("}")});continue}return g.consume(G),D}}const B=M("END");return new d(B)}function p(E,$={}){const{encode:L=encodeURIComponent,delimiter:g=e}=$,M=E instanceof d?E:u(E,$),B=f(M.tokens,g,L);return function(D={}){const[re,...Z]=B(D);if(Z.length)throw new TypeError(`Missing parameters: ${Z.join(", ")}`);return re}}function f(E,$,L){const g=E.map(M=>y(M,$,L));return M=>{const B=[""];for(const G of g){const[D,...re]=G(M);B[0]+=D,B.push(...re)}return B}}function y(E,$,L){if(E.type==="text")return()=>[E.value];if(E.type==="group"){const M=f(E.tokens,$,L);return B=>{const[G,...D]=M(B);return D.length?[""]:[G]}}const g=L||t;return E.type==="wildcard"&&L!==!1?M=>{const B=M[E.name];if(B==null)return["",E.name];if(!Array.isArray(B)||B.length===0)throw new TypeError(`Expected "${E.name}" to be a non-empty array`);return[B.map((G,D)=>{if(typeof G!="string")throw new TypeError(`Expected "${E.name}/${D}" to be a string`);return g(G)}).join($)]}:M=>{const B=M[E.name];if(B==null)return["",E.name];if(typeof B!="string")throw new TypeError(`Expected "${E.name}" to be a string`);return[g(B)]}}function h(E,$={}){const{decode:L=decodeURIComponent,delimiter:g=e}=$,{regexp:M,keys:B}=x(E,$),G=B.map(D=>L===!1?t:D.type==="param"?L:re=>re.split(g).map(L));return function(re){const Z=M.exec(re);if(!Z)return!1;const xe=Z[0],X=Object.create(null);for(let ce=1;ce<Z.length;ce++){if(Z[ce]===void 0)continue;const fe=B[ce-1],le=G[ce-1];X[fe.name]=le(Z[ce])}return{path:xe,params:X}}}function x(E,$={}){const{delimiter:L=e,end:g=!0,sensitive:M=!1,trailing:B=!0}=$,G=[],D=[],re=M?"":"i",xe=(Array.isArray(E)?E:[E]).map(fe=>fe instanceof d?fe:u(fe,$));for(const{tokens:fe}of xe)for(const le of I(fe,0,[])){const He=k(le,L,G);D.push(He)}let X=`^(?:${D.join("|")})`;return B&&(X+=`(?:${i(L)}$)?`),X+=g?"$":`(?=${i(L)}|$)`,{regexp:new RegExp(X,re),keys:G}}function*I(E,$,L){if($===E.length)return yield L;const g=E[$];if(g.type==="group"){const M=L.slice();for(const B of I(g.tokens,0,M))yield*I(E,$+1,B)}else L.push(g);yield*I(E,$+1,L)}function k(E,$,L){let g="",M="",B=!0;for(let G=0;G<E.length;G++){const D=E[G];if(D.type==="text"){g+=i(D.value),M+=D.value,B||(B=D.value.includes($));continue}if(D.type==="param"||D.type==="wildcard"){if(!B&&!M)throw new TypeError(`Missing text after "${D.name}": ${n}`);D.type==="param"?g+=`(${F($,B?"":M)}+)`:g+="([\\s\\S]+)",L.push(D),M="",B=!1;continue}}return g}function F(E,$){return $.length<2?E.length<2?`[^${i(E+$)}]`:`(?:(?!${i(E)})[^${i($)}])`:E.length<2?`(?:(?!${i($)})[^${i(E)}])`:`(?:(?!${i($)}|${i(E)})[\\s\\S])`}function N(E){return E.tokens.map(function $(L,g,M){if(L.type==="text")return s(L.value);if(L.type==="group")return`{${L.tokens.map($).join("")}}`;const G=z(L.name)&&K(M[g+1])?L.name:JSON.stringify(L.name);if(L.type==="param")return`:${G}`;if(L.type==="wildcard")return`*${G}`;throw new TypeError(`Unexpected token: ${L}`)}).join("")}function z(E){const[$,...L]=E;return r.test($)?L.every(g=>a.test(g)):!1}function K(E){return(E==null?void 0:E.type)!=="text"?!0:!a.test(E.value[0])}return xt}var o1=n1();function Yc(e,t,r){if(t.length!==e.length)return!0;for(let a=0;a<t.length;a++)if(Math.abs(t[a]-e[a])>r)return!1;return!0}function Xc(e,t,r){if(e===void 0&&t||e&&t===void 0)return!1;if(e===void 0||t===void 0)return!0;let a=0;return a+=Math.abs(e.orientation.x-t.orientation.x),a+=Math.abs(e.orientation.y-t.orientation.y),a+=Math.abs(e.orientation.z-t.orientation.z),a+=Math.abs(e.position.x-t.position.x),a+=Math.abs(e.position.y-t.position.y),a+=Math.abs(e.position.z-t.position.z),a>r?!1:e.coordinate_system===t.coordinate_system&&e.tcp===t.tcp}var sl=1e-4,s1=class Zc{constructor(t,r,a,n,o,s,i,l,c,d,u,p){this.nova=t,this.controller=r,this.motionGroup=a,this.initialMotionState=n,this.motionStateSocket=o,this.isVirtual=s,this.tcps=i,this.motionGroupSpecification=l,this.safetySetup=c,this.mounting=d,this.initialControllerState=u,this.controllerStateSocket=p,this.connectedJoggingCartesianSocket=null,this.connectedJoggingJointsSocket=null,this.joggingVelocity=10,this.activationState="inactive",this.rapidlyChangingMotionState=n,this.controllerState=u,p.addEventListener("message",f=>{var y;const h=(y=Kt(f.data))==null?void 0:y.result;h&&Be.runInAction(()=>{this.controllerState=h})}),o.addEventListener("message",f=>{var y;const h=(y=Kt(f.data))==null?void 0:y.result;if(!h)throw new Error(`Failed to get motion state for ${this.motionGroupId}: ${f.data}`);Yc(this.rapidlyChangingMotionState.state.joint_position.joints,h.state.joint_position.joints,sl)||Be.runInAction(()=>{this.rapidlyChangingMotionState.state=h.state}),Xc(this.rapidlyChangingMotionState.tcp_pose,h.tcp_pose,sl)||Be.runInAction(()=>{this.rapidlyChangingMotionState.tcp_pose=h.tcp_pose})}),Be.makeAutoObservable(this)}static connect(t,r,a){return Ce(this,null,function*(){var n,o;const[s,i]=r.split("@"),l=a.find(K=>K.controller===i),c=l==null?void 0:l.physical_motion_groups.find(K=>K.motion_group===r);if(!l||!c)throw new Error(`Controller ${i} or motion group ${r} not found`);const d=t.openReconnectingWebsocket(`/motion-groups/${r}/state-stream`),u=yield d.firstMessage(),p=(n=Kt(u.data))==null?void 0:n.result;if(!p)throw new Error(`Unable to parse initial motion state message ${u.data}`);console.log(`Connected motion state websocket to motion group ${c.motion_group}. Initial state:
112
- `,p);const y=(yield t.api.controller.getRobotController(l.controller)).configuration.kind==="VirtualController",h=yield Ce(this,null,function*(){try{return yield t.api.motionGroupInfos.getMounting(c.motion_group)}catch(K){return console.error(`Error fetching mounting for ${c.motion_group}`,K),null}}),x=t.openReconnectingWebsocket(`/controllers/${l.controller}/state-stream?response_rate=1000`),I=yield x.firstMessage(),k=(o=Kt(I.data))==null?void 0:o.result;if(!k)throw new Error(`Unable to parse initial controller state message ${I.data}`);console.log(`Connected controller state websocket to controller ${l.controller}. Initial state:
113
- `,k);const{tcps:F}=yield t.api.motionGroupInfos.listTcps(r),N=yield t.api.motionGroupInfos.getMotionGroupSpecification(r),z=yield t.api.motionGroupInfos.getSafetySetup(r);return new Zc(t,l,c,p,d,y,F,N,z,h,k,x)})}get motionGroupId(){return this.motionGroup.motion_group}get controllerId(){return this.controller.controller}get modelFromController(){return this.motionGroup.model_from_controller}get wandelscriptIdentifier(){const t=this.motionGroupId.split("@")[0];return`${this.controllerId.replaceAll("-","_")}_${t}`}get joggingVelocityRads(){return this.joggingVelocity*Math.PI/180}get joints(){return this.initialMotionState.state.joint_position.joints.map((t,r)=>({index:r}))}get dhParameters(){return this.motionGroupSpecification.dh_parameters}get safetyZones(){return this.safetySetup.safety_zones}get mountingPosition(){return this.mounting?[this.mounting.pose.position.x/1e3,this.mounting.pose.position.y/1e3,this.mounting.pose.position.z/1e3]:[0,0,0]}get mountingQuaternion(){var t,r,a,n,o,s;const i=new Ie.Vector3(((r=(t=this.mounting)==null?void 0:t.pose.orientation)==null?void 0:r.x)||0,((n=(a=this.mounting)==null?void 0:a.pose.orientation)==null?void 0:n.y)||0,((s=(o=this.mounting)==null?void 0:o.pose.orientation)==null?void 0:s.z)||0),l=i.length(),c=i.normalize();return new Ie.Quaternion().setFromAxisAngle(c,l)}get isEstopActive(){return["SAFETY_STATE_ROBOT_EMERGENCY_STOP","SAFETY_STATE_DEVICE_EMERGENCY_STOP"].includes(this.controllerState.safety_state)}get isMoveableSafetyState(){return["SAFETY_STATE_NORMAL","SAFETY_STATE_REDUCED"].includes(this.controllerState.safety_state)}get isMoveableOperationMode(){return["OPERATION_MODE_AUTO","OPERATION_MODE_MANUAL","OPERATION_MODE_MANUAL_T1","OPERATION_MODE_MANUAL_T2"].includes(this.controllerState.operation_mode)}get canBeMoved(){return this.isMoveableSafetyState&&this.isMoveableOperationMode&&this.activationState==="active"}deactivate(){return Ce(this,null,function*(){if(this.activationState!=="active"){console.error("Tried to deactivate while already deactivating");return}Be.runInAction(()=>{this.activationState="deactivating"});try{yield this.nova.api.controller.setDefaultMode(this.controllerId,"MODE_MONITOR"),Be.runInAction(()=>{this.activationState="inactive"})}catch(t){throw Be.runInAction(()=>{this.activationState="active"}),t}})}activate(){return Ce(this,null,function*(){if(this.activationState!=="inactive"){console.error("Tried to activate while already activating");return}Be.runInAction(()=>{this.activationState="activating"});try{yield this.nova.api.controller.setDefaultMode(this.controllerId,"MODE_CONTROL"),Be.runInAction(()=>{this.activationState="active"})}catch(t){throw Be.runInAction(()=>{this.activationState="inactive"}),t}})}toggleActivation(){this.activationState==="inactive"?this.activate():this.activationState==="active"&&this.deactivate()}dispose(){this.motionStateSocket.close(),this.connectedJoggingCartesianSocket&&this.connectedJoggingCartesianSocket.close(),this.connectedJoggingJointsSocket&&this.connectedJoggingJointsSocket.close()}setJoggingVelocity(t){this.joggingVelocity=t}},i1=class ed{constructor(t,r={}){this.motionStream=t,this.opts=r,this.cartesianWebsocket=null,this.jointWebsocket=null,this.cartesianJoggingOpts={}}static open(t,r){return Ce(this,arguments,function*(a,n,o={}){const s=yield a.connectMotionStream(n);return new ed(s,o)})}get motionGroupId(){return this.motionStream.motionGroupId}get nova(){return this.motionStream.nova}get numJoints(){return this.motionStream.joints.length}get activeJoggingMode(){return this.cartesianWebsocket?"cartesian":this.jointWebsocket?"joint":"increment"}get activeWebsocket(){return this.cartesianWebsocket||this.jointWebsocket}stop(){return Ce(this,null,function*(){this.cartesianWebsocket&&this.cartesianWebsocket.sendJson({motion_group:this.motionGroupId,position_direction:{x:0,y:0,z:0},rotation_direction:{x:0,y:0,z:0},position_velocity:0,rotation_velocity:0,tcp:this.cartesianJoggingOpts.tcpId,coordinate_system:this.cartesianJoggingOpts.coordSystemId}),this.jointWebsocket&&this.jointWebsocket.sendJson({motion_group:this.motionGroupId,joint_velocities:new Array(this.numJoints).fill(0)})})}dispose(){this.cartesianWebsocket&&this.cartesianWebsocket.dispose(),this.jointWebsocket&&this.jointWebsocket.dispose()}setJoggingMode(t,r){console.log("Setting jogging mode to",t),r&&(u0(this.cartesianJoggingOpts,r)||this.cartesianWebsocket&&(this.cartesianWebsocket.dispose(),this.cartesianWebsocket=null),this.cartesianJoggingOpts=r),t!=="cartesian"&&this.cartesianWebsocket&&(this.cartesianWebsocket.dispose(),this.cartesianWebsocket=null),t!=="joint"&&this.jointWebsocket&&(this.jointWebsocket.dispose(),this.jointWebsocket=null),t==="cartesian"&&!this.cartesianWebsocket&&(this.cartesianWebsocket=this.nova.openReconnectingWebsocket("/motion-groups/move-tcp"),this.cartesianWebsocket.addEventListener("message",a=>{const n=Kt(a.data);if(n&&"error"in n)if(this.opts.onError)this.opts.onError(a.data);else throw new Error(a.data)})),t==="joint"&&!this.jointWebsocket&&(this.jointWebsocket=this.nova.openReconnectingWebsocket("/motion-groups/move-joint"),this.jointWebsocket.addEventListener("message",a=>{const n=Kt(a.data);if(n&&"error"in n)if(this.opts.onError)this.opts.onError(a.data);else throw new Error(a.data)}))}startJointRotation(t){return Ce(this,arguments,function*({joint:r,direction:a,velocityRadsPerSec:n}){if(!this.jointWebsocket)throw new Error("Joint jogging websocket not connected; call setJoggingMode first");const o=new Array(this.numJoints).fill(0);o[r]=a==="-"?-n:n,this.jointWebsocket.sendJson({motion_group:this.motionGroupId,joint_velocities:o})})}startTCPTranslation(t){return Ce(this,arguments,function*({axis:r,direction:a,velocityMmPerSec:n}){if(!this.cartesianWebsocket)throw new Error("Cartesian jogging websocket not connected; call setJoggingMode first");const o={x:0,y:0,z:0},s=Object.assign({},o);s[r]=a==="-"?-1:1,this.cartesianWebsocket.sendJson({motion_group:this.motionGroupId,position_direction:s,rotation_direction:o,position_velocity:n,rotation_velocity:0,tcp:this.cartesianJoggingOpts.tcpId,coordinate_system:this.cartesianJoggingOpts.coordSystemId})})}startTCPRotation(t){return Ce(this,arguments,function*({axis:r,direction:a,velocityRadsPerSec:n}){if(!this.cartesianWebsocket)throw new Error("Cartesian jogging websocket not connected; call setJoggingMode first");const o={x:0,y:0,z:0},s=Object.assign({},o);s[r]=a==="-"?-1:1,this.cartesianWebsocket.sendJson({motion_group:this.motionGroupId,position_direction:o,rotation_direction:s,position_velocity:0,rotation_velocity:n,tcp:this.cartesianJoggingOpts.tcpId,coordinate_system:this.cartesianJoggingOpts.coordSystemId})})}runIncrementalCartesianMotion(t){return Ce(this,arguments,function*({currentTcpPose:r,currentJoints:a,coordSystemId:n,velocityInRelevantUnits:o,axis:s,direction:i,motion:l}){var c;const d=[];if(!R0(r.coordinate_system,n))throw new Error(`Current TCP pose coordinate system ${r.coordinate_system} does not match target coordinate system ${n}`);if(l.type==="translate"){const f=Object.assign({},r.position);f[s]+=l.distanceMm*(i==="-"?-1:1),d.push({settings:{limits_override:{tcp_velocity_limit:o}},line:{position:f,orientation:r.orientation,coordinate_system:n}})}else if(l.type==="rotate"){const f=new Gr(r.orientation.x,r.orientation.y,r.orientation.z),y=f.length(),h=f.clone().normalize(),x=l.distanceRads*(i==="-"?-1:1),I=new Gr(0,0,0);I[s]=1;const k=Math.cos(.5*x)*Math.cos(.5*y),F=Math.sin(.5*x)*Math.sin(.5*y),N=Math.sin(.5*x)*Math.cos(.5*y),z=Math.cos(.5*x)*Math.sin(.5*y),K=I.dot(h),E=I.clone().cross(h),$=2*Math.acos(k-F*K),L=$/Math.sin(.5*$),g=new Gr().addScaledVector(E,F).addScaledVector(I,N).addScaledVector(h,z).multiplyScalar(L);d.push({settings:{limits_override:{tcp_orientation_velocity_limit:o}},line:{position:r.position,orientation:g,coordinate_system:n}})}const u=yield this.nova.api.motion.planMotion({motion_group:this.motionGroupId,start_joint_position:a,tcp:this.cartesianJoggingOpts.tcpId,commands:d}),p=(c=u.plan_successful_response)==null?void 0:c.motion;if(!p)throw new Error(`Failed to plan jogging increment motion ${JSON.stringify(u)}`);yield this.nova.api.motion.streamMoveForward(p,100,void 0,void 0,void 0,{timeout:1e3*60})})}runIncrementalJointRotation(t){return Ce(this,arguments,function*({joint:r,currentJoints:a,velocityRadsPerSec:n,direction:o,distanceRads:s}){var i;const l=[...a.joints];l[r]+=s*(o==="-"?-1:1);const c=new Array(a.joints.length).fill(n),d=yield this.nova.api.motion.planMotion({motion_group:this.motionGroupId,start_joint_position:a,commands:[{settings:{limits_override:{joint_velocity_limits:{joints:c}}},joint_ptp:{joints:l}}]}),u=(i=d.plan_successful_response)==null?void 0:i.motion;if(!u){console.error("Failed to plan jogging increment motion",d);return}yield this.nova.api.motion.streamMoveForward(u,100,void 0,void 0,void 0,{timeout:1e3*60})})}},il=1e-4;function l1(e,t){const r=new ht.Vector3(t.x,t.y,t.z),a=new ht.Vector3(e.x,e.y,e.z),n=r.length(),o=r.normalize();let s=a.length(),i=a.normalize();i.dot(o)<0&&(s=-s,i=i.multiplyScalar(-1));let l=s-n;return l-=2*Math.PI*Math.floor((l+Math.PI)/(2*Math.PI)),s=n+l,i.multiplyScalar(s)}var c1=class td{constructor(t,r,a,n,o){this.nova=t,this.controller=r,this.motionGroup=a,this.initialMotionState=n,this.motionStateSocket=o,this.rapidlyChangingMotionState=n,o.addEventListener("message",s=>{var i;const l=(i=Kt(s.data))==null?void 0:i.result;if(!l)throw new Error(`Failed to get motion state for ${this.motionGroupId}: ${s.data}`);Yc(this.rapidlyChangingMotionState.state.joint_position.joints,l.state.joint_position.joints,il)||Be.runInAction(()=>{this.rapidlyChangingMotionState.state=l.state}),Xc(this.rapidlyChangingMotionState.tcp_pose,l.tcp_pose,il)||Be.runInAction(()=>{this.rapidlyChangingMotionState.tcp_pose==null?this.rapidlyChangingMotionState.tcp_pose=l.tcp_pose:this.rapidlyChangingMotionState.tcp_pose={position:l.tcp_pose.position,orientation:l1(l.tcp_pose.orientation,this.rapidlyChangingMotionState.tcp_pose.orientation),tcp:l.tcp_pose.tcp,coordinate_system:l.tcp_pose.coordinate_system}})}),Be.makeAutoObservable(this)}static open(t,r){return Ce(this,null,function*(){var a;const{instances:n}=yield t.api.controller.listControllers(),[o,s]=r.split("@"),i=n.find(p=>p.controller===s),l=i==null?void 0:i.physical_motion_groups.find(p=>p.motion_group===r);if(!i||!l)throw new Error(`Controller ${s} or motion group ${r} not found`);const c=t.openReconnectingWebsocket(`/motion-groups/${r}/state-stream`),d=yield c.firstMessage();console.log("got first message",d);const u=(a=Kt(d.data))==null?void 0:a.result;if(!u)throw new Error(`Unable to parse initial motion state message ${d.data}`);return console.log(`Connected motion state websocket to motion group ${l.motion_group}. Initial state:
114
- `,u),new td(t,i,l,u,c)})}get motionGroupId(){return this.motionGroup.motion_group}get controllerId(){return this.controller.controller}get modelFromController(){return this.motionGroup.model_from_controller}get wandelscriptIdentifier(){const t=this.motionGroupId.split("@")[0];return`${this.controllerId.replaceAll("-","_")}_${t}`}get joints(){return this.initialMotionState.state.joint_position.joints.map((t,r)=>({index:r}))}dispose(){this.motionStateSocket.close()}},d1=class{constructor(e,t){this.cellId=e,this.opts=t,this.system=this.withUnwrappedResponsesOnly(qv),this.cell=this.withUnwrappedResponsesOnly(cv),this.deviceConfig=this.withCellId(yv),this.motionGroup=this.withCellId(Av),this.motionGroupInfos=this.withCellId(Ev),this.controller=this.withCellId(uv),this.program=this.withCellId(Lv),this.programValues=this.withCellId(Bv),this.controllerIOs=this.withCellId(hv),this.motionGroupKinematic=this.withCellId($v),this.motion=this.withCellId(Rv),this.coordinateSystems=this.withCellId(fv),this.application=this.withCellId(al),this.applicationGlobal=this.withUnwrappedResponsesOnly(al),this.motionGroupJogging=this.withCellId(Mv),this.virtualRobot=this.withCellId(Kv),this.virtualRobotSetup=this.withCellId(t1),this.virtualRobotMode=this.withCellId(Zv),this.virtualRobotBehavior=this.withCellId(Yv),this.libraryProgramMetadata=this.withCellId(xv),this.libraryProgram=this.withCellId(Sv),this.libraryRecipeMetadata=this.withCellId(Pv),this.libraryRecipe=this.withCellId(wv),this.storeObject=this.withCellId(Jv),this.storeCollisionComponents=this.withCellId(Nv),this.storeCollisionScenes=this.withCellId(zv)}withCellId(e){var t,r;const a=new e(Wo(Fr({},this.opts),{isJsonMime:n=>n==="application/json"}),(t=this.opts.basePath)!=null?t:"",(r=this.opts.axiosInstance)!=null?r:O.create());for(const n of Reflect.ownKeys(Reflect.getPrototypeOf(a)))if(n!=="constructor"&&typeof a[n]=="function"){const o=a[n];a[n]=(...s)=>o.apply(a,[this.cellId,...s]).then(i=>i.data)}return a}withUnwrappedResponsesOnly(e){var t,r;const a=new e(Wo(Fr({},this.opts),{isJsonMime:n=>n==="application/json"}),(t=this.opts.basePath)!=null?t:"",(r=this.opts.axiosInstance)!=null?r:O.create());for(const n of Reflect.ownKeys(Reflect.getPrototypeOf(a)))if(n!=="constructor"&&typeof a[n]=="function"){const o=a[n];a[n]=(...s)=>o.apply(a,s).then(i=>i.data)}return a}},u1=class{constructor(){this.connections=[]}handleAPIRequest(e){return Ce(this,null,function*(){var t,r,a;const n=[{method:"GET",path:"/cells/:cellId/controllers",handle(){return{instances:[{controller:"mock-ur5e",model_name:"UniversalRobots::Controller",host:"mock-ur5e",allow_software_install_on_controller:!0,physical_motion_groups:[{motion_group:"0@mock-ur5e",name_from_controller:"UR5e",active:!1,model_from_controller:"UniversalRobots_UR5e"}],has_error:!1,error_details:""}]}}},{method:"GET",path:"/cells/:cellId/controllers/:controllerId",handle(){return{configuration:{kind:"VirtualController",manufacturer:"universalrobots",position:"[0,-1.571,-1.571,-1.571,1.571,-1.571,0]",type:"universalrobots-ur5e"},name:"mock-ur5"}}},{method:"GET",path:"/cells/:cellId/motion-groups/:motionGroupId/specification",handle(){return{dh_parameters:[{alpha:1.5707963267948966,theta:0,a:0,d:162.25,reverse_rotation_direction:!1},{alpha:0,theta:0,a:-425,d:0,reverse_rotation_direction:!1},{alpha:0,theta:0,a:-392.2,d:0,reverse_rotation_direction:!1},{alpha:1.5707963267948966,theta:0,a:0,d:133.3,reverse_rotation_direction:!1},{alpha:-1.5707963267948966,theta:0,a:0,d:99.7,reverse_rotation_direction:!1},{alpha:0,theta:0,a:0,d:99.6,reverse_rotation_direction:!1}],mechanical_joint_limits:[{joint:"JOINTNAME_AXIS_1",lower_limit:-6.335545063018799,upper_limit:6.335545063018799,unlimited:!1},{joint:"JOINTNAME_AXIS_2",lower_limit:-6.335545063018799,upper_limit:6.335545063018799,unlimited:!1},{joint:"JOINTNAME_AXIS_3",lower_limit:-6.335545063018799,upper_limit:6.335545063018799,unlimited:!1},{joint:"JOINTNAME_AXIS_4",lower_limit:-6.335545063018799,upper_limit:6.335545063018799,unlimited:!1},{joint:"JOINTNAME_AXIS_5",lower_limit:-6.335545063018799,upper_limit:6.335545063018799,unlimited:!1},{joint:"JOINTNAME_AXIS_6",lower_limit:-6.335545063018799,upper_limit:6.335545063018799,unlimited:!1}]}}},{method:"GET",path:"/cells/:cellId/motion-groups/:motionGroupId/safety-setup",handle(){return{safety_settings:[{safety_state:"SAFETY_NORMAL",settings:{joint_position_limits:[{joint:"JOINTNAME_AXIS_1",lower_limit:-2.96705961227417,upper_limit:2.96705961227417,unlimited:!1},{joint:"JOINTNAME_AXIS_2",lower_limit:-1.7453292608261108,upper_limit:2.7925267219543457,unlimited:!1},{joint:"JOINTNAME_AXIS_3",lower_limit:-3.3161256313323975,upper_limit:.40142571926116943,unlimited:!1},{joint:"JOINTNAME_AXIS_4",lower_limit:-3.4906585216522217,upper_limit:3.4906585216522217,unlimited:!1},{joint:"JOINTNAME_AXIS_5",lower_limit:-2.4434609413146973,upper_limit:2.4434609413146973,unlimited:!1},{joint:"JOINTNAME_AXIS_6",lower_limit:-4.71238899230957,upper_limit:4.71238899230957,unlimited:!1}],joint_velocity_limits:[{joint:"JOINTNAME_AXIS_1",limit:3.1415927410125732},{joint:"JOINTNAME_AXIS_2",limit:3.1415927410125732},{joint:"JOINTNAME_AXIS_3",limit:3.4906585216522217},{joint:"JOINTNAME_AXIS_4",limit:6.108652591705322},{joint:"JOINTNAME_AXIS_5",limit:6.108652591705322},{joint:"JOINTNAME_AXIS_6",limit:6.981317043304443}],joint_acceleration_limits:[],joint_torque_limits:[],tcp_velocity_limit:1800}}],safety_zones:[{id:1,priority:0,geometry:{compound:{child_geometries:[{convex_hull:{vertices:[{x:-800,y:-1330,z:-1820},{x:1650,y:-1330,z:-1820},{x:1650,y:1330,z:-1820},{x:-800,y:1330,z:-1820}]},init_pose:{position:{x:0,y:0,z:0},orientation:{x:0,y:0,z:0,w:1}},id:"box"},{convex_hull:{vertices:[{x:-800,y:-1330,z:-1820},{x:1650,y:-1330,z:-1820},{x:1650,y:-1330,z:1500},{x:-800,y:-1330,z:1500}]},init_pose:{position:{x:0,y:0,z:0},orientation:{x:0,y:0,z:0,w:1}},id:"box"},{convex_hull:{vertices:[{x:-800,y:-1330,z:-1820},{x:-800,y:1330,z:-1820},{x:-800,y:1330,z:1500},{x:-800,y:-1330,z:1500}]},init_pose:{position:{x:0,y:0,z:0},orientation:{x:0,y:0,z:0,w:1}},id:"box"},{convex_hull:{vertices:[{x:1650,y:1330,z:1500},{x:-800,y:1330,z:1500},{x:-800,y:-1330,z:1500},{x:1650,y:-1330,z:1500}]},init_pose:{position:{x:0,y:0,z:0},orientation:{x:0,y:0,z:0,w:1}},id:"box"},{convex_hull:{vertices:[{x:1650,y:1330,z:1500},{x:-800,y:1330,z:1500},{x:-800,y:1330,z:-1820},{x:1650,y:1330,z:-1820}]},init_pose:{position:{x:0,y:0,z:0},orientation:{x:0,y:0,z:0,w:1}},id:"box"},{convex_hull:{vertices:[{x:1650,y:1330,z:1500},{x:1650,y:-1330,z:1500},{x:1650,y:-1330,z:-1820},{x:1650,y:1330,z:-1820}]},init_pose:{position:{x:0,y:0,z:0},orientation:{x:0,y:0,z:0,w:1}},id:"box"}]},init_pose:{position:{x:0,y:0,z:0},orientation:{x:0,y:0,z:0,w:1}},id:"Cell workzone"},motion_group_uid:1},{id:2,priority:0,geometry:{convex_hull:{vertices:[{x:1650,y:1330,z:-1850},{x:865,y:1330,z:-1850},{x:865,y:-720,z:-1850},{x:1650,y:-720,z:-1850},{x:1650,y:1330,z:-920},{x:865,y:1330,z:-920},{x:865,y:-720,z:-920},{x:1650,y:-720,z:-920}]},init_pose:{position:{x:0,y:0,z:0},orientation:{x:0,y:0,z:0,w:1}},id:"Transport"},motion_group_uid:1},{id:3,priority:0,geometry:{convex_hull:{vertices:[{x:1650,y:1330,z:-600},{x:865,y:1330,z:-600},{x:865,y:430,z:-600},{x:1650,y:430,z:-600},{x:1650,y:1330,z:-1250},{x:865,y:1330,z:-1250},{x:865,y:430,z:-1250},{x:1650,y:430,z:-1250}]},init_pose:{position:{x:0,y:0,z:0},orientation:{x:0,y:0,z:0,w:1}},id:"Tunel"},motion_group_uid:1},{id:4,priority:0,geometry:{convex_hull:{vertices:[{x:1650,y:-760,z:-440},{x:900,y:-760,z:-440},{x:900,y:-1330,z:-440},{x:1650,y:-1330,z:-440},{x:1650,y:-760,z:-1800},{x:900,y:-760,z:-1800},{x:900,y:-1330,z:-1800},{x:1650,y:-1330,z:-1800}]},init_pose:{position:{x:0,y:0,z:0},orientation:{x:0,y:0,z:0,w:1}},id:"Fanuc controller"},motion_group_uid:1},{id:6,priority:0,geometry:{convex_hull:{vertices:[{x:-200,y:-200,z:-1900},{x:200,y:-200,z:-1900},{x:200,y:200,z:-1900},{x:-200,y:200,z:-1900},{x:-200,y:-200,z:-350},{x:200,y:-200,z:-350},{x:200,y:200,z:-350},{x:-200,y:200,z:-350}]},init_pose:{position:{x:0,y:0,z:0},orientation:{x:0,y:0,z:0,w:1}},id:"Robot base"},motion_group_uid:1}],robot_model_geometries:[{link_index:1,geometry:{sphere:{radius:270},init_pose:{position:{x:-70,y:-70,z:-50},orientation:{x:0,y:0,z:0,w:1}},id:"link1_sphere"}},{link_index:2,geometry:{capsule:{radius:160,cylinder_height:800},init_pose:{position:{x:-450,y:40,z:170},orientation:{x:0,y:-.7071067811865475,z:0,w:.7071067811865476}},id:"link2_capsule"}},{link_index:3,geometry:{sphere:{radius:270},init_pose:{position:{x:-110,y:10,z:-100},orientation:{x:0,y:0,z:0,w:1}},id:"link3_sphere"}},{link_index:4,geometry:{capsule:{radius:110,cylinder_height:600},init_pose:{position:{x:0,y:300,z:40},orientation:{x:-.7071067811865475,y:0,z:0,w:.7071067811865476}},id:"link4_capsule"}},{link_index:5,geometry:{sphere:{radius:75},init_pose:{position:{x:0,y:0,z:-50},orientation:{x:0,y:0,z:0,w:1}},id:"link5_sphere"}}],tool_geometries:[]}}},{method:"GET",path:"/cells/:cellId/coordinate-systems",handle(){return{coordinatesystems:[{coordinate_system:"",name:"world",reference_uid:"",position:{x:0,y:0,z:0},rotation:{angles:[0,0,0],type:"ROTATION_VECTOR"}}]}}},{method:"GET",path:"/cells/:cellId/motion-groups/:motionGroupId/tcps",handle(){return{tcps:[{id:"Flange",readable_name:"Default-Flange",position:{x:0,y:0,z:0},rotation:{angles:[0,0,0,0],type:"ROTATION_VECTOR"}},{id:"complex-tcp-position",readable_name:"Complex TCP Position",position:{x:-200,y:300,z:150},rotation:{angles:[-.12139440409113832,-.06356210998212003,-.2023240068185639,0],type:"ROTATION_VECTOR"}}]}}}],o=((t=e.method)==null?void 0:t.toUpperCase())||"GET",s="/cells"+((a=(r=e.url)==null?void 0:r.split("/cells")[1])==null?void 0:a.split("?")[0]);for(const i of n){const l=o1.match(i.path)(s||"");if(o===i.method&&l){const c=i.handle();return{status:200,statusText:"Success",data:JSON.stringify(c),headers:{},config:e,request:{responseURL:e.url}}}}throw new ts(`No mock handler matched this request: ${o} ${s}`,"404",e)})}handleWebsocketConnection(e){this.connections.push(e),setTimeout(()=>{e.dispatchEvent(new Event("open")),console.log("Websocket connection opened from",e.url),e.url.includes("/state-stream")&&e.dispatchEvent(new MessageEvent("message",{data:JSON.stringify(p1)})),e.url.includes("/move-joint")&&e.dispatchEvent(new MessageEvent("message",{data:JSON.stringify({result:{motion_group:"0@ur",state:{controller:"ur",operation_mode:"OPERATION_MODE_AUTO",safety_state:"SAFETY_STATE_NORMAL",timestamp:"2024-09-18T12:48:26.096266444Z",velocity_override:100,motion_groups:[{motion_group:"0@ur",controller:"ur",joint_position:{joints:[1.3492152690887451,-1.5659207105636597,1.6653711795806885,-1.0991662740707397,-1.829018235206604,1.264623761177063]},joint_velocity:{joints:[0,0,0,0,0,0]},flange_pose:{position:{x:6.437331889439328,y:-628.4123774830913,z:577.0569957147832},orientation:{x:-1.683333649797158,y:-1.9783363827298732,z:-.4928031860165713},coordinate_system:""},tcp_pose:{position:{x:6.437331889439328,y:-628.4123774830913,z:577.0569957147832},orientation:{x:-1.683333649797158,y:-1.9783363827298732,z:-.4928031860165713},coordinate_system:"",tcp:"Flange"},velocity:{linear:{x:0,y:0,z:0},angular:{x:-0,y:0,z:0},coordinate_system:""},force:{force:{x:0,y:0,z:0},moment:{x:0,y:0,z:0},coordinate_system:""},joint_limit_reached:{limit_reached:[!1,!1,!1,!1,!1,!1]},joint_current:{joints:[0,0,0,0,0,0]},sequence_number:"671259"}],sequence_number:"671259"},movement_state:"MOVEMENT_STATE_MOVING"}})})),e.url.includes("/move-tcp")&&e.dispatchEvent(new MessageEvent("message",{data:JSON.stringify({result:{motion_group:"0@ur",state:{controller:"ur",operation_mode:"OPERATION_MODE_AUTO",safety_state:"SAFETY_STATE_NORMAL",timestamp:"2024-09-18T12:43:12.188335774Z",velocity_override:100,motion_groups:[{motion_group:"0@ur",controller:"ur",joint_position:{joints:[1.3352527618408203,-1.5659207105636597,1.6653711795806885,-1.110615611076355,-1.829018235206604,1.264623761177063]},joint_velocity:{joints:[0,0,0,0,0,0]},flange_pose:{position:{x:-2.763015284002938,y:-630.2151479701106,z:577.524509114342},orientation:{x:-1.704794877102097,y:-1.9722372952861567,z:-.4852079204210754},coordinate_system:""},tcp_pose:{position:{x:-2.763015284002938,y:-630.2151479701106,z:577.524509114342},orientation:{x:-1.704794877102097,y:-1.9722372952861567,z:-.4852079204210754},coordinate_system:"",tcp:"Flange"},velocity:{linear:{x:0,y:0,z:0},angular:{x:-0,y:0,z:0},coordinate_system:""},force:{force:{x:0,y:0,z:0},moment:{x:0,y:0,z:0},coordinate_system:""},joint_limit_reached:{limit_reached:[!1,!1,!1,!1,!1,!1]},joint_current:{joints:[0,0,0,0,0,0]},sequence_number:"627897"}],sequence_number:"627897"},movement_state:"MOVEMENT_STATE_MOVING"}})}))},10)}handleWebsocketMessage(e,t){console.log(`Received message on ${e.url}`,t)}},p1={result:{state:{motion_group:"0@universalrobots-ur5e",controller:"universalrobots-ur5e",joint_position:{joints:[1.1699999570846558,-1.5700000524520874,1.3600000143051147,1.0299999713897705,1.2899999618530273,1.2799999713897705]},joint_velocity:{joints:[0,0,0,0,0,0]},flange_pose:{position:{x:1.3300010259703043,y:-409.2680714682808,z:531.0203477065281},orientation:{x:1.7564919306270736,y:-1.7542521568325058,z:.7326972590614671},coordinate_system:""},tcp_pose:{position:{x:1.3300010259703043,y:-409.2680714682808,z:531.0203477065281},orientation:{x:1.7564919306270736,y:-1.7542521568325058,z:.7326972590614671},coordinate_system:"",tcp:"Flange"},velocity:{linear:{x:0,y:0,z:0},angular:{x:0,y:0,z:0},coordinate_system:""},force:{force:{x:0,y:0,z:0},moment:{x:0,y:0,z:0},coordinate_system:""},joint_limit_reached:{limit_reached:[!1,!1,!1,!1,!1,!1]},joint_current:{joints:[0,0,0,0,0,0]}},tcp_pose:{position:{x:302.90748476115556,y:-152.87065869452337,z:424.0454619321661},orientation:{x:2.3403056115045353,y:-1.1706836379431356,z:.9772511964246311},coordinate_system:"",tcp:"Flange"}}},h1=class{constructor(e){this.authPromise=null,this.accessToken=null;var t;const r=(t=e.cellId)!=null?t:"cell";this.config=Fr({cellId:r},e),this.accessToken=e.accessToken||Co.getString("wbjs.access_token")||null,this.config.instanceUrl==="https://mock.example.com"&&(this.mock=new u1);const a=O.create({baseURL:Eo(this.config.instanceUrl,"/api/v1")});a.interceptors.request.use(n=>Ce(this,null,function*(){return n.headers.Authorization||(this.accessToken?n.headers.Authorization=`Bearer ${this.accessToken}`:this.config.username&&this.config.password&&(n.headers.Authorization=`Basic ${btoa(e.username+":"+e.password)}`)),n})),typeof window<"u"&&a.interceptors.response.use(n=>n,n=>Ce(this,null,function*(){var o,s;if(ov(n))if(((o=n.response)==null?void 0:o.status)===401)try{if(yield this.renewAuthentication(),n.config)return this.accessToken?n.config.headers.Authorization=`Bearer ${this.accessToken}`:delete n.config.headers.Authorization,a.request(n.config)}catch(i){return Promise.reject(i)}else((s=n.response)==null?void 0:s.status)===503&&(yield fetch(window.location.href)).status===503&&window.location.reload();return Promise.reject(n)})),this.api=new d1(r,Wo(Fr({},e),{basePath:Eo(this.config.instanceUrl,"/api/v1"),isJsonMime:n=>n==="application/json",baseOptions:Fr(Fr({},this.mock?{adapter:n=>this.mock.handleAPIRequest(n)}:{}),e.baseOptions),axiosInstance:a}))}renewAuthentication(){return Ce(this,null,function*(){if(!this.authPromise){this.authPromise=A0(this.config.instanceUrl);try{this.accessToken=yield this.authPromise,this.accessToken?Co.setString("wbjs.access_token",this.accessToken):Co.delete("wbjs.access_token")}finally{this.authPromise=null}}})}makeWebsocketURL(e){const t=new URL(Eo(this.config.instanceUrl,`/api/v1/cells/${this.config.cellId}`,e));return t.protocol=t.protocol.replace("http","ws"),t.protocol=t.protocol.replace("https","wss"),this.accessToken?t.searchParams.append("token",this.accessToken):this.config.username&&this.config.password&&(t.username=this.config.username,t.password=this.config.password),t.toString()}openReconnectingWebsocket(e){return new P0(this.makeWebsocketURL(e),{mock:this.mock})}connectMotionStream(e){return Ce(this,null,function*(){return yield c1.open(this,e)})}connectJogger(e){return Ce(this,null,function*(){return yield i1.open(this,e)})}connectMotionGroups(e){return Ce(this,null,function*(){const{instances:t}=yield this.api.controller.listControllers();return Promise.all(e.map(r=>s1.connect(this,r,t)))})}connectMotionGroup(e){return Ce(this,null,function*(){return(yield this.connectMotionGroups([e]))[0]})}};function m1(e){try{return JSON.stringify(e)}catch{return}}function f1(e,t){throw new Error(t+` ${JSON.stringify(e)}`)}function g1(e){var t,r,a,n;return e instanceof ts&&e.code==="ERR_NETWORK"?"Failed to connect to the server. Please check your internet connection.":e instanceof ts&&e.response?`${(t=e.response)==null?void 0:t.status} ${(r=e.response)==null?void 0:r.statusText} from ${(a=e.response)==null?void 0:a.config.url}: ${JSON.stringify((n=e.response)==null?void 0:n.data)}`:e instanceof Error?e.message:`Unexpected error: ${m1(e)||e}`}const vs=e=>{const t=e.softTimeout||3e3,[r,a]=ae.useState(!1),n=W.useTheme();return ae.useEffect(()=>{const o=setTimeout(()=>{a(!0)},t);return()=>clearTimeout(o)}),b.jsx(W.Stack,{width:"100%",height:"100%",alignItems:"center",justifyContent:"center",sx:{color:n.palette.text.primary},children:e.error?b.jsx(rd,{loadingMessage:e.message,error:e.error}):b.jsxs(b.Fragment,{children:[b.jsx(W.CircularProgress,{sx:{marginBottom:"24px"}}),!!e.message&&b.jsx("div",{children:e.message}),b.jsx(W.Stack,{sx:{visibility:r?"visible":"hidden",marginTop:"1rem",color:n.palette.text.secondary},children:"This is taking longer than expected..."})]})})},rd=e=>{const t=g1(e.error),r=e.error instanceof Error?e.error.stack:null,a=W.useTheme();return b.jsxs(W.Stack,{sx:{maxHeight:"100%",maxWidth:"min(100%, 800px)",padding:2,overflow:"auto",color:a.palette.error.main,"& pre":{whiteSpace:"pre-wrap",wordBreak:"break-word",paddingBottom:"3rem"}},children:[(e.loadingMessage?`Error while ${cs.lowerFirst(W.capitalize(e.loadingMessage))} - `:"")+t,b.jsx("br",{}),r&&b.jsx("pre",{children:r})]})},y1=({title:e,titleId:t,...r},a)=>J.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:19,height:10,fill:"none",ref:a,"aria-labelledby":t,...r},e?J.createElement("title",{id:t},e):null,J.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"})),b1=ae.forwardRef(y1),S1=({title:e,titleId:t,...r},a)=>J.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:19,height:10,fill:"none",ref:a,"aria-labelledby":t,...r},e?J.createElement("title",{id:t},e):null,J.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"})),v1=ae.forwardRef(S1),x1=({title:e,titleId:t,...r},a)=>J.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:10,height:19,fill:"none",ref:a,"aria-labelledby":t,...r},e?J.createElement("title",{id:t},e):null,J.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"})),O1=ae.forwardRef(x1),w1=({title:e,titleId:t,...r},a)=>J.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:a,"aria-labelledby":t,...r},e?J.createElement("title",{id:t},e):null,J.createElement("path",{d:"M8 16C5.76667 16 3.875 15.225 2.325 13.675C0.775 12.125 0 10.2333 0 8C0 5.76667 0.775 3.875 2.325 2.325C3.875 0.775 5.76667 0 8 0C9.15 0 10.25 0.2375 11.3 0.7125C12.35 1.1875 13.25 1.86667 14 2.75V0H16V7H9V5H13.2C12.6667 4.06667 11.9375 3.33333 11.0125 2.8C10.0875 2.26667 9.08333 2 8 2C6.33333 2 4.91667 2.58333 3.75 3.75C2.58333 4.91667 2 6.33333 2 8C2 9.66667 2.58333 11.0833 3.75 12.25C4.91667 13.4167 6.33333 14 8 14C9.28333 14 10.4417 13.6333 11.475 12.9C11.0583 14.1 12.5083 12.1667 11.475 12.9L12.9 14.325C11.4667 15.4417 9.83333 16 8 16Z",fill:"white"})),C1=ae.forwardRef(w1);function P1(){this.__data__=[],this.size=0}function ad(e,t){return e===t||e!==e&&t!==t}function ro(e,t){for(var r=e.length;r--;)if(ad(e[r][0],t))return r;return-1}var V1=Array.prototype,R1=V1.splice;function _1(e){var t=this.__data__,r=ro(t,e);if(r<0)return!1;var a=t.length-1;return r==a?t.pop():R1.call(t,r,1),--this.size,!0}function A1(e){var t=this.__data__,r=ro(t,e);return r<0?void 0:t[r][1]}function T1(e){return ro(this.__data__,e)>-1}function E1(e,t){var r=this.__data__,a=ro(r,e);return a<0?(++this.size,r.push([e,t])):r[a][1]=t,this}function Lt(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var a=e[t];this.set(a[0],a[1])}}Lt.prototype.clear=P1;Lt.prototype.delete=_1;Lt.prototype.get=A1;Lt.prototype.has=T1;Lt.prototype.set=E1;function I1(){this.__data__=new Lt,this.size=0}function M1(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function j1(e){return this.__data__.get(e)}function $1(e){return this.__data__.has(e)}var U1="[object AsyncFunction]",L1="[object Function]",k1="[object GeneratorFunction]",B1="[object Proxy]";function nd(e){if(!dr(e))return!1;var t=fr(e);return t==L1||t==k1||t==U1||t==B1}var Io=Rt["__core-js_shared__"],ll=function(){var e=/[^.]+$/.exec(Io&&Io.keys&&Io.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function F1(e){return!!ll&&ll in e}var N1=Function.prototype,D1=N1.toString;function yr(e){if(e!=null){try{return D1.call(e)}catch{}try{return e+""}catch{}}return""}var z1=/[\\^$.*+?()[\]{}|]/g,G1=/^\[object .+?Constructor\]$/,J1=Function.prototype,H1=Object.prototype,q1=J1.toString,W1=H1.hasOwnProperty,K1=RegExp("^"+q1.call(W1).replace(z1,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Q1(e){if(!dr(e)||F1(e))return!1;var t=nd(e)?K1:G1;return t.test(yr(e))}function Y1(e,t){return e==null?void 0:e[t]}function br(e,t){var r=Y1(e,t);return Q1(r)?r:void 0}var $a=br(Rt,"Map"),Ua=br(Object,"create");function X1(){this.__data__=Ua?Ua(null):{},this.size=0}function Z1(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var ex="__lodash_hash_undefined__",tx=Object.prototype,rx=tx.hasOwnProperty;function ax(e){var t=this.__data__;if(Ua){var r=t[e];return r===ex?void 0:r}return rx.call(t,e)?t[e]:void 0}var nx=Object.prototype,ox=nx.hasOwnProperty;function sx(e){var t=this.__data__;return Ua?t[e]!==void 0:ox.call(t,e)}var ix="__lodash_hash_undefined__";function lx(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Ua&&t===void 0?ix:t,this}function hr(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var a=e[t];this.set(a[0],a[1])}}hr.prototype.clear=X1;hr.prototype.delete=Z1;hr.prototype.get=ax;hr.prototype.has=sx;hr.prototype.set=lx;function cx(){this.size=0,this.__data__={hash:new hr,map:new($a||Lt),string:new hr}}function dx(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function ao(e,t){var r=e.__data__;return dx(t)?r[typeof t=="string"?"string":"hash"]:r.map}function ux(e){var t=ao(this,e).delete(e);return this.size-=t?1:0,t}function px(e){return ao(this,e).get(e)}function hx(e){return ao(this,e).has(e)}function mx(e,t){var r=ao(this,e),a=r.size;return r.set(e,t),this.size+=r.size==a?0:1,this}function kt(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var a=e[t];this.set(a[0],a[1])}}kt.prototype.clear=cx;kt.prototype.delete=ux;kt.prototype.get=px;kt.prototype.has=hx;kt.prototype.set=mx;var fx=200;function gx(e,t){var r=this.__data__;if(r instanceof Lt){var a=r.__data__;if(!$a||a.length<fx-1)return a.push([e,t]),this.size=++r.size,this;r=this.__data__=new kt(a)}return r.set(e,t),this.size=r.size,this}function jt(e){var t=this.__data__=new Lt(e);this.size=t.size}jt.prototype.clear=I1;jt.prototype.delete=M1;jt.prototype.get=j1;jt.prototype.has=$1;jt.prototype.set=gx;var yx="__lodash_hash_undefined__";function bx(e){return this.__data__.set(e,yx),this}function Sx(e){return this.__data__.has(e)}function An(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new kt;++t<r;)this.add(e[t])}An.prototype.add=An.prototype.push=bx;An.prototype.has=Sx;function vx(e,t){for(var r=-1,a=e==null?0:e.length;++r<a;)if(t(e[r],r,e))return!0;return!1}function xx(e,t){return e.has(t)}var Ox=1,wx=2;function od(e,t,r,a,n,o){var s=r&Ox,i=e.length,l=t.length;if(i!=l&&!(s&&l>i))return!1;var c=o.get(e),d=o.get(t);if(c&&d)return c==t&&d==e;var u=-1,p=!0,f=r&wx?new An:void 0;for(o.set(e,t),o.set(t,e);++u<i;){var y=e[u],h=t[u];if(a)var x=s?a(h,y,u,t,e,o):a(y,h,u,e,t,o);if(x!==void 0){if(x)continue;p=!1;break}if(f){if(!vx(t,function(I,k){if(!xx(f,k)&&(y===I||n(y,I,r,a,o)))return f.push(k)})){p=!1;break}}else if(!(y===h||n(y,h,r,a,o))){p=!1;break}}return o.delete(e),o.delete(t),p}var cl=Rt.Uint8Array;function Cx(e){var t=-1,r=Array(e.size);return e.forEach(function(a,n){r[++t]=[n,a]}),r}function Px(e){var t=-1,r=Array(e.size);return e.forEach(function(a){r[++t]=a}),r}var Vx=1,Rx=2,_x="[object Boolean]",Ax="[object Date]",Tx="[object Error]",Ex="[object Map]",Ix="[object Number]",Mx="[object RegExp]",jx="[object Set]",$x="[object String]",Ux="[object Symbol]",Lx="[object ArrayBuffer]",kx="[object DataView]",dl=Xt?Xt.prototype:void 0,Mo=dl?dl.valueOf:void 0;function Bx(e,t,r,a,n,o,s){switch(r){case kx:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Lx:return!(e.byteLength!=t.byteLength||!o(new cl(e),new cl(t)));case _x:case Ax:case Ix:return ad(+e,+t);case Tx:return e.name==t.name&&e.message==t.message;case Mx:case $x:return e==t+"";case Ex:var i=Cx;case jx:var l=a&Vx;if(i||(i=Px),e.size!=t.size&&!l)return!1;var c=s.get(e);if(c)return c==t;a|=Rx,s.set(e,t);var d=od(i(e),i(t),a,n,o,s);return s.delete(e),d;case Ux:if(Mo)return Mo.call(e)==Mo.call(t)}return!1}function Fx(e,t){for(var r=-1,a=t.length,n=e.length;++r<a;)e[n+r]=t[r];return e}var Vt=Array.isArray;function Nx(e,t,r){var a=t(e);return Vt(e)?a:Fx(a,r(e))}function Dx(e,t){for(var r=-1,a=e==null?0:e.length,n=0,o=[];++r<a;){var s=e[r];t(s,r,e)&&(o[n++]=s)}return o}function zx(){return[]}var Gx=Object.prototype,Jx=Gx.propertyIsEnumerable,ul=Object.getOwnPropertySymbols,Hx=ul?function(e){return e==null?[]:(e=Object(e),Dx(ul(e),function(t){return Jx.call(e,t)}))}:zx;function qx(e,t){for(var r=-1,a=Array(e);++r<e;)a[r]=t(r);return a}var Wx="[object Arguments]";function pl(e){return ur(e)&&fr(e)==Wx}var sd=Object.prototype,Kx=sd.hasOwnProperty,Qx=sd.propertyIsEnumerable,id=pl(function(){return arguments}())?pl:function(e){return ur(e)&&Kx.call(e,"callee")&&!Qx.call(e,"callee")};function Yx(){return!1}var ld=typeof exports=="object"&&exports&&!exports.nodeType&&exports,hl=ld&&typeof module=="object"&&module&&!module.nodeType&&module,Xx=hl&&hl.exports===ld,ml=Xx?Rt.Buffer:void 0,Zx=ml?ml.isBuffer:void 0,as=Zx||Yx,eO=9007199254740991,tO=/^(?:0|[1-9]\d*)$/;function cd(e,t){var r=typeof e;return t=t??eO,!!t&&(r=="number"||r!="symbol"&&tO.test(e))&&e>-1&&e%1==0&&e<t}var rO=9007199254740991;function xs(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=rO}var aO="[object Arguments]",nO="[object Array]",oO="[object Boolean]",sO="[object Date]",iO="[object Error]",lO="[object Function]",cO="[object Map]",dO="[object Number]",uO="[object Object]",pO="[object RegExp]",hO="[object Set]",mO="[object String]",fO="[object WeakMap]",gO="[object ArrayBuffer]",yO="[object DataView]",bO="[object Float32Array]",SO="[object Float64Array]",vO="[object Int8Array]",xO="[object Int16Array]",OO="[object Int32Array]",wO="[object Uint8Array]",CO="[object Uint8ClampedArray]",PO="[object Uint16Array]",VO="[object Uint32Array]",we={};we[bO]=we[SO]=we[vO]=we[xO]=we[OO]=we[wO]=we[CO]=we[PO]=we[VO]=!0;we[aO]=we[nO]=we[gO]=we[oO]=we[yO]=we[sO]=we[iO]=we[lO]=we[cO]=we[dO]=we[uO]=we[pO]=we[hO]=we[mO]=we[fO]=!1;function RO(e){return ur(e)&&xs(e.length)&&!!we[fr(e)]}function _O(e){return function(t){return e(t)}}var dd=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Va=dd&&typeof module=="object"&&module&&!module.nodeType&&module,AO=Va&&Va.exports===dd,jo=AO&&cc.process,fl=function(){try{var e=Va&&Va.require&&Va.require("util").types;return e||jo&&jo.binding&&jo.binding("util")}catch{}}(),gl=fl&&fl.isTypedArray,ud=gl?_O(gl):RO,TO=Object.prototype,EO=TO.hasOwnProperty;function IO(e,t){var r=Vt(e),a=!r&&id(e),n=!r&&!a&&as(e),o=!r&&!a&&!n&&ud(e),s=r||a||n||o,i=s?qx(e.length,String):[],l=i.length;for(var c in e)EO.call(e,c)&&!(s&&(c=="length"||n&&(c=="offset"||c=="parent")||o&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||cd(c,l)))&&i.push(c);return i}var MO=Object.prototype;function jO(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||MO;return e===r}function $O(e,t){return function(r){return e(t(r))}}var UO=$O(Object.keys,Object),LO=Object.prototype,kO=LO.hasOwnProperty;function BO(e){if(!jO(e))return UO(e);var t=[];for(var r in Object(e))kO.call(e,r)&&r!="constructor"&&t.push(r);return t}function pd(e){return e!=null&&xs(e.length)&&!nd(e)}function Os(e){return pd(e)?IO(e):BO(e)}function yl(e){return Nx(e,Os,Hx)}var FO=1,NO=Object.prototype,DO=NO.hasOwnProperty;function zO(e,t,r,a,n,o){var s=r&FO,i=yl(e),l=i.length,c=yl(t),d=c.length;if(l!=d&&!s)return!1;for(var u=l;u--;){var p=i[u];if(!(s?p in t:DO.call(t,p)))return!1}var f=o.get(e),y=o.get(t);if(f&&y)return f==t&&y==e;var h=!0;o.set(e,t),o.set(t,e);for(var x=s;++u<l;){p=i[u];var I=e[p],k=t[p];if(a)var F=s?a(k,I,p,t,e,o):a(I,k,p,e,t,o);if(!(F===void 0?I===k||n(I,k,r,a,o):F)){h=!1;break}x||(x=p=="constructor")}if(h&&!x){var N=e.constructor,z=t.constructor;N!=z&&"constructor"in e&&"constructor"in t&&!(typeof N=="function"&&N instanceof N&&typeof z=="function"&&z instanceof z)&&(h=!1)}return o.delete(e),o.delete(t),h}var ns=br(Rt,"DataView"),os=br(Rt,"Promise"),ss=br(Rt,"Set"),is=br(Rt,"WeakMap"),bl="[object Map]",GO="[object Object]",Sl="[object Promise]",vl="[object Set]",xl="[object WeakMap]",Ol="[object DataView]",JO=yr(ns),HO=yr($a),qO=yr(os),WO=yr(ss),KO=yr(is),qt=fr;(ns&&qt(new ns(new ArrayBuffer(1)))!=Ol||$a&&qt(new $a)!=bl||os&&qt(os.resolve())!=Sl||ss&&qt(new ss)!=vl||is&&qt(new is)!=xl)&&(qt=function(e){var t=fr(e),r=t==GO?e.constructor:void 0,a=r?yr(r):"";if(a)switch(a){case JO:return Ol;case HO:return bl;case qO:return Sl;case WO:return vl;case KO:return xl}return t});var QO=1,wl="[object Arguments]",Cl="[object Array]",tn="[object Object]",YO=Object.prototype,Pl=YO.hasOwnProperty;function XO(e,t,r,a,n,o){var s=Vt(e),i=Vt(t),l=s?Cl:qt(e),c=i?Cl:qt(t);l=l==wl?tn:l,c=c==wl?tn:c;var d=l==tn,u=c==tn,p=l==c;if(p&&as(e)){if(!as(t))return!1;s=!0,d=!1}if(p&&!d)return o||(o=new jt),s||ud(e)?od(e,t,r,a,n,o):Bx(e,t,l,r,a,n,o);if(!(r&QO)){var f=d&&Pl.call(e,"__wrapped__"),y=u&&Pl.call(t,"__wrapped__");if(f||y){var h=f?e.value():e,x=y?t.value():t;return o||(o=new jt),n(h,x,r,a,o)}}return p?(o||(o=new jt),zO(e,t,r,a,n,o)):!1}function no(e,t,r,a,n){return e===t?!0:e==null||t==null||!ur(e)&&!ur(t)?e!==e&&t!==t:XO(e,t,r,a,no,n)}function ZO(e,t){return no(e,t)}const hd=({store:e})=>{const{t}=Me.useTranslation(),[r,a]=ae.useState(e.jogger.motionStream.rapidlyChangingMotionState.state.joint_limit_reached.limit_reached),n=ae.useRef(r);Wr(()=>{const s=e.jogger.motionStream.rapidlyChangingMotionState.state.joint_limit_reached.limit_reached;ZO(n.current,s)||(n.current=s,a(s))});const o=[];for(const[s,i]of r.entries())i&&o.push(s);return b.jsx(W.Typography,{color:"error",sx:{margin:"0.5rem 1rem",textAlign:"center",minHeight:"1.5rem",visibility:o.length?"visible":"hidden"},children:t("Jogging.JointLimitsReached.lb",{jointNumbers:o.map(s=>s+1).join(", ")})})},ew=W.styled(W.FormControl)(({theme:e})=>({"&.MuiFormControl-root":{".MuiSelect-select":{paddingTop:"20px",paddingLeft:"12px"},label:{pointerEvents:"none",fontSize:"16px"},".MuiInputLabel-root":{"&.Mui-focused":{color:e.palette.text.primary}}}}));function rn({labelValue:e,...t}){return b.jsxs(ew,{fullWidth:!0,variant:"filled",children:[b.jsx(W.InputLabel,{id:t.labelId,children:e}),b.jsx(W.Select,{...t})]})}var Vl=function(){try{var e=br(Object,"defineProperty");return e({},"",{}),e}catch{}}();function tw(e,t,r){t=="__proto__"&&Vl?Vl(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function rw(e,t,r,a){for(var n=-1,o=e==null?0:e.length;++n<o;){var s=e[n];t(a,s,r(s),e)}return a}function aw(e){return function(t,r,a){for(var n=-1,o=Object(t),s=a(t),i=s.length;i--;){var l=s[++n];if(r(o[l],l,o)===!1)break}return t}}var nw=aw();function ow(e,t){return e&&nw(e,t,Os)}function sw(e,t){return function(r,a){if(r==null)return r;if(!pd(r))return e(r,a);for(var n=r.length,o=-1,s=Object(r);++o<n&&a(s[o],o,s)!==!1;);return r}}var iw=sw(ow);function lw(e,t,r,a){return iw(e,function(n,o,s){t(a,n,r(n),s)}),a}var cw=1,dw=2;function uw(e,t,r,a){var n=r.length,o=n;if(e==null)return!o;for(e=Object(e);n--;){var s=r[n];if(s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++n<o;){s=r[n];var i=s[0],l=e[i],c=s[1];if(s[2]){if(l===void 0&&!(i in e))return!1}else{var d=new jt,u;if(!(u===void 0?no(c,l,cw|dw,a,d):u))return!1}}return!0}function md(e){return e===e&&!dr(e)}function pw(e){for(var t=Os(e),r=t.length;r--;){var a=t[r],n=e[a];t[r]=[a,n,md(n)]}return t}function fd(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}function hw(e){var t=pw(e);return t.length==1&&t[0][2]?fd(t[0][0],t[0][1]):function(r){return r===e||uw(r,e,t)}}var mw=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,fw=/^\w*$/;function ws(e,t){if(Vt(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||Hn(e)?!0:fw.test(e)||!mw.test(e)||t!=null&&e in Object(t)}var gw="Expected a function";function Cs(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(gw);var r=function(){var a=arguments,n=t?t.apply(this,a):a[0],o=r.cache;if(o.has(n))return o.get(n);var s=e.apply(this,a);return r.cache=o.set(n,s)||o,s};return r.cache=new(Cs.Cache||kt),r}Cs.Cache=kt;var yw=500;function bw(e){var t=Cs(e,function(a){return r.size===yw&&r.clear(),a}),r=t.cache;return t}var Sw=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,vw=/\\(\\)?/g,xw=bw(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Sw,function(r,a,n,o){t.push(n?o.replace(vw,"$1"):a||r)}),t});function Ow(e,t){for(var r=-1,a=e==null?0:e.length,n=Array(a);++r<a;)n[r]=t(e[r],r,e);return n}var Rl=Xt?Xt.prototype:void 0,_l=Rl?Rl.toString:void 0;function gd(e){if(typeof e=="string")return e;if(Vt(e))return Ow(e,gd)+"";if(Hn(e))return _l?_l.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function yd(e){return e==null?"":gd(e)}function bd(e,t){return Vt(e)?e:ws(e,t)?[e]:xw(yd(e))}function oo(e){if(typeof e=="string"||Hn(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function Sd(e,t){t=bd(t,e);for(var r=0,a=t.length;e!=null&&r<a;)e=e[oo(t[r++])];return r&&r==a?e:void 0}function ww(e,t,r){var a=e==null?void 0:Sd(e,t);return a===void 0?r:a}function Cw(e,t){return e!=null&&t in Object(e)}function Pw(e,t,r){t=bd(t,e);for(var a=-1,n=t.length,o=!1;++a<n;){var s=oo(t[a]);if(!(o=e!=null&&r(e,s)))break;e=e[s]}return o||++a!=n?o:(n=e==null?0:e.length,!!n&&xs(n)&&cd(s,n)&&(Vt(e)||id(e)))}function Vw(e,t){return e!=null&&Pw(e,t,Cw)}var Rw=1,_w=2;function Aw(e,t){return ws(e)&&md(t)?fd(oo(e),t):function(r){var a=ww(r,e);return a===void 0&&a===t?Vw(r,e):no(t,a,Rw|_w)}}function Tw(e){return e}function Ew(e){return function(t){return t==null?void 0:t[e]}}function Iw(e){return function(t){return Sd(t,e)}}function Mw(e){return ws(e)?Ew(oo(e)):Iw(e)}function jw(e){return typeof e=="function"?e:e==null?Tw:typeof e=="object"?Vt(e)?Aw(e[0],e[1]):hw(e):Mw(e)}function $w(e,t){return function(r,a){var n=Vt(r)?rw:lw,o={};return n(r,e,jw(a),o)}}var an=$w(function(e,t,r){tw(e,r,t)}),Uw=0;function Lw(e){var t=++Uw;return yd(e)+t}const ls=[{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}],kw=[{id:"continuous"},...ls],Bw=["coordsys","tool"];class so{constructor(t,r,a,n){var o,s;this.jogger=t,this.motionGroupSpec=r,this.coordSystems=a,this.tcps=n,this.selectedTabId="cartesian",this.activationState="inactive",this.activationError=null,this.activationCounter=0,this.locks=new Set,this.selectedCoordSystemId="world",this.selectedTcpId="",this.selectedOrientation="coordsys",this.selectedIncrementId="continuous",this.selectedCartesianMotionType="translate",this.incrementJogInProgress=null,this.translationVelocityMmPerSec=10,this.rotationVelocityDegPerSec=1,this.minTranslationVelocityMmPerSec=5,this.maxTranslationVelocityMmPerSec=250,this.minRotationVelocityDegPerSec=1,this.maxRotationVelocityDegPerSec=60,this.showCoordSystemSelect=!0,this.showTcpSelect=!0,this.showOrientationSelect=!0,this.showIncrementSelect=!0,this.showTabIcons=!1,this.showVelocitySliderLabel=!0,this.showVelocityLegend=!1,this.disposers=[];for(const i of a)if(i.coordinate_system===""){i.coordinate_system="world";break}this.selectedCoordSystemId=((o=a[0])==null?void 0:o.coordinate_system)||"world",this.selectedTcpId=((s=n[0])==null?void 0:s.id)||"",Be.makeAutoObservable(this,{},{autoBind:!0}),this.loadFromLocalStorage(),this.disposers.push(Be.autorun(()=>this.saveToLocalStorage())),window.joggingStore=this}static async loadFor(t){const{nova:r}=t,[a,{coordinatesystems:n},{tcps:o}]=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 so(t,a,n||[],o||[])}dispose(){for(const t of this.disposers)t();this.jogger.dispose()}get coordSystemCountByName(){return cs.countBy(this.coordSystems,t=>t.name)}async deactivate(){const t=this.jogger.activeWebsocket;this.jogger.setJoggingMode("increment"),t&&await t.closed()}async activate(){if(this.currentTab.id==="cartesian"){const t={tcpId:this.selectedTcpId,coordSystemId:this.activeCoordSystemId};this.activeDiscreteIncrement?this.jogger.setJoggingMode("increment",t):this.jogger.setJoggingMode("cartesian",t)}else this.jogger.setJoggingMode("joint");return this.jogger}loadFromLocalStorage(){const t=ir.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 kw}get discreteIncrementOptions(){return ls}get incrementOptionsById(){return an(this.incrementOptions,t=>t.id)}get tabsById(){return an(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 an(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 an(this.tcps,t=>t.id)}get activeDiscreteIncrement(){return this.selectedOrientation==="tool"?void 0:ls.find(t=>t.id===this.selectedIncrementId)}get rotationVelocityRadsPerSec(){return this.rotationVelocityDegPerSec*Math.PI/180}get velocityInDisplayUnits(){return this.currentMotionType==="translate"?this.translationVelocityMmPerSec:this.rotationVelocityDegPerSec}get minVelocityInDisplayUnits(){return this.currentMotionType==="translate"?this.minTranslationVelocityMmPerSec:this.minRotationVelocityDegPerSec}get maxVelocityInDisplayUnits(){return this.currentMotionType==="translate"?this.maxTranslationVelocityMmPerSec:this.maxRotationVelocityDegPerSec}get currentMotionType(){return this.selectedTabId==="cartesian"&&this.selectedCartesianMotionType==="translate"?"translate":"rotate"}onTabChange(t,r){const a=this.tabs[r]||this.tabs[0];this.selectedTabId=a.id}setSelectedCoordSystemId(t){this.selectedCoordSystemId=t}setSelectedTcpId(t){this.selectedTcpId=t}setSelectedOrientation(t){this.selectedOrientation=t}setSelectedIncrementId(t){this.selectedIncrementId=t}setCurrentIncrementJog(t){this.incrementJogInProgress=t}setVelocityFromSlider(t){this.currentMotionType==="translate"?this.translationVelocityMmPerSec=t:this.rotationVelocityDegPerSec=t}setSelectedCartesianMotionType(t){this.selectedCartesianMotionType=t}lock(t){this.locks.add(t)}unlock(t){this.locks.delete(t)}async withMotionLock(t){const r=Lw();this.lock(r);try{return await t()}finally{this.unlock(r)}}}const Fw=ke.observer(({store:e})=>{var n;const{t}=Me.useTranslation(),r=[];function a(o){switch(o){case"coordsys":return t("Jogging.Orientation.coordsys");case"tool":return t("Jogging.Orientation.tool");default:return o}}return e.showCoordSystemSelect&&r.push(b.jsx(rn,{labelId:"jogging-coord-select",labelValue:t("Jogging.CoordinateSystem.hlb"),value:e.selectedCoordSystemId,size:"small",variant:"filled",displayEmpty:!0,onChange:o=>e.setSelectedCoordSystemId(o.target.value),disabled:e.isLocked,children:e.coordSystems.map(o=>b.jsx(W.MenuItem,{value:o.coordinate_system,children:o.name&&e.coordSystemCountByName[o.name]>1?`${o.name} / ${o.coordinate_system}`:o.name||o.coordinate_system},o.coordinate_system))},"coord")),e.showTcpSelect&&r.push(b.jsx(rn,{labelId:"jogging-tcp-select",labelValue:"TCP",value:e.selectedTcpId,size:"small",variant:"filled",onChange:o=>e.setSelectedTcpId(o.target.value),disabled:e.isLocked,children:e.tcps.map(o=>b.jsx(W.MenuItem,{value:o.id,children:o.id},o.id))},"tcp")),e.showOrientationSelect&&r.push(b.jsx(rn,{labelValue:t("Jogging.Cartesian.Orientation.lb"),id:"orientation-select",labelId:"orientation-select",value:e.selectedOrientation,onChange:o=>e.setSelectedOrientation(o.target.value),disabled:e.isLocked,children:Bw.map(o=>b.jsx(W.MenuItem,{value:o,children:a(o)},o))},"orientation")),e.showIncrementSelect&&r.push(b.jsxs(rn,{labelValue:t("Jogging.Increment.hlb"),labelId:"jogging-increment-select",size:"small",variant:"filled",value:((n=e.activeDiscreteIncrement)==null?void 0:n.id)||"continuous",onChange:o=>e.setSelectedIncrementId(o.target.value),disabled:e.isLocked,children:[b.jsx(W.MenuItem,{value:"continuous",children:t("Jogging.Increment.Continuous.dd")},"continuous"),e.selectedOrientation==="tool"?null:e.discreteIncrementOptions.map(o=>b.jsx(W.MenuItem,{value:o.id,children:e.currentMotionType==="translate"?`${o.mm}mm`:`${o.degrees}°`},o.id))]},"increment")),b.jsx(W.Box,{component:"div",sx:{display:"grid",gap:"16px",gridTemplateColumns:"1fr 1fr",gridAutoRows:"min-content","& label":{opacity:.7,fontSize:"12px",marginBottom:"4px"}},children:r.map((o,s)=>b.jsx(W.Box,{sx:{gridColumn:r.length%2===1&&s===r.length-1?"span 2":"auto"},children:o},s))})}),Nw=W.styled(W.ToggleButtonGroup)(({theme:e})=>{var t;return{"&.MuiToggleButtonGroup-root":{background:(t=e.palette.backgroundPaperElevation)==null?void 0:t[8],borderRadius:"8px",padding:"4px",gap:"4px",button:{border:"none",borderRadius:"4px",flex:"1 1 0px",minWidth:0,"&.MuiToggleButtonGroup-firstButton":{borderRadius:"8px 4px 4px 8px"},"&.MuiToggleButtonGroup-lastButton":{borderRadius:"4px 8px 8px 4px"}}}}});function Dw(e,t,r=(a,n)=>a===n){return e.length===t.length&&e.every((a,n)=>r(a,t[n]))}const zw=2;function kr(e,t,r,a,n){return r===1?Math.min(e+t,n):Math.max(e-t,a)}function vd(e,t){return e-t}function Al(e,t){const{index:r}=e.reduce((a,n,o)=>{const s=Math.abs(t-n);return a===null||s<a.distance||s===a.distance?{distance:s,index:o}:a},null)??{};return r}function nn(e,t){if(t.current!==void 0&&e.changedTouches){const r=e;for(let a=0;a<r.changedTouches.length;a+=1){const n=r.changedTouches[a];if(n.identifier===t.current)return{x:n.clientX,y:n.clientY}}return!1}return{x:e.clientX,y:e.clientY}}function Tn(e,t,r){return(e-t)*100/(r-t)}function Gw(e,t,r){return(r-t)*e+t}function Jw(e){if(Math.abs(e)<1){const r=e.toExponential().split("e-"),a=r[0].split(".")[1];return(a?a.length:0)+parseInt(r[1],10)}const t=e.toString().split(".")[1];return t?t.length:0}function Hw(e,t,r){const a=Math.round((e-r)/t)*t+r;return Number(a.toFixed(Jw(t)))}function Tl({values:e,newValue:t,index:r}){const a=e.slice();return a[r]=t,a.sort(vd)}function on({sliderRef:e,activeIndex:t,setActive:r}){var n,o,s;const a=dn(e.current);(!((n=e.current)!=null&&n.contains(a.activeElement))||Number((o=a==null?void 0:a.activeElement)==null?void 0:o.getAttribute("data-index"))!==t)&&((s=e.current)==null||s.querySelector(`[type="range"][data-index="${t}"]`).focus()),r&&r(t)}function sn(e,t){return typeof e=="number"&&typeof t=="number"?e===t:typeof e=="object"&&typeof t=="object"?Dw(e,t):!1}const qw={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}%`})}},Ww=e=>e;let ln;function El(){return ln===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?ln=CSS.supports("touch-action","none"):ln=!0),ln}function Kw(e){const{"aria-labelledby":t,defaultValue:r,disabled:a=!1,disableSwap:n=!1,isRtl:o=!1,marks:s=!1,max:i=100,min:l=0,name:c,onChange:d,onChangeCommitted:u,orientation:p="horizontal",rootRef:f,scale:y=Ww,step:h=1,shiftStep:x=10,tabIndex:I,value:k}=e,F=J.useRef(void 0),[N,z]=J.useState(-1),[K,E]=J.useState(-1),[$,L]=J.useState(!1),g=J.useRef(0),M=J.useRef(null),[B,G]=Fp({controlled:k,default:r??l,name:"Slider"}),D=d&&((q,Q,ee)=>{const de=q.nativeEvent||q,he=new de.constructor(de.type,de);Object.defineProperty(he,"target",{writable:!0,value:{value:Q,name:c}}),M.current=Q,d(he,Q,ee)}),re=Array.isArray(B);let Z=re?B.slice().sort(vd):[B];Z=Z.map(q=>q==null?l:Br(q,l,i));const xe=s===!0&&h!==null?[...Array(Math.floor((i-l)/h)+1)].map((q,Q)=>({value:l+h*Q})):s||[],X=xe.map(q=>q.value),[ce,fe]=J.useState(-1),le=J.useRef(null),He=Xl(f,le),_t=q=>Q=>{var de;const ee=Number(Q.currentTarget.getAttribute("data-index"));Ks(Q.target)&&fe(ee),E(ee),(de=q==null?void 0:q.onFocus)==null||de.call(q,Q)},ra=q=>Q=>{var ee;Ks(Q.target)||fe(-1),E(-1),(ee=q==null?void 0:q.onBlur)==null||ee.call(q,Q)},Sr=(q,Q)=>{const ee=Number(q.currentTarget.getAttribute("data-index")),de=Z[ee],he=X.indexOf(de);let te=Q;if(xe&&h==null){const $e=X[X.length-1];te>=$e?te=$e:te<=X[0]?te=X[0]:te=te<de?X[he-1]:X[he+1]}if(te=Br(te,l,i),re){n&&(te=Br(te,Z[ee-1]||-1/0,Z[ee+1]||1/0));const $e=te;te=Tl({values:Z,newValue:te,index:ee});let De=ee;n||(De=te.indexOf($e)),on({sliderRef:le,activeIndex:De})}G(te),fe(ee),D&&!sn(te,B)&&D(q,te,ee),u&&u(q,M.current??te)},er=q=>Q=>{var ee;if(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight","PageUp","PageDown","Home","End"].includes(Q.key)){Q.preventDefault();const de=Number(Q.currentTarget.getAttribute("data-index")),he=Z[de];let te=null;if(h!=null){const $e=Q.shiftKey?x:h;switch(Q.key){case"ArrowUp":te=kr(he,$e,1,l,i);break;case"ArrowRight":te=kr(he,$e,o?-1:1,l,i);break;case"ArrowDown":te=kr(he,$e,-1,l,i);break;case"ArrowLeft":te=kr(he,$e,o?1:-1,l,i);break;case"PageUp":te=kr(he,x,1,l,i);break;case"PageDown":te=kr(he,x,-1,l,i);break;case"Home":te=l;break;case"End":te=i;break}}else if(xe){const $e=X[X.length-1],De=X.indexOf(he),Te=[o?"ArrowRight":"ArrowLeft","ArrowDown","PageDown","Home"],Qe=[o?"ArrowLeft":"ArrowRight","ArrowUp","PageUp","End"];Te.includes(Q.key)?De===0?te=X[0]:te=X[De-1]:Qe.includes(Q.key)&&(De===X.length-1?te=$e:te=X[De+1])}te!=null&&Sr(Q,te)}(ee=q==null?void 0:q.onKeyDown)==null||ee.call(q,Q)};Ql(()=>{var q;a&&le.current.contains(document.activeElement)&&((q=document.activeElement)==null||q.blur())},[a]),a&&N!==-1&&z(-1),a&&ce!==-1&&fe(-1);const Bt=q=>Q=>{var ee;(ee=q.onChange)==null||ee.call(q,Q),Sr(Q,Q.target.valueAsNumber)},nt=J.useRef(void 0);let dt=p;o&&p==="horizontal"&&(dt+="-reverse");const ot=({finger:q,move:Q=!1})=>{const{current:ee}=le,{width:de,height:he,bottom:te,left:$e}=ee.getBoundingClientRect();let De;dt.startsWith("vertical")?De=(te-q.y)/he:De=(q.x-$e)/de,dt.includes("-reverse")&&(De=1-De);let Te;if(Te=Gw(De,l,i),h)Te=Hw(Te,h,l);else{const tr=Al(X,Te);Te=X[tr]}Te=Br(Te,l,i);let Qe=0;if(re){Q?Qe=nt.current:Qe=Al(Z,Te),n&&(Te=Br(Te,Z[Qe-1]||-1/0,Z[Qe+1]||1/0));const tr=Te;Te=Tl({values:Z,newValue:Te,index:Qe}),n&&Q||(Qe=Te.indexOf(tr),nt.current=Qe)}return{newValue:Te,activeIndex:Qe}},At=fo(q=>{const Q=nn(q,F);if(!Q)return;if(g.current+=1,q.type==="mousemove"&&q.buttons===0){et(q);return}const{newValue:ee,activeIndex:de}=ot({finger:Q,move:!0});on({sliderRef:le,activeIndex:de,setActive:z}),G(ee),!$&&g.current>zw&&L(!0),D&&!sn(ee,B)&&D(q,ee,de)}),et=fo(q=>{const Q=nn(q,F);if(L(!1),!Q)return;const{newValue:ee}=ot({finger:Q,move:!0});z(-1),q.type==="touchend"&&E(-1),u&&u(q,M.current??ee),F.current=void 0,Tt()}),Ne=fo(q=>{if(a)return;El()||q.preventDefault();const Q=q.changedTouches[0];Q!=null&&(F.current=Q.identifier);const ee=nn(q,F);if(ee!==!1){const{newValue:he,activeIndex:te}=ot({finger:ee});on({sliderRef:le,activeIndex:te,setActive:z}),G(he),D&&!sn(he,B)&&D(q,he,te)}g.current=0;const de=dn(le.current);de.addEventListener("touchmove",At,{passive:!0}),de.addEventListener("touchend",et,{passive:!0})}),Tt=J.useCallback(()=>{const q=dn(le.current);q.removeEventListener("mousemove",At),q.removeEventListener("mouseup",et),q.removeEventListener("touchmove",At),q.removeEventListener("touchend",et)},[et,At]);J.useEffect(()=>{const{current:q}=le;return q.addEventListener("touchstart",Ne,{passive:El()}),()=>{q.removeEventListener("touchstart",Ne),Tt()}},[Tt,Ne]),J.useEffect(()=>{a&&Tt()},[a,Tt]);const Ft=q=>Q=>{var he;if((he=q.onMouseDown)==null||he.call(q,Q),a||Q.defaultPrevented||Q.button!==0)return;Q.preventDefault();const ee=nn(Q,F);if(ee!==!1){const{newValue:te,activeIndex:$e}=ot({finger:ee});on({sliderRef:le,activeIndex:$e,setActive:z}),G(te),D&&!sn(te,B)&&D(Q,te,$e)}g.current=0;const de=dn(le.current);de.addEventListener("mousemove",At,{passive:!0}),de.addEventListener("mouseup",et)},yt=Tn(re?Z[0]:l,l,i),Fe=Tn(Z[Z.length-1],l,i)-yt,Nt=(q={})=>{const Q=un(q),ee={onMouseDown:Ft(Q||{})},de={...Q,...ee};return{...q,ref:He,...de}},Et=q=>Q=>{var de;(de=q.onMouseOver)==null||de.call(q,Q);const ee=Number(Q.currentTarget.getAttribute("data-index"));E(ee)},vr=q=>Q=>{var ee;(ee=q.onMouseLeave)==null||ee.call(q,Q),E(-1)},xr=(q={})=>{const Q=un(q),ee={onMouseOver:Et(Q||{}),onMouseLeave:vr(Q||{})};return{...q,...Q,...ee}},Dt=q=>({pointerEvents:N!==-1&&N!==q?"none":void 0});let zt;return p==="vertical"&&(zt=o?"vertical-rl":"vertical-lr"),{active:N,axis:dt,axisProps:qw,dragging:$,focusedThumbIndex:ce,getHiddenInputProps:(q={})=>{const Q=un(q),ee={onChange:Bt(Q||{}),onFocus:_t(Q||{}),onBlur:ra(Q||{}),onKeyDown:er(Q||{})},de={...Q,...ee};return{tabIndex:I,"aria-labelledby":t,"aria-orientation":p,"aria-valuemax":y(i),"aria-valuemin":y(l),name:c,type:"range",min:e.min,max:e.max,step:e.step===null&&e.marks?"any":e.step??void 0,disabled:a,...q,...de,style:{...Np,direction:o?"rtl":"ltr",width:"100%",height:"100%",writingMode:zt}}},getRootProps:Nt,getThumbProps:xr,marks:xe,open:K,range:re,rootRef:He,trackLeap:Fe,trackOffset:yt,values:Z,getThumbStyle:Dt}}function fn(e){return typeof e=="string"}const Qw=e=>!e||!fn(e);function Yw(e){return typeof e.main=="string"}function Xw(e,t=[]){if(!Yw(e))return!1;for(const r of t)if(!e.hasOwnProperty(r)||typeof e[r]!="string")return!1;return!0}function Ps(e=[]){return([,t])=>t&&Xw(t,e)}function Zw(e){return Ba("MuiSlider",e)}const lt=Gl("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"]),eC=e=>{const{open:t}=e;return{offset:Pt(t&&lt.valueLabelOpen),circle:lt.valueLabelCircle,label:lt.valueLabelLabel}};function xd(e){const{children:t,className:r,value:a}=e,n=eC(e);return t?J.cloneElement(t,{className:Pt(t.props.className)},b.jsxs(J.Fragment,{children:[t.props.children,b.jsx("span",{className:Pt(n.offset,r),"aria-hidden":!0,children:b.jsx("span",{className:n.circle,children:b.jsx("span",{className:n.label,children:a})})})]})):null}process.env.NODE_ENV!=="production"&&(xd.propTypes={children:S.element.isRequired,className:S.string,value:S.node});function Il(e){return e}const tC=$t("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`color${We(r.color)}`],r.size!=="medium"&&t[`size${We(r.size)}`],r.marked&&t.marked,r.orientation==="vertical"&&t.vertical,r.track==="inverted"&&t.trackInverted,r.track===!1&&t.trackFalse]}})(mr(({theme:e})=>({borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",WebkitTapHighlightColor:"transparent","@media print":{colorAdjust:"exact"},[`&.${lt.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${lt.dragging}`]:{[`& .${lt.thumb}, & .${lt.track}`]:{transition:"none"}},variants:[...Object.entries(e.palette).filter(Ps()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].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}}]}))),rC=$t("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}}]}),aC=$t("span",{name:"MuiSlider",slot:"Track",overridesResolver:(e,t)=>t.track})(mr(({theme:e})=>({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.entries(e.palette).filter(Ps()).map(([t])=>({props:{color:t,track:"inverted"},style:{...e.vars?{backgroundColor:e.vars.palette.Slider[`${t}Track`],borderColor:e.vars.palette.Slider[`${t}Track`]}:{backgroundColor:_a(e.palette[t].main,.62),borderColor:_a(e.palette[t].main,.62),...e.applyStyles("dark",{backgroundColor:Ra(e.palette[t].main,.5)}),...e.applyStyles("dark",{borderColor:Ra(e.palette[t].main,.5)})}}}))]}))),nC=$t("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.thumb,t[`thumbColor${We(r.color)}`],r.size!=="medium"&&t[`thumbSize${We(r.size)}`]]}})(mr(({theme:e})=>({position:"absolute",width:20,height:20,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:e.transitions.create(["box-shadow","left","bottom"],{duration:e.transitions.duration.shortest}),"&::before":{position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:(e.vars||e).shadows[2]},"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,height:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"},[`&.${lt.disabled}`]:{"&:hover":{boxShadow:"none"}},variants:[{props:{size:"small"},style:{width:12,height:12,"&::before":{boxShadow:"none"}}},{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-50%, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 50%)"}},...Object.entries(e.palette).filter(Ps()).map(([t])=>({props:{color:t},style:{[`&:hover, &.${lt.focusVisible}`]:{...e.vars?{boxShadow:`0px 0px 0px 8px rgba(${e.vars.palette[t].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 8px ${ko(e.palette[t].main,.16)}`},"@media (hover: none)":{boxShadow:"none"}},[`&.${lt.active}`]:{...e.vars?{boxShadow:`0px 0px 0px 14px rgba(${e.vars.palette[t].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 14px ${ko(e.palette[t].main,.16)}`}}}}))]}))),Od=$t(xd,{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(e,t)=>t.valueLabel})(mr(({theme:e})=>({zIndex:1,whiteSpace:"nowrap",...e.typography.body2,fontWeight:500,transition:e.transitions.create(["transform"],{duration:e.transitions.duration.shortest}),position:"absolute",backgroundColor:(e.vars||e).palette.grey[600],borderRadius:2,color:(e.vars||e).palette.common.white,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.25rem 0.75rem",variants:[{props:{orientation:"horizontal"},style:{transform:"translateY(-100%) scale(0)",top:"-10px",transformOrigin:"bottom center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, 50%) rotate(45deg)",backgroundColor:"inherit",bottom:0,left:"50%"},[`&.${lt.valueLabelOpen}`]:{transform:"translateY(-100%) scale(1)"}}},{props:{orientation:"vertical"},style:{transform:"translateY(-50%) scale(0)",right:"30px",top:"50%",transformOrigin:"right center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, -50%) rotate(45deg)",backgroundColor:"inherit",right:-8,top:"50%"},[`&.${lt.valueLabelOpen}`]:{transform:"translateY(-50%) scale(1)"}}},{props:{size:"small"},style:{fontSize:e.typography.pxToRem(12),padding:"0.25rem 0.5rem"}},{props:{orientation:"vertical",size:"small"},style:{right:"20px"}}]})));process.env.NODE_ENV!=="production"&&(Od.propTypes={children:S.element.isRequired,index:S.number.isRequired,open:S.bool.isRequired,value:S.node});const oC=$t("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>ms(e)&&e!=="markActive",overridesResolver:(e,t)=>{const{markActive:r}=e;return[t.mark,r&&t.markActive]}})(mr(({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}}]}))),sC=$t("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>ms(e)&&e!=="markLabelActive",overridesResolver:(e,t)=>t.markLabel})(mr(({theme:e})=>({...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}}]}))),iC=e=>{const{disabled:t,dragging:r,marked:a,orientation:n,track:o,classes:s,color:i,size:l}=e,c={root:["root",t&&"disabled",r&&"dragging",a&&"marked",n==="vertical"&&"vertical",o==="inverted"&&"trackInverted",o===!1&&"trackFalse",i&&`color${We(i)}`,l&&`size${We(l)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",l&&`thumbSize${We(l)}`,i&&`thumbColor${We(i)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return ps(c,Zw,s)},lC=({children:e})=>e,wd=J.forwardRef(function(t,r){const a=fs({props:t,name:"MuiSlider"}),n=qp(),{"aria-label":o,"aria-valuetext":s,"aria-labelledby":i,component:l="span",components:c={},componentsProps:d={},color:u="primary",classes:p,className:f,disableSwap:y=!1,disabled:h=!1,getAriaLabel:x,getAriaValueText:I,marks:k=!1,max:F=100,min:N=0,name:z,onChange:K,onChangeCommitted:E,orientation:$="horizontal",shiftStep:L=10,size:g="medium",step:M=1,scale:B=Il,slotProps:G,slots:D,tabIndex:re,track:Z="normal",value:xe,valueLabelDisplay:X="off",valueLabelFormat:ce=Il,...fe}=a,le={...a,isRtl:n,max:F,min:N,classes:p,disabled:h,disableSwap:y,orientation:$,marks:k,color:u,size:g,step:M,shiftStep:L,scale:B,track:Z,valueLabelDisplay:X,valueLabelFormat:ce},{axisProps:He,getRootProps:_t,getHiddenInputProps:ra,getThumbProps:Sr,open:er,active:Bt,axis:nt,focusedThumbIndex:dt,range:ot,dragging:At,marks:et,values:Ne,trackOffset:Tt,trackLeap:Ft,getThumbStyle:yt}=Kw({...le,rootRef:r});le.marked=et.length>0&&et.some(Ve=>Ve.label),le.dragging=At,le.focusedThumbIndex=dt;const Fe=iC(le),Nt=(D==null?void 0:D.root)??c.Root??tC,Et=(D==null?void 0:D.rail)??c.Rail??rC,vr=(D==null?void 0:D.track)??c.Track??aC,xr=(D==null?void 0:D.thumb)??c.Thumb??nC,Dt=(D==null?void 0:D.valueLabel)??c.ValueLabel??Od,zt=(D==null?void 0:D.mark)??c.Mark??oC,Or=(D==null?void 0:D.markLabel)??c.MarkLabel??sC,q=(D==null?void 0:D.input)??c.Input??"input",Q=(G==null?void 0:G.root)??d.root,ee=(G==null?void 0:G.rail)??d.rail,de=(G==null?void 0:G.track)??d.track,he=(G==null?void 0:G.thumb)??d.thumb,te=(G==null?void 0:G.valueLabel)??d.valueLabel,$e=(G==null?void 0:G.mark)??d.mark,De=(G==null?void 0:G.markLabel)??d.markLabel,Te=(G==null?void 0:G.input)??d.input,Qe=Gt({elementType:Nt,getSlotProps:_t,externalSlotProps:Q,externalForwardedProps:fe,additionalProps:{...Qw(Nt)&&{as:l}},ownerState:{...le,...Q==null?void 0:Q.ownerState},className:[Fe.root,f]}),tr=Gt({elementType:Et,externalSlotProps:ee,ownerState:le,className:Fe.rail}),io=Gt({elementType:vr,externalSlotProps:de,additionalProps:{style:{...He[nt].offset(Tt),...He[nt].leap(Ft)}},ownerState:{...le,...de==null?void 0:de.ownerState},className:Fe.track}),aa=Gt({elementType:xr,getSlotProps:Sr,externalSlotProps:he,ownerState:{...le,...he==null?void 0:he.ownerState},className:Fe.thumb}),na=Gt({elementType:Dt,externalSlotProps:te,ownerState:{...le,...te==null?void 0:te.ownerState},className:Fe.valueLabel}),wr=Gt({elementType:zt,externalSlotProps:$e,ownerState:le,className:Fe.mark}),bt=Gt({elementType:Or,externalSlotProps:De,ownerState:le,className:Fe.markLabel}),oa=Gt({elementType:q,getSlotProps:ra,externalSlotProps:Te,ownerState:le});return b.jsxs(Nt,{...Qe,children:[b.jsx(Et,{...tr}),b.jsx(vr,{...io}),et.filter(Ve=>Ve.value>=N&&Ve.value<=F).map((Ve,Ue)=>{const sa=Tn(Ve.value,N,F),rr=He[nt].offset(sa);let ut;return Z===!1?ut=Ne.includes(Ve.value):ut=Z==="normal"&&(ot?Ve.value>=Ne[0]&&Ve.value<=Ne[Ne.length-1]:Ve.value<=Ne[0])||Z==="inverted"&&(ot?Ve.value<=Ne[0]||Ve.value>=Ne[Ne.length-1]:Ve.value>=Ne[0]),b.jsxs(J.Fragment,{children:[b.jsx(zt,{"data-index":Ue,...wr,...!fn(zt)&&{markActive:ut},style:{...rr,...wr.style},className:Pt(wr.className,ut&&Fe.markActive)}),Ve.label!=null?b.jsx(Or,{"aria-hidden":!0,"data-index":Ue,...bt,...!fn(Or)&&{markLabelActive:ut},style:{...rr,...bt.style},className:Pt(Fe.markLabel,bt.className,ut&&Fe.markLabelActive),children:Ve.label}):null]},Ue)}),Ne.map((Ve,Ue)=>{const sa=Tn(Ve,N,F),rr=He[nt].offset(sa),ut=X==="off"?lC:Dt;return b.jsx(ut,{...!fn(ut)&&{valueLabelFormat:ce,valueLabelDisplay:X,value:typeof ce=="function"?ce(B(Ve),Ue):ce,index:Ue,open:er===Ue||Bt===Ue||X==="on",disabled:h},...na,children:b.jsx(xr,{"data-index":Ue,...aa,className:Pt(Fe.thumb,aa.className,Bt===Ue&&Fe.active,dt===Ue&&Fe.focusVisible),style:{...rr,...yt(Ue),...aa.style},children:b.jsx(q,{"data-index":Ue,"aria-label":x?x(Ue):o,"aria-valuenow":B(Ve),"aria-labelledby":i,"aria-valuetext":I?I(B(Ve),Ue):s,value:Ne[Ue],...oa})})},Ue)})]})});process.env.NODE_ENV!=="production"&&(wd.propTypes={"aria-label":Ws(S.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":S.string,"aria-valuetext":Ws(S.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:S.node,classes:S.object,className:S.string,color:S.oneOfType([S.oneOf(["primary","secondary","error","info","success","warning"]),S.string]),components:S.shape({Input:S.elementType,Mark:S.elementType,MarkLabel:S.elementType,Rail:S.elementType,Root:S.elementType,Thumb:S.elementType,Track:S.elementType,ValueLabel:S.elementType}),componentsProps:S.shape({input:S.oneOfType([S.func,S.object]),mark:S.oneOfType([S.func,S.object]),markLabel:S.oneOfType([S.func,S.object]),rail:S.oneOfType([S.func,S.object]),root:S.oneOfType([S.func,S.object]),thumb:S.oneOfType([S.func,S.object]),track:S.oneOfType([S.func,S.object]),valueLabel:S.oneOfType([S.func,S.shape({children:S.element,className:S.string,open:S.bool,style:S.object,value:S.node,valueLabelDisplay:S.oneOf(["auto","off","on"])})])}),defaultValue:S.oneOfType([S.arrayOf(S.number),S.number]),disabled:S.bool,disableSwap:S.bool,getAriaLabel:S.func,getAriaValueText:S.func,marks:S.oneOfType([S.arrayOf(S.shape({label:S.node,value:S.number.isRequired})),S.bool]),max:S.number,min:S.number,name:S.string,onChange:S.func,onChangeCommitted:S.func,orientation:S.oneOf(["horizontal","vertical"]),scale:S.func,shiftStep:S.number,size:S.oneOfType([S.oneOf(["small","medium"]),S.string]),slotProps:S.shape({input:S.oneOfType([S.func,S.object]),mark:S.oneOfType([S.func,S.object]),markLabel:S.oneOfType([S.func,S.object]),rail:S.oneOfType([S.func,S.object]),root:S.oneOfType([S.func,S.object]),thumb:S.oneOfType([S.func,S.object]),track:S.oneOfType([S.func,S.object]),valueLabel:S.oneOfType([S.func,S.shape({children:S.element,className:S.string,open:S.bool,style:S.object,value:S.node,valueLabelDisplay:S.oneOf(["auto","off","on"])})])}),slots:S.shape({input:S.elementType,mark:S.elementType,markLabel:S.elementType,rail:S.elementType,root:S.elementType,thumb:S.elementType,track:S.elementType,valueLabel:S.elementType}),step:S.number,sx:S.oneOfType([S.arrayOf(S.oneOfType([S.func,S.object,S.bool])),S.func,S.object]),tabIndex:S.number,track:S.oneOf(["inverted","normal",!1]),value:S.oneOfType([S.arrayOf(S.number),S.number]),valueLabelDisplay:S.oneOf(["auto","off","on"]),valueLabelFormat:S.oneOfType([S.func,S.string])});var cC="[object Number]";function dC(e){return typeof e=="number"||ur(e)&&fr(e)==cC}const Cd=ke.observer(e=>{var o,s,i;const t=W.useTheme(),{store:r}=e,{t:a}=Me.useTranslation();function n(l,c){c===e.velocity||!dC(c)||e.onVelocityChange(c)}return b.jsxs(W.Stack,{direction:"row",gap:2,alignItems:"center",children:[r.showVelocityLegend&&b.jsx(W.Typography,{sx:{color:(i=(s=(o=t.componentsExt)==null?void 0:o.JoggingPanel)==null?void 0:s.VelocitySlider)==null?void 0:i.sliderLegendColor,fontSize:"14px"},children:a("Jogging.Velocity.bt")}),b.jsx(wd,{value:e.velocity,color:"secondary",onChange:n,min:e.min,max:e.max,"aria-labelledby":"input-slider",disabled:e.disabled,sx:{"& .MuiSlider-valueLabelOpen":{zIndex:100,backgroundColor:"transparent",top:"0px"}}}),r.showVelocitySliderLabel&&(e.renderValue?e.renderValue(e.velocity):b.jsx(Vs,{value:e.velocity.toString()}))]})});function Vs({value:e,sx:t}){var a;const r=W.useTheme();return b.jsx(W.Stack,{direction:"row",justifyContent:"center",alignItems:"center",gap:"5px",sx:{padding:"6px 12px",background:(a=r.palette.backgroundPaperElevation)==null?void 0:a[8],borderRadius:"10px",minWidth:"111px",...t},children:b.jsx(W.Typography,{component:"span",sx:{textAlign:"right",fontSize:"14px",opacity:.8,color:r.palette.text.primary,whiteSpace:"nowrap"},children:e})})}const Pd=ke.observer(({store:e})=>{const{t}=Me.useTranslation(),r=ke.useLocalObservable(()=>({get valueLabelFormat(){return e.currentMotionType==="translate"?a=>`v = ${t("Jogging.Cartesian.Translation.velocityMmPerSec.lb",{amount:a})}`:a=>`ω = ${t("Jogging.Cartesian.Rotation.velocityDegPerSec.lb",{amount:a})}`}}));return b.jsx(Cd,{store:e,velocity:e.velocityInDisplayUnits,min:e.minVelocityInDisplayUnits,max:e.maxVelocityInDisplayUnits,onVelocityChange:e.setVelocityFromSlider,disabled:e.isLocked,renderValue:a=>b.jsx(Vs,{value:r.valueLabelFormat(a),sx:{minWidth:"111px",span:{transform:"translateY(-1.5px)"}}})})}),uC=ke.observer(({store:e,children:t})=>{var u,p,f,y,h,x,I,k,F,N,z,K;const{t:r}=Me.useTranslation(),a=W.useTheme();function n(E,$){($==="translate"||$==="rotate")&&e.setSelectedCartesianMotionType($)}lc(()=>[e.selectedCoordSystemId,e.selectedTcpId],()=>{e.jogger.motionStream.motionStateSocket.changeUrl(e.jogger.nova.makeWebsocketURL(`/motion-groups/${e.jogger.motionGroupId}/state-stream?tcp=${e.selectedTcpId}&response_coordinate_system=${e.selectedCoordSystemId}`))},{fireImmediately:!0});async function o(E,$){const L=await e.activate(),g=L.motionStream.rapidlyChangingMotionState.tcp_pose,M=L.motionStream.rapidlyChangingMotionState.state.joint_position;g&&await e.withMotionLock(async()=>{try{e.setCurrentIncrementJog({axis:E.axis,direction:E.direction}),await e.jogger.runIncrementalCartesianMotion({currentTcpPose:g,currentJoints:M,coordSystemId:e.activeCoordSystemId,velocityInRelevantUnits:e.selectedCartesianMotionType==="translate"?e.translationVelocityMmPerSec:e.rotationVelocityRadsPerSec,axis:E.axis,direction:E.direction,motion:e.selectedCartesianMotionType==="translate"?{type:"translate",distanceMm:$.mm}:{type:"rotate",distanceRads:ir.degreesToRadians($.degrees)}})}finally{e.setCurrentIncrementJog(null),await e.deactivate()}})}async function s(E){if(!e.isLocked){if(await e.activate(),e.activeDiscreteIncrement)return o(E,e.activeDiscreteIncrement);E.motionType==="translate"?await e.jogger.startTCPTranslation({axis:E.axis,direction:E.direction,velocityMmPerSec:e.translationVelocityMmPerSec}):await e.jogger.startTCPRotation({axis:E.axis,direction:E.direction,velocityRadsPerSec:e.rotationVelocityRadsPerSec})}}async function i(){e.isLocked||e.activeDiscreteIncrement||await e.deactivate()}const l=[{id:"x",colors:(y=(f=(p=(u=a.componentsExt)==null?void 0:u.JoggingPanel)==null?void 0:p.JoggingCartesian)==null?void 0:f.Axis)==null?void 0:y.X,icon:b.jsx(b1,{})},{id:"y",colors:(k=(I=(x=(h=a.componentsExt)==null?void 0:h.JoggingPanel)==null?void 0:x.JoggingCartesian)==null?void 0:I.Axis)==null?void 0:k.Y,icon:b.jsx(v1,{})},{id:"z",colors:(K=(z=(N=(F=a.componentsExt)==null?void 0:F.JoggingPanel)==null?void 0:N.JoggingCartesian)==null?void 0:z.Axis)==null?void 0:K.Z,icon:b.jsx(O1,{})}];function c(E){return r("General.mm.variable",{amount:E.toFixed(1)})}function d(E){return r("General.degree.variable",{amount:ir.radiansToDegrees(E).toFixed(1)})}return b.jsxs(W.Stack,{flexGrow:1,gap:2,sx:{padding:"18px 24px"},children:[b.jsxs(W.Stack,{gap:2,children:[b.jsx(Fw,{store:e}),b.jsx(Pd,{store:e}),b.jsx(W.Divider,{})]}),b.jsx(W.Stack,{marginLeft:"auto",marginRight:"auto",gap:"24px",justifyContent:"center",sx:{flexGrow:"1"},children:b.jsxs(W.Stack,{alignItems:"center",justifyContent:"center",gap:"24px",sx:{flexGrow:1},children:[b.jsxs(Nw,{value:e.selectedCartesianMotionType,onChange:n,exclusive:!0,"aria-label":r("Jogging.Cartesian.MotionType.lb"),sx:{justifyContent:"center"},children:[b.jsx(W.ToggleButton,{value:"translate",children:r("Jogging.Cartesian.Translation.bt")}),b.jsx(W.ToggleButton,{value:"rotate",children:r("Jogging.Cartesian.Rotation.bt")})]}),e.selectedCartesianMotionType==="translate"&&l.map(E=>{var $,L;return b.jsx(No,{colors:E.colors,disabled:e.isLocked,activeJoggingDirection:(($=e.incrementJogInProgress)==null?void 0:$.axis)===E.id?e.incrementJogInProgress.direction:void 0,label:b.jsxs(b.Fragment,{children:[E.icon,b.jsx(W.Typography,{sx:{fontSize:"24px",color:((L=E.colors)==null?void 0:L.labelColor)??a.palette.text.primary},children:E.id.toUpperCase()})]}),getDisplayedValue:()=>{var g;return c(((g=e.jogger.motionStream.rapidlyChangingMotionState.tcp_pose)==null?void 0:g.position[E.id])||0)},startJogging:g=>s({axis:E.id,motionType:"translate",direction:g}),stopJogging:i},E.id)}),e.selectedCartesianMotionType==="rotate"&&l.map(E=>{var $,L;return b.jsx(No,{colors:E.colors,disabled:e.isLocked,activeJoggingDirection:(($=e.incrementJogInProgress)==null?void 0:$.axis)===E.id?e.incrementJogInProgress.direction:void 0,label:b.jsxs(b.Fragment,{children:[b.jsx(C1,{}),b.jsx(W.Typography,{sx:{fontSize:"24px",color:((L=E.colors)==null?void 0:L.labelColor)??a.palette.text.primary},children:E.id.toUpperCase()})]}),getDisplayedValue:()=>{var g,M;return d(((M=(g=e.jogger.motionStream.rapidlyChangingMotionState.tcp_pose)==null?void 0:g.orientation)==null?void 0:M[E.id])||0)},startJogging:g=>s({axis:E.id,motionType:"rotate",direction:g}),stopJogging:i},E.id)})]})}),b.jsx(hd,{store:e}),t&&b.jsx(W.Divider,{}),t]})}),pC=ke.observer(({store:e,children:t})=>{async function r(n){await e.activate(),await e.jogger.startJointRotation({joint:n.joint,direction:n.direction,velocityRadsPerSec:e.rotationVelocityRadsPerSec})}async function a(){await e.jogger.stop(),await e.deactivate()}return b.jsxs(W.Stack,{flexGrow:1,gap:2,sx:{padding:"18px 24px"},children:[b.jsx(Pd,{store:e}),b.jsx(W.Divider,{}),b.jsx(W.Stack,{justifyContent:"center",alignItems:"stretch",sx:{flexGrow:"1"},id:"JointControls",children:b.jsx(W.Stack,{alignItems:"center",gap:"24px",children:e.jogger.motionStream.joints.map(n=>{var l;const o=(l=e.motionGroupSpec.mechanical_joint_limits)==null?void 0:l[n.index],s=(o==null?void 0:o.lower_limit)!==void 0?ir.radiansToDegrees(o.lower_limit):void 0,i=(o==null?void 0:o.upper_limit)!==void 0?ir.radiansToDegrees(o.upper_limit):void 0;return b.jsx(uc,{disabled:e.isLocked,lowerLimitDegs:s,upperLimitDegs:i,getValueDegs:()=>{const c=e.jogger.motionStream.rapidlyChangingMotionState.state.joint_position.joints[n.index];return c!==void 0?ir.radiansToDegrees(c):void 0},startJogging:c=>r({joint:n.index,direction:c}),stopJogging:a},`joint-${n.index}`)})})}),b.jsx(hd,{store:e}),t&&b.jsx(W.Divider,{}),t]})}),hC=qr(ke.observer(e=>{const t=cs.isString(e.nova)?new h1({instanceUrl:e.nova}):e.nova,r=ke.useLocalObservable(()=>({joggingStore:null,loadingError:null}));async function a(){Be.runInAction(()=>{r.loadingError=null,r.joggingStore=null});try{let n=e.store;if(!n){const o=await t.connectJogger(e.motionGroupId);n=await so.loadFor(o)}Be.runInAction(()=>{r.joggingStore=n}),e.onSetup&&e.onSetup(n)}catch(n){r.loadingError=n}}return ae.useEffect(()=>(a(),e.store?()=>null:()=>{var n;(n=r.joggingStore)==null||n.dispose()}),[e.store,e.nova,e.motionGroupId]),ae.useEffect(()=>{const n=r.joggingStore;n&&(e.locked?n.lock("external"):n.unlock("external"))},[r.joggingStore,e.locked]),b.jsx(W.Stack,{sx:{maxWidth:"460px",minWidth:"320px",position:"relative",...e.sx},children:r.joggingStore?b.jsx(mC,{store:r.joggingStore,children:e.children}):b.jsx(vs,{message:"Loading jogging",error:r.loadingError})})})),mC=ke.observer(({store:e,children:t})=>{const{t:r}=Me.useTranslation();function a(){if(e.currentTab.id==="cartesian")return b.jsx(b.Fragment,{children:b.jsx(uC,{store:e,children:t})});if(e.currentTab.id==="joint")return b.jsx(b.Fragment,{children:b.jsx(pC,{store:e,children:t})})}return b.jsxs(W.Stack,{flexGrow:1,sx:{overflow:"hidden"},children:[b.jsx(W.Tabs,{value:e.tabIndex,onChange:e.onTabChange,variant:"fullWidth",children:e.tabs.map(n=>{const o=n.label==="cartesian"?r("Jogging.Cartesian.bt"):r("Jogging.Joints.bt"),s=n.label==="cartesian"?b.jsx(Jm,{fontSize:"small",sx:{mr:1}}):b.jsx(Hm,{fontSize:"small",sx:{mr:1}});return b.jsx(W.Tab,{label:e.showTabIcons?b.jsxs(W.Stack,{direction:"row",alignItems:"center",children:[s,o]}):o,id:`jogging-tab-${n.id}`,"aria-controls":`jogging-tab-${n.id}`},n.id)})}),b.jsx(W.Stack,{flexGrow:1,position:"relative",sx:{overflowY:"auto",overflowX:"hidden"},children:a()})]})}),Vd=ae.forwardRef(({label:e,value:t},r)=>{var i;const a=W.useTheme(),[n,o]=ae.useState(!1);async function s(){if(!r||!("current"in r))return console.warn("No copy target found"),!1;try{return await navigator.clipboard.writeText(t),console.log("Copied!"),o(!0),!0}catch(l){console.error(l);const c=window.getSelection(),d=document.createRange();d.selectNodeContents(r.current),c.removeAllRanges(),c.addRange(d)}return!1}return ae.useEffect(()=>{if(!n)return;const l=setTimeout(()=>o(!1),3e3);return()=>{l&&clearTimeout(l)}},[n]),b.jsx(W.Tooltip,{open:n,title:"Copied!",children:b.jsx(W.Stack,{justifyContent:"center",sx:{height:"100%",boxSizing:"border-box",padding:"6px 12px",background:(i=a.palette.backgroundPaperElevation)==null?void 0:i[8],borderRadius:"10px",minWidth:"0",cursor:"pointer"},onClick:()=>s(),children:b.jsx(W.Typography,{ref:r,align:"center",sx:{pointerEvents:"none",fontSize:"12px",color:a.palette.text.primary,whiteSpace:"nowrap",minWidth:0,textOverflow:"ellipsis",width:"100%",overflow:"hidden"},children:t})})})}),fC=ke.observer(({motionStream:e})=>{const t=ae.useRef(null);function r(){const a=e.rapidlyChangingMotionState.tcp_pose;return a?ir.poseToWandelscriptString(a):""}return Wr(()=>{if(!t.current)return;const a=r();t.current.textContent!==a&&(t.current.textContent=a)}),b.jsx(W.Stack,{alignItems:"left",spacing:2,sx:{flexGrow:1,minWidth:0,overflow:"hidden"},children:b.jsx(Vd,{value:r(),ref:t})})}),gC=ke.observer(({motionStream:e})=>{const t=ae.useRef(null);function r(){const{joints:a}=e.rapidlyChangingMotionState.state.joint_position;return`[${a.map(n=>parseFloat(n.toFixed(4))).join(", ")}]`}return Wr(()=>{if(!t.current)return;const a=r();t.current.textContent!==a&&(t.current.textContent=a)}),b.jsx(W.Stack,{alignItems:"left",spacing:2,sx:{flexGrow:1,minWidth:0,overflow:"hidden"},children:b.jsx(Vd,{value:r(),ref:t})})});function yC(){const e=window.location.href;return e.substring(0,e.indexOf("/",e.indexOf("//")+2))}function bC({baseUrl:e=yC(),...t}){return b.jsxs(W.Dialog,{"aria-labelledby":"no-motion-group-modal-title",open:!0,fullWidth:!0,sx:{"& .MuiModal-backdrop":{backdropFilter:"blur(10px)"},"& .MuiDialog-paper":{"::before":{content:'""',height:"8px",width:"100%",background:"linear-gradient(90deg, #FF0E65 0%, #47D3FF 100%)"},background:"#101629"}},children:[b.jsx(W.DialogTitle,{id:"no-motion-group-modal-title",children:"No motion group found"}),b.jsxs(W.DialogContent,{sx:{marginTop:"3rem",marginBottom:"1.5rem",textAlign:"center"},children:[b.jsx(W.Typography,{color:"#fff",children:"Found no devices to connect to."}),b.jsx(W.Typography,{color:"#fff",children:"Please ensure a motion group has been created."})]}),b.jsx(W.DialogActions,{children:b.jsxs(W.Stack,{width:"100%",maxWidth:"300px",margin:"auto",marginBottom:"2rem",children:[b.jsx(W.Button,{href:`${e}/settings`,variant:"contained",sx:{borderRadius:"8px",width:"100%"},children:"Go to settings app"}),b.jsx(W.Button,{href:`${e}`,variant:"text",sx:{marginTop:"1rem",color:"#fff",textDecoration:"underline",fontSize:"0.75rem"},children:"Back to Homescreen"})]})})]})}const SC=Array(6).fill(2*Math.PI),Ml="0.0.0-semantically-released";function Rs(e){let t=Ml;return Ml.startsWith("0.")&&(t=""),`https://cdn.jsdelivr.net/gh/wandelbotsgmbh/wandelbots-js-react-components${t?`@${t}`:""}/public/models/${e}.glb`}function vC(e){function t(r){return r.children.length===0?[r]:[r,...r.children.flatMap(a=>t(a))]}return t(e).filter(r=>_d(r))}function Rd(e){return e.name.endsWith("_FLG")}function _d(e){return/_J[0-9]+$/.test(e.name)}function xC(e,t){let r;function a(n){if(Rd(n)){if(r)throw Error(`Found multiple flange groups in robot model ${t}; first ${r.name} then ${n.name}. Only one _FLG group is allowed.`);r=n}_d(n),n.children.map(a)}if(a(e.scene),!r)throw Error(`No flange group found in robot model ${t}. Flange must be identified with a name ending in _FLG.`);return{gltf:e}}function Ad({rapidlyChangingMotionState:e,dhParameters:t,onRotationChanged:r,children:a}){Uo.Globals.assign({frameLoop:"always"});const n=ae.useRef([]),o=ae.useRef([]),{invalidate:s}=qd.useThree();function i(p){p&&(o.current=vC(p),c(),s())}function l(p){n.current=p,u.start(Object.assign({},n.current))}function c(){const p=o.current.map((f,y)=>d[y].get());if(r)r(o.current,p);else for(const[f,y]of o.current.entries()){const h=t[f],x=h.theta||0,I=h.reverse_rotation_direction?-1:1;y.rotation.y=I*p[f]+x}}ic(()=>{const p=e.state.joint_position.joints.filter(f=>f!==void 0);requestAnimationFrame(()=>l(p))});const[d,u]=Uo.useSpring(()=>({...Object.assign({},e.state.joint_position.joints),onChange:()=>{c(),s()},onResolve:()=>{c()}}));return b.jsx("group",{ref:i,children:a})}const jl="line",$l="mesh";function OC({rapidlyChangingMotionState:e,dhParameters:t,...r}){const a=new ht.Matrix4;function n(i,l){const c=new ht.Vector3,d=new ht.Quaternion,u=new ht.Vector3;a.decompose(c,d,u);const p=c.clone(),f=new ht.Matrix4().makeRotationY(i.theta+l*(i.reverse_rotation_direction?-1:1)).multiply(new ht.Matrix4().makeTranslation(0,i.d/1e3,0)).multiply(new ht.Matrix4().makeTranslation(i.a/1e3,0,0)).multiply(new ht.Matrix4().makeRotationX(i.alpha));return a.multiply(f),a.decompose(c,d,u),{a:p,b:c}}function o(i,l,c,d){if(!t)return;const u=t[i];if(!u)return;const{a:p,b:f}=n(u,d);l.geometry.setPositions([p.toArray(),f.toArray()].flat()),c.position.set(f.x,f.y,f.z)}function s(i,l){a.identity(),i.forEach((c,d)=>{o(d,c.getObjectByName(jl),c.getObjectByName($l),l[d])})}return b.jsx(b.Fragment,{children:b.jsx(Ad,{rapidlyChangingMotionState:e,dhParameters:t,onRotationChanged:s,children:b.jsxs("group",{...r,name:"Scene",children:[b.jsxs("mesh",{children:[b.jsx("sphereGeometry",{args:[.01,32,32]}),b.jsx("meshStandardMaterial",{color:"black",depthTest:!0})]}),t.map((i,l)=>{const{a:c,b:d}=n(i,e.state.joint_position.joints[l]??0),u=`dhrobot_J0${l}`;return b.jsxs("group",{name:u,children:[b.jsx(mt.Line,{name:jl,points:[c,d],color:"white",lineWidth:5}),b.jsxs("mesh",{name:$l,position:d,children:[b.jsx("sphereGeometry",{args:[.01,32,32]}),b.jsx("meshStandardMaterial",{color:"black",depthTest:!0})]},"mesh_"+l)]},u)})]})})})}const wC=console.warn;function CC(){return ae.useEffect(()=>{console.warn=e=>{e!=="Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"&&wC(e)}},[]),b.jsx(b.Fragment,{})}function PC(e){return e.type==="Mesh"}function VC({modelURL:e,flangeRef:t,postModelRender:r,...a}){const{gltf:n}=xC(mt.useGLTF(e),e.split("/").pop()||e),o=ae.useCallback(i=>{i&&r&&r()},[e]);function s(i){return PC(i)?b.jsx("mesh",{name:i.name,geometry:i.geometry,material:i.material,position:i.position,rotation:i.rotation},i.uuid):b.jsx(Uo.animated.group,{name:i.name,position:i.position,rotation:i.rotation,ref:Rd(i)?t:void 0,children:i.children.map(s)},i.uuid)}return b.jsx("group",{...a,dispose:null,ref:o,children:s(n.scene)})}const RC=(e,t)=>{e.userData.isGhost||(e.traverse(r=>{if(r instanceof Ie.Mesh){r.material instanceof Ie.Material&&(r.material.colorWrite=!1);const a=r.clone(),n=r.clone();a.material=new Ie.MeshStandardMaterial({depthTest:!0,depthWrite:!0,colorWrite:!1,polygonOffset:!0,polygonOffsetFactor:-1,side:Ie.DoubleSide}),a.userData.isGhost=!0,n.material=new Ie.MeshStandardMaterial({color:t,opacity:.3,depthTest:!0,depthWrite:!1,transparent:!0,polygonOffset:!0,polygonOffsetFactor:-2,side:Ie.DoubleSide}),n.userData.isGhost=!0,r.parent&&(r.parent.add(a),r.parent.add(n))}}),e.userData.isGhost=!0)},_C=e=>{if(!e.userData.isGhost)return;const t=[];e.traverse(r=>{var a;r instanceof Ie.Mesh&&((a=r.userData)!=null&&a.isGhost?t.push(r):r.material instanceof Ie.Material&&(r.material.colorWrite=!0))}),t.forEach(r=>{r.parent&&r.parent.remove(r)}),e.userData.isGhost=!1},Td=qr(({rapidlyChangingMotionState:e,modelFromController:t,dhParameters:r,getModel:a=Rs,flangeRef:n,postModelRender:o,transparentColor:s,...i})=>{const[l,c]=ae.useState(null),d=ae.useCallback(p=>{c(p)},[]);ae.useEffect(()=>{l&&(s?RC(l,s):_C(l))},[l,s]);const u=b.jsx(OC,{rapidlyChangingMotionState:e,dhParameters:r,...i});return b.jsxs(Xd.ErrorBoundary,{fallback:u,onError:p=>{console.error(p)},children:[b.jsx(ae.Suspense,{fallback:u,children:b.jsx("group",{ref:d,children:b.jsx(Ad,{rapidlyChangingMotionState:e,dhParameters:r,children:b.jsx(VC,{modelURL:a(t),postModelRender:o,flangeRef:n,...i})})})}),b.jsx(CC,{})]})});function AC({connectedMotionGroup:e,getModel:t=Rs,flangeRef:r,transparentColor:a,...n}){return e.dhParameters?b.jsx(Td,{rapidlyChangingMotionState:e.rapidlyChangingMotionState,modelFromController:e.modelFromController||"",dhParameters:e.dhParameters,getModel:t,flangeRef:r,transparentColor:a,...n}):null}const TC=({title:e,titleId:t,...r},a)=>J.createElement("svg",{width:24,height:24,xmlns:"http://www.w3.org/2000/svg",ref:a,"aria-labelledby":t,...r},e?J.createElement("title",{id:t},e):null,J.createElement("path",{d:"M5.248 21c-.334 0-.619-.116-.853-.35a1.153 1.153 0 0 1-.351-.848c0-.333.117-.616.351-.85.234-.233.519-.35.853-.35H7.24L4.558 9.87a2.881 2.881 0 0 1-1.126-1.042A2.77 2.77 0 0 1 3 7.317c0-.793.28-1.467.838-2.023a2.774 2.774 0 0 1 2.033-.834 2.71 2.71 0 0 1 1.728.585c.494.389.832.887 1.014 1.493h3.58V5.239c0-.22.076-.406.226-.555a.76.76 0 0 1 .558-.224c.136 0 .263.035.381.104.118.07.209.167.273.292v.14l1.835-1.702a.979.979 0 0 1 .52-.279.881.881 0 0 1 .58.091l4.01 1.85a.74.74 0 0 1 .36.364.537.537 0 0 1-.002.474.592.592 0 0 1-.366.323.657.657 0 0 1-.477-.039l-3.858-1.774L13.76 6.59v1.454l2.473 2.233 3.858-1.774a.648.648 0 0 1 .485-.03.571.571 0 0 1 .358.314.513.513 0 0 1 .01.482.79.79 0 0 1-.367.357l-4.011 1.882a.881.881 0 0 1-.58.09.979.979 0 0 1-.52-.278L13.63 9.638v.14a.92.92 0 0 1-.273.275.665.665 0 0 1-.381.12.76.76 0 0 1-.558-.224.752.752 0 0 1-.225-.555V8.096h-3.58a2.82 2.82 0 0 1-.215.54 2.552 2.552 0 0 1-.323.479l5.139 9.488h2.673c.335 0 .62.116.854.35.234.233.35.516.35.849 0 .332-.116.615-.35.849a1.167 1.167 0 0 1-.854.349H5.248Zm.623-12.385c.362 0 .67-.126.924-.378a1.25 1.25 0 0 0 .38-.92 1.25 1.25 0 0 0-.38-.92 1.261 1.261 0 0 0-.924-.379 1.26 1.26 0 0 0-.925.379 1.25 1.25 0 0 0-.38.92c0 .36.127.667.38.92.254.252.562.378.925.378Z"})),EC=ae.forwardRef(TC),IC=({title:e,titleId:t,...r},a)=>J.createElement("svg",{width:24,height:24,xmlns:"http://www.w3.org/2000/svg",ref:a,"aria-labelledby":t,...r},e?J.createElement("title",{id:t},e):null,J.createElement("path",{d:"m13.37 9.12 1.69 1.69 2.99-2.99-3.73-3.73-.95-.95-7.66 7.66-.95.95 3.99 3.99v3.44h7.55v-3.55l-4.72-4.72 1.79-1.79Zm-.91-2.99.91-.91 2.6 2.6-.91.91-2.6-2.6Zm-2.25 10.24h3.74l-1.34-1.34-.04-.04h-2.5l-3.25-3.25 4.59-4.59.92.92L9.5 10.9l5.33 5.33v1.48H10.2v-1.35l.01.01ZM2 2v4.99h1.41V3.4h3.58V2H2ZM22.21 2h-4.98v1.41h3.59v3.58h1.4V2h-.01ZM20.81 20.65h-3.58v1.4h4.98v-4.99h-1.4v3.59ZM3.4 17.06H2v4.98h4.99v-1.4H3.4v-3.58Z"})),MC=ae.forwardRef(IC),wt=ke.observer(({id:e,icon:t,color:r,title:a,name:n,explanation:o,literalValue:s,anchorOrigin:i,transformOrigin:l})=>{const c=ke.useLocalObservable(()=>({anchorEl:null,get isPopoverOpen(){return!!c.anchorEl},openPopover(d){c.anchorEl=d.currentTarget},closePopover(){c.anchorEl=null}}));return b.jsxs(b.Fragment,{children:[b.jsx(W.Stack,{"aria-owns":c.isPopoverOpen?e:void 0,"aria-haspopup":"true",onMouseEnter:c.openPopover,onMouseLeave:c.closePopover,sx:{cursor:"pointer"},children:b.jsx(W.SvgIcon,{component:t,sx:{color:r}})}),b.jsx(W.Popover,{id:e,sx:{pointerEvents:"none"},open:c.isPopoverOpen,anchorEl:c.anchorEl,anchorOrigin:i??{vertical:"bottom",horizontal:"left"},transformOrigin:l??{vertical:"top",horizontal:"left"},onClose:c.closePopover,disableRestoreFocus:!0,children:b.jsxs(W.Stack,{gap:"1rem",padding:2,maxWidth:"450px",sx:{wordWrap:"break-word"},children:[b.jsxs("div",{children:[a&&b.jsx(W.Typography,{component:"span",fontSize:"14px",children:`${a}: `}),b.jsx(W.Typography,{component:"span",color:r,fontWeight:"bold",fontSize:"14px",children:n})]}),b.jsx(W.Typography,{fontSize:"14px",children:o}),s&&b.jsx(W.Typography,{fontSize:"12px",children:s})]})})]})}),jC=ke.observer(({isVirtual:e,motionGroupId:t,anchorOrigin:r,transformOrigin:a})=>{const n=W.useTheme(),{t:o}=Me.useTranslation();return e?b.jsx(wt,{id:"motion-group-virtual",icon:MC,color:n.palette.tertiary.main,name:o("SafetyBar.ControllerType.Virtual.lb"),explanation:b.jsxs(Me.Trans,{i18nKey:"SafetyBar.MotionGroup.Virtual.Explanation.lb",values:{motionGroupId:t},children:["Motion group ",b.jsx("code",{children:t})," refers to a virtual robot with no physical counterpart. It can be freely manipulated without special safety precautions."]}),anchorOrigin:r,transformOrigin:a}):b.jsx(wt,{id:"motion-group-physical",icon:EC,color:n.palette.primary.main,name:o("SafetyBar.ControllerType.Physical.lb"),explanation:b.jsx(Me.Trans,{i18nKey:"SafetyBar.MotionGroup.Physical.Explanation.lb",values:{motionGroupId:t},components:{code:b.jsx("code",{}),strong:b.jsx("strong",{})}}),anchorOrigin:r,transformOrigin:a})}),$C=({title:e,titleId:t,...r},a)=>J.createElement("svg",{width:24,height:24,xmlns:"http://www.w3.org/2000/svg",ref:a,"aria-labelledby":t,...r},e?J.createElement("title",{id:t},e):null,J.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.306 2.768c0-.424.344-.768.768-.768h.406C19.53 2 22 4.551 22 7.699c0 3.237-2.51 5.587-5.31 5.703-.84 1.595-2.478 2.677-4.36 2.677a4.845 4.845 0 0 1-3.146-1.163c-.6 1.783 0 3.922 1.79 4.99 1.929 1.149 4.395.467 5.508-1.524l.212-.378a.75.75 0 1 1 1.308.732l-.231.414c-1.524 2.725-4.9 3.66-7.54 2.085-2.716-1.618-3.432-5.037-2.129-7.599a5.22 5.22 0 0 1-.73-2.677c0-2.192 1.335-4.063 3.212-4.793-1.195-1.427-3.29-1.96-5.08-.892-1.928 1.15-2.589 3.696-1.475 5.687l.231.413a.75.75 0 0 1-1.308.732l-.212-.377c-1.524-2.726-.62-6.211 2.02-7.785 2.716-1.619 5.943-.55 7.44 1.897l.13-.001c2.739 0 4.96 2.292 4.96 5.12 0 .284-.023.563-.066.834 1.795-.354 3.288-1.96 3.288-4.095 0-2.3-1.805-4.163-4.032-4.163h-.406a.768.768 0 0 1-.768-.768Zm.496 8.191c0 .286-.033.564-.094.831a3.62 3.62 0 0 1-.672 1.415 3.425 3.425 0 0 1-2.706 1.338 3.402 3.402 0 0 1-2.384-.98 3.598 3.598 0 0 1-.852-1.306 3.677 3.677 0 0 1-.235-1.298c0-1.623 1.046-2.994 2.48-3.435a3.37 3.37 0 0 1 1.522-.107c1.665.264 2.94 1.75 2.94 3.542Z"})),UC=ae.forwardRef($C),LC=({title:e,titleId:t,...r},a)=>J.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:a,"aria-labelledby":t,...r},e?J.createElement("title",{id:t},e):null,J.createElement("path",{d:"M19.763 16.432 13.516 5.864c-.674-1.152-2.358-1.152-3.049 0l-6.23 10.568C3.563 17.567 4.405 19 5.753 19H18.23c1.364 0 2.206-1.432 1.532-2.568ZM12 8.498c.539 0 .96.428.96.938v.066l-.32 4.708a.639.639 0 0 1-.64.592.639.639 0 0 1-.64-.592l-.32-4.708A.953.953 0 0 1 12 8.498Zm0 8.79c-.556 0-1.01-.444-1.01-.987 0-.544.454-.988 1.01-.988s1.01.444 1.01.988c0 .542-.454.987-1.01.987Z",fill:"#fff",fillOpacity:.56})),kC=ae.forwardRef(LC),BC=({title:e,titleId:t,...r},a)=>J.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:a,"aria-labelledby":t,...r},e?J.createElement("title",{id:t},e):null,J.createElement("path",{d:"M12.953 5.09a1.497 1.497 0 0 0-1.653-.518l-1.35.43a1.504 1.504 0 0 0-1.726-.376L2.858 6.97c-.736.321-1.06 1.155-.726 1.862.334.707 1.202 1.02 1.937.698l4.27-1.865 1.466 1.973v.402c0 .873-.627 1.63-1.512 1.827l-2.56.567c-1.329.295-2.27 1.431-2.27 2.74v.107c0 .26.22.469.489.469h11.117c1.329 0 2.618.435 3.656 1.233l1.665 1.28A1 1 0 0 0 22 17.47V11.062c0-.312-.108-.616-.308-.863l-3.415-4.218a1.5 1.5 0 0 0-1.618-.471l-.378.12-.866-.475a1.516 1.516 0 0 0-1.188-.114l-1.06.338-.214-.289Z"})),FC=ae.forwardRef(BC),NC=ke.observer(({operationMode:e,anchorOrigin:t,transformOrigin:r})=>{const{t:a}=Me.useTranslation(),n=W.useTheme();switch(e){case"OPERATION_MODE_AUTO":return b.jsx(wt,{id:"operation-mode-auto",icon:UC,title:a("SafetyBar.OperationMode.ti"),name:a("SafetyBar.OperationMode.Automatic.ti"),color:"rgba(255, 255, 255, 0.57)",explanation:b.jsx(Me.Trans,{i18nKey:"SafetyBar.OperationMode.Auto.Explanation.lb",children:"The robot controller is in automatic operation mode. Automated movement without manual confirmation is possible in this mode."}),anchorOrigin:t,transformOrigin:r});case"OPERATION_MODE_MANUAL":case"OPERATION_MODE_MANUAL_T1":case"OPERATION_MODE_MANUAL_T2":return b.jsx(wt,{id:"operation-mode-manual",icon:FC,color:n.palette.warning.main,title:a("SafetyBar.OperationMode.ti"),name:a("SafetyBar.OperationMode.Manual.lb"),explanation:b.jsx(Me.Trans,{i18nKey:"SafetyBar.OperationMode.Manual.Explanation.lb",children:"The robot controller is in manual operation mode. On a physical robot, this generally indicates that an enabling switch must be held for the robot to move successfully."}),literalValue:e,anchorOrigin:t,transformOrigin:r});default:return b.jsx(wt,{id:"operation-mode-error",icon:kC,color:n.palette.warning.main,title:a("SafetyBar.OperationMode.ti"),name:a("SafetyBar.OperationMode.Error.lb"),explanation:b.jsx(Me.Trans,{i18nKey:"SafetyBar.OperationMode.Error.Explanation.lb",children:"The robot controller has entered an unexpected operation mode. Motion group movement may not be possible."}),literalValue:e,anchorOrigin:t,transformOrigin:r})}}),DC=({title:e,titleId:t,...r},a)=>J.createElement("svg",{width:24,height:24,xmlns:"http://www.w3.org/2000/svg",ref:a,"aria-labelledby":t,...r},e?J.createElement("title",{id:t},e):null,J.createElement("path",{d:"M19.763 16.432 13.516 5.864c-.674-1.152-2.358-1.152-3.049 0l-6.23 10.568C3.563 17.567 4.405 19 5.753 19H18.23c1.364 0 2.206-1.432 1.532-2.568ZM12 8.498c.539 0 .96.428.96.938v.066l-.32 4.708a.639.639 0 0 1-.64.592.639.639 0 0 1-.64-.592l-.32-4.708A.953.953 0 0 1 12 8.498Zm0 8.79c-.556 0-1.01-.444-1.01-.987 0-.544.454-.988 1.01-.988s1.01.444 1.01.988c0 .542-.454.987-1.01.987Z"})),zC=ae.forwardRef(DC),GC=({title:e,titleId:t,...r},a)=>J.createElement("svg",{width:24,height:24,xmlns:"http://www.w3.org/2000/svg",ref:a,"aria-labelledby":t,...r},e?J.createElement("title",{id:t},e):null,J.createElement("path",{d:"M10.24 10.636 12 13.764l1.76-3.128h-3.52Z"}),J.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.364 12a6.364 6.364 0 1 1-12.728 0 6.364 6.364 0 0 1 12.728 0ZM7.909 9.273 12 16.546l4.09-7.273H7.91Z"}),J.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10Zm-1.364 0a8.636 8.636 0 1 1-17.273 0 8.636 8.636 0 0 1 17.273 0Z"})),JC=ae.forwardRef(GC),HC=({title:e,titleId:t,...r},a)=>J.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:a,"aria-labelledby":t,...r},e?J.createElement("title",{id:t},e):null,J.createElement("path",{d:"M9.057 15.115c-1.681 0-3.111-.59-4.29-1.768C3.59 12.17 3 10.74 3 9.057c0-.29.021-.582.064-.876a4.1 4.1 0 0 1 .214-.844.78.78 0 0 1 .273-.36c.115-.077.244-.133.389-.168a.857.857 0 0 1 .437.008c.146.04.28.12.4.24l2.806 2.787 2.26-2.261-2.775-2.786a.903.903 0 0 1-.241-.405.875.875 0 0 1-.008-.442 1.13 1.13 0 0 1 .174-.389.82.82 0 0 1 .355-.273c.268-.107.548-.182.838-.224.29-.043.581-.064.871-.064 1.682 0 3.112.59 4.29 1.768 1.179 1.178 1.768 2.608 1.768 4.29 0 .444-.042.858-.126 1.241-.084.384-.21.755-.377 1.113l5.726 5.692A2.2 2.2 0 0 1 21 18.721a2.2 2.2 0 0 1-.662 1.617A2.2 2.2 0 0 1 18.72 21a2.173 2.173 0 0 1-1.617-.679l-5.692-5.709c-.372.161-.75.285-1.133.372-.383.087-.79.13-1.222.13Z",fill:"#fff",fillOpacity:.56})),qC=ae.forwardRef(HC),WC=({title:e,titleId:t,...r},a)=>J.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:a,"aria-labelledby":t,...r},e?J.createElement("title",{id:t},e):null,J.createElement("path",{d:"m10.6 13.8-2.15-2.15a.948.948 0 0 0-.7-.275.948.948 0 0 0-.7.275.948.948 0 0 0-.275.7c0 .283.092.517.275.7L9.9 15.9c.2.2.433.3.7.3.267 0 .5-.1.7-.3l5.65-5.65a.948.948 0 0 0 .275-.7.948.948 0 0 0-.275-.7.948.948 0 0 0-.7-.275.948.948 0 0 0-.7.275L10.6 13.8ZM12 22a9.738 9.738 0 0 1-3.9-.788 10.099 10.099 0 0 1-3.175-2.137c-.9-.9-1.612-1.958-2.137-3.175A9.738 9.738 0 0 1 2 12c0-1.383.263-2.683.788-3.9a10.099 10.099 0 0 1 2.137-3.175c.9-.9 1.958-1.612 3.175-2.137A9.738 9.738 0 0 1 12 2c1.383 0 2.683.263 3.9.788a10.098 10.098 0 0 1 3.175 2.137c.9.9 1.613 1.958 2.137 3.175A9.738 9.738 0 0 1 22 12a9.738 9.738 0 0 1-.788 3.9 10.098 10.098 0 0 1-2.137 3.175c-.9.9-1.958 1.613-3.175 2.137A9.738 9.738 0 0 1 12 22Zm0-2c2.233 0 4.125-.775 5.675-2.325C19.225 16.125 20 14.233 20 12c0-2.233-.775-4.125-2.325-5.675C16.125 4.775 14.233 4 12 4c-2.233 0-4.125.775-5.675 2.325C4.775 7.875 4 9.767 4 12c0 2.233.775 4.125 2.325 5.675C7.875 19.225 9.767 20 12 20Z"})),KC=ae.forwardRef(WC),QC=({title:e,titleId:t,...r},a)=>J.createElement("svg",{width:24,height:24,xmlns:"http://www.w3.org/2000/svg",ref:a,"aria-labelledby":t,...r},e?J.createElement("title",{id:t},e):null,J.createElement("path",{d:"M9 16h6c.283 0 .52-.096.713-.287A.968.968 0 0 0 16 15V9a.967.967 0 0 0-.287-.713A.968.968 0 0 0 15 8H9a.968.968 0 0 0-.713.287A.968.968 0 0 0 8 9v6c0 .283.096.52.287.713.192.191.43.287.713.287Zm3 6a9.738 9.738 0 0 1-3.9-.788 10.099 10.099 0 0 1-3.175-2.137c-.9-.9-1.612-1.958-2.137-3.175A9.738 9.738 0 0 1 2 12c0-1.383.263-2.683.788-3.9a10.099 10.099 0 0 1 2.137-3.175c.9-.9 1.958-1.612 3.175-2.137A9.738 9.738 0 0 1 12 2c1.383 0 2.683.263 3.9.788a10.098 10.098 0 0 1 3.175 2.137c.9.9 1.613 1.958 2.137 3.175A9.738 9.738 0 0 1 22 12a9.738 9.738 0 0 1-.788 3.9 10.098 10.098 0 0 1-2.137 3.175c-.9.9-1.958 1.613-3.175 2.137A9.738 9.738 0 0 1 12 22Zm0-2c2.233 0 4.125-.775 5.675-2.325C19.225 16.125 20 14.233 20 12c0-2.233-.775-4.125-2.325-5.675C16.125 4.775 14.233 4 12 4c-2.233 0-4.125.775-5.675 2.325C4.775 7.875 4 9.767 4 12c0 2.233.775 4.125 2.325 5.675C7.875 19.225 9.767 20 12 20Z"})),YC=ae.forwardRef(QC),XC=ke.observer(({safetyState:e,anchorOrigin:t,transformOrigin:r})=>{const{t:a}=Me.useTranslation(),n=W.useTheme();switch(e){case"SAFETY_STATE_NORMAL":return b.jsx(wt,{id:"safety-state-normal",title:a("SafetyBar.SafetyState.ti"),name:a("SafetyBar.SafetyState.Normal.lb"),icon:KC,color:"rgba(255, 255, 255, 0.57)",explanation:b.jsx(Me.Trans,{i18nKey:"SafetyBar.SafetyState.Normal.Explanation.lb",children:"The robot controller is in a normal safety state. Movement is not prevented by this state."}),anchorOrigin:t,transformOrigin:r});case"SAFETY_STATE_DEVICE_EMERGENCY_STOP":case"SAFETY_STATE_ROBOT_EMERGENCY_STOP":return b.jsx(wt,{id:"safety-state-estop",title:a("SafetyBar.SafetyState.ti"),name:a("SafetyBar.SafetyState.Estop.lb"),icon:JC,color:n.palette.error.main,explanation:b.jsx(Me.Trans,{i18nKey:"SafetyBar.StopState.Estop.Explanation.lb",children:"An emergency stop of the robot controller has been triggered. Movement of the robot is no longer possible until the estop is released."}),literalValue:e,anchorOrigin:t,transformOrigin:r});case"SAFETY_STATE_STOP_0":case"SAFETY_STATE_STOP_1":case"SAFETY_STATE_STOP_2":case"SAFETY_STATE_PROTECTIVE_STOP":case"SAFETY_STATE_STOP":return b.jsx(wt,{id:"safety-state-stop",icon:YC,title:a("SafetyBar.SafetyState.ti"),name:a("SafetyBar.SafetyState.Stop.lb"),color:n.palette.warning.main,explanation:b.jsx(Me.Trans,{i18nKey:"SafetyBar.SafetyState.Stop.Explanation.lb",children:"The robot controller has entered a stop state. Movement is no longer possible until the stop state is resolved."}),literalValue:e,anchorOrigin:t,transformOrigin:r});case"SAFETY_STATE_REDUCED":case"SAFETY_STATE_MASTERING":case"SAFETY_STATE_CONFIRM_SAFETY":case"SAFETY_STATE_OPERATOR_SAFETY":case"SAFETY_STATE_RECOVERY":case"SAFETY_STATE_VIOLATION":return b.jsx(wt,{id:"safety-state-manual-action-required",icon:qC,color:n.palette.warning.main,title:a("SafetyBar.SafetyState.ti"),name:a("SafetyBar.SafetyState.ManualActionRequired.lb"),explanation:b.jsx(Me.Trans,{i18nKey:"SafetyBar.SafetyState.ManualActionRequired.Explanation.lb",children:"The robot controller has entered a safety state requiring manual action to resolve."}),literalValue:e,anchorOrigin:t,transformOrigin:r});case"SAFETY_STATE_UNKNOWN":case"SAFETY_STATE_FAULT":return b.jsx(wt,{id:"safety-state-error",icon:zC,color:n.palette.error.main,title:a("SafetyBar.SafetyState.ti"),name:a("SafetyBar.SafetyState.Error.lb"),explanation:b.jsx(Me.Trans,{i18nKey:"SafetyBar.SafetyState.Error.Explanation.lb",children:"The robot controller has entered an unexpected safety state."}),literalValue:e,anchorOrigin:t,transformOrigin:r});default:f1(e,`Unknown safety state ${e}`)}}),ZC=qr(ke.observer(e=>b.jsxs(W.Stack,{direction:"row",gap:"8px",alignItems:"center",sx:{height:"24px"},children:[b.jsx(XC,{safetyState:e.safetyState,anchorOrigin:e.anchorOrigin,transformOrigin:e.transformOrigin}),b.jsx(W.Divider,{orientation:"vertical",flexItem:!0}),b.jsx(NC,{operationMode:e.operationMode,anchorOrigin:e.anchorOrigin,transformOrigin:e.transformOrigin}),b.jsx(W.Divider,{orientation:"vertical",flexItem:!0}),b.jsx(jC,{isVirtual:e.isVirtual,motionGroupId:e.motionGroupId,anchorOrigin:e.anchorOrigin,transformOrigin:e.transformOrigin})]}))),eP=W.styled(W.Fab,{shouldForwardProp:e=>e!=="selected"})(({theme:e})=>{var t,r,a;return{borderRadius:"20px","&:hover":{background:(t=e.palette.backgroundPaperElevation)==null?void 0:t[7]},variants:[{props:({selected:n})=>!n,style:{background:(r=e.palette.backgroundPaperElevation)==null?void 0:r[0],color:e.palette.action.disabled,"> img":{opacity:.4}}},{props:({selected:n})=>n,style:{background:(a=e.palette.backgroundPaperElevation)==null?void 0:a[11],border:`1px solid ${e.palette.divider}`,color:e.palette.primary.contrastText}}]}}),tP=ae.forwardRef((e,t)=>b.jsx(eP,{ref:t,selected:e.selected,...e,color:"secondary",variant:"circular"})),rP={$schema:"https://raw.githubusercontent.com/martinring/tmlanguage/master/tmlanguage.json",name:"wandelscript",patterns:[{include:"#keywords"},{include:"#strings"},{include:"#comments"},{include:"#functions"}],repository:{keywords:{patterns:[{name:"keyword.control.flow.wandelscript",match:"\\b(move|via|to|interrupt|def|False|True|for|if|else|elif|while|return|switch|activate|deactivate|print|and|or|not)\\b"}]},strings:{name:"string.quoted.double.wandelscript",begin:'"',end:'"',patterns:[{name:"constant.character.escape.wandelscript",match:"\\\\."}]},comments:{patterns:[{begin:"#",beginCaptures:{0:{name:"punctuation.definition.comment.wandelscript"}},end:"$",name:"comment.line.number-sign.wandelscript"}]},functions:{patterns:[{match:"[a-zA-Z_-]+\\(",name:"entity.name.function.wandelscript"}]}},scopeName:"source.wandelscript"},aP=ae.lazy(()=>import("@monaco-editor/react"));let $o=null;async function nP(){if(!$o){const[{createHighlighter:e},{shikiToMonaco:t}]=await Promise.all([import("shiki"),import("@shikijs/monaco")]);$o={shiki:await e({langs:[rP],themes:["dark-plus","light-plus"]}),shikiToMonaco:t}}return $o}const oP=qr(e=>{const t=W.useTheme(),[r,a]=ae.useState("dark-plus"),n=t.palette.mode==="dark"?"dark-plus":"light-plus";async function o(s){var c,d;s.languages.register({id:"wandelscript"}),s.languages.setLanguageConfiguration("wandelscript",{comments:{lineComment:"#"},brackets:[["(",")"],["[","]"]],autoClosingPairs:[{open:"[",close:"]"},{open:"(",close:")"}],surroundingPairs:[{open:"[",close:"]"},{open:"(",close:")"}]});const{shiki:i,shikiToMonaco:l}=await nP();l(i,s),s.editor.defineTheme(n,((d=(c=t.componentsExt)==null?void 0:c.WandelscriptEditor)==null?void 0:d.monacoTheme)??{base:t.palette.mode==="dark"?"vs-dark":"vs",inherit:!0,rules:[],colors:{}}),e.monacoSetup&&e.monacoSetup(s),a(n)}return b.jsx(ae.Suspense,{fallback:b.jsx(vs,{}),children:b.jsx(aP,{value:e.code,onMount:(s,i)=>{o(i)},onChange:e.onChange,defaultLanguage:"wandelscript",theme:r,options:{minimap:{enabled:!1},wordWrap:"on",automaticLayout:!0,...e.monacoOptions}})})});function Ed(){var t,r,a,n,o,s,i;const e=W.createTheme({palette:{mode:"dark",text:{primary:"rgba(255, 255, 255, 1)",secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.38)"},primary:{main:"rgba(142, 86, 252, 1)",dark:"rgba(136, 58, 255, 1)",light:"rgba(157, 131, 246, 1)",contrastText:"rgba(255, 255, 255, 0.87)"},secondary:{main:"rgba(255, 255, 255, 1)",dark:"rgba(255, 255, 255, 0.06)",contrastText:"rgba(255, 255, 255, 0.87)"},tertiary:{main:"rgba(100, 255, 218, 1)",dark:"rgba(38, 166, 154, 1)",light:"rgba(167, 255, 235, 1)",contrastText:"rgba(0, 0, 0, 1)"},error:{main:"rgba(239, 83, 80, 1)",dark:"rgba(229, 57, 53, 1)",light:"rgba(239, 154, 154, 1)",contrastText:"rgba(255, 255, 255, 1)"},warning:{main:"rgba(255, 171, 64, 1)",dark:"rgba(255, 145, 0, 1)",light:"rgba(255, 209, 128, 1)",contrastText:"rgba(0, 0, 0, 0.87)"},success:{main:"rgba(38, 166, 154, 1)",dark:"rgba(0, 121, 107, 1)",light:"rgba(128, 203, 196, 1)",contrastText:"rgba(255, 255, 255, 0.87)"},background:{default:"rgba(2, 6, 23, 1)",paper:"rgba(17, 19, 31, 1)"},action:{active:"rgba(255, 255, 255, 0.56)",hover:"rgba(255, 255, 255, 0.08)",selected:"rgba(255, 255, 255, 0.16)",disabledBackground:"rgba(255, 255, 255, 0.12)",focus:"rgba(255, 255, 255, 0.12)",disabled:"rgba(255, 255, 255, 0.38)"},common:{white:"rgba(255, 255, 255, 1)",black:"rgba(0, 0, 0, 1)"},divider:"rgba(255, 255, 255, 0.12)",backgroundPaperElevation:{0:"rgba(17,19,31,1.0)",1:"rgba(20,22,35,1.0)",2:"rgba(23,25,39,1.0)",3:"rgba(26,28,43,1.0)",4:"rgba(29,31,47,1.0)",5:"rgba(32,34,51,1.0)",6:"rgba(35,37,55,1.0)",7:"rgba(38,40,59,1.0)",8:"rgba(41,43,63,1.0)",9:"rgba(44,46,67,1.0)",10:"rgba(47,49,71,1.0)",11:"rgba(50,52,75,1.0)",12:"rgba(53,55,79,1.0)",13:"rgba(56,58,83,1.0)",14:"rgba(59,61,87,1.0)",15:"rgba(62,64,91,1.0)",16:"rgba(57,63,87,1.0)"}},paletteExt:{primary:{hover:"rgba(142, 86, 252, 0.08)",selected:"rgba(142, 86, 252, 0.16)",focus:"rgba(142, 86, 252, 0.12)",focusVisible:"rgba(142, 86, 252, 0.3)",outlineBorder:"rgba(142, 86, 252, 0.5)"},secondary:{tonal:"rgba(255,255,255,0.1)"}}});return{...e,components:{MuiCssBaseline:{styleOverrides:{"html, body, *":{scrollbarWidth:"none",msOverflowStyle:"none"},"html:hover, body:hover, *:hover":{scrollbarWidth:"thin",scrollbarColor:`${e.palette.divider} transparent`}}},MuiButton:{styleOverrides:{root:{textTransform:"none",borderRadius:"10px"}},variants:[{props:{color:"secondary",variant:"contained"},style:{border:`1px solid ${e.palette.divider}`,background:(a=(r=(t=e.paletteExt)==null?void 0:t.secondary)==null?void 0:r.tonal)==null?void 0:a.toString()}},{props:{color:"secondary",variant:"outlined"},style:{border:`1px solid ${e.palette.divider}`}}]},MuiTab:{styleOverrides:{root:{textTransform:"none",color:e.palette.text.secondary,"&.Mui-selected":{color:e.palette.text.primary}}}},MuiTabs:{styleOverrides:{root:{background:(n=e.palette.backgroundPaperElevation)==null?void 0:n[1]}}},MuiToggleButtonGroup:{styleOverrides:{root:{".MuiToggleButtonGroup-firstButton":{borderRadius:"10px 0 0 10px"},".MuiToggleButtonGroup-lastButton":{borderRadius:"0 10px 10px 0"}}}},MuiToggleButton:{styleOverrides:{root:{textTransform:"none",padding:"6px 16px"}}},MuiSelect:{variants:[{props:{variant:"filled"},style:{borderRadius:"10px","::before, ::after":{visibility:"collapse"},".MuiInputBase-input":{padding:"6px 16px",borderRadius:"10px"}}}]},MuiDrawer:{styleOverrides:{paper:{border:"none",boxShadow:"4px 0 8px -4px rgba(0, 0, 0, 0.3)"}}},MuiFab:{styleOverrides:{root:{background:(s=(o=e.paletteExt)==null?void 0:o.secondary)==null?void 0:s.tonal}},variants:[{props:{color:"primary"},style:{background:e.palette.primary.main}}]}},componentsExt:{JoggingPanel:{JoggingCartesian:{Axis:{X:{backgroundColor:"rgba(215, 66, 56, 1)",borderColor:"rgba(215, 66, 56, 1)",buttonBackgroundColor:{default:"rgba(241, 77, 66, 1)",pressed:"rgba(138, 41, 35, 1)",hovered:"rgba(241, 77, 66, 1)",disabled:"rgba(241, 77, 66, 1)"},color:"rgba(255, 198, 198, 1)",labelColor:e.palette.text.primary},Y:{backgroundColor:"rgba(20, 151, 108, 1)",borderColor:"rgba(20, 151, 108, 1)",buttonBackgroundColor:{default:"rgba(28, 188, 135, 1)",pressed:"rgba(11, 89, 63, 1)",disabled:"rgba(28, 188, 135, 1)",hovered:"rgba(28, 188, 135, 1)"},color:"rgba(215, 255, 242, 1)",labelColor:e.palette.text.primary},Z:{backgroundColor:"rgba(1, 87, 155, 1)",borderColor:"rgba(1, 87, 155, 1)",buttonBackgroundColor:{default:"rgba(2, 136, 209, 1)",pressed:"rgba(2, 64, 114, 1)",disabled:"rgba(2, 136, 209, 1)",hovered:"rgba(2, 136, 209, 1)"},color:"rgba(210, 239, 255, 1)",labelColor:e.palette.text.primary}}},JoggingJoint:{Joint:{arrowColor:e.palette.text.primary}},VelocitySlider:{sliderLegendColor:e.palette.text.primary}},WandelscriptEditor:{monacoTheme:{base:"vs-dark",inherit:!0,rules:[{token:"keyword",foreground:"#b349a9ff"}],colors:{"editor.background":W.rgbToHex(((i=e.palette.backgroundPaperElevation)==null?void 0:i[5])??""),"editor.foreground":"#d4d4d4","editorLineNumber.foreground":"#797979","editorLineNumber.activeForeground":"#e9e9e9","editor.lineHighlightBorder":"#e9e9e911"}}}}}}function sP(){const e=Ed();return e.palette.mode="light",e}function iP(e){var a,n,o,s;let t=!0;((a=e.palette)==null?void 0:a.mode)==="light"?t=!1:((n=e.palette)==null?void 0:n.mode)!=="dark"&&(t=!(typeof window<"u"&&((s=(o=window.matchMedia)==null?void 0:o.call(window,"(prefers-color-scheme: light)"))==null?void 0:s.matches)));const r=t?Ed():sP();return nc(r,e)}exports.JoggingCartesianAxisControl=No;exports.JoggingJointRotationControl=uc;exports.JoggingPanel=hC;exports.JoggingStore=so;exports.LoadingCover=vs;exports.LoadingErrorMessage=rd;exports.NoMotionGroupModal=bC;exports.PoseCartesianValues=fC;exports.PoseJointValues=gC;exports.PresetEnvironment=ru;exports.Robot=AC;exports.SafetyBar=ZC;exports.SafetyZonesRenderer=ou;exports.SelectableFab=tP;exports.SupportedRobot=Td;exports.TrajectoryRenderer=su;exports.VelocitySlider=Cd;exports.VelocitySliderLabel=Vs;exports.WandelscriptEditor=oP;exports.createNovaMuiTheme=iP;exports.defaultAxisConfig=SC;exports.defaultGetModel=Rs;exports.i18n=gs;exports.useAnimationFrame=Wr;exports.useAutorun=ic;exports.useMounted=Gn;exports.useReaction=lc;
111
+ `+o):a.stack=o}catch{}}throw a}}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=pr(this.defaults,r);const{transitional:a,paramsSerializer:n,headers:o}=r;a!==void 0&&mn.assertOptions(a,{silentJSONParsing:vt.transitional(vt.boolean),forcedJSONParsing:vt.transitional(vt.boolean),clarifyTimeoutError:vt.transitional(vt.boolean)},!1),n!=null&&(I.isFunction(n)?r.paramsSerializer={serialize:n}:mn.assertOptions(n,{encode:vt.function,serialize:vt.function},!0)),r.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?r.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:r.allowAbsoluteUrls=!0),mn.assertOptions(r,{baseUrl:vt.spelling("baseURL"),withXsrfToken:vt.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let s=o&&I.merge(o.common,o[r.method]);o&&I.forEach(["delete","get","head","post","put","patch","common"],g=>{delete o[g]}),r.headers=Ze.concat(s,o);const i=[];let l=!0;this.interceptors.request.forEach(function(h){typeof h.runWhen=="function"&&h.runWhen(r)===!1||(l=l&&h.synchronous,i.unshift(h.fulfilled,h.rejected))});const c=[];this.interceptors.response.forEach(function(h){c.push(h.fulfilled,h.rejected)});let d,u=0,p;if(!l){const g=[tl.bind(this),void 0];for(g.unshift.apply(g,i),g.push.apply(g,c),p=g.length,d=Promise.resolve(r);u<p;)d=d.then(g[u++],g[u++]);return d}p=i.length;let f=r;for(u=0;u<p;){const g=i[u++],h=i[u++];try{f=g(f)}catch(x){h.call(this,x);break}}try{d=tl.call(this,f)}catch(g){return Promise.reject(g)}for(u=0,p=c.length;u<p;)d=d.then(c[u++],c[u++]);return d}getUri(t){t=pr(this.defaults,t);const r=zc(t.baseURL,t.url,t.allowAbsoluteUrls);return kc(r,t.params,t.paramsSerializer)}};I.forEach(["delete","get","head","options"],function(t){lr.prototype[t]=function(r,a){return this.request(pr(a||{},{method:t,url:r,data:(a||{}).data}))}});I.forEach(["post","put","patch"],function(t){function r(a){return function(o,s,i){return this.request(pr(i||{},{method:t,headers:a?{"Content-Type":"multipart/form-data"}:{},url:o,data:s}))}}lr.prototype[t]=r(),lr.prototype[t+"Form"]=r(!0)});let rv=class Kc{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(o){r=o});const a=this;this.promise.then(n=>{if(!a._listeners)return;let o=a._listeners.length;for(;o-- >0;)a._listeners[o](n);a._listeners=null}),this.promise.then=n=>{let o;const s=new Promise(i=>{a.subscribe(i),o=i}).then(n);return s.cancel=function(){a.unsubscribe(o)},s},t(function(o,s,i){a.reason||(a.reason=new ta(o,s,i),r(a.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){const t=new AbortController,r=a=>{t.abort(a)};return this.subscribe(r),t.signal.unsubscribe=()=>this.unsubscribe(r),t.signal}static source(){let t;return{token:new Kc(function(n){t=n}),cancel:t}}};function av(e){return function(r){return e.apply(null,r)}}function nv(e){return I.isObject(e)&&e.isAxiosError===!0}const es={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(es).forEach(([e,t])=>{es[t]=e});function Qc(e){const t=new lr(e),r=Rc(lr.prototype.request,t);return I.extend(r,lr.prototype,t,{allOwnKeys:!0}),I.extend(r,t,null,{allOwnKeys:!0}),r.create=function(n){return Qc(pr(e,n))},r}const O=Qc(Da);O.Axios=lr;O.CanceledError=ta;O.CancelToken=rv;O.isCancel=Nc;O.VERSION=Wc;O.toFormData=Zn;O.AxiosError=ie;O.Cancel=O.CanceledError;O.all=function(t){return Promise.all(t)};O.spread=av;O.isAxiosError=nv;O.mergeConfig=pr;O.AxiosHeaders=Ze;O.formToJSON=e=>Fc(I.isHTMLForm(e)?new FormData(e):e);O.getAdapter=qc.getAdapter;O.HttpStatusCode=es;O.default=O;const{Axios:uP,AxiosError:ts,CanceledError:pP,isCancel:hP,CancelToken:mP,VERSION:fP,all:gP,Cancel:yP,isAxiosError:ov,spread:bP,toFormData:SP,AxiosHeaders:vP,HttpStatusCode:xP,formToJSON:OP,getAdapter:wP,mergeConfig:CP}=O,w="/api/v1".replace(/\/+$/,"");class Pe{constructor(t,r=w,a=O){ia(this,"basePath");ia(this,"axios");ia(this,"configuration");this.basePath=r,this.axios=a,t&&(this.configuration=t,this.basePath=t.basePath??r)}}class sv extends Error{constructor(r,a){super(a);ia(this,"field");this.field=r,this.name="RequiredError"}}const C={},P="https://example.com",m=function(e,t,r){if(r==null)throw new sv(t,`Required parameter ${t} was null or undefined when calling ${e}.`)},V=function(e,t){t&&(t.username||t.password)&&(e.auth={username:t.username,password:t.password})},R=async function(e,t){if(t&&t.accessToken){const r=typeof t.accessToken=="function"?await t.accessToken():await t.accessToken;e.Authorization="Bearer "+r}};function rs(e,t,r=""){t!=null&&(typeof t=="object"?Array.isArray(t)?t.forEach(a=>rs(e,a,r)):Object.keys(t).forEach(a=>rs(e,t[a],`${r}${r!==""?".":""}${a}`)):e.has(r)?e.append(r,t):e.set(r,t))}const _=function(e,...t){const r=new URLSearchParams(e.search);rs(r,t),e.search=r.toString()},se=function(e,t,r){const a=typeof e!="string";return(a&&r&&r.isJsonMime?r.isJsonMime(t.headers["Content-Type"]):a)?JSON.stringify(e!==void 0?e:{}):e||""},A=function(e){return e.pathname+e.search+e.hash},T=function(e,t,r,a){return(n=t,o=r)=>{const s={...e.options,url:(n.defaults.baseURL?"":(a==null?void 0:a.basePath)??o)+e.url};return n.request(s)}},iv=function(e){return{addApp:async(t,r,a,n={})=>{m("addApp","cell",t),m("addApp","app",r);const o="/cells/{cell}/apps".replace("{cell}",encodeURIComponent(String(t))),s=new URL(o,P);let i;e&&(i=e.baseOptions);const l={method:"POST",...i,...n},c={},d={};V(l,e),await R(c,e),a!==void 0&&(d.completionTimeout=a),c["Content-Type"]="application/json",_(s,d);let u=i&&i.headers?i.headers:{};return l.headers={...c,...u,...n.headers},l.data=se(r,l,e),{url:A(s),options:l}},clearApps:async(t,r,a={})=>{m("clearApps","cell",t);const n="/cells/{cell}/apps".replace("{cell}",encodeURIComponent(String(t))),o=new URL(n,P);let s;e&&(s=e.baseOptions);const i={method:"DELETE",...s,...a},l={},c={};V(i,e),await R(l,e),r!==void 0&&(c.completionTimeout=r),_(o,c);let d=s&&s.headers?s.headers:{};return i.headers={...l,...d,...a.headers},{url:A(o),options:i}},deleteApp:async(t,r,a,n={})=>{m("deleteApp","cell",t),m("deleteApp","app",r);const o="/cells/{cell}/apps/{app}".replace("{cell}",encodeURIComponent(String(t))).replace("{app}",encodeURIComponent(String(r))),s=new URL(o,P);let i;e&&(i=e.baseOptions);const l={method:"DELETE",...i,...n},c={},d={};V(l,e),await R(c,e),a!==void 0&&(d.completionTimeout=a),_(s,d);let u=i&&i.headers?i.headers:{};return l.headers={...c,...u,...n.headers},{url:A(s),options:l}},getApp:async(t,r,a={})=>{m("getApp","cell",t),m("getApp","app",r);const n="/cells/{cell}/apps/{app}".replace("{cell}",encodeURIComponent(String(t))).replace("{app}",encodeURIComponent(String(r))),o=new URL(n,P);let s;e&&(s=e.baseOptions);const i={method:"GET",...s,...a},l={},c={};V(i,e),await R(l,e),_(o,c);let d=s&&s.headers?s.headers:{};return i.headers={...l,...d,...a.headers},{url:A(o),options:i}},listApps:async(t,r={})=>{m("listApps","cell",t);const a="/cells/{cell}/apps".replace("{cell}",encodeURIComponent(String(t))),n=new URL(a,P);let o;e&&(o=e.baseOptions);const s={method:"GET",...o,...r},i={},l={};V(s,e),await R(i,e),_(n,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},{url:A(n),options:s}},updateApp:async(t,r,a,n,o={})=>{m("updateApp","cell",t),m("updateApp","app",r),m("updateApp","app2",a);const s="/cells/{cell}/apps/{app}".replace("{cell}",encodeURIComponent(String(t))).replace("{app}",encodeURIComponent(String(r))),i=new URL(s,P);let l;e&&(l=e.baseOptions);const c={method:"PUT",...l,...o},d={},u={};V(c,e),await R(d,e),n!==void 0&&(u.completionTimeout=n),d["Content-Type"]="application/json",_(i,u);let p=l&&l.headers?l.headers:{};return c.headers={...d,...p,...o.headers},c.data=se(a,c,e),{url:A(i),options:c}}}},Ir=function(e){const t=iv(e);return{async addApp(r,a,n,o){var c,d;const s=await t.addApp(r,a,n,o),i=(e==null?void 0:e.serverIndex)??0,l=(d=(c=C["ApplicationApi.addApp"])==null?void 0:c[i])==null?void 0:d.url;return(u,p)=>T(s,O,w,e)(u,l||p)},async clearApps(r,a,n){var l,c;const o=await t.clearApps(r,a,n),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["ApplicationApi.clearApps"])==null?void 0:l[s])==null?void 0:c.url;return(d,u)=>T(o,O,w,e)(d,i||u)},async deleteApp(r,a,n,o){var c,d;const s=await t.deleteApp(r,a,n,o),i=(e==null?void 0:e.serverIndex)??0,l=(d=(c=C["ApplicationApi.deleteApp"])==null?void 0:c[i])==null?void 0:d.url;return(u,p)=>T(s,O,w,e)(u,l||p)},async getApp(r,a,n){var l,c;const o=await t.getApp(r,a,n),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["ApplicationApi.getApp"])==null?void 0:l[s])==null?void 0:c.url;return(d,u)=>T(o,O,w,e)(d,i||u)},async listApps(r,a){var i,l;const n=await t.listApps(r,a),o=(e==null?void 0:e.serverIndex)??0,s=(l=(i=C["ApplicationApi.listApps"])==null?void 0:i[o])==null?void 0:l.url;return(c,d)=>T(n,O,w,e)(c,s||d)},async updateApp(r,a,n,o,s){var d,u;const i=await t.updateApp(r,a,n,o,s),l=(e==null?void 0:e.serverIndex)??0,c=(u=(d=C["ApplicationApi.updateApp"])==null?void 0:d[l])==null?void 0:u.url;return(p,f)=>T(i,O,w,e)(p,c||f)}}};class al extends Pe{addApp(t,r,a,n){return Ir(this.configuration).addApp(t,r,a,n).then(o=>o(this.axios,this.basePath))}clearApps(t,r,a){return Ir(this.configuration).clearApps(t,r,a).then(n=>n(this.axios,this.basePath))}deleteApp(t,r,a,n){return Ir(this.configuration).deleteApp(t,r,a,n).then(o=>o(this.axios,this.basePath))}getApp(t,r,a){return Ir(this.configuration).getApp(t,r,a).then(n=>n(this.axios,this.basePath))}listApps(t,r){return Ir(this.configuration).listApps(t,r).then(a=>a(this.axios,this.basePath))}updateApp(t,r,a,n,o){return Ir(this.configuration).updateApp(t,r,a,n,o).then(s=>s(this.axios,this.basePath))}}const lv=function(e){return{deleteCell:async(t,r,a={})=>{m("deleteCell","cell",t);const n="/cells/{cell}".replace("{cell}",encodeURIComponent(String(t))),o=new URL(n,P);let s;e&&(s=e.baseOptions);const i={method:"DELETE",...s,...a},l={},c={};V(i,e),await R(l,e),r!==void 0&&(c.completionTimeout=r),_(o,c);let d=s&&s.headers?s.headers:{};return i.headers={...l,...d,...a.headers},{url:A(o),options:i}},deployCell:async(t,r,a={})=>{m("deployCell","cell",t);const n="/cells",o=new URL(n,P);let s;e&&(s=e.baseOptions);const i={method:"POST",...s,...a},l={},c={};V(i,e),await R(l,e),r!==void 0&&(c.completionTimeout=r),l["Content-Type"]="application/json",_(o,c);let d=s&&s.headers?s.headers:{};return i.headers={...l,...d,...a.headers},i.data=se(t,i,e),{url:A(o),options:i}},getCell:async(t,r={})=>{m("getCell","cell",t);const a="/cells/{cell}".replace("{cell}",encodeURIComponent(String(t))),n=new URL(a,P);let o;e&&(o=e.baseOptions);const s={method:"GET",...o,...r},i={},l={};V(s,e),await R(i,e),_(n,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},{url:A(n),options:s}},getCellStatus:async(t,r={})=>{m("getCellStatus","cell",t);const a="/cells/{cell}/status".replace("{cell}",encodeURIComponent(String(t))),n=new URL(a,P);let o;e&&(o=e.baseOptions);const s={method:"GET",...o,...r},i={},l={};V(s,e),await R(i,e),_(n,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},{url:A(n),options:s}},listCells:async(t={})=>{const r="/cells",a=new URL(r,P);let n;e&&(n=e.baseOptions);const o={method:"GET",...n,...t},s={},i={};V(o,e),await R(s,e),_(a,i);let l=n&&n.headers?n.headers:{};return o.headers={...s,...l,...t.headers},{url:A(a),options:o}},updateCell:async(t,r,a,n={})=>{m("updateCell","cell",t),m("updateCell","cell2",r);const o="/cells/{cell}".replace("{cell}",encodeURIComponent(String(t))),s=new URL(o,P);let i;e&&(i=e.baseOptions);const l={method:"PUT",...i,...n},c={},d={};V(l,e),await R(c,e),a!==void 0&&(d.completionTimeout=a),c["Content-Type"]="application/json",_(s,d);let u=i&&i.headers?i.headers:{};return l.headers={...c,...u,...n.headers},l.data=se(r,l,e),{url:A(s),options:l}}}},Mr=function(e){const t=lv(e);return{async deleteCell(r,a,n){var l,c;const o=await t.deleteCell(r,a,n),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["CellApi.deleteCell"])==null?void 0:l[s])==null?void 0:c.url;return(d,u)=>T(o,O,w,e)(d,i||u)},async deployCell(r,a,n){var l,c;const o=await t.deployCell(r,a,n),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["CellApi.deployCell"])==null?void 0:l[s])==null?void 0:c.url;return(d,u)=>T(o,O,w,e)(d,i||u)},async getCell(r,a){var i,l;const n=await t.getCell(r,a),o=(e==null?void 0:e.serverIndex)??0,s=(l=(i=C["CellApi.getCell"])==null?void 0:i[o])==null?void 0:l.url;return(c,d)=>T(n,O,w,e)(c,s||d)},async getCellStatus(r,a){var i,l;const n=await t.getCellStatus(r,a),o=(e==null?void 0:e.serverIndex)??0,s=(l=(i=C["CellApi.getCellStatus"])==null?void 0:i[o])==null?void 0:l.url;return(c,d)=>T(n,O,w,e)(c,s||d)},async listCells(r){var s,i;const a=await t.listCells(r),n=(e==null?void 0:e.serverIndex)??0,o=(i=(s=C["CellApi.listCells"])==null?void 0:s[n])==null?void 0:i.url;return(l,c)=>T(a,O,w,e)(l,o||c)},async updateCell(r,a,n,o){var c,d;const s=await t.updateCell(r,a,n,o),i=(e==null?void 0:e.serverIndex)??0,l=(d=(c=C["CellApi.updateCell"])==null?void 0:c[i])==null?void 0:d.url;return(u,p)=>T(s,O,w,e)(u,l||p)}}};class cv extends Pe{deleteCell(t,r,a){return Mr(this.configuration).deleteCell(t,r,a).then(n=>n(this.axios,this.basePath))}deployCell(t,r,a){return Mr(this.configuration).deployCell(t,r,a).then(n=>n(this.axios,this.basePath))}getCell(t,r){return Mr(this.configuration).getCell(t,r).then(a=>a(this.axios,this.basePath))}getCellStatus(t,r){return Mr(this.configuration).getCellStatus(t,r).then(a=>a(this.axios,this.basePath))}listCells(t){return Mr(this.configuration).listCells(t).then(r=>r(this.axios,this.basePath))}updateCell(t,r,a,n){return Mr(this.configuration).updateCell(t,r,a,n).then(o=>o(this.axios,this.basePath))}}const dv=function(e){return{addRobotController:async(t,r,a,n={})=>{m("addRobotController","cell",t),m("addRobotController","robotController",r);const o="/cells/{cell}/controllers".replace("{cell}",encodeURIComponent(String(t))),s=new URL(o,P);let i;e&&(i=e.baseOptions);const l={method:"POST",...i,...n},c={},d={};V(l,e),await R(c,e),a!==void 0&&(d.completionTimeout=a),c["Content-Type"]="application/json",_(s,d);let u=i&&i.headers?i.headers:{};return l.headers={...c,...u,...n.headers},l.data=se(r,l,e),{url:A(s),options:l}},clearRobotControllers:async(t,r,a={})=>{m("clearRobotControllers","cell",t);const n="/cells/{cell}/controllers".replace("{cell}",encodeURIComponent(String(t))),o=new URL(n,P);let s;e&&(s=e.baseOptions);const i={method:"DELETE",...s,...a},l={},c={};V(i,e),await R(l,e),r!==void 0&&(c.completionTimeout=r),_(o,c);let d=s&&s.headers?s.headers:{};return i.headers={...l,...d,...a.headers},{url:A(o),options:i}},deleteRobotController:async(t,r,a,n={})=>{m("deleteRobotController","cell",t),m("deleteRobotController","controller",r);const o="/cells/{cell}/controllers/{controller}".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))),s=new URL(o,P);let i;e&&(i=e.baseOptions);const l={method:"DELETE",...i,...n},c={},d={};V(l,e),await R(c,e),a!==void 0&&(d.completionTimeout=a),_(s,d);let u=i&&i.headers?i.headers:{};return l.headers={...c,...u,...n.headers},{url:A(s),options:l}},getCurrentRobotControllerState:async(t,r,a={})=>{m("getCurrentRobotControllerState","cell",t),m("getCurrentRobotControllerState","controller",r);const n="/cells/{cell}/controllers/{controller}/state".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))),o=new URL(n,P);let s;e&&(s=e.baseOptions);const i={method:"GET",...s,...a},l={},c={};V(i,e),await R(l,e),_(o,c);let d=s&&s.headers?s.headers:{};return i.headers={...l,...d,...a.headers},{url:A(o),options:i}},getMode:async(t,r,a={})=>{m("getMode","cell",t),m("getMode","controller",r);const n="/cells/{cell}/controllers/{controller}/mode".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))),o=new URL(n,P);let s;e&&(s=e.baseOptions);const i={method:"GET",...s,...a},l={},c={};V(i,e),await R(l,e),_(o,c);let d=s&&s.headers?s.headers:{};return i.headers={...l,...d,...a.headers},{url:A(o),options:i}},getRobotController:async(t,r,a={})=>{m("getRobotController","cell",t),m("getRobotController","controller",r);const n="/cells/{cell}/controllers/{controller}".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))),o=new URL(n,P);let s;e&&(s=e.baseOptions);const i={method:"GET",...s,...a},l={},c={};V(i,e),await R(l,e),_(o,c);let d=s&&s.headers?s.headers:{};return i.headers={...l,...d,...a.headers},{url:A(o),options:i}},getSupportedModes:async(t,r,a={})=>{m("getSupportedModes","cell",t),m("getSupportedModes","controller",r);const n="/cells/{cell}/controllers/{controller}/controller-capabilities".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))),o=new URL(n,P);let s;e&&(s=e.baseOptions);const i={method:"GET",...s,...a},l={},c={};V(i,e),await R(l,e),_(o,c);let d=s&&s.headers?s.headers:{};return i.headers={...l,...d,...a.headers},{url:A(o),options:i}},getVirtualRobotConfiguration:async(t,r,a={})=>{m("getVirtualRobotConfiguration","cell",t),m("getVirtualRobotConfiguration","controller",r);const n="/cells/{cell}/controllers/{controller}/virtual-robot-configuration".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))),o=new URL(n,P);let s;e&&(s=e.baseOptions);const i={method:"GET",...s,...a},l={},c={};V(i,e),await R(l,e),_(o,c);let d=s&&s.headers?s.headers:{};return i.headers={...l,...d,...a.headers},{url:A(o),options:i}},listControllers:async(t,r={})=>{m("listControllers","cell",t);const a="/cells/{cell}/controllers".replace("{cell}",encodeURIComponent(String(t))),n=new URL(a,P);let o;e&&(o=e.baseOptions);const s={method:"GET",...o,...r},i={},l={};V(s,e),await R(i,e),_(n,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},{url:A(n),options:s}},setDefaultMode:async(t,r,a,n={})=>{m("setDefaultMode","cell",t),m("setDefaultMode","controller",r),m("setDefaultMode","mode",a);const o="/cells/{cell}/controllers/{controller}/mode".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))),s=new URL(o,P);let i;e&&(i=e.baseOptions);const l={method:"PUT",...i,...n},c={},d={};V(l,e),await R(c,e),a!==void 0&&(d.mode=a),_(s,d);let u=i&&i.headers?i.headers:{};return l.headers={...c,...u,...n.headers},{url:A(s),options:l}},streamFreeDrive:async(t,r,a,n={})=>{m("streamFreeDrive","cell",t),m("streamFreeDrive","controller",r);const o="/cells/{cell}/controllers/{controller}/free-drive-stream".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))),s=new URL(o,P);let i;e&&(i=e.baseOptions);const l={method:"GET",...i,...n},c={},d={};V(l,e),await R(c,e),a!==void 0&&(d.response_rate=a),_(s,d);let u=i&&i.headers?i.headers:{};return l.headers={...c,...u,...n.headers},{url:A(s),options:l}},streamModeChange:async(t,r,a={})=>{m("streamModeChange","cell",t),m("streamModeChange","controller",r);const n="/cells/{cell}/controllers/{controller}/mode-stream".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))),o=new URL(n,P);let s;e&&(s=e.baseOptions);const i={method:"GET",...s,...a},l={},c={};V(i,e),await R(l,e),_(o,c);let d=s&&s.headers?s.headers:{};return i.headers={...l,...d,...a.headers},{url:A(o),options:i}},streamRobotControllerState:async(t,r,a,n={})=>{m("streamRobotControllerState","cell",t),m("streamRobotControllerState","controller",r);const o="/cells/{cell}/controllers/{controller}/state-stream".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))),s=new URL(o,P);let i;e&&(i=e.baseOptions);const l={method:"GET",...i,...n},c={},d={};V(l,e),await R(c,e),a!==void 0&&(d.response_rate=a),_(s,d);let u=i&&i.headers?i.headers:{};return l.headers={...c,...u,...n.headers},{url:A(s),options:l}},updateRobotController:async(t,r,a,n,o={})=>{m("updateRobotController","cell",t),m("updateRobotController","controller",r),m("updateRobotController","robotController",a);const s="/cells/{cell}/controllers/{controller}".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))),i=new URL(s,P);let l;e&&(l=e.baseOptions);const c={method:"PUT",...l,...o},d={},u={};V(c,e),await R(d,e),n!==void 0&&(u.completionTimeout=n),d["Content-Type"]="application/json",_(i,u);let p=l&&l.headers?l.headers:{};return c.headers={...d,...p,...o.headers},c.data=se(a,c,e),{url:A(i),options:c}}}},Xe=function(e){const t=dv(e);return{async addRobotController(r,a,n,o){var c,d;const s=await t.addRobotController(r,a,n,o),i=(e==null?void 0:e.serverIndex)??0,l=(d=(c=C["ControllerApi.addRobotController"])==null?void 0:c[i])==null?void 0:d.url;return(u,p)=>T(s,O,w,e)(u,l||p)},async clearRobotControllers(r,a,n){var l,c;const o=await t.clearRobotControllers(r,a,n),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["ControllerApi.clearRobotControllers"])==null?void 0:l[s])==null?void 0:c.url;return(d,u)=>T(o,O,w,e)(d,i||u)},async deleteRobotController(r,a,n,o){var c,d;const s=await t.deleteRobotController(r,a,n,o),i=(e==null?void 0:e.serverIndex)??0,l=(d=(c=C["ControllerApi.deleteRobotController"])==null?void 0:c[i])==null?void 0:d.url;return(u,p)=>T(s,O,w,e)(u,l||p)},async getCurrentRobotControllerState(r,a,n){var l,c;const o=await t.getCurrentRobotControllerState(r,a,n),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["ControllerApi.getCurrentRobotControllerState"])==null?void 0:l[s])==null?void 0:c.url;return(d,u)=>T(o,O,w,e)(d,i||u)},async getMode(r,a,n){var l,c;const o=await t.getMode(r,a,n),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["ControllerApi.getMode"])==null?void 0:l[s])==null?void 0:c.url;return(d,u)=>T(o,O,w,e)(d,i||u)},async getRobotController(r,a,n){var l,c;const o=await t.getRobotController(r,a,n),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["ControllerApi.getRobotController"])==null?void 0:l[s])==null?void 0:c.url;return(d,u)=>T(o,O,w,e)(d,i||u)},async getSupportedModes(r,a,n){var l,c;const o=await t.getSupportedModes(r,a,n),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["ControllerApi.getSupportedModes"])==null?void 0:l[s])==null?void 0:c.url;return(d,u)=>T(o,O,w,e)(d,i||u)},async getVirtualRobotConfiguration(r,a,n){var l,c;const o=await t.getVirtualRobotConfiguration(r,a,n),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["ControllerApi.getVirtualRobotConfiguration"])==null?void 0:l[s])==null?void 0:c.url;return(d,u)=>T(o,O,w,e)(d,i||u)},async listControllers(r,a){var i,l;const n=await t.listControllers(r,a),o=(e==null?void 0:e.serverIndex)??0,s=(l=(i=C["ControllerApi.listControllers"])==null?void 0:i[o])==null?void 0:l.url;return(c,d)=>T(n,O,w,e)(c,s||d)},async setDefaultMode(r,a,n,o){var c,d;const s=await t.setDefaultMode(r,a,n,o),i=(e==null?void 0:e.serverIndex)??0,l=(d=(c=C["ControllerApi.setDefaultMode"])==null?void 0:c[i])==null?void 0:d.url;return(u,p)=>T(s,O,w,e)(u,l||p)},async streamFreeDrive(r,a,n,o){var c,d;const s=await t.streamFreeDrive(r,a,n,o),i=(e==null?void 0:e.serverIndex)??0,l=(d=(c=C["ControllerApi.streamFreeDrive"])==null?void 0:c[i])==null?void 0:d.url;return(u,p)=>T(s,O,w,e)(u,l||p)},async streamModeChange(r,a,n){var l,c;const o=await t.streamModeChange(r,a,n),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["ControllerApi.streamModeChange"])==null?void 0:l[s])==null?void 0:c.url;return(d,u)=>T(o,O,w,e)(d,i||u)},async streamRobotControllerState(r,a,n,o){var c,d;const s=await t.streamRobotControllerState(r,a,n,o),i=(e==null?void 0:e.serverIndex)??0,l=(d=(c=C["ControllerApi.streamRobotControllerState"])==null?void 0:c[i])==null?void 0:d.url;return(u,p)=>T(s,O,w,e)(u,l||p)},async updateRobotController(r,a,n,o,s){var d,u;const i=await t.updateRobotController(r,a,n,o,s),l=(e==null?void 0:e.serverIndex)??0,c=(u=(d=C["ControllerApi.updateRobotController"])==null?void 0:d[l])==null?void 0:u.url;return(p,f)=>T(i,O,w,e)(p,c||f)}}};class uv extends Pe{addRobotController(t,r,a,n){return Xe(this.configuration).addRobotController(t,r,a,n).then(o=>o(this.axios,this.basePath))}clearRobotControllers(t,r,a){return Xe(this.configuration).clearRobotControllers(t,r,a).then(n=>n(this.axios,this.basePath))}deleteRobotController(t,r,a,n){return Xe(this.configuration).deleteRobotController(t,r,a,n).then(o=>o(this.axios,this.basePath))}getCurrentRobotControllerState(t,r,a){return Xe(this.configuration).getCurrentRobotControllerState(t,r,a).then(n=>n(this.axios,this.basePath))}getMode(t,r,a){return Xe(this.configuration).getMode(t,r,a).then(n=>n(this.axios,this.basePath))}getRobotController(t,r,a){return Xe(this.configuration).getRobotController(t,r,a).then(n=>n(this.axios,this.basePath))}getSupportedModes(t,r,a){return Xe(this.configuration).getSupportedModes(t,r,a).then(n=>n(this.axios,this.basePath))}getVirtualRobotConfiguration(t,r,a){return Xe(this.configuration).getVirtualRobotConfiguration(t,r,a).then(n=>n(this.axios,this.basePath))}listControllers(t,r){return Xe(this.configuration).listControllers(t,r).then(a=>a(this.axios,this.basePath))}setDefaultMode(t,r,a,n){return Xe(this.configuration).setDefaultMode(t,r,a,n).then(o=>o(this.axios,this.basePath))}streamFreeDrive(t,r,a,n){return Xe(this.configuration).streamFreeDrive(t,r,a,n).then(o=>o(this.axios,this.basePath))}streamModeChange(t,r,a){return Xe(this.configuration).streamModeChange(t,r,a).then(n=>n(this.axios,this.basePath))}streamRobotControllerState(t,r,a,n){return Xe(this.configuration).streamRobotControllerState(t,r,a,n).then(o=>o(this.axios,this.basePath))}updateRobotController(t,r,a,n,o){return Xe(this.configuration).updateRobotController(t,r,a,n,o).then(s=>s(this.axios,this.basePath))}}const pv=function(e){return{listIODescriptions:async(t,r,a,n={})=>{m("listIODescriptions","cell",t),m("listIODescriptions","controller",r);const o="/cells/{cell}/controllers/{controller}/ios/description".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))),s=new URL(o,P);let i;e&&(i=e.baseOptions);const l={method:"GET",...i,...n},c={},d={};V(l,e),await R(c,e),a&&(d.ios=a),_(s,d);let u=i&&i.headers?i.headers:{};return l.headers={...c,...u,...n.headers},{url:A(s),options:l}},listIOValues:async(t,r,a,n={})=>{m("listIOValues","cell",t),m("listIOValues","controller",r);const o="/cells/{cell}/controllers/{controller}/ios/values".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))),s=new URL(o,P);let i;e&&(i=e.baseOptions);const l={method:"GET",...i,...n},c={},d={};V(l,e),await R(c,e),a&&(d.ios=a),_(s,d);let u=i&&i.headers?i.headers:{};return l.headers={...c,...u,...n.headers},{url:A(s),options:l}},setOutputValues:async(t,r,a,n={})=>{m("setOutputValues","cell",t),m("setOutputValues","controller",r),m("setOutputValues","iOValue",a);const o="/cells/{cell}/controllers/{controller}/ios/values".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))),s=new URL(o,P);let i;e&&(i=e.baseOptions);const l={method:"PUT",...i,...n},c={},d={};V(l,e),await R(c,e),c["Content-Type"]="application/json",_(s,d);let u=i&&i.headers?i.headers:{};return l.headers={...c,...u,...n.headers},l.data=se(a,l,e),{url:A(s),options:l}},streamIOValues:async(t,r,a,n={})=>{m("streamIOValues","cell",t),m("streamIOValues","controller",r);const o="/cells/{cell}/controllers/{controller}/ios/stream".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))),s=new URL(o,P);let i;e&&(i=e.baseOptions);const l={method:"GET",...i,...n},c={},d={};V(l,e),await R(c,e),a&&(d.ios=a),_(s,d);let u=i&&i.headers?i.headers:{};return l.headers={...c,...u,...n.headers},{url:A(s),options:l}},waitForIOEvent:async(t,r,a,n,o,s,i,l={})=>{m("waitForIOEvent","cell",t),m("waitForIOEvent","controller",r),m("waitForIOEvent","io",a),m("waitForIOEvent","comparisonType",n);const c="/cells/{cell}/controllers/{controller}/ios/wait-for".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))),d=new URL(c,P);let u;e&&(u=e.baseOptions);const p={method:"GET",...u,...l},f={},g={};V(p,e),await R(f,e),a!==void 0&&(g.io=a),n!==void 0&&(g.comparison_type=n),o!==void 0&&(g.boolean_value=o),s!==void 0&&(g.integer_value=s),i!==void 0&&(g.floating_value=i),_(d,g);let h=u&&u.headers?u.headers:{};return p.headers={...f,...h,...l.headers},{url:A(d),options:p}}}},fa=function(e){const t=pv(e);return{async listIODescriptions(r,a,n,o){var c,d;const s=await t.listIODescriptions(r,a,n,o),i=(e==null?void 0:e.serverIndex)??0,l=(d=(c=C["ControllerIOsApi.listIODescriptions"])==null?void 0:c[i])==null?void 0:d.url;return(u,p)=>T(s,O,w,e)(u,l||p)},async listIOValues(r,a,n,o){var c,d;const s=await t.listIOValues(r,a,n,o),i=(e==null?void 0:e.serverIndex)??0,l=(d=(c=C["ControllerIOsApi.listIOValues"])==null?void 0:c[i])==null?void 0:d.url;return(u,p)=>T(s,O,w,e)(u,l||p)},async setOutputValues(r,a,n,o){var c,d;const s=await t.setOutputValues(r,a,n,o),i=(e==null?void 0:e.serverIndex)??0,l=(d=(c=C["ControllerIOsApi.setOutputValues"])==null?void 0:c[i])==null?void 0:d.url;return(u,p)=>T(s,O,w,e)(u,l||p)},async streamIOValues(r,a,n,o){var c,d;const s=await t.streamIOValues(r,a,n,o),i=(e==null?void 0:e.serverIndex)??0,l=(d=(c=C["ControllerIOsApi.streamIOValues"])==null?void 0:c[i])==null?void 0:d.url;return(u,p)=>T(s,O,w,e)(u,l||p)},async waitForIOEvent(r,a,n,o,s,i,l,c){var f,g;const d=await t.waitForIOEvent(r,a,n,o,s,i,l,c),u=(e==null?void 0:e.serverIndex)??0,p=(g=(f=C["ControllerIOsApi.waitForIOEvent"])==null?void 0:f[u])==null?void 0:g.url;return(h,x)=>T(d,O,w,e)(h,p||x)}}};class hv extends Pe{listIODescriptions(t,r,a,n){return fa(this.configuration).listIODescriptions(t,r,a,n).then(o=>o(this.axios,this.basePath))}listIOValues(t,r,a,n){return fa(this.configuration).listIOValues(t,r,a,n).then(o=>o(this.axios,this.basePath))}setOutputValues(t,r,a,n){return fa(this.configuration).setOutputValues(t,r,a,n).then(o=>o(this.axios,this.basePath))}streamIOValues(t,r,a,n){return fa(this.configuration).streamIOValues(t,r,a,n).then(o=>o(this.axios,this.basePath))}waitForIOEvent(t,r,a,n,o,s,i,l){return fa(this.configuration).waitForIOEvent(t,r,a,n,o,s,i,l).then(c=>c(this.axios,this.basePath))}}const mv=function(e){return{addCoordinateSystem:async(t,r,a={})=>{m("addCoordinateSystem","cell",t),m("addCoordinateSystem","addRequest",r);const n="/cells/{cell}/coordinate-systems".replace("{cell}",encodeURIComponent(String(t))),o=new URL(n,P);let s;e&&(s=e.baseOptions);const i={method:"PUT",...s,...a},l={},c={};V(i,e),await R(l,e),l["Content-Type"]="application/json",_(o,c);let d=s&&s.headers?s.headers:{};return i.headers={...l,...d,...a.headers},i.data=se(r,i,e),{url:A(o),options:i}},deleteCoordinateSystem:async(t,r,a={})=>{m("deleteCoordinateSystem","cell",t),m("deleteCoordinateSystem","coordinateSystem",r);const n="/cells/{cell}/coordinate-systems/{coordinate-system}".replace("{cell}",encodeURIComponent(String(t))).replace("{coordinate-system}",encodeURIComponent(String(r))),o=new URL(n,P);let s;e&&(s=e.baseOptions);const i={method:"DELETE",...s,...a},l={},c={};V(i,e),await R(l,e),_(o,c);let d=s&&s.headers?s.headers:{};return i.headers={...l,...d,...a.headers},{url:A(o),options:i}},getCoordinateSystem:async(t,r,a,n={})=>{m("getCoordinateSystem","cell",t),m("getCoordinateSystem","coordinateSystem",r);const o="/cells/{cell}/coordinate-systems/{coordinate-system}".replace("{cell}",encodeURIComponent(String(t))).replace("{coordinate-system}",encodeURIComponent(String(r))),s=new URL(o,P);let i;e&&(i=e.baseOptions);const l={method:"GET",...i,...n},c={},d={};V(l,e),await R(c,e),a!==void 0&&(d.rotation_type=a),_(s,d);let u=i&&i.headers?i.headers:{};return l.headers={...c,...u,...n.headers},{url:A(s),options:l}},listCoordinateSystems:async(t,r,a={})=>{m("listCoordinateSystems","cell",t);const n="/cells/{cell}/coordinate-systems".replace("{cell}",encodeURIComponent(String(t))),o=new URL(n,P);let s;e&&(s=e.baseOptions);const i={method:"GET",...s,...a},l={},c={};V(i,e),await R(l,e),r!==void 0&&(c.rotation_type=r),_(o,c);let d=s&&s.headers?s.headers:{};return i.headers={...l,...d,...a.headers},{url:A(o),options:i}},transformInCoordinateSystem:async(t,r,a,n={})=>{m("transformInCoordinateSystem","cell",t),m("transformInCoordinateSystem","coordinateSystem",r),m("transformInCoordinateSystem","pose",a);const o="/cells/{cell}/coordinate-systems/{coordinate-system}/transform".replace("{cell}",encodeURIComponent(String(t))).replace("{coordinate-system}",encodeURIComponent(String(r))),s=new URL(o,P);let i;e&&(i=e.baseOptions);const l={method:"POST",...i,...n},c={},d={};V(l,e),await R(c,e),c["Content-Type"]="application/json",_(s,d);let u=i&&i.headers?i.headers:{};return l.headers={...c,...u,...n.headers},l.data=se(a,l,e),{url:A(s),options:l}}}},ga=function(e){const t=mv(e);return{async addCoordinateSystem(r,a,n){var l,c;const o=await t.addCoordinateSystem(r,a,n),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["CoordinateSystemsApi.addCoordinateSystem"])==null?void 0:l[s])==null?void 0:c.url;return(d,u)=>T(o,O,w,e)(d,i||u)},async deleteCoordinateSystem(r,a,n){var l,c;const o=await t.deleteCoordinateSystem(r,a,n),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["CoordinateSystemsApi.deleteCoordinateSystem"])==null?void 0:l[s])==null?void 0:c.url;return(d,u)=>T(o,O,w,e)(d,i||u)},async getCoordinateSystem(r,a,n,o){var c,d;const s=await t.getCoordinateSystem(r,a,n,o),i=(e==null?void 0:e.serverIndex)??0,l=(d=(c=C["CoordinateSystemsApi.getCoordinateSystem"])==null?void 0:c[i])==null?void 0:d.url;return(u,p)=>T(s,O,w,e)(u,l||p)},async listCoordinateSystems(r,a,n){var l,c;const o=await t.listCoordinateSystems(r,a,n),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["CoordinateSystemsApi.listCoordinateSystems"])==null?void 0:l[s])==null?void 0:c.url;return(d,u)=>T(o,O,w,e)(d,i||u)},async transformInCoordinateSystem(r,a,n,o){var c,d;const s=await t.transformInCoordinateSystem(r,a,n,o),i=(e==null?void 0:e.serverIndex)??0,l=(d=(c=C["CoordinateSystemsApi.transformInCoordinateSystem"])==null?void 0:c[i])==null?void 0:d.url;return(u,p)=>T(s,O,w,e)(u,l||p)}}};class fv extends Pe{addCoordinateSystem(t,r,a){return ga(this.configuration).addCoordinateSystem(t,r,a).then(n=>n(this.axios,this.basePath))}deleteCoordinateSystem(t,r,a){return ga(this.configuration).deleteCoordinateSystem(t,r,a).then(n=>n(this.axios,this.basePath))}getCoordinateSystem(t,r,a,n){return ga(this.configuration).getCoordinateSystem(t,r,a,n).then(o=>o(this.axios,this.basePath))}listCoordinateSystems(t,r,a){return ga(this.configuration).listCoordinateSystems(t,r,a).then(n=>n(this.axios,this.basePath))}transformInCoordinateSystem(t,r,a,n){return ga(this.configuration).transformInCoordinateSystem(t,r,a,n).then(o=>o(this.axios,this.basePath))}}const gv=function(e){return{clearDevices:async(t,r={})=>{m("clearDevices","cell",t);const a="/cells/{cell}/devices".replace("{cell}",encodeURIComponent(String(t))),n=new URL(a,P);let o;e&&(o=e.baseOptions);const s={method:"DELETE",...o,...r},i={},l={};V(s,e),await R(i,e),_(n,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},{url:A(n),options:s}},createDevice:async(t,r,a={})=>{m("createDevice","cell",t),m("createDevice","createDeviceRequestInner",r);const n="/cells/{cell}/devices".replace("{cell}",encodeURIComponent(String(t))),o=new URL(n,P);let s;e&&(s=e.baseOptions);const i={method:"POST",...s,...a},l={},c={};V(i,e),await R(l,e),l["Content-Type"]="application/json",_(o,c);let d=s&&s.headers?s.headers:{};return i.headers={...l,...d,...a.headers},i.data=se(r,i,e),{url:A(o),options:i}},deleteDevice:async(t,r,a={})=>{m("deleteDevice","cell",t),m("deleteDevice","identifier",r);const n="/cells/{cell}/devices/{identifier}".replace("{cell}",encodeURIComponent(String(t))).replace("{identifier}",encodeURIComponent(String(r))),o=new URL(n,P);let s;e&&(s=e.baseOptions);const i={method:"DELETE",...s,...a},l={},c={};V(i,e),await R(l,e),_(o,c);let d=s&&s.headers?s.headers:{};return i.headers={...l,...d,...a.headers},{url:A(o),options:i}},getDevice:async(t,r,a={})=>{m("getDevice","cell",t),m("getDevice","identifier",r);const n="/cells/{cell}/devices/{identifier}".replace("{cell}",encodeURIComponent(String(t))).replace("{identifier}",encodeURIComponent(String(r))),o=new URL(n,P);let s;e&&(s=e.baseOptions);const i={method:"GET",...s,...a},l={},c={};V(i,e),await R(l,e),_(o,c);let d=s&&s.headers?s.headers:{};return i.headers={...l,...d,...a.headers},{url:A(o),options:i}},listDevices:async(t,r={})=>{m("listDevices","cell",t);const a="/cells/{cell}/devices".replace("{cell}",encodeURIComponent(String(t))),n=new URL(a,P);let o;e&&(o=e.baseOptions);const s={method:"GET",...o,...r},i={},l={};V(s,e),await R(i,e),_(n,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},{url:A(n),options:s}}}},ya=function(e){const t=gv(e);return{async clearDevices(r,a){var i,l;const n=await t.clearDevices(r,a),o=(e==null?void 0:e.serverIndex)??0,s=(l=(i=C["DeviceConfigurationApi.clearDevices"])==null?void 0:i[o])==null?void 0:l.url;return(c,d)=>T(n,O,w,e)(c,s||d)},async createDevice(r,a,n){var l,c;const o=await t.createDevice(r,a,n),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["DeviceConfigurationApi.createDevice"])==null?void 0:l[s])==null?void 0:c.url;return(d,u)=>T(o,O,w,e)(d,i||u)},async deleteDevice(r,a,n){var l,c;const o=await t.deleteDevice(r,a,n),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["DeviceConfigurationApi.deleteDevice"])==null?void 0:l[s])==null?void 0:c.url;return(d,u)=>T(o,O,w,e)(d,i||u)},async getDevice(r,a,n){var l,c;const o=await t.getDevice(r,a,n),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["DeviceConfigurationApi.getDevice"])==null?void 0:l[s])==null?void 0:c.url;return(d,u)=>T(o,O,w,e)(d,i||u)},async listDevices(r,a){var i,l;const n=await t.listDevices(r,a),o=(e==null?void 0:e.serverIndex)??0,s=(l=(i=C["DeviceConfigurationApi.listDevices"])==null?void 0:i[o])==null?void 0:l.url;return(c,d)=>T(n,O,w,e)(c,s||d)}}};class yv extends Pe{clearDevices(t,r){return ya(this.configuration).clearDevices(t,r).then(a=>a(this.axios,this.basePath))}createDevice(t,r,a){return ya(this.configuration).createDevice(t,r,a).then(n=>n(this.axios,this.basePath))}deleteDevice(t,r,a){return ya(this.configuration).deleteDevice(t,r,a).then(n=>n(this.axios,this.basePath))}getDevice(t,r,a){return ya(this.configuration).getDevice(t,r,a).then(n=>n(this.axios,this.basePath))}listDevices(t,r){return ya(this.configuration).listDevices(t,r).then(a=>a(this.axios,this.basePath))}}const bv=function(e){return{createProgram:async(t,r,a,n={})=>{m("createProgram","cell",t),m("createProgram","body",r);const o="/cells/{cell}/store/programs".replace("{cell}",encodeURIComponent(String(t))),s=new URL(o,P);let i;e&&(i=e.baseOptions);const l={method:"POST",...i,...n},c={},d={};V(l,e),await R(c,e),a!==void 0&&(d.name=a),c["Content-Type"]="text/plain",_(s,d);let u=i&&i.headers?i.headers:{};return l.headers={...c,...u,...n.headers},l.data=se(r,l,e),{url:A(s),options:l}},deleteProgram:async(t,r,a={})=>{m("deleteProgram","cell",t),m("deleteProgram","program",r);const n="/cells/{cell}/store/programs/{program}".replace("{cell}",encodeURIComponent(String(t))).replace("{program}",encodeURIComponent(String(r))),o=new URL(n,P);let s;e&&(s=e.baseOptions);const i={method:"DELETE",...s,...a},l={},c={};V(i,e),await R(l,e),_(o,c);let d=s&&s.headers?s.headers:{};return i.headers={...l,...d,...a.headers},{url:A(o),options:i}},deleteProgramList:async(t,r,a={})=>{m("deleteProgramList","cell",t),m("deleteProgramList","programIds",r);const n="/cells/{cell}/store/programs".replace("{cell}",encodeURIComponent(String(t))),o=new URL(n,P);let s;e&&(s=e.baseOptions);const i={method:"DELETE",...s,...a},l={},c={};V(i,e),await R(l,e),r&&(c.program_ids=r),_(o,c);let d=s&&s.headers?s.headers:{};return i.headers={...l,...d,...a.headers},{url:A(o),options:i}},getProgram:async(t,r,a={})=>{m("getProgram","cell",t),m("getProgram","program",r);const n="/cells/{cell}/store/programs/{program}".replace("{cell}",encodeURIComponent(String(t))).replace("{program}",encodeURIComponent(String(r))),o=new URL(n,P);let s;e&&(s=e.baseOptions);const i={method:"GET",...s,...a},l={},c={};V(i,e),await R(l,e),_(o,c);let d=s&&s.headers?s.headers:{};return i.headers={...l,...d,...a.headers},{url:A(o),options:i}},updateProgram:async(t,r,a,n={})=>{m("updateProgram","cell",t),m("updateProgram","program",r),m("updateProgram","body",a);const o="/cells/{cell}/store/programs/{program}".replace("{cell}",encodeURIComponent(String(t))).replace("{program}",encodeURIComponent(String(r))),s=new URL(o,P);let i;e&&(i=e.baseOptions);const l={method:"PUT",...i,...n},c={},d={};V(l,e),await R(c,e),c["Content-Type"]="text/plain",_(s,d);let u=i&&i.headers?i.headers:{};return l.headers={...c,...u,...n.headers},l.data=se(a,l,e),{url:A(s),options:l}}}},ba=function(e){const t=bv(e);return{async createProgram(r,a,n,o){var c,d;const s=await t.createProgram(r,a,n,o),i=(e==null?void 0:e.serverIndex)??0,l=(d=(c=C["LibraryProgramApi.createProgram"])==null?void 0:c[i])==null?void 0:d.url;return(u,p)=>T(s,O,w,e)(u,l||p)},async deleteProgram(r,a,n){var l,c;const o=await t.deleteProgram(r,a,n),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["LibraryProgramApi.deleteProgram"])==null?void 0:l[s])==null?void 0:c.url;return(d,u)=>T(o,O,w,e)(d,i||u)},async deleteProgramList(r,a,n){var l,c;const o=await t.deleteProgramList(r,a,n),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["LibraryProgramApi.deleteProgramList"])==null?void 0:l[s])==null?void 0:c.url;return(d,u)=>T(o,O,w,e)(d,i||u)},async getProgram(r,a,n){var l,c;const o=await t.getProgram(r,a,n),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["LibraryProgramApi.getProgram"])==null?void 0:l[s])==null?void 0:c.url;return(d,u)=>T(o,O,w,e)(d,i||u)},async updateProgram(r,a,n,o){var c,d;const s=await t.updateProgram(r,a,n,o),i=(e==null?void 0:e.serverIndex)??0,l=(d=(c=C["LibraryProgramApi.updateProgram"])==null?void 0:c[i])==null?void 0:d.url;return(u,p)=>T(s,O,w,e)(u,l||p)}}};class Sv extends Pe{createProgram(t,r,a,n){return ba(this.configuration).createProgram(t,r,a,n).then(o=>o(this.axios,this.basePath))}deleteProgram(t,r,a){return ba(this.configuration).deleteProgram(t,r,a).then(n=>n(this.axios,this.basePath))}deleteProgramList(t,r,a){return ba(this.configuration).deleteProgramList(t,r,a).then(n=>n(this.axios,this.basePath))}getProgram(t,r,a){return ba(this.configuration).getProgram(t,r,a).then(n=>n(this.axios,this.basePath))}updateProgram(t,r,a,n){return ba(this.configuration).updateProgram(t,r,a,n).then(o=>o(this.axios,this.basePath))}}const vv=function(e){return{getProgramMetadata:async(t,r,a={})=>{m("getProgramMetadata","cell",t),m("getProgramMetadata","program",r);const n="/cells/{cell}/store/programs/{program}/metadata".replace("{cell}",encodeURIComponent(String(t))).replace("{program}",encodeURIComponent(String(r))),o=new URL(n,P);let s;e&&(s=e.baseOptions);const i={method:"GET",...s,...a},l={},c={};V(i,e),await R(l,e),_(o,c);let d=s&&s.headers?s.headers:{};return i.headers={...l,...d,...a.headers},{url:A(o),options:i}},listProgramMetadata:async(t,r,a={})=>{m("listProgramMetadata","cell",t);const n="/cells/{cell}/store/programs".replace("{cell}",encodeURIComponent(String(t))),o=new URL(n,P);let s;e&&(s=e.baseOptions);const i={method:"GET",...s,...a},l={},c={};V(i,e),await R(l,e),r!==void 0&&(c.show_hidden=r),_(o,c);let d=s&&s.headers?s.headers:{};return i.headers={...l,...d,...a.headers},{url:A(o),options:i}},updateProgramMetadata:async(t,r,a,n={})=>{m("updateProgramMetadata","cell",t),m("updateProgramMetadata","program",r),m("updateProgramMetadata","updateProgramMetadataRequest",a);const o="/cells/{cell}/store/programs/{program}/metadata".replace("{cell}",encodeURIComponent(String(t))).replace("{program}",encodeURIComponent(String(r))),s=new URL(o,P);let i;e&&(i=e.baseOptions);const l={method:"PUT",...i,...n},c={},d={};V(l,e),await R(c,e),c["Content-Type"]="application/json",_(s,d);let u=i&&i.headers?i.headers:{};return l.headers={...c,...u,...n.headers},l.data=se(a,l,e),{url:A(s),options:l}},uploadProgramMetadataImage:async(t,r,a,n={})=>{m("uploadProgramMetadataImage","cell",t),m("uploadProgramMetadataImage","program",r),m("uploadProgramMetadataImage","file",a);const o="/cells/{cell}/store/programs/{program}/metadata/image".replace("{cell}",encodeURIComponent(String(t))).replace("{program}",encodeURIComponent(String(r))),s=new URL(o,P);let i;e&&(i=e.baseOptions);const l={method:"POST",...i,...n},c={},d={},u=new(e&&e.formDataCtor||FormData);V(l,e),await R(c,e),a!==void 0&&u.append("file",a),c["Content-Type"]="multipart/form-data",_(s,d);let p=i&&i.headers?i.headers:{};return l.headers={...c,...p,...n.headers},l.data=u,{url:A(s),options:l}}}},Ka=function(e){const t=vv(e);return{async getProgramMetadata(r,a,n){var l,c;const o=await t.getProgramMetadata(r,a,n),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["LibraryProgramMetadataApi.getProgramMetadata"])==null?void 0:l[s])==null?void 0:c.url;return(d,u)=>T(o,O,w,e)(d,i||u)},async listProgramMetadata(r,a,n){var l,c;const o=await t.listProgramMetadata(r,a,n),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["LibraryProgramMetadataApi.listProgramMetadata"])==null?void 0:l[s])==null?void 0:c.url;return(d,u)=>T(o,O,w,e)(d,i||u)},async updateProgramMetadata(r,a,n,o){var c,d;const s=await t.updateProgramMetadata(r,a,n,o),i=(e==null?void 0:e.serverIndex)??0,l=(d=(c=C["LibraryProgramMetadataApi.updateProgramMetadata"])==null?void 0:c[i])==null?void 0:d.url;return(u,p)=>T(s,O,w,e)(u,l||p)},async uploadProgramMetadataImage(r,a,n,o){var c,d;const s=await t.uploadProgramMetadataImage(r,a,n,o),i=(e==null?void 0:e.serverIndex)??0,l=(d=(c=C["LibraryProgramMetadataApi.uploadProgramMetadataImage"])==null?void 0:c[i])==null?void 0:d.url;return(u,p)=>T(s,O,w,e)(u,l||p)}}};class xv extends Pe{getProgramMetadata(t,r,a){return Ka(this.configuration).getProgramMetadata(t,r,a).then(n=>n(this.axios,this.basePath))}listProgramMetadata(t,r,a){return Ka(this.configuration).listProgramMetadata(t,r,a).then(n=>n(this.axios,this.basePath))}updateProgramMetadata(t,r,a,n){return Ka(this.configuration).updateProgramMetadata(t,r,a,n).then(o=>o(this.axios,this.basePath))}uploadProgramMetadataImage(t,r,a,n){return Ka(this.configuration).uploadProgramMetadataImage(t,r,a,n).then(o=>o(this.axios,this.basePath))}}const Ov=function(e){return{createRecipe:async(t,r,a,n,o={})=>{m("createRecipe","cell",t),m("createRecipe","programId",r),m("createRecipe","body",a);const s="/cells/{cell}/store/recipes".replace("{cell}",encodeURIComponent(String(t))),i=new URL(s,P);let l;e&&(l=e.baseOptions);const c={method:"POST",...l,...o},d={},u={};V(c,e),await R(d,e),r!==void 0&&(u.program_id=r),n!==void 0&&(u.name=n),d["Content-Type"]="application/json",_(i,u);let p=l&&l.headers?l.headers:{};return c.headers={...d,...p,...o.headers},c.data=se(a,c,e),{url:A(i),options:c}},deleteRecipe:async(t,r,a={})=>{m("deleteRecipe","cell",t),m("deleteRecipe","recipe",r);const n="/cells/{cell}/store/recipes/{recipe}".replace("{cell}",encodeURIComponent(String(t))).replace("{recipe}",encodeURIComponent(String(r))),o=new URL(n,P);let s;e&&(s=e.baseOptions);const i={method:"DELETE",...s,...a},l={},c={};V(i,e),await R(l,e),_(o,c);let d=s&&s.headers?s.headers:{};return i.headers={...l,...d,...a.headers},{url:A(o),options:i}},deleteRecipeList:async(t,r,a={})=>{m("deleteRecipeList","cell",t),m("deleteRecipeList","recipeIds",r);const n="/cells/{cell}/store/recipes".replace("{cell}",encodeURIComponent(String(t))),o=new URL(n,P);let s;e&&(s=e.baseOptions);const i={method:"DELETE",...s,...a},l={},c={};V(i,e),await R(l,e),r&&(c.recipe_ids=r),_(o,c);let d=s&&s.headers?s.headers:{};return i.headers={...l,...d,...a.headers},{url:A(o),options:i}},getRecipe:async(t,r,a={})=>{m("getRecipe","cell",t),m("getRecipe","recipe",r);const n="/cells/{cell}/store/recipes/{recipe}".replace("{cell}",encodeURIComponent(String(t))).replace("{recipe}",encodeURIComponent(String(r))),o=new URL(n,P);let s;e&&(s=e.baseOptions);const i={method:"GET",...s,...a},l={},c={};V(i,e),await R(l,e),_(o,c);let d=s&&s.headers?s.headers:{};return i.headers={...l,...d,...a.headers},{url:A(o),options:i}},updateRecipe:async(t,r,a,n={})=>{m("updateRecipe","cell",t),m("updateRecipe","recipe",r),m("updateRecipe","body",a);const o="/cells/{cell}/store/recipes/{recipe}".replace("{cell}",encodeURIComponent(String(t))).replace("{recipe}",encodeURIComponent(String(r))),s=new URL(o,P);let i;e&&(i=e.baseOptions);const l={method:"PUT",...i,...n},c={},d={};V(l,e),await R(c,e),c["Content-Type"]="application/json",_(s,d);let u=i&&i.headers?i.headers:{};return l.headers={...c,...u,...n.headers},l.data=se(a,l,e),{url:A(s),options:l}}}},Sa=function(e){const t=Ov(e);return{async createRecipe(r,a,n,o,s){var d,u;const i=await t.createRecipe(r,a,n,o,s),l=(e==null?void 0:e.serverIndex)??0,c=(u=(d=C["LibraryRecipeApi.createRecipe"])==null?void 0:d[l])==null?void 0:u.url;return(p,f)=>T(i,O,w,e)(p,c||f)},async deleteRecipe(r,a,n){var l,c;const o=await t.deleteRecipe(r,a,n),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["LibraryRecipeApi.deleteRecipe"])==null?void 0:l[s])==null?void 0:c.url;return(d,u)=>T(o,O,w,e)(d,i||u)},async deleteRecipeList(r,a,n){var l,c;const o=await t.deleteRecipeList(r,a,n),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["LibraryRecipeApi.deleteRecipeList"])==null?void 0:l[s])==null?void 0:c.url;return(d,u)=>T(o,O,w,e)(d,i||u)},async getRecipe(r,a,n){var l,c;const o=await t.getRecipe(r,a,n),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["LibraryRecipeApi.getRecipe"])==null?void 0:l[s])==null?void 0:c.url;return(d,u)=>T(o,O,w,e)(d,i||u)},async updateRecipe(r,a,n,o){var c,d;const s=await t.updateRecipe(r,a,n,o),i=(e==null?void 0:e.serverIndex)??0,l=(d=(c=C["LibraryRecipeApi.updateRecipe"])==null?void 0:c[i])==null?void 0:d.url;return(u,p)=>T(s,O,w,e)(u,l||p)}}};class wv extends Pe{createRecipe(t,r,a,n,o){return Sa(this.configuration).createRecipe(t,r,a,n,o).then(s=>s(this.axios,this.basePath))}deleteRecipe(t,r,a){return Sa(this.configuration).deleteRecipe(t,r,a).then(n=>n(this.axios,this.basePath))}deleteRecipeList(t,r,a){return Sa(this.configuration).deleteRecipeList(t,r,a).then(n=>n(this.axios,this.basePath))}getRecipe(t,r,a){return Sa(this.configuration).getRecipe(t,r,a).then(n=>n(this.axios,this.basePath))}updateRecipe(t,r,a,n){return Sa(this.configuration).updateRecipe(t,r,a,n).then(o=>o(this.axios,this.basePath))}}const Cv=function(e){return{getRecipeMetadata:async(t,r,a={})=>{m("getRecipeMetadata","cell",t),m("getRecipeMetadata","recipe",r);const n="/cells/{cell}/store/recipes/{recipe}/metadata".replace("{cell}",encodeURIComponent(String(t))).replace("{recipe}",encodeURIComponent(String(r))),o=new URL(n,P);let s;e&&(s=e.baseOptions);const i={method:"GET",...s,...a},l={},c={};V(i,e),await R(l,e),_(o,c);let d=s&&s.headers?s.headers:{};return i.headers={...l,...d,...a.headers},{url:A(o),options:i}},listRecipeMetadata:async(t,r={})=>{m("listRecipeMetadata","cell",t);const a="/cells/{cell}/store/recipes".replace("{cell}",encodeURIComponent(String(t))),n=new URL(a,P);let o;e&&(o=e.baseOptions);const s={method:"GET",...o,...r},i={},l={};V(s,e),await R(i,e),_(n,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},{url:A(n),options:s}},updateRecipeMetadata:async(t,r,a,n={})=>{m("updateRecipeMetadata","cell",t),m("updateRecipeMetadata","recipe",r),m("updateRecipeMetadata","updateRecipeMetadataRequest",a);const o="/cells/{cell}/store/recipes/{recipe}/metadata".replace("{cell}",encodeURIComponent(String(t))).replace("{recipe}",encodeURIComponent(String(r))),s=new URL(o,P);let i;e&&(i=e.baseOptions);const l={method:"PUT",...i,...n},c={},d={};V(l,e),await R(c,e),c["Content-Type"]="application/json",_(s,d);let u=i&&i.headers?i.headers:{};return l.headers={...c,...u,...n.headers},l.data=se(a,l,e),{url:A(s),options:l}},uploadRecipeMetadataImage:async(t,r,a,n={})=>{m("uploadRecipeMetadataImage","cell",t),m("uploadRecipeMetadataImage","recipe",r),m("uploadRecipeMetadataImage","file",a);const o="/cells/{cell}/store/recipes/{recipe}/metadata/image".replace("{cell}",encodeURIComponent(String(t))).replace("{recipe}",encodeURIComponent(String(r))),s=new URL(o,P);let i;e&&(i=e.baseOptions);const l={method:"POST",...i,...n},c={},d={},u=new(e&&e.formDataCtor||FormData);V(l,e),await R(c,e),a!==void 0&&u.append("file",a),c["Content-Type"]="multipart/form-data",_(s,d);let p=i&&i.headers?i.headers:{};return l.headers={...c,...p,...n.headers},l.data=u,{url:A(s),options:l}}}},Qa=function(e){const t=Cv(e);return{async getRecipeMetadata(r,a,n){var l,c;const o=await t.getRecipeMetadata(r,a,n),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["LibraryRecipeMetadataApi.getRecipeMetadata"])==null?void 0:l[s])==null?void 0:c.url;return(d,u)=>T(o,O,w,e)(d,i||u)},async listRecipeMetadata(r,a){var i,l;const n=await t.listRecipeMetadata(r,a),o=(e==null?void 0:e.serverIndex)??0,s=(l=(i=C["LibraryRecipeMetadataApi.listRecipeMetadata"])==null?void 0:i[o])==null?void 0:l.url;return(c,d)=>T(n,O,w,e)(c,s||d)},async updateRecipeMetadata(r,a,n,o){var c,d;const s=await t.updateRecipeMetadata(r,a,n,o),i=(e==null?void 0:e.serverIndex)??0,l=(d=(c=C["LibraryRecipeMetadataApi.updateRecipeMetadata"])==null?void 0:c[i])==null?void 0:d.url;return(u,p)=>T(s,O,w,e)(u,l||p)},async uploadRecipeMetadataImage(r,a,n,o){var c,d;const s=await t.uploadRecipeMetadataImage(r,a,n,o),i=(e==null?void 0:e.serverIndex)??0,l=(d=(c=C["LibraryRecipeMetadataApi.uploadRecipeMetadataImage"])==null?void 0:c[i])==null?void 0:d.url;return(u,p)=>T(s,O,w,e)(u,l||p)}}};class Pv extends Pe{getRecipeMetadata(t,r,a){return Qa(this.configuration).getRecipeMetadata(t,r,a).then(n=>n(this.axios,this.basePath))}listRecipeMetadata(t,r){return Qa(this.configuration).listRecipeMetadata(t,r).then(a=>a(this.axios,this.basePath))}updateRecipeMetadata(t,r,a,n){return Qa(this.configuration).updateRecipeMetadata(t,r,a,n).then(o=>o(this.axios,this.basePath))}uploadRecipeMetadataImage(t,r,a,n){return Qa(this.configuration).uploadRecipeMetadataImage(t,r,a,n).then(o=>o(this.axios,this.basePath))}}const Vv=function(e){return{deleteAllMotions:async(t,r={})=>{m("deleteAllMotions","cell",t);const a="/cells/{cell}/motions".replace("{cell}",encodeURIComponent(String(t))),n=new URL(a,P);let o;e&&(o=e.baseOptions);const s={method:"DELETE",...o,...r},i={},l={};V(s,e),await R(i,e),_(n,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},{url:A(n),options:s}},deleteMotion:async(t,r,a={})=>{m("deleteMotion","cell",t),m("deleteMotion","motion",r);const n="/cells/{cell}/motions/{motion}/delete".replace("{cell}",encodeURIComponent(String(t))).replace("{motion}",encodeURIComponent(String(r))),o=new URL(n,P);let s;e&&(s=e.baseOptions);const i={method:"DELETE",...s,...a},l={},c={};V(i,e),await R(l,e),_(o,c);let d=s&&s.headers?s.headers:{};return i.headers={...l,...d,...a.headers},{url:A(o),options:i}},executeTrajectory:async(t,r,a={})=>{m("executeTrajectory","cell",t),m("executeTrajectory","executeTrajectoryRequest",r);const n="/cells/{cell}/motions/executetrajectory".replace("{cell}",encodeURIComponent(String(t))),o=new URL(n,P);let s;e&&(s=e.baseOptions);const i={method:"GET",...s,...a},l={},c={};V(i,e),await R(l,e),l["Content-Type"]="application/json",_(o,c);let d=s&&s.headers?s.headers:{};return i.headers={...l,...d,...a.headers},i.data=se(r,i,e),{url:A(o),options:i}},getMotionTrajectory:async(t,r,a,n,o={})=>{m("getMotionTrajectory","cell",t),m("getMotionTrajectory","motion",r),m("getMotionTrajectory","sampleTime",a);const s="/cells/{cell}/motions/{motion}/trajectory".replace("{cell}",encodeURIComponent(String(t))).replace("{motion}",encodeURIComponent(String(r))),i=new URL(s,P);let l;e&&(l=e.baseOptions);const c={method:"GET",...l,...o},d={},u={};V(c,e),await R(d,e),a!==void 0&&(u.sample_time=a),n!==void 0&&(u.responses_coordinate_system=n),_(i,u);let p=l&&l.headers?l.headers:{};return c.headers={...d,...p,...o.headers},{url:A(i),options:c}},getMotionTrajectorySample:async(t,r,a,n,o={})=>{m("getMotionTrajectorySample","cell",t),m("getMotionTrajectorySample","motion",r);const s="/cells/{cell}/motions/{motion}/trajectorysample".replace("{cell}",encodeURIComponent(String(t))).replace("{motion}",encodeURIComponent(String(r))),i=new URL(s,P);let l;e&&(l=e.baseOptions);const c={method:"GET",...l,...o},d={},u={};V(c,e),await R(d,e),a!==void 0&&(u.location_on_trajectory=a),n!==void 0&&(u.response_coordinate_system=n),_(i,u);let p=l&&l.headers?l.headers:{};return c.headers={...d,...p,...o.headers},{url:A(i),options:c}},getPlannedMotion:async(t,r,a,n={})=>{m("getPlannedMotion","cell",t),m("getPlannedMotion","motion",r);const o="/cells/{cell}/motions/{motion}/planned-motion".replace("{cell}",encodeURIComponent(String(t))).replace("{motion}",encodeURIComponent(String(r))),s=new URL(o,P);let i;e&&(i=e.baseOptions);const l={method:"GET",...i,...n},c={},d={};V(l,e),await R(c,e),a!==void 0&&(d.sample_time=a),_(s,d);let u=i&&i.headers?i.headers:{};return l.headers={...c,...u,...n.headers},{url:A(s),options:l}},getPlanningMotionGroupModels:async(t,r={})=>{m("getPlanningMotionGroupModels","cell",t);const a="/cells/{cell}/motion-planning/motion-group-models".replace("{cell}",encodeURIComponent(String(t))),n=new URL(a,P);let o;e&&(o=e.baseOptions);const s={method:"GET",...o,...r},i={},l={};V(s,e),await R(i,e),_(n,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},{url:A(n),options:s}},listMotions:async(t,r={})=>{m("listMotions","cell",t);const a="/cells/{cell}/motions".replace("{cell}",encodeURIComponent(String(t))),n=new URL(a,P);let o;e&&(o=e.baseOptions);const s={method:"GET",...o,...r},i={},l={};V(s,e),await R(i,e),_(n,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},{url:A(n),options:s}},loadPlannedMotion:async(t,r,a={})=>{m("loadPlannedMotion","cell",t),m("loadPlannedMotion","plannedMotion",r);const n="/cells/{cell}/planned-motions".replace("{cell}",encodeURIComponent(String(t))),o=new URL(n,P);let s;e&&(s=e.baseOptions);const i={method:"POST",...s,...a},l={},c={};V(i,e),await R(l,e),l["Content-Type"]="application/json",_(o,c);let d=s&&s.headers?s.headers:{};return i.headers={...l,...d,...a.headers},i.data=se(r,i,e),{url:A(o),options:i}},planCollisionFreePTP:async(t,r,a={})=>{m("planCollisionFreePTP","cell",t);const n="/cells/{cell}/motion-planning/plan-collision-free-ptp".replace("{cell}",encodeURIComponent(String(t))),o=new URL(n,P);let s;e&&(s=e.baseOptions);const i={method:"POST",...s,...a},l={},c={};V(i,e),await R(l,e),l["Content-Type"]="application/json",_(o,c);let d=s&&s.headers?s.headers:{};return i.headers={...l,...d,...a.headers},i.data=se(r,i,e),{url:A(o),options:i}},planMotion:async(t,r,a={})=>{m("planMotion","cell",t),m("planMotion","planRequest",r);const n="/cells/{cell}/motions".replace("{cell}",encodeURIComponent(String(t))),o=new URL(n,P);let s;e&&(s=e.baseOptions);const i={method:"POST",...s,...a},l={},c={};V(i,e),await R(l,e),l["Content-Type"]="application/json",_(o,c);let d=s&&s.headers?s.headers:{};return i.headers={...l,...d,...a.headers},i.data=se(r,i,e),{url:A(o),options:i}},planTrajectory:async(t,r,a={})=>{m("planTrajectory","cell",t);const n="/cells/{cell}/motion-planning/plan-trajectory".replace("{cell}",encodeURIComponent(String(t))),o=new URL(n,P);let s;e&&(s=e.baseOptions);const i={method:"POST",...s,...a},l={},c={};V(i,e),await R(l,e),l["Content-Type"]="application/json",_(o,c);let d=s&&s.headers?s.headers:{};return i.headers={...l,...d,...a.headers},i.data=se(r,i,e),{url:A(o),options:i}},stopExecution:async(t,r,a={})=>{m("stopExecution","cell",t),m("stopExecution","motion",r);const n="/cells/{cell}/motions/{motion}/stop".replace("{cell}",encodeURIComponent(String(t))).replace("{motion}",encodeURIComponent(String(r))),o=new URL(n,P);let s;e&&(s=e.baseOptions);const i={method:"PUT",...s,...a},l={},c={};V(i,e),await R(l,e),_(o,c);let d=s&&s.headers?s.headers:{};return i.headers={...l,...d,...a.headers},{url:A(o),options:i}},streamMove:async(t,r,a={})=>{m("streamMove","cell",t),m("streamMove","streamMoveRequest",r);const n="/cells/{cell}/motions/streammove".replace("{cell}",encodeURIComponent(String(t))),o=new URL(n,P);let s;e&&(s=e.baseOptions);const i={method:"GET",...s,...a},l={},c={};V(i,e),await R(l,e),l["Content-Type"]="application/json",_(o,c);let d=s&&s.headers?s.headers:{};return i.headers={...l,...d,...a.headers},i.data=se(r,i,e),{url:A(o),options:i}},streamMoveBackward:async(t,r,a,n,o,s,i={})=>{m("streamMoveBackward","cell",t),m("streamMoveBackward","motion",r),m("streamMoveBackward","playbackSpeedInPercent",a);const l="/cells/{cell}/motions/{motion}/executebackward".replace("{cell}",encodeURIComponent(String(t))).replace("{motion}",encodeURIComponent(String(r))),c=new URL(l,P);let d;e&&(d=e.baseOptions);const u={method:"GET",...d,...i},p={},f={};V(u,e),await R(p,e),a!==void 0&&(f.playback_speed_in_percent=a),n!==void 0&&(f.response_rate=n),o!==void 0&&(f.response_coordinate_system=o),s!==void 0&&(f.start_location_on_trajectory=s),_(c,f);let g=d&&d.headers?d.headers:{};return u.headers={...p,...g,...i.headers},{url:A(c),options:u}},streamMoveForward:async(t,r,a,n,o,s,i={})=>{m("streamMoveForward","cell",t),m("streamMoveForward","motion",r),m("streamMoveForward","playbackSpeedInPercent",a);const l="/cells/{cell}/motions/{motion}/executeforward".replace("{cell}",encodeURIComponent(String(t))).replace("{motion}",encodeURIComponent(String(r))),c=new URL(l,P);let d;e&&(d=e.baseOptions);const u={method:"GET",...d,...i},p={},f={};V(u,e),await R(p,e),a!==void 0&&(f.playback_speed_in_percent=a),n!==void 0&&(f.response_rate=n),o!==void 0&&(f.response_coordinate_system=o),s!==void 0&&(f.start_location_on_trajectory=s),_(c,f);let g=d&&d.headers?d.headers:{};return u.headers={...p,...g,...i.headers},{url:A(c),options:u}},streamMoveToTrajectoryViaJointPTP:async(t,r,a,n,o,s,i,l,c,d,u={})=>{m("streamMoveToTrajectoryViaJointPTP","cell",t),m("streamMoveToTrajectoryViaJointPTP","motion",r),m("streamMoveToTrajectoryViaJointPTP","locationOnTrajectory",a);const p="/cells/{cell}/motions/{motion}/executetotrajectory".replace("{cell}",encodeURIComponent(String(t))).replace("{motion}",encodeURIComponent(String(r))),f=new URL(p,P);let g;e&&(g=e.baseOptions);const h={method:"GET",...g,...u},x={},E={};V(h,e),await R(x,e),a!==void 0&&(E.location_on_trajectory=a),n&&(E["limit_override.joint_velocity_limits.joints"]=n),o&&(E["limit_override.joint_acceleration_limits.joints"]=o),s!==void 0&&(E["limit_override.tcp_velocity_limit"]=s),i!==void 0&&(E["limit_override.tcp_acceleration_limit"]=i),l!==void 0&&(E["limit_override.tcp_orientation_velocity_limit"]=l),c!==void 0&&(E["limit_override.tcp_orientation_acceleration_limit"]=c),d!==void 0&&(E.responses_coordinate_system=d),_(f,E);let U=g&&g.headers?g.headers:{};return h.headers={...x,...U,...u.headers},{url:A(f),options:h}}}},ze=function(e){const t=Vv(e);return{async deleteAllMotions(r,a){var i,l;const n=await t.deleteAllMotions(r,a),o=(e==null?void 0:e.serverIndex)??0,s=(l=(i=C["MotionApi.deleteAllMotions"])==null?void 0:i[o])==null?void 0:l.url;return(c,d)=>T(n,O,w,e)(c,s||d)},async deleteMotion(r,a,n){var l,c;const o=await t.deleteMotion(r,a,n),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["MotionApi.deleteMotion"])==null?void 0:l[s])==null?void 0:c.url;return(d,u)=>T(o,O,w,e)(d,i||u)},async executeTrajectory(r,a,n){var l,c;const o=await t.executeTrajectory(r,a,n),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["MotionApi.executeTrajectory"])==null?void 0:l[s])==null?void 0:c.url;return(d,u)=>T(o,O,w,e)(d,i||u)},async getMotionTrajectory(r,a,n,o,s){var d,u;const i=await t.getMotionTrajectory(r,a,n,o,s),l=(e==null?void 0:e.serverIndex)??0,c=(u=(d=C["MotionApi.getMotionTrajectory"])==null?void 0:d[l])==null?void 0:u.url;return(p,f)=>T(i,O,w,e)(p,c||f)},async getMotionTrajectorySample(r,a,n,o,s){var d,u;const i=await t.getMotionTrajectorySample(r,a,n,o,s),l=(e==null?void 0:e.serverIndex)??0,c=(u=(d=C["MotionApi.getMotionTrajectorySample"])==null?void 0:d[l])==null?void 0:u.url;return(p,f)=>T(i,O,w,e)(p,c||f)},async getPlannedMotion(r,a,n,o){var c,d;const s=await t.getPlannedMotion(r,a,n,o),i=(e==null?void 0:e.serverIndex)??0,l=(d=(c=C["MotionApi.getPlannedMotion"])==null?void 0:c[i])==null?void 0:d.url;return(u,p)=>T(s,O,w,e)(u,l||p)},async getPlanningMotionGroupModels(r,a){var i,l;const n=await t.getPlanningMotionGroupModels(r,a),o=(e==null?void 0:e.serverIndex)??0,s=(l=(i=C["MotionApi.getPlanningMotionGroupModels"])==null?void 0:i[o])==null?void 0:l.url;return(c,d)=>T(n,O,w,e)(c,s||d)},async listMotions(r,a){var i,l;const n=await t.listMotions(r,a),o=(e==null?void 0:e.serverIndex)??0,s=(l=(i=C["MotionApi.listMotions"])==null?void 0:i[o])==null?void 0:l.url;return(c,d)=>T(n,O,w,e)(c,s||d)},async loadPlannedMotion(r,a,n){var l,c;const o=await t.loadPlannedMotion(r,a,n),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["MotionApi.loadPlannedMotion"])==null?void 0:l[s])==null?void 0:c.url;return(d,u)=>T(o,O,w,e)(d,i||u)},async planCollisionFreePTP(r,a,n){var l,c;const o=await t.planCollisionFreePTP(r,a,n),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["MotionApi.planCollisionFreePTP"])==null?void 0:l[s])==null?void 0:c.url;return(d,u)=>T(o,O,w,e)(d,i||u)},async planMotion(r,a,n){var l,c;const o=await t.planMotion(r,a,n),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["MotionApi.planMotion"])==null?void 0:l[s])==null?void 0:c.url;return(d,u)=>T(o,O,w,e)(d,i||u)},async planTrajectory(r,a,n){var l,c;const o=await t.planTrajectory(r,a,n),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["MotionApi.planTrajectory"])==null?void 0:l[s])==null?void 0:c.url;return(d,u)=>T(o,O,w,e)(d,i||u)},async stopExecution(r,a,n){var l,c;const o=await t.stopExecution(r,a,n),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["MotionApi.stopExecution"])==null?void 0:l[s])==null?void 0:c.url;return(d,u)=>T(o,O,w,e)(d,i||u)},async streamMove(r,a,n){var l,c;const o=await t.streamMove(r,a,n),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["MotionApi.streamMove"])==null?void 0:l[s])==null?void 0:c.url;return(d,u)=>T(o,O,w,e)(d,i||u)},async streamMoveBackward(r,a,n,o,s,i,l){var p,f;const c=await t.streamMoveBackward(r,a,n,o,s,i,l),d=(e==null?void 0:e.serverIndex)??0,u=(f=(p=C["MotionApi.streamMoveBackward"])==null?void 0:p[d])==null?void 0:f.url;return(g,h)=>T(c,O,w,e)(g,u||h)},async streamMoveForward(r,a,n,o,s,i,l){var p,f;const c=await t.streamMoveForward(r,a,n,o,s,i,l),d=(e==null?void 0:e.serverIndex)??0,u=(f=(p=C["MotionApi.streamMoveForward"])==null?void 0:p[d])==null?void 0:f.url;return(g,h)=>T(c,O,w,e)(g,u||h)},async streamMoveToTrajectoryViaJointPTP(r,a,n,o,s,i,l,c,d,u,p){var x,E;const f=await t.streamMoveToTrajectoryViaJointPTP(r,a,n,o,s,i,l,c,d,u,p),g=(e==null?void 0:e.serverIndex)??0,h=(E=(x=C["MotionApi.streamMoveToTrajectoryViaJointPTP"])==null?void 0:x[g])==null?void 0:E.url;return(U,F)=>T(f,O,w,e)(U,h||F)}}};class Rv extends Pe{deleteAllMotions(t,r){return ze(this.configuration).deleteAllMotions(t,r).then(a=>a(this.axios,this.basePath))}deleteMotion(t,r,a){return ze(this.configuration).deleteMotion(t,r,a).then(n=>n(this.axios,this.basePath))}executeTrajectory(t,r,a){return ze(this.configuration).executeTrajectory(t,r,a).then(n=>n(this.axios,this.basePath))}getMotionTrajectory(t,r,a,n,o){return ze(this.configuration).getMotionTrajectory(t,r,a,n,o).then(s=>s(this.axios,this.basePath))}getMotionTrajectorySample(t,r,a,n,o){return ze(this.configuration).getMotionTrajectorySample(t,r,a,n,o).then(s=>s(this.axios,this.basePath))}getPlannedMotion(t,r,a,n){return ze(this.configuration).getPlannedMotion(t,r,a,n).then(o=>o(this.axios,this.basePath))}getPlanningMotionGroupModels(t,r){return ze(this.configuration).getPlanningMotionGroupModels(t,r).then(a=>a(this.axios,this.basePath))}listMotions(t,r){return ze(this.configuration).listMotions(t,r).then(a=>a(this.axios,this.basePath))}loadPlannedMotion(t,r,a){return ze(this.configuration).loadPlannedMotion(t,r,a).then(n=>n(this.axios,this.basePath))}planCollisionFreePTP(t,r,a){return ze(this.configuration).planCollisionFreePTP(t,r,a).then(n=>n(this.axios,this.basePath))}planMotion(t,r,a){return ze(this.configuration).planMotion(t,r,a).then(n=>n(this.axios,this.basePath))}planTrajectory(t,r,a){return ze(this.configuration).planTrajectory(t,r,a).then(n=>n(this.axios,this.basePath))}stopExecution(t,r,a){return ze(this.configuration).stopExecution(t,r,a).then(n=>n(this.axios,this.basePath))}streamMove(t,r,a){return ze(this.configuration).streamMove(t,r,a).then(n=>n(this.axios,this.basePath))}streamMoveBackward(t,r,a,n,o,s,i){return ze(this.configuration).streamMoveBackward(t,r,a,n,o,s,i).then(l=>l(this.axios,this.basePath))}streamMoveForward(t,r,a,n,o,s,i){return ze(this.configuration).streamMoveForward(t,r,a,n,o,s,i).then(l=>l(this.axios,this.basePath))}streamMoveToTrajectoryViaJointPTP(t,r,a,n,o,s,i,l,c,d,u){return ze(this.configuration).streamMoveToTrajectoryViaJointPTP(t,r,a,n,o,s,i,l,c,d,u).then(p=>p(this.axios,this.basePath))}}const _v=function(e){return{activateAllMotionGroups:async(t,r,a={})=>{m("activateAllMotionGroups","cell",t),m("activateAllMotionGroups","controller",r);const n="/cells/{cell}/motion-groups/all".replace("{cell}",encodeURIComponent(String(t))),o=new URL(n,P);let s;e&&(s=e.baseOptions);const i={method:"POST",...s,...a},l={},c={};V(i,e),await R(l,e),r!==void 0&&(c.controller=r),_(o,c);let d=s&&s.headers?s.headers:{};return i.headers={...l,...d,...a.headers},{url:A(o),options:i}},activateMotionGroup:async(t,r,a={})=>{m("activateMotionGroup","cell",t),m("activateMotionGroup","motionGroup",r);const n="/cells/{cell}/motion-groups".replace("{cell}",encodeURIComponent(String(t))),o=new URL(n,P);let s;e&&(s=e.baseOptions);const i={method:"POST",...s,...a},l={},c={};V(i,e),await R(l,e),r!==void 0&&(c.motion_group=r),_(o,c);let d=s&&s.headers?s.headers:{};return i.headers={...l,...d,...a.headers},{url:A(o),options:i}},deactivateMotionGroup:async(t,r,a={})=>{m("deactivateMotionGroup","cell",t),m("deactivateMotionGroup","motionGroup",r);const n="/cells/{cell}/motion-groups/{motion-group}".replace("{cell}",encodeURIComponent(String(t))).replace("{motion-group}",encodeURIComponent(String(r))),o=new URL(n,P);let s;e&&(s=e.baseOptions);const i={method:"DELETE",...s,...a},l={},c={};V(i,e),await R(l,e),_(o,c);let d=s&&s.headers?s.headers:{};return i.headers={...l,...d,...a.headers},{url:A(o),options:i}},listMotionGroups:async(t,r={})=>{m("listMotionGroups","cell",t);const a="/cells/{cell}/motion-groups".replace("{cell}",encodeURIComponent(String(t))),n=new URL(a,P);let o;e&&(o=e.baseOptions);const s={method:"GET",...o,...r},i={},l={};V(s,e),await R(i,e),_(n,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},{url:A(n),options:s}}}},Ya=function(e){const t=_v(e);return{async activateAllMotionGroups(r,a,n){var l,c;const o=await t.activateAllMotionGroups(r,a,n),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["MotionGroupApi.activateAllMotionGroups"])==null?void 0:l[s])==null?void 0:c.url;return(d,u)=>T(o,O,w,e)(d,i||u)},async activateMotionGroup(r,a,n){var l,c;const o=await t.activateMotionGroup(r,a,n),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["MotionGroupApi.activateMotionGroup"])==null?void 0:l[s])==null?void 0:c.url;return(d,u)=>T(o,O,w,e)(d,i||u)},async deactivateMotionGroup(r,a,n){var l,c;const o=await t.deactivateMotionGroup(r,a,n),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["MotionGroupApi.deactivateMotionGroup"])==null?void 0:l[s])==null?void 0:c.url;return(d,u)=>T(o,O,w,e)(d,i||u)},async listMotionGroups(r,a){var i,l;const n=await t.listMotionGroups(r,a),o=(e==null?void 0:e.serverIndex)??0,s=(l=(i=C["MotionGroupApi.listMotionGroups"])==null?void 0:i[o])==null?void 0:l.url;return(c,d)=>T(n,O,w,e)(c,s||d)}}};class Av extends Pe{activateAllMotionGroups(t,r,a){return Ya(this.configuration).activateAllMotionGroups(t,r,a).then(n=>n(this.axios,this.basePath))}activateMotionGroup(t,r,a){return Ya(this.configuration).activateMotionGroup(t,r,a).then(n=>n(this.axios,this.basePath))}deactivateMotionGroup(t,r,a){return Ya(this.configuration).deactivateMotionGroup(t,r,a).then(n=>n(this.axios,this.basePath))}listMotionGroups(t,r){return Ya(this.configuration).listMotionGroups(t,r).then(a=>a(this.axios,this.basePath))}}const Tv=function(e){return{getActivePayload:async(t,r,a={})=>{m("getActivePayload","cell",t),m("getActivePayload","motionGroup",r);const n="/cells/{cell}/motion-groups/{motion-group}/payloads/current".replace("{cell}",encodeURIComponent(String(t))).replace("{motion-group}",encodeURIComponent(String(r))),o=new URL(n,P);let s;e&&(s=e.baseOptions);const i={method:"GET",...s,...a},l={},c={};V(i,e),await R(l,e),_(o,c);let d=s&&s.headers?s.headers:{};return i.headers={...l,...d,...a.headers},{url:A(o),options:i}},getActiveTcp:async(t,r,a,n={})=>{m("getActiveTcp","cell",t),m("getActiveTcp","motionGroup",r);const o="/cells/{cell}/motion-groups/{motion-group}/tcps/current".replace("{cell}",encodeURIComponent(String(t))).replace("{motion-group}",encodeURIComponent(String(r))),s=new URL(o,P);let i;e&&(i=e.baseOptions);const l={method:"GET",...i,...n},c={},d={};V(l,e),await R(c,e),a!==void 0&&(d.rotation_type=a),_(s,d);let u=i&&i.headers?i.headers:{};return l.headers={...c,...u,...n.headers},{url:A(s),options:l}},getCurrentMotionGroupState:async(t,r,a,n,o={})=>{m("getCurrentMotionGroupState","cell",t),m("getCurrentMotionGroupState","motionGroup",r);const s="/cells/{cell}/motion-groups/{motion-group}/state".replace("{cell}",encodeURIComponent(String(t))).replace("{motion-group}",encodeURIComponent(String(r))),i=new URL(s,P);let l;e&&(l=e.baseOptions);const c={method:"GET",...l,...o},d={},u={};V(c,e),await R(d,e),a!==void 0&&(u.tcp=a),n!==void 0&&(u.response_coordinate_system=n),_(i,u);let p=l&&l.headers?l.headers:{};return c.headers={...d,...p,...o.headers},{url:A(i),options:c}},getInfoCapabilities:async(t,r,a={})=>{m("getInfoCapabilities","cell",t),m("getInfoCapabilities","motionGroup",r);const n="/cells/{cell}/motion-groups/{motion-group}/info-capabilities".replace("{cell}",encodeURIComponent(String(t))).replace("{motion-group}",encodeURIComponent(String(r))),o=new URL(n,P);let s;e&&(s=e.baseOptions);const i={method:"GET",...s,...a},l={},c={};V(i,e),await R(l,e),_(o,c);let d=s&&s.headers?s.headers:{};return i.headers={...l,...d,...a.headers},{url:A(o),options:i}},getMotionGroupSpecification:async(t,r,a={})=>{m("getMotionGroupSpecification","cell",t),m("getMotionGroupSpecification","motionGroup",r);const n="/cells/{cell}/motion-groups/{motion-group}/specification".replace("{cell}",encodeURIComponent(String(t))).replace("{motion-group}",encodeURIComponent(String(r))),o=new URL(n,P);let s;e&&(s=e.baseOptions);const i={method:"GET",...s,...a},l={},c={};V(i,e),await R(l,e),_(o,c);let d=s&&s.headers?s.headers:{};return i.headers={...l,...d,...a.headers},{url:A(o),options:i}},getMounting:async(t,r,a={})=>{m("getMounting","cell",t),m("getMounting","motionGroup",r);const n="/cells/{cell}/motion-groups/{motion-group}/mounting".replace("{cell}",encodeURIComponent(String(t))).replace("{motion-group}",encodeURIComponent(String(r))),o=new URL(n,P);let s;e&&(s=e.baseOptions);const i={method:"GET",...s,...a},l={},c={};V(i,e),await R(l,e),_(o,c);let d=s&&s.headers?s.headers:{};return i.headers={...l,...d,...a.headers},{url:A(o),options:i}},getOptimizerConfiguration:async(t,r,a,n={})=>{m("getOptimizerConfiguration","cell",t),m("getOptimizerConfiguration","motionGroup",r);const o="/cells/{cell}/motion-groups/{motion-group}/optimizer-setup".replace("{cell}",encodeURIComponent(String(t))).replace("{motion-group}",encodeURIComponent(String(r))),s=new URL(o,P);let i;e&&(i=e.baseOptions);const l={method:"GET",...i,...n},c={},d={};V(l,e),await R(c,e),a!==void 0&&(d.tcp=a),_(s,d);let u=i&&i.headers?i.headers:{};return l.headers={...c,...u,...n.headers},{url:A(s),options:l}},getSafetySetup:async(t,r,a={})=>{m("getSafetySetup","cell",t),m("getSafetySetup","motionGroup",r);const n="/cells/{cell}/motion-groups/{motion-group}/safety-setup".replace("{cell}",encodeURIComponent(String(t))).replace("{motion-group}",encodeURIComponent(String(r))),o=new URL(n,P);let s;e&&(s=e.baseOptions);const i={method:"GET",...s,...a},l={},c={};V(i,e),await R(l,e),_(o,c);let d=s&&s.headers?s.headers:{};return i.headers={...l,...d,...a.headers},{url:A(o),options:i}},listPayloads:async(t,r,a={})=>{m("listPayloads","cell",t),m("listPayloads","motionGroup",r);const n="/cells/{cell}/motion-groups/{motion-group}/payloads".replace("{cell}",encodeURIComponent(String(t))).replace("{motion-group}",encodeURIComponent(String(r))),o=new URL(n,P);let s;e&&(s=e.baseOptions);const i={method:"GET",...s,...a},l={},c={};V(i,e),await R(l,e),_(o,c);let d=s&&s.headers?s.headers:{};return i.headers={...l,...d,...a.headers},{url:A(o),options:i}},listTcps:async(t,r,a,n={})=>{m("listTcps","cell",t),m("listTcps","motionGroup",r);const o="/cells/{cell}/motion-groups/{motion-group}/tcps".replace("{cell}",encodeURIComponent(String(t))).replace("{motion-group}",encodeURIComponent(String(r))),s=new URL(o,P);let i;e&&(i=e.baseOptions);const l={method:"GET",...i,...n},c={},d={};V(l,e),await R(c,e),a!==void 0&&(d.rotation_type=a),_(s,d);let u=i&&i.headers?i.headers:{};return l.headers={...c,...u,...n.headers},{url:A(s),options:l}},streamMotionGroupState:async(t,r,a,n,o,s={})=>{m("streamMotionGroupState","cell",t),m("streamMotionGroupState","motionGroup",r);const i="/cells/{cell}/motion-groups/{motion-group}/state-stream".replace("{cell}",encodeURIComponent(String(t))).replace("{motion-group}",encodeURIComponent(String(r))),l=new URL(i,P);let c;e&&(c=e.baseOptions);const d={method:"GET",...c,...s},u={},p={};V(d,e),await R(u,e),a!==void 0&&(p.response_rate=a),n!==void 0&&(p.response_coordinate_system=n),o!==void 0&&(p.tcp=o),_(l,p);let f=c&&c.headers?c.headers:{};return d.headers={...u,...f,...s.headers},{url:A(l),options:d}}}},pt=function(e){const t=Tv(e);return{async getActivePayload(r,a,n){var l,c;const o=await t.getActivePayload(r,a,n),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["MotionGroupInfosApi.getActivePayload"])==null?void 0:l[s])==null?void 0:c.url;return(d,u)=>T(o,O,w,e)(d,i||u)},async getActiveTcp(r,a,n,o){var c,d;const s=await t.getActiveTcp(r,a,n,o),i=(e==null?void 0:e.serverIndex)??0,l=(d=(c=C["MotionGroupInfosApi.getActiveTcp"])==null?void 0:c[i])==null?void 0:d.url;return(u,p)=>T(s,O,w,e)(u,l||p)},async getCurrentMotionGroupState(r,a,n,o,s){var d,u;const i=await t.getCurrentMotionGroupState(r,a,n,o,s),l=(e==null?void 0:e.serverIndex)??0,c=(u=(d=C["MotionGroupInfosApi.getCurrentMotionGroupState"])==null?void 0:d[l])==null?void 0:u.url;return(p,f)=>T(i,O,w,e)(p,c||f)},async getInfoCapabilities(r,a,n){var l,c;const o=await t.getInfoCapabilities(r,a,n),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["MotionGroupInfosApi.getInfoCapabilities"])==null?void 0:l[s])==null?void 0:c.url;return(d,u)=>T(o,O,w,e)(d,i||u)},async getMotionGroupSpecification(r,a,n){var l,c;const o=await t.getMotionGroupSpecification(r,a,n),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["MotionGroupInfosApi.getMotionGroupSpecification"])==null?void 0:l[s])==null?void 0:c.url;return(d,u)=>T(o,O,w,e)(d,i||u)},async getMounting(r,a,n){var l,c;const o=await t.getMounting(r,a,n),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["MotionGroupInfosApi.getMounting"])==null?void 0:l[s])==null?void 0:c.url;return(d,u)=>T(o,O,w,e)(d,i||u)},async getOptimizerConfiguration(r,a,n,o){var c,d;const s=await t.getOptimizerConfiguration(r,a,n,o),i=(e==null?void 0:e.serverIndex)??0,l=(d=(c=C["MotionGroupInfosApi.getOptimizerConfiguration"])==null?void 0:c[i])==null?void 0:d.url;return(u,p)=>T(s,O,w,e)(u,l||p)},async getSafetySetup(r,a,n){var l,c;const o=await t.getSafetySetup(r,a,n),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["MotionGroupInfosApi.getSafetySetup"])==null?void 0:l[s])==null?void 0:c.url;return(d,u)=>T(o,O,w,e)(d,i||u)},async listPayloads(r,a,n){var l,c;const o=await t.listPayloads(r,a,n),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["MotionGroupInfosApi.listPayloads"])==null?void 0:l[s])==null?void 0:c.url;return(d,u)=>T(o,O,w,e)(d,i||u)},async listTcps(r,a,n,o){var c,d;const s=await t.listTcps(r,a,n,o),i=(e==null?void 0:e.serverIndex)??0,l=(d=(c=C["MotionGroupInfosApi.listTcps"])==null?void 0:c[i])==null?void 0:d.url;return(u,p)=>T(s,O,w,e)(u,l||p)},async streamMotionGroupState(r,a,n,o,s,i){var u,p;const l=await t.streamMotionGroupState(r,a,n,o,s,i),c=(e==null?void 0:e.serverIndex)??0,d=(p=(u=C["MotionGroupInfosApi.streamMotionGroupState"])==null?void 0:u[c])==null?void 0:p.url;return(f,g)=>T(l,O,w,e)(f,d||g)}}};class Ev extends Pe{getActivePayload(t,r,a){return pt(this.configuration).getActivePayload(t,r,a).then(n=>n(this.axios,this.basePath))}getActiveTcp(t,r,a,n){return pt(this.configuration).getActiveTcp(t,r,a,n).then(o=>o(this.axios,this.basePath))}getCurrentMotionGroupState(t,r,a,n,o){return pt(this.configuration).getCurrentMotionGroupState(t,r,a,n,o).then(s=>s(this.axios,this.basePath))}getInfoCapabilities(t,r,a){return pt(this.configuration).getInfoCapabilities(t,r,a).then(n=>n(this.axios,this.basePath))}getMotionGroupSpecification(t,r,a){return pt(this.configuration).getMotionGroupSpecification(t,r,a).then(n=>n(this.axios,this.basePath))}getMounting(t,r,a){return pt(this.configuration).getMounting(t,r,a).then(n=>n(this.axios,this.basePath))}getOptimizerConfiguration(t,r,a,n){return pt(this.configuration).getOptimizerConfiguration(t,r,a,n).then(o=>o(this.axios,this.basePath))}getSafetySetup(t,r,a){return pt(this.configuration).getSafetySetup(t,r,a).then(n=>n(this.axios,this.basePath))}listPayloads(t,r,a){return pt(this.configuration).listPayloads(t,r,a).then(n=>n(this.axios,this.basePath))}listTcps(t,r,a,n){return pt(this.configuration).listTcps(t,r,a,n).then(o=>o(this.axios,this.basePath))}streamMotionGroupState(t,r,a,n,o,s){return pt(this.configuration).streamMotionGroupState(t,r,a,n,o,s).then(i=>i(this.axios,this.basePath))}}const Iv=function(e){return{directionJogging:async(t,r,a={})=>{m("directionJogging","cell",t),m("directionJogging","directionJoggingRequest",r);const n="/cells/{cell}/motion-groups/move-tcp".replace("{cell}",encodeURIComponent(String(t))),o=new URL(n,P);let s;e&&(s=e.baseOptions);const i={method:"GET",...s,...a},l={},c={};V(i,e),await R(l,e),l["Content-Type"]="application/json",_(o,c);let d=s&&s.headers?s.headers:{};return i.headers={...l,...d,...a.headers},i.data=se(r,i,e),{url:A(o),options:i}},getJoggingCapabilities:async(t,r,a={})=>{m("getJoggingCapabilities","cell",t),m("getJoggingCapabilities","motionGroup",r);const n="/cells/{cell}/motion-groups/{motion-group}/jogging-capabilities".replace("{cell}",encodeURIComponent(String(t))).replace("{motion-group}",encodeURIComponent(String(r))),o=new URL(n,P);let s;e&&(s=e.baseOptions);const i={method:"GET",...s,...a},l={},c={};V(i,e),await R(l,e),_(o,c);let d=s&&s.headers?s.headers:{};return i.headers={...l,...d,...a.headers},{url:A(o),options:i}},jointJogging:async(t,r,a={})=>{m("jointJogging","cell",t),m("jointJogging","jointJoggingRequest",r);const n="/cells/{cell}/motion-groups/move-joint".replace("{cell}",encodeURIComponent(String(t))),o=new URL(n,P);let s;e&&(s=e.baseOptions);const i={method:"GET",...s,...a},l={},c={};V(i,e),await R(l,e),l["Content-Type"]="application/json",_(o,c);let d=s&&s.headers?s.headers:{};return i.headers={...l,...d,...a.headers},i.data=se(r,i,e),{url:A(o),options:i}},stopJogging:async(t,r,a={})=>{m("stopJogging","cell",t),m("stopJogging","motionGroup",r);const n="/cells/{cell}/motion-groups/{motion-group}/stop".replace("{cell}",encodeURIComponent(String(t))).replace("{motion-group}",encodeURIComponent(String(r))),o=new URL(n,P);let s;e&&(s=e.baseOptions);const i={method:"PUT",...s,...a},l={},c={};V(i,e),await R(l,e),_(o,c);let d=s&&s.headers?s.headers:{};return i.headers={...l,...d,...a.headers},{url:A(o),options:i}}}},Xa=function(e){const t=Iv(e);return{async directionJogging(r,a,n){var l,c;const o=await t.directionJogging(r,a,n),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["MotionGroupJoggingApi.directionJogging"])==null?void 0:l[s])==null?void 0:c.url;return(d,u)=>T(o,O,w,e)(d,i||u)},async getJoggingCapabilities(r,a,n){var l,c;const o=await t.getJoggingCapabilities(r,a,n),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["MotionGroupJoggingApi.getJoggingCapabilities"])==null?void 0:l[s])==null?void 0:c.url;return(d,u)=>T(o,O,w,e)(d,i||u)},async jointJogging(r,a,n){var l,c;const o=await t.jointJogging(r,a,n),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["MotionGroupJoggingApi.jointJogging"])==null?void 0:l[s])==null?void 0:c.url;return(d,u)=>T(o,O,w,e)(d,i||u)},async stopJogging(r,a,n){var l,c;const o=await t.stopJogging(r,a,n),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["MotionGroupJoggingApi.stopJogging"])==null?void 0:l[s])==null?void 0:c.url;return(d,u)=>T(o,O,w,e)(d,i||u)}}};class Mv extends Pe{directionJogging(t,r,a){return Xa(this.configuration).directionJogging(t,r,a).then(n=>n(this.axios,this.basePath))}getJoggingCapabilities(t,r,a){return Xa(this.configuration).getJoggingCapabilities(t,r,a).then(n=>n(this.axios,this.basePath))}jointJogging(t,r,a){return Xa(this.configuration).jointJogging(t,r,a).then(n=>n(this.axios,this.basePath))}stopJogging(t,r,a){return Xa(this.configuration).stopJogging(t,r,a).then(n=>n(this.axios,this.basePath))}}const jv=function(e){return{calculateAllInverseKinematic:async(t,r,a,n={})=>{m("calculateAllInverseKinematic","cell",t),m("calculateAllInverseKinematic","motionGroup",r),m("calculateAllInverseKinematic","allJointPositionsRequest",a);const o="/cells/{cell}/motion-groups/{motion-group}/kinematic/calculate-all-joint-positions".replace("{cell}",encodeURIComponent(String(t))).replace("{motion-group}",encodeURIComponent(String(r))),s=new URL(o,P);let i;e&&(i=e.baseOptions);const l={method:"POST",...i,...n},c={},d={};V(l,e),await R(c,e),c["Content-Type"]="application/json",_(s,d);let u=i&&i.headers?i.headers:{};return l.headers={...c,...u,...n.headers},l.data=se(a,l,e),{url:A(s),options:l}},calculateForwardKinematic:async(t,r,a,n={})=>{m("calculateForwardKinematic","cell",t),m("calculateForwardKinematic","motionGroup",r),m("calculateForwardKinematic","tcpPoseRequest",a);const o="/cells/{cell}/motion-groups/{motion-group}/kinematic/calculate-tcp-pose".replace("{cell}",encodeURIComponent(String(t))).replace("{motion-group}",encodeURIComponent(String(r))),s=new URL(o,P);let i;e&&(i=e.baseOptions);const l={method:"POST",...i,...n},c={},d={};V(l,e),await R(c,e),c["Content-Type"]="application/json",_(s,d);let u=i&&i.headers?i.headers:{};return l.headers={...c,...u,...n.headers},l.data=se(a,l,e),{url:A(s),options:l}},calculateInverseKinematic:async(t,r,a,n={})=>{m("calculateInverseKinematic","cell",t),m("calculateInverseKinematic","motionGroup",r),m("calculateInverseKinematic","jointPositionRequest",a);const o="/cells/{cell}/motion-groups/{motion-group}/kinematic/calculate-joint-position".replace("{cell}",encodeURIComponent(String(t))).replace("{motion-group}",encodeURIComponent(String(r))),s=new URL(o,P);let i;e&&(i=e.baseOptions);const l={method:"POST",...i,...n},c={},d={};V(l,e),await R(c,e),c["Content-Type"]="application/json",_(s,d);let u=i&&i.headers?i.headers:{};return l.headers={...c,...u,...n.headers},l.data=se(a,l,e),{url:A(s),options:l}},getKinematicCapabilities:async(t,r,a={})=>{m("getKinematicCapabilities","cell",t),m("getKinematicCapabilities","motionGroup",r);const n="/cells/{cell}/motion-groups/{motion-group}/kinematic-capabilities".replace("{cell}",encodeURIComponent(String(t))).replace("{motion-group}",encodeURIComponent(String(r))),o=new URL(n,P);let s;e&&(s=e.baseOptions);const i={method:"GET",...s,...a},l={},c={};V(i,e),await R(l,e),_(o,c);let d=s&&s.headers?s.headers:{};return i.headers={...l,...d,...a.headers},{url:A(o),options:i}}}},Za=function(e){const t=jv(e);return{async calculateAllInverseKinematic(r,a,n,o){var c,d;const s=await t.calculateAllInverseKinematic(r,a,n,o),i=(e==null?void 0:e.serverIndex)??0,l=(d=(c=C["MotionGroupKinematicApi.calculateAllInverseKinematic"])==null?void 0:c[i])==null?void 0:d.url;return(u,p)=>T(s,O,w,e)(u,l||p)},async calculateForwardKinematic(r,a,n,o){var c,d;const s=await t.calculateForwardKinematic(r,a,n,o),i=(e==null?void 0:e.serverIndex)??0,l=(d=(c=C["MotionGroupKinematicApi.calculateForwardKinematic"])==null?void 0:c[i])==null?void 0:d.url;return(u,p)=>T(s,O,w,e)(u,l||p)},async calculateInverseKinematic(r,a,n,o){var c,d;const s=await t.calculateInverseKinematic(r,a,n,o),i=(e==null?void 0:e.serverIndex)??0,l=(d=(c=C["MotionGroupKinematicApi.calculateInverseKinematic"])==null?void 0:c[i])==null?void 0:d.url;return(u,p)=>T(s,O,w,e)(u,l||p)},async getKinematicCapabilities(r,a,n){var l,c;const o=await t.getKinematicCapabilities(r,a,n),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["MotionGroupKinematicApi.getKinematicCapabilities"])==null?void 0:l[s])==null?void 0:c.url;return(d,u)=>T(o,O,w,e)(d,i||u)}}};class $v extends Pe{calculateAllInverseKinematic(t,r,a,n){return Za(this.configuration).calculateAllInverseKinematic(t,r,a,n).then(o=>o(this.axios,this.basePath))}calculateForwardKinematic(t,r,a,n){return Za(this.configuration).calculateForwardKinematic(t,r,a,n).then(o=>o(this.axios,this.basePath))}calculateInverseKinematic(t,r,a,n){return Za(this.configuration).calculateInverseKinematic(t,r,a,n).then(o=>o(this.axios,this.basePath))}getKinematicCapabilities(t,r,a){return Za(this.configuration).getKinematicCapabilities(t,r,a).then(n=>n(this.axios,this.basePath))}}const Uv=function(e){return{createProgramRunner:async(t,r,a={})=>{m("createProgramRunner","cell",t),m("createProgramRunner","request",r);const n="/cells/{cell}/programs/runners".replace("{cell}",encodeURIComponent(String(t))),o=new URL(n,P);let s;e&&(s=e.baseOptions);const i={method:"POST",...s,...a},l={},c={};V(i,e),await R(l,e),l["Content-Type"]="text/plain",_(o,c);let d=s&&s.headers?s.headers:{};return i.headers={...l,...d,...a.headers},i.data=se(r,i,e),{url:A(o),options:i}},executeProgram:async(t,r,a={})=>{m("executeProgram","cell",t),m("executeProgram","codeWithArguments",r);const n="/cells/{cell}/programs/execute".replace("{cell}",encodeURIComponent(String(t))),o=new URL(n,P);let s;e&&(s=e.baseOptions);const i={method:"POST",...s,...a},l={},c={};V(i,e),await R(l,e),l["Content-Type"]="application/json",_(o,c);let d=s&&s.headers?s.headers:{};return i.headers={...l,...d,...a.headers},i.data=se(r,i,e),{url:A(o),options:i}},getProgramRunner:async(t,r,a={})=>{m("getProgramRunner","cell",t),m("getProgramRunner","runner",r);const n="/cells/{cell}/programs/runners/{runner}".replace("{cell}",encodeURIComponent(String(t))).replace("{runner}",encodeURIComponent(String(r))),o=new URL(n,P);let s;e&&(s=e.baseOptions);const i={method:"GET",...s,...a},l={},c={};V(i,e),await R(l,e),_(o,c);let d=s&&s.headers?s.headers:{};return i.headers={...l,...d,...a.headers},{url:A(o),options:i}},listProgramRunners:async(t,r={})=>{m("listProgramRunners","cell",t);const a="/cells/{cell}/programs/runners".replace("{cell}",encodeURIComponent(String(t))),n=new URL(a,P);let o;e&&(o=e.baseOptions);const s={method:"GET",...o,...r},i={},l={};V(s,e),await R(i,e),_(n,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},{url:A(n),options:s}},migrateProgram:async(t,r,a={})=>{m("migrateProgram","cell",t),m("migrateProgram","request1",r);const n="/cells/{cell}/programs/migrate".replace("{cell}",encodeURIComponent(String(t))),o=new URL(n,P);let s;e&&(s=e.baseOptions);const i={method:"POST",...s,...a},l={},c={};V(i,e),await R(l,e),l["Content-Type"]="text/plain",_(o,c);let d=s&&s.headers?s.headers:{};return i.headers={...l,...d,...a.headers},i.data=se(r,i,e),{url:A(o),options:i}},planProgram:async(t,r,a,n={})=>{m("planProgram","cell",t),m("planProgram","request",r);const o="/cells/{cell}/programs/plan".replace("{cell}",encodeURIComponent(String(t))),s=new URL(o,P);let i;e&&(i=e.baseOptions);const l={method:"POST",...i,...n},c={},d={};V(l,e),await R(c,e),a!==void 0&&(d.identifier=a),c["Content-Type"]="text/plain",_(s,d);let u=i&&i.headers?i.headers:{};return l.headers={...c,...u,...n.headers},l.data=se(r,l,e),{url:A(s),options:l}},stopAllProgramRunner:async(t,r={})=>{m("stopAllProgramRunner","cell",t);const a="/cells/{cell}/programs/runners/stop".replace("{cell}",encodeURIComponent(String(t))),n=new URL(a,P);let o;e&&(o=e.baseOptions);const s={method:"POST",...o,...r},i={},l={};V(s,e),await R(i,e),_(n,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},{url:A(n),options:s}},stopProgramRunner:async(t,r,a={})=>{m("stopProgramRunner","cell",t),m("stopProgramRunner","runner",r);const n="/cells/{cell}/programs/runners/{runner}/stop".replace("{cell}",encodeURIComponent(String(t))).replace("{runner}",encodeURIComponent(String(r))),o=new URL(n,P);let s;e&&(s=e.baseOptions);const i={method:"POST",...s,...a},l={},c={};V(i,e),await R(l,e),_(o,c);let d=s&&s.headers?s.headers:{};return i.headers={...l,...d,...a.headers},{url:A(o),options:i}}}},Jt=function(e){const t=Uv(e);return{async createProgramRunner(r,a,n){var l,c;const o=await t.createProgramRunner(r,a,n),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["ProgramApi.createProgramRunner"])==null?void 0:l[s])==null?void 0:c.url;return(d,u)=>T(o,O,w,e)(d,i||u)},async executeProgram(r,a,n){var l,c;const o=await t.executeProgram(r,a,n),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["ProgramApi.executeProgram"])==null?void 0:l[s])==null?void 0:c.url;return(d,u)=>T(o,O,w,e)(d,i||u)},async getProgramRunner(r,a,n){var l,c;const o=await t.getProgramRunner(r,a,n),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["ProgramApi.getProgramRunner"])==null?void 0:l[s])==null?void 0:c.url;return(d,u)=>T(o,O,w,e)(d,i||u)},async listProgramRunners(r,a){var i,l;const n=await t.listProgramRunners(r,a),o=(e==null?void 0:e.serverIndex)??0,s=(l=(i=C["ProgramApi.listProgramRunners"])==null?void 0:i[o])==null?void 0:l.url;return(c,d)=>T(n,O,w,e)(c,s||d)},async migrateProgram(r,a,n){var l,c;const o=await t.migrateProgram(r,a,n),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["ProgramApi.migrateProgram"])==null?void 0:l[s])==null?void 0:c.url;return(d,u)=>T(o,O,w,e)(d,i||u)},async planProgram(r,a,n,o){var c,d;const s=await t.planProgram(r,a,n,o),i=(e==null?void 0:e.serverIndex)??0,l=(d=(c=C["ProgramApi.planProgram"])==null?void 0:c[i])==null?void 0:d.url;return(u,p)=>T(s,O,w,e)(u,l||p)},async stopAllProgramRunner(r,a){var i,l;const n=await t.stopAllProgramRunner(r,a),o=(e==null?void 0:e.serverIndex)??0,s=(l=(i=C["ProgramApi.stopAllProgramRunner"])==null?void 0:i[o])==null?void 0:l.url;return(c,d)=>T(n,O,w,e)(c,s||d)},async stopProgramRunner(r,a,n){var l,c;const o=await t.stopProgramRunner(r,a,n),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["ProgramApi.stopProgramRunner"])==null?void 0:l[s])==null?void 0:c.url;return(d,u)=>T(o,O,w,e)(d,i||u)}}};class Lv extends Pe{createProgramRunner(t,r,a){return Jt(this.configuration).createProgramRunner(t,r,a).then(n=>n(this.axios,this.basePath))}executeProgram(t,r,a){return Jt(this.configuration).executeProgram(t,r,a).then(n=>n(this.axios,this.basePath))}getProgramRunner(t,r,a){return Jt(this.configuration).getProgramRunner(t,r,a).then(n=>n(this.axios,this.basePath))}listProgramRunners(t,r){return Jt(this.configuration).listProgramRunners(t,r).then(a=>a(this.axios,this.basePath))}migrateProgram(t,r,a){return Jt(this.configuration).migrateProgram(t,r,a).then(n=>n(this.axios,this.basePath))}planProgram(t,r,a,n){return Jt(this.configuration).planProgram(t,r,a,n).then(o=>o(this.axios,this.basePath))}stopAllProgramRunner(t,r){return Jt(this.configuration).stopAllProgramRunner(t,r).then(a=>a(this.axios,this.basePath))}stopProgramRunner(t,r,a){return Jt(this.configuration).stopProgramRunner(t,r,a).then(n=>n(this.axios,this.basePath))}}const kv=function(e){return{clearProgramsValues:async(t,r={})=>{m("clearProgramsValues","cell",t);const a="/cells/{cell}/programs/values".replace("{cell}",encodeURIComponent(String(t))),n=new URL(a,P);let o;e&&(o=e.baseOptions);const s={method:"DELETE",...o,...r},i={},l={};V(s,e),await R(i,e),_(n,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},{url:A(n),options:s}},createProgramsValue:async(t,r,a={})=>{m("createProgramsValue","cell",t),m("createProgramsValue","requestBody",r);const n="/cells/{cell}/programs/values".replace("{cell}",encodeURIComponent(String(t))),o=new URL(n,P);let s;e&&(s=e.baseOptions);const i={method:"POST",...s,...a},l={},c={};V(i,e),await R(l,e),l["Content-Type"]="application/json",_(o,c);let d=s&&s.headers?s.headers:{};return i.headers={...l,...d,...a.headers},i.data=se(r,i,e),{url:A(o),options:i}},deleteProgramValue:async(t,r,a={})=>{m("deleteProgramValue","cell",t),m("deleteProgramValue","key",r);const n="/cells/{cell}/programs/values/{key}".replace("{cell}",encodeURIComponent(String(t))).replace("{key}",encodeURIComponent(String(r))),o=new URL(n,P);let s;e&&(s=e.baseOptions);const i={method:"DELETE",...s,...a},l={},c={};V(i,e),await R(l,e),_(o,c);let d=s&&s.headers?s.headers:{};return i.headers={...l,...d,...a.headers},{url:A(o),options:i}},getProgramValue:async(t,r,a={})=>{m("getProgramValue","cell",t),m("getProgramValue","key",r);const n="/cells/{cell}/programs/values/{key}".replace("{cell}",encodeURIComponent(String(t))).replace("{key}",encodeURIComponent(String(r))),o=new URL(n,P);let s;e&&(s=e.baseOptions);const i={method:"GET",...s,...a},l={},c={};V(i,e),await R(l,e),_(o,c);let d=s&&s.headers?s.headers:{};return i.headers={...l,...d,...a.headers},{url:A(o),options:i}},listProgramsValues:async(t,r={})=>{m("listProgramsValues","cell",t);const a="/cells/{cell}/programs/values".replace("{cell}",encodeURIComponent(String(t))),n=new URL(a,P);let o;e&&(o=e.baseOptions);const s={method:"GET",...o,...r},i={},l={};V(s,e),await R(i,e),_(n,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},{url:A(n),options:s}},updateProgramValue:async(t,r,a,n={})=>{m("updateProgramValue","cell",t),m("updateProgramValue","key",r),m("updateProgramValue","value",a);const o="/cells/{cell}/programs/values/{key}".replace("{cell}",encodeURIComponent(String(t))).replace("{key}",encodeURIComponent(String(r))),s=new URL(o,P);let i;e&&(i=e.baseOptions);const l={method:"PUT",...i,...n},c={},d={};V(l,e),await R(c,e),c["Content-Type"]="application/json",_(s,d);let u=i&&i.headers?i.headers:{};return l.headers={...c,...u,...n.headers},l.data=se(a,l,e),{url:A(s),options:l}}}},jr=function(e){const t=kv(e);return{async clearProgramsValues(r,a){var i,l;const n=await t.clearProgramsValues(r,a),o=(e==null?void 0:e.serverIndex)??0,s=(l=(i=C["ProgramValuesApi.clearProgramsValues"])==null?void 0:i[o])==null?void 0:l.url;return(c,d)=>T(n,O,w,e)(c,s||d)},async createProgramsValue(r,a,n){var l,c;const o=await t.createProgramsValue(r,a,n),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["ProgramValuesApi.createProgramsValue"])==null?void 0:l[s])==null?void 0:c.url;return(d,u)=>T(o,O,w,e)(d,i||u)},async deleteProgramValue(r,a,n){var l,c;const o=await t.deleteProgramValue(r,a,n),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["ProgramValuesApi.deleteProgramValue"])==null?void 0:l[s])==null?void 0:c.url;return(d,u)=>T(o,O,w,e)(d,i||u)},async getProgramValue(r,a,n){var l,c;const o=await t.getProgramValue(r,a,n),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["ProgramValuesApi.getProgramValue"])==null?void 0:l[s])==null?void 0:c.url;return(d,u)=>T(o,O,w,e)(d,i||u)},async listProgramsValues(r,a){var i,l;const n=await t.listProgramsValues(r,a),o=(e==null?void 0:e.serverIndex)??0,s=(l=(i=C["ProgramValuesApi.listProgramsValues"])==null?void 0:i[o])==null?void 0:l.url;return(c,d)=>T(n,O,w,e)(c,s||d)},async updateProgramValue(r,a,n,o){var c,d;const s=await t.updateProgramValue(r,a,n,o),i=(e==null?void 0:e.serverIndex)??0,l=(d=(c=C["ProgramValuesApi.updateProgramValue"])==null?void 0:c[i])==null?void 0:d.url;return(u,p)=>T(s,O,w,e)(u,l||p)}}};class Bv extends Pe{clearProgramsValues(t,r){return jr(this.configuration).clearProgramsValues(t,r).then(a=>a(this.axios,this.basePath))}createProgramsValue(t,r,a){return jr(this.configuration).createProgramsValue(t,r,a).then(n=>n(this.axios,this.basePath))}deleteProgramValue(t,r,a){return jr(this.configuration).deleteProgramValue(t,r,a).then(n=>n(this.axios,this.basePath))}getProgramValue(t,r,a){return jr(this.configuration).getProgramValue(t,r,a).then(n=>n(this.axios,this.basePath))}listProgramsValues(t,r){return jr(this.configuration).listProgramsValues(t,r).then(a=>a(this.axios,this.basePath))}updateProgramValue(t,r,a,n){return jr(this.configuration).updateProgramValue(t,r,a,n).then(o=>o(this.axios,this.basePath))}}const Fv=function(e){return{deleteStoredCollider:async(t,r,a={})=>{m("deleteStoredCollider","cell",t),m("deleteStoredCollider","collider",r);const n="/cells/{cell}/store/collision/colliders/{collider}".replace("{cell}",encodeURIComponent(String(t))).replace("{collider}",encodeURIComponent(String(r))),o=new URL(n,P);let s;e&&(s=e.baseOptions);const i={method:"DELETE",...s,...a},l={},c={};V(i,e),await R(l,e),_(o,c);let d=s&&s.headers?s.headers:{};return i.headers={...l,...d,...a.headers},{url:A(o),options:i}},deleteStoredCollisionLinkChain:async(t,r,a={})=>{m("deleteStoredCollisionLinkChain","cell",t),m("deleteStoredCollisionLinkChain","linkChain",r);const n="/cells/{cell}/store/collision/link-chains/{link-chain}".replace("{cell}",encodeURIComponent(String(t))).replace("{link-chain}",encodeURIComponent(String(r))),o=new URL(n,P);let s;e&&(s=e.baseOptions);const i={method:"DELETE",...s,...a},l={},c={};V(i,e),await R(l,e),_(o,c);let d=s&&s.headers?s.headers:{};return i.headers={...l,...d,...a.headers},{url:A(o),options:i}},deleteStoredCollisionTool:async(t,r,a={})=>{m("deleteStoredCollisionTool","cell",t),m("deleteStoredCollisionTool","tool",r);const n="/cells/{cell}/store/collision/tools/{tool}".replace("{cell}",encodeURIComponent(String(t))).replace("{tool}",encodeURIComponent(String(r))),o=new URL(n,P);let s;e&&(s=e.baseOptions);const i={method:"DELETE",...s,...a},l={},c={};V(i,e),await R(l,e),_(o,c);let d=s&&s.headers?s.headers:{};return i.headers={...l,...d,...a.headers},{url:A(o),options:i}},getDefaultLinkChain:async(t,r,a={})=>{m("getDefaultLinkChain","cell",t),m("getDefaultLinkChain","motionGroupModel",r);const n="/cells/{cell}/store/collision/default-link-chains/{motion-group-model}".replace("{cell}",encodeURIComponent(String(t))).replace("{motion-group-model}",encodeURIComponent(String(r))),o=new URL(n,P);let s;e&&(s=e.baseOptions);const i={method:"GET",...s,...a},l={},c={};V(i,e),await R(l,e),_(o,c);let d=s&&s.headers?s.headers:{};return i.headers={...l,...d,...a.headers},{url:A(o),options:i}},getStoredCollider:async(t,r,a={})=>{m("getStoredCollider","cell",t),m("getStoredCollider","collider",r);const n="/cells/{cell}/store/collision/colliders/{collider}".replace("{cell}",encodeURIComponent(String(t))).replace("{collider}",encodeURIComponent(String(r))),o=new URL(n,P);let s;e&&(s=e.baseOptions);const i={method:"GET",...s,...a},l={},c={};V(i,e),await R(l,e),_(o,c);let d=s&&s.headers?s.headers:{};return i.headers={...l,...d,...a.headers},{url:A(o),options:i}},getStoredCollisionLinkChain:async(t,r,a={})=>{m("getStoredCollisionLinkChain","cell",t),m("getStoredCollisionLinkChain","linkChain",r);const n="/cells/{cell}/store/collision/link-chains/{link-chain}".replace("{cell}",encodeURIComponent(String(t))).replace("{link-chain}",encodeURIComponent(String(r))),o=new URL(n,P);let s;e&&(s=e.baseOptions);const i={method:"GET",...s,...a},l={},c={};V(i,e),await R(l,e),_(o,c);let d=s&&s.headers?s.headers:{};return i.headers={...l,...d,...a.headers},{url:A(o),options:i}},getStoredCollisionTool:async(t,r,a={})=>{m("getStoredCollisionTool","cell",t),m("getStoredCollisionTool","tool",r);const n="/cells/{cell}/store/collision/tools/{tool}".replace("{cell}",encodeURIComponent(String(t))).replace("{tool}",encodeURIComponent(String(r))),o=new URL(n,P);let s;e&&(s=e.baseOptions);const i={method:"GET",...s,...a},l={},c={};V(i,e),await R(l,e),_(o,c);let d=s&&s.headers?s.headers:{};return i.headers={...l,...d,...a.headers},{url:A(o),options:i}},listCollisionLinkChains:async(t,r={})=>{m("listCollisionLinkChains","cell",t);const a="/cells/{cell}/store/collision/link-chains".replace("{cell}",encodeURIComponent(String(t))),n=new URL(a,P);let o;e&&(o=e.baseOptions);const s={method:"GET",...o,...r},i={},l={};V(s,e),await R(i,e),_(n,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},{url:A(n),options:s}},listStoredColliders:async(t,r={})=>{m("listStoredColliders","cell",t);const a="/cells/{cell}/store/collision/colliders".replace("{cell}",encodeURIComponent(String(t))),n=new URL(a,P);let o;e&&(o=e.baseOptions);const s={method:"GET",...o,...r},i={},l={};V(s,e),await R(i,e),_(n,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},{url:A(n),options:s}},listStoredCollisionTools:async(t,r={})=>{m("listStoredCollisionTools","cell",t);const a="/cells/{cell}/store/collision/tools".replace("{cell}",encodeURIComponent(String(t))),n=new URL(a,P);let o;e&&(o=e.baseOptions);const s={method:"GET",...o,...r},i={},l={};V(s,e),await R(i,e),_(n,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},{url:A(n),options:s}},storeCollider:async(t,r,a,n={})=>{m("storeCollider","cell",t),m("storeCollider","collider",r),m("storeCollider","collider2",a);const o="/cells/{cell}/store/collision/colliders/{collider}".replace("{cell}",encodeURIComponent(String(t))).replace("{collider}",encodeURIComponent(String(r))),s=new URL(o,P);let i;e&&(i=e.baseOptions);const l={method:"PUT",...i,...n},c={},d={};V(l,e),await R(c,e),c["Content-Type"]="application/json",_(s,d);let u=i&&i.headers?i.headers:{};return l.headers={...c,...u,...n.headers},l.data=se(a,l,e),{url:A(s),options:l}},storeCollisionLinkChain:async(t,r,a,n={})=>{m("storeCollisionLinkChain","cell",t),m("storeCollisionLinkChain","linkChain",r),m("storeCollisionLinkChain","collider",a);const o="/cells/{cell}/store/collision/link-chains/{link-chain}".replace("{cell}",encodeURIComponent(String(t))).replace("{link-chain}",encodeURIComponent(String(r))),s=new URL(o,P);let i;e&&(i=e.baseOptions);const l={method:"PUT",...i,...n},c={},d={};V(l,e),await R(c,e),c["Content-Type"]="application/json",_(s,d);let u=i&&i.headers?i.headers:{};return l.headers={...c,...u,...n.headers},l.data=se(a,l,e),{url:A(s),options:l}},storeCollisionTool:async(t,r,a,n={})=>{m("storeCollisionTool","cell",t),m("storeCollisionTool","tool",r),m("storeCollisionTool","requestBody",a);const o="/cells/{cell}/store/collision/tools/{tool}".replace("{cell}",encodeURIComponent(String(t))).replace("{tool}",encodeURIComponent(String(r))),s=new URL(o,P);let i;e&&(i=e.baseOptions);const l={method:"PUT",...i,...n},c={},d={};V(l,e),await R(c,e),c["Content-Type"]="application/json",_(s,d);let u=i&&i.headers?i.headers:{};return l.headers={...c,...u,...n.headers},l.data=se(a,l,e),{url:A(s),options:l}}}},tt=function(e){const t=Fv(e);return{async deleteStoredCollider(r,a,n){var l,c;const o=await t.deleteStoredCollider(r,a,n),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["StoreCollisionComponentsApi.deleteStoredCollider"])==null?void 0:l[s])==null?void 0:c.url;return(d,u)=>T(o,O,w,e)(d,i||u)},async deleteStoredCollisionLinkChain(r,a,n){var l,c;const o=await t.deleteStoredCollisionLinkChain(r,a,n),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["StoreCollisionComponentsApi.deleteStoredCollisionLinkChain"])==null?void 0:l[s])==null?void 0:c.url;return(d,u)=>T(o,O,w,e)(d,i||u)},async deleteStoredCollisionTool(r,a,n){var l,c;const o=await t.deleteStoredCollisionTool(r,a,n),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["StoreCollisionComponentsApi.deleteStoredCollisionTool"])==null?void 0:l[s])==null?void 0:c.url;return(d,u)=>T(o,O,w,e)(d,i||u)},async getDefaultLinkChain(r,a,n){var l,c;const o=await t.getDefaultLinkChain(r,a,n),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["StoreCollisionComponentsApi.getDefaultLinkChain"])==null?void 0:l[s])==null?void 0:c.url;return(d,u)=>T(o,O,w,e)(d,i||u)},async getStoredCollider(r,a,n){var l,c;const o=await t.getStoredCollider(r,a,n),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["StoreCollisionComponentsApi.getStoredCollider"])==null?void 0:l[s])==null?void 0:c.url;return(d,u)=>T(o,O,w,e)(d,i||u)},async getStoredCollisionLinkChain(r,a,n){var l,c;const o=await t.getStoredCollisionLinkChain(r,a,n),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["StoreCollisionComponentsApi.getStoredCollisionLinkChain"])==null?void 0:l[s])==null?void 0:c.url;return(d,u)=>T(o,O,w,e)(d,i||u)},async getStoredCollisionTool(r,a,n){var l,c;const o=await t.getStoredCollisionTool(r,a,n),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["StoreCollisionComponentsApi.getStoredCollisionTool"])==null?void 0:l[s])==null?void 0:c.url;return(d,u)=>T(o,O,w,e)(d,i||u)},async listCollisionLinkChains(r,a){var i,l;const n=await t.listCollisionLinkChains(r,a),o=(e==null?void 0:e.serverIndex)??0,s=(l=(i=C["StoreCollisionComponentsApi.listCollisionLinkChains"])==null?void 0:i[o])==null?void 0:l.url;return(c,d)=>T(n,O,w,e)(c,s||d)},async listStoredColliders(r,a){var i,l;const n=await t.listStoredColliders(r,a),o=(e==null?void 0:e.serverIndex)??0,s=(l=(i=C["StoreCollisionComponentsApi.listStoredColliders"])==null?void 0:i[o])==null?void 0:l.url;return(c,d)=>T(n,O,w,e)(c,s||d)},async listStoredCollisionTools(r,a){var i,l;const n=await t.listStoredCollisionTools(r,a),o=(e==null?void 0:e.serverIndex)??0,s=(l=(i=C["StoreCollisionComponentsApi.listStoredCollisionTools"])==null?void 0:i[o])==null?void 0:l.url;return(c,d)=>T(n,O,w,e)(c,s||d)},async storeCollider(r,a,n,o){var c,d;const s=await t.storeCollider(r,a,n,o),i=(e==null?void 0:e.serverIndex)??0,l=(d=(c=C["StoreCollisionComponentsApi.storeCollider"])==null?void 0:c[i])==null?void 0:d.url;return(u,p)=>T(s,O,w,e)(u,l||p)},async storeCollisionLinkChain(r,a,n,o){var c,d;const s=await t.storeCollisionLinkChain(r,a,n,o),i=(e==null?void 0:e.serverIndex)??0,l=(d=(c=C["StoreCollisionComponentsApi.storeCollisionLinkChain"])==null?void 0:c[i])==null?void 0:d.url;return(u,p)=>T(s,O,w,e)(u,l||p)},async storeCollisionTool(r,a,n,o){var c,d;const s=await t.storeCollisionTool(r,a,n,o),i=(e==null?void 0:e.serverIndex)??0,l=(d=(c=C["StoreCollisionComponentsApi.storeCollisionTool"])==null?void 0:c[i])==null?void 0:d.url;return(u,p)=>T(s,O,w,e)(u,l||p)}}};class Nv extends Pe{deleteStoredCollider(t,r,a){return tt(this.configuration).deleteStoredCollider(t,r,a).then(n=>n(this.axios,this.basePath))}deleteStoredCollisionLinkChain(t,r,a){return tt(this.configuration).deleteStoredCollisionLinkChain(t,r,a).then(n=>n(this.axios,this.basePath))}deleteStoredCollisionTool(t,r,a){return tt(this.configuration).deleteStoredCollisionTool(t,r,a).then(n=>n(this.axios,this.basePath))}getDefaultLinkChain(t,r,a){return tt(this.configuration).getDefaultLinkChain(t,r,a).then(n=>n(this.axios,this.basePath))}getStoredCollider(t,r,a){return tt(this.configuration).getStoredCollider(t,r,a).then(n=>n(this.axios,this.basePath))}getStoredCollisionLinkChain(t,r,a){return tt(this.configuration).getStoredCollisionLinkChain(t,r,a).then(n=>n(this.axios,this.basePath))}getStoredCollisionTool(t,r,a){return tt(this.configuration).getStoredCollisionTool(t,r,a).then(n=>n(this.axios,this.basePath))}listCollisionLinkChains(t,r){return tt(this.configuration).listCollisionLinkChains(t,r).then(a=>a(this.axios,this.basePath))}listStoredColliders(t,r){return tt(this.configuration).listStoredColliders(t,r).then(a=>a(this.axios,this.basePath))}listStoredCollisionTools(t,r){return tt(this.configuration).listStoredCollisionTools(t,r).then(a=>a(this.axios,this.basePath))}storeCollider(t,r,a,n){return tt(this.configuration).storeCollider(t,r,a,n).then(o=>o(this.axios,this.basePath))}storeCollisionLinkChain(t,r,a,n){return tt(this.configuration).storeCollisionLinkChain(t,r,a,n).then(o=>o(this.axios,this.basePath))}storeCollisionTool(t,r,a,n){return tt(this.configuration).storeCollisionTool(t,r,a,n).then(o=>o(this.axios,this.basePath))}}const Dv=function(e){return{deleteStoredCollisionScene:async(t,r,a={})=>{m("deleteStoredCollisionScene","cell",t),m("deleteStoredCollisionScene","scene",r);const n="/cells/{cell}/store/collision/scenes/{scene}".replace("{cell}",encodeURIComponent(String(t))).replace("{scene}",encodeURIComponent(String(r))),o=new URL(n,P);let s;e&&(s=e.baseOptions);const i={method:"DELETE",...s,...a},l={},c={};V(i,e),await R(l,e),_(o,c);let d=s&&s.headers?s.headers:{};return i.headers={...l,...d,...a.headers},{url:A(o),options:i}},getStoredCollisionScene:async(t,r,a={})=>{m("getStoredCollisionScene","cell",t),m("getStoredCollisionScene","scene",r);const n="/cells/{cell}/store/collision/scenes/{scene}".replace("{cell}",encodeURIComponent(String(t))).replace("{scene}",encodeURIComponent(String(r))),o=new URL(n,P);let s;e&&(s=e.baseOptions);const i={method:"GET",...s,...a},l={},c={};V(i,e),await R(l,e),_(o,c);let d=s&&s.headers?s.headers:{};return i.headers={...l,...d,...a.headers},{url:A(o),options:i}},listStoredCollisionScenes:async(t,r={})=>{m("listStoredCollisionScenes","cell",t);const a="/cells/{cell}/store/collision/scenes".replace("{cell}",encodeURIComponent(String(t))),n=new URL(a,P);let o;e&&(o=e.baseOptions);const s={method:"GET",...o,...r},i={},l={};V(s,e),await R(i,e),_(n,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},{url:A(n),options:s}},storeCollisionScene:async(t,r,a,n={})=>{m("storeCollisionScene","cell",t),m("storeCollisionScene","scene",r),m("storeCollisionScene","collisionSceneAssembly",a);const o="/cells/{cell}/store/collision/scenes/{scene}".replace("{cell}",encodeURIComponent(String(t))).replace("{scene}",encodeURIComponent(String(r))),s=new URL(o,P);let i;e&&(i=e.baseOptions);const l={method:"PUT",...i,...n},c={},d={};V(l,e),await R(c,e),c["Content-Type"]="application/json",_(s,d);let u=i&&i.headers?i.headers:{};return l.headers={...c,...u,...n.headers},l.data=se(a,l,e),{url:A(s),options:l}}}},en=function(e){const t=Dv(e);return{async deleteStoredCollisionScene(r,a,n){var l,c;const o=await t.deleteStoredCollisionScene(r,a,n),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["StoreCollisionScenesApi.deleteStoredCollisionScene"])==null?void 0:l[s])==null?void 0:c.url;return(d,u)=>T(o,O,w,e)(d,i||u)},async getStoredCollisionScene(r,a,n){var l,c;const o=await t.getStoredCollisionScene(r,a,n),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["StoreCollisionScenesApi.getStoredCollisionScene"])==null?void 0:l[s])==null?void 0:c.url;return(d,u)=>T(o,O,w,e)(d,i||u)},async listStoredCollisionScenes(r,a){var i,l;const n=await t.listStoredCollisionScenes(r,a),o=(e==null?void 0:e.serverIndex)??0,s=(l=(i=C["StoreCollisionScenesApi.listStoredCollisionScenes"])==null?void 0:i[o])==null?void 0:l.url;return(c,d)=>T(n,O,w,e)(c,s||d)},async storeCollisionScene(r,a,n,o){var c,d;const s=await t.storeCollisionScene(r,a,n,o),i=(e==null?void 0:e.serverIndex)??0,l=(d=(c=C["StoreCollisionScenesApi.storeCollisionScene"])==null?void 0:c[i])==null?void 0:d.url;return(u,p)=>T(s,O,w,e)(u,l||p)}}};class zv extends Pe{deleteStoredCollisionScene(t,r,a){return en(this.configuration).deleteStoredCollisionScene(t,r,a).then(n=>n(this.axios,this.basePath))}getStoredCollisionScene(t,r,a){return en(this.configuration).getStoredCollisionScene(t,r,a).then(n=>n(this.axios,this.basePath))}listStoredCollisionScenes(t,r){return en(this.configuration).listStoredCollisionScenes(t,r).then(a=>a(this.axios,this.basePath))}storeCollisionScene(t,r,a,n){return en(this.configuration).storeCollisionScene(t,r,a,n).then(o=>o(this.axios,this.basePath))}}const Gv=function(e){return{clearAllObjects:async(t,r={})=>{m("clearAllObjects","cell",t);const a="/cells/{cell}/store/objects".replace("{cell}",encodeURIComponent(String(t))),n=new URL(a,P);let o;e&&(o=e.baseOptions);const s={method:"DELETE",...o,...r},i={},l={};V(s,e),await R(i,e),_(n,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},{url:A(n),options:s}},deleteObject:async(t,r,a={})=>{m("deleteObject","cell",t),m("deleteObject","key",r);const n="/cells/{cell}/store/objects/{key}".replace("{cell}",encodeURIComponent(String(t))).replace("{key}",encodeURIComponent(String(r))),o=new URL(n,P);let s;e&&(s=e.baseOptions);const i={method:"DELETE",...s,...a},l={},c={};V(i,e),await R(l,e),_(o,c);let d=s&&s.headers?s.headers:{};return i.headers={...l,...d,...a.headers},{url:A(o),options:i}},getObject:async(t,r,a={})=>{m("getObject","cell",t),m("getObject","key",r);const n="/cells/{cell}/store/objects/{key}".replace("{cell}",encodeURIComponent(String(t))).replace("{key}",encodeURIComponent(String(r))),o=new URL(n,P);let s;e&&(s=e.baseOptions);const i={method:"GET",...s,...a},l={},c={};V(i,e),await R(l,e),_(o,c);let d=s&&s.headers?s.headers:{};return i.headers={...l,...d,...a.headers},{url:A(o),options:i}},getObjectMetadata:async(t,r,a={})=>{m("getObjectMetadata","cell",t),m("getObjectMetadata","key",r);const n="/cells/{cell}/store/objects/{key}".replace("{cell}",encodeURIComponent(String(t))).replace("{key}",encodeURIComponent(String(r))),o=new URL(n,P);let s;e&&(s=e.baseOptions);const i={method:"HEAD",...s,...a},l={},c={};V(i,e),await R(l,e),_(o,c);let d=s&&s.headers?s.headers:{};return i.headers={...l,...d,...a.headers},{url:A(o),options:i}},listAllObjectKeys:async(t,r={})=>{m("listAllObjectKeys","cell",t);const a="/cells/{cell}/store/objects".replace("{cell}",encodeURIComponent(String(t))),n=new URL(a,P);let o;e&&(o=e.baseOptions);const s={method:"GET",...o,...r},i={},l={};V(s,e),await R(i,e),_(n,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},{url:A(n),options:s}},storeObject:async(t,r,a,n,o={})=>{m("storeObject","cell",t),m("storeObject","key",r);const s="/cells/{cell}/store/objects/{key}".replace("{cell}",encodeURIComponent(String(t))).replace("{key}",encodeURIComponent(String(r))),i=new URL(s,P);let l;e&&(l=e.baseOptions);const c={method:"PUT",...l,...o},d={},u={},p=new(e&&e.formDataCtor||FormData);V(c,e),await R(d,e),n!==void 0&&p.append("AnyValue",new Blob([JSON.stringify(n)],{type:"application/json"})),d["Content-Type"]="multipart/form-data",a!=null&&(d["X-Metadata"]=typeof a=="string"?a:JSON.stringify(a)),_(i,u);let f=l&&l.headers?l.headers:{};return c.headers={...d,...f,...o.headers},c.data=p,{url:A(i),options:c}}}},$r=function(e){const t=Gv(e);return{async clearAllObjects(r,a){var i,l;const n=await t.clearAllObjects(r,a),o=(e==null?void 0:e.serverIndex)??0,s=(l=(i=C["StoreObjectApi.clearAllObjects"])==null?void 0:i[o])==null?void 0:l.url;return(c,d)=>T(n,O,w,e)(c,s||d)},async deleteObject(r,a,n){var l,c;const o=await t.deleteObject(r,a,n),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["StoreObjectApi.deleteObject"])==null?void 0:l[s])==null?void 0:c.url;return(d,u)=>T(o,O,w,e)(d,i||u)},async getObject(r,a,n){var l,c;const o=await t.getObject(r,a,n),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["StoreObjectApi.getObject"])==null?void 0:l[s])==null?void 0:c.url;return(d,u)=>T(o,O,w,e)(d,i||u)},async getObjectMetadata(r,a,n){var l,c;const o=await t.getObjectMetadata(r,a,n),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["StoreObjectApi.getObjectMetadata"])==null?void 0:l[s])==null?void 0:c.url;return(d,u)=>T(o,O,w,e)(d,i||u)},async listAllObjectKeys(r,a){var i,l;const n=await t.listAllObjectKeys(r,a),o=(e==null?void 0:e.serverIndex)??0,s=(l=(i=C["StoreObjectApi.listAllObjectKeys"])==null?void 0:i[o])==null?void 0:l.url;return(c,d)=>T(n,O,w,e)(c,s||d)},async storeObject(r,a,n,o,s){var d,u;const i=await t.storeObject(r,a,n,o,s),l=(e==null?void 0:e.serverIndex)??0,c=(u=(d=C["StoreObjectApi.storeObject"])==null?void 0:d[l])==null?void 0:u.url;return(p,f)=>T(i,O,w,e)(p,c||f)}}};class Jv extends Pe{clearAllObjects(t,r){return $r(this.configuration).clearAllObjects(t,r).then(a=>a(this.axios,this.basePath))}deleteObject(t,r,a){return $r(this.configuration).deleteObject(t,r,a).then(n=>n(this.axios,this.basePath))}getObject(t,r,a){return $r(this.configuration).getObject(t,r,a).then(n=>n(this.axios,this.basePath))}getObjectMetadata(t,r,a){return $r(this.configuration).getObjectMetadata(t,r,a).then(n=>n(this.axios,this.basePath))}listAllObjectKeys(t,r){return $r(this.configuration).listAllObjectKeys(t,r).then(a=>a(this.axios,this.basePath))}storeObject(t,r,a,n,o){return $r(this.configuration).storeObject(t,r,a,n,o).then(s=>s(this.axios,this.basePath))}}const Hv=function(e){return{checkNovaVersionUpdate:async(t,r={})=>{m("checkNovaVersionUpdate","channel",t);const a="/system/update",n=new URL(a,P);let o;e&&(o=e.baseOptions);const s={method:"GET",...o,...r},i={},l={};V(s,e),await R(i,e),t!==void 0&&(l.channel=t),_(n,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},{url:A(n),options:s}},getDiagnosePackage:async(t={})=>{const r="/system/diagnosis-package/zip",a=new URL(r,P);let n;e&&(n=e.baseOptions);const o={method:"GET",...n,...t},s={},i={};V(o,e),await R(s,e),_(a,i);let l=n&&n.headers?n.headers:{};return o.headers={...s,...l,...t.headers},{url:A(a),options:o}},getSystemStatus:async(t={})=>{const r="/system/status",a=new URL(r,P);let n;e&&(n=e.baseOptions);const o={method:"GET",...n,...t},s={},i={};V(o,e),await R(s,e),_(a,i);let l=n&&n.headers?n.headers:{};return o.headers={...s,...l,...t.headers},{url:A(a),options:o}},getSystemVersion:async(t={})=>{const r="/system/version",a=new URL(r,P);let n;e&&(n=e.baseOptions);const o={method:"GET",...n,...t},s={},i={};V(o,e),await R(s,e),_(a,i);let l=n&&n.headers?n.headers:{};return o.headers={...s,...l,...t.headers},{url:A(a),options:o}},updateNovaVersion:async(t,r={})=>{m("updateNovaVersion","updateNovaVersionRequest",t);const a="/system/update",n=new URL(a,P);let o;e&&(o=e.baseOptions);const s={method:"PUT",...o,...r},i={},l={};V(s,e),await R(i,e),i["Content-Type"]="application/json",_(n,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},s.data=se(t,s,e),{url:A(n),options:s}}}},va=function(e){const t=Hv(e);return{async checkNovaVersionUpdate(r,a){var i,l;const n=await t.checkNovaVersionUpdate(r,a),o=(e==null?void 0:e.serverIndex)??0,s=(l=(i=C["SystemApi.checkNovaVersionUpdate"])==null?void 0:i[o])==null?void 0:l.url;return(c,d)=>T(n,O,w,e)(c,s||d)},async getDiagnosePackage(r){var s,i;const a=await t.getDiagnosePackage(r),n=(e==null?void 0:e.serverIndex)??0,o=(i=(s=C["SystemApi.getDiagnosePackage"])==null?void 0:s[n])==null?void 0:i.url;return(l,c)=>T(a,O,w,e)(l,o||c)},async getSystemStatus(r){var s,i;const a=await t.getSystemStatus(r),n=(e==null?void 0:e.serverIndex)??0,o=(i=(s=C["SystemApi.getSystemStatus"])==null?void 0:s[n])==null?void 0:i.url;return(l,c)=>T(a,O,w,e)(l,o||c)},async getSystemVersion(r){var s,i;const a=await t.getSystemVersion(r),n=(e==null?void 0:e.serverIndex)??0,o=(i=(s=C["SystemApi.getSystemVersion"])==null?void 0:s[n])==null?void 0:i.url;return(l,c)=>T(a,O,w,e)(l,o||c)},async updateNovaVersion(r,a){var i,l;const n=await t.updateNovaVersion(r,a),o=(e==null?void 0:e.serverIndex)??0,s=(l=(i=C["SystemApi.updateNovaVersion"])==null?void 0:i[o])==null?void 0:l.url;return(c,d)=>T(n,O,w,e)(c,s||d)}}};class qv extends Pe{checkNovaVersionUpdate(t,r){return va(this.configuration).checkNovaVersionUpdate(t,r).then(a=>a(this.axios,this.basePath))}getDiagnosePackage(t){return va(this.configuration).getDiagnosePackage(t).then(r=>r(this.axios,this.basePath))}getSystemStatus(t){return va(this.configuration).getSystemStatus(t).then(r=>r(this.axios,this.basePath))}getSystemVersion(t){return va(this.configuration).getSystemVersion(t).then(r=>r(this.axios,this.basePath))}updateNovaVersion(t,r){return va(this.configuration).updateNovaVersion(t,r).then(a=>a(this.axios,this.basePath))}}const Wv=function(e){return{getMotionGroupState:async(t,r,a,n={})=>{m("getMotionGroupState","cell",t),m("getMotionGroupState","controller",r),m("getMotionGroupState","id",a);const o="/cells/{cell}/controllers/{controller}/teach-pendant/motion-groups/{id}".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))).replace("{id}",encodeURIComponent(String(a))),s=new URL(o,P);let i;e&&(i=e.baseOptions);const l={method:"GET",...i,...n},c={},d={};V(l,e),await R(c,e),_(s,d);let u=i&&i.headers?i.headers:{};return l.headers={...c,...u,...n.headers},{url:A(s),options:l}},getMotionGroups:async(t,r,a={})=>{m("getMotionGroups","cell",t),m("getMotionGroups","controller",r);const n="/cells/{cell}/controllers/{controller}/teach-pendant/motiongroups".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))),o=new URL(n,P);let s;e&&(s=e.baseOptions);const i={method:"GET",...s,...a},l={},c={};V(i,e),await R(l,e),_(o,c);let d=s&&s.headers?s.headers:{};return i.headers={...l,...d,...a.headers},{url:A(o),options:i}},getVirtualRobotIOValue:async(t,r,a,n={})=>{m("getVirtualRobotIOValue","cell",t),m("getVirtualRobotIOValue","controller",r),m("getVirtualRobotIOValue","io",a);const o="/cells/{cell}/controllers/{controller}/teach-pendant/ios/{io}".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))).replace("{io}",encodeURIComponent(String(a))),s=new URL(o,P);let i;e&&(i=e.baseOptions);const l={method:"GET",...i,...n},c={},d={};V(l,e),await R(c,e),_(s,d);let u=i&&i.headers?i.headers:{};return l.headers={...c,...u,...n.headers},{url:A(s),options:l}},listIOs:async(t,r,a={})=>{m("listIOs","cell",t),m("listIOs","controller",r);const n="/cells/{cell}/controllers/{controller}/teach-pendant/ios".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))),o=new URL(n,P);let s;e&&(s=e.baseOptions);const i={method:"GET",...s,...a},l={},c={};V(i,e),await R(l,e),_(o,c);let d=s&&s.headers?s.headers:{};return i.headers={...l,...d,...a.headers},{url:A(o),options:i}},setMotionGroupState:async(t,r,a,n,o={})=>{m("setMotionGroupState","cell",t),m("setMotionGroupState","controller",r),m("setMotionGroupState","id",a),m("setMotionGroupState","motionGroupJoints",n);const s="/cells/{cell}/controllers/{controller}/teach-pendant/motion-groups/{id}".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))).replace("{id}",encodeURIComponent(String(a))),i=new URL(s,P);let l;e&&(l=e.baseOptions);const c={method:"PUT",...l,...o},d={},u={};V(c,e),await R(d,e),d["Content-Type"]="application/json",_(i,u);let p=l&&l.headers?l.headers:{};return c.headers={...d,...p,...o.headers},c.data=se(n,c,e),{url:A(i),options:c}},setVirtualRobotIOValue:async(t,r,a,n,o,s,i={})=>{m("setVirtualRobotIOValue","cell",t),m("setVirtualRobotIOValue","controller",r),m("setVirtualRobotIOValue","io",a);const l="/cells/{cell}/controllers/{controller}/teach-pendant/ios/{io}".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))).replace("{io}",encodeURIComponent(String(a))),c=new URL(l,P);let d;e&&(d=e.baseOptions);const u={method:"PUT",...d,...i},p={},f={};V(u,e),await R(p,e),n!==void 0&&(f.bool=n),o!==void 0&&(f.integer=o),s!==void 0&&(f.double=s),_(c,f);let g=d&&d.headers?d.headers:{};return u.headers={...p,...g,...i.headers},{url:A(c),options:u}}}},Ur=function(e){const t=Wv(e);return{async getMotionGroupState(r,a,n,o){var c,d;const s=await t.getMotionGroupState(r,a,n,o),i=(e==null?void 0:e.serverIndex)??0,l=(d=(c=C["VirtualRobotApi.getMotionGroupState"])==null?void 0:c[i])==null?void 0:d.url;return(u,p)=>T(s,O,w,e)(u,l||p)},async getMotionGroups(r,a,n){var l,c;const o=await t.getMotionGroups(r,a,n),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["VirtualRobotApi.getMotionGroups"])==null?void 0:l[s])==null?void 0:c.url;return(d,u)=>T(o,O,w,e)(d,i||u)},async getVirtualRobotIOValue(r,a,n,o){var c,d;const s=await t.getVirtualRobotIOValue(r,a,n,o),i=(e==null?void 0:e.serverIndex)??0,l=(d=(c=C["VirtualRobotApi.getVirtualRobotIOValue"])==null?void 0:c[i])==null?void 0:d.url;return(u,p)=>T(s,O,w,e)(u,l||p)},async listIOs(r,a,n){var l,c;const o=await t.listIOs(r,a,n),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["VirtualRobotApi.listIOs"])==null?void 0:l[s])==null?void 0:c.url;return(d,u)=>T(o,O,w,e)(d,i||u)},async setMotionGroupState(r,a,n,o,s){var d,u;const i=await t.setMotionGroupState(r,a,n,o,s),l=(e==null?void 0:e.serverIndex)??0,c=(u=(d=C["VirtualRobotApi.setMotionGroupState"])==null?void 0:d[l])==null?void 0:u.url;return(p,f)=>T(i,O,w,e)(p,c||f)},async setVirtualRobotIOValue(r,a,n,o,s,i,l){var p,f;const c=await t.setVirtualRobotIOValue(r,a,n,o,s,i,l),d=(e==null?void 0:e.serverIndex)??0,u=(f=(p=C["VirtualRobotApi.setVirtualRobotIOValue"])==null?void 0:p[d])==null?void 0:f.url;return(g,h)=>T(c,O,w,e)(g,u||h)}}};class Kv extends Pe{getMotionGroupState(t,r,a,n){return Ur(this.configuration).getMotionGroupState(t,r,a,n).then(o=>o(this.axios,this.basePath))}getMotionGroups(t,r,a){return Ur(this.configuration).getMotionGroups(t,r,a).then(n=>n(this.axios,this.basePath))}getVirtualRobotIOValue(t,r,a,n){return Ur(this.configuration).getVirtualRobotIOValue(t,r,a,n).then(o=>o(this.axios,this.basePath))}listIOs(t,r,a){return Ur(this.configuration).listIOs(t,r,a).then(n=>n(this.axios,this.basePath))}setMotionGroupState(t,r,a,n,o){return Ur(this.configuration).setMotionGroupState(t,r,a,n,o).then(s=>s(this.axios,this.basePath))}setVirtualRobotIOValue(t,r,a,n,o,s,i){return Ur(this.configuration).setVirtualRobotIOValue(t,r,a,n,o,s,i).then(l=>l(this.axios,this.basePath))}}const Qv=function(e){return{externalJointsStream:async(t,r,a,n={})=>{m("externalJointsStream","cell",t),m("externalJointsStream","controller",r),m("externalJointsStream","externalJointStreamDatapoint",a);const o="/cells/{cell}/controllers/{controller}/teach-pendant/motion-groups/externalJointsStream".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))),s=new URL(o,P);let i;e&&(i=e.baseOptions);const l={method:"GET",...i,...n},c={},d={};V(l,e),await R(c,e),c["Content-Type"]="application/json",_(s,d);let u=i&&i.headers?i.headers:{};return l.headers={...c,...u,...n.headers},l.data=se(a,l,e),{url:A(s),options:l}},getMotionGroupBehavior:async(t,r,a,n={})=>{m("getMotionGroupBehavior","cell",t),m("getMotionGroupBehavior","controller",r),m("getMotionGroupBehavior","id",a);const o="/cells/{cell}/controllers/{controller}/teach-pendant/motion-groups/{id}/behavior".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))).replace("{id}",encodeURIComponent(String(a))),s=new URL(o,P);let i;e&&(i=e.baseOptions);const l={method:"GET",...i,...n},c={},d={};V(l,e),await R(c,e),_(s,d);let u=i&&i.headers?i.headers:{};return l.headers={...c,...u,...n.headers},{url:A(s),options:l}},setMotionGroupBehavior:async(t,r,a,n,o={})=>{m("setMotionGroupBehavior","cell",t),m("setMotionGroupBehavior","controller",r),m("setMotionGroupBehavior","id",a);const s="/cells/{cell}/controllers/{controller}/teach-pendant/motion-groups/{id}/behavior".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))).replace("{id}",encodeURIComponent(String(a))),i=new URL(s,P);let l;e&&(l=e.baseOptions);const c={method:"PUT",...l,...o},d={},u={};V(c,e),await R(d,e),n!==void 0&&(u.behavior=n),_(i,u);let p=l&&l.headers?l.headers:{};return c.headers={...d,...p,...o.headers},{url:A(i),options:c}}}},Ao=function(e){const t=Qv(e);return{async externalJointsStream(r,a,n,o){var c,d;const s=await t.externalJointsStream(r,a,n,o),i=(e==null?void 0:e.serverIndex)??0,l=(d=(c=C["VirtualRobotBehaviorApi.externalJointsStream"])==null?void 0:c[i])==null?void 0:d.url;return(u,p)=>T(s,O,w,e)(u,l||p)},async getMotionGroupBehavior(r,a,n,o){var c,d;const s=await t.getMotionGroupBehavior(r,a,n,o),i=(e==null?void 0:e.serverIndex)??0,l=(d=(c=C["VirtualRobotBehaviorApi.getMotionGroupBehavior"])==null?void 0:c[i])==null?void 0:d.url;return(u,p)=>T(s,O,w,e)(u,l||p)},async setMotionGroupBehavior(r,a,n,o,s){var d,u;const i=await t.setMotionGroupBehavior(r,a,n,o,s),l=(e==null?void 0:e.serverIndex)??0,c=(u=(d=C["VirtualRobotBehaviorApi.setMotionGroupBehavior"])==null?void 0:d[l])==null?void 0:u.url;return(p,f)=>T(i,O,w,e)(p,c||f)}}};class Yv extends Pe{externalJointsStream(t,r,a,n){return Ao(this.configuration).externalJointsStream(t,r,a,n).then(o=>o(this.axios,this.basePath))}getMotionGroupBehavior(t,r,a,n){return Ao(this.configuration).getMotionGroupBehavior(t,r,a,n).then(o=>o(this.axios,this.basePath))}setMotionGroupBehavior(t,r,a,n,o){return Ao(this.configuration).setMotionGroupBehavior(t,r,a,n,o).then(s=>s(this.axios,this.basePath))}}const Xv=function(e){return{getCycleTime:async(t,r,a={})=>{m("getCycleTime","cell",t),m("getCycleTime","controller",r);const n="/cells/{cell}/controllers/{controller}/teach-pendant/cycle-time".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))),o=new URL(n,P);let s;e&&(s=e.baseOptions);const i={method:"GET",...s,...a},l={},c={};V(i,e),await R(l,e),_(o,c);let d=s&&s.headers?s.headers:{};return i.headers={...l,...d,...a.headers},{url:A(o),options:i}},getEStop:async(t,r,a={})=>{m("getEStop","cell",t),m("getEStop","controller",r);const n="/cells/{cell}/controllers/{controller}/teach-pendant/estop".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))),o=new URL(n,P);let s;e&&(s=e.baseOptions);const i={method:"GET",...s,...a},l={},c={};V(i,e),await R(l,e),_(o,c);let d=s&&s.headers?s.headers:{};return i.headers={...l,...d,...a.headers},{url:A(o),options:i}},getOperationMode:async(t,r,a={})=>{m("getOperationMode","cell",t),m("getOperationMode","controller",r);const n="/cells/{cell}/controllers/{controller}/teach-pendant/operationmode".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))),o=new URL(n,P);let s;e&&(s=e.baseOptions);const i={method:"GET",...s,...a},l={},c={};V(i,e),await R(l,e),_(o,c);let d=s&&s.headers?s.headers:{};return i.headers={...l,...d,...a.headers},{url:A(o),options:i}},pushEStop:async(t,r,a={})=>{m("pushEStop","cell",t),m("pushEStop","controller",r);const n="/cells/{cell}/controllers/{controller}/teach-pendant/estop/push".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))),o=new URL(n,P);let s;e&&(s=e.baseOptions);const i={method:"PUT",...s,...a},l={},c={};V(i,e),await R(l,e),_(o,c);let d=s&&s.headers?s.headers:{};return i.headers={...l,...d,...a.headers},{url:A(o),options:i}},releaseEStop:async(t,r,a={})=>{m("releaseEStop","cell",t),m("releaseEStop","controller",r);const n="/cells/{cell}/controllers/{controller}/teach-pendant/estop/release".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))),o=new URL(n,P);let s;e&&(s=e.baseOptions);const i={method:"PUT",...s,...a},l={},c={};V(i,e),await R(l,e),_(o,c);let d=s&&s.headers?s.headers:{};return i.headers={...l,...d,...a.headers},{url:A(o),options:i}},setOperationMode:async(t,r,a,n={})=>{m("setOperationMode","cell",t),m("setOperationMode","controller",r),m("setOperationMode","mode",a);const o="/cells/{cell}/controllers/{controller}/teach-pendant/operationmode".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))),s=new URL(o,P);let i;e&&(i=e.baseOptions);const l={method:"PUT",...i,...n},c={},d={};V(l,e),await R(c,e),a!==void 0&&(d.mode=a),_(s,d);let u=i&&i.headers?i.headers:{};return l.headers={...c,...u,...n.headers},{url:A(s),options:l}}}},Lr=function(e){const t=Xv(e);return{async getCycleTime(r,a,n){var l,c;const o=await t.getCycleTime(r,a,n),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["VirtualRobotModeApi.getCycleTime"])==null?void 0:l[s])==null?void 0:c.url;return(d,u)=>T(o,O,w,e)(d,i||u)},async getEStop(r,a,n){var l,c;const o=await t.getEStop(r,a,n),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["VirtualRobotModeApi.getEStop"])==null?void 0:l[s])==null?void 0:c.url;return(d,u)=>T(o,O,w,e)(d,i||u)},async getOperationMode(r,a,n){var l,c;const o=await t.getOperationMode(r,a,n),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["VirtualRobotModeApi.getOperationMode"])==null?void 0:l[s])==null?void 0:c.url;return(d,u)=>T(o,O,w,e)(d,i||u)},async pushEStop(r,a,n){var l,c;const o=await t.pushEStop(r,a,n),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["VirtualRobotModeApi.pushEStop"])==null?void 0:l[s])==null?void 0:c.url;return(d,u)=>T(o,O,w,e)(d,i||u)},async releaseEStop(r,a,n){var l,c;const o=await t.releaseEStop(r,a,n),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["VirtualRobotModeApi.releaseEStop"])==null?void 0:l[s])==null?void 0:c.url;return(d,u)=>T(o,O,w,e)(d,i||u)},async setOperationMode(r,a,n,o){var c,d;const s=await t.setOperationMode(r,a,n,o),i=(e==null?void 0:e.serverIndex)??0,l=(d=(c=C["VirtualRobotModeApi.setOperationMode"])==null?void 0:c[i])==null?void 0:d.url;return(u,p)=>T(s,O,w,e)(u,l||p)}}};class Zv extends Pe{getCycleTime(t,r,a){return Lr(this.configuration).getCycleTime(t,r,a).then(n=>n(this.axios,this.basePath))}getEStop(t,r,a){return Lr(this.configuration).getEStop(t,r,a).then(n=>n(this.axios,this.basePath))}getOperationMode(t,r,a){return Lr(this.configuration).getOperationMode(t,r,a).then(n=>n(this.axios,this.basePath))}pushEStop(t,r,a){return Lr(this.configuration).pushEStop(t,r,a).then(n=>n(this.axios,this.basePath))}releaseEStop(t,r,a){return Lr(this.configuration).releaseEStop(t,r,a).then(n=>n(this.axios,this.basePath))}setOperationMode(t,r,a,n){return Lr(this.configuration).setOperationMode(t,r,a,n).then(o=>o(this.axios,this.basePath))}}const e1=function(e){return{addVirtualRobotCoordinateSystem:async(t,r,a,n={})=>{m("addVirtualRobotCoordinateSystem","cell",t),m("addVirtualRobotCoordinateSystem","controller",r),m("addVirtualRobotCoordinateSystem","coordinateSystem",a);const o="/cells/{cell}/controllers/{controller}/teach-pendant/coordinate-systems".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))),s=new URL(o,P);let i;e&&(i=e.baseOptions);const l={method:"PUT",...i,...n},c={},d={};V(l,e),await R(c,e),c["Content-Type"]="application/json",_(s,d);let u=i&&i.headers?i.headers:{};return l.headers={...c,...u,...n.headers},l.data=se(a,l,e),{url:A(s),options:l}},addVirtualRobotTcp:async(t,r,a,n,o={})=>{m("addVirtualRobotTcp","cell",t),m("addVirtualRobotTcp","controller",r),m("addVirtualRobotTcp","id",a),m("addVirtualRobotTcp","robotTcp",n);const s="/cells/{cell}/controllers/{controller}/teach-pendant/motion-groups/{id}/tcps".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))).replace("{id}",encodeURIComponent(String(a))),i=new URL(s,P);let l;e&&(l=e.baseOptions);const c={method:"PUT",...l,...o},d={},u={};V(c,e),await R(d,e),d["Content-Type"]="application/json",_(i,u);let p=l&&l.headers?l.headers:{};return c.headers={...d,...p,...o.headers},c.data=se(n,c,e),{url:A(i),options:c}},deleteVirtualRobotCoordinateSystem:async(t,r,a,n,o={})=>{m("deleteVirtualRobotCoordinateSystem","cell",t),m("deleteVirtualRobotCoordinateSystem","controller",r),m("deleteVirtualRobotCoordinateSystem","coordinateSystem",a);const s="/cells/{cell}/controllers/{controller}/teach-pendant/coordinate-systems/{coordinate-system}".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))).replace("{coordinate-system}",encodeURIComponent(String(a))),i=new URL(s,P);let l;e&&(l=e.baseOptions);const c={method:"DELETE",...l,...o},d={},u={};V(c,e),await R(d,e),n!==void 0&&(u.delete_dependent=n),_(i,u);let p=l&&l.headers?l.headers:{};return c.headers={...d,...p,...o.headers},{url:A(i),options:c}},deleteVirtualRobotTcp:async(t,r,a,n,o={})=>{m("deleteVirtualRobotTcp","cell",t),m("deleteVirtualRobotTcp","controller",r),m("deleteVirtualRobotTcp","id",a),m("deleteVirtualRobotTcp","tcp",n);const s="/cells/{cell}/controllers/{controller}/teach-pendant/motion-groups/{id}/tcps/{tcp}".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))).replace("{id}",encodeURIComponent(String(a))).replace("{tcp}",encodeURIComponent(String(n))),i=new URL(s,P);let l;e&&(l=e.baseOptions);const c={method:"DELETE",...l,...o},d={},u={};V(c,e),await R(d,e),_(i,u);let p=l&&l.headers?l.headers:{};return c.headers={...d,...p,...o.headers},{url:A(i),options:c}},getVirtualRobotMounting:async(t,r,a,n={})=>{m("getVirtualRobotMounting","cell",t),m("getVirtualRobotMounting","controller",r),m("getVirtualRobotMounting","id",a);const o="/cells/{cell}/controllers/{controller}/teach-pendant/motion-groups/{id}/mounting".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))).replace("{id}",encodeURIComponent(String(a))),s=new URL(o,P);let i;e&&(i=e.baseOptions);const l={method:"GET",...i,...n},c={},d={};V(l,e),await R(c,e),_(s,d);let u=i&&i.headers?i.headers:{};return l.headers={...c,...u,...n.headers},{url:A(s),options:l}},listVirtualRobotCoordinateSystems:async(t,r,a={})=>{m("listVirtualRobotCoordinateSystems","cell",t),m("listVirtualRobotCoordinateSystems","controller",r);const n="/cells/{cell}/controllers/{controller}/teach-pendant/coordinate-systems".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))),o=new URL(n,P);let s;e&&(s=e.baseOptions);const i={method:"GET",...s,...a},l={},c={};V(i,e),await R(l,e),_(o,c);let d=s&&s.headers?s.headers:{};return i.headers={...l,...d,...a.headers},{url:A(o),options:i}},listVirtualRobotTcps:async(t,r,a,n={})=>{m("listVirtualRobotTcps","cell",t),m("listVirtualRobotTcps","controller",r),m("listVirtualRobotTcps","id",a);const o="/cells/{cell}/controllers/{controller}/teach-pendant/motion-groups/{id}/tcps".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))).replace("{id}",encodeURIComponent(String(a))),s=new URL(o,P);let i;e&&(i=e.baseOptions);const l={method:"GET",...i,...n},c={},d={};V(l,e),await R(c,e),_(s,d);let u=i&&i.headers?i.headers:{};return l.headers={...c,...u,...n.headers},{url:A(s),options:l}},setVirtualRobotMounting:async(t,r,a,n,o={})=>{m("setVirtualRobotMounting","cell",t),m("setVirtualRobotMounting","controller",r),m("setVirtualRobotMounting","id",a),m("setVirtualRobotMounting","coordinateSystem",n);const s="/cells/{cell}/controllers/{controller}/teach-pendant/motion-groups/{id}/mounting".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))).replace("{id}",encodeURIComponent(String(a))),i=new URL(s,P);let l;e&&(l=e.baseOptions);const c={method:"PUT",...l,...o},d={},u={};V(c,e),await R(d,e),d["Content-Type"]="application/json",_(i,u);let p=l&&l.headers?l.headers:{};return c.headers={...d,...p,...o.headers},c.data=se(n,c,e),{url:A(i),options:c}}}},Ht=function(e){const t=e1(e);return{async addVirtualRobotCoordinateSystem(r,a,n,o){var c,d;const s=await t.addVirtualRobotCoordinateSystem(r,a,n,o),i=(e==null?void 0:e.serverIndex)??0,l=(d=(c=C["VirtualRobotSetupApi.addVirtualRobotCoordinateSystem"])==null?void 0:c[i])==null?void 0:d.url;return(u,p)=>T(s,O,w,e)(u,l||p)},async addVirtualRobotTcp(r,a,n,o,s){var d,u;const i=await t.addVirtualRobotTcp(r,a,n,o,s),l=(e==null?void 0:e.serverIndex)??0,c=(u=(d=C["VirtualRobotSetupApi.addVirtualRobotTcp"])==null?void 0:d[l])==null?void 0:u.url;return(p,f)=>T(i,O,w,e)(p,c||f)},async deleteVirtualRobotCoordinateSystem(r,a,n,o,s){var d,u;const i=await t.deleteVirtualRobotCoordinateSystem(r,a,n,o,s),l=(e==null?void 0:e.serverIndex)??0,c=(u=(d=C["VirtualRobotSetupApi.deleteVirtualRobotCoordinateSystem"])==null?void 0:d[l])==null?void 0:u.url;return(p,f)=>T(i,O,w,e)(p,c||f)},async deleteVirtualRobotTcp(r,a,n,o,s){var d,u;const i=await t.deleteVirtualRobotTcp(r,a,n,o,s),l=(e==null?void 0:e.serverIndex)??0,c=(u=(d=C["VirtualRobotSetupApi.deleteVirtualRobotTcp"])==null?void 0:d[l])==null?void 0:u.url;return(p,f)=>T(i,O,w,e)(p,c||f)},async getVirtualRobotMounting(r,a,n,o){var c,d;const s=await t.getVirtualRobotMounting(r,a,n,o),i=(e==null?void 0:e.serverIndex)??0,l=(d=(c=C["VirtualRobotSetupApi.getVirtualRobotMounting"])==null?void 0:c[i])==null?void 0:d.url;return(u,p)=>T(s,O,w,e)(u,l||p)},async listVirtualRobotCoordinateSystems(r,a,n){var l,c;const o=await t.listVirtualRobotCoordinateSystems(r,a,n),s=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["VirtualRobotSetupApi.listVirtualRobotCoordinateSystems"])==null?void 0:l[s])==null?void 0:c.url;return(d,u)=>T(o,O,w,e)(d,i||u)},async listVirtualRobotTcps(r,a,n,o){var c,d;const s=await t.listVirtualRobotTcps(r,a,n,o),i=(e==null?void 0:e.serverIndex)??0,l=(d=(c=C["VirtualRobotSetupApi.listVirtualRobotTcps"])==null?void 0:c[i])==null?void 0:d.url;return(u,p)=>T(s,O,w,e)(u,l||p)},async setVirtualRobotMounting(r,a,n,o,s){var d,u;const i=await t.setVirtualRobotMounting(r,a,n,o,s),l=(e==null?void 0:e.serverIndex)??0,c=(u=(d=C["VirtualRobotSetupApi.setVirtualRobotMounting"])==null?void 0:d[l])==null?void 0:u.url;return(p,f)=>T(i,O,w,e)(p,c||f)}}};class t1 extends Pe{addVirtualRobotCoordinateSystem(t,r,a,n){return Ht(this.configuration).addVirtualRobotCoordinateSystem(t,r,a,n).then(o=>o(this.axios,this.basePath))}addVirtualRobotTcp(t,r,a,n,o){return Ht(this.configuration).addVirtualRobotTcp(t,r,a,n,o).then(s=>s(this.axios,this.basePath))}deleteVirtualRobotCoordinateSystem(t,r,a,n,o){return Ht(this.configuration).deleteVirtualRobotCoordinateSystem(t,r,a,n,o).then(s=>s(this.axios,this.basePath))}deleteVirtualRobotTcp(t,r,a,n,o){return Ht(this.configuration).deleteVirtualRobotTcp(t,r,a,n,o).then(s=>s(this.axios,this.basePath))}getVirtualRobotMounting(t,r,a,n){return Ht(this.configuration).getVirtualRobotMounting(t,r,a,n).then(o=>o(this.axios,this.basePath))}listVirtualRobotCoordinateSystems(t,r,a){return Ht(this.configuration).listVirtualRobotCoordinateSystems(t,r,a).then(n=>n(this.axios,this.basePath))}listVirtualRobotTcps(t,r,a,n){return Ht(this.configuration).listVirtualRobotTcps(t,r,a,n).then(o=>o(this.axios,this.basePath))}setVirtualRobotMounting(t,r,a,n,o){return Ht(this.configuration).setVirtualRobotMounting(t,r,a,n,o).then(s=>s(this.axios,this.basePath))}}function Mt(e,t,r){return Math.max(t,Math.min(r,e))}class r1{constructor(t=0,r=0,a=0,n=1){this.isQuaternion=!0,this._x=t,this._y=r,this._z=a,this._w=n}static slerpFlat(t,r,a,n,o,s,i){let l=a[n+0],c=a[n+1],d=a[n+2],u=a[n+3];const p=o[s+0],f=o[s+1],g=o[s+2],h=o[s+3];if(i===0){t[r+0]=l,t[r+1]=c,t[r+2]=d,t[r+3]=u;return}if(i===1){t[r+0]=p,t[r+1]=f,t[r+2]=g,t[r+3]=h;return}if(u!==h||l!==p||c!==f||d!==g){let x=1-i;const E=l*p+c*f+d*g+u*h,U=E>=0?1:-1,F=1-E*E;if(F>Number.EPSILON){const G=Math.sqrt(F),K=Math.atan2(G,E*U);x=Math.sin(x*K)/G,i=Math.sin(i*K)/G}const N=i*U;if(l=l*x+p*N,c=c*x+f*N,d=d*x+g*N,u=u*x+h*N,x===1-i){const G=1/Math.sqrt(l*l+c*c+d*d+u*u);l*=G,c*=G,d*=G,u*=G}}t[r]=l,t[r+1]=c,t[r+2]=d,t[r+3]=u}static multiplyQuaternionsFlat(t,r,a,n,o,s){const i=a[n],l=a[n+1],c=a[n+2],d=a[n+3],u=o[s],p=o[s+1],f=o[s+2],g=o[s+3];return t[r]=i*g+d*u+l*f-c*p,t[r+1]=l*g+d*p+c*u-i*f,t[r+2]=c*g+d*f+i*p-l*u,t[r+3]=d*g-i*u-l*p-c*f,t}get x(){return this._x}set x(t){this._x=t,this._onChangeCallback()}get y(){return this._y}set y(t){this._y=t,this._onChangeCallback()}get z(){return this._z}set z(t){this._z=t,this._onChangeCallback()}get w(){return this._w}set w(t){this._w=t,this._onChangeCallback()}set(t,r,a,n){return this._x=t,this._y=r,this._z=a,this._w=n,this._onChangeCallback(),this}clone(){return new this.constructor(this._x,this._y,this._z,this._w)}copy(t){return this._x=t.x,this._y=t.y,this._z=t.z,this._w=t.w,this._onChangeCallback(),this}setFromEuler(t,r=!0){const a=t._x,n=t._y,o=t._z,s=t._order,i=Math.cos,l=Math.sin,c=i(a/2),d=i(n/2),u=i(o/2),p=l(a/2),f=l(n/2),g=l(o/2);switch(s){case"XYZ":this._x=p*d*u+c*f*g,this._y=c*f*u-p*d*g,this._z=c*d*g+p*f*u,this._w=c*d*u-p*f*g;break;case"YXZ":this._x=p*d*u+c*f*g,this._y=c*f*u-p*d*g,this._z=c*d*g-p*f*u,this._w=c*d*u+p*f*g;break;case"ZXY":this._x=p*d*u-c*f*g,this._y=c*f*u+p*d*g,this._z=c*d*g+p*f*u,this._w=c*d*u-p*f*g;break;case"ZYX":this._x=p*d*u-c*f*g,this._y=c*f*u+p*d*g,this._z=c*d*g-p*f*u,this._w=c*d*u+p*f*g;break;case"YZX":this._x=p*d*u+c*f*g,this._y=c*f*u+p*d*g,this._z=c*d*g-p*f*u,this._w=c*d*u-p*f*g;break;case"XZY":this._x=p*d*u-c*f*g,this._y=c*f*u-p*d*g,this._z=c*d*g+p*f*u,this._w=c*d*u+p*f*g;break;default:console.warn("THREE.Quaternion: .setFromEuler() encountered an unknown order: "+s)}return r===!0&&this._onChangeCallback(),this}setFromAxisAngle(t,r){const a=r/2,n=Math.sin(a);return this._x=t.x*n,this._y=t.y*n,this._z=t.z*n,this._w=Math.cos(a),this._onChangeCallback(),this}setFromRotationMatrix(t){const r=t.elements,a=r[0],n=r[4],o=r[8],s=r[1],i=r[5],l=r[9],c=r[2],d=r[6],u=r[10],p=a+i+u;if(p>0){const f=.5/Math.sqrt(p+1);this._w=.25/f,this._x=(d-l)*f,this._y=(o-c)*f,this._z=(s-n)*f}else if(a>i&&a>u){const f=2*Math.sqrt(1+a-i-u);this._w=(d-l)/f,this._x=.25*f,this._y=(n+s)/f,this._z=(o+c)/f}else if(i>u){const f=2*Math.sqrt(1+i-a-u);this._w=(o-c)/f,this._x=(n+s)/f,this._y=.25*f,this._z=(l+d)/f}else{const f=2*Math.sqrt(1+u-a-i);this._w=(s-n)/f,this._x=(o+c)/f,this._y=(l+d)/f,this._z=.25*f}return this._onChangeCallback(),this}setFromUnitVectors(t,r){let a=t.dot(r)+1;return a<Number.EPSILON?(a=0,Math.abs(t.x)>Math.abs(t.z)?(this._x=-t.y,this._y=t.x,this._z=0,this._w=a):(this._x=0,this._y=-t.z,this._z=t.y,this._w=a)):(this._x=t.y*r.z-t.z*r.y,this._y=t.z*r.x-t.x*r.z,this._z=t.x*r.y-t.y*r.x,this._w=a),this.normalize()}angleTo(t){return 2*Math.acos(Math.abs(Mt(this.dot(t),-1,1)))}rotateTowards(t,r){const a=this.angleTo(t);if(a===0)return this;const n=Math.min(1,r/a);return this.slerp(t,n),this}identity(){return this.set(0,0,0,1)}invert(){return this.conjugate()}conjugate(){return this._x*=-1,this._y*=-1,this._z*=-1,this._onChangeCallback(),this}dot(t){return this._x*t._x+this._y*t._y+this._z*t._z+this._w*t._w}lengthSq(){return this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w}length(){return Math.sqrt(this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w)}normalize(){let t=this.length();return t===0?(this._x=0,this._y=0,this._z=0,this._w=1):(t=1/t,this._x=this._x*t,this._y=this._y*t,this._z=this._z*t,this._w=this._w*t),this._onChangeCallback(),this}multiply(t){return this.multiplyQuaternions(this,t)}premultiply(t){return this.multiplyQuaternions(t,this)}multiplyQuaternions(t,r){const a=t._x,n=t._y,o=t._z,s=t._w,i=r._x,l=r._y,c=r._z,d=r._w;return this._x=a*d+s*i+n*c-o*l,this._y=n*d+s*l+o*i-a*c,this._z=o*d+s*c+a*l-n*i,this._w=s*d-a*i-n*l-o*c,this._onChangeCallback(),this}slerp(t,r){if(r===0)return this;if(r===1)return this.copy(t);const a=this._x,n=this._y,o=this._z,s=this._w;let i=s*t._w+a*t._x+n*t._y+o*t._z;if(i<0?(this._w=-t._w,this._x=-t._x,this._y=-t._y,this._z=-t._z,i=-i):this.copy(t),i>=1)return this._w=s,this._x=a,this._y=n,this._z=o,this;const l=1-i*i;if(l<=Number.EPSILON){const f=1-r;return this._w=f*s+r*this._w,this._x=f*a+r*this._x,this._y=f*n+r*this._y,this._z=f*o+r*this._z,this.normalize(),this}const c=Math.sqrt(l),d=Math.atan2(c,i),u=Math.sin((1-r)*d)/c,p=Math.sin(r*d)/c;return this._w=s*u+this._w*p,this._x=a*u+this._x*p,this._y=n*u+this._y*p,this._z=o*u+this._z*p,this._onChangeCallback(),this}slerpQuaternions(t,r,a){return this.copy(t).slerp(r,a)}random(){const t=2*Math.PI*Math.random(),r=2*Math.PI*Math.random(),a=Math.random(),n=Math.sqrt(1-a),o=Math.sqrt(a);return this.set(n*Math.sin(t),n*Math.cos(t),o*Math.sin(r),o*Math.cos(r))}equals(t){return t._x===this._x&&t._y===this._y&&t._z===this._z&&t._w===this._w}fromArray(t,r=0){return this._x=t[r],this._y=t[r+1],this._z=t[r+2],this._w=t[r+3],this._onChangeCallback(),this}toArray(t=[],r=0){return t[r]=this._x,t[r+1]=this._y,t[r+2]=this._z,t[r+3]=this._w,t}fromBufferAttribute(t,r){return this._x=t.getX(r),this._y=t.getY(r),this._z=t.getZ(r),this._w=t.getW(r),this._onChangeCallback(),this}toJSON(){return this.toArray()}_onChange(t){return this._onChangeCallback=t,this}_onChangeCallback(){}*[Symbol.iterator](){yield this._x,yield this._y,yield this._z,yield this._w}}class Gr{constructor(t=0,r=0,a=0){Gr.prototype.isVector3=!0,this.x=t,this.y=r,this.z=a}set(t,r,a){return a===void 0&&(a=this.z),this.x=t,this.y=r,this.z=a,this}setScalar(t){return this.x=t,this.y=t,this.z=t,this}setX(t){return this.x=t,this}setY(t){return this.y=t,this}setZ(t){return this.z=t,this}setComponent(t,r){switch(t){case 0:this.x=r;break;case 1:this.y=r;break;case 2:this.z=r;break;default:throw new Error("index is out of range: "+t)}return this}getComponent(t){switch(t){case 0:return this.x;case 1:return this.y;case 2:return this.z;default:throw new Error("index is out of range: "+t)}}clone(){return new this.constructor(this.x,this.y,this.z)}copy(t){return this.x=t.x,this.y=t.y,this.z=t.z,this}add(t){return this.x+=t.x,this.y+=t.y,this.z+=t.z,this}addScalar(t){return this.x+=t,this.y+=t,this.z+=t,this}addVectors(t,r){return this.x=t.x+r.x,this.y=t.y+r.y,this.z=t.z+r.z,this}addScaledVector(t,r){return this.x+=t.x*r,this.y+=t.y*r,this.z+=t.z*r,this}sub(t){return this.x-=t.x,this.y-=t.y,this.z-=t.z,this}subScalar(t){return this.x-=t,this.y-=t,this.z-=t,this}subVectors(t,r){return this.x=t.x-r.x,this.y=t.y-r.y,this.z=t.z-r.z,this}multiply(t){return this.x*=t.x,this.y*=t.y,this.z*=t.z,this}multiplyScalar(t){return this.x*=t,this.y*=t,this.z*=t,this}multiplyVectors(t,r){return this.x=t.x*r.x,this.y=t.y*r.y,this.z=t.z*r.z,this}applyEuler(t){return this.applyQuaternion(nl.setFromEuler(t))}applyAxisAngle(t,r){return this.applyQuaternion(nl.setFromAxisAngle(t,r))}applyMatrix3(t){const r=this.x,a=this.y,n=this.z,o=t.elements;return this.x=o[0]*r+o[3]*a+o[6]*n,this.y=o[1]*r+o[4]*a+o[7]*n,this.z=o[2]*r+o[5]*a+o[8]*n,this}applyNormalMatrix(t){return this.applyMatrix3(t).normalize()}applyMatrix4(t){const r=this.x,a=this.y,n=this.z,o=t.elements,s=1/(o[3]*r+o[7]*a+o[11]*n+o[15]);return this.x=(o[0]*r+o[4]*a+o[8]*n+o[12])*s,this.y=(o[1]*r+o[5]*a+o[9]*n+o[13])*s,this.z=(o[2]*r+o[6]*a+o[10]*n+o[14])*s,this}applyQuaternion(t){const r=this.x,a=this.y,n=this.z,o=t.x,s=t.y,i=t.z,l=t.w,c=2*(s*n-i*a),d=2*(i*r-o*n),u=2*(o*a-s*r);return this.x=r+l*c+s*u-i*d,this.y=a+l*d+i*c-o*u,this.z=n+l*u+o*d-s*c,this}project(t){return this.applyMatrix4(t.matrixWorldInverse).applyMatrix4(t.projectionMatrix)}unproject(t){return this.applyMatrix4(t.projectionMatrixInverse).applyMatrix4(t.matrixWorld)}transformDirection(t){const r=this.x,a=this.y,n=this.z,o=t.elements;return this.x=o[0]*r+o[4]*a+o[8]*n,this.y=o[1]*r+o[5]*a+o[9]*n,this.z=o[2]*r+o[6]*a+o[10]*n,this.normalize()}divide(t){return this.x/=t.x,this.y/=t.y,this.z/=t.z,this}divideScalar(t){return this.multiplyScalar(1/t)}min(t){return this.x=Math.min(this.x,t.x),this.y=Math.min(this.y,t.y),this.z=Math.min(this.z,t.z),this}max(t){return this.x=Math.max(this.x,t.x),this.y=Math.max(this.y,t.y),this.z=Math.max(this.z,t.z),this}clamp(t,r){return this.x=Mt(this.x,t.x,r.x),this.y=Mt(this.y,t.y,r.y),this.z=Mt(this.z,t.z,r.z),this}clampScalar(t,r){return this.x=Mt(this.x,t,r),this.y=Mt(this.y,t,r),this.z=Mt(this.z,t,r),this}clampLength(t,r){const a=this.length();return this.divideScalar(a||1).multiplyScalar(Mt(a,t,r))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this.z=Math.floor(this.z),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this.z=Math.ceil(this.z),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this.z=Math.round(this.z),this}roundToZero(){return this.x=Math.trunc(this.x),this.y=Math.trunc(this.y),this.z=Math.trunc(this.z),this}negate(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this}dot(t){return this.x*t.x+this.y*t.y+this.z*t.z}lengthSq(){return this.x*this.x+this.y*this.y+this.z*this.z}length(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)}normalize(){return this.divideScalar(this.length()||1)}setLength(t){return this.normalize().multiplyScalar(t)}lerp(t,r){return this.x+=(t.x-this.x)*r,this.y+=(t.y-this.y)*r,this.z+=(t.z-this.z)*r,this}lerpVectors(t,r,a){return this.x=t.x+(r.x-t.x)*a,this.y=t.y+(r.y-t.y)*a,this.z=t.z+(r.z-t.z)*a,this}cross(t){return this.crossVectors(this,t)}crossVectors(t,r){const a=t.x,n=t.y,o=t.z,s=r.x,i=r.y,l=r.z;return this.x=n*l-o*i,this.y=o*s-a*l,this.z=a*i-n*s,this}projectOnVector(t){const r=t.lengthSq();if(r===0)return this.set(0,0,0);const a=t.dot(this)/r;return this.copy(t).multiplyScalar(a)}projectOnPlane(t){return To.copy(this).projectOnVector(t),this.sub(To)}reflect(t){return this.sub(To.copy(t).multiplyScalar(2*this.dot(t)))}angleTo(t){const r=Math.sqrt(this.lengthSq()*t.lengthSq());if(r===0)return Math.PI/2;const a=this.dot(t)/r;return Math.acos(Mt(a,-1,1))}distanceTo(t){return Math.sqrt(this.distanceToSquared(t))}distanceToSquared(t){const r=this.x-t.x,a=this.y-t.y,n=this.z-t.z;return r*r+a*a+n*n}manhattanDistanceTo(t){return Math.abs(this.x-t.x)+Math.abs(this.y-t.y)+Math.abs(this.z-t.z)}setFromSpherical(t){return this.setFromSphericalCoords(t.radius,t.phi,t.theta)}setFromSphericalCoords(t,r,a){const n=Math.sin(r)*t;return this.x=n*Math.sin(a),this.y=Math.cos(r)*t,this.z=n*Math.cos(a),this}setFromCylindrical(t){return this.setFromCylindricalCoords(t.radius,t.theta,t.y)}setFromCylindricalCoords(t,r,a){return this.x=t*Math.sin(r),this.y=a,this.z=t*Math.cos(r),this}setFromMatrixPosition(t){const r=t.elements;return this.x=r[12],this.y=r[13],this.z=r[14],this}setFromMatrixScale(t){const r=this.setFromMatrixColumn(t,0).length(),a=this.setFromMatrixColumn(t,1).length(),n=this.setFromMatrixColumn(t,2).length();return this.x=r,this.y=a,this.z=n,this}setFromMatrixColumn(t,r){return this.fromArray(t.elements,r*4)}setFromMatrix3Column(t,r){return this.fromArray(t.elements,r*3)}setFromEuler(t){return this.x=t._x,this.y=t._y,this.z=t._z,this}setFromColor(t){return this.x=t.r,this.y=t.g,this.z=t.b,this}equals(t){return t.x===this.x&&t.y===this.y&&t.z===this.z}fromArray(t,r=0){return this.x=t[r],this.y=t[r+1],this.z=t[r+2],this}toArray(t=[],r=0){return t[r]=this.x,t[r+1]=this.y,t[r+2]=this.z,t}fromBufferAttribute(t,r){return this.x=t.getX(r),this.y=t.getY(r),this.z=t.getZ(r),this}random(){return this.x=Math.random(),this.y=Math.random(),this.z=Math.random(),this}randomDirection(){const t=Math.random()*Math.PI*2,r=Math.random()*2-1,a=Math.sqrt(1-r*r);return this.x=a*Math.cos(t),this.y=r,this.z=a*Math.sin(t),this}*[Symbol.iterator](){yield this.x,yield this.y,yield this.z}}const To=new Gr,nl=new r1;function a1(e){var t=[];if(e.length===0)return"";if(typeof e[0]!="string")throw new TypeError("Url must be a string. Received "+e[0]);if(e[0].match(/^[^/:]+:\/*$/)&&e.length>1){var r=e.shift();e[0]=r+e[0]}e[0].match(/^file:\/\/\//)?e[0]=e[0].replace(/^([^/:]+):\/*/,"$1:///"):e[0]=e[0].replace(/^([^/:]+):\/*/,"$1://");for(var a=0;a<e.length;a++){var n=e[a];if(typeof n!="string")throw new TypeError("Url must be a string. Received "+n);n!==""&&(a>0&&(n=n.replace(/^[\/]+/,"")),a<e.length-1?n=n.replace(/[\/]+$/,""):n=n.replace(/[\/]+$/,"/"),t.push(n))}var o=t.join("/");o=o.replace(/\/(\?|&|#[^!])/g,"$1");var s=o.split("?");return o=s.shift()+(s.length>0?"?":"")+s.join("&"),o}function Eo(){var e;return typeof arguments[0]=="object"?e=arguments[0]:e=[].slice.call(arguments),a1(e)}var xt={},ol;function n1(){if(ol)return xt;ol=1,Object.defineProperty(xt,"__esModule",{value:!0}),xt.TokenData=void 0,xt.parse=u,xt.compile=p,xt.match=h,xt.pathToRegexp=x,xt.stringify=N;const e="/",t=j=>j,r=/^[$_\p{ID_Start}]$/u,a=/^[$\u200c\u200d\p{ID_Continue}]$/u,n="https://git.new/pathToRegexpError",o={"{":"{","}":"}","(":"(",")":")","[":"[","]":"]","+":"+","?":"?","!":"!"};function s(j){return j.replace(/[{}()\[\]+?!:*]/g,"\\$&")}function i(j){return j.replace(/[.+*?^${}()[\]|/\\]/g,"\\$&")}function*l(j){const L=[...j];let k=0;function y(){let M="";if(r.test(L[++k]))for(M+=L[k];a.test(L[++k]);)M+=L[k];else if(L[k]==='"'){let B=k;for(;k<L.length;){if(L[++k]==='"'){k++,B=0;break}L[k]==="\\"?M+=L[++k]:M+=L[k]}if(B)throw new TypeError(`Unterminated quote at ${B}: ${n}`)}if(!M)throw new TypeError(`Missing parameter name at ${k}: ${n}`);return M}for(;k<L.length;){const M=L[k],B=o[M];if(B)yield{type:B,index:k++,value:M};else if(M==="\\")yield{type:"ESCAPED",index:k++,value:L[k++]};else if(M===":"){const z=y();yield{type:"PARAM",index:k,value:z}}else if(M==="*"){const z=y();yield{type:"WILDCARD",index:k,value:z}}else yield{type:"CHAR",index:k,value:L[k++]}}return{type:"END",index:k,value:""}}class c{constructor(L){this.tokens=L}peek(){if(!this._peek){const L=this.tokens.next();this._peek=L.value}return this._peek}tryConsume(L){const k=this.peek();if(k.type===L)return this._peek=void 0,k.value}consume(L){const k=this.tryConsume(L);if(k!==void 0)return k;const{type:y,index:M}=this.peek();throw new TypeError(`Unexpected ${y} at ${M}, expected ${L}: ${n}`)}text(){let L="",k;for(;k=this.tryConsume("CHAR")||this.tryConsume("ESCAPED");)L+=k;return L}}class d{constructor(L){this.tokens=L}}xt.TokenData=d;function u(j,L={}){const{encodePath:k=t}=L,y=new c(l(j));function M(z){const D=[];for(;;){const re=y.text();re&&D.push({type:"text",value:k(re)});const Z=y.tryConsume("PARAM");if(Z){D.push({type:"param",name:Z});continue}const xe=y.tryConsume("WILDCARD");if(xe){D.push({type:"wildcard",name:xe});continue}if(y.tryConsume("{")){D.push({type:"group",tokens:M("}")});continue}return y.consume(z),D}}const B=M("END");return new d(B)}function p(j,L={}){const{encode:k=encodeURIComponent,delimiter:y=e}=L,M=j instanceof d?j:u(j,L),B=f(M.tokens,y,k);return function(D={}){const[re,...Z]=B(D);if(Z.length)throw new TypeError(`Missing parameters: ${Z.join(", ")}`);return re}}function f(j,L,k){const y=j.map(M=>g(M,L,k));return M=>{const B=[""];for(const z of y){const[D,...re]=z(M);B[0]+=D,B.push(...re)}return B}}function g(j,L,k){if(j.type==="text")return()=>[j.value];if(j.type==="group"){const M=f(j.tokens,L,k);return B=>{const[z,...D]=M(B);return D.length?[""]:[z]}}const y=k||t;return j.type==="wildcard"&&k!==!1?M=>{const B=M[j.name];if(B==null)return["",j.name];if(!Array.isArray(B)||B.length===0)throw new TypeError(`Expected "${j.name}" to be a non-empty array`);return[B.map((z,D)=>{if(typeof z!="string")throw new TypeError(`Expected "${j.name}/${D}" to be a string`);return y(z)}).join(L)]}:M=>{const B=M[j.name];if(B==null)return["",j.name];if(typeof B!="string")throw new TypeError(`Expected "${j.name}" to be a string`);return[y(B)]}}function h(j,L={}){const{decode:k=decodeURIComponent,delimiter:y=e}=L,{regexp:M,keys:B}=x(j,L),z=B.map(D=>k===!1?t:D.type==="param"?k:re=>re.split(y).map(k));return function(re){const Z=M.exec(re);if(!Z)return!1;const xe=Z[0],X=Object.create(null);for(let ce=1;ce<Z.length;ce++){if(Z[ce]===void 0)continue;const fe=B[ce-1],le=z[ce-1];X[fe.name]=le(Z[ce])}return{path:xe,params:X}}}function x(j,L={}){const{delimiter:k=e,end:y=!0,sensitive:M=!1,trailing:B=!0}=L,z=[],D=[],re=M?"":"i",xe=(Array.isArray(j)?j:[j]).map(fe=>fe instanceof d?fe:u(fe,L));for(const{tokens:fe}of xe)for(const le of E(fe,0,[])){const He=U(le,k,z);D.push(He)}let X=`^(?:${D.join("|")})`;return B&&(X+=`(?:${i(k)}$)?`),X+=y?"$":`(?=${i(k)}|$)`,{regexp:new RegExp(X,re),keys:z}}function*E(j,L,k){if(L===j.length)return yield k;const y=j[L];if(y.type==="group"){const M=k.slice();for(const B of E(y.tokens,0,M))yield*E(j,L+1,B)}else k.push(y);yield*E(j,L+1,k)}function U(j,L,k){let y="",M="",B=!0;for(let z=0;z<j.length;z++){const D=j[z];if(D.type==="text"){y+=i(D.value),M+=D.value,B||(B=D.value.includes(L));continue}if(D.type==="param"||D.type==="wildcard"){if(!B&&!M)throw new TypeError(`Missing text after "${D.name}": ${n}`);D.type==="param"?y+=`(${F(L,B?"":M)}+)`:y+="([\\s\\S]+)",k.push(D),M="",B=!1;continue}}return y}function F(j,L){return L.length<2?j.length<2?`[^${i(j+L)}]`:`(?:(?!${i(j)})[^${i(L)}])`:j.length<2?`(?:(?!${i(L)})[^${i(j)}])`:`(?:(?!${i(L)}|${i(j)})[\\s\\S])`}function N(j){return j.tokens.map(function L(k,y,M){if(k.type==="text")return s(k.value);if(k.type==="group")return`{${k.tokens.map(L).join("")}}`;const z=G(k.name)&&K(M[y+1])?k.name:JSON.stringify(k.name);if(k.type==="param")return`:${z}`;if(k.type==="wildcard")return`*${z}`;throw new TypeError(`Unexpected token: ${k}`)}).join("")}function G(j){const[L,...k]=j;return r.test(L)?k.every(y=>a.test(y)):!1}function K(j){return(j==null?void 0:j.type)!=="text"?!0:!a.test(j.value[0])}return xt}var o1=n1();function Yc(e,t,r){if(t.length!==e.length)return!0;for(let a=0;a<t.length;a++)if(Math.abs(t[a]-e[a])>r)return!1;return!0}function Xc(e,t,r){if(e===void 0&&t||e&&t===void 0)return!1;if(e===void 0||t===void 0)return!0;let a=0;return a+=Math.abs(e.orientation.x-t.orientation.x),a+=Math.abs(e.orientation.y-t.orientation.y),a+=Math.abs(e.orientation.z-t.orientation.z),a+=Math.abs(e.position.x-t.position.x),a+=Math.abs(e.position.y-t.position.y),a+=Math.abs(e.position.z-t.position.z),a>r?!1:e.coordinate_system===t.coordinate_system&&e.tcp===t.tcp}var sl=1e-4,s1=class Zc{constructor(t,r,a,n,o,s,i,l,c,d,u,p){this.nova=t,this.controller=r,this.motionGroup=a,this.initialMotionState=n,this.motionStateSocket=o,this.isVirtual=s,this.tcps=i,this.motionGroupSpecification=l,this.safetySetup=c,this.mounting=d,this.initialControllerState=u,this.controllerStateSocket=p,this.connectedJoggingCartesianSocket=null,this.connectedJoggingJointsSocket=null,this.joggingVelocity=10,this.activationState="inactive",this.rapidlyChangingMotionState=n,this.controllerState=u,p.addEventListener("message",f=>{var g;const h=(g=Kt(f.data))==null?void 0:g.result;h&&Be.runInAction(()=>{this.controllerState=h})}),o.addEventListener("message",f=>{var g;const h=(g=Kt(f.data))==null?void 0:g.result;if(!h)throw new Error(`Failed to get motion state for ${this.motionGroupId}: ${f.data}`);Yc(this.rapidlyChangingMotionState.state.joint_position.joints,h.state.joint_position.joints,sl)||Be.runInAction(()=>{this.rapidlyChangingMotionState.state=h.state}),Xc(this.rapidlyChangingMotionState.tcp_pose,h.tcp_pose,sl)||Be.runInAction(()=>{this.rapidlyChangingMotionState.tcp_pose=h.tcp_pose})}),Be.makeAutoObservable(this)}static connect(t,r,a){return Ce(this,null,function*(){var n,o;const[s,i]=r.split("@"),l=a.find(K=>K.controller===i),c=l==null?void 0:l.physical_motion_groups.find(K=>K.motion_group===r);if(!l||!c)throw new Error(`Controller ${i} or motion group ${r} not found`);const d=t.openReconnectingWebsocket(`/motion-groups/${r}/state-stream`),u=yield d.firstMessage(),p=(n=Kt(u.data))==null?void 0:n.result;if(!p)throw new Error(`Unable to parse initial motion state message ${u.data}`);console.log(`Connected motion state websocket to motion group ${c.motion_group}. Initial state:
112
+ `,p);const g=(yield t.api.controller.getRobotController(l.controller)).configuration.kind==="VirtualController",h=yield Ce(this,null,function*(){try{return yield t.api.motionGroupInfos.getMounting(c.motion_group)}catch(K){return console.error(`Error fetching mounting for ${c.motion_group}`,K),null}}),x=t.openReconnectingWebsocket(`/controllers/${l.controller}/state-stream?response_rate=1000`),E=yield x.firstMessage(),U=(o=Kt(E.data))==null?void 0:o.result;if(!U)throw new Error(`Unable to parse initial controller state message ${E.data}`);console.log(`Connected controller state websocket to controller ${l.controller}. Initial state:
113
+ `,U);const{tcps:F}=yield t.api.motionGroupInfos.listTcps(r),N=yield t.api.motionGroupInfos.getMotionGroupSpecification(r),G=yield t.api.motionGroupInfos.getSafetySetup(r);return new Zc(t,l,c,p,d,g,F,N,G,h,U,x)})}get motionGroupId(){return this.motionGroup.motion_group}get controllerId(){return this.controller.controller}get modelFromController(){return this.motionGroup.model_from_controller}get wandelscriptIdentifier(){const t=this.motionGroupId.split("@")[0];return`${this.controllerId.replaceAll("-","_")}_${t}`}get joggingVelocityRads(){return this.joggingVelocity*Math.PI/180}get joints(){return this.initialMotionState.state.joint_position.joints.map((t,r)=>({index:r}))}get dhParameters(){return this.motionGroupSpecification.dh_parameters}get safetyZones(){return this.safetySetup.safety_zones}get mountingPosition(){return this.mounting?[this.mounting.pose.position.x/1e3,this.mounting.pose.position.y/1e3,this.mounting.pose.position.z/1e3]:[0,0,0]}get mountingQuaternion(){var t,r,a,n,o,s;const i=new Ie.Vector3(((r=(t=this.mounting)==null?void 0:t.pose.orientation)==null?void 0:r.x)||0,((n=(a=this.mounting)==null?void 0:a.pose.orientation)==null?void 0:n.y)||0,((s=(o=this.mounting)==null?void 0:o.pose.orientation)==null?void 0:s.z)||0),l=i.length(),c=i.normalize();return new Ie.Quaternion().setFromAxisAngle(c,l)}get isEstopActive(){return["SAFETY_STATE_ROBOT_EMERGENCY_STOP","SAFETY_STATE_DEVICE_EMERGENCY_STOP"].includes(this.controllerState.safety_state)}get isMoveableSafetyState(){return["SAFETY_STATE_NORMAL","SAFETY_STATE_REDUCED"].includes(this.controllerState.safety_state)}get isMoveableOperationMode(){return["OPERATION_MODE_AUTO","OPERATION_MODE_MANUAL","OPERATION_MODE_MANUAL_T1","OPERATION_MODE_MANUAL_T2"].includes(this.controllerState.operation_mode)}get canBeMoved(){return this.isMoveableSafetyState&&this.isMoveableOperationMode&&this.activationState==="active"}deactivate(){return Ce(this,null,function*(){if(this.activationState!=="active"){console.error("Tried to deactivate while already deactivating");return}Be.runInAction(()=>{this.activationState="deactivating"});try{yield this.nova.api.controller.setDefaultMode(this.controllerId,"MODE_MONITOR"),Be.runInAction(()=>{this.activationState="inactive"})}catch(t){throw Be.runInAction(()=>{this.activationState="active"}),t}})}activate(){return Ce(this,null,function*(){if(this.activationState!=="inactive"){console.error("Tried to activate while already activating");return}Be.runInAction(()=>{this.activationState="activating"});try{yield this.nova.api.controller.setDefaultMode(this.controllerId,"MODE_CONTROL"),Be.runInAction(()=>{this.activationState="active"})}catch(t){throw Be.runInAction(()=>{this.activationState="inactive"}),t}})}toggleActivation(){this.activationState==="inactive"?this.activate():this.activationState==="active"&&this.deactivate()}dispose(){this.motionStateSocket.close(),this.connectedJoggingCartesianSocket&&this.connectedJoggingCartesianSocket.close(),this.connectedJoggingJointsSocket&&this.connectedJoggingJointsSocket.close()}setJoggingVelocity(t){this.joggingVelocity=t}},i1=class ed{constructor(t,r={}){this.motionStream=t,this.opts=r,this.cartesianWebsocket=null,this.jointWebsocket=null,this.cartesianJoggingOpts={}}static open(t,r){return Ce(this,arguments,function*(a,n,o={}){const s=yield a.connectMotionStream(n);return new ed(s,o)})}get motionGroupId(){return this.motionStream.motionGroupId}get nova(){return this.motionStream.nova}get numJoints(){return this.motionStream.joints.length}get activeJoggingMode(){return this.cartesianWebsocket?"cartesian":this.jointWebsocket?"joint":"increment"}get activeWebsocket(){return this.cartesianWebsocket||this.jointWebsocket}stop(){return Ce(this,null,function*(){this.cartesianWebsocket&&this.cartesianWebsocket.sendJson({motion_group:this.motionGroupId,position_direction:{x:0,y:0,z:0},rotation_direction:{x:0,y:0,z:0},position_velocity:0,rotation_velocity:0,tcp:this.cartesianJoggingOpts.tcpId,coordinate_system:this.cartesianJoggingOpts.coordSystemId}),this.jointWebsocket&&this.jointWebsocket.sendJson({motion_group:this.motionGroupId,joint_velocities:new Array(this.numJoints).fill(0)})})}dispose(){this.cartesianWebsocket&&this.cartesianWebsocket.dispose(),this.jointWebsocket&&this.jointWebsocket.dispose()}setJoggingMode(t,r){console.log("Setting jogging mode to",t),r&&(u0(this.cartesianJoggingOpts,r)||this.cartesianWebsocket&&(this.cartesianWebsocket.dispose(),this.cartesianWebsocket=null),this.cartesianJoggingOpts=r),t!=="cartesian"&&this.cartesianWebsocket&&(this.cartesianWebsocket.dispose(),this.cartesianWebsocket=null),t!=="joint"&&this.jointWebsocket&&(this.jointWebsocket.dispose(),this.jointWebsocket=null),t==="cartesian"&&!this.cartesianWebsocket&&(this.cartesianWebsocket=this.nova.openReconnectingWebsocket("/motion-groups/move-tcp"),this.cartesianWebsocket.addEventListener("message",a=>{const n=Kt(a.data);if(n&&"error"in n)if(this.opts.onError)this.opts.onError(a.data);else throw new Error(a.data)})),t==="joint"&&!this.jointWebsocket&&(this.jointWebsocket=this.nova.openReconnectingWebsocket("/motion-groups/move-joint"),this.jointWebsocket.addEventListener("message",a=>{const n=Kt(a.data);if(n&&"error"in n)if(this.opts.onError)this.opts.onError(a.data);else throw new Error(a.data)}))}startJointRotation(t){return Ce(this,arguments,function*({joint:r,direction:a,velocityRadsPerSec:n}){if(!this.jointWebsocket)throw new Error("Joint jogging websocket not connected; call setJoggingMode first");const o=new Array(this.numJoints).fill(0);o[r]=a==="-"?-n:n,this.jointWebsocket.sendJson({motion_group:this.motionGroupId,joint_velocities:o})})}startTCPTranslation(t){return Ce(this,arguments,function*({axis:r,direction:a,velocityMmPerSec:n}){if(!this.cartesianWebsocket)throw new Error("Cartesian jogging websocket not connected; call setJoggingMode first");const o={x:0,y:0,z:0},s=Object.assign({},o);s[r]=a==="-"?-1:1,this.cartesianWebsocket.sendJson({motion_group:this.motionGroupId,position_direction:s,rotation_direction:o,position_velocity:n,rotation_velocity:0,tcp:this.cartesianJoggingOpts.tcpId,coordinate_system:this.cartesianJoggingOpts.coordSystemId})})}startTCPRotation(t){return Ce(this,arguments,function*({axis:r,direction:a,velocityRadsPerSec:n}){if(!this.cartesianWebsocket)throw new Error("Cartesian jogging websocket not connected; call setJoggingMode first");const o={x:0,y:0,z:0},s=Object.assign({},o);s[r]=a==="-"?-1:1,this.cartesianWebsocket.sendJson({motion_group:this.motionGroupId,position_direction:o,rotation_direction:s,position_velocity:0,rotation_velocity:n,tcp:this.cartesianJoggingOpts.tcpId,coordinate_system:this.cartesianJoggingOpts.coordSystemId})})}runIncrementalCartesianMotion(t){return Ce(this,arguments,function*({currentTcpPose:r,currentJoints:a,coordSystemId:n,velocityInRelevantUnits:o,axis:s,direction:i,motion:l}){var c;const d=[];if(!R0(r.coordinate_system,n))throw new Error(`Current TCP pose coordinate system ${r.coordinate_system} does not match target coordinate system ${n}`);if(l.type==="translate"){const f=Object.assign({},r.position);f[s]+=l.distanceMm*(i==="-"?-1:1),d.push({settings:{limits_override:{tcp_velocity_limit:o}},line:{position:f,orientation:r.orientation,coordinate_system:n}})}else if(l.type==="rotate"){const f=new Gr(r.orientation.x,r.orientation.y,r.orientation.z),g=f.length(),h=f.clone().normalize(),x=l.distanceRads*(i==="-"?-1:1),E=new Gr(0,0,0);E[s]=1;const U=Math.cos(.5*x)*Math.cos(.5*g),F=Math.sin(.5*x)*Math.sin(.5*g),N=Math.sin(.5*x)*Math.cos(.5*g),G=Math.cos(.5*x)*Math.sin(.5*g),K=E.dot(h),j=E.clone().cross(h),L=2*Math.acos(U-F*K),k=L/Math.sin(.5*L),y=new Gr().addScaledVector(j,F).addScaledVector(E,N).addScaledVector(h,G).multiplyScalar(k);d.push({settings:{limits_override:{tcp_orientation_velocity_limit:o}},line:{position:r.position,orientation:y,coordinate_system:n}})}const u=yield this.nova.api.motion.planMotion({motion_group:this.motionGroupId,start_joint_position:a,tcp:this.cartesianJoggingOpts.tcpId,commands:d}),p=(c=u.plan_successful_response)==null?void 0:c.motion;if(!p)throw new Error(`Failed to plan jogging increment motion ${JSON.stringify(u)}`);yield this.nova.api.motion.streamMoveForward(p,100,void 0,void 0,void 0,{timeout:1e3*60})})}runIncrementalJointRotation(t){return Ce(this,arguments,function*({joint:r,currentJoints:a,velocityRadsPerSec:n,direction:o,distanceRads:s}){var i;const l=[...a.joints];l[r]+=s*(o==="-"?-1:1);const c=new Array(a.joints.length).fill(n),d=yield this.nova.api.motion.planMotion({motion_group:this.motionGroupId,start_joint_position:a,commands:[{settings:{limits_override:{joint_velocity_limits:{joints:c}}},joint_ptp:{joints:l}}]}),u=(i=d.plan_successful_response)==null?void 0:i.motion;if(!u){console.error("Failed to plan jogging increment motion",d);return}yield this.nova.api.motion.streamMoveForward(u,100,void 0,void 0,void 0,{timeout:1e3*60})})}},il=1e-4;function l1(e,t){const r=new ht.Vector3(t.x,t.y,t.z),a=new ht.Vector3(e.x,e.y,e.z),n=r.length(),o=r.normalize();let s=a.length(),i=a.normalize();i.dot(o)<0&&(s=-s,i=i.multiplyScalar(-1));let l=s-n;return l-=2*Math.PI*Math.floor((l+Math.PI)/(2*Math.PI)),s=n+l,i.multiplyScalar(s)}var c1=class td{constructor(t,r,a,n,o){this.nova=t,this.controller=r,this.motionGroup=a,this.initialMotionState=n,this.motionStateSocket=o,this.rapidlyChangingMotionState=n,o.addEventListener("message",s=>{var i;const l=(i=Kt(s.data))==null?void 0:i.result;if(!l)throw new Error(`Failed to get motion state for ${this.motionGroupId}: ${s.data}`);Yc(this.rapidlyChangingMotionState.state.joint_position.joints,l.state.joint_position.joints,il)||Be.runInAction(()=>{this.rapidlyChangingMotionState.state=l.state}),Xc(this.rapidlyChangingMotionState.tcp_pose,l.tcp_pose,il)||Be.runInAction(()=>{this.rapidlyChangingMotionState.tcp_pose==null?this.rapidlyChangingMotionState.tcp_pose=l.tcp_pose:this.rapidlyChangingMotionState.tcp_pose={position:l.tcp_pose.position,orientation:l1(l.tcp_pose.orientation,this.rapidlyChangingMotionState.tcp_pose.orientation),tcp:l.tcp_pose.tcp,coordinate_system:l.tcp_pose.coordinate_system}})}),Be.makeAutoObservable(this)}static open(t,r){return Ce(this,null,function*(){var a;const{instances:n}=yield t.api.controller.listControllers(),[o,s]=r.split("@"),i=n.find(p=>p.controller===s),l=i==null?void 0:i.physical_motion_groups.find(p=>p.motion_group===r);if(!i||!l)throw new Error(`Controller ${s} or motion group ${r} not found`);const c=t.openReconnectingWebsocket(`/motion-groups/${r}/state-stream`),d=yield c.firstMessage();console.log("got first message",d);const u=(a=Kt(d.data))==null?void 0:a.result;if(!u)throw new Error(`Unable to parse initial motion state message ${d.data}`);return console.log(`Connected motion state websocket to motion group ${l.motion_group}. Initial state:
114
+ `,u),new td(t,i,l,u,c)})}get motionGroupId(){return this.motionGroup.motion_group}get controllerId(){return this.controller.controller}get modelFromController(){return this.motionGroup.model_from_controller}get wandelscriptIdentifier(){const t=this.motionGroupId.split("@")[0];return`${this.controllerId.replaceAll("-","_")}_${t}`}get joints(){return this.initialMotionState.state.joint_position.joints.map((t,r)=>({index:r}))}dispose(){this.motionStateSocket.close()}},d1=class{constructor(e,t){this.cellId=e,this.opts=t,this.system=this.withUnwrappedResponsesOnly(qv),this.cell=this.withUnwrappedResponsesOnly(cv),this.deviceConfig=this.withCellId(yv),this.motionGroup=this.withCellId(Av),this.motionGroupInfos=this.withCellId(Ev),this.controller=this.withCellId(uv),this.program=this.withCellId(Lv),this.programValues=this.withCellId(Bv),this.controllerIOs=this.withCellId(hv),this.motionGroupKinematic=this.withCellId($v),this.motion=this.withCellId(Rv),this.coordinateSystems=this.withCellId(fv),this.application=this.withCellId(al),this.applicationGlobal=this.withUnwrappedResponsesOnly(al),this.motionGroupJogging=this.withCellId(Mv),this.virtualRobot=this.withCellId(Kv),this.virtualRobotSetup=this.withCellId(t1),this.virtualRobotMode=this.withCellId(Zv),this.virtualRobotBehavior=this.withCellId(Yv),this.libraryProgramMetadata=this.withCellId(xv),this.libraryProgram=this.withCellId(Sv),this.libraryRecipeMetadata=this.withCellId(Pv),this.libraryRecipe=this.withCellId(wv),this.storeObject=this.withCellId(Jv),this.storeCollisionComponents=this.withCellId(Nv),this.storeCollisionScenes=this.withCellId(zv)}withCellId(e){var t,r;const a=new e(Wo(Fr({},this.opts),{isJsonMime:n=>n==="application/json"}),(t=this.opts.basePath)!=null?t:"",(r=this.opts.axiosInstance)!=null?r:O.create());for(const n of Reflect.ownKeys(Reflect.getPrototypeOf(a)))if(n!=="constructor"&&typeof a[n]=="function"){const o=a[n];a[n]=(...s)=>o.apply(a,[this.cellId,...s]).then(i=>i.data)}return a}withUnwrappedResponsesOnly(e){var t,r;const a=new e(Wo(Fr({},this.opts),{isJsonMime:n=>n==="application/json"}),(t=this.opts.basePath)!=null?t:"",(r=this.opts.axiosInstance)!=null?r:O.create());for(const n of Reflect.ownKeys(Reflect.getPrototypeOf(a)))if(n!=="constructor"&&typeof a[n]=="function"){const o=a[n];a[n]=(...s)=>o.apply(a,s).then(i=>i.data)}return a}},u1=class{constructor(){this.connections=[]}handleAPIRequest(e){return Ce(this,null,function*(){var t,r,a;const n=[{method:"GET",path:"/cells/:cellId/controllers",handle(){return{instances:[{controller:"mock-ur5e",model_name:"UniversalRobots::Controller",host:"mock-ur5e",allow_software_install_on_controller:!0,physical_motion_groups:[{motion_group:"0@mock-ur5e",name_from_controller:"UR5e",active:!1,model_from_controller:"UniversalRobots_UR5e"}],has_error:!1,error_details:""}]}}},{method:"GET",path:"/cells/:cellId/controllers/:controllerId",handle(){return{configuration:{kind:"VirtualController",manufacturer:"universalrobots",position:"[0,-1.571,-1.571,-1.571,1.571,-1.571,0]",type:"universalrobots-ur5e"},name:"mock-ur5"}}},{method:"GET",path:"/cells/:cellId/motion-groups/:motionGroupId/specification",handle(){return{dh_parameters:[{alpha:1.5707963267948966,theta:0,a:0,d:162.25,reverse_rotation_direction:!1},{alpha:0,theta:0,a:-425,d:0,reverse_rotation_direction:!1},{alpha:0,theta:0,a:-392.2,d:0,reverse_rotation_direction:!1},{alpha:1.5707963267948966,theta:0,a:0,d:133.3,reverse_rotation_direction:!1},{alpha:-1.5707963267948966,theta:0,a:0,d:99.7,reverse_rotation_direction:!1},{alpha:0,theta:0,a:0,d:99.6,reverse_rotation_direction:!1}],mechanical_joint_limits:[{joint:"JOINTNAME_AXIS_1",lower_limit:-6.335545063018799,upper_limit:6.335545063018799,unlimited:!1},{joint:"JOINTNAME_AXIS_2",lower_limit:-6.335545063018799,upper_limit:6.335545063018799,unlimited:!1},{joint:"JOINTNAME_AXIS_3",lower_limit:-6.335545063018799,upper_limit:6.335545063018799,unlimited:!1},{joint:"JOINTNAME_AXIS_4",lower_limit:-6.335545063018799,upper_limit:6.335545063018799,unlimited:!1},{joint:"JOINTNAME_AXIS_5",lower_limit:-6.335545063018799,upper_limit:6.335545063018799,unlimited:!1},{joint:"JOINTNAME_AXIS_6",lower_limit:-6.335545063018799,upper_limit:6.335545063018799,unlimited:!1}]}}},{method:"GET",path:"/cells/:cellId/motion-groups/:motionGroupId/safety-setup",handle(){return{safety_settings:[{safety_state:"SAFETY_NORMAL",settings:{joint_position_limits:[{joint:"JOINTNAME_AXIS_1",lower_limit:-2.96705961227417,upper_limit:2.96705961227417,unlimited:!1},{joint:"JOINTNAME_AXIS_2",lower_limit:-1.7453292608261108,upper_limit:2.7925267219543457,unlimited:!1},{joint:"JOINTNAME_AXIS_3",lower_limit:-3.3161256313323975,upper_limit:.40142571926116943,unlimited:!1},{joint:"JOINTNAME_AXIS_4",lower_limit:-3.4906585216522217,upper_limit:3.4906585216522217,unlimited:!1},{joint:"JOINTNAME_AXIS_5",lower_limit:-2.4434609413146973,upper_limit:2.4434609413146973,unlimited:!1},{joint:"JOINTNAME_AXIS_6",lower_limit:-4.71238899230957,upper_limit:4.71238899230957,unlimited:!1}],joint_velocity_limits:[{joint:"JOINTNAME_AXIS_1",limit:3.1415927410125732},{joint:"JOINTNAME_AXIS_2",limit:3.1415927410125732},{joint:"JOINTNAME_AXIS_3",limit:3.4906585216522217},{joint:"JOINTNAME_AXIS_4",limit:6.108652591705322},{joint:"JOINTNAME_AXIS_5",limit:6.108652591705322},{joint:"JOINTNAME_AXIS_6",limit:6.981317043304443}],joint_acceleration_limits:[],joint_torque_limits:[],tcp_velocity_limit:1800}}],safety_zones:[{id:1,priority:0,geometry:{compound:{child_geometries:[{convex_hull:{vertices:[{x:-800,y:-1330,z:-1820},{x:1650,y:-1330,z:-1820},{x:1650,y:1330,z:-1820},{x:-800,y:1330,z:-1820}]},init_pose:{position:{x:0,y:0,z:0},orientation:{x:0,y:0,z:0,w:1}},id:"box"},{convex_hull:{vertices:[{x:-800,y:-1330,z:-1820},{x:1650,y:-1330,z:-1820},{x:1650,y:-1330,z:1500},{x:-800,y:-1330,z:1500}]},init_pose:{position:{x:0,y:0,z:0},orientation:{x:0,y:0,z:0,w:1}},id:"box"},{convex_hull:{vertices:[{x:-800,y:-1330,z:-1820},{x:-800,y:1330,z:-1820},{x:-800,y:1330,z:1500},{x:-800,y:-1330,z:1500}]},init_pose:{position:{x:0,y:0,z:0},orientation:{x:0,y:0,z:0,w:1}},id:"box"},{convex_hull:{vertices:[{x:1650,y:1330,z:1500},{x:-800,y:1330,z:1500},{x:-800,y:-1330,z:1500},{x:1650,y:-1330,z:1500}]},init_pose:{position:{x:0,y:0,z:0},orientation:{x:0,y:0,z:0,w:1}},id:"box"},{convex_hull:{vertices:[{x:1650,y:1330,z:1500},{x:-800,y:1330,z:1500},{x:-800,y:1330,z:-1820},{x:1650,y:1330,z:-1820}]},init_pose:{position:{x:0,y:0,z:0},orientation:{x:0,y:0,z:0,w:1}},id:"box"},{convex_hull:{vertices:[{x:1650,y:1330,z:1500},{x:1650,y:-1330,z:1500},{x:1650,y:-1330,z:-1820},{x:1650,y:1330,z:-1820}]},init_pose:{position:{x:0,y:0,z:0},orientation:{x:0,y:0,z:0,w:1}},id:"box"}]},init_pose:{position:{x:0,y:0,z:0},orientation:{x:0,y:0,z:0,w:1}},id:"Cell workzone"},motion_group_uid:1},{id:2,priority:0,geometry:{convex_hull:{vertices:[{x:1650,y:1330,z:-1850},{x:865,y:1330,z:-1850},{x:865,y:-720,z:-1850},{x:1650,y:-720,z:-1850},{x:1650,y:1330,z:-920},{x:865,y:1330,z:-920},{x:865,y:-720,z:-920},{x:1650,y:-720,z:-920}]},init_pose:{position:{x:0,y:0,z:0},orientation:{x:0,y:0,z:0,w:1}},id:"Transport"},motion_group_uid:1},{id:3,priority:0,geometry:{convex_hull:{vertices:[{x:1650,y:1330,z:-600},{x:865,y:1330,z:-600},{x:865,y:430,z:-600},{x:1650,y:430,z:-600},{x:1650,y:1330,z:-1250},{x:865,y:1330,z:-1250},{x:865,y:430,z:-1250},{x:1650,y:430,z:-1250}]},init_pose:{position:{x:0,y:0,z:0},orientation:{x:0,y:0,z:0,w:1}},id:"Tunel"},motion_group_uid:1},{id:4,priority:0,geometry:{convex_hull:{vertices:[{x:1650,y:-760,z:-440},{x:900,y:-760,z:-440},{x:900,y:-1330,z:-440},{x:1650,y:-1330,z:-440},{x:1650,y:-760,z:-1800},{x:900,y:-760,z:-1800},{x:900,y:-1330,z:-1800},{x:1650,y:-1330,z:-1800}]},init_pose:{position:{x:0,y:0,z:0},orientation:{x:0,y:0,z:0,w:1}},id:"Fanuc controller"},motion_group_uid:1},{id:6,priority:0,geometry:{convex_hull:{vertices:[{x:-200,y:-200,z:-1900},{x:200,y:-200,z:-1900},{x:200,y:200,z:-1900},{x:-200,y:200,z:-1900},{x:-200,y:-200,z:-350},{x:200,y:-200,z:-350},{x:200,y:200,z:-350},{x:-200,y:200,z:-350}]},init_pose:{position:{x:0,y:0,z:0},orientation:{x:0,y:0,z:0,w:1}},id:"Robot base"},motion_group_uid:1}],robot_model_geometries:[{link_index:1,geometry:{sphere:{radius:270},init_pose:{position:{x:-70,y:-70,z:-50},orientation:{x:0,y:0,z:0,w:1}},id:"link1_sphere"}},{link_index:2,geometry:{capsule:{radius:160,cylinder_height:800},init_pose:{position:{x:-450,y:40,z:170},orientation:{x:0,y:-.7071067811865475,z:0,w:.7071067811865476}},id:"link2_capsule"}},{link_index:3,geometry:{sphere:{radius:270},init_pose:{position:{x:-110,y:10,z:-100},orientation:{x:0,y:0,z:0,w:1}},id:"link3_sphere"}},{link_index:4,geometry:{capsule:{radius:110,cylinder_height:600},init_pose:{position:{x:0,y:300,z:40},orientation:{x:-.7071067811865475,y:0,z:0,w:.7071067811865476}},id:"link4_capsule"}},{link_index:5,geometry:{sphere:{radius:75},init_pose:{position:{x:0,y:0,z:-50},orientation:{x:0,y:0,z:0,w:1}},id:"link5_sphere"}}],tool_geometries:[]}}},{method:"GET",path:"/cells/:cellId/coordinate-systems",handle(){return{coordinatesystems:[{coordinate_system:"",name:"world",reference_uid:"",position:{x:0,y:0,z:0},rotation:{angles:[0,0,0],type:"ROTATION_VECTOR"}}]}}},{method:"GET",path:"/cells/:cellId/motion-groups/:motionGroupId/tcps",handle(){return{tcps:[{id:"Flange",readable_name:"Default-Flange",position:{x:0,y:0,z:0},rotation:{angles:[0,0,0,0],type:"ROTATION_VECTOR"}},{id:"complex-tcp-position",readable_name:"Complex TCP Position",position:{x:-200,y:300,z:150},rotation:{angles:[-.12139440409113832,-.06356210998212003,-.2023240068185639,0],type:"ROTATION_VECTOR"}}]}}}],o=((t=e.method)==null?void 0:t.toUpperCase())||"GET",s="/cells"+((a=(r=e.url)==null?void 0:r.split("/cells")[1])==null?void 0:a.split("?")[0]);for(const i of n){const l=o1.match(i.path)(s||"");if(o===i.method&&l){const c=i.handle();return{status:200,statusText:"Success",data:JSON.stringify(c),headers:{},config:e,request:{responseURL:e.url}}}}throw new ts(`No mock handler matched this request: ${o} ${s}`,"404",e)})}handleWebsocketConnection(e){this.connections.push(e),setTimeout(()=>{e.dispatchEvent(new Event("open")),console.log("Websocket connection opened from",e.url),e.url.includes("/state-stream")&&e.dispatchEvent(new MessageEvent("message",{data:JSON.stringify(p1)})),e.url.includes("/move-joint")&&e.dispatchEvent(new MessageEvent("message",{data:JSON.stringify({result:{motion_group:"0@ur",state:{controller:"ur",operation_mode:"OPERATION_MODE_AUTO",safety_state:"SAFETY_STATE_NORMAL",timestamp:"2024-09-18T12:48:26.096266444Z",velocity_override:100,motion_groups:[{motion_group:"0@ur",controller:"ur",joint_position:{joints:[1.3492152690887451,-1.5659207105636597,1.6653711795806885,-1.0991662740707397,-1.829018235206604,1.264623761177063]},joint_velocity:{joints:[0,0,0,0,0,0]},flange_pose:{position:{x:6.437331889439328,y:-628.4123774830913,z:577.0569957147832},orientation:{x:-1.683333649797158,y:-1.9783363827298732,z:-.4928031860165713},coordinate_system:""},tcp_pose:{position:{x:6.437331889439328,y:-628.4123774830913,z:577.0569957147832},orientation:{x:-1.683333649797158,y:-1.9783363827298732,z:-.4928031860165713},coordinate_system:"",tcp:"Flange"},velocity:{linear:{x:0,y:0,z:0},angular:{x:-0,y:0,z:0},coordinate_system:""},force:{force:{x:0,y:0,z:0},moment:{x:0,y:0,z:0},coordinate_system:""},joint_limit_reached:{limit_reached:[!1,!1,!1,!1,!1,!1]},joint_current:{joints:[0,0,0,0,0,0]},sequence_number:"671259"}],sequence_number:"671259"},movement_state:"MOVEMENT_STATE_MOVING"}})})),e.url.includes("/move-tcp")&&e.dispatchEvent(new MessageEvent("message",{data:JSON.stringify({result:{motion_group:"0@ur",state:{controller:"ur",operation_mode:"OPERATION_MODE_AUTO",safety_state:"SAFETY_STATE_NORMAL",timestamp:"2024-09-18T12:43:12.188335774Z",velocity_override:100,motion_groups:[{motion_group:"0@ur",controller:"ur",joint_position:{joints:[1.3352527618408203,-1.5659207105636597,1.6653711795806885,-1.110615611076355,-1.829018235206604,1.264623761177063]},joint_velocity:{joints:[0,0,0,0,0,0]},flange_pose:{position:{x:-2.763015284002938,y:-630.2151479701106,z:577.524509114342},orientation:{x:-1.704794877102097,y:-1.9722372952861567,z:-.4852079204210754},coordinate_system:""},tcp_pose:{position:{x:-2.763015284002938,y:-630.2151479701106,z:577.524509114342},orientation:{x:-1.704794877102097,y:-1.9722372952861567,z:-.4852079204210754},coordinate_system:"",tcp:"Flange"},velocity:{linear:{x:0,y:0,z:0},angular:{x:-0,y:0,z:0},coordinate_system:""},force:{force:{x:0,y:0,z:0},moment:{x:0,y:0,z:0},coordinate_system:""},joint_limit_reached:{limit_reached:[!1,!1,!1,!1,!1,!1]},joint_current:{joints:[0,0,0,0,0,0]},sequence_number:"627897"}],sequence_number:"627897"},movement_state:"MOVEMENT_STATE_MOVING"}})}))},10)}handleWebsocketMessage(e,t){console.log(`Received message on ${e.url}`,t)}},p1={result:{state:{motion_group:"0@universalrobots-ur5e",controller:"universalrobots-ur5e",joint_position:{joints:[1.1699999570846558,-1.5700000524520874,1.3600000143051147,1.0299999713897705,1.2899999618530273,1.2799999713897705]},joint_velocity:{joints:[0,0,0,0,0,0]},flange_pose:{position:{x:1.3300010259703043,y:-409.2680714682808,z:531.0203477065281},orientation:{x:1.7564919306270736,y:-1.7542521568325058,z:.7326972590614671},coordinate_system:""},tcp_pose:{position:{x:1.3300010259703043,y:-409.2680714682808,z:531.0203477065281},orientation:{x:1.7564919306270736,y:-1.7542521568325058,z:.7326972590614671},coordinate_system:"",tcp:"Flange"},velocity:{linear:{x:0,y:0,z:0},angular:{x:0,y:0,z:0},coordinate_system:""},force:{force:{x:0,y:0,z:0},moment:{x:0,y:0,z:0},coordinate_system:""},joint_limit_reached:{limit_reached:[!1,!1,!1,!1,!1,!1]},joint_current:{joints:[0,0,0,0,0,0]}},tcp_pose:{position:{x:302.90748476115556,y:-152.87065869452337,z:424.0454619321661},orientation:{x:2.3403056115045353,y:-1.1706836379431356,z:.9772511964246311},coordinate_system:"",tcp:"Flange"}}},h1=class{constructor(e){this.authPromise=null,this.accessToken=null;var t;const r=(t=e.cellId)!=null?t:"cell";this.config=Fr({cellId:r},e),this.accessToken=e.accessToken||Co.getString("wbjs.access_token")||null,this.config.instanceUrl==="https://mock.example.com"&&(this.mock=new u1);const a=O.create({baseURL:Eo(this.config.instanceUrl,"/api/v1")});a.interceptors.request.use(n=>Ce(this,null,function*(){return n.headers.Authorization||(this.accessToken?n.headers.Authorization=`Bearer ${this.accessToken}`:this.config.username&&this.config.password&&(n.headers.Authorization=`Basic ${btoa(e.username+":"+e.password)}`)),n})),typeof window<"u"&&a.interceptors.response.use(n=>n,n=>Ce(this,null,function*(){var o,s;if(ov(n))if(((o=n.response)==null?void 0:o.status)===401)try{if(yield this.renewAuthentication(),n.config)return this.accessToken?n.config.headers.Authorization=`Bearer ${this.accessToken}`:delete n.config.headers.Authorization,a.request(n.config)}catch(i){return Promise.reject(i)}else((s=n.response)==null?void 0:s.status)===503&&(yield fetch(window.location.href)).status===503&&window.location.reload();return Promise.reject(n)})),this.api=new d1(r,Wo(Fr({},e),{basePath:Eo(this.config.instanceUrl,"/api/v1"),isJsonMime:n=>n==="application/json",baseOptions:Fr(Fr({},this.mock?{adapter:n=>this.mock.handleAPIRequest(n)}:{}),e.baseOptions),axiosInstance:a}))}renewAuthentication(){return Ce(this,null,function*(){if(!this.authPromise){this.authPromise=A0(this.config.instanceUrl);try{this.accessToken=yield this.authPromise,this.accessToken?Co.setString("wbjs.access_token",this.accessToken):Co.delete("wbjs.access_token")}finally{this.authPromise=null}}})}makeWebsocketURL(e){const t=new URL(Eo(this.config.instanceUrl,`/api/v1/cells/${this.config.cellId}`,e));return t.protocol=t.protocol.replace("http","ws"),t.protocol=t.protocol.replace("https","wss"),this.accessToken?t.searchParams.append("token",this.accessToken):this.config.username&&this.config.password&&(t.username=this.config.username,t.password=this.config.password),t.toString()}openReconnectingWebsocket(e){return new P0(this.makeWebsocketURL(e),{mock:this.mock})}connectMotionStream(e){return Ce(this,null,function*(){return yield c1.open(this,e)})}connectJogger(e){return Ce(this,null,function*(){return yield i1.open(this,e)})}connectMotionGroups(e){return Ce(this,null,function*(){const{instances:t}=yield this.api.controller.listControllers();return Promise.all(e.map(r=>s1.connect(this,r,t)))})}connectMotionGroup(e){return Ce(this,null,function*(){return(yield this.connectMotionGroups([e]))[0]})}};function m1(e){try{return JSON.stringify(e)}catch{return}}function f1(e,t){throw new Error(t+` ${JSON.stringify(e)}`)}function g1(e){var t,r,a,n;return e instanceof ts&&e.code==="ERR_NETWORK"?"Failed to connect to the server. Please check your internet connection.":e instanceof ts&&e.response?`${(t=e.response)==null?void 0:t.status} ${(r=e.response)==null?void 0:r.statusText} from ${(a=e.response)==null?void 0:a.config.url}: ${JSON.stringify((n=e.response)==null?void 0:n.data)}`:e instanceof Error?e.message:`Unexpected error: ${m1(e)||e}`}const vs=e=>{const t=e.softTimeout||3e3,[r,a]=ae.useState(!1),n=q.useTheme();return ae.useEffect(()=>{const o=setTimeout(()=>{a(!0)},t);return()=>clearTimeout(o)}),b.jsx(q.Stack,{width:"100%",height:"100%",alignItems:"center",justifyContent:"center",sx:{color:n.palette.text.primary},children:e.error?b.jsx(rd,{loadingMessage:e.message,error:e.error}):b.jsxs(b.Fragment,{children:[b.jsx(q.CircularProgress,{sx:{marginBottom:"24px"}}),!!e.message&&b.jsx("div",{children:e.message}),b.jsx(q.Stack,{sx:{visibility:r?"visible":"hidden",marginTop:"1rem",color:n.palette.text.secondary},children:"This is taking longer than expected..."})]})})},rd=e=>{const t=g1(e.error),r=e.error instanceof Error?e.error.stack:null,a=q.useTheme();return b.jsxs(q.Stack,{sx:{maxHeight:"100%",maxWidth:"min(100%, 800px)",padding:2,overflow:"auto",color:a.palette.error.main,"& pre":{whiteSpace:"pre-wrap",wordBreak:"break-word",paddingBottom:"3rem"}},children:[(e.loadingMessage?`Error while ${cs.lowerFirst(q.capitalize(e.loadingMessage))} - `:"")+t,b.jsx("br",{}),r&&b.jsx("pre",{children:r})]})},y1=({title:e,titleId:t,...r},a)=>J.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:19,height:10,fill:"none",ref:a,"aria-labelledby":t,...r},e?J.createElement("title",{id:t},e):null,J.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"})),b1=ae.forwardRef(y1),S1=({title:e,titleId:t,...r},a)=>J.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:19,height:10,fill:"none",ref:a,"aria-labelledby":t,...r},e?J.createElement("title",{id:t},e):null,J.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"})),v1=ae.forwardRef(S1),x1=({title:e,titleId:t,...r},a)=>J.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:10,height:19,fill:"none",ref:a,"aria-labelledby":t,...r},e?J.createElement("title",{id:t},e):null,J.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"})),O1=ae.forwardRef(x1),w1=({title:e,titleId:t,...r},a)=>J.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:a,"aria-labelledby":t,...r},e?J.createElement("title",{id:t},e):null,J.createElement("path",{d:"M8 16C5.76667 16 3.875 15.225 2.325 13.675C0.775 12.125 0 10.2333 0 8C0 5.76667 0.775 3.875 2.325 2.325C3.875 0.775 5.76667 0 8 0C9.15 0 10.25 0.2375 11.3 0.7125C12.35 1.1875 13.25 1.86667 14 2.75V0H16V7H9V5H13.2C12.6667 4.06667 11.9375 3.33333 11.0125 2.8C10.0875 2.26667 9.08333 2 8 2C6.33333 2 4.91667 2.58333 3.75 3.75C2.58333 4.91667 2 6.33333 2 8C2 9.66667 2.58333 11.0833 3.75 12.25C4.91667 13.4167 6.33333 14 8 14C9.28333 14 10.4417 13.6333 11.475 12.9C11.0583 14.1 12.5083 12.1667 11.475 12.9L12.9 14.325C11.4667 15.4417 9.83333 16 8 16Z",fill:"white"})),C1=ae.forwardRef(w1);function P1(){this.__data__=[],this.size=0}function ad(e,t){return e===t||e!==e&&t!==t}function ro(e,t){for(var r=e.length;r--;)if(ad(e[r][0],t))return r;return-1}var V1=Array.prototype,R1=V1.splice;function _1(e){var t=this.__data__,r=ro(t,e);if(r<0)return!1;var a=t.length-1;return r==a?t.pop():R1.call(t,r,1),--this.size,!0}function A1(e){var t=this.__data__,r=ro(t,e);return r<0?void 0:t[r][1]}function T1(e){return ro(this.__data__,e)>-1}function E1(e,t){var r=this.__data__,a=ro(r,e);return a<0?(++this.size,r.push([e,t])):r[a][1]=t,this}function Lt(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var a=e[t];this.set(a[0],a[1])}}Lt.prototype.clear=P1;Lt.prototype.delete=_1;Lt.prototype.get=A1;Lt.prototype.has=T1;Lt.prototype.set=E1;function I1(){this.__data__=new Lt,this.size=0}function M1(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function j1(e){return this.__data__.get(e)}function $1(e){return this.__data__.has(e)}var U1="[object AsyncFunction]",L1="[object Function]",k1="[object GeneratorFunction]",B1="[object Proxy]";function nd(e){if(!dr(e))return!1;var t=fr(e);return t==L1||t==k1||t==U1||t==B1}var Io=Rt["__core-js_shared__"],ll=function(){var e=/[^.]+$/.exec(Io&&Io.keys&&Io.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function F1(e){return!!ll&&ll in e}var N1=Function.prototype,D1=N1.toString;function yr(e){if(e!=null){try{return D1.call(e)}catch{}try{return e+""}catch{}}return""}var z1=/[\\^$.*+?()[\]{}|]/g,G1=/^\[object .+?Constructor\]$/,J1=Function.prototype,H1=Object.prototype,q1=J1.toString,W1=H1.hasOwnProperty,K1=RegExp("^"+q1.call(W1).replace(z1,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Q1(e){if(!dr(e)||F1(e))return!1;var t=nd(e)?K1:G1;return t.test(yr(e))}function Y1(e,t){return e==null?void 0:e[t]}function br(e,t){var r=Y1(e,t);return Q1(r)?r:void 0}var $a=br(Rt,"Map"),Ua=br(Object,"create");function X1(){this.__data__=Ua?Ua(null):{},this.size=0}function Z1(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var ex="__lodash_hash_undefined__",tx=Object.prototype,rx=tx.hasOwnProperty;function ax(e){var t=this.__data__;if(Ua){var r=t[e];return r===ex?void 0:r}return rx.call(t,e)?t[e]:void 0}var nx=Object.prototype,ox=nx.hasOwnProperty;function sx(e){var t=this.__data__;return Ua?t[e]!==void 0:ox.call(t,e)}var ix="__lodash_hash_undefined__";function lx(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Ua&&t===void 0?ix:t,this}function hr(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var a=e[t];this.set(a[0],a[1])}}hr.prototype.clear=X1;hr.prototype.delete=Z1;hr.prototype.get=ax;hr.prototype.has=sx;hr.prototype.set=lx;function cx(){this.size=0,this.__data__={hash:new hr,map:new($a||Lt),string:new hr}}function dx(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function ao(e,t){var r=e.__data__;return dx(t)?r[typeof t=="string"?"string":"hash"]:r.map}function ux(e){var t=ao(this,e).delete(e);return this.size-=t?1:0,t}function px(e){return ao(this,e).get(e)}function hx(e){return ao(this,e).has(e)}function mx(e,t){var r=ao(this,e),a=r.size;return r.set(e,t),this.size+=r.size==a?0:1,this}function kt(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var a=e[t];this.set(a[0],a[1])}}kt.prototype.clear=cx;kt.prototype.delete=ux;kt.prototype.get=px;kt.prototype.has=hx;kt.prototype.set=mx;var fx=200;function gx(e,t){var r=this.__data__;if(r instanceof Lt){var a=r.__data__;if(!$a||a.length<fx-1)return a.push([e,t]),this.size=++r.size,this;r=this.__data__=new kt(a)}return r.set(e,t),this.size=r.size,this}function jt(e){var t=this.__data__=new Lt(e);this.size=t.size}jt.prototype.clear=I1;jt.prototype.delete=M1;jt.prototype.get=j1;jt.prototype.has=$1;jt.prototype.set=gx;var yx="__lodash_hash_undefined__";function bx(e){return this.__data__.set(e,yx),this}function Sx(e){return this.__data__.has(e)}function An(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new kt;++t<r;)this.add(e[t])}An.prototype.add=An.prototype.push=bx;An.prototype.has=Sx;function vx(e,t){for(var r=-1,a=e==null?0:e.length;++r<a;)if(t(e[r],r,e))return!0;return!1}function xx(e,t){return e.has(t)}var Ox=1,wx=2;function od(e,t,r,a,n,o){var s=r&Ox,i=e.length,l=t.length;if(i!=l&&!(s&&l>i))return!1;var c=o.get(e),d=o.get(t);if(c&&d)return c==t&&d==e;var u=-1,p=!0,f=r&wx?new An:void 0;for(o.set(e,t),o.set(t,e);++u<i;){var g=e[u],h=t[u];if(a)var x=s?a(h,g,u,t,e,o):a(g,h,u,e,t,o);if(x!==void 0){if(x)continue;p=!1;break}if(f){if(!vx(t,function(E,U){if(!xx(f,U)&&(g===E||n(g,E,r,a,o)))return f.push(U)})){p=!1;break}}else if(!(g===h||n(g,h,r,a,o))){p=!1;break}}return o.delete(e),o.delete(t),p}var cl=Rt.Uint8Array;function Cx(e){var t=-1,r=Array(e.size);return e.forEach(function(a,n){r[++t]=[n,a]}),r}function Px(e){var t=-1,r=Array(e.size);return e.forEach(function(a){r[++t]=a}),r}var Vx=1,Rx=2,_x="[object Boolean]",Ax="[object Date]",Tx="[object Error]",Ex="[object Map]",Ix="[object Number]",Mx="[object RegExp]",jx="[object Set]",$x="[object String]",Ux="[object Symbol]",Lx="[object ArrayBuffer]",kx="[object DataView]",dl=Xt?Xt.prototype:void 0,Mo=dl?dl.valueOf:void 0;function Bx(e,t,r,a,n,o,s){switch(r){case kx:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Lx:return!(e.byteLength!=t.byteLength||!o(new cl(e),new cl(t)));case _x:case Ax:case Ix:return ad(+e,+t);case Tx:return e.name==t.name&&e.message==t.message;case Mx:case $x:return e==t+"";case Ex:var i=Cx;case jx:var l=a&Vx;if(i||(i=Px),e.size!=t.size&&!l)return!1;var c=s.get(e);if(c)return c==t;a|=Rx,s.set(e,t);var d=od(i(e),i(t),a,n,o,s);return s.delete(e),d;case Ux:if(Mo)return Mo.call(e)==Mo.call(t)}return!1}function Fx(e,t){for(var r=-1,a=t.length,n=e.length;++r<a;)e[n+r]=t[r];return e}var Vt=Array.isArray;function Nx(e,t,r){var a=t(e);return Vt(e)?a:Fx(a,r(e))}function Dx(e,t){for(var r=-1,a=e==null?0:e.length,n=0,o=[];++r<a;){var s=e[r];t(s,r,e)&&(o[n++]=s)}return o}function zx(){return[]}var Gx=Object.prototype,Jx=Gx.propertyIsEnumerable,ul=Object.getOwnPropertySymbols,Hx=ul?function(e){return e==null?[]:(e=Object(e),Dx(ul(e),function(t){return Jx.call(e,t)}))}:zx;function qx(e,t){for(var r=-1,a=Array(e);++r<e;)a[r]=t(r);return a}var Wx="[object Arguments]";function pl(e){return ur(e)&&fr(e)==Wx}var sd=Object.prototype,Kx=sd.hasOwnProperty,Qx=sd.propertyIsEnumerable,id=pl(function(){return arguments}())?pl:function(e){return ur(e)&&Kx.call(e,"callee")&&!Qx.call(e,"callee")};function Yx(){return!1}var ld=typeof exports=="object"&&exports&&!exports.nodeType&&exports,hl=ld&&typeof module=="object"&&module&&!module.nodeType&&module,Xx=hl&&hl.exports===ld,ml=Xx?Rt.Buffer:void 0,Zx=ml?ml.isBuffer:void 0,as=Zx||Yx,eO=9007199254740991,tO=/^(?:0|[1-9]\d*)$/;function cd(e,t){var r=typeof e;return t=t??eO,!!t&&(r=="number"||r!="symbol"&&tO.test(e))&&e>-1&&e%1==0&&e<t}var rO=9007199254740991;function xs(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=rO}var aO="[object Arguments]",nO="[object Array]",oO="[object Boolean]",sO="[object Date]",iO="[object Error]",lO="[object Function]",cO="[object Map]",dO="[object Number]",uO="[object Object]",pO="[object RegExp]",hO="[object Set]",mO="[object String]",fO="[object WeakMap]",gO="[object ArrayBuffer]",yO="[object DataView]",bO="[object Float32Array]",SO="[object Float64Array]",vO="[object Int8Array]",xO="[object Int16Array]",OO="[object Int32Array]",wO="[object Uint8Array]",CO="[object Uint8ClampedArray]",PO="[object Uint16Array]",VO="[object Uint32Array]",we={};we[bO]=we[SO]=we[vO]=we[xO]=we[OO]=we[wO]=we[CO]=we[PO]=we[VO]=!0;we[aO]=we[nO]=we[gO]=we[oO]=we[yO]=we[sO]=we[iO]=we[lO]=we[cO]=we[dO]=we[uO]=we[pO]=we[hO]=we[mO]=we[fO]=!1;function RO(e){return ur(e)&&xs(e.length)&&!!we[fr(e)]}function _O(e){return function(t){return e(t)}}var dd=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Va=dd&&typeof module=="object"&&module&&!module.nodeType&&module,AO=Va&&Va.exports===dd,jo=AO&&cc.process,fl=function(){try{var e=Va&&Va.require&&Va.require("util").types;return e||jo&&jo.binding&&jo.binding("util")}catch{}}(),gl=fl&&fl.isTypedArray,ud=gl?_O(gl):RO,TO=Object.prototype,EO=TO.hasOwnProperty;function IO(e,t){var r=Vt(e),a=!r&&id(e),n=!r&&!a&&as(e),o=!r&&!a&&!n&&ud(e),s=r||a||n||o,i=s?qx(e.length,String):[],l=i.length;for(var c in e)EO.call(e,c)&&!(s&&(c=="length"||n&&(c=="offset"||c=="parent")||o&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||cd(c,l)))&&i.push(c);return i}var MO=Object.prototype;function jO(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||MO;return e===r}function $O(e,t){return function(r){return e(t(r))}}var UO=$O(Object.keys,Object),LO=Object.prototype,kO=LO.hasOwnProperty;function BO(e){if(!jO(e))return UO(e);var t=[];for(var r in Object(e))kO.call(e,r)&&r!="constructor"&&t.push(r);return t}function pd(e){return e!=null&&xs(e.length)&&!nd(e)}function Os(e){return pd(e)?IO(e):BO(e)}function yl(e){return Nx(e,Os,Hx)}var FO=1,NO=Object.prototype,DO=NO.hasOwnProperty;function zO(e,t,r,a,n,o){var s=r&FO,i=yl(e),l=i.length,c=yl(t),d=c.length;if(l!=d&&!s)return!1;for(var u=l;u--;){var p=i[u];if(!(s?p in t:DO.call(t,p)))return!1}var f=o.get(e),g=o.get(t);if(f&&g)return f==t&&g==e;var h=!0;o.set(e,t),o.set(t,e);for(var x=s;++u<l;){p=i[u];var E=e[p],U=t[p];if(a)var F=s?a(U,E,p,t,e,o):a(E,U,p,e,t,o);if(!(F===void 0?E===U||n(E,U,r,a,o):F)){h=!1;break}x||(x=p=="constructor")}if(h&&!x){var N=e.constructor,G=t.constructor;N!=G&&"constructor"in e&&"constructor"in t&&!(typeof N=="function"&&N instanceof N&&typeof G=="function"&&G instanceof G)&&(h=!1)}return o.delete(e),o.delete(t),h}var ns=br(Rt,"DataView"),os=br(Rt,"Promise"),ss=br(Rt,"Set"),is=br(Rt,"WeakMap"),bl="[object Map]",GO="[object Object]",Sl="[object Promise]",vl="[object Set]",xl="[object WeakMap]",Ol="[object DataView]",JO=yr(ns),HO=yr($a),qO=yr(os),WO=yr(ss),KO=yr(is),qt=fr;(ns&&qt(new ns(new ArrayBuffer(1)))!=Ol||$a&&qt(new $a)!=bl||os&&qt(os.resolve())!=Sl||ss&&qt(new ss)!=vl||is&&qt(new is)!=xl)&&(qt=function(e){var t=fr(e),r=t==GO?e.constructor:void 0,a=r?yr(r):"";if(a)switch(a){case JO:return Ol;case HO:return bl;case qO:return Sl;case WO:return vl;case KO:return xl}return t});var QO=1,wl="[object Arguments]",Cl="[object Array]",tn="[object Object]",YO=Object.prototype,Pl=YO.hasOwnProperty;function XO(e,t,r,a,n,o){var s=Vt(e),i=Vt(t),l=s?Cl:qt(e),c=i?Cl:qt(t);l=l==wl?tn:l,c=c==wl?tn:c;var d=l==tn,u=c==tn,p=l==c;if(p&&as(e)){if(!as(t))return!1;s=!0,d=!1}if(p&&!d)return o||(o=new jt),s||ud(e)?od(e,t,r,a,n,o):Bx(e,t,l,r,a,n,o);if(!(r&QO)){var f=d&&Pl.call(e,"__wrapped__"),g=u&&Pl.call(t,"__wrapped__");if(f||g){var h=f?e.value():e,x=g?t.value():t;return o||(o=new jt),n(h,x,r,a,o)}}return p?(o||(o=new jt),zO(e,t,r,a,n,o)):!1}function no(e,t,r,a,n){return e===t?!0:e==null||t==null||!ur(e)&&!ur(t)?e!==e&&t!==t:XO(e,t,r,a,no,n)}function ZO(e,t){return no(e,t)}const hd=({store:e})=>{const{t}=Me.useTranslation(),[r,a]=ae.useState(e.jogger.motionStream.rapidlyChangingMotionState.state.joint_limit_reached.limit_reached),n=ae.useRef(r);Wr(()=>{const s=e.jogger.motionStream.rapidlyChangingMotionState.state.joint_limit_reached.limit_reached;ZO(n.current,s)||(n.current=s,a(s))});const o=[];for(const[s,i]of r.entries())i&&o.push(s);return b.jsx(q.Typography,{color:"error",sx:{margin:"0.5rem 1rem",textAlign:"center",minHeight:"1.5rem",visibility:o.length?"visible":"hidden"},children:t("Jogging.JointLimitsReached.lb",{jointNumbers:o.map(s=>s+1).join(", ")})})},ew=q.styled(q.FormControl)(({theme:e})=>({"&.MuiFormControl-root":{".MuiSelect-select":{paddingTop:"20px",paddingLeft:"12px"},label:{pointerEvents:"none",fontSize:"16px"},".MuiInputLabel-root":{"&.Mui-focused":{color:e.palette.text.primary}}}}));function rn({labelValue:e,...t}){return b.jsxs(ew,{fullWidth:!0,variant:"filled",children:[b.jsx(q.InputLabel,{id:t.labelId,children:e}),b.jsx(q.Select,{...t})]})}var Vl=function(){try{var e=br(Object,"defineProperty");return e({},"",{}),e}catch{}}();function tw(e,t,r){t=="__proto__"&&Vl?Vl(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function rw(e,t,r,a){for(var n=-1,o=e==null?0:e.length;++n<o;){var s=e[n];t(a,s,r(s),e)}return a}function aw(e){return function(t,r,a){for(var n=-1,o=Object(t),s=a(t),i=s.length;i--;){var l=s[++n];if(r(o[l],l,o)===!1)break}return t}}var nw=aw();function ow(e,t){return e&&nw(e,t,Os)}function sw(e,t){return function(r,a){if(r==null)return r;if(!pd(r))return e(r,a);for(var n=r.length,o=-1,s=Object(r);++o<n&&a(s[o],o,s)!==!1;);return r}}var iw=sw(ow);function lw(e,t,r,a){return iw(e,function(n,o,s){t(a,n,r(n),s)}),a}var cw=1,dw=2;function uw(e,t,r,a){var n=r.length,o=n;if(e==null)return!o;for(e=Object(e);n--;){var s=r[n];if(s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++n<o;){s=r[n];var i=s[0],l=e[i],c=s[1];if(s[2]){if(l===void 0&&!(i in e))return!1}else{var d=new jt,u;if(!(u===void 0?no(c,l,cw|dw,a,d):u))return!1}}return!0}function md(e){return e===e&&!dr(e)}function pw(e){for(var t=Os(e),r=t.length;r--;){var a=t[r],n=e[a];t[r]=[a,n,md(n)]}return t}function fd(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}function hw(e){var t=pw(e);return t.length==1&&t[0][2]?fd(t[0][0],t[0][1]):function(r){return r===e||uw(r,e,t)}}var mw=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,fw=/^\w*$/;function ws(e,t){if(Vt(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||Hn(e)?!0:fw.test(e)||!mw.test(e)||t!=null&&e in Object(t)}var gw="Expected a function";function Cs(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(gw);var r=function(){var a=arguments,n=t?t.apply(this,a):a[0],o=r.cache;if(o.has(n))return o.get(n);var s=e.apply(this,a);return r.cache=o.set(n,s)||o,s};return r.cache=new(Cs.Cache||kt),r}Cs.Cache=kt;var yw=500;function bw(e){var t=Cs(e,function(a){return r.size===yw&&r.clear(),a}),r=t.cache;return t}var Sw=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,vw=/\\(\\)?/g,xw=bw(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Sw,function(r,a,n,o){t.push(n?o.replace(vw,"$1"):a||r)}),t});function Ow(e,t){for(var r=-1,a=e==null?0:e.length,n=Array(a);++r<a;)n[r]=t(e[r],r,e);return n}var Rl=Xt?Xt.prototype:void 0,_l=Rl?Rl.toString:void 0;function gd(e){if(typeof e=="string")return e;if(Vt(e))return Ow(e,gd)+"";if(Hn(e))return _l?_l.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function yd(e){return e==null?"":gd(e)}function bd(e,t){return Vt(e)?e:ws(e,t)?[e]:xw(yd(e))}function oo(e){if(typeof e=="string"||Hn(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function Sd(e,t){t=bd(t,e);for(var r=0,a=t.length;e!=null&&r<a;)e=e[oo(t[r++])];return r&&r==a?e:void 0}function ww(e,t,r){var a=e==null?void 0:Sd(e,t);return a===void 0?r:a}function Cw(e,t){return e!=null&&t in Object(e)}function Pw(e,t,r){t=bd(t,e);for(var a=-1,n=t.length,o=!1;++a<n;){var s=oo(t[a]);if(!(o=e!=null&&r(e,s)))break;e=e[s]}return o||++a!=n?o:(n=e==null?0:e.length,!!n&&xs(n)&&cd(s,n)&&(Vt(e)||id(e)))}function Vw(e,t){return e!=null&&Pw(e,t,Cw)}var Rw=1,_w=2;function Aw(e,t){return ws(e)&&md(t)?fd(oo(e),t):function(r){var a=ww(r,e);return a===void 0&&a===t?Vw(r,e):no(t,a,Rw|_w)}}function Tw(e){return e}function Ew(e){return function(t){return t==null?void 0:t[e]}}function Iw(e){return function(t){return Sd(t,e)}}function Mw(e){return ws(e)?Ew(oo(e)):Iw(e)}function jw(e){return typeof e=="function"?e:e==null?Tw:typeof e=="object"?Vt(e)?Aw(e[0],e[1]):hw(e):Mw(e)}function $w(e,t){return function(r,a){var n=Vt(r)?rw:lw,o={};return n(r,e,jw(a),o)}}var an=$w(function(e,t,r){tw(e,r,t)}),Uw=0;function Lw(e){var t=++Uw;return yd(e)+t}const ls=[{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}],kw=[{id:"continuous"},...ls],Bw=["coordsys","tool"];class so{constructor(t,r,a,n){var o,s;this.jogger=t,this.motionGroupSpec=r,this.coordSystems=a,this.tcps=n,this.selectedTabId="cartesian",this.activationState="inactive",this.activationError=null,this.activationCounter=0,this.locks=new Set,this.selectedCoordSystemId="world",this.selectedTcpId="",this.selectedOrientation="coordsys",this.selectedIncrementId="continuous",this.selectedCartesianMotionType="translate",this.incrementJogInProgress=null,this.translationVelocityMmPerSec=10,this.rotationVelocityDegPerSec=1,this.minTranslationVelocityMmPerSec=5,this.maxTranslationVelocityMmPerSec=250,this.minRotationVelocityDegPerSec=1,this.maxRotationVelocityDegPerSec=60,this.showCoordSystemSelect=!0,this.showTcpSelect=!0,this.showOrientationSelect=!0,this.showIncrementSelect=!0,this.showTabIcons=!1,this.showVelocitySliderLabel=!0,this.showVelocityLegend=!1,this.showJointsLegend=!1,this.disposers=[];for(const i of a)if(i.coordinate_system===""){i.coordinate_system="world";break}this.selectedCoordSystemId=((o=a[0])==null?void 0:o.coordinate_system)||"world",this.selectedTcpId=((s=n[0])==null?void 0:s.id)||"",Be.makeAutoObservable(this,{},{autoBind:!0}),this.loadFromLocalStorage(),this.disposers.push(Be.autorun(()=>this.saveToLocalStorage())),window.joggingStore=this}static async loadFor(t){const{nova:r}=t,[a,{coordinatesystems:n},{tcps:o}]=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 so(t,a,n||[],o||[])}dispose(){for(const t of this.disposers)t();this.jogger.dispose()}get coordSystemCountByName(){return cs.countBy(this.coordSystems,t=>t.name)}async deactivate(){const t=this.jogger.activeWebsocket;this.jogger.setJoggingMode("increment"),t&&await t.closed()}async activate(){if(this.currentTab.id==="cartesian"){const t={tcpId:this.selectedTcpId,coordSystemId:this.activeCoordSystemId};this.activeDiscreteIncrement?this.jogger.setJoggingMode("increment",t):this.jogger.setJoggingMode("cartesian",t)}else this.jogger.setJoggingMode("joint");return this.jogger}loadFromLocalStorage(){const t=ir.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 kw}get discreteIncrementOptions(){return ls}get incrementOptionsById(){return an(this.incrementOptions,t=>t.id)}get tabsById(){return an(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 an(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 an(this.tcps,t=>t.id)}get activeDiscreteIncrement(){return this.selectedOrientation==="tool"?void 0:ls.find(t=>t.id===this.selectedIncrementId)}get rotationVelocityRadsPerSec(){return this.rotationVelocityDegPerSec*Math.PI/180}get velocityInDisplayUnits(){return this.currentMotionType==="translate"?this.translationVelocityMmPerSec:this.rotationVelocityDegPerSec}get minVelocityInDisplayUnits(){return this.currentMotionType==="translate"?this.minTranslationVelocityMmPerSec:this.minRotationVelocityDegPerSec}get maxVelocityInDisplayUnits(){return this.currentMotionType==="translate"?this.maxTranslationVelocityMmPerSec:this.maxRotationVelocityDegPerSec}get currentMotionType(){return this.selectedTabId==="cartesian"&&this.selectedCartesianMotionType==="translate"?"translate":"rotate"}onTabChange(t,r){const a=this.tabs[r]||this.tabs[0];this.selectedTabId=a.id}setSelectedCoordSystemId(t){this.selectedCoordSystemId=t}setSelectedTcpId(t){this.selectedTcpId=t}setSelectedOrientation(t){this.selectedOrientation=t}setSelectedIncrementId(t){this.selectedIncrementId=t}setCurrentIncrementJog(t){this.incrementJogInProgress=t}setVelocityFromSlider(t){this.currentMotionType==="translate"?this.translationVelocityMmPerSec=t:this.rotationVelocityDegPerSec=t}setSelectedCartesianMotionType(t){this.selectedCartesianMotionType=t}lock(t){this.locks.add(t)}unlock(t){this.locks.delete(t)}async withMotionLock(t){const r=Lw();this.lock(r);try{return await t()}finally{this.unlock(r)}}}const Fw=ke.observer(({store:e})=>{var n;const{t}=Me.useTranslation(),r=[];function a(o){switch(o){case"coordsys":return t("Jogging.Orientation.coordsys");case"tool":return t("Jogging.Orientation.tool");default:return o}}return e.showCoordSystemSelect&&r.push(b.jsx(rn,{labelId:"jogging-coord-select",labelValue:t("Jogging.CoordinateSystem.hlb"),value:e.selectedCoordSystemId,size:"small",variant:"filled",displayEmpty:!0,onChange:o=>e.setSelectedCoordSystemId(o.target.value),disabled:e.isLocked,children:e.coordSystems.map(o=>b.jsx(q.MenuItem,{value:o.coordinate_system,children:o.name&&e.coordSystemCountByName[o.name]>1?`${o.name} / ${o.coordinate_system}`:o.name||o.coordinate_system},o.coordinate_system))},"coord")),e.showTcpSelect&&r.push(b.jsx(rn,{labelId:"jogging-tcp-select",labelValue:"TCP",value:e.selectedTcpId,size:"small",variant:"filled",onChange:o=>e.setSelectedTcpId(o.target.value),disabled:e.isLocked,children:e.tcps.map(o=>b.jsx(q.MenuItem,{value:o.id,children:o.id},o.id))},"tcp")),e.showOrientationSelect&&r.push(b.jsx(rn,{labelValue:t("Jogging.Cartesian.Orientation.lb"),id:"orientation-select",labelId:"orientation-select",value:e.selectedOrientation,onChange:o=>e.setSelectedOrientation(o.target.value),disabled:e.isLocked,children:Bw.map(o=>b.jsx(q.MenuItem,{value:o,children:a(o)},o))},"orientation")),e.showIncrementSelect&&r.push(b.jsxs(rn,{labelValue:t("Jogging.Increment.hlb"),labelId:"jogging-increment-select",size:"small",variant:"filled",value:((n=e.activeDiscreteIncrement)==null?void 0:n.id)||"continuous",onChange:o=>e.setSelectedIncrementId(o.target.value),disabled:e.isLocked,children:[b.jsx(q.MenuItem,{value:"continuous",children:t("Jogging.Increment.Continuous.dd")},"continuous"),e.selectedOrientation==="tool"?null:e.discreteIncrementOptions.map(o=>b.jsx(q.MenuItem,{value:o.id,children:e.currentMotionType==="translate"?`${o.mm}mm`:`${o.degrees}°`},o.id))]},"increment")),b.jsx(q.Box,{component:"div",sx:{display:"grid",gap:"16px",gridTemplateColumns:"1fr 1fr",gridAutoRows:"min-content","& label":{opacity:.7,fontSize:"12px",marginBottom:"4px"}},children:r.map((o,s)=>b.jsx(q.Box,{sx:{gridColumn:r.length%2===1&&s===r.length-1?"span 2":"auto"},children:o},s))})}),Nw=q.styled(q.ToggleButtonGroup)(({theme:e})=>{var t;return{"&.MuiToggleButtonGroup-root":{background:(t=e.palette.backgroundPaperElevation)==null?void 0:t[8],borderRadius:"8px",padding:"4px",gap:"4px",button:{border:"none",borderRadius:"4px",flex:"1 1 0px",minWidth:0,"&.MuiToggleButtonGroup-firstButton":{borderRadius:"8px 4px 4px 8px"},"&.MuiToggleButtonGroup-lastButton":{borderRadius:"4px 8px 8px 4px"}}}}});function Dw(e,t,r=(a,n)=>a===n){return e.length===t.length&&e.every((a,n)=>r(a,t[n]))}const zw=2;function kr(e,t,r,a,n){return r===1?Math.min(e+t,n):Math.max(e-t,a)}function vd(e,t){return e-t}function Al(e,t){const{index:r}=e.reduce((a,n,o)=>{const s=Math.abs(t-n);return a===null||s<a.distance||s===a.distance?{distance:s,index:o}:a},null)??{};return r}function nn(e,t){if(t.current!==void 0&&e.changedTouches){const r=e;for(let a=0;a<r.changedTouches.length;a+=1){const n=r.changedTouches[a];if(n.identifier===t.current)return{x:n.clientX,y:n.clientY}}return!1}return{x:e.clientX,y:e.clientY}}function Tn(e,t,r){return(e-t)*100/(r-t)}function Gw(e,t,r){return(r-t)*e+t}function Jw(e){if(Math.abs(e)<1){const r=e.toExponential().split("e-"),a=r[0].split(".")[1];return(a?a.length:0)+parseInt(r[1],10)}const t=e.toString().split(".")[1];return t?t.length:0}function Hw(e,t,r){const a=Math.round((e-r)/t)*t+r;return Number(a.toFixed(Jw(t)))}function Tl({values:e,newValue:t,index:r}){const a=e.slice();return a[r]=t,a.sort(vd)}function on({sliderRef:e,activeIndex:t,setActive:r}){var n,o,s;const a=dn(e.current);(!((n=e.current)!=null&&n.contains(a.activeElement))||Number((o=a==null?void 0:a.activeElement)==null?void 0:o.getAttribute("data-index"))!==t)&&((s=e.current)==null||s.querySelector(`[type="range"][data-index="${t}"]`).focus()),r&&r(t)}function sn(e,t){return typeof e=="number"&&typeof t=="number"?e===t:typeof e=="object"&&typeof t=="object"?Dw(e,t):!1}const qw={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}%`})}},Ww=e=>e;let ln;function El(){return ln===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?ln=CSS.supports("touch-action","none"):ln=!0),ln}function Kw(e){const{"aria-labelledby":t,defaultValue:r,disabled:a=!1,disableSwap:n=!1,isRtl:o=!1,marks:s=!1,max:i=100,min:l=0,name:c,onChange:d,onChangeCommitted:u,orientation:p="horizontal",rootRef:f,scale:g=Ww,step:h=1,shiftStep:x=10,tabIndex:E,value:U}=e,F=J.useRef(void 0),[N,G]=J.useState(-1),[K,j]=J.useState(-1),[L,k]=J.useState(!1),y=J.useRef(0),M=J.useRef(null),[B,z]=Fp({controlled:U,default:r??l,name:"Slider"}),D=d&&((W,Q,ee)=>{const de=W.nativeEvent||W,he=new de.constructor(de.type,de);Object.defineProperty(he,"target",{writable:!0,value:{value:Q,name:c}}),M.current=Q,d(he,Q,ee)}),re=Array.isArray(B);let Z=re?B.slice().sort(vd):[B];Z=Z.map(W=>W==null?l:Br(W,l,i));const xe=s===!0&&h!==null?[...Array(Math.floor((i-l)/h)+1)].map((W,Q)=>({value:l+h*Q})):s||[],X=xe.map(W=>W.value),[ce,fe]=J.useState(-1),le=J.useRef(null),He=Xl(f,le),_t=W=>Q=>{var de;const ee=Number(Q.currentTarget.getAttribute("data-index"));Ks(Q.target)&&fe(ee),j(ee),(de=W==null?void 0:W.onFocus)==null||de.call(W,Q)},ra=W=>Q=>{var ee;Ks(Q.target)||fe(-1),j(-1),(ee=W==null?void 0:W.onBlur)==null||ee.call(W,Q)},Sr=(W,Q)=>{const ee=Number(W.currentTarget.getAttribute("data-index")),de=Z[ee],he=X.indexOf(de);let te=Q;if(xe&&h==null){const $e=X[X.length-1];te>=$e?te=$e:te<=X[0]?te=X[0]:te=te<de?X[he-1]:X[he+1]}if(te=Br(te,l,i),re){n&&(te=Br(te,Z[ee-1]||-1/0,Z[ee+1]||1/0));const $e=te;te=Tl({values:Z,newValue:te,index:ee});let De=ee;n||(De=te.indexOf($e)),on({sliderRef:le,activeIndex:De})}z(te),fe(ee),D&&!sn(te,B)&&D(W,te,ee),u&&u(W,M.current??te)},er=W=>Q=>{var ee;if(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight","PageUp","PageDown","Home","End"].includes(Q.key)){Q.preventDefault();const de=Number(Q.currentTarget.getAttribute("data-index")),he=Z[de];let te=null;if(h!=null){const $e=Q.shiftKey?x:h;switch(Q.key){case"ArrowUp":te=kr(he,$e,1,l,i);break;case"ArrowRight":te=kr(he,$e,o?-1:1,l,i);break;case"ArrowDown":te=kr(he,$e,-1,l,i);break;case"ArrowLeft":te=kr(he,$e,o?1:-1,l,i);break;case"PageUp":te=kr(he,x,1,l,i);break;case"PageDown":te=kr(he,x,-1,l,i);break;case"Home":te=l;break;case"End":te=i;break}}else if(xe){const $e=X[X.length-1],De=X.indexOf(he),Te=[o?"ArrowRight":"ArrowLeft","ArrowDown","PageDown","Home"],Qe=[o?"ArrowLeft":"ArrowRight","ArrowUp","PageUp","End"];Te.includes(Q.key)?De===0?te=X[0]:te=X[De-1]:Qe.includes(Q.key)&&(De===X.length-1?te=$e:te=X[De+1])}te!=null&&Sr(Q,te)}(ee=W==null?void 0:W.onKeyDown)==null||ee.call(W,Q)};Ql(()=>{var W;a&&le.current.contains(document.activeElement)&&((W=document.activeElement)==null||W.blur())},[a]),a&&N!==-1&&G(-1),a&&ce!==-1&&fe(-1);const Bt=W=>Q=>{var ee;(ee=W.onChange)==null||ee.call(W,Q),Sr(Q,Q.target.valueAsNumber)},nt=J.useRef(void 0);let dt=p;o&&p==="horizontal"&&(dt+="-reverse");const ot=({finger:W,move:Q=!1})=>{const{current:ee}=le,{width:de,height:he,bottom:te,left:$e}=ee.getBoundingClientRect();let De;dt.startsWith("vertical")?De=(te-W.y)/he:De=(W.x-$e)/de,dt.includes("-reverse")&&(De=1-De);let Te;if(Te=Gw(De,l,i),h)Te=Hw(Te,h,l);else{const tr=Al(X,Te);Te=X[tr]}Te=Br(Te,l,i);let Qe=0;if(re){Q?Qe=nt.current:Qe=Al(Z,Te),n&&(Te=Br(Te,Z[Qe-1]||-1/0,Z[Qe+1]||1/0));const tr=Te;Te=Tl({values:Z,newValue:Te,index:Qe}),n&&Q||(Qe=Te.indexOf(tr),nt.current=Qe)}return{newValue:Te,activeIndex:Qe}},At=fo(W=>{const Q=nn(W,F);if(!Q)return;if(y.current+=1,W.type==="mousemove"&&W.buttons===0){et(W);return}const{newValue:ee,activeIndex:de}=ot({finger:Q,move:!0});on({sliderRef:le,activeIndex:de,setActive:G}),z(ee),!L&&y.current>zw&&k(!0),D&&!sn(ee,B)&&D(W,ee,de)}),et=fo(W=>{const Q=nn(W,F);if(k(!1),!Q)return;const{newValue:ee}=ot({finger:Q,move:!0});G(-1),W.type==="touchend"&&j(-1),u&&u(W,M.current??ee),F.current=void 0,Tt()}),Ne=fo(W=>{if(a)return;El()||W.preventDefault();const Q=W.changedTouches[0];Q!=null&&(F.current=Q.identifier);const ee=nn(W,F);if(ee!==!1){const{newValue:he,activeIndex:te}=ot({finger:ee});on({sliderRef:le,activeIndex:te,setActive:G}),z(he),D&&!sn(he,B)&&D(W,he,te)}y.current=0;const de=dn(le.current);de.addEventListener("touchmove",At,{passive:!0}),de.addEventListener("touchend",et,{passive:!0})}),Tt=J.useCallback(()=>{const W=dn(le.current);W.removeEventListener("mousemove",At),W.removeEventListener("mouseup",et),W.removeEventListener("touchmove",At),W.removeEventListener("touchend",et)},[et,At]);J.useEffect(()=>{const{current:W}=le;return W.addEventListener("touchstart",Ne,{passive:El()}),()=>{W.removeEventListener("touchstart",Ne),Tt()}},[Tt,Ne]),J.useEffect(()=>{a&&Tt()},[a,Tt]);const Ft=W=>Q=>{var he;if((he=W.onMouseDown)==null||he.call(W,Q),a||Q.defaultPrevented||Q.button!==0)return;Q.preventDefault();const ee=nn(Q,F);if(ee!==!1){const{newValue:te,activeIndex:$e}=ot({finger:ee});on({sliderRef:le,activeIndex:$e,setActive:G}),z(te),D&&!sn(te,B)&&D(Q,te,$e)}y.current=0;const de=dn(le.current);de.addEventListener("mousemove",At,{passive:!0}),de.addEventListener("mouseup",et)},yt=Tn(re?Z[0]:l,l,i),Fe=Tn(Z[Z.length-1],l,i)-yt,Nt=(W={})=>{const Q=un(W),ee={onMouseDown:Ft(Q||{})},de={...Q,...ee};return{...W,ref:He,...de}},Et=W=>Q=>{var de;(de=W.onMouseOver)==null||de.call(W,Q);const ee=Number(Q.currentTarget.getAttribute("data-index"));j(ee)},vr=W=>Q=>{var ee;(ee=W.onMouseLeave)==null||ee.call(W,Q),j(-1)},xr=(W={})=>{const Q=un(W),ee={onMouseOver:Et(Q||{}),onMouseLeave:vr(Q||{})};return{...W,...Q,...ee}},Dt=W=>({pointerEvents:N!==-1&&N!==W?"none":void 0});let zt;return p==="vertical"&&(zt=o?"vertical-rl":"vertical-lr"),{active:N,axis:dt,axisProps:qw,dragging:L,focusedThumbIndex:ce,getHiddenInputProps:(W={})=>{const Q=un(W),ee={onChange:Bt(Q||{}),onFocus:_t(Q||{}),onBlur:ra(Q||{}),onKeyDown:er(Q||{})},de={...Q,...ee};return{tabIndex:E,"aria-labelledby":t,"aria-orientation":p,"aria-valuemax":g(i),"aria-valuemin":g(l),name:c,type:"range",min:e.min,max:e.max,step:e.step===null&&e.marks?"any":e.step??void 0,disabled:a,...W,...de,style:{...Np,direction:o?"rtl":"ltr",width:"100%",height:"100%",writingMode:zt}}},getRootProps:Nt,getThumbProps:xr,marks:xe,open:K,range:re,rootRef:He,trackLeap:Fe,trackOffset:yt,values:Z,getThumbStyle:Dt}}function fn(e){return typeof e=="string"}const Qw=e=>!e||!fn(e);function Yw(e){return typeof e.main=="string"}function Xw(e,t=[]){if(!Yw(e))return!1;for(const r of t)if(!e.hasOwnProperty(r)||typeof e[r]!="string")return!1;return!0}function Ps(e=[]){return([,t])=>t&&Xw(t,e)}function Zw(e){return Ba("MuiSlider",e)}const lt=Gl("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"]),eC=e=>{const{open:t}=e;return{offset:Pt(t&&lt.valueLabelOpen),circle:lt.valueLabelCircle,label:lt.valueLabelLabel}};function xd(e){const{children:t,className:r,value:a}=e,n=eC(e);return t?J.cloneElement(t,{className:Pt(t.props.className)},b.jsxs(J.Fragment,{children:[t.props.children,b.jsx("span",{className:Pt(n.offset,r),"aria-hidden":!0,children:b.jsx("span",{className:n.circle,children:b.jsx("span",{className:n.label,children:a})})})]})):null}process.env.NODE_ENV!=="production"&&(xd.propTypes={children:S.element.isRequired,className:S.string,value:S.node});function Il(e){return e}const tC=$t("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`color${We(r.color)}`],r.size!=="medium"&&t[`size${We(r.size)}`],r.marked&&t.marked,r.orientation==="vertical"&&t.vertical,r.track==="inverted"&&t.trackInverted,r.track===!1&&t.trackFalse]}})(mr(({theme:e})=>({borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",WebkitTapHighlightColor:"transparent","@media print":{colorAdjust:"exact"},[`&.${lt.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${lt.dragging}`]:{[`& .${lt.thumb}, & .${lt.track}`]:{transition:"none"}},variants:[...Object.entries(e.palette).filter(Ps()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].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}}]}))),rC=$t("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}}]}),aC=$t("span",{name:"MuiSlider",slot:"Track",overridesResolver:(e,t)=>t.track})(mr(({theme:e})=>({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.entries(e.palette).filter(Ps()).map(([t])=>({props:{color:t,track:"inverted"},style:{...e.vars?{backgroundColor:e.vars.palette.Slider[`${t}Track`],borderColor:e.vars.palette.Slider[`${t}Track`]}:{backgroundColor:_a(e.palette[t].main,.62),borderColor:_a(e.palette[t].main,.62),...e.applyStyles("dark",{backgroundColor:Ra(e.palette[t].main,.5)}),...e.applyStyles("dark",{borderColor:Ra(e.palette[t].main,.5)})}}}))]}))),nC=$t("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.thumb,t[`thumbColor${We(r.color)}`],r.size!=="medium"&&t[`thumbSize${We(r.size)}`]]}})(mr(({theme:e})=>({position:"absolute",width:20,height:20,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:e.transitions.create(["box-shadow","left","bottom"],{duration:e.transitions.duration.shortest}),"&::before":{position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:(e.vars||e).shadows[2]},"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,height:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"},[`&.${lt.disabled}`]:{"&:hover":{boxShadow:"none"}},variants:[{props:{size:"small"},style:{width:12,height:12,"&::before":{boxShadow:"none"}}},{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-50%, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 50%)"}},...Object.entries(e.palette).filter(Ps()).map(([t])=>({props:{color:t},style:{[`&:hover, &.${lt.focusVisible}`]:{...e.vars?{boxShadow:`0px 0px 0px 8px rgba(${e.vars.palette[t].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 8px ${ko(e.palette[t].main,.16)}`},"@media (hover: none)":{boxShadow:"none"}},[`&.${lt.active}`]:{...e.vars?{boxShadow:`0px 0px 0px 14px rgba(${e.vars.palette[t].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 14px ${ko(e.palette[t].main,.16)}`}}}}))]}))),Od=$t(xd,{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(e,t)=>t.valueLabel})(mr(({theme:e})=>({zIndex:1,whiteSpace:"nowrap",...e.typography.body2,fontWeight:500,transition:e.transitions.create(["transform"],{duration:e.transitions.duration.shortest}),position:"absolute",backgroundColor:(e.vars||e).palette.grey[600],borderRadius:2,color:(e.vars||e).palette.common.white,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.25rem 0.75rem",variants:[{props:{orientation:"horizontal"},style:{transform:"translateY(-100%) scale(0)",top:"-10px",transformOrigin:"bottom center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, 50%) rotate(45deg)",backgroundColor:"inherit",bottom:0,left:"50%"},[`&.${lt.valueLabelOpen}`]:{transform:"translateY(-100%) scale(1)"}}},{props:{orientation:"vertical"},style:{transform:"translateY(-50%) scale(0)",right:"30px",top:"50%",transformOrigin:"right center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, -50%) rotate(45deg)",backgroundColor:"inherit",right:-8,top:"50%"},[`&.${lt.valueLabelOpen}`]:{transform:"translateY(-50%) scale(1)"}}},{props:{size:"small"},style:{fontSize:e.typography.pxToRem(12),padding:"0.25rem 0.5rem"}},{props:{orientation:"vertical",size:"small"},style:{right:"20px"}}]})));process.env.NODE_ENV!=="production"&&(Od.propTypes={children:S.element.isRequired,index:S.number.isRequired,open:S.bool.isRequired,value:S.node});const oC=$t("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>ms(e)&&e!=="markActive",overridesResolver:(e,t)=>{const{markActive:r}=e;return[t.mark,r&&t.markActive]}})(mr(({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}}]}))),sC=$t("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>ms(e)&&e!=="markLabelActive",overridesResolver:(e,t)=>t.markLabel})(mr(({theme:e})=>({...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}}]}))),iC=e=>{const{disabled:t,dragging:r,marked:a,orientation:n,track:o,classes:s,color:i,size:l}=e,c={root:["root",t&&"disabled",r&&"dragging",a&&"marked",n==="vertical"&&"vertical",o==="inverted"&&"trackInverted",o===!1&&"trackFalse",i&&`color${We(i)}`,l&&`size${We(l)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",l&&`thumbSize${We(l)}`,i&&`thumbColor${We(i)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return ps(c,Zw,s)},lC=({children:e})=>e,wd=J.forwardRef(function(t,r){const a=fs({props:t,name:"MuiSlider"}),n=qp(),{"aria-label":o,"aria-valuetext":s,"aria-labelledby":i,component:l="span",components:c={},componentsProps:d={},color:u="primary",classes:p,className:f,disableSwap:g=!1,disabled:h=!1,getAriaLabel:x,getAriaValueText:E,marks:U=!1,max:F=100,min:N=0,name:G,onChange:K,onChangeCommitted:j,orientation:L="horizontal",shiftStep:k=10,size:y="medium",step:M=1,scale:B=Il,slotProps:z,slots:D,tabIndex:re,track:Z="normal",value:xe,valueLabelDisplay:X="off",valueLabelFormat:ce=Il,...fe}=a,le={...a,isRtl:n,max:F,min:N,classes:p,disabled:h,disableSwap:g,orientation:L,marks:U,color:u,size:y,step:M,shiftStep:k,scale:B,track:Z,valueLabelDisplay:X,valueLabelFormat:ce},{axisProps:He,getRootProps:_t,getHiddenInputProps:ra,getThumbProps:Sr,open:er,active:Bt,axis:nt,focusedThumbIndex:dt,range:ot,dragging:At,marks:et,values:Ne,trackOffset:Tt,trackLeap:Ft,getThumbStyle:yt}=Kw({...le,rootRef:r});le.marked=et.length>0&&et.some(Ve=>Ve.label),le.dragging=At,le.focusedThumbIndex=dt;const Fe=iC(le),Nt=(D==null?void 0:D.root)??c.Root??tC,Et=(D==null?void 0:D.rail)??c.Rail??rC,vr=(D==null?void 0:D.track)??c.Track??aC,xr=(D==null?void 0:D.thumb)??c.Thumb??nC,Dt=(D==null?void 0:D.valueLabel)??c.ValueLabel??Od,zt=(D==null?void 0:D.mark)??c.Mark??oC,Or=(D==null?void 0:D.markLabel)??c.MarkLabel??sC,W=(D==null?void 0:D.input)??c.Input??"input",Q=(z==null?void 0:z.root)??d.root,ee=(z==null?void 0:z.rail)??d.rail,de=(z==null?void 0:z.track)??d.track,he=(z==null?void 0:z.thumb)??d.thumb,te=(z==null?void 0:z.valueLabel)??d.valueLabel,$e=(z==null?void 0:z.mark)??d.mark,De=(z==null?void 0:z.markLabel)??d.markLabel,Te=(z==null?void 0:z.input)??d.input,Qe=Gt({elementType:Nt,getSlotProps:_t,externalSlotProps:Q,externalForwardedProps:fe,additionalProps:{...Qw(Nt)&&{as:l}},ownerState:{...le,...Q==null?void 0:Q.ownerState},className:[Fe.root,f]}),tr=Gt({elementType:Et,externalSlotProps:ee,ownerState:le,className:Fe.rail}),io=Gt({elementType:vr,externalSlotProps:de,additionalProps:{style:{...He[nt].offset(Tt),...He[nt].leap(Ft)}},ownerState:{...le,...de==null?void 0:de.ownerState},className:Fe.track}),aa=Gt({elementType:xr,getSlotProps:Sr,externalSlotProps:he,ownerState:{...le,...he==null?void 0:he.ownerState},className:Fe.thumb}),na=Gt({elementType:Dt,externalSlotProps:te,ownerState:{...le,...te==null?void 0:te.ownerState},className:Fe.valueLabel}),wr=Gt({elementType:zt,externalSlotProps:$e,ownerState:le,className:Fe.mark}),bt=Gt({elementType:Or,externalSlotProps:De,ownerState:le,className:Fe.markLabel}),oa=Gt({elementType:W,getSlotProps:ra,externalSlotProps:Te,ownerState:le});return b.jsxs(Nt,{...Qe,children:[b.jsx(Et,{...tr}),b.jsx(vr,{...io}),et.filter(Ve=>Ve.value>=N&&Ve.value<=F).map((Ve,Ue)=>{const sa=Tn(Ve.value,N,F),rr=He[nt].offset(sa);let ut;return Z===!1?ut=Ne.includes(Ve.value):ut=Z==="normal"&&(ot?Ve.value>=Ne[0]&&Ve.value<=Ne[Ne.length-1]:Ve.value<=Ne[0])||Z==="inverted"&&(ot?Ve.value<=Ne[0]||Ve.value>=Ne[Ne.length-1]:Ve.value>=Ne[0]),b.jsxs(J.Fragment,{children:[b.jsx(zt,{"data-index":Ue,...wr,...!fn(zt)&&{markActive:ut},style:{...rr,...wr.style},className:Pt(wr.className,ut&&Fe.markActive)}),Ve.label!=null?b.jsx(Or,{"aria-hidden":!0,"data-index":Ue,...bt,...!fn(Or)&&{markLabelActive:ut},style:{...rr,...bt.style},className:Pt(Fe.markLabel,bt.className,ut&&Fe.markLabelActive),children:Ve.label}):null]},Ue)}),Ne.map((Ve,Ue)=>{const sa=Tn(Ve,N,F),rr=He[nt].offset(sa),ut=X==="off"?lC:Dt;return b.jsx(ut,{...!fn(ut)&&{valueLabelFormat:ce,valueLabelDisplay:X,value:typeof ce=="function"?ce(B(Ve),Ue):ce,index:Ue,open:er===Ue||Bt===Ue||X==="on",disabled:h},...na,children:b.jsx(xr,{"data-index":Ue,...aa,className:Pt(Fe.thumb,aa.className,Bt===Ue&&Fe.active,dt===Ue&&Fe.focusVisible),style:{...rr,...yt(Ue),...aa.style},children:b.jsx(W,{"data-index":Ue,"aria-label":x?x(Ue):o,"aria-valuenow":B(Ve),"aria-labelledby":i,"aria-valuetext":E?E(B(Ve),Ue):s,value:Ne[Ue],...oa})})},Ue)})]})});process.env.NODE_ENV!=="production"&&(wd.propTypes={"aria-label":Ws(S.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":S.string,"aria-valuetext":Ws(S.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:S.node,classes:S.object,className:S.string,color:S.oneOfType([S.oneOf(["primary","secondary","error","info","success","warning"]),S.string]),components:S.shape({Input:S.elementType,Mark:S.elementType,MarkLabel:S.elementType,Rail:S.elementType,Root:S.elementType,Thumb:S.elementType,Track:S.elementType,ValueLabel:S.elementType}),componentsProps:S.shape({input:S.oneOfType([S.func,S.object]),mark:S.oneOfType([S.func,S.object]),markLabel:S.oneOfType([S.func,S.object]),rail:S.oneOfType([S.func,S.object]),root:S.oneOfType([S.func,S.object]),thumb:S.oneOfType([S.func,S.object]),track:S.oneOfType([S.func,S.object]),valueLabel:S.oneOfType([S.func,S.shape({children:S.element,className:S.string,open:S.bool,style:S.object,value:S.node,valueLabelDisplay:S.oneOf(["auto","off","on"])})])}),defaultValue:S.oneOfType([S.arrayOf(S.number),S.number]),disabled:S.bool,disableSwap:S.bool,getAriaLabel:S.func,getAriaValueText:S.func,marks:S.oneOfType([S.arrayOf(S.shape({label:S.node,value:S.number.isRequired})),S.bool]),max:S.number,min:S.number,name:S.string,onChange:S.func,onChangeCommitted:S.func,orientation:S.oneOf(["horizontal","vertical"]),scale:S.func,shiftStep:S.number,size:S.oneOfType([S.oneOf(["small","medium"]),S.string]),slotProps:S.shape({input:S.oneOfType([S.func,S.object]),mark:S.oneOfType([S.func,S.object]),markLabel:S.oneOfType([S.func,S.object]),rail:S.oneOfType([S.func,S.object]),root:S.oneOfType([S.func,S.object]),thumb:S.oneOfType([S.func,S.object]),track:S.oneOfType([S.func,S.object]),valueLabel:S.oneOfType([S.func,S.shape({children:S.element,className:S.string,open:S.bool,style:S.object,value:S.node,valueLabelDisplay:S.oneOf(["auto","off","on"])})])}),slots:S.shape({input:S.elementType,mark:S.elementType,markLabel:S.elementType,rail:S.elementType,root:S.elementType,thumb:S.elementType,track:S.elementType,valueLabel:S.elementType}),step:S.number,sx:S.oneOfType([S.arrayOf(S.oneOfType([S.func,S.object,S.bool])),S.func,S.object]),tabIndex:S.number,track:S.oneOf(["inverted","normal",!1]),value:S.oneOfType([S.arrayOf(S.number),S.number]),valueLabelDisplay:S.oneOf(["auto","off","on"]),valueLabelFormat:S.oneOfType([S.func,S.string])});var cC="[object Number]";function dC(e){return typeof e=="number"||ur(e)&&fr(e)==cC}const Cd=ke.observer(e=>{var o,s,i;const t=q.useTheme(),{store:r}=e,{t:a}=Me.useTranslation();function n(l,c){c===e.velocity||!dC(c)||e.onVelocityChange(c)}return b.jsxs(q.Stack,{direction:"row",gap:2,alignItems:"center",children:[r.showVelocityLegend&&b.jsx(q.Typography,{sx:{color:(i=(s=(o=t.componentsExt)==null?void 0:o.JoggingPanel)==null?void 0:s.VelocitySlider)==null?void 0:i.sliderLegendColor,fontSize:"14px"},children:a("Jogging.Velocity.bt")}),b.jsx(wd,{value:e.velocity,color:"secondary",onChange:n,min:e.min,max:e.max,"aria-labelledby":"input-slider",disabled:e.disabled,sx:{"& .MuiSlider-valueLabelOpen":{zIndex:100,backgroundColor:"transparent",top:"0px"}}}),r.showVelocitySliderLabel&&(e.renderValue?e.renderValue(e.velocity):b.jsx(Vs,{value:e.velocity.toString()}))]})});function Vs({value:e,sx:t}){var a;const r=q.useTheme();return b.jsx(q.Stack,{direction:"row",justifyContent:"center",alignItems:"center",gap:"5px",sx:{padding:"6px 12px",background:(a=r.palette.backgroundPaperElevation)==null?void 0:a[8],borderRadius:"10px",minWidth:"111px",...t},children:b.jsx(q.Typography,{component:"span",sx:{textAlign:"right",fontSize:"14px",opacity:.8,color:r.palette.text.primary,whiteSpace:"nowrap"},children:e})})}const Pd=ke.observer(({store:e})=>{const{t}=Me.useTranslation(),r=ke.useLocalObservable(()=>({get valueLabelFormat(){return e.currentMotionType==="translate"?a=>`v = ${t("Jogging.Cartesian.Translation.velocityMmPerSec.lb",{amount:a})}`:a=>`ω = ${t("Jogging.Cartesian.Rotation.velocityDegPerSec.lb",{amount:a})}`}}));return b.jsx(Cd,{store:e,velocity:e.velocityInDisplayUnits,min:e.minVelocityInDisplayUnits,max:e.maxVelocityInDisplayUnits,onVelocityChange:e.setVelocityFromSlider,disabled:e.isLocked,renderValue:a=>b.jsx(Vs,{value:r.valueLabelFormat(a),sx:{minWidth:"111px",span:{transform:"translateY(-1.5px)"}}})})}),uC=ke.observer(({store:e,children:t})=>{const{t:r}=Me.useTranslation(),a=q.useTheme();function n(p,f){(f==="translate"||f==="rotate")&&e.setSelectedCartesianMotionType(f)}lc(()=>[e.selectedCoordSystemId,e.selectedTcpId],()=>{e.jogger.motionStream.motionStateSocket.changeUrl(e.jogger.nova.makeWebsocketURL(`/motion-groups/${e.jogger.motionGroupId}/state-stream?tcp=${e.selectedTcpId}&response_coordinate_system=${e.selectedCoordSystemId}`))},{fireImmediately:!0});async function o(p,f){const g=await e.activate(),h=g.motionStream.rapidlyChangingMotionState.tcp_pose,x=g.motionStream.rapidlyChangingMotionState.state.joint_position;h&&await e.withMotionLock(async()=>{try{e.setCurrentIncrementJog({axis:p.axis,direction:p.direction}),await e.jogger.runIncrementalCartesianMotion({currentTcpPose:h,currentJoints:x,coordSystemId:e.activeCoordSystemId,velocityInRelevantUnits:e.selectedCartesianMotionType==="translate"?e.translationVelocityMmPerSec:e.rotationVelocityRadsPerSec,axis:p.axis,direction:p.direction,motion:e.selectedCartesianMotionType==="translate"?{type:"translate",distanceMm:f.mm}:{type:"rotate",distanceRads:ir.degreesToRadians(f.degrees)}})}finally{e.setCurrentIncrementJog(null),await e.deactivate()}})}async function s(p){if(!e.isLocked){if(await e.activate(),e.activeDiscreteIncrement)return o(p,e.activeDiscreteIncrement);p.motionType==="translate"?await e.jogger.startTCPTranslation({axis:p.axis,direction:p.direction,velocityMmPerSec:e.translationVelocityMmPerSec}):await e.jogger.startTCPRotation({axis:p.axis,direction:p.direction,velocityRadsPerSec:e.rotationVelocityRadsPerSec})}}async function i(){e.isLocked||e.activeDiscreteIncrement||await e.deactivate()}function l(p,f,g){var x,E,U;const h=(U=(E=(x=g.componentsExt)==null?void 0:x.JoggingPanel)==null?void 0:E.JoggingCartesian)==null?void 0:U.Axis;if(h)return f==="translate"?h[p]:h.CustomRotation??h[p]}const c=[{id:"x",icon:b.jsx(b1,{}),colors:l("X",e.selectedCartesianMotionType,a)},{id:"y",icon:b.jsx(v1,{}),colors:l("Y",e.selectedCartesianMotionType,a)},{id:"z",icon:b.jsx(O1,{}),colors:l("Z",e.selectedCartesianMotionType,a)}];function d(p){return r("General.mm.variable",{amount:p.toFixed(1)})}function u(p){return r("General.degree.variable",{amount:ir.radiansToDegrees(p).toFixed(1)})}return b.jsxs(q.Stack,{flexGrow:1,gap:2,sx:{padding:"18px 24px"},children:[b.jsxs(q.Stack,{gap:2,children:[b.jsx(Fw,{store:e}),b.jsx(Pd,{store:e}),b.jsx(q.Divider,{})]}),b.jsx(q.Stack,{marginLeft:"auto",marginRight:"auto",gap:"24px",justifyContent:"center",sx:{flexGrow:"1"},children:b.jsxs(q.Stack,{alignItems:"center",justifyContent:"center",gap:"24px",sx:{flexGrow:1},children:[b.jsxs(Nw,{value:e.selectedCartesianMotionType,onChange:n,exclusive:!0,"aria-label":r("Jogging.Cartesian.MotionType.lb"),sx:{justifyContent:"center"},children:[b.jsx(q.ToggleButton,{value:"translate",children:r("Jogging.Cartesian.Translation.bt")}),b.jsx(q.ToggleButton,{value:"rotate",children:r("Jogging.Cartesian.Rotation.bt")})]}),e.selectedCartesianMotionType==="translate"&&c.map(p=>{var f,g;return b.jsx(No,{colors:p.colors,disabled:e.isLocked,activeJoggingDirection:((f=e.incrementJogInProgress)==null?void 0:f.axis)===p.id?e.incrementJogInProgress.direction:void 0,label:b.jsxs(b.Fragment,{children:[p.icon,b.jsx(q.Typography,{sx:{fontSize:"24px",color:((g=p.colors)==null?void 0:g.labelColor)??a.palette.text.primary},children:p.id.toUpperCase()})]}),getDisplayedValue:()=>{var h;return d(((h=e.jogger.motionStream.rapidlyChangingMotionState.tcp_pose)==null?void 0:h.position[p.id])||0)},startJogging:h=>s({axis:p.id,motionType:"translate",direction:h}),stopJogging:i},p.id)}),e.selectedCartesianMotionType==="rotate"&&c.map(p=>{var f,g;return b.jsx(No,{colors:p.colors,disabled:e.isLocked,activeJoggingDirection:((f=e.incrementJogInProgress)==null?void 0:f.axis)===p.id?e.incrementJogInProgress.direction:void 0,label:b.jsxs(b.Fragment,{children:[b.jsx(C1,{}),b.jsx(q.Typography,{sx:{fontSize:"24px",color:((g=p.colors)==null?void 0:g.labelColor)??a.palette.text.primary},children:p.id.toUpperCase()})]}),getDisplayedValue:()=>{var h,x;return u(((x=(h=e.jogger.motionStream.rapidlyChangingMotionState.tcp_pose)==null?void 0:h.orientation)==null?void 0:x[p.id])||0)},startJogging:h=>s({axis:p.id,motionType:"rotate",direction:h}),stopJogging:i},p.id)})]})}),b.jsx(hd,{store:e}),t&&b.jsx(q.Divider,{}),t]})}),pC=ke.observer(({store:e,children:t})=>{const r=q.useTheme();async function a(o){await e.activate(),await e.jogger.startJointRotation({joint:o.joint,direction:o.direction,velocityRadsPerSec:e.rotationVelocityRadsPerSec})}async function n(){await e.jogger.stop(),await e.deactivate()}return b.jsxs(q.Stack,{flexGrow:1,gap:2,sx:{padding:"18px 24px"},children:[b.jsx(Pd,{store:e}),b.jsx(q.Divider,{}),b.jsx(q.Stack,{justifyContent:"center",alignItems:"stretch",sx:{flexGrow:"1"},id:"JointControls",children:b.jsx(q.Stack,{alignItems:"center",gap:"24px",children:e.jogger.motionStream.joints.map(o=>{var c;const s=(c=e.motionGroupSpec.mechanical_joint_limits)==null?void 0:c[o.index],i=(s==null?void 0:s.lower_limit)!==void 0?ir.radiansToDegrees(s.lower_limit):void 0,l=(s==null?void 0:s.upper_limit)!==void 0?ir.radiansToDegrees(s.upper_limit):void 0;return b.jsxs(q.Stack,{direction:"row",alignItems:"center",justifyContent:"center",spacing:1.5,width:"100%",children:[e.showJointsLegend&&b.jsx(q.Typography,{color:e.isLocked?r.palette.text.disabled:r.palette.text.secondary,children:`G${o.index+1}`}),b.jsx(uc,{disabled:e.isLocked,lowerLimitDegs:i,upperLimitDegs:l,getValueDegs:()=>{const d=e.jogger.motionStream.rapidlyChangingMotionState.state.joint_position.joints[o.index];return d!==void 0?ir.radiansToDegrees(d):void 0},startJogging:d=>a({joint:o.index,direction:d}),stopJogging:n})]},`joint-${o.index}`)})})}),b.jsx(hd,{store:e}),t&&b.jsx(q.Divider,{}),t]})}),hC=qr(ke.observer(e=>{const t=cs.isString(e.nova)?new h1({instanceUrl:e.nova}):e.nova,r=ke.useLocalObservable(()=>({joggingStore:null,loadingError:null}));async function a(){Be.runInAction(()=>{r.loadingError=null,r.joggingStore=null});try{let n=e.store;if(!n){const o=await t.connectJogger(e.motionGroupId);n=await so.loadFor(o)}Be.runInAction(()=>{r.joggingStore=n}),e.onSetup&&e.onSetup(n)}catch(n){r.loadingError=n}}return ae.useEffect(()=>(a(),e.store?()=>null:()=>{var n;(n=r.joggingStore)==null||n.dispose()}),[e.store,e.nova,e.motionGroupId]),ae.useEffect(()=>{const n=r.joggingStore;n&&(e.locked?n.lock("external"):n.unlock("external"))},[r.joggingStore,e.locked]),b.jsx(q.Stack,{sx:{maxWidth:"460px",minWidth:"320px",position:"relative",...e.sx},children:r.joggingStore?b.jsx(mC,{store:r.joggingStore,children:e.children}):b.jsx(vs,{message:"Loading jogging",error:r.loadingError})})})),mC=ke.observer(({store:e,children:t})=>{const{t:r}=Me.useTranslation();function a(){if(e.currentTab.id==="cartesian")return b.jsx(b.Fragment,{children:b.jsx(uC,{store:e,children:t})});if(e.currentTab.id==="joint")return b.jsx(b.Fragment,{children:b.jsx(pC,{store:e,children:t})})}return b.jsxs(q.Stack,{flexGrow:1,sx:{overflow:"hidden"},children:[b.jsx(q.Tabs,{value:e.tabIndex,onChange:e.onTabChange,variant:"fullWidth",children:e.tabs.map(n=>{const o=n.label==="cartesian"?r("Jogging.Cartesian.bt"):r("Jogging.Joints.bt"),s=n.label==="cartesian"?b.jsx(Jm,{fontSize:"small",sx:{mr:1}}):b.jsx(Hm,{fontSize:"small",sx:{mr:1}});return b.jsx(q.Tab,{label:e.showTabIcons?b.jsxs(q.Stack,{direction:"row",alignItems:"center",children:[s,o]}):o,id:`jogging-tab-${n.id}`,"aria-controls":`jogging-tab-${n.id}`},n.id)})}),b.jsx(q.Stack,{flexGrow:1,position:"relative",sx:{overflowY:"auto",overflowX:"hidden"},children:a()})]})}),Vd=ae.forwardRef(({label:e,value:t},r)=>{var i;const a=q.useTheme(),[n,o]=ae.useState(!1);async function s(){if(!r||!("current"in r))return console.warn("No copy target found"),!1;try{return await navigator.clipboard.writeText(t),console.log("Copied!"),o(!0),!0}catch(l){console.error(l);const c=window.getSelection(),d=document.createRange();d.selectNodeContents(r.current),c.removeAllRanges(),c.addRange(d)}return!1}return ae.useEffect(()=>{if(!n)return;const l=setTimeout(()=>o(!1),3e3);return()=>{l&&clearTimeout(l)}},[n]),b.jsx(q.Tooltip,{open:n,title:"Copied!",children:b.jsx(q.Stack,{justifyContent:"center",sx:{height:"100%",boxSizing:"border-box",padding:"6px 12px",background:(i=a.palette.backgroundPaperElevation)==null?void 0:i[8],borderRadius:"10px",minWidth:"0",cursor:"pointer"},onClick:()=>s(),children:b.jsx(q.Typography,{ref:r,align:"center",sx:{pointerEvents:"none",fontSize:"12px",color:a.palette.text.primary,whiteSpace:"nowrap",minWidth:0,textOverflow:"ellipsis",width:"100%",overflow:"hidden"},children:t})})})}),fC=ke.observer(({motionStream:e})=>{const t=ae.useRef(null);function r(){const a=e.rapidlyChangingMotionState.tcp_pose;return a?ir.poseToWandelscriptString(a):""}return Wr(()=>{if(!t.current)return;const a=r();t.current.textContent!==a&&(t.current.textContent=a)}),b.jsx(q.Stack,{alignItems:"left",spacing:2,sx:{flexGrow:1,minWidth:0,overflow:"hidden"},children:b.jsx(Vd,{value:r(),ref:t})})}),gC=ke.observer(({motionStream:e})=>{const t=ae.useRef(null);function r(){const{joints:a}=e.rapidlyChangingMotionState.state.joint_position;return`[${a.map(n=>parseFloat(n.toFixed(4))).join(", ")}]`}return Wr(()=>{if(!t.current)return;const a=r();t.current.textContent!==a&&(t.current.textContent=a)}),b.jsx(q.Stack,{alignItems:"left",spacing:2,sx:{flexGrow:1,minWidth:0,overflow:"hidden"},children:b.jsx(Vd,{value:r(),ref:t})})});function yC(){const e=window.location.href;return e.substring(0,e.indexOf("/",e.indexOf("//")+2))}function bC({baseUrl:e=yC(),...t}){return b.jsxs(q.Dialog,{"aria-labelledby":"no-motion-group-modal-title",open:!0,fullWidth:!0,sx:{"& .MuiModal-backdrop":{backdropFilter:"blur(10px)"},"& .MuiDialog-paper":{"::before":{content:'""',height:"8px",width:"100%",background:"linear-gradient(90deg, #FF0E65 0%, #47D3FF 100%)"},background:"#101629"}},children:[b.jsx(q.DialogTitle,{id:"no-motion-group-modal-title",children:"No motion group found"}),b.jsxs(q.DialogContent,{sx:{marginTop:"3rem",marginBottom:"1.5rem",textAlign:"center"},children:[b.jsx(q.Typography,{color:"#fff",children:"Found no devices to connect to."}),b.jsx(q.Typography,{color:"#fff",children:"Please ensure a motion group has been created."})]}),b.jsx(q.DialogActions,{children:b.jsxs(q.Stack,{width:"100%",maxWidth:"300px",margin:"auto",marginBottom:"2rem",children:[b.jsx(q.Button,{href:`${e}/settings`,variant:"contained",sx:{borderRadius:"8px",width:"100%"},children:"Go to settings app"}),b.jsx(q.Button,{href:`${e}`,variant:"text",sx:{marginTop:"1rem",color:"#fff",textDecoration:"underline",fontSize:"0.75rem"},children:"Back to Homescreen"})]})})]})}const SC=Array(6).fill(2*Math.PI),Ml="0.0.0-semantically-released";function Rs(e){let t=Ml;return Ml.startsWith("0.")&&(t=""),`https://cdn.jsdelivr.net/gh/wandelbotsgmbh/wandelbots-js-react-components${t?`@${t}`:""}/public/models/${e}.glb`}function vC(e){function t(r){return r.children.length===0?[r]:[r,...r.children.flatMap(a=>t(a))]}return t(e).filter(r=>_d(r))}function Rd(e){return e.name.endsWith("_FLG")}function _d(e){return/_J[0-9]+$/.test(e.name)}function xC(e,t){let r;function a(n){if(Rd(n)){if(r)throw Error(`Found multiple flange groups in robot model ${t}; first ${r.name} then ${n.name}. Only one _FLG group is allowed.`);r=n}_d(n),n.children.map(a)}if(a(e.scene),!r)throw Error(`No flange group found in robot model ${t}. Flange must be identified with a name ending in _FLG.`);return{gltf:e}}function Ad({rapidlyChangingMotionState:e,dhParameters:t,onRotationChanged:r,children:a}){Uo.Globals.assign({frameLoop:"always"});const n=ae.useRef([]),o=ae.useRef([]),{invalidate:s}=qd.useThree();function i(p){p&&(o.current=vC(p),c(),s())}function l(p){n.current=p,u.start(Object.assign({},n.current))}function c(){const p=o.current.map((f,g)=>d[g].get());if(r)r(o.current,p);else for(const[f,g]of o.current.entries()){const h=t[f],x=h.theta||0,E=h.reverse_rotation_direction?-1:1;g.rotation.y=E*p[f]+x}}ic(()=>{const p=e.state.joint_position.joints.filter(f=>f!==void 0);requestAnimationFrame(()=>l(p))});const[d,u]=Uo.useSpring(()=>({...Object.assign({},e.state.joint_position.joints),onChange:()=>{c(),s()},onResolve:()=>{c()}}));return b.jsx("group",{ref:i,children:a})}const jl="line",$l="mesh";function OC({rapidlyChangingMotionState:e,dhParameters:t,...r}){const a=new ht.Matrix4;function n(i,l){const c=new ht.Vector3,d=new ht.Quaternion,u=new ht.Vector3;a.decompose(c,d,u);const p=c.clone(),f=new ht.Matrix4().makeRotationY(i.theta+l*(i.reverse_rotation_direction?-1:1)).multiply(new ht.Matrix4().makeTranslation(0,i.d/1e3,0)).multiply(new ht.Matrix4().makeTranslation(i.a/1e3,0,0)).multiply(new ht.Matrix4().makeRotationX(i.alpha));return a.multiply(f),a.decompose(c,d,u),{a:p,b:c}}function o(i,l,c,d){if(!t)return;const u=t[i];if(!u)return;const{a:p,b:f}=n(u,d);l.geometry.setPositions([p.toArray(),f.toArray()].flat()),c.position.set(f.x,f.y,f.z)}function s(i,l){a.identity(),i.forEach((c,d)=>{o(d,c.getObjectByName(jl),c.getObjectByName($l),l[d])})}return b.jsx(b.Fragment,{children:b.jsx(Ad,{rapidlyChangingMotionState:e,dhParameters:t,onRotationChanged:s,children:b.jsxs("group",{...r,name:"Scene",children:[b.jsxs("mesh",{children:[b.jsx("sphereGeometry",{args:[.01,32,32]}),b.jsx("meshStandardMaterial",{color:"black",depthTest:!0})]}),t.map((i,l)=>{const{a:c,b:d}=n(i,e.state.joint_position.joints[l]??0),u=`dhrobot_J0${l}`;return b.jsxs("group",{name:u,children:[b.jsx(mt.Line,{name:jl,points:[c,d],color:"white",lineWidth:5}),b.jsxs("mesh",{name:$l,position:d,children:[b.jsx("sphereGeometry",{args:[.01,32,32]}),b.jsx("meshStandardMaterial",{color:"black",depthTest:!0})]},"mesh_"+l)]},u)})]})})})}const wC=console.warn;function CC(){return ae.useEffect(()=>{console.warn=e=>{e!=="Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"&&wC(e)}},[]),b.jsx(b.Fragment,{})}function PC(e){return e.type==="Mesh"}function VC({modelURL:e,flangeRef:t,postModelRender:r,...a}){const{gltf:n}=xC(mt.useGLTF(e),e.split("/").pop()||e),o=ae.useCallback(i=>{i&&r&&r()},[e]);function s(i){return PC(i)?b.jsx("mesh",{name:i.name,geometry:i.geometry,material:i.material,position:i.position,rotation:i.rotation},i.uuid):b.jsx(Uo.animated.group,{name:i.name,position:i.position,rotation:i.rotation,ref:Rd(i)?t:void 0,children:i.children.map(s)},i.uuid)}return b.jsx("group",{...a,dispose:null,ref:o,children:s(n.scene)})}const RC=(e,t)=>{e.userData.isGhost||(e.traverse(r=>{if(r instanceof Ie.Mesh){r.material instanceof Ie.Material&&(r.material.colorWrite=!1);const a=r.clone(),n=r.clone();a.material=new Ie.MeshStandardMaterial({depthTest:!0,depthWrite:!0,colorWrite:!1,polygonOffset:!0,polygonOffsetFactor:-1,side:Ie.DoubleSide}),a.userData.isGhost=!0,n.material=new Ie.MeshStandardMaterial({color:t,opacity:.3,depthTest:!0,depthWrite:!1,transparent:!0,polygonOffset:!0,polygonOffsetFactor:-2,side:Ie.DoubleSide}),n.userData.isGhost=!0,r.parent&&(r.parent.add(a),r.parent.add(n))}}),e.userData.isGhost=!0)},_C=e=>{if(!e.userData.isGhost)return;const t=[];e.traverse(r=>{var a;r instanceof Ie.Mesh&&((a=r.userData)!=null&&a.isGhost?t.push(r):r.material instanceof Ie.Material&&(r.material.colorWrite=!0))}),t.forEach(r=>{r.parent&&r.parent.remove(r)}),e.userData.isGhost=!1},Td=qr(({rapidlyChangingMotionState:e,modelFromController:t,dhParameters:r,getModel:a=Rs,flangeRef:n,postModelRender:o,transparentColor:s,...i})=>{const[l,c]=ae.useState(null),d=ae.useCallback(p=>{c(p)},[]);ae.useEffect(()=>{l&&(s?RC(l,s):_C(l))},[l,s]);const u=b.jsx(OC,{rapidlyChangingMotionState:e,dhParameters:r,...i});return b.jsxs(Xd.ErrorBoundary,{fallback:u,onError:p=>{console.error(p)},children:[b.jsx(ae.Suspense,{fallback:u,children:b.jsx("group",{ref:d,children:b.jsx(Ad,{rapidlyChangingMotionState:e,dhParameters:r,children:b.jsx(VC,{modelURL:a(t),postModelRender:o,flangeRef:n,...i})})})}),b.jsx(CC,{})]})});function AC({connectedMotionGroup:e,getModel:t=Rs,flangeRef:r,transparentColor:a,...n}){return e.dhParameters?b.jsx(Td,{rapidlyChangingMotionState:e.rapidlyChangingMotionState,modelFromController:e.modelFromController||"",dhParameters:e.dhParameters,getModel:t,flangeRef:r,transparentColor:a,...n}):null}const TC=({title:e,titleId:t,...r},a)=>J.createElement("svg",{width:24,height:24,xmlns:"http://www.w3.org/2000/svg",ref:a,"aria-labelledby":t,...r},e?J.createElement("title",{id:t},e):null,J.createElement("path",{d:"M5.248 21c-.334 0-.619-.116-.853-.35a1.153 1.153 0 0 1-.351-.848c0-.333.117-.616.351-.85.234-.233.519-.35.853-.35H7.24L4.558 9.87a2.881 2.881 0 0 1-1.126-1.042A2.77 2.77 0 0 1 3 7.317c0-.793.28-1.467.838-2.023a2.774 2.774 0 0 1 2.033-.834 2.71 2.71 0 0 1 1.728.585c.494.389.832.887 1.014 1.493h3.58V5.239c0-.22.076-.406.226-.555a.76.76 0 0 1 .558-.224c.136 0 .263.035.381.104.118.07.209.167.273.292v.14l1.835-1.702a.979.979 0 0 1 .52-.279.881.881 0 0 1 .58.091l4.01 1.85a.74.74 0 0 1 .36.364.537.537 0 0 1-.002.474.592.592 0 0 1-.366.323.657.657 0 0 1-.477-.039l-3.858-1.774L13.76 6.59v1.454l2.473 2.233 3.858-1.774a.648.648 0 0 1 .485-.03.571.571 0 0 1 .358.314.513.513 0 0 1 .01.482.79.79 0 0 1-.367.357l-4.011 1.882a.881.881 0 0 1-.58.09.979.979 0 0 1-.52-.278L13.63 9.638v.14a.92.92 0 0 1-.273.275.665.665 0 0 1-.381.12.76.76 0 0 1-.558-.224.752.752 0 0 1-.225-.555V8.096h-3.58a2.82 2.82 0 0 1-.215.54 2.552 2.552 0 0 1-.323.479l5.139 9.488h2.673c.335 0 .62.116.854.35.234.233.35.516.35.849 0 .332-.116.615-.35.849a1.167 1.167 0 0 1-.854.349H5.248Zm.623-12.385c.362 0 .67-.126.924-.378a1.25 1.25 0 0 0 .38-.92 1.25 1.25 0 0 0-.38-.92 1.261 1.261 0 0 0-.924-.379 1.26 1.26 0 0 0-.925.379 1.25 1.25 0 0 0-.38.92c0 .36.127.667.38.92.254.252.562.378.925.378Z"})),EC=ae.forwardRef(TC),IC=({title:e,titleId:t,...r},a)=>J.createElement("svg",{width:24,height:24,xmlns:"http://www.w3.org/2000/svg",ref:a,"aria-labelledby":t,...r},e?J.createElement("title",{id:t},e):null,J.createElement("path",{d:"m13.37 9.12 1.69 1.69 2.99-2.99-3.73-3.73-.95-.95-7.66 7.66-.95.95 3.99 3.99v3.44h7.55v-3.55l-4.72-4.72 1.79-1.79Zm-.91-2.99.91-.91 2.6 2.6-.91.91-2.6-2.6Zm-2.25 10.24h3.74l-1.34-1.34-.04-.04h-2.5l-3.25-3.25 4.59-4.59.92.92L9.5 10.9l5.33 5.33v1.48H10.2v-1.35l.01.01ZM2 2v4.99h1.41V3.4h3.58V2H2ZM22.21 2h-4.98v1.41h3.59v3.58h1.4V2h-.01ZM20.81 20.65h-3.58v1.4h4.98v-4.99h-1.4v3.59ZM3.4 17.06H2v4.98h4.99v-1.4H3.4v-3.58Z"})),MC=ae.forwardRef(IC),wt=ke.observer(({id:e,icon:t,color:r,title:a,name:n,explanation:o,literalValue:s,anchorOrigin:i,transformOrigin:l})=>{const c=ke.useLocalObservable(()=>({anchorEl:null,get isPopoverOpen(){return!!c.anchorEl},openPopover(d){c.anchorEl=d.currentTarget},closePopover(){c.anchorEl=null}}));return b.jsxs(b.Fragment,{children:[b.jsx(q.Stack,{"aria-owns":c.isPopoverOpen?e:void 0,"aria-haspopup":"true",onMouseEnter:c.openPopover,onMouseLeave:c.closePopover,sx:{cursor:"pointer"},children:b.jsx(q.SvgIcon,{component:t,sx:{color:r}})}),b.jsx(q.Popover,{id:e,sx:{pointerEvents:"none"},open:c.isPopoverOpen,anchorEl:c.anchorEl,anchorOrigin:i??{vertical:"bottom",horizontal:"left"},transformOrigin:l??{vertical:"top",horizontal:"left"},onClose:c.closePopover,disableRestoreFocus:!0,children:b.jsxs(q.Stack,{gap:"1rem",padding:2,maxWidth:"450px",sx:{wordWrap:"break-word"},children:[b.jsxs("div",{children:[a&&b.jsx(q.Typography,{component:"span",fontSize:"14px",children:`${a}: `}),b.jsx(q.Typography,{component:"span",color:r,fontWeight:"bold",fontSize:"14px",children:n})]}),b.jsx(q.Typography,{fontSize:"14px",children:o}),s&&b.jsx(q.Typography,{fontSize:"12px",children:s})]})})]})}),jC=ke.observer(({isVirtual:e,motionGroupId:t,anchorOrigin:r,transformOrigin:a})=>{const n=q.useTheme(),{t:o}=Me.useTranslation();return e?b.jsx(wt,{id:"motion-group-virtual",icon:MC,color:n.palette.tertiary.main,name:o("SafetyBar.ControllerType.Virtual.lb"),explanation:b.jsxs(Me.Trans,{i18nKey:"SafetyBar.MotionGroup.Virtual.Explanation.lb",values:{motionGroupId:t},children:["Motion group ",b.jsx("code",{children:t})," refers to a virtual robot with no physical counterpart. It can be freely manipulated without special safety precautions."]}),anchorOrigin:r,transformOrigin:a}):b.jsx(wt,{id:"motion-group-physical",icon:EC,color:n.palette.primary.main,name:o("SafetyBar.ControllerType.Physical.lb"),explanation:b.jsx(Me.Trans,{i18nKey:"SafetyBar.MotionGroup.Physical.Explanation.lb",values:{motionGroupId:t},components:{code:b.jsx("code",{}),strong:b.jsx("strong",{})}}),anchorOrigin:r,transformOrigin:a})}),$C=({title:e,titleId:t,...r},a)=>J.createElement("svg",{width:24,height:24,xmlns:"http://www.w3.org/2000/svg",ref:a,"aria-labelledby":t,...r},e?J.createElement("title",{id:t},e):null,J.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.306 2.768c0-.424.344-.768.768-.768h.406C19.53 2 22 4.551 22 7.699c0 3.237-2.51 5.587-5.31 5.703-.84 1.595-2.478 2.677-4.36 2.677a4.845 4.845 0 0 1-3.146-1.163c-.6 1.783 0 3.922 1.79 4.99 1.929 1.149 4.395.467 5.508-1.524l.212-.378a.75.75 0 1 1 1.308.732l-.231.414c-1.524 2.725-4.9 3.66-7.54 2.085-2.716-1.618-3.432-5.037-2.129-7.599a5.22 5.22 0 0 1-.73-2.677c0-2.192 1.335-4.063 3.212-4.793-1.195-1.427-3.29-1.96-5.08-.892-1.928 1.15-2.589 3.696-1.475 5.687l.231.413a.75.75 0 0 1-1.308.732l-.212-.377c-1.524-2.726-.62-6.211 2.02-7.785 2.716-1.619 5.943-.55 7.44 1.897l.13-.001c2.739 0 4.96 2.292 4.96 5.12 0 .284-.023.563-.066.834 1.795-.354 3.288-1.96 3.288-4.095 0-2.3-1.805-4.163-4.032-4.163h-.406a.768.768 0 0 1-.768-.768Zm.496 8.191c0 .286-.033.564-.094.831a3.62 3.62 0 0 1-.672 1.415 3.425 3.425 0 0 1-2.706 1.338 3.402 3.402 0 0 1-2.384-.98 3.598 3.598 0 0 1-.852-1.306 3.677 3.677 0 0 1-.235-1.298c0-1.623 1.046-2.994 2.48-3.435a3.37 3.37 0 0 1 1.522-.107c1.665.264 2.94 1.75 2.94 3.542Z"})),UC=ae.forwardRef($C),LC=({title:e,titleId:t,...r},a)=>J.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:a,"aria-labelledby":t,...r},e?J.createElement("title",{id:t},e):null,J.createElement("path",{d:"M19.763 16.432 13.516 5.864c-.674-1.152-2.358-1.152-3.049 0l-6.23 10.568C3.563 17.567 4.405 19 5.753 19H18.23c1.364 0 2.206-1.432 1.532-2.568ZM12 8.498c.539 0 .96.428.96.938v.066l-.32 4.708a.639.639 0 0 1-.64.592.639.639 0 0 1-.64-.592l-.32-4.708A.953.953 0 0 1 12 8.498Zm0 8.79c-.556 0-1.01-.444-1.01-.987 0-.544.454-.988 1.01-.988s1.01.444 1.01.988c0 .542-.454.987-1.01.987Z",fill:"#fff",fillOpacity:.56})),kC=ae.forwardRef(LC),BC=({title:e,titleId:t,...r},a)=>J.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:a,"aria-labelledby":t,...r},e?J.createElement("title",{id:t},e):null,J.createElement("path",{d:"M12.953 5.09a1.497 1.497 0 0 0-1.653-.518l-1.35.43a1.504 1.504 0 0 0-1.726-.376L2.858 6.97c-.736.321-1.06 1.155-.726 1.862.334.707 1.202 1.02 1.937.698l4.27-1.865 1.466 1.973v.402c0 .873-.627 1.63-1.512 1.827l-2.56.567c-1.329.295-2.27 1.431-2.27 2.74v.107c0 .26.22.469.489.469h11.117c1.329 0 2.618.435 3.656 1.233l1.665 1.28A1 1 0 0 0 22 17.47V11.062c0-.312-.108-.616-.308-.863l-3.415-4.218a1.5 1.5 0 0 0-1.618-.471l-.378.12-.866-.475a1.516 1.516 0 0 0-1.188-.114l-1.06.338-.214-.289Z"})),FC=ae.forwardRef(BC),NC=ke.observer(({operationMode:e,anchorOrigin:t,transformOrigin:r})=>{const{t:a}=Me.useTranslation(),n=q.useTheme();switch(e){case"OPERATION_MODE_AUTO":return b.jsx(wt,{id:"operation-mode-auto",icon:UC,title:a("SafetyBar.OperationMode.ti"),name:a("SafetyBar.OperationMode.Automatic.ti"),color:"rgba(255, 255, 255, 0.57)",explanation:b.jsx(Me.Trans,{i18nKey:"SafetyBar.OperationMode.Auto.Explanation.lb",children:"The robot controller is in automatic operation mode. Automated movement without manual confirmation is possible in this mode."}),anchorOrigin:t,transformOrigin:r});case"OPERATION_MODE_MANUAL":case"OPERATION_MODE_MANUAL_T1":case"OPERATION_MODE_MANUAL_T2":return b.jsx(wt,{id:"operation-mode-manual",icon:FC,color:n.palette.warning.main,title:a("SafetyBar.OperationMode.ti"),name:a("SafetyBar.OperationMode.Manual.lb"),explanation:b.jsx(Me.Trans,{i18nKey:"SafetyBar.OperationMode.Manual.Explanation.lb",children:"The robot controller is in manual operation mode. On a physical robot, this generally indicates that an enabling switch must be held for the robot to move successfully."}),literalValue:e,anchorOrigin:t,transformOrigin:r});default:return b.jsx(wt,{id:"operation-mode-error",icon:kC,color:n.palette.warning.main,title:a("SafetyBar.OperationMode.ti"),name:a("SafetyBar.OperationMode.Error.lb"),explanation:b.jsx(Me.Trans,{i18nKey:"SafetyBar.OperationMode.Error.Explanation.lb",children:"The robot controller has entered an unexpected operation mode. Motion group movement may not be possible."}),literalValue:e,anchorOrigin:t,transformOrigin:r})}}),DC=({title:e,titleId:t,...r},a)=>J.createElement("svg",{width:24,height:24,xmlns:"http://www.w3.org/2000/svg",ref:a,"aria-labelledby":t,...r},e?J.createElement("title",{id:t},e):null,J.createElement("path",{d:"M19.763 16.432 13.516 5.864c-.674-1.152-2.358-1.152-3.049 0l-6.23 10.568C3.563 17.567 4.405 19 5.753 19H18.23c1.364 0 2.206-1.432 1.532-2.568ZM12 8.498c.539 0 .96.428.96.938v.066l-.32 4.708a.639.639 0 0 1-.64.592.639.639 0 0 1-.64-.592l-.32-4.708A.953.953 0 0 1 12 8.498Zm0 8.79c-.556 0-1.01-.444-1.01-.987 0-.544.454-.988 1.01-.988s1.01.444 1.01.988c0 .542-.454.987-1.01.987Z"})),zC=ae.forwardRef(DC),GC=({title:e,titleId:t,...r},a)=>J.createElement("svg",{width:24,height:24,xmlns:"http://www.w3.org/2000/svg",ref:a,"aria-labelledby":t,...r},e?J.createElement("title",{id:t},e):null,J.createElement("path",{d:"M10.24 10.636 12 13.764l1.76-3.128h-3.52Z"}),J.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.364 12a6.364 6.364 0 1 1-12.728 0 6.364 6.364 0 0 1 12.728 0ZM7.909 9.273 12 16.546l4.09-7.273H7.91Z"}),J.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10Zm-1.364 0a8.636 8.636 0 1 1-17.273 0 8.636 8.636 0 0 1 17.273 0Z"})),JC=ae.forwardRef(GC),HC=({title:e,titleId:t,...r},a)=>J.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:a,"aria-labelledby":t,...r},e?J.createElement("title",{id:t},e):null,J.createElement("path",{d:"M9.057 15.115c-1.681 0-3.111-.59-4.29-1.768C3.59 12.17 3 10.74 3 9.057c0-.29.021-.582.064-.876a4.1 4.1 0 0 1 .214-.844.78.78 0 0 1 .273-.36c.115-.077.244-.133.389-.168a.857.857 0 0 1 .437.008c.146.04.28.12.4.24l2.806 2.787 2.26-2.261-2.775-2.786a.903.903 0 0 1-.241-.405.875.875 0 0 1-.008-.442 1.13 1.13 0 0 1 .174-.389.82.82 0 0 1 .355-.273c.268-.107.548-.182.838-.224.29-.043.581-.064.871-.064 1.682 0 3.112.59 4.29 1.768 1.179 1.178 1.768 2.608 1.768 4.29 0 .444-.042.858-.126 1.241-.084.384-.21.755-.377 1.113l5.726 5.692A2.2 2.2 0 0 1 21 18.721a2.2 2.2 0 0 1-.662 1.617A2.2 2.2 0 0 1 18.72 21a2.173 2.173 0 0 1-1.617-.679l-5.692-5.709c-.372.161-.75.285-1.133.372-.383.087-.79.13-1.222.13Z",fill:"#fff",fillOpacity:.56})),qC=ae.forwardRef(HC),WC=({title:e,titleId:t,...r},a)=>J.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:a,"aria-labelledby":t,...r},e?J.createElement("title",{id:t},e):null,J.createElement("path",{d:"m10.6 13.8-2.15-2.15a.948.948 0 0 0-.7-.275.948.948 0 0 0-.7.275.948.948 0 0 0-.275.7c0 .283.092.517.275.7L9.9 15.9c.2.2.433.3.7.3.267 0 .5-.1.7-.3l5.65-5.65a.948.948 0 0 0 .275-.7.948.948 0 0 0-.275-.7.948.948 0 0 0-.7-.275.948.948 0 0 0-.7.275L10.6 13.8ZM12 22a9.738 9.738 0 0 1-3.9-.788 10.099 10.099 0 0 1-3.175-2.137c-.9-.9-1.612-1.958-2.137-3.175A9.738 9.738 0 0 1 2 12c0-1.383.263-2.683.788-3.9a10.099 10.099 0 0 1 2.137-3.175c.9-.9 1.958-1.612 3.175-2.137A9.738 9.738 0 0 1 12 2c1.383 0 2.683.263 3.9.788a10.098 10.098 0 0 1 3.175 2.137c.9.9 1.613 1.958 2.137 3.175A9.738 9.738 0 0 1 22 12a9.738 9.738 0 0 1-.788 3.9 10.098 10.098 0 0 1-2.137 3.175c-.9.9-1.958 1.613-3.175 2.137A9.738 9.738 0 0 1 12 22Zm0-2c2.233 0 4.125-.775 5.675-2.325C19.225 16.125 20 14.233 20 12c0-2.233-.775-4.125-2.325-5.675C16.125 4.775 14.233 4 12 4c-2.233 0-4.125.775-5.675 2.325C4.775 7.875 4 9.767 4 12c0 2.233.775 4.125 2.325 5.675C7.875 19.225 9.767 20 12 20Z"})),KC=ae.forwardRef(WC),QC=({title:e,titleId:t,...r},a)=>J.createElement("svg",{width:24,height:24,xmlns:"http://www.w3.org/2000/svg",ref:a,"aria-labelledby":t,...r},e?J.createElement("title",{id:t},e):null,J.createElement("path",{d:"M9 16h6c.283 0 .52-.096.713-.287A.968.968 0 0 0 16 15V9a.967.967 0 0 0-.287-.713A.968.968 0 0 0 15 8H9a.968.968 0 0 0-.713.287A.968.968 0 0 0 8 9v6c0 .283.096.52.287.713.192.191.43.287.713.287Zm3 6a9.738 9.738 0 0 1-3.9-.788 10.099 10.099 0 0 1-3.175-2.137c-.9-.9-1.612-1.958-2.137-3.175A9.738 9.738 0 0 1 2 12c0-1.383.263-2.683.788-3.9a10.099 10.099 0 0 1 2.137-3.175c.9-.9 1.958-1.612 3.175-2.137A9.738 9.738 0 0 1 12 2c1.383 0 2.683.263 3.9.788a10.098 10.098 0 0 1 3.175 2.137c.9.9 1.613 1.958 2.137 3.175A9.738 9.738 0 0 1 22 12a9.738 9.738 0 0 1-.788 3.9 10.098 10.098 0 0 1-2.137 3.175c-.9.9-1.958 1.613-3.175 2.137A9.738 9.738 0 0 1 12 22Zm0-2c2.233 0 4.125-.775 5.675-2.325C19.225 16.125 20 14.233 20 12c0-2.233-.775-4.125-2.325-5.675C16.125 4.775 14.233 4 12 4c-2.233 0-4.125.775-5.675 2.325C4.775 7.875 4 9.767 4 12c0 2.233.775 4.125 2.325 5.675C7.875 19.225 9.767 20 12 20Z"})),YC=ae.forwardRef(QC),XC=ke.observer(({safetyState:e,anchorOrigin:t,transformOrigin:r})=>{const{t:a}=Me.useTranslation(),n=q.useTheme();switch(e){case"SAFETY_STATE_NORMAL":return b.jsx(wt,{id:"safety-state-normal",title:a("SafetyBar.SafetyState.ti"),name:a("SafetyBar.SafetyState.Normal.lb"),icon:KC,color:"rgba(255, 255, 255, 0.57)",explanation:b.jsx(Me.Trans,{i18nKey:"SafetyBar.SafetyState.Normal.Explanation.lb",children:"The robot controller is in a normal safety state. Movement is not prevented by this state."}),anchorOrigin:t,transformOrigin:r});case"SAFETY_STATE_DEVICE_EMERGENCY_STOP":case"SAFETY_STATE_ROBOT_EMERGENCY_STOP":return b.jsx(wt,{id:"safety-state-estop",title:a("SafetyBar.SafetyState.ti"),name:a("SafetyBar.SafetyState.Estop.lb"),icon:JC,color:n.palette.error.main,explanation:b.jsx(Me.Trans,{i18nKey:"SafetyBar.StopState.Estop.Explanation.lb",children:"An emergency stop of the robot controller has been triggered. Movement of the robot is no longer possible until the estop is released."}),literalValue:e,anchorOrigin:t,transformOrigin:r});case"SAFETY_STATE_STOP_0":case"SAFETY_STATE_STOP_1":case"SAFETY_STATE_STOP_2":case"SAFETY_STATE_PROTECTIVE_STOP":case"SAFETY_STATE_STOP":return b.jsx(wt,{id:"safety-state-stop",icon:YC,title:a("SafetyBar.SafetyState.ti"),name:a("SafetyBar.SafetyState.Stop.lb"),color:n.palette.warning.main,explanation:b.jsx(Me.Trans,{i18nKey:"SafetyBar.SafetyState.Stop.Explanation.lb",children:"The robot controller has entered a stop state. Movement is no longer possible until the stop state is resolved."}),literalValue:e,anchorOrigin:t,transformOrigin:r});case"SAFETY_STATE_REDUCED":case"SAFETY_STATE_MASTERING":case"SAFETY_STATE_CONFIRM_SAFETY":case"SAFETY_STATE_OPERATOR_SAFETY":case"SAFETY_STATE_RECOVERY":case"SAFETY_STATE_VIOLATION":return b.jsx(wt,{id:"safety-state-manual-action-required",icon:qC,color:n.palette.warning.main,title:a("SafetyBar.SafetyState.ti"),name:a("SafetyBar.SafetyState.ManualActionRequired.lb"),explanation:b.jsx(Me.Trans,{i18nKey:"SafetyBar.SafetyState.ManualActionRequired.Explanation.lb",children:"The robot controller has entered a safety state requiring manual action to resolve."}),literalValue:e,anchorOrigin:t,transformOrigin:r});case"SAFETY_STATE_UNKNOWN":case"SAFETY_STATE_FAULT":return b.jsx(wt,{id:"safety-state-error",icon:zC,color:n.palette.error.main,title:a("SafetyBar.SafetyState.ti"),name:a("SafetyBar.SafetyState.Error.lb"),explanation:b.jsx(Me.Trans,{i18nKey:"SafetyBar.SafetyState.Error.Explanation.lb",children:"The robot controller has entered an unexpected safety state."}),literalValue:e,anchorOrigin:t,transformOrigin:r});default:f1(e,`Unknown safety state ${e}`)}}),ZC=qr(ke.observer(e=>b.jsxs(q.Stack,{direction:"row",gap:"8px",alignItems:"center",sx:{height:"24px"},children:[b.jsx(XC,{safetyState:e.safetyState,anchorOrigin:e.anchorOrigin,transformOrigin:e.transformOrigin}),b.jsx(q.Divider,{orientation:"vertical",flexItem:!0}),b.jsx(NC,{operationMode:e.operationMode,anchorOrigin:e.anchorOrigin,transformOrigin:e.transformOrigin}),b.jsx(q.Divider,{orientation:"vertical",flexItem:!0}),b.jsx(jC,{isVirtual:e.isVirtual,motionGroupId:e.motionGroupId,anchorOrigin:e.anchorOrigin,transformOrigin:e.transformOrigin})]}))),eP=q.styled(q.Fab,{shouldForwardProp:e=>e!=="selected"})(({theme:e})=>{var t,r,a;return{borderRadius:"20px","&:hover":{background:(t=e.palette.backgroundPaperElevation)==null?void 0:t[7]},variants:[{props:({selected:n})=>!n,style:{background:(r=e.palette.backgroundPaperElevation)==null?void 0:r[0],color:e.palette.action.disabled,"> img":{opacity:.4}}},{props:({selected:n})=>n,style:{background:(a=e.palette.backgroundPaperElevation)==null?void 0:a[11],border:`1px solid ${e.palette.divider}`,color:e.palette.primary.contrastText}}]}}),tP=ae.forwardRef((e,t)=>b.jsx(eP,{ref:t,selected:e.selected,...e,color:"secondary",variant:"circular"})),rP={$schema:"https://raw.githubusercontent.com/martinring/tmlanguage/master/tmlanguage.json",name:"wandelscript",patterns:[{include:"#keywords"},{include:"#strings"},{include:"#comments"},{include:"#functions"}],repository:{keywords:{patterns:[{name:"keyword.control.flow.wandelscript",match:"\\b(move|via|to|interrupt|def|False|True|for|if|else|elif|while|return|switch|activate|deactivate|print|and|or|not)\\b"}]},strings:{name:"string.quoted.double.wandelscript",begin:'"',end:'"',patterns:[{name:"constant.character.escape.wandelscript",match:"\\\\."}]},comments:{patterns:[{begin:"#",beginCaptures:{0:{name:"punctuation.definition.comment.wandelscript"}},end:"$",name:"comment.line.number-sign.wandelscript"}]},functions:{patterns:[{match:"[a-zA-Z_-]+\\(",name:"entity.name.function.wandelscript"}]}},scopeName:"source.wandelscript"},aP=ae.lazy(()=>import("@monaco-editor/react"));let $o=null;async function nP(){if(!$o){const[{createHighlighter:e},{shikiToMonaco:t}]=await Promise.all([import("shiki"),import("@shikijs/monaco")]);$o={shiki:await e({langs:[rP],themes:["dark-plus","light-plus"]}),shikiToMonaco:t}}return $o}const oP=qr(e=>{const t=q.useTheme(),[r,a]=ae.useState("dark-plus"),n=t.palette.mode==="dark"?"dark-plus":"light-plus";async function o(s){var c,d;s.languages.register({id:"wandelscript"}),s.languages.setLanguageConfiguration("wandelscript",{comments:{lineComment:"#"},brackets:[["(",")"],["[","]"]],autoClosingPairs:[{open:"[",close:"]"},{open:"(",close:")"}],surroundingPairs:[{open:"[",close:"]"},{open:"(",close:")"}]});const{shiki:i,shikiToMonaco:l}=await nP();l(i,s),s.editor.defineTheme(n,((d=(c=t.componentsExt)==null?void 0:c.WandelscriptEditor)==null?void 0:d.monacoTheme)??{base:t.palette.mode==="dark"?"vs-dark":"vs",inherit:!0,rules:[],colors:{}}),e.monacoSetup&&e.monacoSetup(s),a(n)}return b.jsx(ae.Suspense,{fallback:b.jsx(vs,{}),children:b.jsx(aP,{value:e.code,onMount:(s,i)=>{o(i)},onChange:e.onChange,defaultLanguage:"wandelscript",theme:r,options:{minimap:{enabled:!1},wordWrap:"on",automaticLayout:!0,...e.monacoOptions}})})});function Ed(){var t,r,a,n,o,s,i;const e=q.createTheme({palette:{mode:"dark",text:{primary:"rgba(255, 255, 255, 1)",secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.38)"},primary:{main:"rgba(142, 86, 252, 1)",dark:"rgba(136, 58, 255, 1)",light:"rgba(157, 131, 246, 1)",contrastText:"rgba(255, 255, 255, 0.87)"},secondary:{main:"rgba(255, 255, 255, 1)",dark:"rgba(255, 255, 255, 0.06)",contrastText:"rgba(255, 255, 255, 0.87)"},tertiary:{main:"rgba(100, 255, 218, 1)",dark:"rgba(38, 166, 154, 1)",light:"rgba(167, 255, 235, 1)",contrastText:"rgba(0, 0, 0, 1)"},error:{main:"rgba(239, 83, 80, 1)",dark:"rgba(229, 57, 53, 1)",light:"rgba(239, 154, 154, 1)",contrastText:"rgba(255, 255, 255, 1)"},warning:{main:"rgba(255, 171, 64, 1)",dark:"rgba(255, 145, 0, 1)",light:"rgba(255, 209, 128, 1)",contrastText:"rgba(0, 0, 0, 0.87)"},success:{main:"rgba(38, 166, 154, 1)",dark:"rgba(0, 121, 107, 1)",light:"rgba(128, 203, 196, 1)",contrastText:"rgba(255, 255, 255, 0.87)"},background:{default:"rgba(2, 6, 23, 1)",paper:"rgba(17, 19, 31, 1)"},action:{active:"rgba(255, 255, 255, 0.56)",hover:"rgba(255, 255, 255, 0.08)",selected:"rgba(255, 255, 255, 0.16)",disabledBackground:"rgba(255, 255, 255, 0.12)",focus:"rgba(255, 255, 255, 0.12)",disabled:"rgba(255, 255, 255, 0.38)"},common:{white:"rgba(255, 255, 255, 1)",black:"rgba(0, 0, 0, 1)"},divider:"rgba(255, 255, 255, 0.12)",backgroundPaperElevation:{0:"rgba(17,19,31,1.0)",1:"rgba(20,22,35,1.0)",2:"rgba(23,25,39,1.0)",3:"rgba(26,28,43,1.0)",4:"rgba(29,31,47,1.0)",5:"rgba(32,34,51,1.0)",6:"rgba(35,37,55,1.0)",7:"rgba(38,40,59,1.0)",8:"rgba(41,43,63,1.0)",9:"rgba(44,46,67,1.0)",10:"rgba(47,49,71,1.0)",11:"rgba(50,52,75,1.0)",12:"rgba(53,55,79,1.0)",13:"rgba(56,58,83,1.0)",14:"rgba(59,61,87,1.0)",15:"rgba(62,64,91,1.0)",16:"rgba(57,63,87,1.0)"}},paletteExt:{primary:{hover:"rgba(142, 86, 252, 0.08)",selected:"rgba(142, 86, 252, 0.16)",focus:"rgba(142, 86, 252, 0.12)",focusVisible:"rgba(142, 86, 252, 0.3)",outlineBorder:"rgba(142, 86, 252, 0.5)"},secondary:{tonal:"rgba(255,255,255,0.1)"}}});return{...e,components:{MuiCssBaseline:{styleOverrides:{"html, body, *":{scrollbarWidth:"none",msOverflowStyle:"none"},"html:hover, body:hover, *:hover":{scrollbarWidth:"thin",scrollbarColor:`${e.palette.divider} transparent`}}},MuiButton:{styleOverrides:{root:{textTransform:"none",borderRadius:"10px"}},variants:[{props:{color:"secondary",variant:"contained"},style:{border:`1px solid ${e.palette.divider}`,background:(a=(r=(t=e.paletteExt)==null?void 0:t.secondary)==null?void 0:r.tonal)==null?void 0:a.toString()}},{props:{color:"secondary",variant:"outlined"},style:{border:`1px solid ${e.palette.divider}`}}]},MuiTab:{styleOverrides:{root:{textTransform:"none",color:e.palette.text.secondary,"&.Mui-selected":{color:e.palette.text.primary}}}},MuiTabs:{styleOverrides:{root:{background:(n=e.palette.backgroundPaperElevation)==null?void 0:n[1]}}},MuiToggleButtonGroup:{styleOverrides:{root:{".MuiToggleButtonGroup-firstButton":{borderRadius:"10px 0 0 10px"},".MuiToggleButtonGroup-lastButton":{borderRadius:"0 10px 10px 0"}}}},MuiToggleButton:{styleOverrides:{root:{textTransform:"none",padding:"6px 16px"}}},MuiSelect:{variants:[{props:{variant:"filled"},style:{borderRadius:"10px","::before, ::after":{visibility:"collapse"},".MuiInputBase-input":{padding:"6px 16px",borderRadius:"10px"}}}]},MuiDrawer:{styleOverrides:{paper:{border:"none",boxShadow:"4px 0 8px -4px rgba(0, 0, 0, 0.3)"}}},MuiFab:{styleOverrides:{root:{background:(s=(o=e.paletteExt)==null?void 0:o.secondary)==null?void 0:s.tonal}},variants:[{props:{color:"primary"},style:{background:e.palette.primary.main}}]}},componentsExt:{JoggingPanel:{JoggingCartesian:{Axis:{X:{backgroundColor:"rgba(215, 66, 56, 1)",borderColor:"rgba(215, 66, 56, 1)",buttonBackgroundColor:{default:"rgba(241, 77, 66, 1)",pressed:"rgba(138, 41, 35, 1)",hovered:"rgba(241, 77, 66, 1)",disabled:"rgba(241, 77, 66, 1)"},color:"rgba(255, 198, 198, 1)",labelColor:e.palette.text.primary},Y:{backgroundColor:"rgba(20, 151, 108, 1)",borderColor:"rgba(20, 151, 108, 1)",buttonBackgroundColor:{default:"rgba(28, 188, 135, 1)",pressed:"rgba(11, 89, 63, 1)",disabled:"rgba(28, 188, 135, 1)",hovered:"rgba(28, 188, 135, 1)"},color:"rgba(215, 255, 242, 1)",labelColor:e.palette.text.primary},Z:{backgroundColor:"rgba(1, 87, 155, 1)",borderColor:"rgba(1, 87, 155, 1)",buttonBackgroundColor:{default:"rgba(2, 136, 209, 1)",pressed:"rgba(2, 64, 114, 1)",disabled:"rgba(2, 136, 209, 1)",hovered:"rgba(2, 136, 209, 1)"},color:"rgba(210, 239, 255, 1)",labelColor:e.palette.text.primary}}},JoggingJoint:{Joint:{arrowColor:e.palette.text.primary}},VelocitySlider:{sliderLegendColor:e.palette.text.primary}},WandelscriptEditor:{monacoTheme:{base:"vs-dark",inherit:!0,rules:[{token:"keyword",foreground:"#b349a9ff"}],colors:{"editor.background":q.rgbToHex(((i=e.palette.backgroundPaperElevation)==null?void 0:i[5])??""),"editor.foreground":"#d4d4d4","editorLineNumber.foreground":"#797979","editorLineNumber.activeForeground":"#e9e9e9","editor.lineHighlightBorder":"#e9e9e911"}}}}}}function sP(){const e=Ed();return e.palette.mode="light",e}function iP(e){var a,n,o,s;let t=!0;((a=e.palette)==null?void 0:a.mode)==="light"?t=!1:((n=e.palette)==null?void 0:n.mode)!=="dark"&&(t=!(typeof window<"u"&&((s=(o=window.matchMedia)==null?void 0:o.call(window,"(prefers-color-scheme: light)"))==null?void 0:s.matches)));const r=t?Ed():sP();return nc(r,e)}exports.JoggingCartesianAxisControl=No;exports.JoggingJointRotationControl=uc;exports.JoggingPanel=hC;exports.JoggingStore=so;exports.LoadingCover=vs;exports.LoadingErrorMessage=rd;exports.NoMotionGroupModal=bC;exports.PoseCartesianValues=fC;exports.PoseJointValues=gC;exports.PresetEnvironment=ru;exports.Robot=AC;exports.SafetyBar=ZC;exports.SafetyZonesRenderer=ou;exports.SelectableFab=tP;exports.SupportedRobot=Td;exports.TrajectoryRenderer=su;exports.VelocitySlider=Cd;exports.VelocitySliderLabel=Vs;exports.WandelscriptEditor=oP;exports.createNovaMuiTheme=iP;exports.defaultAxisConfig=SC;exports.defaultGetModel=Rs;exports.i18n=gs;exports.useAnimationFrame=Wr;exports.useAutorun=ic;exports.useMounted=Gn;exports.useReaction=lc;
115
115
  //# sourceMappingURL=index.cjs.map