@wandelbots/wandelbots-js-react-components 4.7.1 → 4.7.2-pr.dev-RB-3348-v1-clean-up.560.cbf9c17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (109) hide show
  1. package/README.md +11 -32
  2. package/dist/3d-BOCs0RwR.cjs +2 -0
  3. package/dist/3d-BOCs0RwR.cjs.map +1 -0
  4. package/dist/3d-BTtdSlR9.js +1206 -0
  5. package/dist/3d-BTtdSlR9.js.map +1 -0
  6. package/dist/3d.cjs.js +1 -2
  7. package/dist/3d.esm.js +2 -0
  8. package/dist/auth0-spa-js.production.esm-8ppNz0la.js +5007 -0
  9. package/dist/auth0-spa-js.production.esm-8ppNz0la.js.map +1 -0
  10. package/dist/auth0-spa-js.production.esm-cNFf2AtX.cjs +5 -0
  11. package/dist/auth0-spa-js.production.esm-cNFf2AtX.cjs.map +1 -0
  12. package/dist/components/3d-viewport/CoordinateSystemTransform.d.ts +1 -1
  13. package/dist/components/3d-viewport/CoordinateSystemTransform.d.ts.map +1 -1
  14. package/dist/components/3d-viewport/SafetyZonesRenderer.d.ts +1 -2
  15. package/dist/components/3d-viewport/SafetyZonesRenderer.d.ts.map +1 -1
  16. package/dist/components/3d-viewport/TrajectoryRenderer.d.ts +2 -2
  17. package/dist/components/3d-viewport/TrajectoryRenderer.d.ts.map +1 -1
  18. package/dist/components/3d-viewport/collider/ColliderCollection.d.ts +1 -1
  19. package/dist/components/3d-viewport/collider/ColliderElement.d.ts +1 -1
  20. package/dist/components/3d-viewport/collider/CollisionSceneRenderer.d.ts +2 -2
  21. package/dist/components/3d-viewport/collider/colliderShapeToBufferGeometry.d.ts +1 -1
  22. package/dist/components/jogging/JoggingStore.d.ts +5 -11
  23. package/dist/components/jogging/JoggingStore.d.ts.map +1 -1
  24. package/dist/core-DtLSGTAb.js +18258 -0
  25. package/dist/core-DtLSGTAb.js.map +1 -0
  26. package/dist/core-DufB-Zu5.cjs +52 -0
  27. package/dist/core-DufB-Zu5.cjs.map +1 -0
  28. package/dist/core.cjs.js +1 -2
  29. package/dist/core.esm.js +3 -0
  30. package/dist/index.cjs.js +1 -2
  31. package/dist/index.d.ts +0 -1
  32. package/dist/index.d.ts.map +1 -1
  33. package/dist/index.esm.js +4 -0
  34. package/dist/interpolation-BmgrXVQ7.js +5859 -0
  35. package/dist/interpolation-BmgrXVQ7.js.map +1 -0
  36. package/dist/interpolation-Cz29Pgpr.cjs +8 -0
  37. package/dist/interpolation-Cz29Pgpr.cjs.map +1 -0
  38. package/dist/lib/ConnectedMotionGroup.d.ts +2 -3
  39. package/dist/lib/ConnectedMotionGroup.d.ts.map +1 -1
  40. package/dist/lib/MotionStreamConnection.d.ts +0 -1
  41. package/dist/lib/MotionStreamConnection.d.ts.map +1 -1
  42. package/dist/themes/createDarkTheme.d.ts.map +1 -1
  43. package/dist/themes/themeTypes.d.ts +0 -4
  44. package/dist/themes/themeTypes.d.ts.map +1 -1
  45. package/package.json +21 -24
  46. package/src/components/3d-viewport/CoordinateSystemTransform.tsx +29 -18
  47. package/src/components/3d-viewport/SafetyZonesRenderer.tsx +13 -96
  48. package/src/components/3d-viewport/TrajectoryRenderer.tsx +8 -8
  49. package/src/components/3d-viewport/collider/ColliderCollection.tsx +1 -1
  50. package/src/components/3d-viewport/collider/ColliderElement.tsx +1 -1
  51. package/src/components/3d-viewport/collider/CollisionSceneRenderer.tsx +2 -2
  52. package/src/components/3d-viewport/collider/colliderShapeToBufferGeometry.ts +1 -1
  53. package/src/components/jogging/JoggingStore.ts +5 -5
  54. package/src/components/utils/interpolation.test.ts +3 -3
  55. package/src/index.ts +0 -1
  56. package/src/lib/ConnectedMotionGroup.ts +0 -5
  57. package/src/lib/MotionStreamConnection.ts +0 -5
  58. package/src/themes/createDarkTheme.ts +1 -22
  59. package/src/themes/themeTypes.ts +0 -5
  60. package/dist/3d.cjs.js.map +0 -1
  61. package/dist/3d.es.js +0 -19
  62. package/dist/3d.es.js.map +0 -1
  63. package/dist/LoadingCover-B3UN1lnU.js +0 -81
  64. package/dist/LoadingCover-B3UN1lnU.js.map +0 -1
  65. package/dist/LoadingCover-DXcsXWDy.cjs +0 -2
  66. package/dist/LoadingCover-DXcsXWDy.cjs.map +0 -1
  67. package/dist/MotionGroupVisualizer-7Mw9PINy.js +0 -1366
  68. package/dist/MotionGroupVisualizer-7Mw9PINy.js.map +0 -1
  69. package/dist/MotionGroupVisualizer-C0ll-LQF.cjs +0 -2
  70. package/dist/MotionGroupVisualizer-C0ll-LQF.cjs.map +0 -1
  71. package/dist/WandelscriptEditor-6sAoniLC.cjs +0 -2
  72. package/dist/WandelscriptEditor-6sAoniLC.cjs.map +0 -1
  73. package/dist/WandelscriptEditor-kWC2VyG_.js +0 -140
  74. package/dist/WandelscriptEditor-kWC2VyG_.js.map +0 -1
  75. package/dist/auth0-spa-js.production.esm-DNao6_S5.js +0 -4064
  76. package/dist/auth0-spa-js.production.esm-DNao6_S5.js.map +0 -1
  77. package/dist/auth0-spa-js.production.esm-DaBMfOV8.cjs +0 -5
  78. package/dist/auth0-spa-js.production.esm-DaBMfOV8.cjs.map +0 -1
  79. package/dist/components/wandelscript-editor/WandelscriptEditor.d.ts +0 -16
  80. package/dist/components/wandelscript-editor/WandelscriptEditor.d.ts.map +0 -1
  81. package/dist/components/wandelscript-editor/wandelscript.tmLanguage.d.ts +0 -45
  82. package/dist/components/wandelscript-editor/wandelscript.tmLanguage.d.ts.map +0 -1
  83. package/dist/core.cjs.js.map +0 -1
  84. package/dist/core.es.js +0 -54
  85. package/dist/core.es.js.map +0 -1
  86. package/dist/externalizeComponent-B98tgTPP.cjs +0 -24
  87. package/dist/externalizeComponent-B98tgTPP.cjs.map +0 -1
  88. package/dist/externalizeComponent-BOqKMZMc.js +0 -526
  89. package/dist/externalizeComponent-BOqKMZMc.js.map +0 -1
  90. package/dist/index.cjs.js.map +0 -1
  91. package/dist/index.es.js +0 -72
  92. package/dist/index.es.js.map +0 -1
  93. package/dist/interpolation-B8AcxfdD.js +0 -7167
  94. package/dist/interpolation-B8AcxfdD.js.map +0 -1
  95. package/dist/interpolation-SWzo5zr4.cjs +0 -20
  96. package/dist/interpolation-SWzo5zr4.cjs.map +0 -1
  97. package/dist/theming-BKpqgTRM.js +0 -22360
  98. package/dist/theming-BKpqgTRM.js.map +0 -1
  99. package/dist/theming-CatQaIl_.cjs +0 -115
  100. package/dist/theming-CatQaIl_.cjs.map +0 -1
  101. package/dist/wandelscript.cjs.js +0 -2
  102. package/dist/wandelscript.cjs.js.map +0 -1
  103. package/dist/wandelscript.d.ts +0 -2
  104. package/dist/wandelscript.d.ts.map +0 -1
  105. package/dist/wandelscript.es.js +0 -5
  106. package/dist/wandelscript.es.js.map +0 -1
  107. package/src/components/wandelscript-editor/WandelscriptEditor.tsx +0 -142
  108. package/src/components/wandelscript-editor/wandelscript.tmLanguage.ts +0 -62
  109. package/src/wandelscript.ts +0 -2
@@ -0,0 +1,8 @@
1
+ var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),s=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},c=(n,r,a)=>(a=n==null?{}:e(i(n)),s(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n));let l=require(`three`);l=c(l);let u=require(`react`);u=c(u);let d=require(`@mui/material`),f=require(`mobx-react-lite`),p=require(`react-i18next`),m=require(`i18next`);m=c(m);let h=require(`i18next-browser-languagedetector`);h=c(h);let g=require(`@mui/icons-material`),_=require(`axios`);_=c(_);let ee=require(`mobx`);var te=o((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.fragment`);function r(e,n,r){var i=null;if(r!==void 0&&(i=``+r),n.key!==void 0&&(i=``+n.key),`key`in n)for(var a in r={},n)a!==`key`&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:i,ref:n===void 0?null:n,props:r}}e.Fragment=n,e.jsx=r,e.jsxs=r})),ne=o((e=>{process.env.NODE_ENV!==`production`&&(function(){function t(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===y?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case _:return`Fragment`;case te:return`Profiler`;case ee:return`StrictMode`;case ae:return`Suspense`;case oe:return`SuspenseList`;case ce:return`Activity`}if(typeof e==`object`)switch(typeof e.tag==`number`&&console.error(`Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.`),e.$$typeof){case g:return`Portal`;case re:return e.displayName||`Context`;case ne:return(e._context.displayName||`Context`)+`.Consumer`;case ie:var n=e.render;return e=e.displayName,e||=(e=n.displayName||n.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case se:return n=e.displayName||null,n===null?t(e.type)||`Memo`:n;case v:n=e._payload,e=e._init;try{return t(e(n))}catch{}}return null}function n(e){return``+e}function r(e){try{n(e);var t=!1}catch{t=!0}if(t){t=console;var r=t.error,i=typeof Symbol==`function`&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||`Object`;return r.call(t,`The provided key is an unsupported type %s. This value must be coerced to a string before using it here.`,i),n(e)}}function i(e){if(e===_)return`<>`;if(typeof e==`object`&&e&&e.$$typeof===v)return`<...>`;try{var n=t(e);return n?`<`+n+`>`:`<...>`}catch{return`<...>`}}function a(){var e=b.A;return e===null?null:e.getOwner()}function o(){return Error(`react-stack-top-frame`)}function s(e){if(x.call(e,`key`)){var t=Object.getOwnPropertyDescriptor(e,`key`).get;if(t&&t.isReactWarning)return!1}return e.key!==void 0}function c(e,t){function n(){ue||(ue=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",t))}n.isReactWarning=!0,Object.defineProperty(e,`key`,{get:n,configurable:!0})}function l(){var e=t(this.type);return de[e]||(de[e]=!0,console.error(`Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.`)),e=this.props.ref,e===void 0?null:e}function u(e,t,n,r,i,a){var o=n.ref;return e={$$typeof:h,type:e,key:t,props:n,_owner:r},(o===void 0?null:o)===null?Object.defineProperty(e,`ref`,{enumerable:!1,value:null}):Object.defineProperty(e,`ref`,{enumerable:!1,get:l}),e._store={},Object.defineProperty(e._store,`validated`,{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,`_debugInfo`,{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(e,`_debugStack`,{configurable:!1,enumerable:!1,writable:!0,value:i}),Object.defineProperty(e,`_debugTask`,{configurable:!1,enumerable:!1,writable:!0,value:a}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}function d(e,n,i,o,l,d){var p=n.children;if(p!==void 0)if(o)if(le(p)){for(o=0;o<p.length;o++)f(p[o]);Object.freeze&&Object.freeze(p)}else console.error(`React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.`);else f(p);if(x.call(n,`key`)){p=t(e);var m=Object.keys(n).filter(function(e){return e!==`key`});o=0<m.length?`{key: someKey, `+m.join(`: ..., `)+`: ...}`:`{key: someKey}`,T[p+o]||(m=0<m.length?`{`+m.join(`: ..., `)+`: ...}`:`{}`,console.error(`A props object containing a "key" prop is being spread into JSX:
2
+ let props = %s;
3
+ <%s {...props} />
4
+ React keys must be passed directly to JSX without using spread:
5
+ let props = %s;
6
+ <%s key={someKey} {...props} />`,o,p,m,p),T[p+o]=!0)}if(p=null,i!==void 0&&(r(i),p=``+i),s(n)&&(r(n.key),p=``+n.key),`key`in n)for(var h in i={},n)h!==`key`&&(i[h]=n[h]);else i=n;return p&&c(i,typeof e==`function`?e.displayName||e.name||`Unknown`:e),u(e,p,i,a(),l,d)}function f(e){p(e)?e._store&&(e._store.validated=1):typeof e==`object`&&e&&e.$$typeof===v&&(e._payload.status===`fulfilled`?p(e._payload.value)&&e._payload.value._store&&(e._payload.value._store.validated=1):e._store&&(e._store.validated=1))}function p(e){return typeof e==`object`&&!!e&&e.$$typeof===h}var m=require(`react`),h=Symbol.for(`react.transitional.element`),g=Symbol.for(`react.portal`),_=Symbol.for(`react.fragment`),ee=Symbol.for(`react.strict_mode`),te=Symbol.for(`react.profiler`),ne=Symbol.for(`react.consumer`),re=Symbol.for(`react.context`),ie=Symbol.for(`react.forward_ref`),ae=Symbol.for(`react.suspense`),oe=Symbol.for(`react.suspense_list`),se=Symbol.for(`react.memo`),v=Symbol.for(`react.lazy`),ce=Symbol.for(`react.activity`),y=Symbol.for(`react.client.reference`),b=m.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,x=Object.prototype.hasOwnProperty,le=Array.isArray,S=console.createTask?console.createTask:function(){return null};m={react_stack_bottom_frame:function(e){return e()}};var ue,de={},C=m.react_stack_bottom_frame.bind(m,o)(),w=S(i(o)),T={};e.Fragment=_,e.jsx=function(e,t,n){var r=1e4>b.recentlyCreatedOwnerStacks++;return d(e,t,n,!1,r?Error(`react-stack-top-frame`):C,r?S(i(e)):w)},e.jsxs=function(e,t,n){var r=1e4>b.recentlyCreatedOwnerStacks++;return d(e,t,n,!0,r?Error(`react-stack-top-frame`):C,r?S(i(e)):w)}})()})),re=o(((e,t)=>{process.env.NODE_ENV===`production`?t.exports=te():t.exports=ne()}));function ie(e){try{return JSON.stringify(e)}catch{return}}function ae(e){let t=e.length(),n=new l.Quaternion;if(t>1e-6){let r=e.clone().normalize();n.setFromAxisAngle(r,t)}return n}function oe(e){if(!e||e.length===0)return 5;let t=e.reduce((e,t)=>e+Math.abs(t.a??0)/1e3+Math.abs(t.d??0)/1e3,0)*2;return!Number.isFinite(t)||t<=0?5:t}function se(e){if(e.length<3)return console.log(`Not enough vertices to define a plane`),{isCoplanar:!1};let t=new l.Vector3(e[0].x,e[0].y,e[0].z),n=new l.Vector3(e[1].x,e[1].y,e[1].z),r=new l.Vector3(e[2].x,e[2].y,e[2].z),i=new l.Vector3().subVectors(n,t),a=new l.Vector3().subVectors(r,t),o=new l.Vector3().crossVectors(i,a).normalize();for(let n=3;n<e.length;n++){let r=new l.Vector3(e[n].x,e[n].y,e[n].z),i=new l.Vector3().subVectors(r,t),a=o.dot(i);if(Math.abs(a)>1e-6)return console.log(`Vertices are not on the same plane`),{isCoplanar:!1}}return{isCoplanar:!0,normal:o}}var v={"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.Blocked.ti":`Verbindung blockiert`,"Jogging.Blocked.lb":`Ein anderer Client kontrolliert das Jogging.`,"Jogging.Blocked.Reenable.bt":`Neu verbinden`,"Jogging.Cartesian.MotionType.lb":`Bewegungstyp`,"Jogging.Cartesian.Translation.bt":`Translation`,"Jogging.Cartesian.Rotation.bt":`Rotation`,"Jogging.Joints.JointValues.lb":`Gelenkwerte`,"Jogging.Increment.Continuous.dd":`Fortlaufend`,"Jogging.Cartesian.Orientation.lb":`Orientierung`,"Jogging.JointLimitsReached.lb":`Gelenkgrenzen für Gelenk {{jointNumbers}} erreicht`,"Jogging.Orientation.coordsys":`Roboterbasis`,"Jogging.Orientation.tool":`Werkzeug`,"SafetyBar.ActivationToggle.Activate.bt":`Aktivieren`,"SafetyBar.ActivationToggle.Activated.bt":`Aktiviert`,"SafetyBar.ActivationToggle.Activating.bt":`Wird aktiviert…`,"SafetyBar.ActivationToggle.Deactivating.bt":`Wird deaktiviert…`,"SafetyBar.ControllerType.Physical.lb":`Physisch`,"SafetyBar.ControllerType.Virtual.lb":`Virtuell`,"SafetyBar.MotionGroup.Physical.Explanation.lb":`<code>{{motionGroupId}}</code> ist ein physische Robotersteuerung. Für die Bewegung dieses Roboters sind <strong>Sicherheitsmaßnahmen</strong> aktiv.`,"SafetyBar.MotionGroup.Virtual.Explanation.lb":`<1>{{motionGroupId}}</1> ist eine virtuelle Robotersteuerung ohne physisches Gegenstück. Der Roboter kann ohne Sicherheitsmaßnahmen bewegt werden.`,"SafetyBar.OperationMode.Auto.Explanation.lb":`Automatischer Betriebsmodus der Robotersteuerung aktiv. Automatisierte Bewegung ohne manuelle Bestätigung freigegeben.`,"SafetyBar.OperationMode.Automatic.ti":`Automatisch`,"SafetyBar.OperationMode.Error.Explanation.lb":`Fehler beim Abrufen des Betriebsmodus. Originalhandbediengerät des Roboters verwenden, um Fehler zu lösen.`,"SafetyBar.OperationMode.Error.lb":`Fehler`,"SafetyBar.OperationMode.Manual.Explanation.lb":`Die Robotersteuerung befindet sich im manuellen Betriebsmodus.
7
+ Bei einem physischen Roboter bedeutet dies im Allgemeinen, dass ein Freigabeschalter gedrückt werden muss, damit sich der Roboter erfolgreich bewegen kann.`,"SafetyBar.OperationMode.Manual.lb":`Manuell`,"SafetyBar.OperationMode.ti":`Betriebsmodus`,"SafetyBar.SafetyState.Error.Explanation.lb":`Die Robotersteuerung ist in einen unerwarteten Sicherheitszustand eingetreten.`,"SafetyBar.SafetyState.Error.lb":`Fehler`,"SafetyBar.SafetyState.Estop.lb":`NOT-AUS`,"SafetyBar.SafetyState.ManualActionRequired.Explanation.lb":`Die Robotersteuerung ist in einen Sicherheitszustand eingetreten, der manuelle Maßnahmen zur Behebung erfordert.`,"SafetyBar.SafetyState.ManualActionRequired.lb":`Aktion erforderlich`,"SafetyBar.SafetyState.Normal.Explanation.lb":`Die Robotersteuerung befindet sich in einem sicheren Zustand. Roboterbewegungen sind möglich.`,"SafetyBar.SafetyState.Normal.lb":`Sicher`,"SafetyBar.SafetyState.Stop.Explanation.lb":`Die Robotersteuerung ist in einen Stoppzustand übergegangen. Bis der Stoppzustand aufgelöst ist, ist keine Bewegung mehr möglich.`,"SafetyBar.SafetyState.Stop.lb":`Stopp`,"SafetyBar.SafetyState.ti":`Sicherheitszustand`,"SafetyBar.StopState.Estop.Explanation.lb":`NOT-AUS aktiviert. NOT-AUS freischalten, um Roboter zu bewegen.`,"Jogging.Increment.hlb":`Schrittgröße`,"Jogging.CoordinateSystem.hlb":`Koordinatensystem`,"Jogging.Cartesian.bt":`Kartesisch`,"Jogging.Joints.bt":`Gelenke`,"Jogging.Velocity.bt":`Geschwindigkeit`,"CycleTimer.RemainingTime.lb":`Verbleibende Zeit`,"CycleTimer.OfTime.lb":`von {{time}}`,"CycleTimer.Time.lb":`{{time}}`,"CycleTimer.Error.lb":`Fehler`,"CycleTimer.WaitingForCycle.lb":`Warten auf Programmzyklus`,"CycleTimer.CycleTime.lb":`Zykluszeit`,"CycleTimer.Measuring.lb":`wird gemessen...`,"CycleTimer.Determined.lb":`bestimmt`,"Timer.error":`Fehler`,"ProgramControl.Start.bt":`Start`,"ProgramControl.Resume.bt":`Weiter`,"ProgramControl.Retry.bt":`Wiederholen`,"ProgramControl.Pause.bt":`Pause`,"ProgramControl.Stop.bt":`Stopp`,"ProgramStateIndicator.Preparing.lb":`Vorbereitung`,"ProgramStateIndicator.Starting.lb":`Startet`,"ProgramStateIndicator.Running.lb":`In Betrieb`,"ProgramStateIndicator.Pausing.lb":`Pausiert`,"ProgramStateIndicator.Stopping.lb":`Stoppt`,"ProgramStateIndicator.Completed.lb":`Abgeschlossen`,"ProgramStateIndicator.Failed.lb":`Fehlgeschlagen`,"ProgramStateIndicator.Error.lb":`Fehler`,"ProgramStateIndicator.EStop.lb":`Not-Aus`,"ProgramStateIndicator.Idle.lb":`Leerlauf`,"ProgramStateIndicator.Paused.lb":`Pausiert`,"ProgramStateIndicator.Ready.lb":`Bereit`,"ProgramStateIndicator.Stopped.lb":`Gestoppt`,"ProgramStateIndicator.Auto.lb":`Auto`,"ProgramStateIndicator.Manual.lb":`Manuell`,"ProgramStateIndicator.ManualT1.lb":`Manuell T1`,"ProgramStateIndicator.ManualT2.lb":`Manuell T2`,"RobotSetupReadinessIndicator.Ready.lb":`Bereit`,"RobotSetupReadinessIndicator.RobotDisconnected.lb":`Roboter getrennt`,"RobotSetupReadinessIndicator.CellOpen.lb":`Zelle offen`,"RobotSetupReadinessIndicator.EStop.lb":`Not-Stopp`,"RobotSetupReadinessIndicator.ManualMode.lb":`Manueller Modus`,"RobotSetupReadinessIndicator.PreconditionNotFulfilled.lb":`Voraussetzung nicht erfüllt`,"RobotCard.Runtime.lb":`Laufzeit`,"RobotCard.DriveToHome.bt":`Zur Home-Position fahren`},ce={"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.Blocked.ti":`Connection blocked`,"Jogging.Blocked.lb":`Another client is currently controlling the jogging.`,"Jogging.Blocked.Reenable.bt":`Reconnect`,"Jogging.Cartesian.MotionType.lb":`Motion type`,"Jogging.Cartesian.Translation.bt":`Translation`,"Jogging.Cartesian.Rotation.bt":`Rotation`,"Jogging.Joints.JointValues.lb":`Joint values`,"Jogging.Increment.Continuous.dd":`Continuous`,"Jogging.Cartesian.Orientation.lb":`Orientation`,"Jogging.Activating.lb":`Activating jogging`,"Jogging.JointLimitsReached.lb":`Joint limit reached for joint {{jointNumbers}}`,"Jogging.Orientation.coordsys":`Robot base`,"Jogging.Orientation.tool":`Tool`,"SafetyBar.ActivationToggle.Activate.bt":`Activate`,"SafetyBar.ActivationToggle.Activated.bt":`Activated`,"SafetyBar.ActivationToggle.Activating.bt":`Activating`,"SafetyBar.ActivationToggle.Deactivating.bt":`Deactivating`,"SafetyBar.ControllerType.Physical.lb":`Physical`,"SafetyBar.ControllerType.Virtual.lb":`Virtual`,"SafetyBar.MotionGroup.Physical.Explanation.lb":`<code>{{motionGroupId}}</code> is a physical robot controller. <strong>Safety precautions</strong> are active for the movement of this robot.`,"SafetyBar.MotionGroup.Virtual.Explanation.lb":`<1>{{motionGroupId}}</1> is a virtual robot controller with no physical counterpart. It can be freely manipulated without safety precautions.`,"SafetyBar.OperationMode.Auto.Explanation.lb":`Automatic operation mode active. Automated movement without manual confirmation enabled.`,"SafetyBar.OperationMode.Automatic.ti":`Automatic`,"SafetyBar.OperationMode.Error.Explanation.lb":`Failed to get operation mode. Use the original control panel to resolve the error.`,"SafetyBar.OperationMode.Error.lb":`Error`,"SafetyBar.OperationMode.Manual.Explanation.lb":`The robot controller is in manual operation mode. On a physical robot, this generally indicates that an enabling switch must be held for the robot to move successfully.`,"SafetyBar.OperationMode.Manual.lb":`Manual`,"SafetyBar.OperationMode.ti":`Operation mode`,"SafetyBar.SafetyState.Error.Explanation.lb":`The robot controller has entered an unexpected safety state.`,"SafetyBar.SafetyState.Error.lb":`Error`,"SafetyBar.SafetyState.Estop.lb":`E-Stop`,"SafetyBar.SafetyState.ManualActionRequired.Explanation.lb":`The robot controller has entered a safety state requiring manual action to resolve.`,"SafetyBar.SafetyState.ManualActionRequired.lb":`Action required`,"SafetyBar.SafetyState.Normal.Explanation.lb":`The robot controller is in a safe state. Robot movement is enabled.`,"SafetyBar.SafetyState.Normal.lb":`Safe`,"SafetyBar.SafetyState.Stop.Explanation.lb":`The robot controller has entered a stop state. Movement is no longer possible until the stop state is resolved.`,"SafetyBar.SafetyState.Stop.lb":`Stop`,"SafetyBar.SafetyState.ti":`Safety state`,"SafetyBar.StopState.Estop.Explanation.lb":`An emergency stop of the robot controller has been triggered. Movement of the robot is no longer possible until the estop is released.`,"Jogging.Increment.hlb":`Increment`,"Jogging.CoordinateSystem.hlb":`Coordinate system`,"Jogging.Cartesian.bt":`Cartesian`,"Jogging.Joints.bt":`Joints`,"Jogging.Velocity.bt":`Velocity`,"CycleTimer.RemainingTime.lb":`Time remaining`,"CycleTimer.OfTime.lb":`of {{time}}`,"CycleTimer.Time.lb":`{{time}}`,"CycleTimer.Error.lb":`Error`,"CycleTimer.WaitingForCycle.lb":`Waiting for program cycle`,"CycleTimer.CycleTime.lb":`Cycle Time`,"CycleTimer.Measuring.lb":`measuring...`,"CycleTimer.Determined.lb":`determined`,"Timer.error":`Error`,"ProgramControl.Start.bt":`Start`,"ProgramControl.Resume.bt":`Resume`,"ProgramControl.Retry.bt":`Retry`,"ProgramControl.Pause.bt":`Pause`,"ProgramControl.Stop.bt":`Stop`,"ProgramStateIndicator.Preparing.lb":`Preparing`,"ProgramStateIndicator.Starting.lb":`Starting`,"ProgramStateIndicator.Running.lb":`Running`,"ProgramStateIndicator.Pausing.lb":`Pausing`,"ProgramStateIndicator.Stopping.lb":`Stopping`,"ProgramStateIndicator.Completed.lb":`Completed`,"ProgramStateIndicator.Failed.lb":`Failed`,"ProgramStateIndicator.Error.lb":`Error`,"ProgramStateIndicator.EStop.lb":`E-Stop`,"ProgramStateIndicator.Idle.lb":`Idle`,"ProgramStateIndicator.Paused.lb":`Paused`,"ProgramStateIndicator.Ready.lb":`Ready`,"ProgramStateIndicator.Stopped.lb":`Stopped`,"ProgramStateIndicator.Auto.lb":`Auto`,"ProgramStateIndicator.Manual.lb":`Manual`,"ProgramStateIndicator.ManualT1.lb":`Manual T1`,"ProgramStateIndicator.ManualT2.lb":`Manual T2`,"RobotSetupReadinessIndicator.Ready.lb":`Ready`,"RobotSetupReadinessIndicator.RobotDisconnected.lb":`Robot disconnected`,"RobotSetupReadinessIndicator.CellOpen.lb":`Cell open`,"RobotSetupReadinessIndicator.EStop.lb":`E-Stop`,"RobotSetupReadinessIndicator.ManualMode.lb":`Manual mode`,"RobotSetupReadinessIndicator.PreconditionNotFulfilled.lb":`Precondition not fulfilled`,"RobotCard.Runtime.lb":`Runtime`,"RobotCard.DriveToHome.bt":`Drive to Home`},y=m.default.createInstance();y.use(h.default).init({supportedLngs:[`en`,`de`],resources:{en:{translations:ce},de:{translations:v}},ns:[`translations`],defaultNS:`translations`,detection:{order:[`navigator`,`htmlTag`]}});var b=re();function x(e){return(t=>(0,b.jsx)(le,{children:(0,b.jsx)(e,{...t})}))}var le=({children:e})=>(0,b.jsx)(p.I18nextProvider,{i18n:y,children:e}),S=function(e){return e.IDLE=`idle`,e.PREPARING=`preparing`,e.STARTING=`starting`,e.RUNNING=`running`,e.PAUSING=`pausing`,e.PAUSED=`paused`,e.STOPPING=`stopping`,e.COMPLETED=`completed`,e.FAILED=`failed`,e.STOPPED=`stopped`,e.ERROR=`error`,e}({}),ue=x((0,f.observer)(({state:e,onRun:t,onPause:n,onStop:r,onReset:i,requiresManualReset:a=!1,variant:o=`with_pause`,className:s})=>{let c=(0,d.useTheme)(),{t:l}=(0,p.useTranslation)(),u=()=>{let i={run:{enabled:e===S.IDLE||e===S.STOPPED||e===S.PAUSED||e===S.COMPLETED||e===S.FAILED||e===S.ERROR,label:e===S.PAUSED?l(`ProgramControl.Resume.bt`):e===S.ERROR||e===S.FAILED?l(`ProgramControl.Retry.bt`):l(`ProgramControl.Start.bt`),color:c.palette.success.main,onClick:t},pause:{enabled:e===S.RUNNING,label:l(`ProgramControl.Pause.bt`),color:`#FFFFFF33`,onClick:n||(()=>{})},stop:{enabled:e===S.PREPARING||e===S.STARTING||e===S.RUNNING||e===S.PAUSING||e===S.PAUSED,label:l(`ProgramControl.Stop.bt`),color:c.palette.error.main,onClick:r}};return o===`without_pause`?[i.run,i.stop]:[i.run,i.pause,i.stop]},f=e=>{let t={sx:{fontSize:`55px`}};if(o===`without_pause`)return e===0?(0,b.jsx)(g.PlayArrow,{...t}):(0,b.jsx)(g.Stop,{...t});switch(e){case 0:return(0,b.jsx)(g.PlayArrow,{...t});case 1:return(0,b.jsx)(g.Pause,{...t});case 2:return(0,b.jsx)(g.Stop,{...t});default:return null}};return(0,b.jsx)(d.Box,{className:s,sx:{display:`flex`,flexDirection:`column`,alignItems:`center`,gap:2},children:(0,b.jsx)(d.Box,{sx:{display:`flex`,gap:`40px`,flexWrap:`wrap`,justifyContent:`center`,alignItems:`center`},children:u().map((t,n)=>(0,b.jsxs)(d.Box,{sx:{display:`flex`,flexDirection:`column`,alignItems:`center`,gap:1},children:[(0,b.jsx)(d.Button,{variant:`contained`,disabled:!t.enabled||e===S.PREPARING||e===S.STARTING||e===S.PAUSING||e===S.STOPPING&&!a,onClick:t.onClick,sx:{width:`88px`,height:`88px`,borderRadius:`88px`,backgroundColor:t.color,opacity:t.enabled&&e!==S.PREPARING&&e!==S.STARTING&&e!==S.PAUSING&&!(e===S.STOPPING&&!a)?1:.3,"&:hover":{backgroundColor:t.color,opacity:t.enabled&&e!==S.PREPARING&&e!==S.STARTING&&e!==S.PAUSING&&!(e===S.STOPPING&&!a)?.8:.3},"&:disabled":{backgroundColor:t.color,opacity:.3},minWidth:`88px`,flexShrink:0},children:f(n)}),(0,b.jsx)(d.Typography,{variant:`body1`,sx:{color:t.enabled&&e!==S.PREPARING&&e!==S.STARTING&&e!==S.PAUSING&&!(e===S.STOPPING&&!a)?t.color:c.palette.text.disabled,textAlign:`center`,opacity:t.enabled&&e!==S.PREPARING&&e!==S.STARTING&&e!==S.PAUSING&&!(e===S.STOPPING&&!a)?1:.3},children:t.label})]},t.label))})})})),de=x((0,f.observer)(({programState:e,safetyState:t,operationMode:n,className:r})=>{let i=(0,d.useTheme)(),{t:a}=(0,p.useTranslation)(),{label:o,color:s}=(()=>{if(t===`SAFETY_STATE_DEVICE_EMERGENCY_STOP`||t===`SAFETY_STATE_ROBOT_EMERGENCY_STOP`||t===`SAFETY_STATE_STOP_0`||t===`SAFETY_STATE_STOP_1`||t===`SAFETY_STATE_STOP_2`||t===`SAFETY_STATE_PROTECTIVE_STOP`||t===`SAFETY_STATE_STOP`||t===`SAFETY_STATE_REDUCED`||t===`SAFETY_STATE_MASTERING`||t===`SAFETY_STATE_CONFIRM_SAFETY`||t===`SAFETY_STATE_OPERATOR_SAFETY`||t===`SAFETY_STATE_RECOVERY`||t===`SAFETY_STATE_VIOLATION`)return{label:a(`ProgramStateIndicator.EStop.lb`),color:i.palette.error.main};if(t===`SAFETY_STATE_UNKNOWN`||t===`SAFETY_STATE_FAULT`)return{label:a(`ProgramStateIndicator.Error.lb`),color:i.palette.error.main};if(t===`SAFETY_STATE_NORMAL`)switch(e){case S.PREPARING:return{label:a(`ProgramStateIndicator.Preparing.lb`),color:i.palette.warning.main};case S.STARTING:return{label:a(`ProgramStateIndicator.Starting.lb`),color:i.palette.warning.main};case S.RUNNING:return{label:a(`ProgramStateIndicator.Running.lb`),color:i.palette.success.main};case S.PAUSING:return{label:a(`ProgramStateIndicator.Pausing.lb`),color:i.palette.warning.main};case S.PAUSED:return{label:a(`ProgramStateIndicator.Paused.lb`),color:i.palette.grey[600]};case S.STOPPING:return{label:a(`ProgramStateIndicator.Stopping.lb`),color:i.palette.warning.main};case S.COMPLETED:return{label:a(`ProgramStateIndicator.Completed.lb`),color:i.palette.success.main};case S.FAILED:return{label:a(`ProgramStateIndicator.Failed.lb`),color:i.palette.error.main};case S.STOPPED:return{label:a(`ProgramStateIndicator.Stopped.lb`),color:i.palette.warning.main};case S.ERROR:return{label:a(`ProgramStateIndicator.Error.lb`),color:i.palette.error.main};case S.IDLE:default:return{label:a(`ProgramStateIndicator.Ready.lb`),color:i.palette.success.main}}return{label:a(`ProgramStateIndicator.Idle.lb`),color:i.palette.grey[600]}})();return(0,b.jsx)(d.Chip,{className:r,label:(0,b.jsx)(d.Typography,{variant:`body2`,sx:{fontSize:`0.75rem`,lineHeight:1.2},children:`${o} / ${(()=>{switch(n){case`OPERATION_MODE_AUTO`:return a(`ProgramStateIndicator.Auto.lb`);case`OPERATION_MODE_MANUAL`:return a(`ProgramStateIndicator.Manual.lb`);case`OPERATION_MODE_MANUAL_T1`:return a(`ProgramStateIndicator.ManualT1.lb`);case`OPERATION_MODE_MANUAL_T2`:return a(`ProgramStateIndicator.ManualT2.lb`);default:return a(`ProgramStateIndicator.Auto.lb`)}})()}`}),variant:`filled`,sx:{backgroundColor:s,color:i.palette.getContrastText(s),fontWeight:500,height:`auto`,"& .MuiChip-label":{paddingX:1.5,paddingY:.5}}})})),C=function(e,t){return C=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},C(e,t)};function w(e,t){C(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}function T(e){var t=typeof Symbol==`function`&&e[Symbol.iterator],n=0;return t?t.call(e):{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}function fe(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a}function pe(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(fe(arguments[t]));return e}var me=function(){function e(e,t){this.target=t,this.type=e}return e}(),he=function(e){w(t,e);function t(t,n){var r=e.call(this,`error`,n)||this;return r.message=t.message,r.error=t,r}return t}(me),ge=function(e){w(t,e);function t(t,n,r){t===void 0&&(t=1e3),n===void 0&&(n=``);var i=e.call(this,`close`,r)||this;return i.wasClean=!0,i.code=t,i.reason=n,i}return t}(me),_e=function(){if(typeof WebSocket<`u`)return WebSocket},ve=function(e){return e!==void 0&&!!e&&e.CLOSING===2},E={maxReconnectionDelay:1e4,minReconnectionDelay:1e3+Math.random()*4e3,minUptime:5e3,reconnectionDelayGrowFactor:1.3,connectionTimeout:4e3,maxRetries:1/0,maxEnqueuedMessages:1/0,startClosed:!1,debug:!1},ye=function(){function e(e,t,n){var r=this;n===void 0&&(n={}),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(e){r._debug(`open event`);var t=r._options.minUptime,n=t===void 0?E.minUptime:t;clearTimeout(r._connectTimeout),r._uptimeTimeout=setTimeout(function(){return r._acceptOpen()},n),r._ws.binaryType=r._binaryType,r._messageQueue.forEach(function(e){return r._ws.send(e)}),r._messageQueue=[],r.onopen&&r.onopen(e),r._listeners.open.forEach(function(t){return r._callEventListener(e,t)})},this._handleMessage=function(e){r._debug(`message event`),r.onmessage&&r.onmessage(e),r._listeners.message.forEach(function(t){return r._callEventListener(e,t)})},this._handleError=function(e){r._debug(`error event`,e.message),r._disconnect(void 0,e.message===`TIMEOUT`?`timeout`:void 0),r.onerror&&r.onerror(e),r._debug(`exec error listeners`),r._listeners.error.forEach(function(t){return r._callEventListener(e,t)}),r._connect()},this._handleClose=function(e){r._debug(`close event`),r._clearTimeouts(),r._shouldReconnect&&r._connect(),r.onclose&&r.onclose(e),r._listeners.close.forEach(function(t){return r._callEventListener(e,t)})},this._url=e,this._protocols=t,this._options=n,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(e){this._binaryType=e,this._ws&&(this._ws.binaryType=e)},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(){return this._messageQueue.reduce(function(e,t){return typeof t==`string`?e+=t.length:t instanceof Blob?e+=t.size:e+=t.byteLength,e},0)+(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(e,t){if(e===void 0&&(e=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(e,t)},e.prototype.reconnect=function(e,t){this._shouldReconnect=!0,this._closeCalled=!1,this._retryCount=-1,!this._ws||this._ws.readyState===this.CLOSED||this._disconnect(e,t),this._connect()},e.prototype.send=function(e){if(this._ws&&this._ws.readyState===this.OPEN)this._debug(`send`,e),this._ws.send(e);else{var t=this._options.maxEnqueuedMessages,n=t===void 0?E.maxEnqueuedMessages:t;this._messageQueue.length<n&&(this._debug(`enqueue`,e),this._messageQueue.push(e))}},e.prototype.addEventListener=function(e,t){this._listeners[e]&&this._listeners[e].push(t)},e.prototype.dispatchEvent=function(e){var t,n,r=this._listeners[e.type];if(r)try{for(var i=T(r),a=i.next();!a.done;a=i.next()){var o=a.value;this._callEventListener(e,o)}}catch(e){t={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return!0},e.prototype.removeEventListener=function(e,t){this._listeners[e]&&(this._listeners[e]=this._listeners[e].filter(function(e){return e!==t}))},e.prototype._debug=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._options.debug&&console.log.apply(console,pe([`RWS>`],e))},e.prototype._getNextDelay=function(){var e=this._options,t=e.reconnectionDelayGrowFactor,n=t===void 0?E.reconnectionDelayGrowFactor:t,r=e.minReconnectionDelay,i=r===void 0?E.minReconnectionDelay:r,a=e.maxReconnectionDelay,o=a===void 0?E.maxReconnectionDelay:a,s=0;return this._retryCount>0&&(s=i*n**(this._retryCount-1),s>o&&(s=o)),this._debug(`next delay`,s),s},e.prototype._wait=function(){var e=this;return new Promise(function(t){setTimeout(t,e._getNextDelay())})},e.prototype._getNextUrl=function(e){if(typeof e==`string`)return Promise.resolve(e);if(typeof e==`function`){var t=e();if(typeof t==`string`)return Promise.resolve(t);if(t.then)return t}throw Error(`Invalid URL`)},e.prototype._connect=function(){var e=this;if(!(this._connectLock||!this._shouldReconnect)){this._connectLock=!0;var t=this._options,n=t.maxRetries,r=n===void 0?E.maxRetries:n,i=t.connectionTimeout,a=i===void 0?E.connectionTimeout:i,o=t.WebSocket,s=o===void 0?_e():o;if(this._retryCount>=r){this._debug(`max retries reached`,this._retryCount,`>=`,r);return}if(this._retryCount++,this._debug(`connect`,this._retryCount),this._removeListeners(),!ve(s))throw Error(`No valid WebSocket class provided`);this._wait().then(function(){return e._getNextUrl(e._url)}).then(function(t){e._closeCalled||(e._debug(`connect`,{url:t,protocols:e._protocols}),e._ws=e._protocols?new s(t,e._protocols):new s(t),e._ws.binaryType=e._binaryType,e._connectLock=!1,e._addListeners(),e._connectTimeout=setTimeout(function(){return e._handleTimeout()},a))})}},e.prototype._handleTimeout=function(){this._debug(`timeout event`),this._handleError(new he(Error(`TIMEOUT`),this))},e.prototype._disconnect=function(e,t){if(e===void 0&&(e=1e3),this._clearTimeouts(),this._ws){this._removeListeners();try{this._ws.close(e,t),this._handleClose(new ge(e,t,this))}catch{}}},e.prototype._acceptOpen=function(){this._debug(`accept open`),this._retryCount=0},e.prototype._callEventListener=function(e,t){`handleEvent`in t?t.handleEvent(e):t(e)},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}(),be=class extends ye{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`,e=>{this.receivedFirstMessage||=e}),this.addEventListener(`close`,()=>{console.log(`Websocket to ${this.url} closed`)});let n=this.reconnect;this.reconnect=()=>{this.opts.mock?this.opts.mock.handleWebsocketConnection(this):n.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()}async opened(){return new Promise((e,t)=>{this.readyState===WebSocket.OPEN?e():(this.addEventListener(`open`,()=>e()),this.addEventListener(`error`,t))})}async closed(){return new Promise((e,t)=>{this.readyState===WebSocket.CLOSED?e():(this.addEventListener(`close`,()=>e()),this.addEventListener(`error`,t))})}async firstMessage(){return this.receivedFirstMessage?this.receivedFirstMessage:new Promise((e,t)=>{let n=t=>{this.receivedFirstMessage=t,this.removeEventListener(`message`,n),this.removeEventListener(`error`,r),e(t)},r=e=>{this.removeEventListener(`message`,n),this.removeEventListener(`error`,r),t(e)};this.addEventListener(`message`,n),this.addEventListener(`error`,r)})}async nextMessage(){return new Promise((e,t)=>{let n=t=>{this.removeEventListener(`message`,n),this.removeEventListener(`error`,r),e(t)},r=e=>{this.removeEventListener(`message`,n),this.removeEventListener(`error`,r),t(e)};this.addEventListener(`message`,n),this.addEventListener(`error`,r)})}},D=new class{constructor(){this.available=typeof window<`u`&&!!window.localStorage}getJSON(e){if(!this.available)return null;let 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}};function xe(e,t={}){let{scheme:n,defaultScheme:r}=t,i=/^[a-zA-Z]+:\/\//;return n?(e=e.replace(i,``),e=`${n}://${e}`):r&&!i.test(e)&&(e=`${r}://${e}`),new URL(e)}function Se(e,t={}){try{return xe(e,t)}catch{return}}function Ce(e){return Se(e,{defaultScheme:`http`})?.host.endsWith(`.wandelbots.io`)?xe(e,{defaultScheme:`https`}):xe(e,{defaultScheme:`http`})}var we={dev:{domain:`https://auth.portal.dev.wandelbots.io`,clientId:`fLbJD0RLp5r2Dpucm5j8BjwMR6Hunfha`},stg:{domain:`https://auth.portal.stg.wandelbots.io`,clientId:`joVDeD9e786WzFNSGCqoVq7HNkWt5j6s`},prod:{domain:`https://auth.portal.wandelbots.io`,clientId:`J7WJUi38xVQdJAEBNRT9Xw1b0fXDb4J2`}},Te=e=>{if(e.host.endsWith(`.dev.wandelbots.io`))return we.dev;if(e.host.endsWith(`.stg.wandelbots.io`))return we.stg;if(e.host.endsWith(`.wandelbots.io`))return we.prod;throw Error(`Unable to authenticate with NOVA instance "${e}". Auth0 login is only supported for cloud instances with hosts of the form "**.wandelbots.io".`)},Ee=async e=>{if(typeof window>`u`)throw Error(`Access token must be set to use NovaClient when not in a browser environment.`);if(e.origin===window.location.origin)throw window.location.reload(),Error(`Failed to reload page to get auth details, please refresh manually`);let{Auth0Client:t}=await Promise.resolve().then(()=>require(`./auth0-spa-js.production.esm-cNFf2AtX.cjs`)),n=Te(e),r=new t({domain:n.domain,clientId:n.clientId??``,useRefreshTokens:!1,authorizationParams:{audience:`nova-api`,redirect_uri:window.location.origin}});if(window.location.search.includes(`code=`)&&window.location.search.includes(`state=`)){let{appState:e}=await r.handleRedirectCallback();window.history.replaceState({},document.title,e?.returnTo||window.location.pathname)}else await r.loginWithRedirect();return await r.getTokenSilently()};function De(e){var t=[];if(e.length===0)return``;if(typeof e[0]!=`string`)throw TypeError(`Url must be a string. Received `+e[0]);e[0].match(/^[^/:]+:\/*$/)&&e.length>1&&(e[0]=e.shift()+e[0]),e[0].match(/^file:\/\/\//)?e[0]=e[0].replace(/^([^/:]+):\/*/,`$1:///`):e[0]=e[0].replace(/^([^/:]+):\/*/,`$1://`);for(var n=0;n<e.length;n++){var r=e[n];if(typeof r!=`string`)throw TypeError(`Url must be a string. Received `+r);r!==``&&(n>0&&(r=r.replace(/^[\/]+/,``)),r=n<e.length-1?r.replace(/[\/]+$/,``):r.replace(/[\/]+$/,`/`),t.push(r))}var i=t.join(`/`);i=i.replace(/\/(\?|&|#[^!])/g,`$1`);var a=i.split(`?`);return i=a.shift()+(a.length>0?`?`:``)+a.join(`&`),i}function Oe(){return De(typeof arguments[0]==`object`?arguments[0]:[].slice.call(arguments))}var ke=c(o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.PathError=e.TokenData=void 0,e.match=u;var t=`/`,n=e=>e,r=/^[$_\p{ID_Start}]$/u,i=/^[$\u200c\u200d\p{ID_Continue}]$/u,a={"{":`{`,"}":`}`,"(":`(`,")":`)`,"[":`[`,"]":`]`,"+":`+`,"?":`?`,"!":`!`};function o(e){return e.replace(/[.+*?^${}()[\]|/\\]/g,`\\$&`)}var s=class{constructor(e,t){this.tokens=e,this.originalPath=t}};e.TokenData=s;var c=class extends TypeError{constructor(e,t){let n=e;t&&(n+=`: ${t}`),n+=`; visit https://git.new/pathToRegexpError for info`,super(n),this.originalPath=t}};e.PathError=c;function l(e,t={}){let{encodePath:o=n}=t,l=[...e],u=[],d=0,f=0;function p(){let t=``;if(r.test(l[d]))do t+=l[d++];while(i.test(l[d]));else if(l[d]===`"`){let n=d;for(;d++<l.length;){if(l[d]===`"`){d++,n=0;break}l[d]===`\\`&&d++,t+=l[d]}if(n)throw new c(`Unterminated quote at index ${n}`,e)}if(!t)throw new c(`Missing parameter name at index ${d}`,e);return t}for(;d<l.length;){let e=l[d],t=a[e];t?u.push({type:t,index:d++,value:e}):e===`\\`?u.push({type:`escape`,index:d++,value:l[d++]}):e===`:`?u.push({type:`param`,index:d++,value:p()}):e===`*`?u.push({type:`wildcard`,index:d++,value:p()}):u.push({type:`char`,index:d++,value:e})}u.push({type:`end`,index:d,value:``});function m(t){let n=[];for(;;){let r=u[f++];if(r.type===t)break;if(r.type===`char`||r.type===`escape`){let e=r.value,t=u[f];for(;t.type===`char`||t.type===`escape`;)e+=t.value,t=u[++f];n.push({type:`text`,value:o(e)});continue}if(r.type===`param`||r.type===`wildcard`){n.push({type:r.type,name:r.value});continue}if(r.type===`{`){n.push({type:`group`,tokens:m(`}`)});continue}throw new c(`Unexpected ${r.type} at index ${r.index}, expected ${t}`,e)}return n}return new s(m(`end`),e)}function u(e,r={}){let{decode:i=decodeURIComponent,delimiter:a=t}=r,{regexp:o,keys:s}=d(e,r),c=s.map(e=>i===!1?n:e.type===`param`?i:e=>e.split(a).map(i));return function(e){let t=o.exec(e);if(!t)return!1;let n=t[0],r=Object.create(null);for(let e=1;e<t.length;e++){if(t[e]===void 0)continue;let n=s[e-1],i=c[e-1];r[n.name]=i(t[e])}return{path:n,params:r}}}function d(e,n={}){let{delimiter:r=t,end:i=!0,sensitive:a=!1,trailing:s=!0}=n,c=[],u=a?``:`i`,d=[];for(let t of f(e,[])){let e=typeof t==`object`?t:l(t,n);for(let t of p(e.tokens,0,[]))d.push(m(t,r,c,e.originalPath))}let h=`^(?:${d.join(`|`)})`;return s&&(h+=`(?:${o(r)}$)?`),h+=i?`$`:`(?=${o(r)}|$)`,{regexp:new RegExp(h,u),keys:c}}function f(e,t){if(Array.isArray(e))for(let n of e)f(n,t);else t.push(e);return t}function*p(e,t,n){if(t===e.length)return yield n;let r=e[t];if(r.type===`group`)for(let i of p(r.tokens,0,n.slice()))yield*p(e,t+1,i);else n.push(r);yield*p(e,t+1,n)}function m(e,t,n,r){let i=``,a=``,s=!0;for(let l of e){if(l.type===`text`){i+=o(l.value),a+=l.value,s||=l.value.includes(t);continue}if(l.type===`param`||l.type===`wildcard`){if(!s&&!a)throw new c(`Missing text before "${l.name}" ${l.type}`,r);l.type===`param`?i+=`(${h(t,s?``:a)}+)`:i+=`([\\s\\S]+)`,n.push(l),a=``,s=!1;continue}}return i}function h(e,t){return t.length<2?e.length<2?`[^${o(e+t)}]`:`(?:(?!${o(e)})[^${o(t)}])`:e.length<2?`(?:(?!${o(t)})[^${o(e)}])`:`(?:(?!${o(t)}|${o(e)})[\\s\\S])`}}))(),1);function O(e){"@babel/helpers - typeof";return O=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},O(e)}function Ae(e,t){if(O(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(O(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function je(e){var t=Ae(e,`string`);return O(t)==`symbol`?t:t+``}function Me(e,t,n){return(t=je(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var k=`/api/v2`.replace(/\/+$/,``),Ne={csv:`,`,ssv:` `,tsv:` `,pipes:`|`},A=class{constructor(e,t=k,n=_.default){this.basePath=t,this.axios=n,Me(this,`configuration`,void 0),e&&(this.configuration=e,this.basePath=e.basePath??t)}},Pe=class extends Error{constructor(e,t){super(t),this.field=e,this.name=`RequiredError`}},j={},M=`https://example.com`,N=function(e,t,n){if(n==null)throw new Pe(t,`Required parameter ${t} was null or undefined when calling ${e}.`)},P=async function(e,t){t&&t.accessToken&&(e.Authorization=`Bearer `+(typeof t.accessToken==`function`?await t.accessToken():await t.accessToken))};function Fe(e,t,n=``){t!=null&&(typeof t==`object`?Array.isArray(t)?t.forEach(t=>Fe(e,t,n)):Object.keys(t).forEach(r=>Fe(e,t[r],`${n}${n===``?``:`.`}${r}`)):e.has(n)?e.append(n,t):e.set(n,t))}var F=function(e,...t){let n=new URLSearchParams(e.search);Fe(n,t),e.search=n.toString()},I=function(e,t,n){let r=typeof e!=`string`;return(r&&n&&n.isJsonMime?n.isJsonMime(t.headers[`Content-Type`]):r)?JSON.stringify(e===void 0?{}:e):e||``},L=function(e){return e.pathname+e.search+e.hash},R=function(e,t,n,r){return(i=t,a=n)=>{let o={...e.options,url:(i.defaults.baseURL?``:r?.basePath??a)+e.url};return i.request(o)}},Ie={RevoluteJoint:`REVOLUTE_JOINT`,PrismaticJoint:`PRISMATIC_JOINT`},Le={Abb:`abb`,Fanuc:`fanuc`,Kuka:`kuka`,Universalrobots:`universalrobots`,Yaskawa:`yaskawa`},Re=function(e){return{addApp:async(t,n,r,i={})=>{N(`addApp`,`cell`,t),N(`addApp`,`app`,n);let a=`/cells/{cell}/apps`.replace(`{cell}`,encodeURIComponent(String(t))),o=new URL(a,M),s;e&&(s=e.baseOptions);let c={method:`POST`,...s,...i},l={},u={};await P(l,e),r!==void 0&&(u.completion_timeout=r),l[`Content-Type`]=`application/json`,F(o,u);let d=s&&s.headers?s.headers:{};return c.headers={...l,...d,...i.headers},c.data=I(n,c,e),{url:L(o),options:c}},clearApps:async(t,n,r={})=>{N(`clearApps`,`cell`,t);let i=`/cells/{cell}/apps`.replace(`{cell}`,encodeURIComponent(String(t))),a=new URL(i,M),o;e&&(o=e.baseOptions);let s={method:`DELETE`,...o,...r},c={},l={};await P(c,e),n!==void 0&&(l.completion_timeout=n),F(a,l);let u=o&&o.headers?o.headers:{};return s.headers={...c,...u,...r.headers},{url:L(a),options:s}},deleteApp:async(t,n,r,i={})=>{N(`deleteApp`,`cell`,t),N(`deleteApp`,`app`,n);let a=`/cells/{cell}/apps/{app}`.replace(`{cell}`,encodeURIComponent(String(t))).replace(`{app}`,encodeURIComponent(String(n))),o=new URL(a,M),s;e&&(s=e.baseOptions);let c={method:`DELETE`,...s,...i},l={},u={};await P(l,e),r!==void 0&&(u.completion_timeout=r),F(o,u);let d=s&&s.headers?s.headers:{};return c.headers={...l,...d,...i.headers},{url:L(o),options:c}},getApp:async(t,n,r={})=>{N(`getApp`,`cell`,t),N(`getApp`,`app`,n);let i=`/cells/{cell}/apps/{app}`.replace(`{cell}`,encodeURIComponent(String(t))).replace(`{app}`,encodeURIComponent(String(n))),a=new URL(i,M),o;e&&(o=e.baseOptions);let s={method:`GET`,...o,...r},c={};await P(c,e),F(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},{url:L(a),options:s}},listApps:async(t,n={})=>{N(`listApps`,`cell`,t);let r=`/cells/{cell}/apps`.replace(`{cell}`,encodeURIComponent(String(t))),i=new URL(r,M),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={};await P(s,e),F(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:L(i),options:o}},updateApp:async(t,n,r,i,a={})=>{N(`updateApp`,`cell`,t),N(`updateApp`,`app`,n),N(`updateApp`,`app2`,r);let o=`/cells/{cell}/apps/{app}`.replace(`{cell}`,encodeURIComponent(String(t))).replace(`{app}`,encodeURIComponent(String(n))),s=new URL(o,M),c;e&&(c=e.baseOptions);let l={method:`PUT`,...c,...a},u={},d={};await P(u,e),i!==void 0&&(d.completion_timeout=i),u[`Content-Type`]=`application/json`,F(s,d);let f=c&&c.headers?c.headers:{};return l.headers={...u,...f,...a.headers},l.data=I(r,l,e),{url:L(s),options:l}}}},z=function(e){let t=Re(e);return{async addApp(n,r,i,a){let o=await t.addApp(n,r,i,a),s=e?.serverIndex??0,c=j[`ApplicationApi.addApp`]?.[s]?.url;return(t,n)=>R(o,_.default,k,e)(t,c||n)},async clearApps(n,r,i){let a=await t.clearApps(n,r,i),o=e?.serverIndex??0,s=j[`ApplicationApi.clearApps`]?.[o]?.url;return(t,n)=>R(a,_.default,k,e)(t,s||n)},async deleteApp(n,r,i,a){let o=await t.deleteApp(n,r,i,a),s=e?.serverIndex??0,c=j[`ApplicationApi.deleteApp`]?.[s]?.url;return(t,n)=>R(o,_.default,k,e)(t,c||n)},async getApp(n,r,i){let a=await t.getApp(n,r,i),o=e?.serverIndex??0,s=j[`ApplicationApi.getApp`]?.[o]?.url;return(t,n)=>R(a,_.default,k,e)(t,s||n)},async listApps(n,r){let i=await t.listApps(n,r),a=e?.serverIndex??0,o=j[`ApplicationApi.listApps`]?.[a]?.url;return(t,n)=>R(i,_.default,k,e)(t,o||n)},async updateApp(n,r,i,a,o){let s=await t.updateApp(n,r,i,a,o),c=e?.serverIndex??0,l=j[`ApplicationApi.updateApp`]?.[c]?.url;return(t,n)=>R(s,_.default,k,e)(t,l||n)}}},ze=class extends A{addApp(e,t,n,r){return z(this.configuration).addApp(e,t,n,r).then(e=>e(this.axios,this.basePath))}clearApps(e,t,n){return z(this.configuration).clearApps(e,t,n).then(e=>e(this.axios,this.basePath))}deleteApp(e,t,n,r){return z(this.configuration).deleteApp(e,t,n,r).then(e=>e(this.axios,this.basePath))}getApp(e,t,n){return z(this.configuration).getApp(e,t,n).then(e=>e(this.axios,this.basePath))}listApps(e,t){return z(this.configuration).listApps(e,t).then(e=>e(this.axios,this.basePath))}updateApp(e,t,n,r,i){return z(this.configuration).updateApp(e,t,n,r,i).then(e=>e(this.axios,this.basePath))}},Be=function(e){return{addBusIOService:async(t,n,r,i={})=>{N(`addBusIOService`,`cell`,t),N(`addBusIOService`,`busIOType`,n);let a=`/cells/{cell}/bus-ios`.replace(`{cell}`,encodeURIComponent(String(t))),o=new URL(a,M),s;e&&(s=e.baseOptions);let c={method:`POST`,...s,...i},l={},u={};await P(l,e),r!==void 0&&(u.completion_timeout=r),l[`Content-Type`]=`application/json`,F(o,u);let d=s&&s.headers?s.headers:{};return c.headers={...l,...d,...i.headers},c.data=I(n,c,e),{url:L(o),options:c}},addModbusIO:async(t,n,r,i={})=>{N(`addModbusIO`,`cell`,t),N(`addModbusIO`,`io`,n),N(`addModbusIO`,`modbusIOData`,r);let a=`/cells/{cell}/bus-ios/modbus/ios/{io}`.replace(`{cell}`,encodeURIComponent(String(t))).replace(`{io}`,encodeURIComponent(String(n))),o=new URL(a,M),s;e&&(s=e.baseOptions);let c={method:`PUT`,...s,...i},l={};await P(l,e),l[`Content-Type`]=`application/json`,F(o,{});let u=s&&s.headers?s.headers:{};return c.headers={...l,...u,...i.headers},c.data=I(r,c,e),{url:L(o),options:c}},addProfinetIO:async(t,n,r,i={})=>{N(`addProfinetIO`,`cell`,t),N(`addProfinetIO`,`io`,n),N(`addProfinetIO`,`profinetIOData`,r);let a=`/cells/{cell}/bus-ios/profinet/ios/{io}`.replace(`{cell}`,encodeURIComponent(String(t))).replace(`{io}`,encodeURIComponent(String(n))),o=new URL(a,M),s;e&&(s=e.baseOptions);let c={method:`PUT`,...s,...i},l={};await P(l,e),l[`Content-Type`]=`application/json`,F(o,{});let u=s&&s.headers?s.headers:{};return c.headers={...l,...u,...i.headers},c.data=I(r,c,e),{url:L(o),options:c}},clearBusIOService:async(t,n,r={})=>{N(`clearBusIOService`,`cell`,t);let i=`/cells/{cell}/bus-ios`.replace(`{cell}`,encodeURIComponent(String(t))),a=new URL(i,M),o;e&&(o=e.baseOptions);let s={method:`DELETE`,...o,...r},c={},l={};await P(c,e),n!==void 0&&(l.completion_timeout=n),F(a,l);let u=o&&o.headers?o.headers:{};return s.headers={...c,...u,...r.headers},{url:L(a),options:s}},deleteAllModbusIOs:async(t,n={})=>{N(`deleteAllModbusIOs`,`cell`,t);let r=`/cells/{cell}/bus-ios/modbus/ios`.replace(`{cell}`,encodeURIComponent(String(t))),i=new URL(r,M),a;e&&(a=e.baseOptions);let o={method:`DELETE`,...a,...n},s={};await P(s,e),F(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:L(i),options:o}},deleteAllProfinetIOs:async(t,n={})=>{N(`deleteAllProfinetIOs`,`cell`,t);let r=`/cells/{cell}/bus-ios/profinet/ios`.replace(`{cell}`,encodeURIComponent(String(t))),i=new URL(r,M),a;e&&(a=e.baseOptions);let o={method:`DELETE`,...a,...n},s={};await P(s,e),F(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:L(i),options:o}},deleteModbusIO:async(t,n,r={})=>{N(`deleteModbusIO`,`cell`,t),N(`deleteModbusIO`,`io`,n);let i=`/cells/{cell}/bus-ios/modbus/ios/{io}`.replace(`{cell}`,encodeURIComponent(String(t))).replace(`{io}`,encodeURIComponent(String(n))),a=new URL(i,M),o;e&&(o=e.baseOptions);let s={method:`DELETE`,...o,...r},c={};await P(c,e),F(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},{url:L(a),options:s}},deleteProfinetIO:async(t,n,r={})=>{N(`deleteProfinetIO`,`cell`,t),N(`deleteProfinetIO`,`io`,n);let i=`/cells/{cell}/bus-ios/profinet/ios/{io}`.replace(`{cell}`,encodeURIComponent(String(t))).replace(`{io}`,encodeURIComponent(String(n))),a=new URL(i,M),o;e&&(o=e.baseOptions);let s={method:`DELETE`,...o,...r},c={};await P(c,e),F(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},{url:L(a),options:s}},getBusIOService:async(t,n={})=>{N(`getBusIOService`,`cell`,t);let r=`/cells/{cell}/bus-ios`.replace(`{cell}`,encodeURIComponent(String(t))),i=new URL(r,M),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={};await P(s,e),F(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:L(i),options:o}},getBusIOState:async(t,n={})=>{N(`getBusIOState`,`cell`,t);let r=`/cells/{cell}/bus-ios/state`.replace(`{cell}`,encodeURIComponent(String(t))),i=new URL(r,M),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={};await P(s,e),F(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:L(i),options:o}},getBusIOValues:async(t,n,r={})=>{N(`getBusIOValues`,`cell`,t);let i=`/cells/{cell}/bus-ios/ios/values`.replace(`{cell}`,encodeURIComponent(String(t))),a=new URL(i,M),o;e&&(o=e.baseOptions);let s={method:`GET`,...o,...r},c={},l={};await P(c,e),n&&(l.ios=n),F(a,l);let u=o&&o.headers?o.headers:{};return s.headers={...c,...u,...r.headers},{url:L(a),options:s}},getProfinetDescription:async(t,n={})=>{N(`getProfinetDescription`,`cell`,t);let r=`/cells/{cell}/bus-ios/profinet/description`.replace(`{cell}`,encodeURIComponent(String(t))),i=new URL(r,M),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={};await P(s,e),F(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:L(i),options:o}},getProfinetIOsFromFile:async(t,n,r,i={})=>{N(`getProfinetIOsFromFile`,`cell`,t);let a=`/cells/{cell}/bus-ios/profinet/iofile`.replace(`{cell}`,encodeURIComponent(String(t))),o=new URL(a,M),s;e&&(s=e.baseOptions);let c={method:`GET`,...s,...i},l={},u={};await P(l,e),n!==void 0&&(u.input_offset=n),r!==void 0&&(u.output_offset=r),F(o,u);let d=s&&s.headers?s.headers:{};return c.headers={...l,...d,...i.headers},{url:L(o),options:c}},listBusIODescriptions:async(t,n={})=>{N(`listBusIODescriptions`,`cell`,t);let r=`/cells/{cell}/bus-ios/ios/description`.replace(`{cell}`,encodeURIComponent(String(t))),i=new URL(r,M),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={};await P(s,e),F(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:L(i),options:o}},listModbusIOs:async(t,n={})=>{N(`listModbusIOs`,`cell`,t);let r=`/cells/{cell}/bus-ios/modbus/ios`.replace(`{cell}`,encodeURIComponent(String(t))),i=new URL(r,M),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={};await P(s,e),F(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:L(i),options:o}},listProfinetIOs:async(t,n={})=>{N(`listProfinetIOs`,`cell`,t);let r=`/cells/{cell}/bus-ios/profinet/ios`.replace(`{cell}`,encodeURIComponent(String(t))),i=new URL(r,M),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={};await P(s,e),F(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:L(i),options:o}},setBusIOValues:async(t,n,r={})=>{N(`setBusIOValues`,`cell`,t),N(`setBusIOValues`,`iOValue`,n);let i=`/cells/{cell}/bus-ios/ios/values`.replace(`{cell}`,encodeURIComponent(String(t))),a=new URL(i,M),o;e&&(o=e.baseOptions);let s={method:`PUT`,...o,...r},c={};await P(c,e),c[`Content-Type`]=`application/json`,F(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=I(n,s,e),{url:L(a),options:s}},setProfinetIOsFromFile:async(t,n,r={})=>{N(`setProfinetIOsFromFile`,`cell`,t),N(`setProfinetIOsFromFile`,`profinetInputOutputConfig`,n);let i=`/cells/{cell}/bus-ios/profinet/iofile`.replace(`{cell}`,encodeURIComponent(String(t))),a=new URL(i,M),o;e&&(o=e.baseOptions);let s={method:`PUT`,...o,...r},c={};await P(c,e),c[`Content-Type`]=`application/json`,F(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=I(n,s,e),{url:L(a),options:s}}}},B=function(e){let t=Be(e);return{async addBusIOService(n,r,i,a){let o=await t.addBusIOService(n,r,i,a),s=e?.serverIndex??0,c=j[`BUSInputsOutputsApi.addBusIOService`]?.[s]?.url;return(t,n)=>R(o,_.default,k,e)(t,c||n)},async addModbusIO(n,r,i,a){let o=await t.addModbusIO(n,r,i,a),s=e?.serverIndex??0,c=j[`BUSInputsOutputsApi.addModbusIO`]?.[s]?.url;return(t,n)=>R(o,_.default,k,e)(t,c||n)},async addProfinetIO(n,r,i,a){let o=await t.addProfinetIO(n,r,i,a),s=e?.serverIndex??0,c=j[`BUSInputsOutputsApi.addProfinetIO`]?.[s]?.url;return(t,n)=>R(o,_.default,k,e)(t,c||n)},async clearBusIOService(n,r,i){let a=await t.clearBusIOService(n,r,i),o=e?.serverIndex??0,s=j[`BUSInputsOutputsApi.clearBusIOService`]?.[o]?.url;return(t,n)=>R(a,_.default,k,e)(t,s||n)},async deleteAllModbusIOs(n,r){let i=await t.deleteAllModbusIOs(n,r),a=e?.serverIndex??0,o=j[`BUSInputsOutputsApi.deleteAllModbusIOs`]?.[a]?.url;return(t,n)=>R(i,_.default,k,e)(t,o||n)},async deleteAllProfinetIOs(n,r){let i=await t.deleteAllProfinetIOs(n,r),a=e?.serverIndex??0,o=j[`BUSInputsOutputsApi.deleteAllProfinetIOs`]?.[a]?.url;return(t,n)=>R(i,_.default,k,e)(t,o||n)},async deleteModbusIO(n,r,i){let a=await t.deleteModbusIO(n,r,i),o=e?.serverIndex??0,s=j[`BUSInputsOutputsApi.deleteModbusIO`]?.[o]?.url;return(t,n)=>R(a,_.default,k,e)(t,s||n)},async deleteProfinetIO(n,r,i){let a=await t.deleteProfinetIO(n,r,i),o=e?.serverIndex??0,s=j[`BUSInputsOutputsApi.deleteProfinetIO`]?.[o]?.url;return(t,n)=>R(a,_.default,k,e)(t,s||n)},async getBusIOService(n,r){let i=await t.getBusIOService(n,r),a=e?.serverIndex??0,o=j[`BUSInputsOutputsApi.getBusIOService`]?.[a]?.url;return(t,n)=>R(i,_.default,k,e)(t,o||n)},async getBusIOState(n,r){let i=await t.getBusIOState(n,r),a=e?.serverIndex??0,o=j[`BUSInputsOutputsApi.getBusIOState`]?.[a]?.url;return(t,n)=>R(i,_.default,k,e)(t,o||n)},async getBusIOValues(n,r,i){let a=await t.getBusIOValues(n,r,i),o=e?.serverIndex??0,s=j[`BUSInputsOutputsApi.getBusIOValues`]?.[o]?.url;return(t,n)=>R(a,_.default,k,e)(t,s||n)},async getProfinetDescription(n,r){let i=await t.getProfinetDescription(n,r),a=e?.serverIndex??0,o=j[`BUSInputsOutputsApi.getProfinetDescription`]?.[a]?.url;return(t,n)=>R(i,_.default,k,e)(t,o||n)},async getProfinetIOsFromFile(n,r,i,a){let o=await t.getProfinetIOsFromFile(n,r,i,a),s=e?.serverIndex??0,c=j[`BUSInputsOutputsApi.getProfinetIOsFromFile`]?.[s]?.url;return(t,n)=>R(o,_.default,k,e)(t,c||n)},async listBusIODescriptions(n,r){let i=await t.listBusIODescriptions(n,r),a=e?.serverIndex??0,o=j[`BUSInputsOutputsApi.listBusIODescriptions`]?.[a]?.url;return(t,n)=>R(i,_.default,k,e)(t,o||n)},async listModbusIOs(n,r){let i=await t.listModbusIOs(n,r),a=e?.serverIndex??0,o=j[`BUSInputsOutputsApi.listModbusIOs`]?.[a]?.url;return(t,n)=>R(i,_.default,k,e)(t,o||n)},async listProfinetIOs(n,r){let i=await t.listProfinetIOs(n,r),a=e?.serverIndex??0,o=j[`BUSInputsOutputsApi.listProfinetIOs`]?.[a]?.url;return(t,n)=>R(i,_.default,k,e)(t,o||n)},async setBusIOValues(n,r,i){let a=await t.setBusIOValues(n,r,i),o=e?.serverIndex??0,s=j[`BUSInputsOutputsApi.setBusIOValues`]?.[o]?.url;return(t,n)=>R(a,_.default,k,e)(t,s||n)},async setProfinetIOsFromFile(n,r,i){let a=await t.setProfinetIOsFromFile(n,r,i),o=e?.serverIndex??0,s=j[`BUSInputsOutputsApi.setProfinetIOsFromFile`]?.[o]?.url;return(t,n)=>R(a,_.default,k,e)(t,s||n)}}},Ve=class extends A{addBusIOService(e,t,n,r){return B(this.configuration).addBusIOService(e,t,n,r).then(e=>e(this.axios,this.basePath))}addModbusIO(e,t,n,r){return B(this.configuration).addModbusIO(e,t,n,r).then(e=>e(this.axios,this.basePath))}addProfinetIO(e,t,n,r){return B(this.configuration).addProfinetIO(e,t,n,r).then(e=>e(this.axios,this.basePath))}clearBusIOService(e,t,n){return B(this.configuration).clearBusIOService(e,t,n).then(e=>e(this.axios,this.basePath))}deleteAllModbusIOs(e,t){return B(this.configuration).deleteAllModbusIOs(e,t).then(e=>e(this.axios,this.basePath))}deleteAllProfinetIOs(e,t){return B(this.configuration).deleteAllProfinetIOs(e,t).then(e=>e(this.axios,this.basePath))}deleteModbusIO(e,t,n){return B(this.configuration).deleteModbusIO(e,t,n).then(e=>e(this.axios,this.basePath))}deleteProfinetIO(e,t,n){return B(this.configuration).deleteProfinetIO(e,t,n).then(e=>e(this.axios,this.basePath))}getBusIOService(e,t){return B(this.configuration).getBusIOService(e,t).then(e=>e(this.axios,this.basePath))}getBusIOState(e,t){return B(this.configuration).getBusIOState(e,t).then(e=>e(this.axios,this.basePath))}getBusIOValues(e,t,n){return B(this.configuration).getBusIOValues(e,t,n).then(e=>e(this.axios,this.basePath))}getProfinetDescription(e,t){return B(this.configuration).getProfinetDescription(e,t).then(e=>e(this.axios,this.basePath))}getProfinetIOsFromFile(e,t,n,r){return B(this.configuration).getProfinetIOsFromFile(e,t,n,r).then(e=>e(this.axios,this.basePath))}listBusIODescriptions(e,t){return B(this.configuration).listBusIODescriptions(e,t).then(e=>e(this.axios,this.basePath))}listModbusIOs(e,t){return B(this.configuration).listModbusIOs(e,t).then(e=>e(this.axios,this.basePath))}listProfinetIOs(e,t){return B(this.configuration).listProfinetIOs(e,t).then(e=>e(this.axios,this.basePath))}setBusIOValues(e,t,n){return B(this.configuration).setBusIOValues(e,t,n).then(e=>e(this.axios,this.basePath))}setProfinetIOsFromFile(e,t,n){return B(this.configuration).setProfinetIOsFromFile(e,t,n).then(e=>e(this.axios,this.basePath))}},He=function(e){return{checkCellVersionUpdate:async(t,n,r={})=>{N(`checkCellVersionUpdate`,`cell`,t),N(`checkCellVersionUpdate`,`channel`,n);let i=`/cells/{cell}/update`.replace(`{cell}`,encodeURIComponent(String(t))),a=new URL(i,M),o;e&&(o=e.baseOptions);let s={method:`GET`,...o,...r},c={},l={};await P(c,e),n!==void 0&&(l.channel=n),F(a,l);let u=o&&o.headers?o.headers:{};return s.headers={...c,...u,...r.headers},{url:L(a),options:s}},deleteCell:async(t,n,r={})=>{N(`deleteCell`,`cell`,t);let i=`/cells/{cell}`.replace(`{cell}`,encodeURIComponent(String(t))),a=new URL(i,M),o;e&&(o=e.baseOptions);let s={method:`DELETE`,...o,...r},c={},l={};await P(c,e),n!==void 0&&(l.completion_timeout=n),F(a,l);let u=o&&o.headers?o.headers:{};return s.headers={...c,...u,...r.headers},{url:L(a),options:s}},deployCell:async(t,n,r={})=>{N(`deployCell`,`cell`,t);let i=new URL(`/cells`,M),a;e&&(a=e.baseOptions);let o={method:`POST`,...a,...r},s={},c={};await P(s,e),n!==void 0&&(c.completion_timeout=n),s[`Content-Type`]=`application/json`,F(i,c);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...r.headers},o.data=I(t,o,e),{url:L(i),options:o}},getCell:async(t,n={})=>{N(`getCell`,`cell`,t);let r=`/cells/{cell}`.replace(`{cell}`,encodeURIComponent(String(t))),i=new URL(r,M),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={};await P(s,e),F(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:L(i),options:o}},getCellStatus:async(t,n={})=>{N(`getCellStatus`,`cell`,t);let r=`/cells/{cell}/status`.replace(`{cell}`,encodeURIComponent(String(t))),i=new URL(r,M),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={};await P(s,e),F(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:L(i),options:o}},listCells:async(t={})=>{let n=new URL(`/cells`,M),r;e&&(r=e.baseOptions);let i={method:`GET`,...r,...t},a={};await P(a,e),F(n,{});let o=r&&r.headers?r.headers:{};return i.headers={...a,...o,...t.headers},{url:L(n),options:i}},setCellStatus:async(t,n,r={})=>{N(`setCellStatus`,`cell`,t),N(`setCellStatus`,`operatingState`,n);let i=`/cells/{cell}/status`.replace(`{cell}`,encodeURIComponent(String(t))),a=new URL(i,M),o;e&&(o=e.baseOptions);let s={method:`PUT`,...o,...r},c={},l={};await P(c,e),n!==void 0&&(l.operating_state=n),F(a,l);let u=o&&o.headers?o.headers:{};return s.headers={...c,...u,...r.headers},{url:L(a),options:s}},updateCell:async(t,n,r,i={})=>{N(`updateCell`,`cell`,t),N(`updateCell`,`cell2`,n);let a=`/cells/{cell}`.replace(`{cell}`,encodeURIComponent(String(t))),o=new URL(a,M),s;e&&(s=e.baseOptions);let c={method:`PUT`,...s,...i},l={},u={};await P(l,e),r!==void 0&&(u.completion_timeout=r),l[`Content-Type`]=`application/json`,F(o,u);let d=s&&s.headers?s.headers:{};return c.headers={...l,...d,...i.headers},c.data=I(n,c,e),{url:L(o),options:c}},updateCellVersion:async(t,n,r={})=>{N(`updateCellVersion`,`cell`,t),N(`updateCellVersion`,`updateCellVersionRequest`,n);let i=`/cells/{cell}/update`.replace(`{cell}`,encodeURIComponent(String(t))),a=new URL(i,M),o;e&&(o=e.baseOptions);let s={method:`PUT`,...o,...r},c={};await P(c,e),c[`Content-Type`]=`application/json`,F(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=I(n,s,e),{url:L(a),options:s}}}},V=function(e){let t=He(e);return{async checkCellVersionUpdate(n,r,i){let a=await t.checkCellVersionUpdate(n,r,i),o=e?.serverIndex??0,s=j[`CellApi.checkCellVersionUpdate`]?.[o]?.url;return(t,n)=>R(a,_.default,k,e)(t,s||n)},async deleteCell(n,r,i){let a=await t.deleteCell(n,r,i),o=e?.serverIndex??0,s=j[`CellApi.deleteCell`]?.[o]?.url;return(t,n)=>R(a,_.default,k,e)(t,s||n)},async deployCell(n,r,i){let a=await t.deployCell(n,r,i),o=e?.serverIndex??0,s=j[`CellApi.deployCell`]?.[o]?.url;return(t,n)=>R(a,_.default,k,e)(t,s||n)},async getCell(n,r){let i=await t.getCell(n,r),a=e?.serverIndex??0,o=j[`CellApi.getCell`]?.[a]?.url;return(t,n)=>R(i,_.default,k,e)(t,o||n)},async getCellStatus(n,r){let i=await t.getCellStatus(n,r),a=e?.serverIndex??0,o=j[`CellApi.getCellStatus`]?.[a]?.url;return(t,n)=>R(i,_.default,k,e)(t,o||n)},async listCells(n){let r=await t.listCells(n),i=e?.serverIndex??0,a=j[`CellApi.listCells`]?.[i]?.url;return(t,n)=>R(r,_.default,k,e)(t,a||n)},async setCellStatus(n,r,i){let a=await t.setCellStatus(n,r,i),o=e?.serverIndex??0,s=j[`CellApi.setCellStatus`]?.[o]?.url;return(t,n)=>R(a,_.default,k,e)(t,s||n)},async updateCell(n,r,i,a){let o=await t.updateCell(n,r,i,a),s=e?.serverIndex??0,c=j[`CellApi.updateCell`]?.[s]?.url;return(t,n)=>R(o,_.default,k,e)(t,c||n)},async updateCellVersion(n,r,i){let a=await t.updateCellVersion(n,r,i),o=e?.serverIndex??0,s=j[`CellApi.updateCellVersion`]?.[o]?.url;return(t,n)=>R(a,_.default,k,e)(t,s||n)}}},Ue=class extends A{checkCellVersionUpdate(e,t,n){return V(this.configuration).checkCellVersionUpdate(e,t,n).then(e=>e(this.axios,this.basePath))}deleteCell(e,t,n){return V(this.configuration).deleteCell(e,t,n).then(e=>e(this.axios,this.basePath))}deployCell(e,t,n){return V(this.configuration).deployCell(e,t,n).then(e=>e(this.axios,this.basePath))}getCell(e,t){return V(this.configuration).getCell(e,t).then(e=>e(this.axios,this.basePath))}getCellStatus(e,t){return V(this.configuration).getCellStatus(e,t).then(e=>e(this.axios,this.basePath))}listCells(e){return V(this.configuration).listCells(e).then(e=>e(this.axios,this.basePath))}setCellStatus(e,t,n){return V(this.configuration).setCellStatus(e,t,n).then(e=>e(this.axios,this.basePath))}updateCell(e,t,n,r){return V(this.configuration).updateCell(e,t,n,r).then(e=>e(this.axios,this.basePath))}updateCellVersion(e,t,n){return V(this.configuration).updateCellVersion(e,t,n).then(e=>e(this.axios,this.basePath))}},We=function(e){return{addRobotController:async(t,n,r,i={})=>{N(`addRobotController`,`cell`,t),N(`addRobotController`,`robotController`,n);let a=`/cells/{cell}/controllers`.replace(`{cell}`,encodeURIComponent(String(t))),o=new URL(a,M),s;e&&(s=e.baseOptions);let c={method:`POST`,...s,...i},l={},u={};await P(l,e),r!==void 0&&(u.completion_timeout=r),l[`Content-Type`]=`application/json`,F(o,u);let d=s&&s.headers?s.headers:{};return c.headers={...l,...d,...i.headers},c.data=I(n,c,e),{url:L(o),options:c}},clearRobotControllers:async(t,n,r={})=>{N(`clearRobotControllers`,`cell`,t);let i=`/cells/{cell}/controllers`.replace(`{cell}`,encodeURIComponent(String(t))),a=new URL(i,M),o;e&&(o=e.baseOptions);let s={method:`DELETE`,...o,...r},c={},l={};await P(c,e),n!==void 0&&(l.completion_timeout=n),F(a,l);let u=o&&o.headers?o.headers:{};return s.headers={...c,...u,...r.headers},{url:L(a),options:s}},deleteRobotController:async(t,n,r,i={})=>{N(`deleteRobotController`,`cell`,t),N(`deleteRobotController`,`controller`,n);let a=`/cells/{cell}/controllers/{controller}`.replace(`{cell}`,encodeURIComponent(String(t))).replace(`{controller}`,encodeURIComponent(String(n))),o=new URL(a,M),s;e&&(s=e.baseOptions);let c={method:`DELETE`,...s,...i},l={},u={};await P(l,e),r!==void 0&&(u.completion_timeout=r),F(o,u);let d=s&&s.headers?s.headers:{};return c.headers={...l,...d,...i.headers},{url:L(o),options:c}},getControllerDescription:async(t,n,r={})=>{N(`getControllerDescription`,`cell`,t),N(`getControllerDescription`,`controller`,n);let i=`/cells/{cell}/controllers/{controller}/description`.replace(`{cell}`,encodeURIComponent(String(t))).replace(`{controller}`,encodeURIComponent(String(n))),a=new URL(i,M),o;e&&(o=e.baseOptions);let s={method:`GET`,...o,...r},c={};await P(c,e),F(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},{url:L(a),options:s}},getCoordinateSystem:async(t,n,r,i,a={})=>{N(`getCoordinateSystem`,`cell`,t),N(`getCoordinateSystem`,`controller`,n),N(`getCoordinateSystem`,`coordinateSystem`,r);let o=`/cells/{cell}/controllers/{controller}/coordinate-systems/{coordinate-system}`.replace(`{cell}`,encodeURIComponent(String(t))).replace(`{controller}`,encodeURIComponent(String(n))).replace(`{coordinate-system}`,encodeURIComponent(String(r))),s=new URL(o,M),c;e&&(c=e.baseOptions);let l={method:`GET`,...c,...a},u={},d={};await P(u,e),i!==void 0&&(d.orientation_type=i),F(s,d);let f=c&&c.headers?c.headers:{};return l.headers={...u,...f,...a.headers},{url:L(s),options:l}},getCurrentRobotControllerState:async(t,n,r={})=>{N(`getCurrentRobotControllerState`,`cell`,t),N(`getCurrentRobotControllerState`,`controller`,n);let i=`/cells/{cell}/controllers/{controller}/state`.replace(`{cell}`,encodeURIComponent(String(t))).replace(`{controller}`,encodeURIComponent(String(n))),a=new URL(i,M),o;e&&(o=e.baseOptions);let s={method:`GET`,...o,...r},c={};await P(c,e),F(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},{url:L(a),options:s}},getRobotController:async(t,n,r={})=>{N(`getRobotController`,`cell`,t),N(`getRobotController`,`controller`,n);let i=`/cells/{cell}/controllers/{controller}`.replace(`{cell}`,encodeURIComponent(String(t))).replace(`{controller}`,encodeURIComponent(String(n))),a=new URL(i,M),o;e&&(o=e.baseOptions);let s={method:`GET`,...o,...r},c={};await P(c,e),F(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},{url:L(a),options:s}},getVirtualControllerConfiguration:async(t,n,r={})=>{N(`getVirtualControllerConfiguration`,`cell`,t),N(`getVirtualControllerConfiguration`,`controller`,n);let i=`/cells/{cell}/controllers/{controller}/virtual-robot-configuration`.replace(`{cell}`,encodeURIComponent(String(t))).replace(`{controller}`,encodeURIComponent(String(n))),a=new URL(i,M),o;e&&(o=e.baseOptions);let s={method:`GET`,...o,...r},c={};await P(c,e),F(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},{url:L(a),options:s}},listCoordinateSystems:async(t,n,r,i={})=>{N(`listCoordinateSystems`,`cell`,t),N(`listCoordinateSystems`,`controller`,n);let a=`/cells/{cell}/controllers/{controller}/coordinate-systems`.replace(`{cell}`,encodeURIComponent(String(t))).replace(`{controller}`,encodeURIComponent(String(n))),o=new URL(a,M),s;e&&(s=e.baseOptions);let c={method:`GET`,...s,...i},l={},u={};await P(l,e),r!==void 0&&(u.orientation_type=r),F(o,u);let d=s&&s.headers?s.headers:{};return c.headers={...l,...d,...i.headers},{url:L(o),options:c}},listRobotControllers:async(t,n={})=>{N(`listRobotControllers`,`cell`,t);let r=`/cells/{cell}/controllers`.replace(`{cell}`,encodeURIComponent(String(t))),i=new URL(r,M),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={};await P(s,e),F(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:L(i),options:o}},setDefaultMode:async(t,n,r,i={})=>{N(`setDefaultMode`,`cell`,t),N(`setDefaultMode`,`controller`,n),N(`setDefaultMode`,`mode`,r);let a=`/cells/{cell}/controllers/{controller}/mode`.replace(`{cell}`,encodeURIComponent(String(t))).replace(`{controller}`,encodeURIComponent(String(n))),o=new URL(a,M),s;e&&(s=e.baseOptions);let c={method:`PUT`,...s,...i},l={},u={};await P(l,e),r!==void 0&&(u.mode=r),F(o,u);let d=s&&s.headers?s.headers:{};return c.headers={...l,...d,...i.headers},{url:L(o),options:c}},streamFreeDrive:async(t,n,r,i={})=>{N(`streamFreeDrive`,`cell`,t),N(`streamFreeDrive`,`controller`,n);let a=`/cells/{cell}/controllers/{controller}/free-drive-stream`.replace(`{cell}`,encodeURIComponent(String(t))).replace(`{controller}`,encodeURIComponent(String(n))),o=new URL(a,M),s;e&&(s=e.baseOptions);let c={method:`GET`,...s,...i},l={},u={};await P(l,e),r!==void 0&&(u.response_rate=r),F(o,u);let d=s&&s.headers?s.headers:{};return c.headers={...l,...d,...i.headers},{url:L(o),options:c}},streamRobotControllerState:async(t,n,r,i,a={})=>{N(`streamRobotControllerState`,`cell`,t),N(`streamRobotControllerState`,`controller`,n);let o=`/cells/{cell}/controllers/{controller}/state-stream`.replace(`{cell}`,encodeURIComponent(String(t))).replace(`{controller}`,encodeURIComponent(String(n))),s=new URL(o,M),c;e&&(c=e.baseOptions);let l={method:`GET`,...c,...a},u={},d={};await P(u,e),r!==void 0&&(d.response_rate=r),i!==void 0&&(d.add_controller_timeout=i),F(s,d);let f=c&&c.headers?c.headers:{};return l.headers={...u,...f,...a.headers},{url:L(s),options:l}},updateRobotController:async(t,n,r,i,a={})=>{N(`updateRobotController`,`cell`,t),N(`updateRobotController`,`controller`,n),N(`updateRobotController`,`robotController`,r);let o=`/cells/{cell}/controllers/{controller}`.replace(`{cell}`,encodeURIComponent(String(t))).replace(`{controller}`,encodeURIComponent(String(n))),s=new URL(o,M),c;e&&(c=e.baseOptions);let l={method:`PUT`,...c,...a},u={},d={};await P(u,e),i!==void 0&&(d.completion_timeout=i),u[`Content-Type`]=`application/json`,F(s,d);let f=c&&c.headers?c.headers:{};return l.headers={...u,...f,...a.headers},l.data=I(r,l,e),{url:L(s),options:l}}}},H=function(e){let t=We(e);return{async addRobotController(n,r,i,a){let o=await t.addRobotController(n,r,i,a),s=e?.serverIndex??0,c=j[`ControllerApi.addRobotController`]?.[s]?.url;return(t,n)=>R(o,_.default,k,e)(t,c||n)},async clearRobotControllers(n,r,i){let a=await t.clearRobotControllers(n,r,i),o=e?.serverIndex??0,s=j[`ControllerApi.clearRobotControllers`]?.[o]?.url;return(t,n)=>R(a,_.default,k,e)(t,s||n)},async deleteRobotController(n,r,i,a){let o=await t.deleteRobotController(n,r,i,a),s=e?.serverIndex??0,c=j[`ControllerApi.deleteRobotController`]?.[s]?.url;return(t,n)=>R(o,_.default,k,e)(t,c||n)},async getControllerDescription(n,r,i){let a=await t.getControllerDescription(n,r,i),o=e?.serverIndex??0,s=j[`ControllerApi.getControllerDescription`]?.[o]?.url;return(t,n)=>R(a,_.default,k,e)(t,s||n)},async getCoordinateSystem(n,r,i,a,o){let s=await t.getCoordinateSystem(n,r,i,a,o),c=e?.serverIndex??0,l=j[`ControllerApi.getCoordinateSystem`]?.[c]?.url;return(t,n)=>R(s,_.default,k,e)(t,l||n)},async getCurrentRobotControllerState(n,r,i){let a=await t.getCurrentRobotControllerState(n,r,i),o=e?.serverIndex??0,s=j[`ControllerApi.getCurrentRobotControllerState`]?.[o]?.url;return(t,n)=>R(a,_.default,k,e)(t,s||n)},async getRobotController(n,r,i){let a=await t.getRobotController(n,r,i),o=e?.serverIndex??0,s=j[`ControllerApi.getRobotController`]?.[o]?.url;return(t,n)=>R(a,_.default,k,e)(t,s||n)},async getVirtualControllerConfiguration(n,r,i){let a=await t.getVirtualControllerConfiguration(n,r,i),o=e?.serverIndex??0,s=j[`ControllerApi.getVirtualControllerConfiguration`]?.[o]?.url;return(t,n)=>R(a,_.default,k,e)(t,s||n)},async listCoordinateSystems(n,r,i,a){let o=await t.listCoordinateSystems(n,r,i,a),s=e?.serverIndex??0,c=j[`ControllerApi.listCoordinateSystems`]?.[s]?.url;return(t,n)=>R(o,_.default,k,e)(t,c||n)},async listRobotControllers(n,r){let i=await t.listRobotControllers(n,r),a=e?.serverIndex??0,o=j[`ControllerApi.listRobotControllers`]?.[a]?.url;return(t,n)=>R(i,_.default,k,e)(t,o||n)},async setDefaultMode(n,r,i,a){let o=await t.setDefaultMode(n,r,i,a),s=e?.serverIndex??0,c=j[`ControllerApi.setDefaultMode`]?.[s]?.url;return(t,n)=>R(o,_.default,k,e)(t,c||n)},async streamFreeDrive(n,r,i,a){let o=await t.streamFreeDrive(n,r,i,a),s=e?.serverIndex??0,c=j[`ControllerApi.streamFreeDrive`]?.[s]?.url;return(t,n)=>R(o,_.default,k,e)(t,c||n)},async streamRobotControllerState(n,r,i,a,o){let s=await t.streamRobotControllerState(n,r,i,a,o),c=e?.serverIndex??0,l=j[`ControllerApi.streamRobotControllerState`]?.[c]?.url;return(t,n)=>R(s,_.default,k,e)(t,l||n)},async updateRobotController(n,r,i,a,o){let s=await t.updateRobotController(n,r,i,a,o),c=e?.serverIndex??0,l=j[`ControllerApi.updateRobotController`]?.[c]?.url;return(t,n)=>R(s,_.default,k,e)(t,l||n)}}},Ge=class extends A{addRobotController(e,t,n,r){return H(this.configuration).addRobotController(e,t,n,r).then(e=>e(this.axios,this.basePath))}clearRobotControllers(e,t,n){return H(this.configuration).clearRobotControllers(e,t,n).then(e=>e(this.axios,this.basePath))}deleteRobotController(e,t,n,r){return H(this.configuration).deleteRobotController(e,t,n,r).then(e=>e(this.axios,this.basePath))}getControllerDescription(e,t,n){return H(this.configuration).getControllerDescription(e,t,n).then(e=>e(this.axios,this.basePath))}getCoordinateSystem(e,t,n,r,i){return H(this.configuration).getCoordinateSystem(e,t,n,r,i).then(e=>e(this.axios,this.basePath))}getCurrentRobotControllerState(e,t,n){return H(this.configuration).getCurrentRobotControllerState(e,t,n).then(e=>e(this.axios,this.basePath))}getRobotController(e,t,n){return H(this.configuration).getRobotController(e,t,n).then(e=>e(this.axios,this.basePath))}getVirtualControllerConfiguration(e,t,n){return H(this.configuration).getVirtualControllerConfiguration(e,t,n).then(e=>e(this.axios,this.basePath))}listCoordinateSystems(e,t,n,r){return H(this.configuration).listCoordinateSystems(e,t,n,r).then(e=>e(this.axios,this.basePath))}listRobotControllers(e,t){return H(this.configuration).listRobotControllers(e,t).then(e=>e(this.axios,this.basePath))}setDefaultMode(e,t,n,r){return H(this.configuration).setDefaultMode(e,t,n,r).then(e=>e(this.axios,this.basePath))}streamFreeDrive(e,t,n,r){return H(this.configuration).streamFreeDrive(e,t,n,r).then(e=>e(this.axios,this.basePath))}streamRobotControllerState(e,t,n,r,i){return H(this.configuration).streamRobotControllerState(e,t,n,r,i).then(e=>e(this.axios,this.basePath))}updateRobotController(e,t,n,r,i){return H(this.configuration).updateRobotController(e,t,n,r,i).then(e=>e(this.axios,this.basePath))}},Ke=function(e){return{listIODescriptions:async(t,n,r,i,a,o,s={})=>{N(`listIODescriptions`,`cell`,t),N(`listIODescriptions`,`controller`,n);let c=`/cells/{cell}/controllers/{controller}/ios/description`.replace(`{cell}`,encodeURIComponent(String(t))).replace(`{controller}`,encodeURIComponent(String(n))),l=new URL(c,M),u;e&&(u=e.baseOptions);let d={method:`GET`,...u,...s},f={},p={};await P(f,e),r&&(p.ios=r),i!==void 0&&(p.direction=i),a!==void 0&&(p.value_type=a),o!==void 0&&(p.group=o),F(l,p);let m=u&&u.headers?u.headers:{};return d.headers={...f,...m,...s.headers},{url:L(l),options:d}},listIOValues:async(t,n,r,i={})=>{N(`listIOValues`,`cell`,t),N(`listIOValues`,`controller`,n);let a=`/cells/{cell}/controllers/{controller}/ios/values`.replace(`{cell}`,encodeURIComponent(String(t))).replace(`{controller}`,encodeURIComponent(String(n))),o=new URL(a,M),s;e&&(s=e.baseOptions);let c={method:`GET`,...s,...i},l={},u={};await P(l,e),r&&(u.ios=r),F(o,u);let d=s&&s.headers?s.headers:{};return c.headers={...l,...d,...i.headers},{url:L(o),options:c}},setOutputValues:async(t,n,r,i={})=>{N(`setOutputValues`,`cell`,t),N(`setOutputValues`,`controller`,n),N(`setOutputValues`,`iOValue`,r);let a=`/cells/{cell}/controllers/{controller}/ios/values`.replace(`{cell}`,encodeURIComponent(String(t))).replace(`{controller}`,encodeURIComponent(String(n))),o=new URL(a,M),s;e&&(s=e.baseOptions);let c={method:`PUT`,...s,...i},l={};await P(l,e),l[`Content-Type`]=`application/json`,F(o,{});let u=s&&s.headers?s.headers:{};return c.headers={...l,...u,...i.headers},c.data=I(r,c,e),{url:L(o),options:c}},streamIOValues:async(t,n,r,i={})=>{N(`streamIOValues`,`cell`,t),N(`streamIOValues`,`controller`,n);let a=`/cells/{cell}/controllers/{controller}/ios/stream`.replace(`{cell}`,encodeURIComponent(String(t))).replace(`{controller}`,encodeURIComponent(String(n))),o=new URL(a,M),s;e&&(s=e.baseOptions);let c={method:`GET`,...s,...i},l={},u={};await P(l,e),r&&(u.ios=r),F(o,u);let d=s&&s.headers?s.headers:{};return c.headers={...l,...d,...i.headers},{url:L(o),options:c}},waitForIOEvent:async(t,n,r,i={})=>{N(`waitForIOEvent`,`cell`,t),N(`waitForIOEvent`,`controller`,n),N(`waitForIOEvent`,`waitForIOEventRequest`,r);let a=`/cells/{cell}/controllers/{controller}/ios/wait-for`.replace(`{cell}`,encodeURIComponent(String(t))).replace(`{controller}`,encodeURIComponent(String(n))),o=new URL(a,M),s;e&&(s=e.baseOptions);let c={method:`POST`,...s,...i},l={};await P(l,e),l[`Content-Type`]=`application/json`,F(o,{});let u=s&&s.headers?s.headers:{};return c.headers={...l,...u,...i.headers},c.data=I(r,c,e),{url:L(o),options:c}}}},U=function(e){let t=Ke(e);return{async listIODescriptions(n,r,i,a,o,s,c){let l=await t.listIODescriptions(n,r,i,a,o,s,c),u=e?.serverIndex??0,d=j[`ControllerInputsOutputsApi.listIODescriptions`]?.[u]?.url;return(t,n)=>R(l,_.default,k,e)(t,d||n)},async listIOValues(n,r,i,a){let o=await t.listIOValues(n,r,i,a),s=e?.serverIndex??0,c=j[`ControllerInputsOutputsApi.listIOValues`]?.[s]?.url;return(t,n)=>R(o,_.default,k,e)(t,c||n)},async setOutputValues(n,r,i,a){let o=await t.setOutputValues(n,r,i,a),s=e?.serverIndex??0,c=j[`ControllerInputsOutputsApi.setOutputValues`]?.[s]?.url;return(t,n)=>R(o,_.default,k,e)(t,c||n)},async streamIOValues(n,r,i,a){let o=await t.streamIOValues(n,r,i,a),s=e?.serverIndex??0,c=j[`ControllerInputsOutputsApi.streamIOValues`]?.[s]?.url;return(t,n)=>R(o,_.default,k,e)(t,c||n)},async waitForIOEvent(n,r,i,a){let o=await t.waitForIOEvent(n,r,i,a),s=e?.serverIndex??0,c=j[`ControllerInputsOutputsApi.waitForIOEvent`]?.[s]?.url;return(t,n)=>R(o,_.default,k,e)(t,c||n)}}},qe=class extends A{listIODescriptions(e,t,n,r,i,a,o){return U(this.configuration).listIODescriptions(e,t,n,r,i,a,o).then(e=>e(this.axios,this.basePath))}listIOValues(e,t,n,r){return U(this.configuration).listIOValues(e,t,n,r).then(e=>e(this.axios,this.basePath))}setOutputValues(e,t,n,r){return U(this.configuration).setOutputValues(e,t,n,r).then(e=>e(this.axios,this.basePath))}streamIOValues(e,t,n,r){return U(this.configuration).streamIOValues(e,t,n,r).then(e=>e(this.axios,this.basePath))}waitForIOEvent(e,t,n,r){return U(this.configuration).waitForIOEvent(e,t,n,r).then(e=>e(this.axios,this.basePath))}},Je=function(e){return{executeJogging:async(t,n,r,i={})=>{N(`executeJogging`,`cell`,t),N(`executeJogging`,`controller`,n),N(`executeJogging`,`executeJoggingRequest`,r);let a=`/cells/{cell}/controllers/{controller}/execution/jogging`.replace(`{cell}`,encodeURIComponent(String(t))).replace(`{controller}`,encodeURIComponent(String(n))),o=new URL(a,M),s;e&&(s=e.baseOptions);let c={method:`GET`,...s,...i},l={};await P(l,e),l[`Content-Type`]=`application/json`,F(o,{});let u=s&&s.headers?s.headers:{};return c.headers={...l,...u,...i.headers},c.data=I(r,c,e),{url:L(o),options:c}}}},Ye=function(e){let t=Je(e);return{async executeJogging(n,r,i,a){let o=await t.executeJogging(n,r,i,a),s=e?.serverIndex??0,c=j[`JoggingApi.executeJogging`]?.[s]?.url;return(t,n)=>R(o,_.default,k,e)(t,c||n)}}},Xe=class extends A{executeJogging(e,t,n,r){return Ye(this.configuration).executeJogging(e,t,n,r).then(e=>e(this.axios,this.basePath))}},Ze=function(e){return{forwardKinematics:async(t,n,r={})=>{N(`forwardKinematics`,`cell`,t),N(`forwardKinematics`,`forwardKinematicsRequest`,n);let i=`/cells/{cell}/kinematic/forward`.replace(`{cell}`,encodeURIComponent(String(t))),a=new URL(i,M),o;e&&(o=e.baseOptions);let s={method:`POST`,...o,...r},c={};await P(c,e),c[`Content-Type`]=`application/json`,F(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=I(n,s,e),{url:L(a),options:s}},inverseKinematics:async(t,n,r={})=>{N(`inverseKinematics`,`cell`,t),N(`inverseKinematics`,`inverseKinematicsRequest`,n);let i=`/cells/{cell}/kinematic/inverse`.replace(`{cell}`,encodeURIComponent(String(t))),a=new URL(i,M),o;e&&(o=e.baseOptions);let s={method:`POST`,...o,...r},c={};await P(c,e),c[`Content-Type`]=`application/json`,F(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=I(n,s,e),{url:L(a),options:s}}}},Qe=function(e){let t=Ze(e);return{async forwardKinematics(n,r,i){let a=await t.forwardKinematics(n,r,i),o=e?.serverIndex??0,s=j[`KinematicsApi.forwardKinematics`]?.[o]?.url;return(t,n)=>R(a,_.default,k,e)(t,s||n)},async inverseKinematics(n,r,i){let a=await t.inverseKinematics(n,r,i),o=e?.serverIndex??0,s=j[`KinematicsApi.inverseKinematics`]?.[o]?.url;return(t,n)=>R(a,_.default,k,e)(t,s||n)}}},$e=class extends A{forwardKinematics(e,t,n){return Qe(this.configuration).forwardKinematics(e,t,n).then(e=>e(this.axios,this.basePath))}inverseKinematics(e,t,n){return Qe(this.configuration).inverseKinematics(e,t,n).then(e=>e(this.axios,this.basePath))}},et=function(e){return{getCurrentMotionGroupState:async(t,n,r,i,a={})=>{N(`getCurrentMotionGroupState`,`cell`,t),N(`getCurrentMotionGroupState`,`controller`,n),N(`getCurrentMotionGroupState`,`motionGroup`,r);let o=`/cells/{cell}/controllers/{controller}/motion-groups/{motion-group}/state`.replace(`{cell}`,encodeURIComponent(String(t))).replace(`{controller}`,encodeURIComponent(String(n))).replace(`{motion-group}`,encodeURIComponent(String(r))),s=new URL(o,M),c;e&&(c=e.baseOptions);let l={method:`GET`,...c,...a},u={},d={};await P(u,e),i!==void 0&&(d.response_coordinate_system=i),F(s,d);let f=c&&c.headers?c.headers:{};return l.headers={...u,...f,...a.headers},{url:L(s),options:l}},getMotionGroupDescription:async(t,n,r,i={})=>{N(`getMotionGroupDescription`,`cell`,t),N(`getMotionGroupDescription`,`controller`,n),N(`getMotionGroupDescription`,`motionGroup`,r);let a=`/cells/{cell}/controllers/{controller}/motion-groups/{motion-group}/description`.replace(`{cell}`,encodeURIComponent(String(t))).replace(`{controller}`,encodeURIComponent(String(n))).replace(`{motion-group}`,encodeURIComponent(String(r))),o=new URL(a,M),s;e&&(s=e.baseOptions);let c={method:`GET`,...s,...i},l={};await P(l,e),F(o,{});let u=s&&s.headers?s.headers:{};return c.headers={...l,...u,...i.headers},{url:L(o),options:c}},streamMotionGroupState:async(t,n,r,i,a,o={})=>{N(`streamMotionGroupState`,`cell`,t),N(`streamMotionGroupState`,`controller`,n),N(`streamMotionGroupState`,`motionGroup`,r);let s=`/cells/{cell}/controllers/{controller}/motion-groups/{motion-group}/state-stream`.replace(`{cell}`,encodeURIComponent(String(t))).replace(`{controller}`,encodeURIComponent(String(n))).replace(`{motion-group}`,encodeURIComponent(String(r))),c=new URL(s,M),l;e&&(l=e.baseOptions);let u={method:`GET`,...l,...o},d={},f={};await P(d,e),i!==void 0&&(f.response_rate=i),a!==void 0&&(f.response_coordinate_system=a),F(c,f);let p=l&&l.headers?l.headers:{};return u.headers={...d,...p,...o.headers},{url:L(c),options:u}}}},tt=function(e){let t=et(e);return{async getCurrentMotionGroupState(n,r,i,a,o){let s=await t.getCurrentMotionGroupState(n,r,i,a,o),c=e?.serverIndex??0,l=j[`MotionGroupApi.getCurrentMotionGroupState`]?.[c]?.url;return(t,n)=>R(s,_.default,k,e)(t,l||n)},async getMotionGroupDescription(n,r,i,a){let o=await t.getMotionGroupDescription(n,r,i,a),s=e?.serverIndex??0,c=j[`MotionGroupApi.getMotionGroupDescription`]?.[s]?.url;return(t,n)=>R(o,_.default,k,e)(t,c||n)},async streamMotionGroupState(n,r,i,a,o,s){let c=await t.streamMotionGroupState(n,r,i,a,o,s),l=e?.serverIndex??0,u=j[`MotionGroupApi.streamMotionGroupState`]?.[l]?.url;return(t,n)=>R(c,_.default,k,e)(t,u||n)}}},nt=class extends A{getCurrentMotionGroupState(e,t,n,r,i){return tt(this.configuration).getCurrentMotionGroupState(e,t,n,r,i).then(e=>e(this.axios,this.basePath))}getMotionGroupDescription(e,t,n,r){return tt(this.configuration).getMotionGroupDescription(e,t,n,r).then(e=>e(this.axios,this.basePath))}streamMotionGroupState(e,t,n,r,i,a){return tt(this.configuration).streamMotionGroupState(e,t,n,r,i,a).then(e=>e(this.axios,this.basePath))}},rt=function(e){return{getMotionGroupCollisionModel:async(t,n={})=>{N(`getMotionGroupCollisionModel`,`motionGroupModel`,t);let r=`/motion-group-models/{motion-group-model}/collision`.replace(`{motion-group-model}`,encodeURIComponent(String(t))),i=new URL(r,M),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={};await P(s,e),F(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:L(i),options:o}},getMotionGroupGlbModel:async(t,n={})=>{N(`getMotionGroupGlbModel`,`motionGroupModel`,t);let r=`/motion-group-models/{motion-group-model}/glb`.replace(`{motion-group-model}`,encodeURIComponent(String(t))),i=new URL(r,M),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={};await P(s,e),F(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:L(i),options:o}},getMotionGroupKinematicModel:async(t,n={})=>{N(`getMotionGroupKinematicModel`,`motionGroupModel`,t);let r=`/motion-group-models/{motion-group-model}/kinematic`.replace(`{motion-group-model}`,encodeURIComponent(String(t))),i=new URL(r,M),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={};await P(s,e),F(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:L(i),options:o}},getMotionGroupModels:async(t={})=>{let n=new URL(`/motion-group-models`,M),r;e&&(r=e.baseOptions);let i={method:`GET`,...r,...t},a={};await P(a,e),F(n,{});let o=r&&r.headers?r.headers:{};return i.headers={...a,...o,...t.headers},{url:L(n),options:i}},getMotionGroupUsdModel:async(t,n={})=>{N(`getMotionGroupUsdModel`,`motionGroupModel`,t);let r=`/motion-group-models/{motion-group-model}/usd`.replace(`{motion-group-model}`,encodeURIComponent(String(t))),i=new URL(r,M),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={};await P(s,e),F(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:L(i),options:o}}}},W=function(e){let t=rt(e);return{async getMotionGroupCollisionModel(n,r){let i=await t.getMotionGroupCollisionModel(n,r),a=e?.serverIndex??0,o=j[`MotionGroupModelsApi.getMotionGroupCollisionModel`]?.[a]?.url;return(t,n)=>R(i,_.default,k,e)(t,o||n)},async getMotionGroupGlbModel(n,r){let i=await t.getMotionGroupGlbModel(n,r),a=e?.serverIndex??0,o=j[`MotionGroupModelsApi.getMotionGroupGlbModel`]?.[a]?.url;return(t,n)=>R(i,_.default,k,e)(t,o||n)},async getMotionGroupKinematicModel(n,r){let i=await t.getMotionGroupKinematicModel(n,r),a=e?.serverIndex??0,o=j[`MotionGroupModelsApi.getMotionGroupKinematicModel`]?.[a]?.url;return(t,n)=>R(i,_.default,k,e)(t,o||n)},async getMotionGroupModels(n){let r=await t.getMotionGroupModels(n),i=e?.serverIndex??0,a=j[`MotionGroupModelsApi.getMotionGroupModels`]?.[i]?.url;return(t,n)=>R(r,_.default,k,e)(t,a||n)},async getMotionGroupUsdModel(n,r){let i=await t.getMotionGroupUsdModel(n,r),a=e?.serverIndex??0,o=j[`MotionGroupModelsApi.getMotionGroupUsdModel`]?.[a]?.url;return(t,n)=>R(i,_.default,k,e)(t,o||n)}}},it=class extends A{getMotionGroupCollisionModel(e,t){return W(this.configuration).getMotionGroupCollisionModel(e,t).then(e=>e(this.axios,this.basePath))}getMotionGroupGlbModel(e,t){return W(this.configuration).getMotionGroupGlbModel(e,t).then(e=>e(this.axios,this.basePath))}getMotionGroupKinematicModel(e,t){return W(this.configuration).getMotionGroupKinematicModel(e,t).then(e=>e(this.axios,this.basePath))}getMotionGroupModels(e){return W(this.configuration).getMotionGroupModels(e).then(e=>e(this.axios,this.basePath))}getMotionGroupUsdModel(e,t){return W(this.configuration).getMotionGroupUsdModel(e,t).then(e=>e(this.axios,this.basePath))}},at=function(e){return{deleteStoredCollider:async(t,n,r={})=>{N(`deleteStoredCollider`,`cell`,t),N(`deleteStoredCollider`,`collider`,n);let i=`/cells/{cell}/store/collision/colliders/{collider}`.replace(`{cell}`,encodeURIComponent(String(t))).replace(`{collider}`,encodeURIComponent(String(n))),a=new URL(i,M),o;e&&(o=e.baseOptions);let s={method:`DELETE`,...o,...r},c={};await P(c,e),F(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},{url:L(a),options:s}},deleteStoredCollisionLinkChain:async(t,n,r={})=>{N(`deleteStoredCollisionLinkChain`,`cell`,t),N(`deleteStoredCollisionLinkChain`,`linkChain`,n);let i=`/cells/{cell}/store/collision/link-chains/{link-chain}`.replace(`{cell}`,encodeURIComponent(String(t))).replace(`{link-chain}`,encodeURIComponent(String(n))),a=new URL(i,M),o;e&&(o=e.baseOptions);let s={method:`DELETE`,...o,...r},c={};await P(c,e),F(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},{url:L(a),options:s}},deleteStoredCollisionTool:async(t,n,r={})=>{N(`deleteStoredCollisionTool`,`cell`,t),N(`deleteStoredCollisionTool`,`tool`,n);let i=`/cells/{cell}/store/collision/tools/{tool}`.replace(`{cell}`,encodeURIComponent(String(t))).replace(`{tool}`,encodeURIComponent(String(n))),a=new URL(i,M),o;e&&(o=e.baseOptions);let s={method:`DELETE`,...o,...r},c={};await P(c,e),F(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},{url:L(a),options:s}},getStoredCollider:async(t,n,r={})=>{N(`getStoredCollider`,`cell`,t),N(`getStoredCollider`,`collider`,n);let i=`/cells/{cell}/store/collision/colliders/{collider}`.replace(`{cell}`,encodeURIComponent(String(t))).replace(`{collider}`,encodeURIComponent(String(n))),a=new URL(i,M),o;e&&(o=e.baseOptions);let s={method:`GET`,...o,...r},c={};await P(c,e),F(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},{url:L(a),options:s}},getStoredCollisionLinkChain:async(t,n,r={})=>{N(`getStoredCollisionLinkChain`,`cell`,t),N(`getStoredCollisionLinkChain`,`linkChain`,n);let i=`/cells/{cell}/store/collision/link-chains/{link-chain}`.replace(`{cell}`,encodeURIComponent(String(t))).replace(`{link-chain}`,encodeURIComponent(String(n))),a=new URL(i,M),o;e&&(o=e.baseOptions);let s={method:`GET`,...o,...r},c={};await P(c,e),F(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},{url:L(a),options:s}},getStoredCollisionTool:async(t,n,r={})=>{N(`getStoredCollisionTool`,`cell`,t),N(`getStoredCollisionTool`,`tool`,n);let i=`/cells/{cell}/store/collision/tools/{tool}`.replace(`{cell}`,encodeURIComponent(String(t))).replace(`{tool}`,encodeURIComponent(String(n))),a=new URL(i,M),o;e&&(o=e.baseOptions);let s={method:`GET`,...o,...r},c={};await P(c,e),F(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},{url:L(a),options:s}},listCollisionLinkChains:async(t,n={})=>{N(`listCollisionLinkChains`,`cell`,t);let r=`/cells/{cell}/store/collision/link-chains`.replace(`{cell}`,encodeURIComponent(String(t))),i=new URL(r,M),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={};await P(s,e),F(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:L(i),options:o}},listCollisionLinkChainsKeys:async(t,n={})=>{N(`listCollisionLinkChainsKeys`,`cell`,t);let r=`/cells/{cell}/store/collision/link-chains-keys`.replace(`{cell}`,encodeURIComponent(String(t))),i=new URL(r,M),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={};await P(s,e),F(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:L(i),options:o}},listStoredColliders:async(t,n={})=>{N(`listStoredColliders`,`cell`,t);let r=`/cells/{cell}/store/collision/colliders`.replace(`{cell}`,encodeURIComponent(String(t))),i=new URL(r,M),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={};await P(s,e),F(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:L(i),options:o}},listStoredCollidersKeys:async(t,n={})=>{N(`listStoredCollidersKeys`,`cell`,t);let r=`/cells/{cell}/store/collision/colliders-keys`.replace(`{cell}`,encodeURIComponent(String(t))),i=new URL(r,M),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={};await P(s,e),F(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:L(i),options:o}},listStoredCollisionTools:async(t,n={})=>{N(`listStoredCollisionTools`,`cell`,t);let r=`/cells/{cell}/store/collision/tools`.replace(`{cell}`,encodeURIComponent(String(t))),i=new URL(r,M),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={};await P(s,e),F(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:L(i),options:o}},listStoredCollisionToolsKeys:async(t,n={})=>{N(`listStoredCollisionToolsKeys`,`cell`,t);let r=`/cells/{cell}/store/collision/tools-keys`.replace(`{cell}`,encodeURIComponent(String(t))),i=new URL(r,M),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={};await P(s,e),F(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:L(i),options:o}},storeCollider:async(t,n,r,i={})=>{N(`storeCollider`,`cell`,t),N(`storeCollider`,`collider`,n),N(`storeCollider`,`collider2`,r);let a=`/cells/{cell}/store/collision/colliders/{collider}`.replace(`{cell}`,encodeURIComponent(String(t))).replace(`{collider}`,encodeURIComponent(String(n))),o=new URL(a,M),s;e&&(s=e.baseOptions);let c={method:`PUT`,...s,...i},l={};await P(l,e),l[`Content-Type`]=`application/json`,F(o,{});let u=s&&s.headers?s.headers:{};return c.headers={...l,...u,...i.headers},c.data=I(r,c,e),{url:L(o),options:c}},storeCollisionLinkChain:async(t,n,r,i={})=>{N(`storeCollisionLinkChain`,`cell`,t),N(`storeCollisionLinkChain`,`linkChain`,n),N(`storeCollisionLinkChain`,`collider`,r);let a=`/cells/{cell}/store/collision/link-chains/{link-chain}`.replace(`{cell}`,encodeURIComponent(String(t))).replace(`{link-chain}`,encodeURIComponent(String(n))),o=new URL(a,M),s;e&&(s=e.baseOptions);let c={method:`PUT`,...s,...i},l={};await P(l,e),l[`Content-Type`]=`application/json`,F(o,{});let u=s&&s.headers?s.headers:{};return c.headers={...l,...u,...i.headers},c.data=I(r,c,e),{url:L(o),options:c}},storeCollisionTool:async(t,n,r,i={})=>{N(`storeCollisionTool`,`cell`,t),N(`storeCollisionTool`,`tool`,n),N(`storeCollisionTool`,`requestBody`,r);let a=`/cells/{cell}/store/collision/tools/{tool}`.replace(`{cell}`,encodeURIComponent(String(t))).replace(`{tool}`,encodeURIComponent(String(n))),o=new URL(a,M),s;e&&(s=e.baseOptions);let c={method:`PUT`,...s,...i},l={};await P(l,e),l[`Content-Type`]=`application/json`,F(o,{});let u=s&&s.headers?s.headers:{};return c.headers={...l,...u,...i.headers},c.data=I(r,c,e),{url:L(o),options:c}}}},G=function(e){let t=at(e);return{async deleteStoredCollider(n,r,i){let a=await t.deleteStoredCollider(n,r,i),o=e?.serverIndex??0,s=j[`StoreCollisionComponentsApi.deleteStoredCollider`]?.[o]?.url;return(t,n)=>R(a,_.default,k,e)(t,s||n)},async deleteStoredCollisionLinkChain(n,r,i){let a=await t.deleteStoredCollisionLinkChain(n,r,i),o=e?.serverIndex??0,s=j[`StoreCollisionComponentsApi.deleteStoredCollisionLinkChain`]?.[o]?.url;return(t,n)=>R(a,_.default,k,e)(t,s||n)},async deleteStoredCollisionTool(n,r,i){let a=await t.deleteStoredCollisionTool(n,r,i),o=e?.serverIndex??0,s=j[`StoreCollisionComponentsApi.deleteStoredCollisionTool`]?.[o]?.url;return(t,n)=>R(a,_.default,k,e)(t,s||n)},async getStoredCollider(n,r,i){let a=await t.getStoredCollider(n,r,i),o=e?.serverIndex??0,s=j[`StoreCollisionComponentsApi.getStoredCollider`]?.[o]?.url;return(t,n)=>R(a,_.default,k,e)(t,s||n)},async getStoredCollisionLinkChain(n,r,i){let a=await t.getStoredCollisionLinkChain(n,r,i),o=e?.serverIndex??0,s=j[`StoreCollisionComponentsApi.getStoredCollisionLinkChain`]?.[o]?.url;return(t,n)=>R(a,_.default,k,e)(t,s||n)},async getStoredCollisionTool(n,r,i){let a=await t.getStoredCollisionTool(n,r,i),o=e?.serverIndex??0,s=j[`StoreCollisionComponentsApi.getStoredCollisionTool`]?.[o]?.url;return(t,n)=>R(a,_.default,k,e)(t,s||n)},async listCollisionLinkChains(n,r){let i=await t.listCollisionLinkChains(n,r),a=e?.serverIndex??0,o=j[`StoreCollisionComponentsApi.listCollisionLinkChains`]?.[a]?.url;return(t,n)=>R(i,_.default,k,e)(t,o||n)},async listCollisionLinkChainsKeys(n,r){let i=await t.listCollisionLinkChainsKeys(n,r),a=e?.serverIndex??0,o=j[`StoreCollisionComponentsApi.listCollisionLinkChainsKeys`]?.[a]?.url;return(t,n)=>R(i,_.default,k,e)(t,o||n)},async listStoredColliders(n,r){let i=await t.listStoredColliders(n,r),a=e?.serverIndex??0,o=j[`StoreCollisionComponentsApi.listStoredColliders`]?.[a]?.url;return(t,n)=>R(i,_.default,k,e)(t,o||n)},async listStoredCollidersKeys(n,r){let i=await t.listStoredCollidersKeys(n,r),a=e?.serverIndex??0,o=j[`StoreCollisionComponentsApi.listStoredCollidersKeys`]?.[a]?.url;return(t,n)=>R(i,_.default,k,e)(t,o||n)},async listStoredCollisionTools(n,r){let i=await t.listStoredCollisionTools(n,r),a=e?.serverIndex??0,o=j[`StoreCollisionComponentsApi.listStoredCollisionTools`]?.[a]?.url;return(t,n)=>R(i,_.default,k,e)(t,o||n)},async listStoredCollisionToolsKeys(n,r){let i=await t.listStoredCollisionToolsKeys(n,r),a=e?.serverIndex??0,o=j[`StoreCollisionComponentsApi.listStoredCollisionToolsKeys`]?.[a]?.url;return(t,n)=>R(i,_.default,k,e)(t,o||n)},async storeCollider(n,r,i,a){let o=await t.storeCollider(n,r,i,a),s=e?.serverIndex??0,c=j[`StoreCollisionComponentsApi.storeCollider`]?.[s]?.url;return(t,n)=>R(o,_.default,k,e)(t,c||n)},async storeCollisionLinkChain(n,r,i,a){let o=await t.storeCollisionLinkChain(n,r,i,a),s=e?.serverIndex??0,c=j[`StoreCollisionComponentsApi.storeCollisionLinkChain`]?.[s]?.url;return(t,n)=>R(o,_.default,k,e)(t,c||n)},async storeCollisionTool(n,r,i,a){let o=await t.storeCollisionTool(n,r,i,a),s=e?.serverIndex??0,c=j[`StoreCollisionComponentsApi.storeCollisionTool`]?.[s]?.url;return(t,n)=>R(o,_.default,k,e)(t,c||n)}}},ot=class extends A{deleteStoredCollider(e,t,n){return G(this.configuration).deleteStoredCollider(e,t,n).then(e=>e(this.axios,this.basePath))}deleteStoredCollisionLinkChain(e,t,n){return G(this.configuration).deleteStoredCollisionLinkChain(e,t,n).then(e=>e(this.axios,this.basePath))}deleteStoredCollisionTool(e,t,n){return G(this.configuration).deleteStoredCollisionTool(e,t,n).then(e=>e(this.axios,this.basePath))}getStoredCollider(e,t,n){return G(this.configuration).getStoredCollider(e,t,n).then(e=>e(this.axios,this.basePath))}getStoredCollisionLinkChain(e,t,n){return G(this.configuration).getStoredCollisionLinkChain(e,t,n).then(e=>e(this.axios,this.basePath))}getStoredCollisionTool(e,t,n){return G(this.configuration).getStoredCollisionTool(e,t,n).then(e=>e(this.axios,this.basePath))}listCollisionLinkChains(e,t){return G(this.configuration).listCollisionLinkChains(e,t).then(e=>e(this.axios,this.basePath))}listCollisionLinkChainsKeys(e,t){return G(this.configuration).listCollisionLinkChainsKeys(e,t).then(e=>e(this.axios,this.basePath))}listStoredColliders(e,t){return G(this.configuration).listStoredColliders(e,t).then(e=>e(this.axios,this.basePath))}listStoredCollidersKeys(e,t){return G(this.configuration).listStoredCollidersKeys(e,t).then(e=>e(this.axios,this.basePath))}listStoredCollisionTools(e,t){return G(this.configuration).listStoredCollisionTools(e,t).then(e=>e(this.axios,this.basePath))}listStoredCollisionToolsKeys(e,t){return G(this.configuration).listStoredCollisionToolsKeys(e,t).then(e=>e(this.axios,this.basePath))}storeCollider(e,t,n,r){return G(this.configuration).storeCollider(e,t,n,r).then(e=>e(this.axios,this.basePath))}storeCollisionLinkChain(e,t,n,r){return G(this.configuration).storeCollisionLinkChain(e,t,n,r).then(e=>e(this.axios,this.basePath))}storeCollisionTool(e,t,n,r){return G(this.configuration).storeCollisionTool(e,t,n,r).then(e=>e(this.axios,this.basePath))}},st=function(e){return{deleteStoredCollisionSetup:async(t,n,r={})=>{N(`deleteStoredCollisionSetup`,`cell`,t),N(`deleteStoredCollisionSetup`,`setup`,n);let i=`/cells/{cell}/store/collision/setups/{setup}`.replace(`{cell}`,encodeURIComponent(String(t))).replace(`{setup}`,encodeURIComponent(String(n))),a=new URL(i,M),o;e&&(o=e.baseOptions);let s={method:`DELETE`,...o,...r},c={};await P(c,e),F(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},{url:L(a),options:s}},getStoredCollisionSetup:async(t,n,r={})=>{N(`getStoredCollisionSetup`,`cell`,t),N(`getStoredCollisionSetup`,`setup`,n);let i=`/cells/{cell}/store/collision/setups/{setup}`.replace(`{cell}`,encodeURIComponent(String(t))).replace(`{setup}`,encodeURIComponent(String(n))),a=new URL(i,M),o;e&&(o=e.baseOptions);let s={method:`GET`,...o,...r},c={};await P(c,e),F(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},{url:L(a),options:s}},listStoredCollisionSetups:async(t,n={})=>{N(`listStoredCollisionSetups`,`cell`,t);let r=`/cells/{cell}/store/collision/setups`.replace(`{cell}`,encodeURIComponent(String(t))),i=new URL(r,M),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={};await P(s,e),F(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:L(i),options:o}},listStoredCollisionSetupsKeys:async(t,n={})=>{N(`listStoredCollisionSetupsKeys`,`cell`,t);let r=`/cells/{cell}/store/collision/setups-keys`.replace(`{cell}`,encodeURIComponent(String(t))),i=new URL(r,M),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={};await P(s,e),F(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:L(i),options:o}},storeCollisionSetup:async(t,n,r,i={})=>{N(`storeCollisionSetup`,`cell`,t),N(`storeCollisionSetup`,`setup`,n),N(`storeCollisionSetup`,`collisionSetup`,r);let a=`/cells/{cell}/store/collision/setups/{setup}`.replace(`{cell}`,encodeURIComponent(String(t))).replace(`{setup}`,encodeURIComponent(String(n))),o=new URL(a,M),s;e&&(s=e.baseOptions);let c={method:`PUT`,...s,...i},l={};await P(l,e),l[`Content-Type`]=`application/json`,F(o,{});let u=s&&s.headers?s.headers:{};return c.headers={...l,...u,...i.headers},c.data=I(r,c,e),{url:L(o),options:c}}}},K=function(e){let t=st(e);return{async deleteStoredCollisionSetup(n,r,i){let a=await t.deleteStoredCollisionSetup(n,r,i),o=e?.serverIndex??0,s=j[`StoreCollisionSetupsApi.deleteStoredCollisionSetup`]?.[o]?.url;return(t,n)=>R(a,_.default,k,e)(t,s||n)},async getStoredCollisionSetup(n,r,i){let a=await t.getStoredCollisionSetup(n,r,i),o=e?.serverIndex??0,s=j[`StoreCollisionSetupsApi.getStoredCollisionSetup`]?.[o]?.url;return(t,n)=>R(a,_.default,k,e)(t,s||n)},async listStoredCollisionSetups(n,r){let i=await t.listStoredCollisionSetups(n,r),a=e?.serverIndex??0,o=j[`StoreCollisionSetupsApi.listStoredCollisionSetups`]?.[a]?.url;return(t,n)=>R(i,_.default,k,e)(t,o||n)},async listStoredCollisionSetupsKeys(n,r){let i=await t.listStoredCollisionSetupsKeys(n,r),a=e?.serverIndex??0,o=j[`StoreCollisionSetupsApi.listStoredCollisionSetupsKeys`]?.[a]?.url;return(t,n)=>R(i,_.default,k,e)(t,o||n)},async storeCollisionSetup(n,r,i,a){let o=await t.storeCollisionSetup(n,r,i,a),s=e?.serverIndex??0,c=j[`StoreCollisionSetupsApi.storeCollisionSetup`]?.[s]?.url;return(t,n)=>R(o,_.default,k,e)(t,c||n)}}},ct=class extends A{deleteStoredCollisionSetup(e,t,n){return K(this.configuration).deleteStoredCollisionSetup(e,t,n).then(e=>e(this.axios,this.basePath))}getStoredCollisionSetup(e,t,n){return K(this.configuration).getStoredCollisionSetup(e,t,n).then(e=>e(this.axios,this.basePath))}listStoredCollisionSetups(e,t){return K(this.configuration).listStoredCollisionSetups(e,t).then(e=>e(this.axios,this.basePath))}listStoredCollisionSetupsKeys(e,t){return K(this.configuration).listStoredCollisionSetupsKeys(e,t).then(e=>e(this.axios,this.basePath))}storeCollisionSetup(e,t,n,r){return K(this.configuration).storeCollisionSetup(e,t,n,r).then(e=>e(this.axios,this.basePath))}},lt=function(e){return{clearAllObjects:async(t,n={})=>{N(`clearAllObjects`,`cell`,t);let r=`/cells/{cell}/store/objects`.replace(`{cell}`,encodeURIComponent(String(t))),i=new URL(r,M),a;e&&(a=e.baseOptions);let o={method:`DELETE`,...a,...n},s={};await P(s,e),F(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:L(i),options:o}},deleteObject:async(t,n,r={})=>{N(`deleteObject`,`cell`,t),N(`deleteObject`,`key`,n);let i=`/cells/{cell}/store/objects/{key}`.replace(`{cell}`,encodeURIComponent(String(t))).replace(`{key}`,encodeURIComponent(String(n))),a=new URL(i,M),o;e&&(o=e.baseOptions);let s={method:`DELETE`,...o,...r},c={};await P(c,e),F(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},{url:L(a),options:s}},getObject:async(t,n,r={})=>{N(`getObject`,`cell`,t),N(`getObject`,`key`,n);let i=`/cells/{cell}/store/objects/{key}`.replace(`{cell}`,encodeURIComponent(String(t))).replace(`{key}`,encodeURIComponent(String(n))),a=new URL(i,M),o;e&&(o=e.baseOptions);let s={method:`GET`,...o,...r},c={};await P(c,e),F(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},{url:L(a),options:s}},getObjectMetadata:async(t,n,r={})=>{N(`getObjectMetadata`,`cell`,t),N(`getObjectMetadata`,`key`,n);let i=`/cells/{cell}/store/objects/{key}`.replace(`{cell}`,encodeURIComponent(String(t))).replace(`{key}`,encodeURIComponent(String(n))),a=new URL(i,M),o;e&&(o=e.baseOptions);let s={method:`HEAD`,...o,...r},c={};await P(c,e),F(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},{url:L(a),options:s}},listAllObjectKeys:async(t,n={})=>{N(`listAllObjectKeys`,`cell`,t);let r=`/cells/{cell}/store/objects`.replace(`{cell}`,encodeURIComponent(String(t))),i=new URL(r,M),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={};await P(s,e),F(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:L(i),options:o}},storeObject:async(t,n,r,i,a={})=>{N(`storeObject`,`cell`,t),N(`storeObject`,`key`,n);let o=`/cells/{cell}/store/objects/{key}`.replace(`{cell}`,encodeURIComponent(String(t))).replace(`{key}`,encodeURIComponent(String(n))),s=new URL(o,M),c;e&&(c=e.baseOptions);let l={method:`PUT`,...c,...a},u={},d={},f=new(e&&e.formDataCtor||FormData);await P(u,e),i!==void 0&&f.append(`any_value`,new Blob([JSON.stringify(i)],{type:`application/json`})),u[`Content-Type`]=`multipart/form-data`,r!=null&&(u[`X-Metadata`]=typeof r==`string`?r:JSON.stringify(r)),F(s,d);let p=c&&c.headers?c.headers:{};return l.headers={...u,...p,...a.headers},l.data=f,{url:L(s),options:l}}}},q=function(e){let t=lt(e);return{async clearAllObjects(n,r){let i=await t.clearAllObjects(n,r),a=e?.serverIndex??0,o=j[`StoreObjectApi.clearAllObjects`]?.[a]?.url;return(t,n)=>R(i,_.default,k,e)(t,o||n)},async deleteObject(n,r,i){let a=await t.deleteObject(n,r,i),o=e?.serverIndex??0,s=j[`StoreObjectApi.deleteObject`]?.[o]?.url;return(t,n)=>R(a,_.default,k,e)(t,s||n)},async getObject(n,r,i){let a=await t.getObject(n,r,i),o=e?.serverIndex??0,s=j[`StoreObjectApi.getObject`]?.[o]?.url;return(t,n)=>R(a,_.default,k,e)(t,s||n)},async getObjectMetadata(n,r,i){let a=await t.getObjectMetadata(n,r,i),o=e?.serverIndex??0,s=j[`StoreObjectApi.getObjectMetadata`]?.[o]?.url;return(t,n)=>R(a,_.default,k,e)(t,s||n)},async listAllObjectKeys(n,r){let i=await t.listAllObjectKeys(n,r),a=e?.serverIndex??0,o=j[`StoreObjectApi.listAllObjectKeys`]?.[a]?.url;return(t,n)=>R(i,_.default,k,e)(t,o||n)},async storeObject(n,r,i,a,o){let s=await t.storeObject(n,r,i,a,o),c=e?.serverIndex??0,l=j[`StoreObjectApi.storeObject`]?.[c]?.url;return(t,n)=>R(s,_.default,k,e)(t,l||n)}}},ut=class extends A{clearAllObjects(e,t){return q(this.configuration).clearAllObjects(e,t).then(e=>e(this.axios,this.basePath))}deleteObject(e,t,n){return q(this.configuration).deleteObject(e,t,n).then(e=>e(this.axios,this.basePath))}getObject(e,t,n){return q(this.configuration).getObject(e,t,n).then(e=>e(this.axios,this.basePath))}getObjectMetadata(e,t,n){return q(this.configuration).getObjectMetadata(e,t,n).then(e=>e(this.axios,this.basePath))}listAllObjectKeys(e,t){return q(this.configuration).listAllObjectKeys(e,t).then(e=>e(this.axios,this.basePath))}storeObject(e,t,n,r,i){return q(this.configuration).storeObject(e,t,n,r,i).then(e=>e(this.axios,this.basePath))}},dt=function(e){return{backupConfiguration:async(t,n,r={})=>{let i=new URL(`/system/configuration`,M),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...r},s={},c={};await P(s,e),t&&(c.resources=t.join(Ne.csv)),n!==void 0&&(c.metadata=n),F(i,c);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...r.headers},{url:L(i),options:o}},checkNovaVersionUpdate:async(t,n={})=>{N(`checkNovaVersionUpdate`,`channel`,t);let r=new URL(`/system/update`,M),i;e&&(i=e.baseOptions);let a={method:`GET`,...i,...n},o={},s={};await P(o,e),t!==void 0&&(s.channel=t),F(r,s);let c=i&&i.headers?i.headers:{};return a.headers={...o,...c,...n.headers},{url:L(r),options:a}},getArpScan:async(t,n,r,i={})=>{let a=new URL(`/experimental/system/network/arp-scan`,M),o;e&&(o=e.baseOptions);let s={method:`GET`,...o,...i},c={},l={};await P(c,e),t!==void 0&&(l.interface=t),n!==void 0&&(l.cidr=n),r!==void 0&&(l.timeout=r),F(a,l);let u=o&&o.headers?o.headers:{};return s.headers={...c,...u,...i.headers},{url:L(a),options:s}},getConfigurationBackupStatus:async(t,n={})=>{N(`getConfigurationBackupStatus`,`operationId`,t);let r=new URL(`/system/configuration/status`,M),i;e&&(i=e.baseOptions);let a={method:`GET`,...i,...n},o={},s={};await P(o,e),t!==void 0&&(s.operation_id=t),F(r,s);let c=i&&i.headers?i.headers:{};return a.headers={...o,...c,...n.headers},{url:L(r),options:a}},getDiagnosePackage:async(t={})=>{let n=new URL(`/system/diagnosis-package/zip`,M),r;e&&(r=e.baseOptions);let i={method:`GET`,...r,...t},a={};await P(a,e),F(n,{});let o=r&&r.headers?r.headers:{};return i.headers={...a,...o,...t.headers},{url:L(n),options:i}},getNetworkInterfaces:async(t={})=>{let n=new URL(`/experimental/system/network/interfaces`,M),r;e&&(r=e.baseOptions);let i={method:`GET`,...r,...t},a={};await P(a,e),F(n,{});let o=r&&r.headers?r.headers:{};return i.headers={...a,...o,...t.headers},{url:L(n),options:i}},getNetworkState:async(t={})=>{let n=new URL(`/experimental/system/network/status`,M),r;e&&(r=e.baseOptions);let i={method:`GET`,...r,...t},a={};await P(a,e),F(n,{});let o=r&&r.headers?r.headers:{};return i.headers={...a,...o,...t.headers},{url:L(n),options:i}},getSystemStatus:async(t={})=>{let n=new URL(`/system/status`,M),r;e&&(r=e.baseOptions);let i={method:`GET`,...r,...t},a={};await P(a,e),F(n,{});let o=r&&r.headers?r.headers:{};return i.headers={...a,...o,...t.headers},{url:L(n),options:i}},getSystemVersion:async(t={})=>{let n=new URL(`/system/version`,M),r;e&&(r=e.baseOptions);let i={method:`GET`,...r,...t},a={};await P(a,e),F(n,{});let o=r&&r.headers?r.headers:{};return i.headers={...a,...o,...t.headers},{url:L(n),options:i}},listConfigurationResources:async(t={})=>{let n=new URL(`/system/configuration/resources`,M),r;e&&(r=e.baseOptions);let i={method:`GET`,...r,...t},a={};await P(a,e),F(n,{});let o=r&&r.headers?r.headers:{};return i.headers={...a,...o,...t.headers},{url:L(n),options:i}},restoreConfiguration:async(t,n,r={})=>{N(`restoreConfiguration`,`body`,t);let i=new URL(`/system/configuration`,M),a;e&&(a=e.baseOptions);let o={method:`POST`,...a,...r},s={},c={};await P(s,e),n&&(c.resources=n.join(Ne.csv)),s[`Content-Type`]=`application/gzip`,F(i,c);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...r.headers},o.data=I(t,o,e),{url:L(i),options:o}},updateNovaVersion:async(t,n={})=>{N(`updateNovaVersion`,`updateNovaVersionRequest`,t);let r=new URL(`/system/update`,M),i;e&&(i=e.baseOptions);let a={method:`PUT`,...i,...n},o={};await P(o,e),o[`Content-Type`]=`application/json`,F(r,{});let s=i&&i.headers?i.headers:{};return a.headers={...o,...s,...n.headers},a.data=I(t,a,e),{url:L(r),options:a}}}},J=function(e){let t=dt(e);return{async backupConfiguration(n,r,i){let a=await t.backupConfiguration(n,r,i),o=e?.serverIndex??0,s=j[`SystemApi.backupConfiguration`]?.[o]?.url;return(t,n)=>R(a,_.default,k,e)(t,s||n)},async checkNovaVersionUpdate(n,r){let i=await t.checkNovaVersionUpdate(n,r),a=e?.serverIndex??0,o=j[`SystemApi.checkNovaVersionUpdate`]?.[a]?.url;return(t,n)=>R(i,_.default,k,e)(t,o||n)},async getArpScan(n,r,i,a){let o=await t.getArpScan(n,r,i,a),s=e?.serverIndex??0,c=j[`SystemApi.getArpScan`]?.[s]?.url;return(t,n)=>R(o,_.default,k,e)(t,c||n)},async getConfigurationBackupStatus(n,r){let i=await t.getConfigurationBackupStatus(n,r),a=e?.serverIndex??0,o=j[`SystemApi.getConfigurationBackupStatus`]?.[a]?.url;return(t,n)=>R(i,_.default,k,e)(t,o||n)},async getDiagnosePackage(n){let r=await t.getDiagnosePackage(n),i=e?.serverIndex??0,a=j[`SystemApi.getDiagnosePackage`]?.[i]?.url;return(t,n)=>R(r,_.default,k,e)(t,a||n)},async getNetworkInterfaces(n){let r=await t.getNetworkInterfaces(n),i=e?.serverIndex??0,a=j[`SystemApi.getNetworkInterfaces`]?.[i]?.url;return(t,n)=>R(r,_.default,k,e)(t,a||n)},async getNetworkState(n){let r=await t.getNetworkState(n),i=e?.serverIndex??0,a=j[`SystemApi.getNetworkState`]?.[i]?.url;return(t,n)=>R(r,_.default,k,e)(t,a||n)},async getSystemStatus(n){let r=await t.getSystemStatus(n),i=e?.serverIndex??0,a=j[`SystemApi.getSystemStatus`]?.[i]?.url;return(t,n)=>R(r,_.default,k,e)(t,a||n)},async getSystemVersion(n){let r=await t.getSystemVersion(n),i=e?.serverIndex??0,a=j[`SystemApi.getSystemVersion`]?.[i]?.url;return(t,n)=>R(r,_.default,k,e)(t,a||n)},async listConfigurationResources(n){let r=await t.listConfigurationResources(n),i=e?.serverIndex??0,a=j[`SystemApi.listConfigurationResources`]?.[i]?.url;return(t,n)=>R(r,_.default,k,e)(t,a||n)},async restoreConfiguration(n,r,i){let a=await t.restoreConfiguration(n,r,i),o=e?.serverIndex??0,s=j[`SystemApi.restoreConfiguration`]?.[o]?.url;return(t,n)=>R(a,_.default,k,e)(t,s||n)},async updateNovaVersion(n,r){let i=await t.updateNovaVersion(n,r),a=e?.serverIndex??0,o=j[`SystemApi.updateNovaVersion`]?.[a]?.url;return(t,n)=>R(i,_.default,k,e)(t,o||n)}}},ft=class extends A{backupConfiguration(e,t,n){return J(this.configuration).backupConfiguration(e,t,n).then(e=>e(this.axios,this.basePath))}checkNovaVersionUpdate(e,t){return J(this.configuration).checkNovaVersionUpdate(e,t).then(e=>e(this.axios,this.basePath))}getArpScan(e,t,n,r){return J(this.configuration).getArpScan(e,t,n,r).then(e=>e(this.axios,this.basePath))}getConfigurationBackupStatus(e,t){return J(this.configuration).getConfigurationBackupStatus(e,t).then(e=>e(this.axios,this.basePath))}getDiagnosePackage(e){return J(this.configuration).getDiagnosePackage(e).then(e=>e(this.axios,this.basePath))}getNetworkInterfaces(e){return J(this.configuration).getNetworkInterfaces(e).then(e=>e(this.axios,this.basePath))}getNetworkState(e){return J(this.configuration).getNetworkState(e).then(e=>e(this.axios,this.basePath))}getSystemStatus(e){return J(this.configuration).getSystemStatus(e).then(e=>e(this.axios,this.basePath))}getSystemVersion(e){return J(this.configuration).getSystemVersion(e).then(e=>e(this.axios,this.basePath))}listConfigurationResources(e){return J(this.configuration).listConfigurationResources(e).then(e=>e(this.axios,this.basePath))}restoreConfiguration(e,t,n){return J(this.configuration).restoreConfiguration(e,t,n).then(e=>e(this.axios,this.basePath))}updateNovaVersion(e,t){return J(this.configuration).updateNovaVersion(e,t).then(e=>e(this.axios,this.basePath))}},pt=function(e){return{addTrajectory:async(t,n,r,i={})=>{N(`addTrajectory`,`cell`,t),N(`addTrajectory`,`controller`,n),N(`addTrajectory`,`addTrajectoryRequest`,r);let a=`/cells/{cell}/controllers/{controller}/trajectories`.replace(`{cell}`,encodeURIComponent(String(t))).replace(`{controller}`,encodeURIComponent(String(n))),o=new URL(a,M),s;e&&(s=e.baseOptions);let c={method:`POST`,...s,...i},l={};await P(l,e),l[`Content-Type`]=`application/json`,F(o,{});let u=s&&s.headers?s.headers:{};return c.headers={...l,...u,...i.headers},c.data=I(r,c,e),{url:L(o),options:c}},clearTrajectories:async(t,n,r={})=>{N(`clearTrajectories`,`cell`,t),N(`clearTrajectories`,`controller`,n);let i=`/cells/{cell}/controllers/{controller}/trajectories`.replace(`{cell}`,encodeURIComponent(String(t))).replace(`{controller}`,encodeURIComponent(String(n))),a=new URL(i,M),o;e&&(o=e.baseOptions);let s={method:`DELETE`,...o,...r},c={};await P(c,e),F(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},{url:L(a),options:s}},deleteTrajectory:async(t,n,r,i={})=>{N(`deleteTrajectory`,`cell`,t),N(`deleteTrajectory`,`controller`,n),N(`deleteTrajectory`,`trajectory`,r);let a=`/cells/{cell}/controllers/{controller}/trajectories/{trajectory}`.replace(`{cell}`,encodeURIComponent(String(t))).replace(`{controller}`,encodeURIComponent(String(n))).replace(`{trajectory}`,encodeURIComponent(String(r))),o=new URL(a,M),s;e&&(s=e.baseOptions);let c={method:`DELETE`,...s,...i},l={};await P(l,e),F(o,{});let u=s&&s.headers?s.headers:{};return c.headers={...l,...u,...i.headers},{url:L(o),options:c}},getTrajectory:async(t,n,r,i={})=>{N(`getTrajectory`,`cell`,t),N(`getTrajectory`,`controller`,n),N(`getTrajectory`,`trajectory`,r);let a=`/cells/{cell}/controllers/{controller}/trajectories/{trajectory}`.replace(`{cell}`,encodeURIComponent(String(t))).replace(`{controller}`,encodeURIComponent(String(n))).replace(`{trajectory}`,encodeURIComponent(String(r))),o=new URL(a,M),s;e&&(s=e.baseOptions);let c={method:`GET`,...s,...i},l={};await P(l,e),F(o,{});let u=s&&s.headers?s.headers:{};return c.headers={...l,...u,...i.headers},{url:L(o),options:c}},listTrajectories:async(t,n,r={})=>{N(`listTrajectories`,`cell`,t),N(`listTrajectories`,`controller`,n);let i=`/cells/{cell}/controllers/{controller}/trajectories`.replace(`{cell}`,encodeURIComponent(String(t))).replace(`{controller}`,encodeURIComponent(String(n))),a=new URL(i,M),o;e&&(o=e.baseOptions);let s={method:`GET`,...o,...r},c={};await P(c,e),F(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},{url:L(a),options:s}}}},Y=function(e){let t=pt(e);return{async addTrajectory(n,r,i,a){let o=await t.addTrajectory(n,r,i,a),s=e?.serverIndex??0,c=j[`TrajectoryCachingApi.addTrajectory`]?.[s]?.url;return(t,n)=>R(o,_.default,k,e)(t,c||n)},async clearTrajectories(n,r,i){let a=await t.clearTrajectories(n,r,i),o=e?.serverIndex??0,s=j[`TrajectoryCachingApi.clearTrajectories`]?.[o]?.url;return(t,n)=>R(a,_.default,k,e)(t,s||n)},async deleteTrajectory(n,r,i,a){let o=await t.deleteTrajectory(n,r,i,a),s=e?.serverIndex??0,c=j[`TrajectoryCachingApi.deleteTrajectory`]?.[s]?.url;return(t,n)=>R(o,_.default,k,e)(t,c||n)},async getTrajectory(n,r,i,a){let o=await t.getTrajectory(n,r,i,a),s=e?.serverIndex??0,c=j[`TrajectoryCachingApi.getTrajectory`]?.[s]?.url;return(t,n)=>R(o,_.default,k,e)(t,c||n)},async listTrajectories(n,r,i){let a=await t.listTrajectories(n,r,i),o=e?.serverIndex??0,s=j[`TrajectoryCachingApi.listTrajectories`]?.[o]?.url;return(t,n)=>R(a,_.default,k,e)(t,s||n)}}},mt=class extends A{addTrajectory(e,t,n,r){return Y(this.configuration).addTrajectory(e,t,n,r).then(e=>e(this.axios,this.basePath))}clearTrajectories(e,t,n){return Y(this.configuration).clearTrajectories(e,t,n).then(e=>e(this.axios,this.basePath))}deleteTrajectory(e,t,n,r){return Y(this.configuration).deleteTrajectory(e,t,n,r).then(e=>e(this.axios,this.basePath))}getTrajectory(e,t,n,r){return Y(this.configuration).getTrajectory(e,t,n,r).then(e=>e(this.axios,this.basePath))}listTrajectories(e,t,n){return Y(this.configuration).listTrajectories(e,t,n).then(e=>e(this.axios,this.basePath))}},ht=function(e){return{executeTrajectory:async(t,n,r,i={})=>{N(`executeTrajectory`,`cell`,t),N(`executeTrajectory`,`controller`,n),N(`executeTrajectory`,`executeTrajectoryRequest`,r);let a=`/cells/{cell}/controllers/{controller}/execution/trajectory`.replace(`{cell}`,encodeURIComponent(String(t))).replace(`{controller}`,encodeURIComponent(String(n))),o=new URL(a,M),s;e&&(s=e.baseOptions);let c={method:`GET`,...s,...i},l={};await P(l,e),l[`Content-Type`]=`application/json`,F(o,{});let u=s&&s.headers?s.headers:{};return c.headers={...l,...u,...i.headers},c.data=I(r,c,e),{url:L(o),options:c}}}},gt=function(e){let t=ht(e);return{async executeTrajectory(n,r,i,a){let o=await t.executeTrajectory(n,r,i,a),s=e?.serverIndex??0,c=j[`TrajectoryExecutionApi.executeTrajectory`]?.[s]?.url;return(t,n)=>R(o,_.default,k,e)(t,c||n)}}},_t=class extends A{executeTrajectory(e,t,n,r){return gt(this.configuration).executeTrajectory(e,t,n,r).then(e=>e(this.axios,this.basePath))}},vt=function(e){return{mergeTrajectories:async(t,n,r={})=>{N(`mergeTrajectories`,`cell`,t),N(`mergeTrajectories`,`mergeTrajectoriesRequest`,n);let i=`/experimental/cells/{cell}/trajectory-planning/merge-trajectories`.replace(`{cell}`,encodeURIComponent(String(t))),a=new URL(i,M),o;e&&(o=e.baseOptions);let s={method:`POST`,...o,...r},c={};await P(c,e),c[`Content-Type`]=`application/json`,F(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=I(n,s,e),{url:L(a),options:s}},planCollisionFree:async(t,n,r={})=>{N(`planCollisionFree`,`cell`,t),N(`planCollisionFree`,`planCollisionFreeRequest`,n);let i=`/cells/{cell}/trajectory-planning/plan-collision-free`.replace(`{cell}`,encodeURIComponent(String(t))),a=new URL(i,M),o;e&&(o=e.baseOptions);let s={method:`POST`,...o,...r},c={};await P(c,e),c[`Content-Type`]=`application/json`,F(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=I(n,s,e),{url:L(a),options:s}},planTrajectory:async(t,n,r={})=>{N(`planTrajectory`,`cell`,t),N(`planTrajectory`,`planTrajectoryRequest`,n);let i=`/cells/{cell}/trajectory-planning/plan-trajectory`.replace(`{cell}`,encodeURIComponent(String(t))),a=new URL(i,M),o;e&&(o=e.baseOptions);let s={method:`POST`,...o,...r},c={};await P(c,e),c[`Content-Type`]=`application/json`,F(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=I(n,s,e),{url:L(a),options:s}}}},X=function(e){let t=vt(e);return{async mergeTrajectories(n,r,i){let a=await t.mergeTrajectories(n,r,i),o=e?.serverIndex??0,s=j[`TrajectoryPlanningApi.mergeTrajectories`]?.[o]?.url;return(t,n)=>R(a,_.default,k,e)(t,s||n)},async planCollisionFree(n,r,i){let a=await t.planCollisionFree(n,r,i),o=e?.serverIndex??0,s=j[`TrajectoryPlanningApi.planCollisionFree`]?.[o]?.url;return(t,n)=>R(a,_.default,k,e)(t,s||n)},async planTrajectory(n,r,i){let a=await t.planTrajectory(n,r,i),o=e?.serverIndex??0,s=j[`TrajectoryPlanningApi.planTrajectory`]?.[o]?.url;return(t,n)=>R(a,_.default,k,e)(t,s||n)}}},yt=class extends A{mergeTrajectories(e,t,n){return X(this.configuration).mergeTrajectories(e,t,n).then(e=>e(this.axios,this.basePath))}planCollisionFree(e,t,n){return X(this.configuration).planCollisionFree(e,t,n).then(e=>e(this.axios,this.basePath))}planTrajectory(e,t,n){return X(this.configuration).planTrajectory(e,t,n).then(e=>e(this.axios,this.basePath))}},bt=function(e){return{addVirtualControllerCoordinateSystem:async(t,n,r,i,a={})=>{N(`addVirtualControllerCoordinateSystem`,`cell`,t),N(`addVirtualControllerCoordinateSystem`,`controller`,n),N(`addVirtualControllerCoordinateSystem`,`coordinateSystem`,r),N(`addVirtualControllerCoordinateSystem`,`coordinateSystemData`,i);let o=`/cells/{cell}/virtual-controllers/{controller}/coordinate-systems/{coordinate-system}`.replace(`{cell}`,encodeURIComponent(String(t))).replace(`{controller}`,encodeURIComponent(String(n))).replace(`{coordinate-system}`,encodeURIComponent(String(r))),s=new URL(o,M),c;e&&(c=e.baseOptions);let l={method:`PUT`,...c,...a},u={};await P(u,e),u[`Content-Type`]=`application/json`,F(s,{});let d=c&&c.headers?c.headers:{};return l.headers={...u,...d,...a.headers},l.data=I(i,l,e),{url:L(s),options:l}},addVirtualControllerMotionGroup:async(t,n,r,i={})=>{N(`addVirtualControllerMotionGroup`,`cell`,t),N(`addVirtualControllerMotionGroup`,`controller`,n),N(`addVirtualControllerMotionGroup`,`addVirtualControllerMotionGroupRequest`,r);let a=`/cells/{cell}/virtual-controllers/{controller}/motion-groups`.replace(`{cell}`,encodeURIComponent(String(t))).replace(`{controller}`,encodeURIComponent(String(n))),o=new URL(a,M),s;e&&(s=e.baseOptions);let c={method:`POST`,...s,...i},l={};await P(l,e),l[`Content-Type`]=`application/json`,F(o,{});let u=s&&s.headers?s.headers:{};return c.headers={...l,...u,...i.headers},c.data=I(r,c,e),{url:L(o),options:c}},addVirtualControllerTcp:async(t,n,r,i,a,o={})=>{N(`addVirtualControllerTcp`,`cell`,t),N(`addVirtualControllerTcp`,`controller`,n),N(`addVirtualControllerTcp`,`motionGroup`,r),N(`addVirtualControllerTcp`,`tcp`,i),N(`addVirtualControllerTcp`,`robotTcpData`,a);let s=`/cells/{cell}/virtual-controllers/{controller}/motion-groups/{motion-group}/tcps/{tcp}`.replace(`{cell}`,encodeURIComponent(String(t))).replace(`{controller}`,encodeURIComponent(String(n))).replace(`{motion-group}`,encodeURIComponent(String(r))).replace(`{tcp}`,encodeURIComponent(String(i))),c=new URL(s,M),l;e&&(l=e.baseOptions);let u={method:`PUT`,...l,...o},d={};await P(d,e),d[`Content-Type`]=`application/json`,F(c,{});let f=l&&l.headers?l.headers:{};return u.headers={...d,...f,...o.headers},u.data=I(a,u,e),{url:L(c),options:u}},deleteVirtualControllerCoordinateSystem:async(t,n,r,i,a={})=>{N(`deleteVirtualControllerCoordinateSystem`,`cell`,t),N(`deleteVirtualControllerCoordinateSystem`,`controller`,n),N(`deleteVirtualControllerCoordinateSystem`,`coordinateSystem`,r);let o=`/cells/{cell}/virtual-controllers/{controller}/coordinate-systems/{coordinate-system}`.replace(`{cell}`,encodeURIComponent(String(t))).replace(`{controller}`,encodeURIComponent(String(n))).replace(`{coordinate-system}`,encodeURIComponent(String(r))),s=new URL(o,M),c;e&&(c=e.baseOptions);let l={method:`DELETE`,...c,...a},u={},d={};await P(u,e),i!==void 0&&(d.delete_dependent=i),F(s,d);let f=c&&c.headers?c.headers:{};return l.headers={...u,...f,...a.headers},{url:L(s),options:l}},deleteVirtualControllerMotionGroup:async(t,n,r,i={})=>{N(`deleteVirtualControllerMotionGroup`,`cell`,t),N(`deleteVirtualControllerMotionGroup`,`controller`,n),N(`deleteVirtualControllerMotionGroup`,`motionGroup`,r);let a=`/cells/{cell}/virtual-controllers/{controller}/motion-groups/{motion-group}`.replace(`{cell}`,encodeURIComponent(String(t))).replace(`{controller}`,encodeURIComponent(String(n))).replace(`{motion-group}`,encodeURIComponent(String(r))),o=new URL(a,M),s;e&&(s=e.baseOptions);let c={method:`DELETE`,...s,...i},l={};await P(l,e),F(o,{});let u=s&&s.headers?s.headers:{};return c.headers={...l,...u,...i.headers},{url:L(o),options:c}},deleteVirtualControllerTcp:async(t,n,r,i,a={})=>{N(`deleteVirtualControllerTcp`,`cell`,t),N(`deleteVirtualControllerTcp`,`controller`,n),N(`deleteVirtualControllerTcp`,`motionGroup`,r),N(`deleteVirtualControllerTcp`,`tcp`,i);let o=`/cells/{cell}/virtual-controllers/{controller}/motion-groups/{motion-group}/tcps/{tcp}`.replace(`{cell}`,encodeURIComponent(String(t))).replace(`{controller}`,encodeURIComponent(String(n))).replace(`{motion-group}`,encodeURIComponent(String(r))).replace(`{tcp}`,encodeURIComponent(String(i))),s=new URL(o,M),c;e&&(c=e.baseOptions);let l={method:`DELETE`,...c,...a},u={};await P(u,e),F(s,{});let d=c&&c.headers?c.headers:{};return l.headers={...u,...d,...a.headers},{url:L(s),options:l}},getEmergencyStop:async(t,n,r={})=>{N(`getEmergencyStop`,`cell`,t),N(`getEmergencyStop`,`controller`,n);let i=`/cells/{cell}/virtual-controllers/{controller}/emergency-stop`.replace(`{cell}`,encodeURIComponent(String(t))).replace(`{controller}`,encodeURIComponent(String(n))),a=new URL(i,M),o;e&&(o=e.baseOptions);let s={method:`GET`,...o,...r},c={};await P(c,e),F(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},{url:L(a),options:s}},getMotionGroupState:async(t,n,r,i={})=>{N(`getMotionGroupState`,`cell`,t),N(`getMotionGroupState`,`controller`,n),N(`getMotionGroupState`,`motionGroup`,r);let a=`/cells/{cell}/virtual-controllers/{controller}/motion-groups/{motion-group}/state`.replace(`{cell}`,encodeURIComponent(String(t))).replace(`{controller}`,encodeURIComponent(String(n))).replace(`{motion-group}`,encodeURIComponent(String(r))),o=new URL(a,M),s;e&&(s=e.baseOptions);let c={method:`GET`,...s,...i},l={};await P(l,e),F(o,{});let u=s&&s.headers?s.headers:{};return c.headers={...l,...u,...i.headers},{url:L(o),options:c}},getMotionGroups:async(t,n,r={})=>{N(`getMotionGroups`,`cell`,t),N(`getMotionGroups`,`controller`,n);let i=`/cells/{cell}/virtual-controllers/{controller}/motion-groups`.replace(`{cell}`,encodeURIComponent(String(t))).replace(`{controller}`,encodeURIComponent(String(n))),a=new URL(i,M),o;e&&(o=e.baseOptions);let s={method:`GET`,...o,...r},c={};await P(c,e),F(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},{url:L(a),options:s}},getOperationMode:async(t,n,r={})=>{N(`getOperationMode`,`cell`,t),N(`getOperationMode`,`controller`,n);let i=`/cells/{cell}/virtual-controllers/{controller}/operationmode`.replace(`{cell}`,encodeURIComponent(String(t))).replace(`{controller}`,encodeURIComponent(String(n))),a=new URL(i,M),o;e&&(o=e.baseOptions);let s={method:`GET`,...o,...r},c={};await P(c,e),F(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},{url:L(a),options:s}},getVirtualControllerMounting:async(t,n,r,i={})=>{N(`getVirtualControllerMounting`,`cell`,t),N(`getVirtualControllerMounting`,`controller`,n),N(`getVirtualControllerMounting`,`motionGroup`,r);let a=`/cells/{cell}/virtual-controllers/{controller}/motion-groups/{motion-group}/mounting`.replace(`{cell}`,encodeURIComponent(String(t))).replace(`{controller}`,encodeURIComponent(String(n))).replace(`{motion-group}`,encodeURIComponent(String(r))),o=new URL(a,M),s;e&&(s=e.baseOptions);let c={method:`GET`,...s,...i},l={};await P(l,e),F(o,{});let u=s&&s.headers?s.headers:{};return c.headers={...l,...u,...i.headers},{url:L(o),options:c}},listVirtualControllerCoordinateSystems:async(t,n,r={})=>{N(`listVirtualControllerCoordinateSystems`,`cell`,t),N(`listVirtualControllerCoordinateSystems`,`controller`,n);let i=`/cells/{cell}/virtual-controllers/{controller}/coordinate-systems`.replace(`{cell}`,encodeURIComponent(String(t))).replace(`{controller}`,encodeURIComponent(String(n))),a=new URL(i,M),o;e&&(o=e.baseOptions);let s={method:`GET`,...o,...r},c={};await P(c,e),F(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},{url:L(a),options:s}},listVirtualControllerTcps:async(t,n,r,i={})=>{N(`listVirtualControllerTcps`,`cell`,t),N(`listVirtualControllerTcps`,`controller`,n),N(`listVirtualControllerTcps`,`motionGroup`,r);let a=`/cells/{cell}/virtual-controllers/{controller}/motion-groups/{motion-group}/tcps`.replace(`{cell}`,encodeURIComponent(String(t))).replace(`{controller}`,encodeURIComponent(String(n))).replace(`{motion-group}`,encodeURIComponent(String(r))),o=new URL(a,M),s;e&&(s=e.baseOptions);let c={method:`GET`,...s,...i},l={};await P(l,e),F(o,{});let u=s&&s.headers?s.headers:{};return c.headers={...l,...u,...i.headers},{url:L(o),options:c}},setEmergencyStop:async(t,n,r,i={})=>{N(`setEmergencyStop`,`cell`,t),N(`setEmergencyStop`,`controller`,n);let a=`/cells/{cell}/virtual-controllers/{controller}/emergency-stop`.replace(`{cell}`,encodeURIComponent(String(t))).replace(`{controller}`,encodeURIComponent(String(n))),o=new URL(a,M),s;e&&(s=e.baseOptions);let c={method:`PUT`,...s,...i},l={},u={};await P(l,e),r!==void 0&&(u.active=r),F(o,u);let d=s&&s.headers?s.headers:{};return c.headers={...l,...d,...i.headers},{url:L(o),options:c}},setMotionGroupState:async(t,n,r,i,a={})=>{N(`setMotionGroupState`,`cell`,t),N(`setMotionGroupState`,`controller`,n),N(`setMotionGroupState`,`motionGroup`,r),N(`setMotionGroupState`,`motionGroupJoints`,i);let o=`/cells/{cell}/virtual-controllers/{controller}/motion-groups/{motion-group}/state`.replace(`{cell}`,encodeURIComponent(String(t))).replace(`{controller}`,encodeURIComponent(String(n))).replace(`{motion-group}`,encodeURIComponent(String(r))),s=new URL(o,M),c;e&&(c=e.baseOptions);let l={method:`PUT`,...c,...a},u={};await P(u,e),u[`Content-Type`]=`application/json`,F(s,{});let d=c&&c.headers?c.headers:{};return l.headers={...u,...d,...a.headers},l.data=I(i,l,e),{url:L(s),options:l}},setOperationMode:async(t,n,r,i={})=>{N(`setOperationMode`,`cell`,t),N(`setOperationMode`,`controller`,n),N(`setOperationMode`,`mode`,r);let a=`/cells/{cell}/virtual-controllers/{controller}/operationmode`.replace(`{cell}`,encodeURIComponent(String(t))).replace(`{controller}`,encodeURIComponent(String(n))),o=new URL(a,M),s;e&&(s=e.baseOptions);let c={method:`PUT`,...s,...i},l={},u={};await P(l,e),r!==void 0&&(u.mode=r),F(o,u);let d=s&&s.headers?s.headers:{};return c.headers={...l,...d,...i.headers},{url:L(o),options:c}},setVirtualControllerMounting:async(t,n,r,i,a={})=>{N(`setVirtualControllerMounting`,`cell`,t),N(`setVirtualControllerMounting`,`controller`,n),N(`setVirtualControllerMounting`,`motionGroup`,r),N(`setVirtualControllerMounting`,`coordinateSystem`,i);let o=`/cells/{cell}/virtual-controllers/{controller}/motion-groups/{motion-group}/mounting`.replace(`{cell}`,encodeURIComponent(String(t))).replace(`{controller}`,encodeURIComponent(String(n))).replace(`{motion-group}`,encodeURIComponent(String(r))),s=new URL(o,M),c;e&&(c=e.baseOptions);let l={method:`PUT`,...c,...a},u={};await P(u,e),u[`Content-Type`]=`application/json`,F(s,{});let d=c&&c.headers?c.headers:{};return l.headers={...u,...d,...a.headers},l.data=I(i,l,e),{url:L(s),options:l}}}},Z=function(e){let t=bt(e);return{async addVirtualControllerCoordinateSystem(n,r,i,a,o){let s=await t.addVirtualControllerCoordinateSystem(n,r,i,a,o),c=e?.serverIndex??0,l=j[`VirtualControllerApi.addVirtualControllerCoordinateSystem`]?.[c]?.url;return(t,n)=>R(s,_.default,k,e)(t,l||n)},async addVirtualControllerMotionGroup(n,r,i,a){let o=await t.addVirtualControllerMotionGroup(n,r,i,a),s=e?.serverIndex??0,c=j[`VirtualControllerApi.addVirtualControllerMotionGroup`]?.[s]?.url;return(t,n)=>R(o,_.default,k,e)(t,c||n)},async addVirtualControllerTcp(n,r,i,a,o,s){let c=await t.addVirtualControllerTcp(n,r,i,a,o,s),l=e?.serverIndex??0,u=j[`VirtualControllerApi.addVirtualControllerTcp`]?.[l]?.url;return(t,n)=>R(c,_.default,k,e)(t,u||n)},async deleteVirtualControllerCoordinateSystem(n,r,i,a,o){let s=await t.deleteVirtualControllerCoordinateSystem(n,r,i,a,o),c=e?.serverIndex??0,l=j[`VirtualControllerApi.deleteVirtualControllerCoordinateSystem`]?.[c]?.url;return(t,n)=>R(s,_.default,k,e)(t,l||n)},async deleteVirtualControllerMotionGroup(n,r,i,a){let o=await t.deleteVirtualControllerMotionGroup(n,r,i,a),s=e?.serverIndex??0,c=j[`VirtualControllerApi.deleteVirtualControllerMotionGroup`]?.[s]?.url;return(t,n)=>R(o,_.default,k,e)(t,c||n)},async deleteVirtualControllerTcp(n,r,i,a,o){let s=await t.deleteVirtualControllerTcp(n,r,i,a,o),c=e?.serverIndex??0,l=j[`VirtualControllerApi.deleteVirtualControllerTcp`]?.[c]?.url;return(t,n)=>R(s,_.default,k,e)(t,l||n)},async getEmergencyStop(n,r,i){let a=await t.getEmergencyStop(n,r,i),o=e?.serverIndex??0,s=j[`VirtualControllerApi.getEmergencyStop`]?.[o]?.url;return(t,n)=>R(a,_.default,k,e)(t,s||n)},async getMotionGroupState(n,r,i,a){let o=await t.getMotionGroupState(n,r,i,a),s=e?.serverIndex??0,c=j[`VirtualControllerApi.getMotionGroupState`]?.[s]?.url;return(t,n)=>R(o,_.default,k,e)(t,c||n)},async getMotionGroups(n,r,i){let a=await t.getMotionGroups(n,r,i),o=e?.serverIndex??0,s=j[`VirtualControllerApi.getMotionGroups`]?.[o]?.url;return(t,n)=>R(a,_.default,k,e)(t,s||n)},async getOperationMode(n,r,i){let a=await t.getOperationMode(n,r,i),o=e?.serverIndex??0,s=j[`VirtualControllerApi.getOperationMode`]?.[o]?.url;return(t,n)=>R(a,_.default,k,e)(t,s||n)},async getVirtualControllerMounting(n,r,i,a){let o=await t.getVirtualControllerMounting(n,r,i,a),s=e?.serverIndex??0,c=j[`VirtualControllerApi.getVirtualControllerMounting`]?.[s]?.url;return(t,n)=>R(o,_.default,k,e)(t,c||n)},async listVirtualControllerCoordinateSystems(n,r,i){let a=await t.listVirtualControllerCoordinateSystems(n,r,i),o=e?.serverIndex??0,s=j[`VirtualControllerApi.listVirtualControllerCoordinateSystems`]?.[o]?.url;return(t,n)=>R(a,_.default,k,e)(t,s||n)},async listVirtualControllerTcps(n,r,i,a){let o=await t.listVirtualControllerTcps(n,r,i,a),s=e?.serverIndex??0,c=j[`VirtualControllerApi.listVirtualControllerTcps`]?.[s]?.url;return(t,n)=>R(o,_.default,k,e)(t,c||n)},async setEmergencyStop(n,r,i,a){let o=await t.setEmergencyStop(n,r,i,a),s=e?.serverIndex??0,c=j[`VirtualControllerApi.setEmergencyStop`]?.[s]?.url;return(t,n)=>R(o,_.default,k,e)(t,c||n)},async setMotionGroupState(n,r,i,a,o){let s=await t.setMotionGroupState(n,r,i,a,o),c=e?.serverIndex??0,l=j[`VirtualControllerApi.setMotionGroupState`]?.[c]?.url;return(t,n)=>R(s,_.default,k,e)(t,l||n)},async setOperationMode(n,r,i,a){let o=await t.setOperationMode(n,r,i,a),s=e?.serverIndex??0,c=j[`VirtualControllerApi.setOperationMode`]?.[s]?.url;return(t,n)=>R(o,_.default,k,e)(t,c||n)},async setVirtualControllerMounting(n,r,i,a,o){let s=await t.setVirtualControllerMounting(n,r,i,a,o),c=e?.serverIndex??0,l=j[`VirtualControllerApi.setVirtualControllerMounting`]?.[c]?.url;return(t,n)=>R(s,_.default,k,e)(t,l||n)}}},xt=class extends A{addVirtualControllerCoordinateSystem(e,t,n,r,i){return Z(this.configuration).addVirtualControllerCoordinateSystem(e,t,n,r,i).then(e=>e(this.axios,this.basePath))}addVirtualControllerMotionGroup(e,t,n,r){return Z(this.configuration).addVirtualControllerMotionGroup(e,t,n,r).then(e=>e(this.axios,this.basePath))}addVirtualControllerTcp(e,t,n,r,i,a){return Z(this.configuration).addVirtualControllerTcp(e,t,n,r,i,a).then(e=>e(this.axios,this.basePath))}deleteVirtualControllerCoordinateSystem(e,t,n,r,i){return Z(this.configuration).deleteVirtualControllerCoordinateSystem(e,t,n,r,i).then(e=>e(this.axios,this.basePath))}deleteVirtualControllerMotionGroup(e,t,n,r){return Z(this.configuration).deleteVirtualControllerMotionGroup(e,t,n,r).then(e=>e(this.axios,this.basePath))}deleteVirtualControllerTcp(e,t,n,r,i){return Z(this.configuration).deleteVirtualControllerTcp(e,t,n,r,i).then(e=>e(this.axios,this.basePath))}getEmergencyStop(e,t,n){return Z(this.configuration).getEmergencyStop(e,t,n).then(e=>e(this.axios,this.basePath))}getMotionGroupState(e,t,n,r){return Z(this.configuration).getMotionGroupState(e,t,n,r).then(e=>e(this.axios,this.basePath))}getMotionGroups(e,t,n){return Z(this.configuration).getMotionGroups(e,t,n).then(e=>e(this.axios,this.basePath))}getOperationMode(e,t,n){return Z(this.configuration).getOperationMode(e,t,n).then(e=>e(this.axios,this.basePath))}getVirtualControllerMounting(e,t,n,r){return Z(this.configuration).getVirtualControllerMounting(e,t,n,r).then(e=>e(this.axios,this.basePath))}listVirtualControllerCoordinateSystems(e,t,n){return Z(this.configuration).listVirtualControllerCoordinateSystems(e,t,n).then(e=>e(this.axios,this.basePath))}listVirtualControllerTcps(e,t,n,r){return Z(this.configuration).listVirtualControllerTcps(e,t,n,r).then(e=>e(this.axios,this.basePath))}setEmergencyStop(e,t,n,r){return Z(this.configuration).setEmergencyStop(e,t,n,r).then(e=>e(this.axios,this.basePath))}setMotionGroupState(e,t,n,r,i){return Z(this.configuration).setMotionGroupState(e,t,n,r,i).then(e=>e(this.axios,this.basePath))}setOperationMode(e,t,n,r){return Z(this.configuration).setOperationMode(e,t,n,r).then(e=>e(this.axios,this.basePath))}setVirtualControllerMounting(e,t,n,r,i){return Z(this.configuration).setVirtualControllerMounting(e,t,n,r,i).then(e=>e(this.axios,this.basePath))}},St=function(e){return{externalJointsStream:async(t,n,r,i={})=>{N(`externalJointsStream`,`cell`,t),N(`externalJointsStream`,`controller`,n),N(`externalJointsStream`,`externalJointStreamRequest`,r);let a=`/cells/{cell}/virtual-controllers/{controller}/external-joints-stream`.replace(`{cell}`,encodeURIComponent(String(t))).replace(`{controller}`,encodeURIComponent(String(n))),o=new URL(a,M),s;e&&(s=e.baseOptions);let c={method:`GET`,...s,...i},l={};await P(l,e),l[`Content-Type`]=`application/json`,F(o,{});let u=s&&s.headers?s.headers:{};return c.headers={...l,...u,...i.headers},c.data=I(r,c,e),{url:L(o),options:c}},getCycleTime:async(t,n,r={})=>{N(`getCycleTime`,`cell`,t),N(`getCycleTime`,`controller`,n);let i=`/cells/{cell}/virtual-controllers/{controller}/cycle-time`.replace(`{cell}`,encodeURIComponent(String(t))).replace(`{controller}`,encodeURIComponent(String(n))),a=new URL(i,M),o;e&&(o=e.baseOptions);let s={method:`GET`,...o,...r},c={};await P(c,e),F(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},{url:L(a),options:s}},getVirtualControllerBehavior:async(t,n,r={})=>{N(`getVirtualControllerBehavior`,`cell`,t),N(`getVirtualControllerBehavior`,`controller`,n);let i=`/cells/{cell}/virtual-controllers/{controller}/behavior`.replace(`{cell}`,encodeURIComponent(String(t))).replace(`{controller}`,encodeURIComponent(String(n))),a=new URL(i,M),o;e&&(o=e.baseOptions);let s={method:`GET`,...o,...r},c={};await P(c,e),F(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},{url:L(a),options:s}},setVirtualControllerBehavior:async(t,n,r,i={})=>{N(`setVirtualControllerBehavior`,`cell`,t),N(`setVirtualControllerBehavior`,`controller`,n);let a=`/cells/{cell}/virtual-controllers/{controller}/behavior`.replace(`{cell}`,encodeURIComponent(String(t))).replace(`{controller}`,encodeURIComponent(String(n))),o=new URL(a,M),s;e&&(s=e.baseOptions);let c={method:`PUT`,...s,...i},l={},u={};await P(l,e),r!==void 0&&(u.behavior=r),F(o,u);let d=s&&s.headers?s.headers:{};return c.headers={...l,...d,...i.headers},{url:L(o),options:c}}}},Q=function(e){let t=St(e);return{async externalJointsStream(n,r,i,a){let o=await t.externalJointsStream(n,r,i,a),s=e?.serverIndex??0,c=j[`VirtualControllerBehaviorApi.externalJointsStream`]?.[s]?.url;return(t,n)=>R(o,_.default,k,e)(t,c||n)},async getCycleTime(n,r,i){let a=await t.getCycleTime(n,r,i),o=e?.serverIndex??0,s=j[`VirtualControllerBehaviorApi.getCycleTime`]?.[o]?.url;return(t,n)=>R(a,_.default,k,e)(t,s||n)},async getVirtualControllerBehavior(n,r,i){let a=await t.getVirtualControllerBehavior(n,r,i),o=e?.serverIndex??0,s=j[`VirtualControllerBehaviorApi.getVirtualControllerBehavior`]?.[o]?.url;return(t,n)=>R(a,_.default,k,e)(t,s||n)},async setVirtualControllerBehavior(n,r,i,a){let o=await t.setVirtualControllerBehavior(n,r,i,a),s=e?.serverIndex??0,c=j[`VirtualControllerBehaviorApi.setVirtualControllerBehavior`]?.[s]?.url;return(t,n)=>R(o,_.default,k,e)(t,c||n)}}},Ct=class extends A{externalJointsStream(e,t,n,r){return Q(this.configuration).externalJointsStream(e,t,n,r).then(e=>e(this.axios,this.basePath))}getCycleTime(e,t,n){return Q(this.configuration).getCycleTime(e,t,n).then(e=>e(this.axios,this.basePath))}getVirtualControllerBehavior(e,t,n){return Q(this.configuration).getVirtualControllerBehavior(e,t,n).then(e=>e(this.axios,this.basePath))}setVirtualControllerBehavior(e,t,n,r){return Q(this.configuration).setVirtualControllerBehavior(e,t,n,r).then(e=>e(this.axios,this.basePath))}},wt=function(e){return{listIOs:async(t,n,r,i={})=>{N(`listIOs`,`cell`,t),N(`listIOs`,`controller`,n),N(`listIOs`,`ios`,r);let a=`/cells/{cell}/virtual-controllers/{controller}/ios/values`.replace(`{cell}`,encodeURIComponent(String(t))).replace(`{controller}`,encodeURIComponent(String(n))),o=new URL(a,M),s;e&&(s=e.baseOptions);let c={method:`GET`,...s,...i},l={},u={};await P(l,e),r&&(u.ios=r),F(o,u);let d=s&&s.headers?s.headers:{};return c.headers={...l,...d,...i.headers},{url:L(o),options:c}},listVirtualControllerIODescriptions:async(t,n,r,i,a,o,s={})=>{N(`listVirtualControllerIODescriptions`,`cell`,t),N(`listVirtualControllerIODescriptions`,`controller`,n);let c=`/cells/{cell}/virtual-controllers/{controller}/ios/description`.replace(`{cell}`,encodeURIComponent(String(t))).replace(`{controller}`,encodeURIComponent(String(n))),l=new URL(c,M),u;e&&(u=e.baseOptions);let d={method:`GET`,...u,...s},f={},p={};await P(f,e),r&&(p.ios=r),i!==void 0&&(p.direction=i),a!==void 0&&(p.value_type=a),o!==void 0&&(p.group=o),F(l,p);let m=u&&u.headers?u.headers:{};return d.headers={...f,...m,...s.headers},{url:L(l),options:d}},setIOValues:async(t,n,r,i={})=>{N(`setIOValues`,`cell`,t),N(`setIOValues`,`controller`,n),N(`setIOValues`,`iOValue`,r);let a=`/cells/{cell}/virtual-controllers/{controller}/ios/values`.replace(`{cell}`,encodeURIComponent(String(t))).replace(`{controller}`,encodeURIComponent(String(n))),o=new URL(a,M),s;e&&(s=e.baseOptions);let c={method:`PUT`,...s,...i},l={};await P(l,e),l[`Content-Type`]=`application/json`,F(o,{});let u=s&&s.headers?s.headers:{};return c.headers={...l,...u,...i.headers},c.data=I(r,c,e),{url:L(o),options:c}}}},Tt=function(e){let t=wt(e);return{async listIOs(n,r,i,a){let o=await t.listIOs(n,r,i,a),s=e?.serverIndex??0,c=j[`VirtualControllerInputsOutputsApi.listIOs`]?.[s]?.url;return(t,n)=>R(o,_.default,k,e)(t,c||n)},async listVirtualControllerIODescriptions(n,r,i,a,o,s,c){let l=await t.listVirtualControllerIODescriptions(n,r,i,a,o,s,c),u=e?.serverIndex??0,d=j[`VirtualControllerInputsOutputsApi.listVirtualControllerIODescriptions`]?.[u]?.url;return(t,n)=>R(l,_.default,k,e)(t,d||n)},async setIOValues(n,r,i,a){let o=await t.setIOValues(n,r,i,a),s=e?.serverIndex??0,c=j[`VirtualControllerInputsOutputsApi.setIOValues`]?.[s]?.url;return(t,n)=>R(o,_.default,k,e)(t,c||n)}}},Et=class extends A{listIOs(e,t,n,r){return Tt(this.configuration).listIOs(e,t,n,r).then(e=>e(this.axios,this.basePath))}listVirtualControllerIODescriptions(e,t,n,r,i,a,o){return Tt(this.configuration).listVirtualControllerIODescriptions(e,t,n,r,i,a,o).then(e=>e(this.axios,this.basePath))}setIOValues(e,t,n,r){return Tt(this.configuration).setIOValues(e,t,n,r).then(e=>e(this.axios,this.basePath))}},Dt=class{constructor(e,t){this.cellId=e,this.opts=t,this.system=this.withUnwrappedResponsesOnly(ft),this.cell=this.withUnwrappedResponsesOnly(Ue),this.motionGroup=this.withCellId(nt),this.motionGroupModels=this.withUnwrappedResponsesOnly(it),this.controller=this.withCellId(Ge),this.controllerIOs=this.withCellId(qe),this.trajectoryPlanning=this.withCellId(yt),this.trajectoryExecution=this.withCellId(_t),this.trajectoryCaching=this.withCellId(mt),this.application=this.withCellId(ze),this.applicationGlobal=this.withUnwrappedResponsesOnly(ze),this.jogging=this.withCellId(Xe),this.kinematics=this.withCellId($e),this.busInputsOutputs=this.withCellId(Ve),this.virtualController=this.withCellId(xt),this.virtualControllerBehavior=this.withCellId(Ct),this.virtualControllerIOs=this.withCellId(Et),this.storeObject=this.withCellId(ut),this.storeCollisionComponents=this.withCellId(ot),this.storeCollisionSetups=this.withCellId(ct)}withCellId(e){let t=new e({...this.opts,isJsonMime:e=>e===`application/json`},this.opts.basePath??``,this.opts.axiosInstance??_.default.create());for(let e of Reflect.ownKeys(Reflect.getPrototypeOf(t)))if(e!==`constructor`&&typeof t[e]==`function`){let n=t[e];t[e]=(...e)=>n.apply(t,[this.cellId,...e]).then(e=>e.data)}return t}withUnwrappedResponsesOnly(e){let t=new e({...this.opts,isJsonMime:e=>e===`application/json`},this.opts.basePath??``,this.opts.axiosInstance??_.default.create());for(let e of Reflect.ownKeys(Reflect.getPrototypeOf(t)))if(e!==`constructor`&&typeof t[e]==`function`){let n=t[e];t[e]=(...e)=>n.apply(t,e).then(e=>e.data)}return t}},Ot={method:`GET`,path:`/cells/:cellId/controllers/:controllerId/state`,handle(){return{mode:`MODE_CONTROL`,last_error:[],timestamp:`2025-10-16T09:19:26.634534092Z`,sequence_number:1054764,controller:`mock-ur5e`,operation_mode:`OPERATION_MODE_AUTO`,safety_state:`SAFETY_STATE_NORMAL`,velocity_override:100,motion_groups:[{timestamp:`2025-10-16T09:19:26.634534092Z`,sequence_number:1054764,motion_group:`0@mock-ur5e`,controller:`mock-ur5e`,joint_position:[1.487959623336792,-1.8501918315887451,1.8003005981445312,6.034560203552246,1.4921919107437134,1.593459963798523],joint_limit_reached:{limit_reached:[!1,!1,!1,!1,!1,!1]},joint_torque:[],joint_current:[0,0,0,0,0,0],flange_pose:{position:[107.6452433732927,-409.0402987746852,524.2402132330305],orientation:[.9874434028353319,-.986571714997442,1.3336589451098142]},tcp:`Flange`,tcp_pose:{position:[107.6452433732927,-409.0402987746852,524.2402132330305],orientation:[.9874434028353319,-.986571714997442,1.3336589451098142]},payload:``,coordinate_system:``,standstill:!0}]}}},kt={method:`GET`,path:`/cells/:cellId/controllers/:controllerId/motion-groups/:motionGroupId/description`,handle(){return{motion_group_model:`UniversalRobots_UR5e`,mounting:{position:[0,0,0],orientation:[0,0,0]},tcps:{Flange:{name:`Default-Flange`,pose:{position:[0,0,0],orientation:[0,0,0]}}},payloads:{"FPay-0":{name:`FPay-0`,payload:0,center_of_mass:[0,0,0],moment_of_inertia:[0,0,0]}},cycle_time:8,dh_parameters:[{alpha:1.5707963267948966,d:162.25},{a:-425},{a:-392.2},{alpha:1.5707963267948966,d:133.3},{alpha:-1.5707963267948966,d:99.7},{d:99.6}],operation_limits:{auto_limits:{joints:[{position:{lower_limit:-6.283185307179586,upper_limit:6.283185307179586},velocity:3.34159255027771,acceleration:40,torque:150},{position:{lower_limit:-6.283185307179586,upper_limit:6.283185307179586},velocity:3.34159255027771,acceleration:40,torque:150},{position:{lower_limit:-6.283185307179586,upper_limit:6.283185307179586},velocity:3.34159255027771,acceleration:40,torque:150},{position:{lower_limit:-6.283185307179586,upper_limit:6.283185307179586},velocity:3.34159255027771,acceleration:40,torque:28},{position:{lower_limit:-6.283185307179586,upper_limit:6.283185307179586},velocity:3.34159255027771,acceleration:40,torque:28},{position:{lower_limit:-6.283185307179586,upper_limit:6.283185307179586},velocity:3.34159255027771,acceleration:40,torque:28}],tcp:{velocity:5e3},elbow:{velocity:5e3},flange:{velocity:5e3}},manual_limits:{joints:[{position:{lower_limit:-6.283185307179586,upper_limit:6.283185307179586},velocity:3.34159255027771,acceleration:40,torque:150},{position:{lower_limit:-6.283185307179586,upper_limit:6.283185307179586},velocity:3.34159255027771,acceleration:40,torque:150},{position:{lower_limit:-6.283185307179586,upper_limit:6.283185307179586},velocity:3.34159255027771,acceleration:40,torque:150},{position:{lower_limit:-6.283185307179586,upper_limit:6.283185307179586},velocity:3.34159255027771,acceleration:40,torque:28},{position:{lower_limit:-6.283185307179586,upper_limit:6.283185307179586},velocity:3.34159255027771,acceleration:40,torque:28},{position:{lower_limit:-6.283185307179586,upper_limit:6.283185307179586},velocity:3.34159255027771,acceleration:40,torque:28}],tcp:{velocity:5e3}},manual_t1_limits:{joints:[{position:{lower_limit:-6.283185307179586,upper_limit:6.283185307179586},velocity:3.34159255027771,acceleration:40,torque:150},{position:{lower_limit:-6.283185307179586,upper_limit:6.283185307179586},velocity:3.34159255027771,acceleration:40,torque:150},{position:{lower_limit:-6.283185307179586,upper_limit:6.283185307179586},velocity:3.34159255027771,acceleration:40,torque:150},{position:{lower_limit:-6.283185307179586,upper_limit:6.283185307179586},velocity:3.34159255027771,acceleration:40,torque:28},{position:{lower_limit:-6.283185307179586,upper_limit:6.283185307179586},velocity:3.34159255027771,acceleration:40,torque:28},{position:{lower_limit:-6.283185307179586,upper_limit:6.283185307179586},velocity:3.34159255027771,acceleration:40,torque:28}],tcp:{velocity:5e3}},manual_t2_limits:{joints:[{position:{lower_limit:-6.283185307179586,upper_limit:6.283185307179586},velocity:3.34159255027771,acceleration:40,torque:150},{position:{lower_limit:-6.283185307179586,upper_limit:6.283185307179586},velocity:3.34159255027771,acceleration:40,torque:150},{position:{lower_limit:-6.283185307179586,upper_limit:6.283185307179586},velocity:3.34159255027771,acceleration:40,torque:150},{position:{lower_limit:-6.283185307179586,upper_limit:6.283185307179586},velocity:3.34159255027771,acceleration:40,torque:28},{position:{lower_limit:-6.283185307179586,upper_limit:6.283185307179586},velocity:3.34159255027771,acceleration:40,torque:28},{position:{lower_limit:-6.283185307179586,upper_limit:6.283185307179586},velocity:3.34159255027771,acceleration:40,torque:28}],tcp:{velocity:5e3}}},serial_number:`WBVirtualRobot`}}},At={method:`GET`,path:`/motion-group-models/:motionGroupModel/kinematic`,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}],inverse_solver:`Universalrobots`}}},jt={method:`GET`,path:`/cells/:cellId/controllers/:controllerId`,handle(){return{configuration:{initial_joint_position:`[0,-1.571,-1.571,-1.571,1.571,-1.571,0]`,kind:`VirtualController`,manufacturer:`universalrobots`,type:`universalrobots-ur5e`},name:`mock-ur5`}}},Mt={method:`GET`,path:`/cells/:cellId/controllers/:controllerId/coordinate-systems`,handle(){return[{coordinate_system:``,name:`world`,reference_coordinate_system:``,position:[0,0,0],orientation:[0,0,0],orientation_type:`ROTATION_VECTOR`},{coordinate_system:`CS-0`,name:`Default-CS`,reference_coordinate_system:``,position:[0,0,0],orientation:[0,0,0],orientation_type:`ROTATION_VECTOR`}]}},Nt={method:`GET`,path:`/cells/:cellId/controllers`,handle(){return[`mock-ur5e`]}},Pt=class{constructor(){this.connections=[]}async handleAPIRequest(e){let t=[Nt,jt,kt,Ot,Mt,At],n=e.method?.toUpperCase()||`GET`;if(!e.url)throw Error(`No url sent with request`);let r=e.url.split(`?`)[0];for(let i of t){let t=ke.match(i.path)(r);if(n===i.method&&t){let t=i.handle();return{status:200,statusText:`Success`,data:JSON.stringify(t),headers:{},config:e,request:{responseURL:e.url}}}}throw new _.AxiosError(`No mock handler matched this request: ${n} ${r}`,`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(Ft)})),e.url.includes(`/execution/jogging`)&&e.dispatchEvent(new MessageEvent(`message`,{data:JSON.stringify({result:{message:`string`,kind:`INITIALIZE_RECEIVED`}})}))},10)}handleWebsocketMessage(e,t){console.log(`Received message on ${e.url}`,t)}},Ft={result:{motion_group:`0@universalrobots-ur5e`,controller:`universalrobots-ur5e`,timestamp:new Date().toISOString(),sequence_number:1,joint_position:[1.1699999570846558,-1.5700000524520874,1.3600000143051147,1.0299999713897705,1.2899999618530273,1.2799999713897705],joint_limit_reached:{limit_reached:[!1,!1,!1,!1,!1,!1]},standstill:!1,flange_pose:{position:[1.3300010259703043,-409.2680714682808,531.0203477065281],orientation:[1.7564919306270736,-1.7542521568325058,.7326972590614671]},tcp_pose:{position:[1.3300010259703043,-409.2680714682808,531.0203477065281],orientation:[1.7564919306270736,-1.7542521568325058,.7326972590614671]}}},It=class{constructor(e){this.authPromise=null,this.accessToken=null;let t=e.cellId??`cell`;this.config={cellId:t,...e},this.accessToken=e.accessToken||D.getString(`wbjs.access_token`)||null,this.config.instanceUrl===`https://mock.example.com`&&(this.mock=new Pt),this.instanceUrl=Ce(this.config.instanceUrl);let n=_.default.create({baseURL:Oe(this.instanceUrl.href,`/api/v2`),headers:typeof window<`u`&&window.location.origin.includes(`localhost`)?{}:{"X-Wandelbots-Client":`Wandelbots-Nova-JS-SDK`}});n.interceptors.request.use(async t=>(t.headers.Authorization||(this.accessToken?t.headers.Authorization=`Bearer ${this.accessToken}`:this.config.username&&this.config.password&&(t.headers.Authorization=`Basic ${btoa(`${e.username}:${e.password}`)}`)),t)),typeof window<`u`&&n.interceptors.response.use(e=>e,async e=>{if((0,_.isAxiosError)(e))if(e.response?.status===401)try{if(await this.renewAuthentication(),e.config)return this.accessToken?e.config.headers.Authorization=`Bearer ${this.accessToken}`:delete e.config.headers.Authorization,n.request(e.config)}catch(e){return Promise.reject(e)}else e.response?.status===503&&(await fetch(window.location.href)).status===503&&window.location.reload();return Promise.reject(e)}),this.api=new Dt(t,{...e,basePath:Oe(this.instanceUrl.href,`/api/v2`),isJsonMime:e=>e===`application/json`,baseOptions:{...this.mock?{adapter:e=>this.mock.handleAPIRequest(e)}:{},...e.baseOptions},axiosInstance:n})}async renewAuthentication(){if(this.authPromise)return;let e=D.getString(`wbjs.access_token`);if(e&&this.accessToken!==e){this.accessToken=e;return}this.authPromise=Ee(this.instanceUrl);try{this.accessToken=await this.authPromise,this.accessToken?D.setString(`wbjs.access_token`,this.accessToken):D.delete(`wbjs.access_token`)}finally{this.authPromise=null}}makeWebsocketURL(e){let t=new URL(Oe(this.instanceUrl.href,`/api/v2/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 be(this.makeWebsocketURL(e),{mock:this.mock})}};function Lt(e){let t=[e.position?.[0]??0,e.position?.[1]??0,e.position?.[2]??0],n=[e.orientation?.[0]??0,e.orientation?.[1]??0,e.orientation?.[2]??0],r=t.map(e=>e.toFixed(1)),i=n.map(e=>e.toFixed(4));return`(${r.concat(i).join(`, `)})`}function $(e){(0,u.useEffect)(e,[])}function Rt(e){$(()=>(0,ee.autorun)(e))}function zt(e,t,n){$(()=>(0,ee.reaction)(e,t,n))}function Bt(e){return $(()=>{let t;function n(){e(),t=requestAnimationFrame(n)}return t=requestAnimationFrame(n),()=>{cancelAnimationFrame(t)}})}var Vt=class{constructor(e=[],t={}){this.currentValues=[],this.targetValues=[],this.previousTargetValues=[],this.targetUpdateTime=0,this.animationId=null,this.updateCount=0,this.velocities=[],this.animate=()=>{this.update(1/60)?this.animationId=null:this.animationId=requestAnimationFrame(this.animate)},this.options={tension:120,friction:20,threshold:.001,onChange:()=>{},onComplete:()=>{},...t},this.currentValues=[...e],this.targetValues=[...e],this.previousTargetValues=[...e],this.velocities=Array(e.length).fill(0),this.targetUpdateTime=performance.now(),this.updateCount=0}update(e=1/60){let t=!1,n=!0;this.updateCount++;let r=Math.min(e,1/15),i=this.updateCount===1?.7:1;for(let e=0;e<this.currentValues.length;e++){let a=this.currentValues[e],o=this.targetValues[e],s=this.velocities[e],c=o-a,l=s+(c*this.options.tension*i-s*this.options.friction)*r,u=a+l*r;Math.abs(c)<this.options.threshold&&Math.abs(l)<this.options.threshold*10?this.currentValues[e]!==o&&(this.currentValues[e]=o,this.velocities[e]=0,t=!0):(n=!1,this.currentValues[e]=u,this.velocities[e]=l,t=!0)}return t&&this.options.onChange(this.currentValues),n&&this.options.onComplete(this.currentValues),n}setTarget(e){let t=performance.now(),n=t-this.targetUpdateTime;this.previousTargetValues=[...this.targetValues],this.targetValues=[...e],this.targetUpdateTime=t,this.updateCount=0;let r=this.previousTargetValues.every((e,t)=>e===this.currentValues[t]);if(n<8&&n>0&&this.previousTargetValues.length>0&&!r){let t=Math.min(n/8,1);for(let n=0;n<this.targetValues.length;n++){let r=this.previousTargetValues[n]||0,i=e[n]||0;Math.abs(i-r)>.1&&(this.targetValues[n]=r+(i-r)*t)}}for(;this.currentValues.length<e.length;)this.currentValues.push(e[this.currentValues.length]),this.velocities.push(0);this.currentValues.length>e.length&&(this.currentValues=this.currentValues.slice(0,e.length),this.velocities=this.velocities.slice(0,e.length))}getCurrentValues(){return[...this.currentValues]}getValue(e){return this.currentValues[e]??0}isInterpolating(){return this.animationId!==null}stop(){this.animationId!==null&&(cancelAnimationFrame(this.animationId),this.animationId=null)}setImmediate(e){this.stop(),this.currentValues=[...e],this.targetValues=[...e],this.previousTargetValues=[...e],this.velocities=Array(e.length).fill(0),this.targetUpdateTime=performance.now(),this.updateCount=0,this.options.onChange(this.currentValues)}updateOptions(e){this.options={...this.options,...e}}startAutoInterpolation(){this.startInterpolation()}destroy(){this.stop()}startInterpolation(){this.animationId===null&&this.animate()}};function Ht(e=[],t={}){let n=u.default.useRef(null);return n.current||=new Vt(e,t),u.default.useEffect(()=>{n.current?.updateOptions(t)},[t]),u.default.useEffect(()=>()=>{n.current?.destroy()},[]),[n.current]}Object.defineProperty(exports,`S`,{enumerable:!0,get:function(){return c}}),Object.defineProperty(exports,`_`,{enumerable:!0,get:function(){return ae}}),Object.defineProperty(exports,`a`,{enumerable:!0,get:function(){return $}}),Object.defineProperty(exports,`b`,{enumerable:!0,get:function(){return re}}),Object.defineProperty(exports,`c`,{enumerable:!0,get:function(){return Lt}}),Object.defineProperty(exports,`d`,{enumerable:!0,get:function(){return de}}),Object.defineProperty(exports,`f`,{enumerable:!0,get:function(){return ue}}),Object.defineProperty(exports,`g`,{enumerable:!0,get:function(){return oe}}),Object.defineProperty(exports,`h`,{enumerable:!0,get:function(){return y}}),Object.defineProperty(exports,`i`,{enumerable:!0,get:function(){return Rt}}),Object.defineProperty(exports,`l`,{enumerable:!0,get:function(){return Ie}}),Object.defineProperty(exports,`m`,{enumerable:!0,get:function(){return x}}),Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return Ht}}),Object.defineProperty(exports,`o`,{enumerable:!0,get:function(){return zt}}),Object.defineProperty(exports,`p`,{enumerable:!0,get:function(){return S}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return Bt}}),Object.defineProperty(exports,`s`,{enumerable:!0,get:function(){return It}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return Vt}}),Object.defineProperty(exports,`u`,{enumerable:!0,get:function(){return Le}}),Object.defineProperty(exports,`v`,{enumerable:!0,get:function(){return ie}}),Object.defineProperty(exports,`x`,{enumerable:!0,get:function(){return o}}),Object.defineProperty(exports,`y`,{enumerable:!0,get:function(){return se}});
8
+ //# sourceMappingURL=interpolation-Cz29Pgpr.cjs.map